.content-tier-controls{display:flex;align-items:center;gap:8px;min-height:44px;margin:6px 0 10px}.content-tier-controls[hidden]{display:none}.content-tier-controls label{margin:0;flex:none;font-size:13px}.content-tier-controls select{min-height:44px;max-width:100%;width:auto;min-width:0;flex:1;margin:0}.content-pack-panel{margin-top:16px;padding:14px;border:1px solid #cfdfd7;border-radius:12px;background:#f3f8f4}.content-pack-panel h3{font-size:17px;margin:0 0 8px}.content-pack-panel select{max-width:100%;min-height:44px}.content-pack-panel .btn{min-height:44px;margin:4px 6px 0 0}.content-pack-panel p{line-height:1.5}.content-pack-panel [hidden]{display:none}#content-pack-next{margin-top:10px}@media(max-width:640px){.content-tier-controls{margin:4px 0 8px}.content-tier-controls select{font-size:14px}.content-pack-panel{padding:12px}.content-pack-panel .btn{max-width:100%}}
@media(max-width:640px){.game-layout[data-newgame] .wave3-game{margin:6px auto}.game-layout[data-newgame] .wave3-score{margin:4px 0 8px;line-height:1.4}.game-layout[data-newgame] .wave3-note{margin:8px 0 0}.game-layout[data-newgame] .wave3-result{margin:6px 0}.game-layout[data-newgame] .ballistic-powers{gap:8px}}
/* Large protected Nonograms retain every readable clue and every cell on the
   narrow play surface. Block buttons remove inline-baseline row gaps. */
@media(max-width:640px){[data-content-grid=nonogram] #game-board table{border-spacing:0;line-height:1.15}[data-content-grid=nonogram] #game-board th{font-size:11px;line-height:1.15;padding:2px;white-space:nowrap}[data-content-grid=nonogram] #game-board .cell{display:block;width:clamp(28px,8vw,34px);height:clamp(28px,8vw,34px);min-height:28px;min-width:28px;line-height:1;padding:0;font-size:16px}}
@media(max-width:640px){[data-content-grid=shikaku] #game-board .rect-grid{width:min(100%,calc(var(--content-grid-columns)*42px));grid-template-columns:repeat(var(--content-grid-columns),minmax(0,1fr))!important}[data-content-grid=shikaku] #game-board .rect-grid .cell{display:block;width:100%;height:auto;min-width:28px;min-height:28px;aspect-ratio:1;line-height:1;padding:0;font-size:15px}}
@media(max-width:640px){.game-layout[data-newgame] #game-board .next-reversi{max-width:252px}.game-layout[data-newgame] #game-board .next-reversi .next-cell{font-size:36px}}
/* Eleven Plus piles remain visible without shrinking touch targets or labels. */
@media(max-width:640px){.game-layout[data-newgame] #game-board .wave-accordion .wave-cell{min-height:60px;padding:5px;display:grid;grid-template-columns:1fr 1fr;gap:2px 4px}.game-layout[data-newgame] #game-board .wave-accordion .wave-label{grid-row:1;grid-column:1;font-size:11px}.game-layout[data-newgame] #game-board .wave-accordion .wave-cell small{grid-row:1;grid-column:2;font-size:11px}.game-layout[data-newgame] #game-board .wave-accordion .pile-face{grid-row:2;grid-column:1/-1;font-size:1.15rem}}
