:root{color-scheme:light;--ink:#355e3e;--cream:#fcf9ec;--gold:#ffd366}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif}button,select,a{touch-action:manipulation}button,select{font:inherit}button{cursor:pointer;border:1px solid #c8d1b6;background:#edf0dd;color:var(--ink);border-radius:12px;padding:10px 14px;min-height:44px;font-size:16px;font-weight:800}button:hover{filter:brightness(1.04)}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,select:focus-visible,.board-scroll:focus-visible{outline:3px solid #30593d;outline-offset:3px}.primary{background:var(--gold);color:#263e2c;border:2px solid #bb902b;border-radius:15px;padding:14px 20px;min-height:56px;font-size:16px;font-weight:900;box-shadow:0 4px 0 #b98621}.primary:hover{background:#ffe28b}.secondary{background:#e8eed8;color:var(--ink);border:1px solid #c7d2b4;border-radius:13px;padding:12px 16px;min-height:44px;text-decoration:none;font-size:16px;font-weight:800}.header{max-width:1420px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 30px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:22px;line-height:1.05;font-weight:900}.brand img{width:44px;height:57px;object-fit:contain}.brand b{display:block}.brand small{font-size:16px;letter-spacing:1.5px;display:block;margin-top:6px}.header nav{display:flex;align-items:center;justify-content:flex-end;gap:15px;flex-wrap:wrap}.header nav>a{font-size:16px;font-weight:800;color:#416845;text-decoration:none}.wallet{background:#eee7c3;padding:12px;border-radius:18px;white-space:nowrap}main{max-width:1380px;margin:auto;padding:8px 30px 38px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 26px}.eyebrow{font-size:16px;letter-spacing:1.5px;font-weight:900;color:#727c5e}h1{font-size:clamp(34px,4vw,49px);line-height:1.1;letter-spacing:-1.8px;margin:9px 0 12px}h1 span{display:block;font-size:.46em;letter-spacing:0;margin-top:8px;color:#71844d}h2{letter-spacing:-.6px}.page-heading p{font-size:18px;margin:0;color:#718267}.lobby{display:grid;grid-template-columns:1fr 1.05fr;background:#eef0dc;border:1px solid #d6dec1;border-radius:28px;overflow:hidden}.lobby-art{position:relative;background:#d7e8c8;display:grid;place-items:center;padding:30px 12px 64px}.lobby-art img{width:100%;max-width:620px}.lobby-sticker{position:absolute;bottom:27px;transform:rotate(-3deg);background:#fff8cf;border:2px solid #c6ad6b;padding:14px 22px;border-radius:14px;font-size:20px;font-weight:900;color:#766039}.lobby-copy{padding:34px}.lobby h2{font-size:clamp(32px,3.5vw,44px);line-height:1.12;margin:14px 0 17px}.lobby-copy>p{font-size:18px;line-height:1.7;color:#607554}.lobby label{display:block;font-size:16px;font-weight:900;margin:22px 0 9px}select{width:100%;border:1px solid #bfccab;border-radius:11px;padding:11px 12px;color:var(--ink);background:#fffdf2;min-height:44px;font-size:16px}.difficulty-hint{min-height:46px}.little-note{font-size:18px!important;margin-top:22px!important}.adventure-hud{display:flex;align-items:center;gap:19px;flex-wrap:wrap;background:#e6edd5;border:1px solid #cfdbbb;padding:13px 17px;border-radius:18px;margin-bottom:18px;font-size:14px;font-weight:800}.adventure-hud b{font-size:20px}#level-tag{background:#fff7d3;border:1px solid #d3ba79;border-radius:9px;padding:9px 12px}#choose-trail{margin-left:auto}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px}.trail-workshop{min-width:0}.round-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.round-heading h2{font-size:24px;margin:10px 0 7px}.round-heading .primary{white-space:nowrap}.round-help{font-size:16px;line-height:1.6;color:#677d57;min-height:22px;margin:9px 0 14px}.board-scroll{overflow-x:auto;border:2px solid #9bb777;border-radius:25px;background:#cfe0ad;-webkit-overflow-scrolling:touch}.board{position:relative;min-width:660px;isolation:isolate}.board::before{content:'';display:block;padding-top:60%}.board-art,.range-layer,.spots,.gremlins,.bubbles,.pops{position:absolute;inset:0;width:100%;height:100%}.board-art{pointer-events:none}.range-layer{pointer-events:none;z-index:1}#range-ring{fill:#ffd36625;stroke:#766d3899;stroke-width:2;stroke-dasharray:8 7}.spots,.gremlins,.bubbles,.pops{pointer-events:none}.spots{z-index:3}.gremlins{z-index:6}.bubbles{z-index:4}.pops{z-index:5}.tower-spot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:0;width:54px;height:68px;min-height:44px;border:0;background:transparent;pointer-events:auto;overflow:visible;opacity:1!important;filter:drop-shadow(0 3px 1px #4c613a38)}.tower-spot .empty{display:grid;place-items:center;width:44px;height:44px;margin:auto;background:#e6eed1;border:3px dashed #809856;border-radius:50%;color:#5b7a42;font-size:26px;box-shadow:0 3px 0 #74904750}.tower-spot[aria-pressed=true] .empty{border-style:solid;border-color:#a78127;background:#fff0b5}.tower-spot[aria-pressed=true] .turret{outline:3px solid #ffca4d;outline-offset:3px}.tower-spot:focus-visible{border-radius:12px}.turret{position:absolute;bottom:3px;left:5px;right:5px;height:35px;background:linear-gradient(90deg,#879b73,#b9c58b,#7d9368);border:2px solid #58784d;border-radius:7px 7px 11px 11px;box-shadow:0 3px 0 #536747;display:grid;place-items:center;font-size:26px;color:#fffdf1;text-shadow:0 2px 0 #44603f;font-weight:900}.turret::before{content:'';position:absolute;top:-7px;left:-3px;right:-3px;height:8px;border-radius:3px;background:#aabd83;border:1px solid #617b4e}.tower-crew{position:absolute;top:-13px;left:3px;right:3px;height:50px;pointer-events:none}.tower-crew .paps-equipped-avatar{height:100%;width:100%}.tower-crew img{object-fit:contain;width:100%;height:100%}.tower-tier{position:absolute;right:-6px;bottom:-4px;background:#fff2be;color:#876121;border:1px solid #b9a35e;border-radius:6px;font-size:14px;min-width:18px;padding:2px}.gremlin{position:absolute;left:var(--x);top:var(--y);width:48px;height:56px;transform:translate(-50%,-62%);pointer-events:auto;padding:0;border:0;background:transparent;min-height:44px;filter:drop-shadow(0 3px 1px #44583238)}.gremlin img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.gremlin.purple img{filter:hue-rotate(135deg)}.gremlin b{position:absolute;left:8px;right:8px;bottom:1px;display:grid;place-items:center;height:28px;background:#fff9dd;border:2px solid #797c4a;border-radius:11px;color:#385540;font-size:23px;line-height:1;pointer-events:none}.bubble{position:absolute;left:var(--x);top:var(--y);display:grid;place-items:center;min-width:28px;height:28px;transform:translate(-50%,-50%);padding:2px 5px;border-radius:50%;background:#fff9d9;color:#5d7142;border:2px solid #c3a54b;font-size:16px;font-weight:900;box-shadow:0 2px 2px #51623740}.pop{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,calc(-100% - 46px));font-size:17px;font-weight:900;white-space:nowrap;color:#335b3a;background:#fff8d6eb;border:1px solid #d6bd78;border-radius:9px;padding:5px 8px;animation:pop-up 1.05s ease-out forwards}.pop.zero{color:#826027;font-size:18px}.pause-cover{position:absolute;inset:0;z-index:10;background:#edf3dceb;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center}.pause-cover strong{font-size:30px}.pause-cover span{font-size:16px}.board-caption{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:9px 5px;font-size:14px;color:#6f805c}.board-caption p{margin:0;line-height:1.6;max-width:520px}.board-caption>span{white-space:nowrap;font-size:14px}.math-card{position:relative;padding:18px 21px;border:1px solid #d1d9b9;border-radius:19px;background:#fffdf2;margin-top:6px;min-height:132px}.equation{font-size:32px;font-weight:900;letter-spacing:1px;margin-top:9px;color:#46623b}.math-card>p{font-size:18px;line-height:1.6;margin:7px 0 0;color:#6d7b55}.round-message{font-weight:800;color:#40673e!important;min-height:20px}.crew-panel{padding:22px 18px;background:#edf0da;border:1px solid #d2dcbc;border-radius:24px;text-align:center;min-width:0}.crew-monkey{height:108px;margin-top:12px}.crew-monkey .paps-equipped-avatar{width:112px;height:108px;margin:auto}.crew-monkey img{width:100%;height:100%;object-fit:contain}.crew-panel h3{font-size:18px;margin:13px 0 9px}.crew-panel>p{font-size:18px;line-height:1.7}.crew-panel>.primary{width:100%;font-size:16px;padding:12px 8px}.crew-panel>.secondary{margin-top:12px;width:100%;font-size:16px}.upgrade-track{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px 0}.upgrade-track span{display:grid;place-items:center;width:33px;height:33px;border:1px solid #b6c196;border-radius:10px;background:#f8f8e8;font-size:16px;font-weight:900}.upgrade-track .owned{background:#d0dfb1;color:#406536}.upgrade-track .current{background:#ffdf87;border:2px solid #b69239}.upgrade-track i{font-style:normal;font-size:16px;color:#879365}.offer-hint{min-height:34px;font-size:18px!important}.crew-notes{border-top:1px solid #cbd5b5;padding-top:17px;text-align:left;font-size:18px;line-height:1.7}.crew-notes b{font-size:18px}.crew-notes p{margin:5px 0 15px;color:#697d52}.helper{display:flex;align-items:center;gap:8px;border-radius:12px;background:#dce6c6;padding:7px;margin-top:6px;text-align:left}.helper>div{width:58px;height:72px;flex-shrink:0}.helper .paps-equipped-avatar{width:100%;height:100%}.helper img{width:100%;height:100%;object-fit:contain}.helper p{font-size:18px;font-weight:800;line-height:1.6;margin:0}.results{position:relative;text-align:center;background:#e7eed6;border:1px solid #ccdab5;border-radius:28px;padding:40px 25px;overflow:hidden}.results h2{font-size:clamp(31px,4vw,47px);margin:14px 0}.celebrating-monkey{height:160px;margin:12px auto}.celebrating-monkey .paps-equipped-avatar{height:100%;width:160px;margin:auto}.celebrating-monkey img{width:100%;height:100%;object-fit:contain}.results>p{font-size:18px;line-height:1.8;max-width:650px;margin:15px auto}.result-numbers{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:24px 0}.result-numbers>div{padding:17px 22px;background:#fff8df;border:1px solid #d8cfa4;border-radius:16px;min-width:155px}.result-numbers b{display:block;font-size:27px}.result-numbers span{display:block;font-size:16px;margin-top:7px}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.confetti{position:absolute;inset:0;pointer-events:none}.confetti i{position:absolute;left:var(--x);top:-20px;background:var(--c);width:8px;height:13px;border-radius:2px;animation:fall var(--duration) linear var(--delay) 2}.grown-up-tips{border-top:1px solid #d8dfc5;margin-top:30px;padding:20px 2px;color:#6e7f5d;font-size:16px;line-height:1.8}.grown-up-tips summary{cursor:pointer;font-weight:800;color:#536e47;min-height:44px}.grown-up-tips p{max-width:950px}footer{padding:20px;text-align:center;font-size:16px;color:#7d896b}footer a{color:#577847;font-weight:800;text-decoration:none}.warning{padding:13px;background:#fff0bd;color:#795b22;border:1px solid #dac27f;border-radius:12px;font-size:18px;line-height:1.6}.skip{position:absolute;top:-70px;left:16px;background:#fff8db;color:var(--ink);padding:13px;z-index:20;border-radius:8px}.skip:focus{top:12px}@keyframes pop-up{to{opacity:0;transform:translate(-50%,calc(-100% - 84px))}}@keyframes fall{to{transform:translateY(640px) rotate(420deg)}}.reduce-motion *{animation:none!important;transition:none!important}.reduce-motion .confetti{display:none}@media(prefers-reduced-motion:reduce){.pop,.confetti i{animation:none}.confetti{display:none}}@media(max-width:1100px){.play-layout{grid-template-columns:1fr}.crew-panel{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(180px,240px);align-items:center;gap:8px 18px;text-align:left;padding:18px}.crew-panel>.eyebrow{grid-column:1/-1}.crew-monkey{grid-column:1;grid-row:2/6;height:100px;margin:0}.crew-monkey .paps-equipped-avatar{width:88px;height:100px}.crew-panel h3{grid-column:2;grid-row:2;margin:0}.crew-panel>#tower-copy{grid-column:2;grid-row:3;margin:0}.upgrade-track{grid-column:2;grid-row:4;justify-content:flex-start;margin:0}.crew-panel>#build{grid-column:3;grid-row:2/4}.crew-panel>#hear{grid-column:3;grid-row:4;margin:0}.crew-panel>#offer-hint{grid-column:2/4;grid-row:5;min-height:0;margin:0}.crew-notes{display:none}.helper{grid-column:1/-1;margin-top:10px}.helper>div{height:50px}.helper p{font-size:18px}.adventure-hud{gap:15px}.adventure-hud b{font-size:18px}}@media(max-width:760px){.header{padding:16px 18px;gap:15px;align-items:flex-start}.header nav{gap:9px}.header nav>a{font-size:16px}.brand{font-size:18px}.brand img{width:32px;height:43px}.brand small{font-size:16px}main{padding:6px 18px 30px}.lobby{grid-template-columns:1fr}.lobby-art{padding:15px 20px 57px}.lobby-art img{max-width:420px}.lobby-sticker{bottom:15px;padding:11px 18px;font-size:16px}.lobby-copy{padding:28px}.page-heading{margin:15px 0 24px}h1{font-size:37px}.round-heading{align-items:flex-end}.round-heading h2{font-size:22px}.round-heading .primary{font-size:16px;padding:12px;min-height:48px}.board-scroll{border-radius:18px}.adventure-hud{gap:11px;font-size:14px}.adventure-hud b{font-size:17px}#choose-trail{margin-left:0;padding:8px 10px;font-size:16px}.board-caption{flex-wrap:wrap;gap:5px}.crew-panel{grid-template-columns:64px minmax(0,1fr);gap:8px 14px}.crew-monkey{grid-row:2/5;height:90px}.crew-monkey .paps-equipped-avatar{width:65px;height:90px}.crew-panel>#build{grid-column:1/-1;grid-row:5}.crew-panel>#hear{grid-column:1/-1;grid-row:6}.crew-panel>#offer-hint{grid-column:1/-1;grid-row:7}.helper{grid-row:8}.results{padding:30px 20px}.result-numbers{gap:8px}.result-numbers>div{min-width:130px;padding:14px}.equation{font-size:28px}}@media(max-width:420px){.header{flex-wrap:wrap}.header nav{justify-content:flex-start}.round-heading{align-items:flex-start;flex-direction:column}.round-heading .primary{width:100%}.page-heading p{max-width:220px;font-size:18px}.lobby-copy{padding:24px}h1{font-size:33px}}

#fast-forward[aria-pressed="true"]{background:#355e3e;color:#fff;border-color:#355e3e}

/* Advanced crews: recognizable tower types without widening the board. */
.tower-type-picker{text-align:left;margin:16px 0}.tower-type-picker>b{display:block;font-size:16px;margin-bottom:9px}.tower-type-choices{display:grid;gap:8px}.tower-type-choices button{text-align:left;padding:10px 11px;font-size:16px;line-height:1.3;border-radius:11px;background:#fffdf0;border:1px solid #b7c6a2}.tower-type-choices small{display:block;margin-top:5px;font-size:16px;font-weight:normal}.tower-type-choices button[aria-pressed="true"]{background:#ffe39b;border:2px solid #ad842d}.tower-type-picker p{font-size:18px;line-height:1.6;margin:9px 0 0;color:#61734c}.upgrade-track{gap:4px}.upgrade-track span{flex-shrink:0;width:30px;height:32px}.tower-kind{position:absolute;left:-6px;bottom:-5px;display:grid;place-items:center;background:#fff9df;border:1px solid #b8b878;border-radius:7px;width:23px;height:23px;font-size:16px}.tower-spot[data-tower-type="coconut"] .turret{background:linear-gradient(90deg,#95694c,#c69b6b,#8c6849);border-color:#775237}.tower-spot[data-tower-type="ice"] .turret{background:linear-gradient(90deg,#72a7bb,#badfea,#6da3b8);border-color:#518ca6}.bubble.coconut{background:#e6c89f;border-color:#946640;color:#62422e}.bubble.ice{background:#e0f6ff;border-color:#68afcc;color:#347e9d}.gremlin.chilled b{background:#e0f6ff;border-color:#529bbc;box-shadow:0 0 0 3px #99ddff80}.advanced-board .tower-spot{height:60px;width:50px}.advanced-board .tower-crew{height:42px;top:-9px}.advanced-board .turret{height:32px;font-size:24px}
@media(max-width:1100px){.crew-panel>.tower-type-picker{grid-column:1/-1;grid-row:6;margin:5px 0}.tower-type-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.crew-panel>.helper{grid-row:7}}
@media(max-width:760px){.crew-panel>.tower-type-picker{grid-row:8}.crew-panel>.helper{grid-row:9}.tower-type-choices button{font-size:16px;padding:10px 7px}.tower-type-choices small{font-size:16px}}

/* Full screen contains the entire adventure. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#fullscreen{white-space:nowrap;border-color:#7d9760;background:#e8efda}#fullscreen[aria-pressed="true"]{background:#355e3e;color:#fff;border-color:#355e3e}
.tower-game-shell:fullscreen{background:var(--cream);width:100vw;height:100vh;overflow:auto}.tower-game-shell:-webkit-full-screen{background:var(--cream);width:100vw;height:100vh;overflow:auto}
html.tower-fullscreen-open,html.tower-fullscreen-open body{overflow:hidden}
.tower-game-shell.is-expanded{background:var(--cream);width:100%;height:100vh;height:100dvh;overflow:auto;overscroll-behavior:contain;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.tower-game-shell.fullscreen-fallback{position:fixed;inset:0;z-index:1000}

/* Keep the build and round controls together above the scrollable trail. */
.tower-controls {background:#eef2df;border:1px solid #c6d2ad;border-radius:16px;padding:10px;display:grid;gap:8px;position:sticky;top:0;z-index:15;box-shadow:0 3px 10px #355e3e14}
.tower-controls button {min-height:44px;font-size:16px;line-height:1.2;padding:8px 12px;border-radius:10px}
.tower-controls .adventure-hud {margin:0;padding:0;border:0;border-radius:0;background:none;gap:8px 15px;font-size:16px;line-height:1.2}
.tower-controls .coins {display:inline-flex;align-items:center;gap:7px;border:2px solid #947023;border-radius:9px;background:#fff2bd;color:#324c2e;padding:6px 10px;font-size:18px;white-space:nowrap}
.tower-controls .coins b {font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
.tower-controls .tower-round-status {margin-right:auto}
.tower-controls .tower-round-status b {font-size:16px}
.tower-controls #level-tag {font-weight:normal}
.tower-round-controls,.tower-build-controls {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tower-round-controls #send {min-width:180px;flex:1;background:#f9d472;box-shadow:none;border:2px solid #ab8127}
.tower-build-controls #build {flex:1;box-shadow:none;border:2px solid #ab8127}
.tower-build-controls #tower-selection {font-size:16px;white-space:nowrap;padding-inline:4px}
.tower-controls .offer-hint {margin:0;min-height:0;font-size:16px!important;line-height:1.3}
.tower-controls .tower-type-picker {margin:0}
.tower-controls .tower-type-choices {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tower-controls .tower-type-choices button {text-align:center;display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap}
.tower-controls .tower-type-choices small {display:inline;margin:0;font:inherit;font-weight:normal}
.tower-game-shell.is-playing .page-heading,.is-playing .header .brand,.is-playing .tower-lobby-link,.is-playing .header .badges-nav,.is-playing .header .wallet {display:none}
.tower-game-shell.is-playing .header {position:static;max-width:1380px;padding:6px 20px;gap:8px}
.is-playing .header nav {justify-content:flex-start;width:100%;gap:6px 12px}
.is-playing .header nav>button {font-size:16px;min-height:44px;padding:8px 10px}
.is-playing .header [data-playroom-music] {display:flex;gap:6px;align-items:center}
.is-playing main {padding:0 20px 20px}
.is-playing .play-layout {grid-template-columns:minmax(0,1fr) 240px;gap:12px;margin-top:10px;align-items:start}
.is-playing .round-heading h2 {font-size:20px;line-height:1.2;margin:0}
.is-playing .round-heading {display:block}
.is-playing .round-help {font-size:16px;line-height:1.3;margin:5px 0 8px;min-height:0}
.is-playing .board-scroll {max-height:calc(100dvh - 265px);min-height:160px;overflow:auto;overscroll-behavior:contain;border-radius:16px}
.is-playing .board {width:100%;min-width:660px;aspect-ratio:5 / 3}
.is-playing .crew-panel {display:block;padding:12px;border-radius:16px}
.is-playing .crew-monkey,.is-playing .crew-panel>.eyebrow,.is-playing .crew-notes,.is-playing .helper {display:none}
.is-playing .crew-panel h3 {font-size:18px;line-height:1.2;margin:0 0 8px}
.is-playing .crew-panel>#tower-copy {font-size:16px;line-height:1.4;margin:0 0 8px}
.is-playing .upgrade-track {margin:8px 0}
.is-playing .board-caption {font-size:16px;line-height:1.3;padding:6px 2px}
.is-playing .board-caption p {line-height:1.3}
.is-playing .math-card {padding:10px 12px;min-height:0}
.is-playing .math-card .equation {font-size:28px;margin:4px 0}
.is-playing .math-card>p {font-size:16px;line-height:1.4;margin:4px 0}
.tower-play-links {font-size:16px;line-height:1.5;padding:10px;grid-column:1 / -1}
.tower-play-links a {color:inherit}
.tower-play-links button {border:0;background:none;color:inherit;text-decoration:underline;padding:4px;min-height:44px}
@media (min-width:1100px) and (min-height:650px) {
  .is-playing .board-scroll {max-width:min(100%,calc((100dvh - 350px) / .6));margin:auto}
  .is-playing .board {min-width:0}
}
@media (max-width:850px) {
  .tower-game-shell.is-playing .header {padding:5px 8px}
  .is-playing main {padding:0 8px 16px}
  .is-playing .play-layout {grid-template-columns:minmax(0,1fr);gap:8px}
  .is-playing .crew-panel {text-align:left}
  .tower-controls {padding:8px;gap:7px}
  .tower-controls .adventure-hud {gap:6px 12px;font-size:16px}
  .tower-controls .coins {padding:5px 8px;font-size:17px}
  .tower-controls .coins b {font-size:25px}
  .tower-controls .tower-round-status {flex:1}
  .tower-round-controls {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:7px}
  .tower-round-controls #send {min-width:0}
  .tower-round-controls button {width:100%;white-space:normal}
  .tower-controls .tower-type-choices {gap:6px}
  .tower-controls .tower-type-choices button {padding:6px;font-size:16px}
  .is-playing .board-scroll {max-height:calc(100dvh - 360px);min-height:160px}
}
@media (max-height:550px) and (orientation:landscape) {
  .tower-game-shell.is-playing .header {padding:4px 8px}
  .is-playing main {padding:0 8px 12px}
  .tower-controls {position:static;grid-template-columns:1fr 1fr;padding:6px;gap:6px 12px}
  .tower-controls .adventure-hud {grid-column:1 / -1}
  .tower-controls .tower-round-controls {grid-column:1;grid-row:2 / 4;display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .tower-controls .tower-build-controls,.tower-controls .tower-type-picker {grid-column:2}
  .tower-controls #offer-hint {grid-column:1 / -1}
  .tower-controls button {padding:6px;min-height:44px}
  .tower-round-controls #send {min-width:0}
  .is-playing .play-layout {grid-template-columns:minmax(0,1fr);margin-top:6px}
  .is-playing .board-scroll {max-height:50dvh;min-height:150px}
}
.tower-view-controls {display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.is-playing .header .paps-home-in-nav,.is-playing .header #paps-install-btn,.is-playing .header #paps-updates-open {display:none}
.is-playing #tower-view-controls-slot {min-width:0}
.tower-controls .tower-view-controls [data-playroom-music] {display:inline-flex}
.tower-controls .tower-view-controls #fullscreen {min-width:max-content}
.is-playing .header {min-height:0;padding-block:4px}
.is-playing .header nav>a {line-height:1.25!important}
@media (max-height:550px) and (orientation:landscape) {
  .tower-controls .adventure-hud {grid-column:1}
  .tower-controls #tower-view-controls-slot {grid-column:2;grid-row:1}
  .tower-controls .tower-view-controls {justify-content:flex-end}
}

.is-playing .crew-panel>.score-comparison {margin:0 0 10px}
.is-playing .crew-panel .score-summary {flex-wrap:wrap}
