/* Space follows the available display; gameplay and timing remain unchanged. */
.mini-game-section{min-height:calc(100svh - 88px - 86px);display:flex;align-items:center;padding-block:clamp(32px,4svh,60px)}
.mini-layout{max-width:2040px;--edge:clamp(24px,4vw,84px);grid-template-columns:minmax(280px,.25fr) minmax(0,.75fr);gap:clamp(28px,3vw,64px)}
.mini-intro h2{font-size:clamp(50px,4.4vw,88px)}
.mini-choices{max-width:480px}
.mini-game-section .lights-panel{padding:clamp(26px,2.4vw,58px);gap:clamp(28px,3vw,72px);grid-template-columns:minmax(0,.48fr) minmax(0,.52fr);min-height:680px}
.mini-game-section .lights-copy h3{font-size:clamp(34px,2.5vw,58px)}
.mini-game-section .lights-goal{font-size:clamp(15px,1vw,20px)}
.mini-game-section .lights-rules{font-size:clamp(13px,.76vw,17px);line-height:1.85}
.mini-game-section .lights-stage{max-width:600px;padding:clamp(28px,2.3vw,56px) clamp(22px,2vw,48px) clamp(40px,3vw,72px)}
.mini-game-section .lights-grid{max-width:450px;gap:clamp(16px,1.3vw,30px)}
.mini-game-section .lights-counter b{font-size:clamp(32px,2vw,48px)}
.mini-game-section .lights-example{font-size:14px}
.mini-game-section .lights-free-play,.mini-game-section .lights-restart-note,.mini-game-section #lights-message{font-size:clamp(12px,.7vw,15px)}
.mini-game-section .game-scene{height:clamp(320px,25vw,560px)}
.mini-game-section .game-instruction,.mini-game-section .game-local-note{font-size:12px}

/* A full width stage plate, anchored to the backdrop rather than the floor. */
section.growth-section.immersive-growth{--stage-art-top:0px;--stage-art-bottom:0px;height:max(calc(100svh - var(--scene-top) - var(--scene-bottom)),50vw)}
.immersive-growth .scene-media>img,.immersive-growth .scene-media>video{inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
.immersive-growth .scene-controls{bottom:max(48px,calc(100% - (100svh - var(--scene-top) - var(--scene-bottom)) + 48px))}
.immersive-growth .growth-scene::before{display:none}
.immersive-growth .scene-heading{top:clamp(24px,3svh,42px);left:4vw;right:4vw}
.immersive-growth .scene-heading h2{font-family:WelcomeThai,HappyThai,sans-serif;font-weight:800;font-size:clamp(34px,3vw,70px);line-height:1.2;max-width:24ch;text-wrap:balance}
.immersive-growth .scene-heading h2 br{display:none}
.immersive-growth .scene-heading .eyebrow{font-size:clamp(10px,.6vw,14px)}
.immersive-growth[data-view=after] .scene-heading{max-width:40%;}
.immersive-growth .growth-scene::after{background:linear-gradient(0deg,#140d22cc,transparent 22%),linear-gradient(110deg,#140d22c4,transparent 50%)}

/* Active rhythm: wide stage left, large controls right, no empty bottom row. */
.mini-game-section .dance-panel[data-play-active=true]{--game-side:clamp(16px,2vw,56px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(410px,1fr);grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 40px);overflow:hidden!important}
.mini-game-section .dance-panel[data-play-active=true] .game-topbar{grid-column:1/-1;grid-row:1;min-height:82px;padding:18px 180px 18px 26px}
.mini-game-section .dance-panel[data-play-active=true] .game-scene{grid-column:1;grid-row:2;height:100%;min-height:0;flex:none}
.mini-game-section .dance-panel[data-play-active=true] .mini-stage-art{object-fit:cover}
.mini-game-section .dance-panel[data-play-active=true] .game-bottom{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;padding:clamp(22px,2.5vw,64px);gap:clamp(16px,2svh,30px);overflow-y:auto;min-height:0;border-left:1px solid #e7bd7638}
.mini-game-section .dance-panel[data-play-active=true] .sequence-row{width:100%}
.mini-game-section .dance-panel[data-play-active=true] .sequence-arrow{width:clamp(54px,3.7vw,88px);height:clamp(54px,3.7vw,88px);font-size:clamp(34px,2.5vw,58px)}
.mini-game-section .dance-panel[data-play-active=true] .control-step{font-size:clamp(13px,1vw,20px);margin-bottom:15px}
.mini-game-section .dance-panel[data-play-active=true] .beat-row{width:100%;margin:0;gap:18px}
.mini-game-section .dance-panel[data-play-active=true] .beat-row .control-step{margin:0;min-width:80px}
.mini-game-section .dance-panel[data-play-active=true] .touch-controls{order:3;width:100%;padding:22px 10px;margin:0;border:1px solid #d2a26a66;background:#37203b;gap:16px 32px}
.mini-game-section .dance-panel[data-play-active=true] .dpad{grid-template-columns:repeat(3,clamp(52px,4vw,80px));grid-template-rows:repeat(2,clamp(52px,4vw,80px));gap:8px}
.mini-game-section .dance-panel[data-play-active=true] .dpad button{width:100%;height:100%;font-size:clamp(32px,2.7vw,55px)}
.mini-game-section .dance-panel[data-play-active=true] .touch-beat{min-height:118px;min-width:98px;font-size:22px}
.mini-game-section .dance-panel[data-play-active=true] .game-instruction{order:2;font-size:clamp(12px,.9vw,18px);margin:0}
.mini-game-section .dance-panel[data-play-active=true] .game-actions{order:4;margin:0;gap:26px}
.mini-game-section .dance-panel[data-play-active=true] .game-actions button{font-size:16px;min-height:44px}
.mini-game-section .dance-panel[data-play-active=true] .game-local-note{order:5;margin:0;font-size:13px}
.mini-game-section .dance-panel[data-play-active=true] .game-stats b{font-size:28px}
.mini-game-section .dance-panel[data-play-active=true] .game-stats small{font-size:11px}
.mini-game-section .dance-panel[data-play-active=true] .song-select-label select{font-size:17px}

.closing-socials{display:flex;justify-content:center;align-items:stretch;gap:14px;flex-wrap:wrap;margin:30px auto 0;max-width:860px}
.closing-social{display:flex;align-items:center;gap:12px;padding:13px 20px;border:1px solid #d6b68366;border-radius:8px;background:#21142be8;min-height:56px;text-align:left;font-size:15px;line-height:1.4}
.closing-social svg{width:24px;height:24px;flex-shrink:0}
.closing-social span{display:grid;gap:4px}
.closing-social small{font-size:11px;color:#ccb9cf}
a.closing-social:hover{border-color:#ffda8b;background:#3a2344}

@media(min-width:1800px){.mini-game-section .lights-panel{min-height:820px}.mini-discover{margin-top:42px}.mini-choice>img,.mini-lamps-art{height:150px}}
@media(max-width:1199px){.mini-layout{grid-template-columns:1fr;gap:26px;max-width:none}.mini-intro h2{font-size:56px}.mini-game-section .lights-panel{min-height:620px}.mini-discover{width:340px}.mini-game-section .dance-panel[data-play-active=true]{grid-template-columns:minmax(0,1fr) minmax(390px,1fr)}.mini-game-section .dance-panel[data-play-active=true] .game-bottom{padding:22px;gap:16px}.mini-game-section .dance-panel[data-play-active=true] .touch-controls{gap:12px 20px}}
@media(max-width:900px){.mini-game-section .dance-panel[data-play-active=true]{display:flex;flex-direction:column}.mini-game-section .dance-panel[data-play-active=true] .game-scene{height:auto;flex:1 0 170px;min-height:170px}.mini-game-section .dance-panel[data-play-active=true] .game-bottom{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:12px 18px;padding:18px;border-left:0}.mini-game-section .dance-panel[data-play-active=true] .sequence-row{grid-column:1;grid-row:1}.mini-game-section .dance-panel[data-play-active=true] .beat-row{grid-column:1;grid-row:2}.mini-game-section .dance-panel[data-play-active=true] .touch-controls{grid-column:2;grid-row:1/span 3;padding:12px 6px;gap:8px 12px}.mini-game-section .dance-panel[data-play-active=true] .game-instruction{grid-column:1;grid-row:3}.mini-game-section .dance-panel[data-play-active=true] .game-actions{grid-column:1/-1;grid-row:4}.mini-game-section .dance-panel[data-play-active=true] .game-local-note{display:none}.mini-game-section .dance-panel[data-play-active=true] .dpad{grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:5px}.mini-game-section .dance-panel[data-play-active=true] .touch-beat{min-width:64px;min-height:86px;font-size:17px}}
@media(max-width:767px){.mini-game-section{display:block;min-height:0;padding:32px 0 42px}.mini-layout{--edge:20px;display:block}.mini-intro h2{font-size:44px}.mini-discover{width:auto}.mini-game-section .lights-panel{min-height:0;padding:28px 20px 42px;gap:52px}.mini-game-section .lights-stage{max-width:480px;padding:28px 18px 40px;margin:auto}.mini-game-section .lights-grid{gap:16px;max-width:320px}.mini-game-section .lights-rules{font-size:14px}.mini-game-section .lights-copy h3{font-size:34px}.mini-game-section .lights-goal{font-size:15px}.mini-game-section .dance-panel[data-play-active=true]{height:calc(100dvh - 16px)}.mini-game-section .dance-panel[data-play-active=true] .game-topbar{padding:66px 12px 12px;min-height:0;flex-wrap:wrap;gap:8px}.mini-game-section .dance-panel[data-play-active=true] .game-stats{width:100%;justify-content:space-between}.mini-game-section .dance-panel[data-play-active=true] .game-stats b{font-size:22px}.mini-game-section .dance-panel[data-play-active=true] .game-stats small{font-size:9px}.mini-game-section .dance-panel[data-play-active=true] .song-select-label select{font-size:14px}.mini-game-section .dance-panel[data-play-active=true] .game-scene{min-height:150px;flex-basis:150px}.mini-game-section .dance-panel[data-play-active=true] .game-bottom{display:flex;padding:14px 12px;gap:10px;overflow:visible}.mini-game-section .dance-panel[data-play-active=true] .control-step{font-size:12px;margin-bottom:8px}.mini-game-section .dance-panel[data-play-active=true] .sequence-arrow{width:48px;height:48px;font-size:31px}.mini-game-section .dance-panel[data-play-active=true] .touch-controls{padding:8px 6px;border:0;background:none;gap:8px 22px}.mini-game-section .dance-panel[data-play-active=true] .game-instruction{display:none}.mini-game-section .dance-panel[data-play-active=true] .game-actions{gap:22px}.mini-game-section .dance-panel[data-play-active=true] .game-actions button{font-size:13px}.mini-game-section .dance-panel[data-play-active=true]{overflow-y:auto!important}.immersive-growth .scene-heading{top:22px;left:20px;right:20px;max-width:none!important}.immersive-growth .scene-heading h2{font-size:clamp(29px,7vw,38px);max-width:20ch}.immersive-growth .scene-media>img,.immersive-growth .scene-media>video{object-fit:contain;object-position:center top;top:145px;height:auto;aspect-ratio:1916/1080}.immersive-growth .growth-scene::before{display:block}.closing-socials{gap:10px;margin-top:24px}.closing-social{width:100%;max-width:360px;justify-content:flex-start;padding:12px 18px}}
@media(max-width:400px) and (max-height:750px){.mini-game-section .dance-panel[data-play-active=true] .game-scene{flex-basis:115px;min-height:115px}.mini-game-section .dance-panel[data-play-active=true] .game-bottom{gap:6px;padding:10px}.mini-game-section .dance-panel[data-play-active=true] .sequence-arrow{width:42px;height:44px}.mini-game-section .dance-panel[data-play-active=true] .sequence-note{display:none}}
@media(max-width:767px){
 .mini-game-section .lights-panel{gap:16px}
 .mini-game-section .lights-copy{display:contents}
 .mini-game-section .lights-copy>.eyebrow{order:1}
 .mini-game-section .lights-copy>h3{order:2;margin:0}
 .mini-game-section .lights-goal{order:3;margin-top:4px}
 .mini-game-section .lights-stage{order:4;margin:28px auto 20px}
 .mini-game-section .lights-rules{order:5;margin:0}
 .mini-game-section .lights-example{order:6;margin:0}
 .mini-game-section .lights-stats{order:7;margin:8px 0}
 .mini-game-section .lights-free-play{order:8}
 .mini-game-section #lights-reset{order:9;align-self:flex-start;margin:0}
 .mini-game-section .lights-restart-note{order:10}
 .mini-game-section #lights-message{order:11}
 section.growth-section.immersive-growth{height:max(520px,calc(56.367vw + 300px))}
 .immersive-growth .scene-controls{bottom:32px}
 .mini-game-section .dance-panel[data-play-active=true] .game-topbar{padding:12px;gap:6px;flex-direction:row}
 .mini-game-section .dance-panel[data-play-active=true] .song-select-label{flex:0 1 calc(100% - 116px);width:calc(100% - 116px);max-width:calc(100% - 116px);min-height:46px}
 .mini-game-section .dance-panel[data-play-active=true] .song-select-label select{text-overflow:ellipsis;padding-right:4px}
}
@media(max-width:400px) and (max-height:750px){.mini-game-section .dance-panel[data-play-active=true] .game-scene{flex-basis:82px;min-height:82px}.mini-game-section .dance-panel[data-play-active=true] .game-bottom{gap:4px;padding:8px}}
@media(prefers-reduced-motion:reduce){.closing-social{transition:none}}
@media(min-width:600px) and (max-height:600px){
 .mini-game-section .dance-panel[data-play-active=true]{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 16px);inset:8px!important;max-height:calc(100dvh - 16px)!important;overflow:hidden!important}
 .mini-game-section .dance-panel[data-play-active=true] .game-topbar{grid-column:1/-1;grid-row:1;min-height:64px;padding:10px 138px 10px 15px;flex-wrap:nowrap}
 .mini-game-section .dance-panel[data-play-active=true] .game-stats{width:auto;gap:10px}.mini-game-section .dance-panel[data-play-active=true] .game-stats b{font-size:20px}.mini-game-section .dance-panel[data-play-active=true] .game-stats small{font-size:8px}
 .mini-game-section .dance-panel[data-play-active=true] .game-scene{grid-column:1;grid-row:2;min-height:0;height:100%}
 .mini-game-section .dance-panel[data-play-active=true] .game-bottom{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 246px;grid-template-rows:auto minmax(0,1fr) auto;overflow-y:auto;justify-content:flex-start;padding:12px;gap:8px}
 .mini-game-section .dance-panel[data-play-active=true] .sequence-row{grid-column:1/-1;grid-row:1}
 .mini-game-section .dance-panel[data-play-active=true] .beat-row{grid-column:1;grid-row:2;gap:6px}
 .mini-game-section .dance-panel[data-play-active=true] .beat-row .control-step{min-width:20px}
 .mini-game-section .dance-panel[data-play-active=true] .touch-controls{grid-column:2;grid-row:2/span 2}
 .mini-game-section .dance-panel[data-play-active=true] .game-actions{grid-column:1;grid-row:3;flex-wrap:wrap;gap:4px!important}
 .mini-game-section .dance-panel[data-play-active=true] .sequence-arrow{width:44px;height:44px;font-size:29px}.mini-game-section .dance-panel[data-play-active=true] .control-step{font-size:11px;margin-bottom:6px}.mini-game-section .dance-panel[data-play-active=true] .sequence-note,.mini-game-section .dance-panel[data-play-active=true] .game-instruction,.mini-game-section .dance-panel[data-play-active=true] .game-local-note{display:none}
 .mini-game-section .dance-panel[data-play-active=true] .touch-controls{padding:6px;gap:6px 12px}.mini-game-section .dance-panel[data-play-active=true] .dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px}.mini-game-section .dance-panel[data-play-active=true] .touch-beat{min-height:80px;min-width:60px;font-size:17px}.mini-game-section .dance-panel[data-play-active=true] .game-actions{gap:18px}.mini-game-section .dance-panel[data-play-active=true] .game-actions button{font-size:12px}
}
