/* Tower presentation only. Block speed, overlap, checkpoint and records remain owned by game.js. */
body.tower-presentation { font-family:"GomgomKkalkkeum",system-ui,sans-serif; }
.tower-presentation .arcade-stage { display:flex; flex-direction:column; background:#dcecf1; }
.tower-presentation .arcade-stage canvas { width:min(100%,960px); }
.tower-presentation .arcade-hud { position:static; order:-2; width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:8px; background:#edf4f3; border-bottom:1px solid #c7dcd5; }
.tower-presentation .arcade-hud span { min-width:0; padding:0 8px; background:none; border-radius:0; color:#263f43; text-shadow:none; text-align:center; font-size:20px; line-height:1.2; }
.tower-presentation .arcade-hud span+span { border-left:1px solid #c7dcd5; }
.tower-presentation .arcade-hud small { font-size:14px; line-height:1.4; letter-spacing:0; color:#3c5c61; white-space:nowrap; }
.tower-meta { order:-1; display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; padding:6px 12px; font-size:14px; line-height:1.4; color:#344d54; background:#f6f6ee; border-bottom:1px solid #c7dcd5; }
.tower-meta #patternHud { font-weight:800; }
.tower-meta b { font-size:16px; color:#704b1b; }
.tower-presentation .arcade-primary,.tower-presentation .arcade-touch button,
.tower-presentation .retry-button,.tower-presentation .score-submit button { min-height:48px; font-size:16px; transform:none; transition:background-color .12s,box-shadow .12s; }
.tower-presentation .arcade-primary { min-height:56px; min-width:160px; background:#805726; color:#fff; }
.tower-presentation .arcade-touch button { min-height:56px; background:#805726; color:#fff; border:1px solid #654018; box-shadow:inset 0 1px 0 #ffffff35; }
.tower-presentation .arcade-touch button:hover { background:#69451e; filter:none; }
.tower-presentation .arcade-touch button:active,.tower-presentation .arcade-primary:active,
.tower-presentation .retry-button:active,.tower-presentation .score-submit button:active { transform:none; box-shadow:inset 0 3px 0 #0003; }
.tower-presentation .arcade-primary:focus-visible,.tower-presentation .arcade-touch button:focus-visible,
.tower-presentation .retry-button:focus-visible,.tower-presentation .score-submit button:focus-visible,
.tower-presentation .score-submit input:focus-visible { outline:3px solid #245269; outline-offset:3px; }
.tower-presentation .score-submit input { min-height:48px; min-width:0; font-size:16px; }
.tower-presentation .arcade-dialog h2 { font-size:28px; }
.tower-presentation .arcade-dialog .final-score { font-size:38px; line-height:1.1; }
.tower-presentation .arcade-dialog .final-summary { font-size:14px; }
.tower-presentation .teacher-game-ad--fallback { max-width:100%; grid-template-columns:minmax(0,1fr); }
.tower-presentation .teacher-game-ad--fallback .coupang-partners-disclosure,
.tower-presentation .teacher-game-ad--fallback .coupang-partners-frame,
.tower-presentation .teacher-game-ad--fallback .coupang-partners-frame ins { min-width:0; max-width:100%; }
.tower-presentation .teacher-game-ad--fallback .coupang-partners-frame { grid-template-columns:minmax(0,1fr); }
.tower-presentation .teacher-game-ad--fallback .coupang-partners-frame ins { display:block; }
@media(max-width:720px) {
 .tower-presentation .arcade-stage canvas { width:100%; }
 .tower-presentation .arcade-hud { padding:8px 2px; }
 .tower-presentation .arcade-hud span { padding:0 3px; font-size:18px; }
 .tower-presentation .arcade-dialog { padding:16px; }
 .tower-meta { padding:6px 8px; }
}
@media(orientation:landscape) and (max-height:520px) {
 .tower-presentation .teacher-game-card { display:grid; grid-template-columns:minmax(0,1fr) 144px; }
 .tower-presentation .arcade-stage { grid-column:1; grid-row:1 / 3; height:calc(100svh - 104px); }
 .tower-presentation .arcade-stage:has(#gameResult:not([hidden])) { min-height:0; }
 .tower-presentation .arcade-stage canvas { width:min(100%,calc((100svh - 192px)*16/9)); max-height:none; }
 .tower-presentation .arcade-hud { padding:6px; }
 .tower-presentation .arcade-hud span { font-size:18px; }
 .tower-presentation .arcade-touch { grid-column:2; grid-row:1; align-self:start; min-height:0; padding:8px; border-top:0; border-left:1px solid var(--tg-line); }
 .tower-presentation .arcade-touch .wide { min-width:0; min-height:56px; padding:0 8px; }
 .tower-presentation .arcade-status { grid-column:2; grid-row:2; align-self:start; min-height:0; padding:8px; font-size:14px; line-height:1.4; }
 .tower-presentation .arcade-overlay { padding:8px; }
 .tower-presentation .arcade-dialog { padding:12px; }
 .tower-presentation .arcade-dialog h2 { margin-bottom:12px; }
 .tower-presentation .arcade-dialog .final-score { font-size:32px; margin-bottom:6px; }
 .tower-presentation .arcade-dialog .final-summary { min-height:20px; line-height:1.3; margin-bottom:8px; }
 .tower-presentation .arcade-record-form .score-submit { margin-top:0; }
 .tower-presentation .score-submit input,.tower-presentation .score-submit button,.tower-presentation .retry-button { min-height:44px; }
 .tower-presentation .arcade-record-note { min-height:20px; margin:4px 0; line-height:1.4; }
}
@media(prefers-reduced-motion:reduce) {
 .tower-presentation .arcade-primary,.tower-presentation .arcade-touch button,
 .tower-presentation .retry-button,.tower-presentation .score-submit button { transition:none; }
}
