:root{--cargo-height:58px;--game-height:calc(100dvh - var(--cargo-height))}
.cargo-hud .cargo-home{display:flex;flex:0 0 44px;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:44px;height:44px;margin-right:auto;padding:3px;border:1px solid #b49a6488;border-radius:7px 2px;background:linear-gradient(145deg,#354451,#0b1520 60%);color:#f3d394;box-shadow:inset 0 1px #fae5b34a,0 2px 8px #0007;cursor:pointer}
.cargo-home svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 4px #ffcb7555)}.cargo-home span{font:7px Bahnschrift,Arial,sans-serif;letter-spacing:.16em}.cargo-hud .cargo-open{margin-left:auto}
@media(max-width:1000px){.cargo-hud .cargo-brand{display:none}}
@media(max-width:699px){.cargo-hud .cargo-home{flex-basis:36px;width:36px;height:39px;margin-right:0}.cargo-home svg{width:20px;height:20px}.cargo-hud .cargo-open{margin-left:0}.cargo-hud .cargo-currency{gap:2px}.cargo-hud .cargo-currency img{width:21px;height:21px}.cargo-hud .cargo-currency strong{font-size:13px}}
body{padding-top:var(--cargo-height)}
.game-shell{height:var(--game-height)}
body:is([data-current-screen="home"],[data-current-screen="slots"]){overflow-y:auto}
body[data-current-screen="home"] .game-shell{height:auto;min-height:var(--game-height);grid-template-rows:58px auto 29px}
@media(max-height:680px){.game-shell{height:auto;min-height:var(--game-height)}}
body:is([data-current-screen="trivia"],[data-current-screen="connect4"],[data-current-screen="hangman"]) .game-shell{height:var(--game-height);min-height:0}
.cargo-hud{position:fixed;top:0;left:0;right:0;z-index:80;height:var(--cargo-height);display:flex;align-items:center;justify-content:center;gap:clamp(16px,4vw,72px);padding:5px 20px;box-sizing:border-box;border-bottom:1px solid #af93614d;background:linear-gradient(180deg,#142635f5,#030b16f5);box-shadow:0 4px 30px #0006;color:#d7e8ef;font-family:Bahnschrift,Arial,sans-serif;backdrop-filter:blur(16px)}
.cargo-brand{display:flex;align-items:center;gap:9px;color:#e6bd7d;font-size:23px}.cargo-brand>span{font-size:11px;letter-spacing:.2em}.cargo-brand small{display:block;font-size:7px;color:#839fb1;letter-spacing:.08em;margin-top:4px}
.cargo-balances{display:flex;gap:clamp(8px,3vw,40px)}.cargo-currency{display:flex;align-items:center;gap:8px;background:none;border:0;color:#e8d4a0;cursor:pointer;padding:2px 5px;text-align:left;border-radius:5px}.cargo-currency img{width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 0 6px #ffd26a44)}.cargo-currency small{display:block;font-size:8px;letter-spacing:.15em;color:#9ab9cb}.cargo-currency strong{font:500 17px Bahnschrift,Arial,sans-serif;letter-spacing:.035em;font-variant-numeric:tabular-nums}.cargo-currency.nanites{color:#a1eef4}.cargo-currency.nipnip{color:#cce5b6}.cargo-currency.received{animation:cargo-received 1.1s ease-out}.cargo-open{border:1px solid #9cb9c544;background:#16354488;color:#e4d4b6;font:12px Bahnschrift,Arial,sans-serif;letter-spacing:.12em;padding:8px 12px;cursor:pointer}.cargo-open:first-letter{font-size:18px}.cargo-hud button:hover{background:#7ed7e215}.cargo-hud button:focus-visible{outline:2px solid #fbd696;outline-offset:2px}
.cargo-dialog,.reward-dialog{font-family:Bahnschrift,Arial,sans-serif;color:#eef6f5;padding:0;box-sizing:border-box}.cargo-dialog{width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 90px);background:linear-gradient(145deg,#152d3e,#030d1b 70%);border:1px solid #8ab5c57a;border-radius:10px;box-shadow:0 30px 100px #000c;padding:26px}.cargo-dialog::backdrop{background:#010713ca;backdrop-filter:blur(9px)}.cargo-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.cargo-dialog-head small{font-size:8px;letter-spacing:.23em;color:#91b8c9}.cargo-dialog-head h2{font-size:26px;font-weight:500;letter-spacing:.1em;color:#eed5a4;margin:8px 0}.cargo-dialog-head button{width:38px;height:38px;font-size:26px;color:#d3e6ef;border:1px solid #60828f;background:#0c2031;cursor:pointer}.cargo-local{font-size:10px;letter-spacing:.12em;color:#9bb6ca;border-bottom:1px solid #425f7044;padding-bottom:15px}
.cargo-wallet{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cargo-wallet-card{display:grid;grid-template-columns:45px 1fr;grid-template-rows:16px 30px;align-items:center;background:#142b3bbb;padding:16px 12px;border:1px solid #bbac7233;border-radius:7px}.cargo-wallet-card img{grid-row:span 2;width:38px;height:38px;object-fit:contain}.cargo-wallet-card small{font-size:9px;color:#9ebccd;letter-spacing:.1em}.cargo-wallet-card strong{font-size:clamp(13px,2.1vw,22px);font-weight:500;color:#f5d18b;overflow-wrap:anywhere}.cargo-wallet-card.nanites strong{color:#a3edf3}.cargo-wallet-card.nipnip strong{color:#cce4b8}
.cargo-tabs{display:flex;gap:24px;margin-top:28px;border-bottom:1px solid #54738166}.cargo-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:10px 0;color:#8da8b9;font:12px Bahnschrift,Arial,sans-serif;letter-spacing:.15em;cursor:pointer}.cargo-tabs button[aria-selected="true"]{color:#f4dba9;border-color:#e1b87a}[data-cargo-items]{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.cargo-item{display:flex;position:relative;flex-direction:column;align-items:center;text-align:center;border:1px solid #6594ad44;background:radial-gradient(ellipse at 50% 15%,#22647760,#0a1723 80%);padding:18px 12px;border-radius:6px;min-height:150px}.cargo-item img{width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 5px 12px #73e2ef33)}.cargo-item strong{font-size:13px;font-weight:500;line-height:1.4}.cargo-item span{margin-top:9px;color:#ffd798;font-size:18px}.cargo-empty{grid-column:1/-1;text-align:center;padding:24px 16px;color:#97b6c6;line-height:1.5;font-size:13px}.cargo-empty img{width:70px;opacity:.7}.cargo-empty h3{font-size:14px;letter-spacing:.2em;color:#d8e8eb}.cargo-receipt{padding:17px 0;border-bottom:1px solid #698fa138}.cargo-receipt strong{font-size:14px;color:#f0d6a4;font-weight:500}.cargo-receipt small{float:right;font-size:10px;color:#809cac}.cargo-receipt p{font-size:13px;color:#c1dce4;line-height:1.5;margin:8px 0 0}.cargo-note{margin:24px 0 0;font-size:11px;color:#83a2b5;line-height:1.6}
.reward-dialog{border:0;background:transparent;width:100vw;max-width:none;height:var(--game-height);max-height:none;overflow:hidden;position:fixed;inset:var(--cargo-height) 0 0;margin:0;display:none;place-items:center;isolation:isolate}.reward-dialog[open]{display:grid}.reward-dialog::backdrop{background:#020614d9;backdrop-filter:blur(7px)}.reward-aura{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 50% 35%,#d396ff42,transparent 48%),radial-gradient(ellipse at 15% 80%,#20dce83a,transparent 45%),radial-gradient(ellipse at 95% 80%,#ecb33c2f,transparent 45%)}.reward-aura:after{content:'';position:absolute;width:80vmin;height:80vmin;left:calc(50% - 40vmin);top:calc(50% - 40vmin);border:1px solid #ffe09a38;box-shadow:0 0 60px #eabb7940,inset 0 0 70px #947bff30;border-radius:50%;transform:rotateX(45deg);animation:reward-orbit 12s linear infinite}.reward-manifest{position:relative;width:min(870px,95vw);max-height:calc(var(--game-height) - 20px);overflow-y:auto;text-align:center;padding:20px;box-sizing:border-box;text-shadow:0 2px 15px #020511}.reward-manifest>[data-reward-source]{font-size:11px;letter-spacing:.22em;color:#9bd2df}.reward-manifest>small{display:block;letter-spacing:.27em;font-size:10px;color:#e1bcff;margin:18px 0 9px}.reward-manifest h2{font-size:clamp(30px,5vw,56px);font-weight:500;letter-spacing:.09em;color:#ffe5b4;text-shadow:0 0 35px #ffcb7666;margin:0}.reward-manifest>[data-reward-note]{font-size:13px;color:#aecfdb;margin:14px 0 20px}.reward-items{display:flex;justify-content:center;flex-wrap:wrap;gap:14px}.reward-item{position:relative;display:flex;flex:1 1 145px;max-width:245px;flex-direction:column;align-items:center;padding:20px 12px 18px;border:1px solid #ecc97599;border-radius:12px;background:radial-gradient(ellipse at 50% 25%,#a681393e,#0c152ae8 80%);box-shadow:0 12px 40px #0007,inset 0 0 25px #f3c45915;animation:reward-arrive .6s both;animation-delay:var(--delay)}.reward-item.nanites{border-color:#79e2eab0;background:radial-gradient(ellipse at 50% 25%,#217e944f,#0c152ae8 80%)}.reward-item.nipnip{border-color:#a8d986b0;background:radial-gradient(ellipse at 50% 25%,#549a424f,#0c152ae8 80%)}.reward-item.item{border-color:#cda2ffa0;background:radial-gradient(ellipse at 50% 25%,#7a51a54f,#0c152ae8 80%)}.reward-item img{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 0 24px #ffd98750)}.reward-item strong{font-size:clamp(25px,4vw,39px);font-weight:500;color:#ffe2a5;letter-spacing:.02em;margin:14px 0 5px;font-variant-numeric:tabular-nums}.reward-item.nanites strong{color:#97effb}.reward-item.nipnip strong{color:#cdeeb6}.reward-item.item strong{color:#ddbcff}.reward-item span{font-size:13px;line-height:1.35;color:#e5e9f4}.reward-saved{display:block;font-size:10px;letter-spacing:.13em;color:#a1dacb;margin:22px 0}.reward-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.reward-actions button{padding:14px 22px;border:1px solid #f1ce8988;color:#ffe0a6;background:linear-gradient(#5c482daa,#211e20ef);font:12px Bahnschrift,sans-serif;letter-spacing:.12em;cursor:pointer}.reward-actions button+button{border-color:#7ca7bf55;background:#0b2133;color:#b1d9e8}.reward-floats{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.reward-float{position:absolute;bottom:-100px;left:var(--x);width:var(--size);height:var(--size);opacity:0;animation:reward-float var(--duration) var(--delay) ease-out both;filter:drop-shadow(0 0 15px #e6ba55aa)}.reward-float img{width:100%;height:100%;object-fit:contain}.reward-float.nanites{filter:drop-shadow(0 0 18px #52dbe7aa)}.reward-float.item{filter:drop-shadow(0 0 18px #ad71ffcc)}
.hangman-stage,.connect4-stage{height:var(--game-height)}
.cargo-hud{backdrop-filter:none}
.cargo-dialog{position:fixed;inset:var(--cargo-height) 0 0;margin:auto;max-height:calc(var(--game-height) - 24px)}
@media(max-height:460px) and (min-width:700px){.siege-hud{padding:10px 20px}.siege-top-right{display:none}.siege-top{flex-shrink:0}.siege-telemetry{position:absolute;left:20px;top:55px;margin:0;flex-direction:column;gap:18px}.siege-console{width:60%;margin-top:auto}.siege-console .signal-kicker{font-size:7px;margin-bottom:4px}.siege-word{margin:0 0 3px}.siege-word .siege-letter{height:25px;font-size:20px}.siege-key{height:25px;width:30px;font-size:12px!important}.siege-key-row,.siege-keyboard{gap:4px}.siege-event{font-size:9px;min-height:18px;margin:4px 0 6px}.siege-actions{gap:6px;margin-top:6px}.siege-action{font-size:8px!important;padding:5px 9px;min-height:28px}.siege-bottom{margin-top:8px;font-size:6px}.siege-flight-label,.siege-target-label{display:none}.siege-intel{font-size:9px;padding:4px 8px;margin-top:4px}}
dialog::backdrop{clip-path:inset(var(--cargo-height) 0 0)}
@keyframes cargo-received{0%{background:#f7cb7866;box-shadow:0 0 24px #efbb4e88}100%{background:transparent}}
@keyframes reward-arrive{from{opacity:0;transform:translateY(25px) scale(.86)}to{opacity:1;transform:none}}
@keyframes reward-float{0%{opacity:0;transform:translate(0,0) rotate(-20deg)}15%{opacity:.9}90%{opacity:.65}100%{opacity:0;transform:translate(var(--drift),-110vh) rotate(40deg)}}
@keyframes reward-orbit{to{transform:rotateX(45deg) rotate(360deg)}}
@media(max-width:699px){:root{--cargo-height:54px}.cargo-hud{padding:5px 9px;gap:7px;justify-content:space-between}.cargo-brand{display:none}.cargo-balances{flex:1;justify-content:space-around;gap:3px}.cargo-currency{gap:3px;padding:2px}.cargo-currency img{width:24px;height:24px}.cargo-currency strong{font-size:14px}.cargo-currency small{font-size:7px}.cargo-open{padding:5px 8px}.cargo-open span{display:none}.cargo-dialog{padding:18px}.cargo-dialog-head h2{font-size:19px}.cargo-wallet{gap:6px}.cargo-wallet-card{grid-template-columns:1fr;grid-template-rows:28px 18px 24px;text-align:center;padding:10px 4px}.cargo-wallet-card img{grid-row:auto;width:25px;height:25px;margin:auto}.cargo-wallet-card strong{font-size:14px}.cargo-wallet-card small{font-size:8px}[data-cargo-items]{grid-template-columns:repeat(2,1fr)}.cargo-receipt small{float:none;display:block;margin-top:5px}.reward-manifest{padding:12px}.reward-manifest h2{font-size:29px}.reward-items{gap:9px}.reward-item{flex-basis:110px;padding:12px 8px;max-width:190px}.reward-item img{width:68px;height:68px}.reward-item strong{font-size:28px;margin-top:8px}.reward-item span{font-size:11px}.reward-saved{font-size:8px;margin:16px 0}.reward-manifest>small{font-size:8px;margin:12px 0 8px}.reward-manifest>[data-reward-note]{font-size:11px}.reward-actions button{font-size:10px;padding:12px 15px}}
@media(max-height:520px){.reward-manifest{width:min(800px,97vw)}.reward-manifest>[data-reward-source],.reward-manifest>[data-reward-note]{display:none}.reward-manifest>small{margin:0 0 5px}.reward-manifest h2{font-size:26px;margin-bottom:12px}.reward-item{padding:8px;flex-basis:90px}.reward-item img{width:45px;height:45px}.reward-item strong{font-size:23px;margin:3px 0}.reward-saved{margin:10px 0}.reward-actions button{padding:9px 16px}}
.motion-reduced .reward-float,.motion-reduced .reward-aura:after,.motion-reduced .reward-item,body.reduced .cargo-currency.received{animation:none!important}
@media(prefers-reduced-motion:reduce){.reward-float{display:none}.reward-aura:after,.reward-item,.cargo-currency.received{animation:none!important}}
