/* QA 2026-10-05 16:42: final overrides, after typography/theme styles.
   Keep readable labels; allocate space instead of clipping enlarged text. */
.game-modal .wb-game .wb-live{height:auto!important;max-height:none!important;overflow:visible!important;min-height:28px;line-height:1.5!important;padding:3px 6px!important}
.game-modal .sky-game .sky-feedback{height:auto!important;max-height:none!important;min-height:0;line-height:1.5!important;overflow:visible!important;padding:5px 8px!important;box-sizing:border-box}
.game-modal .safari-study .safari-study-note{display:none!important}
.game-modal .energy-mole .em-meter{background:#d9efe0!important}
.game-modal .energy-mole .em-meter>i{background:#9cddb6!important}
.game-modal .energy-mole .em-meter>span{color:#173c31!important;text-shadow:none}
.game-modal .wb-game .wb-controls{background:transparent!important;padding:0!important}
.game-modal .game-modal-head>button{background:var(--ct-soft,#254552)!important;color:var(--ct-ink,#effff6)!important;border:1px solid var(--ct-line,#61878c)!important}
@media(max-width:1000px){
 .game-modal .sky-game .sky-actions>button,.game-modal .sky-game .sky-controls>.sky-shield{font-size:16px!important;line-height:1.15!important;padding:3px 2px!important}
 .game-modal .wb-game,.game-modal .energy-mole{position:relative}
 .game-modal .wb-board:has(>.wb-board-overlay),.game-modal .em-arena:has(>.em-overlay){position:static!important;overflow:visible!important}
 .game-modal .wb-game .wb-board-overlay,.game-modal .energy-mole .em-overlay{position:absolute!important;inset:0!important;z-index:20;max-height:100%;overflow:auto;overscroll-behavior:contain;justify-content:flex-start!important;padding:16px!important;background:var(--ct-panel,#163340);color:var(--ct-ink,#f2fff8);border-radius:12px}
 .game-modal .wb-game .wb-board-overlay>*,.game-modal .energy-mole .em-overlay>*{flex-shrink:0;max-width:100%}
 .game-modal .wb-game .wb-board-overlay b,.game-modal .energy-mole .em-overlay h3{font-size:24px!important;line-height:1.4}
 .game-modal .energy-mole .em-overlay p,.game-modal .energy-mole .em-overlay small{font-size:17px!important;line-height:1.5}
 .game-modal .energy-mole{width:100%;min-width:0;height:100%!important;min-height:0!important;max-height:none;grid-template-rows:32px auto minmax(0,1fr) 22px 44px 46px;gap:4px!important}
 .game-modal .energy-mole .em-mission{min-width:0;flex-direction:column;padding:5px 8px!important;gap:4px}
 .game-modal .energy-mole .em-mission h3{font-size:28px!important;line-height:1.3}
 .game-modal .energy-mole .em-mission small{font-size:13px!important}
 .game-modal .energy-mole .em-feedback{max-height:44px;overflow:auto;line-height:1.4;font-size:16px!important;margin:0!important}
 .game-modal .energy-mole .em-word{max-width:100%;min-width:0;flex-wrap:wrap;justify-content:center}
 .game-modal .energy-mole .em-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-width:0}
 .game-modal .energy-mole .em-actions button{font-size:16px!important;line-height:1.3;min-height:44px;min-width:0;padding:4px!important}
 .game-modal .energy-mole .em-actions small{display:none}
 .game-modal:has(.sentence-festival) .game-body{overflow:hidden!important}
 .game-modal .sentence-festival{display:flex!important;flex-direction:column;height:100%;min-height:0;gap:4px!important}
 .game-modal .sentence-festival>*{flex-shrink:0}
 .game-modal .sentence-festival .game-stats{margin:0!important;padding:4px 6px!important;font-size:16px!important}
 .game-modal .sentence-festival .sentence-prompt{padding:5px 8px!important;max-height:120px;overflow:auto;margin:0!important}
 .game-modal .sentence-festival .sentence-prompt strong{font-size:22px!important;line-height:1.4}
 .game-modal .sentence-festival .sentence-workspace{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .game-modal .sentence-festival .sentence-board{margin:4px 0!important;min-height:44px!important;padding:5px!important;font-size:16px!important}
 .game-modal .sentence-festival .token-pool{margin:4px 0!important;gap:5px}
 .game-modal .sentence-festival .token-pool button,.game-modal .sentence-festival .sentence-board button{min-height:44px;font-size:18px!important;padding:5px 8px!important}
 .game-modal .sentence-festival .sentence-hint{max-height:50px;overflow:auto;padding:4px 6px!important;margin:0!important;font-size:16px!important;line-height:1.4}
 .game-modal .sentence-festival .sentence-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:4px;margin:0!important}
 .game-modal .sentence-festival .sentence-actions button{min-height:46px;font-size:17px!important;padding:4px!important}
 .game-modal .sentence-festival>small{font-size:12px!important;line-height:1.4}
 .game-modal:has(.wb-game) .game-body{overflow:hidden!important}
 .game-modal .wb-game{height:100%;min-height:0;display:flex;flex-direction:column}
 .game-modal .wb-game .wb-heading{flex:0 0 auto;margin:0 0 4px!important}
 .game-modal .wb-game .wb-tier-track,.game-modal .wb-game .wb-stage-launch,.game-modal .wb-game .wb-board-title,.game-modal .wb-game .wb-progress,.game-modal .wb-game .wb-eyebrow{display:none!important}
 .game-modal .wb-game .wb-layout{flex:1;min-height:0;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:4px!important}
 .game-modal .wb-game .wb-play-area{grid-row:2;min-height:0;height:100%;align-self:stretch;display:flex;flex-direction:column}
 .game-modal .wb-game .wb-board{flex:1;min-height:0;display:flex;flex-direction:column}
 .game-modal .wb-game .wb-grid{flex:1;min-height:0;grid-template-rows:repeat(var(--wb-rows,12),minmax(0,1fr))!important;gap:1px!important;padding:3px!important}
 .game-modal .wb-game .wb-cell{min-height:0;overflow:hidden}
 .game-modal .wb-game .wb-cell img{height:100%;max-height:100%;object-fit:contain}
 .game-modal .wb-game .wb-controls{flex:0 0 auto;margin:4px 0 0!important;gap:3px}
 .game-modal .wb-game .wb-controls button{height:46px;min-height:46px;padding:3px;font-size:20px!important}
 .game-modal .wb-game .wb-quiz{grid-row:1;display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;gap:3px 6px;max-height:none!important;overflow:visible!important;padding:6px!important;align-content:start}
 .game-modal .wb-game .wb-quiz-label,.game-modal .wb-game .wb-emoji,.game-modal .wb-game .wb-quiz>p:not(.wb-live),.game-modal .wb-game .wb-help{display:none!important}
 .game-modal .wb-game .wb-quiz h3{grid-area:1/1;margin:0!important;padding:0!important;font-size:28px!important;line-height:1.3!important;align-self:center}
 .game-modal .wb-game .wb-answer-slots{grid-area:2/1;margin:0!important;gap:3px;justify-content:flex-start}
 .game-modal .wb-game .wb-answer-slots span{font-size:20px!important;min-width:20px;min-height:28px;height:28px;line-height:28px;padding:0}
 .game-modal .wb-game .wb-next{grid-area:1/2/3/3;display:flex!important;flex-direction:column;align-self:center;padding:0!important;margin:0!important}
 .game-modal .wb-game .wb-next>small{font-size:12px!important}
 .game-modal .wb-game .wb-next>div{display:flex;gap:3px}
 .game-modal .wb-game .wb-mini-grid{grid-template-columns:repeat(4,6px)!important;grid-template-rows:repeat(4,6px)!important}
 .game-modal .wb-game .wb-piece-preview small{font-size:10px!important}
 .game-modal .wb-game .wb-live{grid-area:3/1/4/3;margin:0!important;font-size:16px!important}
 .game-modal .wb-game .wb-actions,.game-modal .wb-game .wb-success{grid-area:4/1/5/3;margin:0!important}
 .game-modal .wb-game .wb-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important}
 .game-modal .wb-game .wb-actions button{font-size:16px!important;line-height:1.2;min-width:0;min-height:46px;height:46px;padding:2px!important;white-space:normal;overflow-wrap:anywhere}
 .game-modal:has(.safari-study) .game-body{overflow:hidden!important}
 .game-modal .safari-study{display:flex;flex-direction:column;height:100%;min-height:0;gap:4px}
 .game-modal .safari-study>*{flex-shrink:0}
 .game-modal .safari-study .safari-study-board{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .game-modal .safari-study .safari-study-grid{height:100%;grid-auto-rows:minmax(60px,1fr);gap:4px!important}
 .game-modal .safari-study .safari-study-card{height:100%!important;min-height:60px!important}
 .game-modal .safari-study .safari-card-front img{height:calc(100% - 24px);min-height:0;object-fit:contain}
 .game-modal .safari-study .safari-study-actions{margin:0!important;gap:4px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .game-modal .safari-study .safari-study-actions button{font-size:16px!important;line-height:1.3;min-height:46px;padding:4px!important}
 .game-modal .safari-study .safari-study-feedback{max-height:56px;overflow:auto;margin:0!important;padding:4px 6px!important;font-size:16px!important;line-height:1.4}
 .game-modal .safari-study .safari-study-guide{font-size:16px!important;line-height:1.4!important;margin:0!important}
 .game-modal .safari-study .safari-study-stats{font-size:16px!important;margin:0!important;padding:4px 6px!important;gap:4px}
}
@media(max-width:1000px) and (max-height:700px){
 .game-modal .sentence-festival .sentence-constellation{display:none}
 .game-modal .sentence-festival>small{display:none}
 .game-modal .safari-study .safari-mode-row{display:none!important}
 .game-modal .safari-study .eco-match-steps{margin:0!important;padding:0!important;min-height:26px}
 .game-modal .safari-study .eco-match-steps li{font-size:14px!important;padding:3px 5px!important;min-height:26px}
}
@media(min-width:520px) and (max-width:1000px) and (max-height:550px){
 .game-modal .sky-game .sky-actions>button,.game-modal .sky-game .sky-controls>.sky-shield{font-size:16px!important;line-height:1.15!important;padding:3px 2px!important}
 .game-modal .sky-game .sky-layout{grid-template-columns:minmax(0,1fr) 180px 100px;grid-template-rows:minmax(100px,auto) minmax(0,1fr) 48px;gap:4px}
 .game-modal .sky-game .sky-field,.game-modal .sky-game[data-learning=true] .sky-field{grid-area:1/1/4/2;align-self:center}
 .game-modal .sky-game .sky-quiz>h3.sky-question-title{grid-area:1/2/2/4;text-align:center;max-height:128px!important;overflow:auto!important;font-size:26px!important;align-self:start}
 .game-modal .sky-game .sky-word{grid-area:2/2/3/4;align-self:start;padding:0;margin:0;gap:3px}
 .game-modal .sky-game .sky-actions{grid-area:3/2;margin:0}
 .game-modal .sky-game .sky-controls{grid-area:3/3;margin:0}
 .game-modal .sky-game .sky-feedback{left:auto;right:4px;width:276px;bottom:52px;max-height:calc(100% - 208px)!important;overflow:auto!important;pointer-events:auto;font-size:16px!important}
 .game-modal .sky-game .sky-modifier-status{left:4px;right:auto;top:auto;bottom:4px;width:calc(100% - 300px)}
 .game-modal .sentence-festival{display:grid!important;grid-template-columns:minmax(240px,.9fr) minmax(0,1fr);grid-template-rows:32px minmax(0,1fr) 40px 46px 46px;gap:4px!important}
 .game-modal .sentence-festival .game-stats{grid-area:1/1/2/3}
 .game-modal .sentence-festival .sentence-prompt{grid-area:2/1;min-height:0;height:100%;max-height:none}
 .game-modal .sentence-festival .sentence-workspace{grid-area:2/2/6/3;height:100%;min-height:0}
 .game-modal .sentence-festival .sentence-hint{grid-area:3/1;height:100%;max-height:40px}
 .game-modal .sentence-festival .sentence-actions{grid-area:4/1}
 .game-modal .sentence-festival .sentence-actions+.sentence-actions{grid-area:5/1}
 .game-modal .sentence-festival .sentence-actions button{font-size:16px!important;line-height:1.15!important;padding:2px!important}
 .game-modal .energy-mole{height:100%!important;min-height:0!important;max-height:none;grid-template-columns:minmax(220px,.85fr) minmax(0,1.65fr);grid-template-rows:32px minmax(0,1fr) 22px 50px 46px;gap:4px!important}
 .game-modal .energy-mole .em-stats{grid-area:1/1;font-size:16px!important}
 .game-modal .energy-mole .em-mission{grid-area:2/1;min-height:0;overflow:auto;padding:4px 6px!important;gap:4px}
 .game-modal .energy-mole .em-mission h3{font-size:26px!important;line-height:1.3}
 .game-modal .energy-mole .em-mission small{font-size:13px!important}
 .game-modal .energy-mole .em-word{gap:3px;justify-content:center;flex-wrap:wrap}
 .game-modal .energy-mole .em-word>span{width:26px;height:30px;font-size:22px!important}
 .game-modal .energy-mole .em-arena{grid-area:1/2/6/3;height:100%!important;min-height:0!important}
 .game-modal .energy-mole .em-meter{grid-area:3/1}
 .game-modal .energy-mole .em-feedback{grid-area:4/1;overflow:auto;max-height:50px;line-height:1.4;font-size:16px!important;margin:0!important}
 .game-modal .energy-mole .em-actions{grid-area:5/1;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0}
 .game-modal .energy-mole .em-actions button{min-height:44px;padding:2px!important;font-size:16px!important;line-height:1.15}
 .game-modal .energy-mole .em-actions small{display:none}
 .game-modal:has(.wb-game) .game-body{overflow:hidden!important}
 .game-modal .wb-game{height:100%;min-height:0;display:flex;flex-direction:column}
 .game-modal .wb-game .wb-heading{flex:0 0 auto;margin:0 0 4px!important}
 .game-modal .wb-game .wb-tier-track,.game-modal .wb-game .wb-stage-launch,.game-modal .wb-game .wb-board-title,.game-modal .wb-game .wb-progress,.game-modal .wb-game .wb-eyebrow{display:none!important}
 .game-modal .wb-game .wb-layout{flex:1;min-height:0;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(270px,.9fr);grid-template-rows:minmax(0,1fr);gap:8px!important}
 .game-modal .wb-game .wb-play-area{grid-area:1/1;min-height:0;display:flex;flex-direction:column}
 .game-modal .wb-game .wb-board{flex:1;min-height:0;display:flex;flex-direction:column}
 .game-modal .wb-game .wb-grid{flex:1;min-height:0;grid-template-rows:repeat(var(--wb-rows,12),minmax(0,1fr))!important;gap:1px!important;padding:3px!important}
 .game-modal .wb-game .wb-cell{min-height:0;overflow:hidden}
 .game-modal .wb-game .wb-cell img{height:100%;max-height:100%;object-fit:contain}
 .game-modal .wb-game .wb-controls{flex:0 0 auto;margin:4px 0 0!important;gap:3px}
 .game-modal .wb-game .wb-controls button{height:46px;min-height:46px;padding:3px;font-size:20px!important}
 .game-modal .wb-game .wb-quiz{grid-area:1/2;display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr) auto;gap:3px 6px;min-height:0;height:100%;max-height:none!important;overflow:hidden!important;padding:6px!important;align-content:stretch}
 .game-modal .wb-game .wb-quiz-label,.game-modal .wb-game .wb-emoji,.game-modal .wb-game .wb-quiz>p:not(.wb-live),.game-modal .wb-game .wb-help{display:none!important}
 .game-modal .wb-game .wb-quiz h3{grid-area:1/1;margin:0!important;padding:0!important;font-size:28px!important;line-height:1.3!important;align-self:center}
 .game-modal .wb-game .wb-answer-slots{grid-area:2/1;margin:0!important;gap:3px;justify-content:flex-start}
 .game-modal .wb-game .wb-answer-slots span{font-size:20px!important;min-width:20px;min-height:28px;height:28px;line-height:28px;padding:0}
 .game-modal .wb-game .wb-next{grid-area:1/2/3/3;display:flex!important;flex-direction:column;align-self:center;padding:0!important;margin:0!important}
 .game-modal .wb-game .wb-next>small{font-size:12px!important}
 .game-modal .wb-game .wb-next>div{display:flex;gap:3px}
 .game-modal .wb-game .wb-mini-grid{grid-template-columns:repeat(4,6px)!important;grid-template-rows:repeat(4,6px)!important}
 .game-modal .wb-game .wb-piece-preview small{font-size:10px!important}
 .game-modal .wb-game .wb-live{grid-area:3/1/4/3;align-self:center;margin:0!important;font-size:16px!important;overflow:auto!important;max-height:100%!important}
 .game-modal .wb-game .wb-actions,.game-modal .wb-game .wb-success{grid-area:4/1/5/3;margin:0!important}
 .game-modal .wb-game .wb-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important}
 .game-modal .wb-game .wb-actions button{font-size:16px!important;line-height:1.15;min-width:0;min-height:44px;padding:2px!important;white-space:normal;overflow-wrap:anywhere}
 .game-modal .safari-study .safari-mode-row{display:none!important}
 .game-modal .safari-study .eco-match-steps{margin:0 0 4px!important;padding:0!important;min-height:26px}
 .game-modal .safari-study .eco-match-steps li{font-size:14px!important;padding:3px 8px!important;min-height:26px}
 .game-modal .safari-study .safari-study-guide{font-size:16px!important;line-height:1.5!important;margin:3px 0!important}
 .game-modal .safari-study .safari-study-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px;margin-top:4px}
 .game-modal .safari-study .safari-study-actions button{font-size:16px!important;line-height:1.3;min-height:46px;padding:4px!important}
 .game-modal .safari-study .safari-study-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important}
 .game-modal .safari-study .safari-study-card{min-height:44px!important}
 .game-modal .safari-study .safari-card-back small{font-size:11px!important}
}
/* IMG_5766: feedback has its own row, never floats over the player's plane. */
/* Surface/desktop: a definite flex height prevents resize-to-content feedback. */
@media(min-width:1001px){
 html.eco-game-open:has(.sky-game) .eco-experience-panel{left:auto;bottom:auto;top:calc(var(--eco-modal-top,10px) + 8px);right:calc(var(--eco-modal-right,10px) + 124px);z-index:150}
 html.eco-game-open:has(.sky-game) .eco-experience-panel:not([open]){width:44px}
 html.eco-game-open:has(.sky-game) .eco-experience-panel summary{font-size:0;padding:8px;display:grid;place-items:center}
 html.eco-game-open:has(.sky-game) .eco-experience-panel summary::after{content:'⚙';font-size:20px}
 .game-modal:has(.sky-game) .game-body{flex:1 1 0;min-height:0;overflow:hidden;padding:8px 12px!important}
 .game-modal:has(.sky-game) .game-modal-head{padding:8px 12px!important;min-height:56px}
 .game-modal:has(.sky-game) .eco-guide-help-button{right:68px;top:8px}
 .game-modal:has(.sky-game) .eco-screen-options{padding:4px 12px!important;gap:6px}
 .game-modal:has(.sky-game) .eco-screen-options button{min-height:44px;padding:4px 12px;font-size:16px;line-height:1.2}
 .game-modal:has(.sky-game) .eco-screen-options small{font-size:13px}
 .game-modal .sky-game{height:100%;min-height:0}
 .game-modal .sky-game .sky-topline{display:none}
 .game-modal .sky-game .sky-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch}
 .game-modal .sky-game .sky-flight{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 48px;gap:6px}
 .game-modal .sky-game .sky-field{grid-area:1/1;align-self:center;justify-self:center;width:var(--eco-sky-width)!important;height:var(--eco-sky-height)!important;box-sizing:border-box;max-height:100%;margin:0;border-width:2px}
 .game-modal .sky-game .sky-controls{grid-area:2/1;margin:0;gap:6px;height:48px}
 .game-modal .sky-game .sky-controls button{min-height:44px;height:48px;padding:4px;font-size:20px;line-height:1.2}
 .game-modal .sky-game .sky-quiz{height:100%;min-height:0;max-height:none!important;overflow:hidden!important;display:grid;grid-template-rows:auto 52px minmax(0,1fr) 48px;gap:10px;padding:12px!important;align-content:stretch;background:var(--ct-soft,#173a45);color:var(--ct-ink,#effff6)}
 .game-modal .sky-game .sky-quiz>:not(.sky-question-title):not(.sky-word):not(.sky-feedback):not(.sky-actions){display:none!important}
 .game-modal .sky-game .sky-question-title{grid-area:1/1;margin:0!important;padding:6px!important;font-size:36px!important;line-height:1.3!important}
 .game-modal .sky-game .sky-question-meaning{line-height:1.3!important}
 .game-modal .sky-game .sky-question-caption{font-size:16px!important;line-height:1.4!important}
 .game-modal .sky-game .sky-word{grid-area:2/1;align-self:center;margin:0;justify-content:center;gap:4px;min-width:0}
 .game-modal .sky-game .sky-word>span{flex:0 1 42px;min-width:0}
 .game-modal .sky-game .sky-word b{width:100%;height:42px;font-size:28px!important;line-height:40px;box-sizing:border-box}
 .game-modal .sky-game .sky-word small{display:none}
 .game-modal .sky-game .sky-feedback{grid-area:3/1;position:static!important;align-self:stretch;min-height:0;max-height:100%!important;overflow:auto!important;margin:0!important;padding:10px!important;font-size:20px!important;line-height:1.5!important;background:var(--ct-panel,#102b37);color:var(--ct-ink,#effff6)}
 .game-modal .sky-game .sky-actions{grid-area:4/1;align-self:end;margin:0;gap:6px}
 .game-modal .sky-game .sky-actions button{min-height:44px;height:48px;padding:4px;font-size:18px;line-height:1.2}
 .game-modal .sky-game .sky-overlay{overflow:auto;justify-content:flex-start;padding:12px;gap:8px}
 .game-modal .sky-game .sky-overlay>*{flex-shrink:0}
}
@media(max-width:1000px){
 .game-modal .game-modal-head,.game-modal:has(.sky-game) .game-modal-head{height:calc(48px + var(--eco-safe-top,env(safe-area-inset-top)))!important;min-height:calc(48px + var(--eco-safe-top,env(safe-area-inset-top)))!important;padding:calc(2px + var(--eco-safe-top,env(safe-area-inset-top))) max(8px,env(safe-area-inset-right)) 2px max(8px,env(safe-area-inset-left))!important}
 .game-modal .eco-screen-options{top:calc(2px + var(--eco-safe-top,env(safe-area-inset-top)))!important;right:calc(106px + env(safe-area-inset-right))}
 .game-modal .eco-guide-help-button{top:calc(2px + var(--eco-safe-top,env(safe-area-inset-top)))!important;right:calc(106px + env(safe-area-inset-right))}
 .game-modal:has(.eco-guide-help-button) .eco-screen-options{right:calc(156px + env(safe-area-inset-right))}
 .game-modal .eco-screen-options[data-open=true]{top:calc(48px + var(--eco-safe-top,env(safe-area-inset-top)))!important;right:max(6px,env(safe-area-inset-right))}
 .game-modal:has(.eco-guide-help-button) .eco-screen-options[data-open=true]{right:max(6px,env(safe-area-inset-right))}
 html.eco-game-open .eco-experience-panel,html.eco-game-open:has(.sky-game) .eco-experience-panel{top:calc(2px + var(--eco-visible-top,0px) + var(--eco-safe-top,env(safe-area-inset-top)));right:calc(56px + env(safe-area-inset-right))}
 .game-modal .game-body,.game-modal:has(.sky-game) .game-body{padding-right:max(4px,env(safe-area-inset-right))!important;padding-left:max(4px,env(safe-area-inset-left))!important;padding-bottom:max(4px,var(--eco-safe-bottom,env(safe-area-inset-bottom)))!important}
 .game-modal .sky-game .sky-layout{grid-template-rows:var(--eco-sky-question-height,100px) minmax(0,1fr) 44px 48px;gap:4px}
 .game-modal .sky-game .sky-quiz>h3.sky-question-title{grid-area:1/1/2/4;align-self:start;padding:3px 8px!important;font-size:32px!important;line-height:1.25!important;gap:0;min-height:0}
 .game-modal .sky-game .sky-question-caption{font-size:12px!important;line-height:1.3!important}
 .game-modal .sky-game .sky-question-meaning{line-height:1.25!important}
 .game-modal .sky-game .sky-word{grid-area:1/1/2/4;align-self:end;height:36px;min-height:0;padding:0;margin:0;gap:3px}
 .game-modal .sky-game .sky-word b{height:34px;min-height:0;font-size:24px!important;line-height:32px}
 .game-modal .sky-game .sky-field,.game-modal .sky-game[data-learning=true] .sky-field{grid-area:2/1/3/4;align-self:center}
 .game-modal .sky-game .sky-feedback{position:static!important;grid-area:3/1/4/4;align-self:stretch;box-sizing:border-box;width:100%;height:44px;max-height:44px!important;min-height:0;overflow:auto!important;overscroll-behavior:contain;pointer-events:auto;margin:0!important;padding:2px 6px!important;font-size:16px!important;line-height:1.25!important;border-radius:8px;background:var(--ct-soft,#12383d);color:var(--ct-ink,#effff6)}
 .game-modal .sky-game .sky-actions{grid-area:4/1/5/3;margin:0}
 .game-modal .sky-game .sky-controls{grid-area:4/3/5/4;margin:0}
 /* Equipment effects already have a dedicated in-field HUD; don't duplicate a floating panel. */
 .game-modal .sky-game .sky-modifier-status{display:none!important}
}
@media(min-width:520px) and (max-width:1000px) and (max-height:550px){
 .game-modal .sky-game .sky-layout{grid-template-columns:minmax(0,1fr) 180px 100px;grid-template-rows:minmax(0,1fr) 36px 44px 48px;gap:4px}
 .game-modal .sky-game .sky-field,.game-modal .sky-game[data-learning=true] .sky-field{grid-area:1/1/5/2}
 .game-modal .sky-game .sky-quiz>h3.sky-question-title{grid-area:1/2/2/4;align-self:center;max-height:100%!important;overflow:auto!important;font-size:26px!important}
 .game-modal .sky-game .sky-word{grid-area:2/2/3/4}
 .game-modal .sky-game .sky-feedback{grid-area:3/2/4/4;width:100%}
 .game-modal .sky-game .sky-actions{grid-area:4/2/5/3}
 .game-modal .sky-game .sky-controls{grid-area:4/3/5/4}
}
