/* Art-directed play surface. Text remains live and scales with the viewport. */
:root{--ink:#14274d;--cream:#fff8df;--navy:#172b52;--rim:#acbce9}
.sr-only,.game-shell .game-stats,.game-shell .progress-line,.game-shell .work-label,.game-shell .game-message{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;padding:0!important;margin:0!important}
button{border:2px solid #a7b9eb;background:linear-gradient(#637fc0 0%,#3d5897 48%,#30467e 51%,#38558e 100%);box-shadow:inset 0 2px 0 #e0eaffaa,inset 0 -3px 0 #17284f,0 4px 0 #101b39,0 6px 9px #0004;text-shadow:0 2px 1px #142548;border-radius:16px;font-size:16px;touch-action:manipulation}
button:disabled{opacity:1;background:linear-gradient(#354768,#273653);border-color:#687a9a;color:#bdc9dd;text-shadow:none;filter:none;box-shadow:inset 0 1px #91a1bf,0 3px #17213c}
button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 3px #10204466,0 1px #101b39}
.primary{background:linear-gradient(#fff2a2 0%,#ffd264 48%,#ffbd42 51%,#ffcc57);border:2px solid #fff1b2;border-bottom-color:#dc952e;color:#49310e;text-shadow:0 1px #fff7c5;box-shadow:inset 0 2px #fff9df,inset 0 -3px #e8912c,0 5px #925126,0 8px 12px #0004}
.ui-icon{width:26px;height:26px;fill:currentColor;filter:drop-shadow(0 2px 0 #15284c80);flex-shrink:0;display:inline-block;vertical-align:middle}
.icon-button{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;color:#fff8df}
.game-shell{position:relative;isolation:isolate;height:100dvh;min-height:540px;max-height:1100px;overflow:hidden;padding:max(12px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));gap:0;background:radial-gradient(ellipse at 0 25%,#64588f88,transparent 52%),radial-gradient(ellipse at 100% 80%,#228ac055,transparent 50%),linear-gradient(160deg,#384e83,#243961 55%,#192c51);border:0;box-shadow:0 0 70px #0008}
.game-shell:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,#c5eaff66 1px,transparent 2px);background-size:59px 83px;opacity:.4}
.game-top{height:60px;min-height:60px;align-items:flex-start;margin-bottom:12px}
.level-badge{text-align:center;padding:3px 20px 8px;min-width:170px;border-bottom:3px solid #a4cff130;border-radius:0 0 50% 50%}
.hud-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:2px;color:#c9e6ff;margin-bottom:2px}
.game-top h2{font-size:24px;line-height:1.2;color:#fff9dd;text-shadow:0 3px #162950;font-weight:900;letter-spacing:.5px}
.game-shell .board-panel{display:flex;flex:1;min-height:170px;margin:0;padding:12px 12px 10px;border:3px solid #b7c9ea;border-bottom:5px solid #6d87b6;border-radius:26px;background:linear-gradient(#f2f6fa,#d3e2ed);box-shadow:inset 0 2px 0 #fff,0 5px 0 #172b51,0 10px 18px #101d3e55;overflow:visible}
.picture-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px 6px;color:#263f62;font-size:15px;font-weight:900;line-height:20px}
#picture-progress{font-size:14px;background:#bccfdf;padding:2px 9px;border-radius:10px;color:#243d5e}
.board-stage{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse,#f7fafc 0%,#e5eff5 80%)}
.game-shell .board{display:grid;flex:none;min-height:0;max-width:100%;max-height:100%;margin:0;padding:0;gap:.6px;background:none;border-radius:0;aspect-ratio:1}
.pixel{border:0;border-radius:1.5px;box-shadow:inset 0 1px 0 #ffffff60,inset -1px -1px 0 #00000022,0 1px 0 #61758c44;transition:none;position:relative}
.pixel.front{filter:none;outline:0}
.pixel.empty,.pixel.collected{opacity:0;transform:none;border:0;box-shadow:none}
.pixel .symbol{display:none}
.color-patterns .pixel .symbol{display:block;font-size:clamp(5px,1.8vw,9px);color:#15274fcc}
.game-shell .progress-track{height:9px;min-height:9px;margin:12px 9px 0;background:#122442;border:1px solid #6586b4;box-shadow:inset 0 2px 2px #061730;border-radius:8px}
.progress-track>div{background:linear-gradient(#a9ffea,#45d7cd);box-shadow:0 0 9px #72f9ed}
.flight-corridor{height:48px;display:flex;justify-content:space-around;align-items:center;position:relative}
.flight-corridor span{width:5px;height:15px;border-radius:50%;background:linear-gradient(transparent,#86c4f144,transparent)}
.game-shell .slots{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:2px;height:72px;margin:0 -5px 12px}
.game-shell .slot{aspect-ratio:auto;max-height:none;background:url('art/dock-pad.png') center bottom/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;position:relative;min-width:0}
.slot.empty:before{display:none}
.slot.occupied{filter:drop-shadow(0 0 5px #5bd5ff66)}
.slot .unit{position:absolute;width:90%;height:95%;left:5%;bottom:16%;aspect-ratio:auto}
.slot .unit .drone-art{inset:-6% -10% 0}
.unit .drone-art,.flight-drone .drone-art{position:absolute;inset:0;background-image:url('art/drones.png');background-size:300% 200%;background-position:var(--sx) var(--sy);pointer-events:none}
.unit>span:nth-child(2){position:absolute;bottom:0;left:50%;transform:translateX(-50%);margin:0;min-width:32px;padding:0 5px;height:27px;line-height:25px;font-size:22px;letter-spacing:-.5px;border:2px solid #d6e9ff;background:#172746;border-radius:9px;box-shadow:0 2px 0 #0c1831;color:#fff;text-shadow:0 2px #000}
.color-code{top:1px;right:3px;font-size:13px;text-shadow:0 1px #172b52;filter:drop-shadow(0 0 2px #172b52);-webkit-text-stroke:.5px #1b2c4b}
.game-shell .queues{height:158px;min-height:158px;padding:12px 9px 6px;gap:12px;margin:0 -2px;border-radius:25px;background:linear-gradient(#1c3054,#122648);border:2px solid #6e88b2;border-bottom:4px solid #0f1f3c;box-shadow:inset 0 3px 7px #0d1a37,0 1px 0 #b2d9ff44;overflow:hidden}
.queue{min-width:0}
.game-shell .queue button.unit{width:100%;max-width:90px;height:75px;min-height:60px;aspect-ratio:auto;background:linear-gradient(#607cb0,#324e80);border:2px solid #a7c8ed;border-bottom:4px solid var(--c);box-shadow:inset 0 2px #d2e7fc55,0 4px #07182f;border-radius:17px;filter:none;transform:none}
.queue button.unit .drone-art{inset:-15% -5% 5%;z-index:0}
.queue button.unit>span:nth-child(2){bottom:-5px;z-index:2}
.queue button.unit:disabled{filter:saturate(.75);border-color:#6f85a6;border-bottom-color:var(--c);opacity:1}
.queue button.unit.hinted{outline:3px solid #ffe783;outline-offset:3px;box-shadow:0 0 20px #ffe78377}
.queue button.unit:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.12)}
.game-shell .queue .unit:not(button){width:75%;max-width:66px;height:57px;aspect-ratio:auto;flex-shrink:0;margin-top:7px;opacity:.9;transform:none;filter:none}
.queue .unit:not(button)>span:nth-child(2){font-size:17px;height:23px;line-height:21px;min-width:26px;border-width:1px}
.game-shell .queue .unit:nth-child(3){display:none}
.queue-more{display:none}
.empty-lane{height:70px;width:100%;border:2px dashed #7895bb55;border-radius:16px;background:#28456a44}
.game-shell .game-actions{margin-top:14px;gap:12px;min-height:68px}
.game-shell .game-actions button{padding:7px 3px;min-height:68px;font-size:16px;line-height:20px;flex-direction:column;gap:4px;border-radius:18px;color:#fff8df}
.game-actions button .ui-icon{width:27px;height:27px;color:#ffdf83}
.game-actions button:disabled .ui-icon{color:#bdc9dd}
.game-shell .game-actions button>.button-label{font-size:16px;color:inherit;letter-spacing:-.8px;white-space:nowrap}
.effects-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:10}
.flight-drone{position:absolute;left:0;top:0;width:52px;height:52px;filter:drop-shadow(0 5px 4px #17365a66);will-change:transform;z-index:2}
.flight-drone:before{content:'';position:absolute;left:19px;top:34px;width:14px;height:25px;background:linear-gradient(#fff,#85f6ff88,transparent);border-radius:50%;filter:blur(2px);z-index:-1}
.carried-cargo{position:absolute;left:19px;top:34px;width:17px;height:17px;background:var(--c);border:1px solid #fff;box-shadow:inset 0 -3px #0003,0 0 9px #fff9;border-radius:3px;opacity:0}
.in-flight{visibility:hidden}
.dock-pulse{position:absolute;inset:15%;border:3px solid #a5fff3;border-radius:50%;pointer-events:none}
.home-links button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:16px}
.home-links .ui-icon{width:20px;height:20px;color:#ffdf83}
.rank-pill{font-size:15px;color:#edf6ff;background:#17294ded;border:2px solid #9db7de}
.save-note{font-size:14px;color:#e1eafa;text-shadow:0 1px #101e3f}
.mission-card{border:2px solid #b5c3e7;box-shadow:inset 0 2px #ffffff44,0 5px #111c3a}
dialog{border:3px solid #b5c7ec;border-bottom:5px solid #6b84b6;box-shadow:inset 0 2px #fff9,0 6px #14213f,0 20px 60px #0009;background:linear-gradient(#3d568a,#263d68);border-radius:28px}
.account-card p,.settings-status,#help-dialog p{font-size:16px;color:#e5edfc}
.google-button{background:#fff;color:#303030;text-shadow:none;border:1px solid #dadce0;box-shadow:0 3px #b3c3df}
.legal-link{font-size:16px;color:#e0eafa}.version{color:#c8d8ee;font-size:14px}.toggle{gap:12px;font-weight:700}
.result{overflow:auto;margin:auto;max-height:calc(100dvh - 24px)}.result-mascot{margin-top:-15px;width:140px;height:140px}#result-text{color:#ecf3ff}
.toast{bottom:auto;top:max(76px,env(safe-area-inset-top));font-size:16px;line-height:1.5;pointer-events:none;color:white;background:#10213af5;border:2px solid #a4c6e5;box-shadow:0 5px 20px #0007}
.mini-board{gap:.5px;background:#e7eff5;padding:1px}.mini-pixel{border-radius:.5px}.map-card b{font-size:14px}.map-card small{font-size:12px;color:#e1ebff}
@media(max-height:740px){
 .game-shell{padding:8px 12px 12px;min-height:540px}
 .game-top{height:54px;min-height:54px;margin-bottom:8px}
 .hud-kicker{font-size:9px}.game-top h2{font-size:22px}.level-badge{min-width:145px;padding:1px 8px 8px}
 .game-shell .board-panel{min-height:156px;padding:8px;border-radius:21px;margin:0}
 .picture-heading{font-size:14px;line-height:18px;padding-bottom:3px}#picture-progress{font-size:13px;padding:1px 7px}
 .game-shell .progress-track{margin-top:9px;height:7px;min-height:7px}
 .flight-corridor{height:23px}
 .game-shell .slots{height:56px;margin-bottom:8px;gap:1px}
 .game-shell .queues{height:122px;min-height:122px;padding:8px 8px 4px;gap:10px;border-radius:20px}
 .game-shell .queue button.unit{height:61px;min-height:55px;max-width:78px}
 .game-shell .queue .unit:not(button){height:41px;max-width:52px;margin-top:4px}
 .unit>span:nth-child(2){font-size:20px;height:25px;line-height:23px;min-width:28px}
 .game-shell .game-actions{min-height:60px;margin-top:10px;gap:9px}
 .game-shell .game-actions button{min-height:60px;flex-direction:column;padding:4px 1px;gap:2px}
 .game-actions button .ui-icon{width:23px;height:23px}
 .game-shell .game-actions button>.button-label{font-size:16px}
}

