/* Sky Drop — a single-screen game interface. Geometry is shared with layout.mjs. */
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 50% 38%,#315563,#0a1c29 75%);color:#edf4e9;display:flex;align-items:center;justify-content:center}
button,a,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;border:0;color:inherit;touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f4cb84;outline-offset:3px}
button:active{transform:translateY(2px)}button:disabled{cursor:default;opacity:.42}
button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);width:min(100vw,520px);height:100dvh;max-height:1100px;position:relative;isolation:isolate;overflow:hidden;background:#a9ccd0;box-shadow:0 0 120px #03101c90}
#world{width:100%;height:100%;display:block;touch-action:none}
.screen{position:absolute;inset:0;pointer-events:none}.screen button,.screen a{pointer-events:auto}
.hidden{display:none!important}
.eyebrow{font-size:9px;line-height:12px;letter-spacing:2px;font-weight:800;margin:0 0 10px}
.icon-btn{width:48px;height:48px;display:grid;place-items:center;border:1px solid #e5c08388;border-radius:14px;background:linear-gradient(#234857f2,#112c3ded);box-shadow:inset 0 1px #ffffff24,0 4px 0 #09212d4d;color:#f4dcab;flex-shrink:0}
.masthead{position:absolute;left:22px;right:22px;top:calc(12px + var(--safe-top));display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:7px;color:#174352;font-size:11px;font-weight:900;letter-spacing:2px;text-shadow:0 1px 0 #e5f4f3}
.brand-mark{font-size:23px;color:#21545c}
#home{isolation:isolate}
.brand-stack{min-width:0;max-width:calc(100% - 60px)}
#home:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#082434ce,transparent 32%,transparent 80%,#e9f6ef14)}
.asset-banner{position:static;margin:2px 0 0;font-size:8px;line-height:12px;font-weight:750;color:#174452;letter-spacing:.1px;text-shadow:0 1px #e9f5ee;white-space:nowrap}
.title-lockup{position:absolute;top:var(--menu-title-top,76px);left:0;right:0;text-align:center;color:#173e4d}
.title-lockup .eyebrow{color:#295663;text-shadow:0 1px 0 #fff9}
.title-lockup h1{position:relative;display:inline-block;font-size:var(--menu-title-font,72px);line-height:.84;letter-spacing:-3.5px;font-weight:950;margin:0;color:#f5e1b5;text-shadow:0 2px 0 #aa804d,0 4px 0 #6b573c,0 7px 0 #143c49,0 10px 18px #123e493b;-webkit-text-stroke:1.2px #254d55}
.title-lockup h1 span{color:#f7e8c5}
.title-lockup h1 b{position:absolute;right:-23px;top:49%;font-size:23px;font-weight:400;letter-spacing:0;color:#d68e44;-webkit-text-stroke:0;text-shadow:0 1px 0 #fff1bc,0 3px 0 #8c5d3b}
.tagline{font-size:12px;line-height:16px;font-weight:650;letter-spacing:.15px;margin:12px 0 0;color:#244f5b;text-shadow:0 1px 0 #f1f8eec9}
.home-bottom{position:absolute;left:28px;right:28px;bottom:var(--menu-actions-bottom,18px);height:var(--menu-actions-height,180px);display:grid;grid-template-rows:32px 72px 52px;gap:12px}
.journey-strip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-shadow:0 1px 5px #102b3b}
.home-beacons{display:flex;align-items:center;justify-content:center;gap:11px;height:13px}
.beacon{font-size:12px;line-height:13px;color:#74909b;text-shadow:0 1px 2px #0d2c3d}
.beacon.done{color:#f4cb78;text-shadow:0 0 8px #ffd18155,0 1px 0 #754d26}.beacon.current{color:#e7f8f3}
#continue-label{font-size:9px;line-height:13px;letter-spacing:1.2px;font-weight:800;color:#f2ead4}
.primary{width:100%;min-height:50px;border-radius:14px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:800;background:linear-gradient(#f9d998,#dba659 65%,#c38944);color:#243d42;border:1px solid #ffe8b6;box-shadow:inset 0 2px #fff2c77d,0 4px 0 #865e3d,0 8px 20px #041c3355}
.primary>span{font-size:22px;line-height:1}
.play-button{position:relative;padding:0 22px;border-radius:18px;min-height:0;border:2px solid #ffe5ad;box-shadow:inset 0 3px #fff4c994,inset 0 -4px #ae763626,0 5px 0 #795034,0 9px 0 #163c4f,0 13px 24px #0520356b;text-shadow:0 1px #fff1b8;letter-spacing:1px}
.play-button strong{font-size:25px;font-weight:950;letter-spacing:1px}
.play-button .play-symbol{font-size:21px;filter:drop-shadow(0 1px #fff0b6)}
.play-button .play-arrow{font-size:35px;opacity:.65;font-weight:400}
.home-links{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.home-links button{min-height:44px;background:linear-gradient(#284e5fec,#153748f7);color:#f8e7c8;border:1px solid #b6baa288;box-shadow:inset 0 1px #ffffff24,0 3px 0 #081f30a3;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;font-size:10px;letter-spacing:.6px;font-weight:800}
.home-links button svg{width:20px;height:20px;flex-shrink:0;color:#dbb477}
/* Compact flight instruments. The notice has its own protected strip below. */
#hud .hud-panel{position:absolute;top:var(--hud-top,8px);left:12px;right:12px;height:var(--hud-height,90px);padding:6px 12px 6px;border-radius:13px;background:linear-gradient(115deg,#102d3bed,#173e4ee8);border:1px solid #b4c9c344;box-shadow:0 4px 14px #031c332b,inset 0 1px #ffffff12;color:#f1f7e9}
.hud-top{height:44px;display:flex;align-items:center;gap:12px}
.realm-info{min-width:0;flex:1}.realm-info .eyebrow{display:block;font-size:8px;line-height:11px;margin:0 0 2px;letter-spacing:1.3px;color:#b1c7cc}
.realm-info strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:17px;line-height:20px;font-weight:800;letter-spacing:.1px;white-space:nowrap}
.score-readout{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:48px;max-width:105px;font-variant-numeric:tabular-nums}
.score-readout small{font-size:7px;line-height:10px;letter-spacing:1.4px;color:#b0c4c4;font-weight:700}
#score{font-size:19px;line-height:22px;color:#f4d38e;letter-spacing:.2px}
#hud .icon-btn{width:44px;height:44px;border-radius:11px;background:#051e304d;box-shadow:inset 0 1px #ffffff12;border-color:#e1c89d55}
#hud .icon-btn svg{width:21px;height:21px;stroke-width:3}
.status-row{height:22px;margin:3px 0 4px;display:flex;align-items:center;gap:12px;color:#d4e6e4}
#hearts{font-size:17px;letter-spacing:2px;white-space:nowrap;color:#f09c78;text-shadow:0 1px #6a4140}
.gem-counter{display:flex;align-items:center;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.gem-counter>span{font-size:13px;color:#eabe74}.gem-counter>b{font-size:14px;font-weight:800}
.gem-counter small{font-size:7px;letter-spacing:.3px;font-weight:800;color:#92b1b8;margin-left:2px}.gem-counter small.active-chain{color:#ffdc92}
#depth{margin-left:auto;white-space:nowrap;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;color:#d1e4e3}
.progress-track{height:3px;border-radius:10px;position:relative;background:#bad9d62b;margin-right:3px}
.progress-track>div{width:0;height:100%;border-radius:10px;background:linear-gradient(90deg,#b3d8c4,#f0c075)}
.progress-track>span{position:absolute;right:-3px;top:-5px;color:#f4cc88;font-size:12px;line-height:13px}
.notice{position:absolute;top:calc(100% + 6px);left:12px;right:12px;min-height:20px;line-height:20px;padding:0 8px;border-radius:7px;text-align:center;background:#0b293add;color:#f3dba8;text-shadow:none;font-size:10px;font-weight:750;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .16s;pointer-events:none}
.notice.show{opacity:1}
.flight-bottom{position:absolute;left:20px;right:18px;bottom:calc(16px + var(--safe-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px}
.steer-hint{display:flex;flex-direction:column;gap:4px;max-width:205px;color:#eef6e5;text-shadow:0 1px 3px #103340,0 0 7px #0d3045;padding:4px 0}
.steer-hint>b{font-size:10px;letter-spacing:1px}.steer-hint>small{font-size:11px;line-height:16px;color:#e2eee5}
#brake{margin-left:auto;width:80px;height:80px;flex-shrink:0;position:relative;border:1px solid #e3dab57d;border-radius:50%;background:radial-gradient(circle at 40% 25%,#2a5867,#103a4b 65%);box-shadow:inset 0 2px 4px #d3ede52b,0 5px 0 #0b2b3bcc,0 8px 18px #05243755;color:#f7e4b4;touch-action:none}
#brake svg{position:absolute;inset:3px;width:72px;height:72px;fill:none;stroke:#e8c17c;stroke-width:1.6}
#brake svg circle{stroke-width:2;transform:rotate(-90deg);transform-origin:center}.brake-bg{stroke:#e6efe22b}
#brake-charge{stroke:#f3d9a2;stroke-dasharray:175.93;stroke-dashoffset:0}
#brake svg path{stroke:#fbebc3;stroke-linecap:round;stroke-linejoin:round;transform:translateY(-3px)}
#brake span{position:absolute;bottom:16px;left:0;right:0;font-size:8px;font-weight:800;letter-spacing:.9px}
#brake.held{background:#426f78;box-shadow:inset 0 1px 8px #001e36,0 3px 0 #0a2e42,0 0 18px #c8eee366;transform:translateY(2px)}
.practice{position:absolute;left:22px;right:22px;top:49%;padding:16px 18px;border-radius:17px;text-align:center;background:#153849f2;border:1px solid #d4b67f88;box-shadow:0 7px 24px #061b3555;color:#f4e8cc}
.practice .eyebrow{display:block;color:#d1b57f;font-size:8px;margin-bottom:8px}.practice strong{display:block;font-size:15px;line-height:21px}.practice p{font-size:12px;line-height:17px;color:#b9cfce;margin:7px 0 0}
.practice-target{position:absolute;font-size:50px;line-height:1;color:#f4cf84;transform:translate(-50%,-50%);text-shadow:0 0 12px #173d56;pointer-events:none}
/* The same game materials extend through pause, realms, settings and results. */
.veil{position:absolute;inset:0;z-index:10;background:#04172bb5;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:calc(16px + var(--safe-top)) 20px calc(16px + var(--safe-bottom))}
.dialog{width:100%;max-height:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #bca779a6;border-radius:22px;padding:24px;background:linear-gradient(140deg,#234756,#102d3e 65%);color:#ecf1df;box-shadow:inset 0 1px #ffffff21,0 20px 60px #02112180;scrollbar-color:#9ea78d #173848}
.dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.dialog-top>div{min-width:0}
.dialog h2{font-size:25px;font-weight:850;letter-spacing:-.7px;line-height:1.15;margin:5px 0 12px;color:#f4e6c5}
.dialog h3{font-size:14px}.dialog p{font-size:13px;line-height:1.65;color:#bcd0cf}
.dialog .eyebrow{font-size:8px;letter-spacing:1.8px;color:#d1b987;margin:0 0 8px}
.dialog .icon-btn{width:44px;height:44px;font-size:27px;border-radius:12px;background:#09253577;box-shadow:none;border-color:#d8c09255}
.dialog .primary{margin-top:18px;font-size:14px;min-height:50px;border-radius:12px}
.secondary{background:linear-gradient(#315462,#244451);border:1px solid #b3c7ba44;border-radius:12px;width:100%;padding:12px;min-height:48px;font-size:13px;font-weight:650;margin-top:10px;box-shadow:inset 0 1px #ffffff13}
.text-btn{display:block;background:none;margin:8px auto 0;font-size:12px;min-height:44px;color:#dfc68f;text-decoration:underline;text-underline-offset:4px}
.realm-list{display:flex;flex-direction:column;gap:9px;margin-top:18px}
.realm-card{text-align:left;background:linear-gradient(110deg,#325666,#213f4e);border:1px solid #9bb1a555;border-radius:13px;padding:13px 12px;display:flex;align-items:center;gap:12px;min-height:65px;color:#f2e6cb;box-shadow:inset 0 1px #ffffff0d}
.realm-num{font-size:22px;font-weight:850;color:#baa373}.realm-card strong{font-size:15px;display:block}.realm-card small{font-size:11px;display:block;margin-top:4px;color:#b3caca;line-height:1.4}.realm-rating{margin-left:auto;color:#e6bd76;font-size:12px;letter-spacing:1px;white-space:nowrap}
.setting-row{margin:20px 0}.setting-row label{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:6px;font-weight:650}.setting-row label span{font-size:12px;color:#cbb781}
.setting-row input[type=range]{width:100%;accent-color:#e1b774;height:36px}
.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:18px 0;font-size:14px;min-height:44px}.toggle-row small{display:block;font-size:12px;color:#a9c2c4;line-height:1.5;margin-top:4px}.toggle-row input{width:24px;height:24px;accent-color:#dfba7c;flex-shrink:0}
.tilt-btn{min-height:44px;padding:10px;border-radius:10px;border:1px solid #b6bca46b;background:#2e5160;font-size:12px;white-space:nowrap;color:#edddb4}
.dialog hr{border:0;border-top:1px solid #afc5b733;margin:20px 0}.micro{font-size:10px;letter-spacing:.2px;color:#9fbbbe}
.guide-item{display:flex;gap:12px;margin:16px 0}.guide-item>span{background:#40606a;width:36px;height:36px;border:1px solid #d8c08f44;border-radius:10px;display:grid;place-items:center;font-size:18px;flex-shrink:0;color:#efcb89}.guide-item p{margin:0;font-size:12px}.guide-item b{color:#f2e5c6}
.result-emblem{font-size:52px;color:#edc783;text-align:center;margin:4px 0 12px;text-shadow:0 0 25px #f8cf713b}.result-heading{text-align:center}
.stars{font-size:28px;letter-spacing:8px;color:#e9bc70;text-align:center;margin:16px 0;text-shadow:0 2px #664f30}.stars .empty{color:#688087;text-shadow:none}
.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.result-stats div{background:#0c2b3b77;border:1px solid #a5bbad22;border-radius:12px;text-align:center;padding:13px 4px}.result-stats strong{font-size:21px;font-weight:800;display:block;color:#f4d99f}.result-stats small{font-size:8px;letter-spacing:1px;color:#a9c2c5;display:block;margin-top:5px}
.source-links{display:flex;gap:10px;flex-wrap:wrap}.source-links a{color:#f0d59c;font-size:12px;min-height:44px;padding:11px;border:1px solid #b8c0a955;border-radius:9px;text-decoration:none}
.asset-health{border-top:1px solid #9bb7b333;padding-top:8px;margin-top:15px}.asset-health p{font-size:12px;line-height:1.6;margin:8px 0}.asset-health .secondary{margin-top:6px;min-height:44px}
.toast{position:absolute;z-index:20;bottom:calc(110px + var(--safe-bottom));left:20px;right:20px;background:#0c2b3df5;color:#f7e7c4;border:1px solid #c8b58266;font-size:12px;line-height:18px;border-radius:12px;padding:12px 16px;text-align:center;pointer-events:none}
.low-quality .veil{backdrop-filter:none}.reduced-motion *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media(max-width:350px){.masthead{left:16px;right:16px}.home-bottom{left:20px;right:20px}.home-links{gap:9px}.home-links button{font-size:9px;gap:6px}.hud-top{gap:8px}.realm-info strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:15px}.score-readout{min-width:36px;max-width:90px}#score{font-size:17px}#hud .hud-panel{left:8px;right:8px;padding-left:10px;padding-right:10px}.status-row{gap:8px}#hearts{letter-spacing:1px}.gem-counter small{font-size:6px}.flight-bottom{left:15px;right:14px}.steer-hint{max-width:174px}.steer-hint>small{font-size:10px}.dialog{padding:20px}.dialog h2{font-size:23px}}
@media(max-height:639px){.home-bottom{grid-template-rows:28px 64px 48px;gap:10px}.play-button strong{font-size:23px}.home-links button{font-size:9px}.dialog{padding:19px}.dialog h2{font-size:23px}.setting-row,.toggle-row{margin:14px 0}.practice{top:48%;padding:12px 14px}.practice strong{font-size:14px}.practice p{font-size:11px}.flight-bottom{bottom:calc(12px + var(--safe-bottom))}}
@media(max-height:519px){.masthead{top:calc(6px + var(--safe-top));left:16px;right:16px}.masthead .icon-btn{width:44px;height:44px}.brand{font-size:9px}.brand-mark{font-size:20px}.title-lockup .eyebrow{font-size:7px;line-height:10px;letter-spacing:1.5px;margin-bottom:4px}.title-lockup h1{letter-spacing:-2px;-webkit-text-stroke:.8px #254d55;text-shadow:0 2px #aa804d,0 4px #244654}.title-lockup h1 b{font-size:14px;right:-15px}.tagline{display:none}.asset-banner{font-size:7px;line-height:10px}.home-bottom{left:26px;right:26px;grid-template-rows:12px 44px 44px;gap:8px}.journey-strip{flex-direction:row;gap:9px}.home-beacons{gap:5px}.beacon{font-size:9px}#continue-label{font-size:7px;line-height:11px;letter-spacing:.5px}.play-button{border-radius:12px;box-shadow:inset 0 2px #fff4c97d,0 3px #795034,0 5px #163c4f}.play-button strong{font-size:19px}.play-button .play-symbol{font-size:17px}.play-button .play-arrow{font-size:25px}.home-links button{border-radius:10px;font-size:9px}.home-links button svg{width:18px;height:18px}#hud .hud-panel{padding:3px 10px 5px}.hud-top{height:42px}.realm-info .eyebrow{font-size:7px;line-height:9px}.realm-info strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:17px}#score{font-size:17px;line-height:20px}.status-row{height:17px;margin:2px 0 4px}#hearts{font-size:15px}.gem-counter>b{font-size:12px}#depth{font-size:10px}.notice{font-size:9px;line-height:18px;min-height:18px;top:calc(100% + 4px)}.flight-bottom{bottom:calc(8px + var(--safe-bottom))}#brake{width:62px;height:62px}#brake svg{width:56px;height:56px;inset:2px}#brake span{font-size:6px;bottom:11px}.steer-hint{max-width:220px}.steer-hint>b{font-size:9px}.steer-hint>small{font-size:10px;line-height:13px}.practice{top:48%;padding:9px 12px}.practice .eyebrow{font-size:7px;margin-bottom:4px}.practice strong{font-size:12px;line-height:16px}.practice p{display:none}.practice .text-btn{min-height:32px;margin:0}.dialog{padding:17px}.dialog h2{font-size:22px}.realm-list{gap:6px}.realm-card{min-height:48px;padding:8px 12px}.realm-card small{font-size:10px}.result-emblem{font-size:30px;margin:0}.result-stats{margin:10px 0}.stars{margin:10px 0}.result-heading p{margin:8px 0}.veil{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
