/* Little Learning 2.1 — full-width game selection and compact bottom game HUD */
html,body{width:100%;min-height:100%}
.app{width:100%;max-width:none;margin:0 auto;min-height:100dvh;padding:clamp(8px,1.1vw,14px) clamp(10px,2vw,30px) 18px}
.siteHeader{margin:0 0 9px;padding:7px clamp(12px,1.5vw,22px);min-height:66px;border-radius:20px}
.brandHome{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;color:var(--ink);border:0;background:transparent;cursor:pointer;border-radius:16px;padding:0}
.brandHome:hover .brandSymbol{transform:scale(1.04)}
.brandHome .brandSymbol{width:50px;height:50px;flex-shrink:0;font-size:28px;border-radius:15px;transition:transform .15s}
.brandHome .brandCopy strong{font-size:clamp(20px,2.2vw,26px)}
.brandHome .brandCopy small{font-size:12px}
.brandHome:focus-visible{outline:4px solid #6558d9;outline-offset:4px}
.profileTrigger{height:50px;width:50px;font-size:27px}
#homePage.active{width:100%;margin:0}
#homePage .hero{padding:12px clamp(14px,2.3vw,29px);margin:0 0 10px;min-height:98px;gap:10px;border-radius:24px;box-shadow:0 5px 18px #23375b13}
#homePage .hero h1{font-size:clamp(25px,3vw,36px);margin:2px 0 5px;line-height:1.12}
#homePage .helloKicker{margin:0 0 4px;font-size:12px}
#homePage .hero p{font-size:clamp(12px,1.3vw,15px);margin:1px 0}
#homePage .hero .freeLine{font-size:clamp(12px,1.3vw,14px);margin-top:5px}
#homePage .heroArtwork{font-size:clamp(40px,5vw,65px);white-space:nowrap}
#homePage .resumePanel{width:100%;max-width:none;margin:0 0 10px;padding:10px 15px;min-height:66px;border-radius:19px;display:grid;grid-template-columns:minmax(190px,.7fr) minmax(220px,.95fr) minmax(230px,1fr);align-items:center;gap:12px;box-shadow:0 4px 14px #23375b10}
#homePage .resumeEyebrow{font-size:12px;text-align:left}
#homePage .continueGame{min-height:46px;font-size:16px;white-space:normal;padding:8px 13px;border-radius:13px;box-shadow:0 3px 0 #159570}
#homePage .resumeDescription{font-size:12px;margin:0;text-align:left;line-height:1.25}
#homePage .homeSectionHeading{margin:10px 4px 8px}
#homePage .homeSectionHeading h2{font-size:clamp(20px,2.4vw,27px)}
#homePage .homeSectionHeading span{font-size:12px}
#homePage .gameGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1vw,14px);margin:0;padding:0 0 6px;width:100%}
#homePage .game{width:100%;min-width:0;min-height:149px;padding:13px 15px;border-radius:20px;border-width:1px;box-shadow:0 5px 16px #24395b10}
#homePage .game b{width:55px;height:55px;font-size:34px;margin-bottom:8px;border-radius:15px;flex-shrink:0}
#homePage .game span{font-size:clamp(15px,1.55vw,20px);line-height:1.13}
#homePage .game small{font-size:12px;margin-top:4px}
#homePage .gameMeta{font-size:11px;padding-top:3px;margin:0 0 auto;color:var(--accent)}
/* Display all 12 games without pagination, fitting one desktop/laptop viewport whenever space permits. */
@media(min-width:1180px){
  #homePage .gameGrid{grid-template-columns:repeat(6,minmax(0,1fr))}
  #homePage .game{min-height:clamp(151px,18.1vh,185px)}
}
@media(min-width:800px) and (max-width:1179px){
  #homePage .gameGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  #homePage .game{min-height:clamp(130px,16.3vh,163px)}
  #homePage .game b{width:45px;height:45px;font-size:29px;margin-bottom:5px}
  #homePage .gameMeta{font-size:10px}
  #homePage .game span{font-size:17px}
}
@media(min-width:600px) and (max-width:799px){
  #homePage .gameGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #homePage .resumePanel{grid-template-columns:1fr 1fr;gap:7px}
  #homePage .resumeDescription{grid-column:1/-1;text-align:center}
  #homePage .game{min-height:164px}
}
@media(max-width:599px){
  .app{padding:8px 9px 16px}
  .siteHeader{min-height:60px;padding:6px 10px;margin-bottom:8px}
  .brandHome{gap:8px}
  .brandHome .brandSymbol{width:46px;height:46px;font-size:26px}
  .brandHome .brandCopy strong{font-size:19px}
  .brandHome .brandCopy small{font-size:10px}
  #homePage .hero{padding:14px;margin-bottom:9px;min-height:100px}
  #homePage .heroArtwork{font-size:42px;white-space:normal;text-align:center}
  #homePage .hero h1{font-size:clamp(24px,6vw,31px)}
  #homePage .resumePanel{display:grid;grid-template-columns:1fr;gap:5px;padding:10px 12px}
  #homePage .resumeEyebrow,#homePage .resumeDescription{text-align:center}
  #homePage .resumePanel .continueGame{min-height:50px;font-size:16px}
  #homePage .gameGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #homePage .game{min-height:172px;padding:13px 12px;border-radius:19px}
  #homePage .game b{width:57px;height:57px;font-size:34px}
  #homePage .game span{font-size:clamp(16px,4.1vw,19px)}
  #homePage .game small{font-size:12px}
  #homePage .gameMeta{font-size:10px}
}
/* Game-only view: no global header; home and replay remain available in game toolbar. */
body.isGameActive .siteHeader{display:none!important}
#playPage.active{display:flex;flex-direction:column;gap:10px;min-height:calc(100dvh - 38px)}
#playPage .topbar{flex:0 0 auto;margin:0;padding:0;min-height:57px}
#playPage .topbar .title{min-width:0}
#playPage #playArea{order:1;flex:1 0 auto;margin:0;min-height:350px}
#playPage .topbar{order:0}
#playPage .gameFooter{order:2;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:10px;align-items:stretch;margin-top:auto}
#playPage .gameFooter .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;align-self:stretch}
#playPage .gameFooter .stats>div{padding:11px 7px;min-height:86px;border-radius:19px;display:flex;flex-direction:column;justify-content:center;align-items:center}
#playPage .gameFooter .stats strong{font-size:clamp(19px,2.5vw,26px);margin-top:4px}
#playPage .gameFooter .stats small{font-size:12px}
#playPage .gameFooter .levelJourney{margin:0;padding:11px 14px;border-radius:19px;display:flex;flex-direction:column;justify-content:center;min-width:0}
#playPage .gameFooter .levelJourneyTop{margin:0 0 9px;font-size:12px}
#playPage .gameFooter .levelChip{padding:5px 11px}
#playPage .gameFooter .levelDots{margin:0 0 10px;gap:4px}
#playPage .gameFooter .levelDot{height:8px}
#playPage .gameFooter .questionMeter{height:7px}
@media(min-width:1250px){
  #playPage{max-width:1080px;margin:0 auto;width:100%}
}
@media(max-width:700px){
  #playPage.active{min-height:calc(100dvh - 18px);gap:8px}
  #playPage #playArea{min-height:360px;flex:1 0 auto}
  #playPage .gameFooter{display:flex;flex-direction:column;gap:8px}
  #playPage .gameFooter .levelJourney{order:1}
  #playPage .gameFooter .stats{order:0}
  #playPage .gameFooter .stats>div{min-height:66px;padding:7px 5px;border-radius:14px}
  #playPage .gameFooter .stats small{font-size:10px}
  #playPage .gameFooter .stats strong{font-size:19px}
  #playPage .gameFooter .levelJourney{padding:10px 12px}
}
@media(max-width:360px){
  #homePage .heroArtwork{display:none}
  #homePage .game{min-height:168px}
  #homePage .game span{font-size:15px}
}
@media(max-height:760px) and (min-width:800px){
  .siteHeader{min-height:57px;padding-top:5px;padding-bottom:5px}
  #homePage .hero{min-height:82px;padding-top:8px;padding-bottom:8px}
  #homePage .resumePanel{min-height:56px;padding:7px 12px}
  #homePage .continueGame{min-height:42px}
  #homePage .game{min-height:120px}
  #homePage .game b{width:43px;height:43px;font-size:28px;margin-bottom:4px}
  #homePage .game small{font-size:11px}
  #homePage .homeSectionHeading{margin-top:8px;margin-bottom:6px}
}
