@font-face{font-family:Nunito;src:url("assets/nunito.ttf") format("truetype");font-weight:200 1000;font-display:swap}
@font-face{font-family:Pixelify;src:url("assets/pixelify.ttf") format("truetype");font-weight:400 700;font-display:swap}
:root{
  color-scheme:dark;--bg:#121020;--panel:#201d34;--panel2:#27233e;--border:#403853;
  --text:#faf7ff;--muted:#bbb6cf;--violet:#c19cff;--gold:#ffcf63;--pix:Pixelify,"Courier New",monospace;
  font:16px/1.45 Nunito,"Trebuchet MS",sans-serif;color:var(--text);background:var(--bg)
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-height:100vh;isolation:isolate;background:radial-gradient(ellipse at 83% 27%,#2a1b3e57,transparent 45%),linear-gradient(160deg,#171326,#111021 70%);overflow-wrap:break-word}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default}
button,a{outline-offset:4px}
button:focus-visible,a:focus-visible{outline:3px solid #ffdc83}
a{color:inherit;text-decoration:none}
button svg,.pixel-art{flex:none;vertical-align:middle}
img{max-width:100%}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand{font-family:var(--pix);font-weight:650}
strong,b{font-weight:825}
button{border:0}
[hidden]{display:none!important}
.wrap{width:min(1160px,calc(100% - 88px));margin-inline:auto}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip:focus{position:fixed;left:12px;top:10px;z-index:20;background:var(--gold);color:#241b24;padding:12px}
#stars{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
#stars i{position:absolute;width:2px;height:2px;background:#b49ed8}
#stars i:nth-child(3n){background:#f5dcb7;width:1px;height:1px}
#stars .twinkle{width:2px;height:8px;background:#ba9bd3}
#stars .twinkle::after{content:"";position:absolute;top:3px;left:-3px;width:8px;height:2px;background:inherit}
.topbar{background:rgba(23,20,38,.97);border-bottom:1px solid #3b324d;position:relative;z-index:1}
.top-inner{display:flex;align-items:center;min-height:78px;gap:clamp(25px,5vw,78px)}
.brand{display:inline-flex;align-items:center;gap:10px;flex:none}
.brand img{width:42px;height:45px;filter:drop-shadow(0 2px 5px #a079ff33);image-rendering:pixelated}
.brand span{font-size:1.5rem;line-height:.88;letter-spacing:-.055em}
.brand small{display:block;color:#caa6ff;font-family:var(--pix);font-size:1.03rem;letter-spacing:.075em;line-height:1.14}
.primary-nav{align-self:stretch;display:flex;align-items:stretch;gap:clamp(12px,2.7vw,38px)}
.primary-nav a{display:inline-flex;align-items:center;gap:9px;color:#bdb6cc;position:relative;font-size:.95rem;font-weight:740;white-space:nowrap}
.primary-nav a span{display:grid;place-items:center}
.primary-nav a svg{width:19px;height:19px}
.primary-nav a.active{color:#cfb4ff}
.primary-nav a.active::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#b38bf1;border-radius:3px 3px 0 0}
.primary-nav a:hover{color:#fff}
.tools{display:flex;align-items:center;margin-left:auto;gap:10px}
.utility,.secondary,.square,.radio-listen,.hint-btn,.back-link{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.utility{min-height:40px;min-width:40px;background:#242036;border:1px solid #41394f;border-radius:8px;color:#e2dcee}
.utility:hover,.secondary:hover,.radio-listen:hover,.square:hover{background:#3a304f;border-color:#a78cc7}
.utility.sound{padding:0 13px;font-size:.89rem;font-weight:750}
.utility.help{background:transparent;border-color:transparent;color:#c8bfd6}
.utility.help:hover{color:white;background:#30283f}
.main{padding-top:32px;padding-bottom:38px;outline:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:22px}
h1{font-size:clamp(2.1rem,3.45vw,2.95rem);line-height:1.06;letter-spacing:-.055em}
.page-heading p{margin-top:7px;color:var(--muted);font-size:1rem;font-weight:570}
.hud{display:flex;align-items:center;gap:11px;flex:none;background:#201c30;border:1px solid var(--border);border-radius:9px;padding:11px 14px;min-width:211px}
.hud-star{display:grid;place-items:center;width:31px;height:33px}
.hud-inner{flex:1}
.hud-label{display:flex;justify-content:space-between;gap:16px;font-size:.8rem;align-items:baseline;font-weight:740}
.hud-label b{font-size:.87rem;color:var(--gold);white-space:nowrap}
.hud-label em{font-size:.78rem;font-style:normal;color:#bfb6cf;font-weight:680}
.progress-track{height:5px;overflow:hidden;border-radius:3px;background:#413851;margin-top:6px}
.progress-track i{display:block;height:100%;background:var(--gold);border-radius:3px}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:318px;height:clamp(318px,25.1vw,362px);border:2px solid #8e75c1;border-radius:12px;box-shadow:0 5px 0 #0c0b18,0 0 0 1px #302644;background:#29224b}
.hero-art,.hero-shade,.stage-backdrop{position:absolute;inset:0;z-index:-1}
.hero-art,.stage-backdrop{background-image:var(--art);background-size:cover;background-position:center}
.hero-shade{background:linear-gradient(90deg,rgba(20,14,43,.90) 0%,rgba(27,18,52,.77) 23%,rgba(26,20,49,.35) 41%,transparent 65%),linear-gradient(0deg,#21133240,transparent 37%)}
.hero-content{height:100%;max-width:58%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:24px clamp(22px,3.9vw,56px)}
.world-tag,.small-label,.world-number,.challenge-badge{font-family:var(--pix);text-transform:uppercase;font-weight:650}
.world-tag{display:inline-flex;align-items:center;gap:9px;color:#f2e6ff;background:#35284fee;border:1px solid #a585ca8c;padding:4px 10px;border-radius:5px;font-size:.86rem;letter-spacing:.1em;line-height:1.2}
.hero h2{font-size:clamp(2.8rem,4.65vw,4.65rem);line-height:.98;letter-spacing:-.058em;margin:13px 0 10px;text-shadow:0 3px 0 #35234988}
.hero-content p{font-size:1.06rem;font-weight:680;line-height:1.45;color:#fbf4ff;max-width:345px;text-shadow:0 1px 4px #1e123f}
.hero-actions,.dialog-actions,.win-actions,.stamp-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hero-actions{margin-top:22px}
.gold-btn,.secondary,.hint-btn,.btn-locked{border-radius:7px;min-height:43px;padding:10px 17px;font-weight:850;line-height:1.15;font-size:.98rem;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.gold-btn{background:#ffd166;color:#302135;border:1px solid #ffe290;box-shadow:0 3px 0 #a56e30;transition:background .15s,transform .15s}
.gold-btn:hover{background:#ffe196;transform:translateY(-1px)}
.gold-btn:active{transform:translateY(2px);box-shadow:0 1px 0 #a56e30}
.gold-btn:disabled{opacity:.45;transform:none}
.secondary,.hint-btn,.btn-locked{color:#f3eafc;border:1px solid #655576;background:#30273e}
.hero .secondary{color:#fff;border-color:#ac93c19c;background:#251b37b8}
.hero .secondary:hover{background:#443452}
.btn-locked{cursor:pointer;color:#e1d5eb;background:#372d46}
.hero-corner{position:absolute;width:15px;height:15px;border-color:#e1c6ff;border-style:solid;pointer-events:none}
.hero-corner.tl{left:6px;top:6px;border-width:2px 0 0 2px;border-radius:3px 0 0}
.hero-corner.br{right:6px;bottom:6px;border-width:0 2px 2px 0;border-radius:0 0 3px}
.hero-controls{position:absolute;right:19px;bottom:17px;display:flex;align-items:center;gap:8px;border-radius:7px;padding:3px;background:#211933d9;border:1px solid #cbb3e057}
.hero-controls span{font-family:var(--pix);font-size:.84rem;color:#eee9fb;font-weight:550;letter-spacing:.025em}
.square{height:33px;width:33px;background:transparent;border:1px solid transparent;border-radius:4px;color:white}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 12px}
.section-head h2{display:flex;align-items:center;gap:10px;font-size:1.65rem;letter-spacing:-.043em}
.tiny-gem{display:grid;place-items:center}
.world-count{display:inline-flex;align-items:center;gap:7px;color:#beb6ce;font-weight:640;font-size:.87rem}
.world-grid,.relic-grid,.crew-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.world-card{position:relative;border:1px solid #4b405c;background:#252036;border-radius:9px;padding:0;overflow:hidden;display:flex;flex-direction:column;text-align:left;isolation:isolate;box-shadow:0 3px 0 #100d1b;transition:border-color .15s,transform .15s}
.world-card:hover{border-color:#a78ac4;transform:translateY(-2px)}
.world-card.selected{border-color:#b595ed;box-shadow:0 0 0 2px #ad87e3,0 4px 0 #0e0c16}
.world-thumb{position:relative;width:100%;height:clamp(84px,7.45vw,107px);display:block;overflow:hidden;background:#30283d}
.world-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.world-card:first-child .world-thumb img{object-position:80% center}
.world-card.locked .world-thumb img{filter:saturate(.84) brightness(.86)}
.thumb-mark{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:23px;height:23px;background:#151020bd;border:1px solid #dfd9ee62;border-radius:5px;color:#faf6ff}
.thumb-mark.open{background:#382754df;border-color:#c5a2eb;color:#ffdf8e}
.card-body{display:flex;flex:1;flex-direction:column;gap:4px;padding:11px 13px 13px;min-height:64px;border-top:1px solid #6c58725c}
.world-number{font-size:.74rem;letter-spacing:.085em;color:var(--world-color);line-height:1.15}
.card-body strong{font-size:1.02rem;line-height:1.17;letter-spacing:-.025em}
.radio-panel{display:flex;align-items:center;gap:14px;margin-top:23px;border:1px solid #3f3650;border-radius:9px;background:linear-gradient(95deg,#292238,#201c2d);padding:12px 17px}
.radio-portrait,.instructor{flex:none;width:49px;height:49px;background:linear-gradient(140deg,#4b376c,#302541);border:1px solid #70577f;border-radius:6px;overflow:hidden}
.portrait{width:100%;height:100%;display:block;object-fit:contain;object-position:center bottom}
.radio-text strong,.small-label{color:#c6a8ee}
.radio-text strong{font:650 1.04rem/1.25 var(--pix)}
.radio-text p{margin-top:2px;font-size:.93rem;color:#d1c9dd;font-weight:570}
.radio-listen{width:38px;height:37px;flex:none;border:1px solid #584967;border-radius:6px;margin-left:auto;background:transparent;color:#d6b9f0}
.panel{border:1px solid var(--border);border-radius:11px;background:var(--panel);box-shadow:0 3px 0 #0e0c18}
.crew-card{padding:0;overflow:hidden;text-align:left;transition:transform .16s,border-color .16s}
.crew-card:hover,.relic:hover{transform:translateY(-2px);border-color:var(--world-color)}
.crew-scenery{height:174px;display:flex;align-items:flex-end;justify-content:center;position:relative;isolation:isolate;overflow:hidden;background:#302645}
.crew-scenery::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#261b3b55,#261b3b77),var(--art) center/cover;z-index:-1}
.crew-scenery .portrait{width:89%;height:89%;filter:drop-shadow(0 3px 3px #20132577)}
.crew-info{padding:15px;display:flex;flex-direction:column;gap:5px}
.crew-info strong,.relic strong{font-size:1.1rem}
.crew-info small,.relic small,.storage-info{font-size:.88rem;color:var(--muted)}
.text-action{display:inline-flex;align-items:center;gap:6px;color:var(--world-color);margin-top:7px;font-weight:750;font-size:.91rem}
.ship-cabin{display:flex;align-items:center;gap:17px;padding:22px;background:linear-gradient(115deg,#35274a,#222035 75%)}
.ship-cabin .secondary{margin-left:auto}
.ship-avatar{width:75px;height:75px;display:grid;place-items:center;background:#211a31;border:2px solid var(--suit);border-radius:13px}
.small-label{display:inline-flex;gap:7px;align-items:center;font-size:.85rem;letter-spacing:.07em;line-height:1.4}
.ship-cabin h2{font-size:1.9rem;letter-spacing:-.04em}
.relic{display:flex;align-items:center;flex-direction:column;gap:9px;text-align:center;padding:20px 12px}
.relic-art{display:grid;place-items:center;min-height:78px}
.unearned .relic-art{filter:grayscale(.8);opacity:.55}
.relic small{display:inline-flex;align-items:center;gap:4px}
.storage-info{display:flex;align-items:center;gap:8px;margin-top:24px}
dialog{width:min(480px,calc(100% - 28px));max-height:calc(100% - 36px);padding:0;color:var(--text);background:#262036;border:1px solid #88709e;border-radius:14px;box-shadow:0 16px 70px #080710a8}
dialog::backdrop{background:#0b081bd6;backdrop-filter:blur(4px)}
#dialog-inner{position:relative;padding:30px}
dialog h2{font-size:2rem;letter-spacing:-.045em;line-height:1.12;margin:0 32px 12px 0;outline:none}
dialog p{margin:10px 0 19px;font-size:1.04rem;color:#dcd4e7}
.dialog-close{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:37px;height:37px;border-radius:6px;color:#c8bed6;background:#322a43}
.dialog-actions{margin-top:18px}
.lock-art,.relic-big{text-align:center;margin:18px auto;color:#c8a8e9}
.help-steps p{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:.98rem;margin:13px 0}
.help-steps svg{margin-right:6px;color:var(--violet)}
.suit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.suit-option,.piece-btn,.choice-btn{border:1px solid #655371;border-radius:8px;background:#352c46;display:flex;align-items:center;justify-content:center;gap:8px}
.suit-option{padding:12px 4px 10px;flex-direction:column}
.suit-option strong{font-size:.9rem}
.chosen,.choice-btn.chosen,.piece-btn.chosen{background:#4a365e;border-color:#d7adff;box-shadow:inset 0 0 0 1px #bf95ee}
.cape-preview{width:66px;height:57px;position:relative;display:grid;place-items:center;isolation:isolate}
.cape-preview i{position:absolute;inset:0;z-index:-1;background:var(--suit);clip-path:polygon(29% 7%,40% 7%,40% 14%,60% 14%,60% 7%,71% 7%,80% 27%,94% 93%,76% 85%,62% 93%,48% 82%,29% 91%,9% 93%,19% 28%);filter:brightness(.72)}
.crew-profile{height:145px;text-align:center;margin:10px 0}
.crew-profile img{height:100%;width:auto;margin:auto}
.role{display:block;color:#ceb0f2}
.brief-art{height:115px;background:var(--art) center 48%/cover;border:1px solid #7a6486;border-radius:7px;display:flex;align-items:flex-end;justify-content:flex-end;overflow:hidden}
.brief-art img{width:108px;height:108px;margin-right:9%}
.brief-list{display:grid;gap:4px;padding-left:24px;font-weight:730;color:#e4d7ef}
.brief-list li::marker{color:#c4a4e9;font-family:var(--pix)}
.mission-menu{display:grid;gap:8px}
.mission-link{display:flex;align-items:center;gap:12px;width:100%;padding:14px 12px;border:1px solid #635373;border-radius:6px;text-align:left;background:#352b46}
.mission-link span{font-family:var(--pix);color:var(--violet)}
.mission-link svg{margin-left:auto;flex:none}
.mission-link:disabled{opacity:.58}
.game-top{display:flex;justify-content:space-between;margin:0 0 13px}
.back-link{color:#d2bee8;background:transparent;min-height:38px;padding:3px 2px;font-size:.94rem;font-weight:725}
.back-link:hover{color:white}
.game-panel,.win-panel{overflow:hidden;max-width:940px;margin:0 auto}
.game-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 26px}
.game-heading .small-label,.instruction .small-label{color:var(--world-color)}
.game-heading h1{font-size:clamp(1.8rem,3.4vw,2.45rem);margin-top:4px}
.challenge-badge{white-space:nowrap;color:#e2caff;border:1px solid #655178;background:#352943;font-size:.86rem;letter-spacing:.055em;padding:5px 9px;border-radius:5px}
.game-field,.win-scene{height:clamp(210px,23vw,285px);position:relative;isolation:isolate;overflow:hidden;border-block:1px solid #51435a}
.stage-backdrop{background-position:center 52%}
.game-field .stage-backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#20133066,transparent 65%)}
.game-field.beam .stage-backdrop::after{background:radial-gradient(ellipse at 45% 60%,transparent,#0b1725b8 88%)}
.game-field.aerial .stage-backdrop{background-position:center 5%;background-size:120%}
.playfield{position:absolute;inset:0}
.hero-on-stage{position:absolute;inset:12px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.hero-on-stage img{height:86%;width:auto;max-width:65%;filter:drop-shadow(0 4px 2px #261b3b77)}
.hero-on-stage span{background:#23192cde;padding:3px 15px;border:1px solid #b599ab;border-radius:4px;margin-bottom:8px;font:650 .98rem var(--pix)}
.instruction{display:flex;gap:15px;align-items:flex-start;padding:20px 25px 0}
.instructor{width:56px;height:56px}
.instruction-text{flex:1}
.instruction h2{font:780 1.25rem/1.2 Nunito,sans-serif;letter-spacing:-.03em;margin:2px 0 5px;outline:0}
.instruction p{color:#e1dbea;margin:0;max-width:73ch;font-size:1.02rem}
.game-controls{display:flex;align-items:center;gap:12px;padding:16px 25px 20px}
.hint-btn{background:transparent;border-color:#53475f;color:#dbc5f2}
.hint-text{margin:0 25px 20px;border-left:3px solid var(--gold);padding:9px 12px;background:#342d40;color:#ffe3a2}
.task-progress{margin-left:auto;font:600 1.15rem var(--pix);color:#d8c5ed}
.choice-row,.piece-controls,.stamp-controls{display:flex;flex-wrap:wrap;gap:10px;padding:15px 25px 0}
.choice-btn,.piece-btn{min-height:52px;min-width:110px;padding:7px 15px;font-weight:790}
.choice-btn:hover,.piece-btn:hover,.suit-option:hover{border-color:#c4a2df;background:#41324e}
.choice-btn .small-portrait{border-radius:4px}
.small-portrait{object-fit:contain;vertical-align:middle}
.object-art{display:inline-grid;place-items:center;min-width:1em;line-height:1.2}
.field-token{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:3px;color:white;background:none;max-width:25%;padding:5px;min-width:52px}
.token-art{display:grid;place-items:center;width:64px;height:61px;background:#241c38d9;border:2px solid #e5cef0;border-radius:13px;box-shadow:0 3px 0 #201728a8}
.token-label{font:800 .89rem/1.18 Nunito,sans-serif;text-align:center;padding:3px 8px;background:#22192ce8;border:1px solid #cab6cf82;border-radius:5px;white-space:normal}
.field-token:not(:disabled):hover .token-art{transform:translateY(-2px);border-color:var(--gold)}
.field-token.lit .token-art{border-color:var(--gold);box-shadow:0 0 0 3px #ffc65d70,0 0 23px #ffcf6d77}
.field-token.found .token-art{opacity:.75;background:#225744dd;border-color:#a8e6ad}
.field-token.found .token-label{background:#214937}
.bubbles .token-art{border-radius:50%;background:radial-gradient(circle at 27% 18%,#dbffffd6 0 4%,transparent 5%),linear-gradient(145deg,#7cdef2b5,#205b87ef);border-color:#aff6ff}
.echo .token-art::before{content:"";position:absolute;width:73px;height:73px;border:3px solid #aff4d3;border-radius:50%;animation:ripple 1.8s ease-out infinite}
@keyframes ripple{from{transform:scale(.78);opacity:1}to{transform:scale(1.45);opacity:0}}
.flight-path{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#fff3bc;stroke-width:3;stroke-dasharray:3 7;stroke-linecap:round;filter:drop-shadow(0 1px 2px #231a38)}
.trail-pilot{position:absolute;transform:translate(-115%,-125%);z-index:1;background:#29203d;border:1px solid #fce0a1;border-radius:4px}
.sequence-rack{position:absolute;bottom:6%;left:50%;transform:translateX(-50%);display:flex;gap:5px}
.sequence-rack span{width:38px;height:31px;display:grid;place-items:center;background:#252034cf;border:1px dashed #e5cde3;color:#ddd0e7;font-family:var(--pix);border-radius:4px}
.bridge-board{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px}
.bridge-slot{display:grid;place-items:center;gap:8px;width:20%;max-width:105px;height:88px;background:#261e31dd;border:2px dashed #efdbc5;border-radius:8px}
.bridge-slot small{color:#efe2dc;font-weight:750}
.piece-shape{display:inline-block;width:29px;height:27px;background:#caadde;border:2px solid #88739e}
.piece-shape.arch{border-radius:14px 14px 0 0}
.piece-shape.triangle{clip-path:polygon(50% 0,100% 100%,0 100%);border:0}
.bridge-slot .piece-shape{background:transparent;border:2px dashed #d5c1de}
.bridge-slot .triangle{background:#857595}
.wood .piece-shape,.wood .filled{background:repeating-linear-gradient(0deg,#dfac78 0 7px,#bf875e 7px 9px)}
.stone .filled,.stone .piece-btn .piece-shape{background:linear-gradient(150deg,#dfcde1,#8e7999)}
.bridge-slot.filled{border-style:solid;color:#2d2039}
.bridge-slot.filled small{color:#31283b}
.piece-btn:disabled{opacity:.45}
.postcard-scene{height:100%;display:grid;place-items:center}
.postcard-paper{position:relative;background:repeating-linear-gradient(125deg,#b85577 0 10px,#f3dcbc 10px 18px,#6c9dba 18px 28px,#f3dcbc 28px 36px);width:min(250px,85%);height:145px;padding:9px;isolation:isolate;box-shadow:0 4px 0 #513b57;transform:rotate(-3deg);margin:8px auto;display:flex;align-items:center;gap:20px}
.postcard-paper::before{content:"";position:absolute;inset:5px;background:#fff0ce;z-index:-1}
.postal-stamp{position:absolute;right:15px;top:15px;width:35px;height:37px;display:grid;place-items:center;background:#b8e6d1;border:2px dotted #6f8b86}
.postal-drawings{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;width:53%;margin-top:20px}
.postal-lines{display:grid;gap:8px;width:28%;margin-top:38px}
.postal-lines i{height:2px;background:#b8a388}
.win-copy{padding:25px 26px 30px;text-align:center}
.win-copy h1{margin:9px 0 10px}
.win-copy p{max-width:59ch;margin:0 auto;color:#ded5e9;font-size:1.06rem}
.win-actions{justify-content:center;margin-top:20px}
.win-scene{height:205px;display:grid;place-items:center}
.win-reward{display:grid;place-items:center;width:111px;height:111px;background:#281f3cf0;border:3px solid #ffe5a0;border-radius:25px;box-shadow:0 0 0 5px #b58adc6b,0 0 55px #fff2bd66}
.model-bridge{position:relative;display:flex;justify-content:center;margin:20px auto 10px;padding-top:27px;width:180px}
.model-bridge i{width:45px;height:26px;border:8px solid #b7a5c7;border-bottom:0;border-radius:14px 14px 0 0}
.model-bridge.wood i{border-color:#cc986e;border-radius:1px}
.model-bridge span{position:absolute;top:0;left:0;font-size:24px;line-height:1;animation:train 3.5s linear infinite}
@keyframes train{from{transform:translateX(2px)}to{transform:translateX(145px)}}
.noscript{padding:30px}
@media(min-width:1500px){.wrap{width:min(1250px,calc(100% - 120px))}.hero{height:386px}.main{padding-top:40px}.section-head{margin-top:32px}.world-thumb{height:118px}}
@media(max-width:1020px){
  .wrap{width:calc(100% - 48px)}.top-inner{gap:30px}.primary-nav{gap:20px}
  .main{padding-top:27px}.hero-content{max-width:62%;padding-left:34px}.hero h2{font-size:3.4rem}
  .world-grid,.crew-grid,.relic-grid{gap:10px}.card-body{padding:10px 9px}.card-body strong{font-size:.95rem}
  .crew-scenery{height:135px}.crew-info{padding:10px}.hud{min-width:188px}
}
@media(max-width:760px){
  .top-inner{gap:15px;flex-wrap:wrap;min-height:0;padding-top:12px}
  .brand img{width:35px;height:37px}.brand span{font-size:1.27rem}.brand small{font-size:.9rem}
  .primary-nav{order:3;width:100%;justify-content:space-between;gap:8px}
  .primary-nav a{min-height:42px;font-size:.87rem;gap:6px;justify-content:center;flex:1}
  .primary-nav a svg{width:17px;height:17px}.tools{gap:3px}.utility{min-height:42px;min-width:42px}
  .main{padding-top:23px}.page-heading{gap:10px;align-items:flex-start}.page-heading p{font-size:.92rem}
  .hud{min-width:142px;gap:4px;padding:8px}.hud-star{width:23px}.hud-star svg{width:19px}.hud-label{gap:6px;font-size:.73rem}.hud-label b,.hud-label em{font-size:.73rem}
  .hero{height:301px;min-height:0}.hero-content{max-width:68%;padding:24px}.hero h2{font-size:clamp(2.6rem,6vw,3.25rem)}.hero-content p{font-size:1rem;max-width:280px}
  .hero-actions{gap:8px;margin-top:17px}.hero-controls{right:10px;bottom:10px;gap:4px}
  .world-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.world-thumb{height:93px}
  .crew-grid,.relic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-heading{padding:15px 17px}.instruction{padding:15px 17px 0}.game-controls{padding:15px 17px}
  .choice-row,.piece-controls,.stamp-controls{padding:12px 17px 0}.hint-text{margin:0 17px 17px}
}
@media(max-width:550px){
  .wrap{width:calc(100% - 30px)}.main{padding-top:20px;padding-bottom:25px}.top-inner{padding-top:9px;row-gap:8px}
  .page-heading{flex-wrap:wrap;position:relative;margin-bottom:15px}.page-heading>div:first-child{width:100%}
  .page-heading h1{font-size:2.1rem;max-width:calc(100% - 93px);letter-spacing:-.055em}
  .page-heading p{margin-top:6px;max-width:100%;font-size:.9rem}
  .hud{position:absolute;right:0;top:2px;padding:4px 7px;min-width:0;min-height:29px;border-radius:5px}
  .hud-inner{min-width:0}.hud-label>span,.hud .progress-track{display:none}.hud-star{width:18px;height:18px}.hud-star svg{width:16px;height:16px}
  .hero{height:357px;border-radius:9px}.hero-art{background-position:74% 0%;background-size:auto 70%;background-repeat:no-repeat;background-color:#2b2041}
  .hero-shade{background:linear-gradient(0deg,#251c36 0%,#2a1e3cfb 17%,#2b203fe3 32%,#2b204161 51%,transparent 70%)}
  .hero-content{height:100%;justify-content:flex-end;max-width:100%;padding:0 17px 20px}
  .world-tag{font-size:.73rem;gap:6px;padding:4px 7px}.world-tag svg{width:15px;height:15px}
  .hero h2{font-size:2.72rem;margin:7px 0 4px;max-width:100%;line-height:.99}
  .hero-content p{font-size:.95rem;margin:1px 0 0;line-height:1.32;max-width:100%}
  .hero-actions{margin-top:12px;gap:8px}.gold-btn,.secondary,.hint-btn,.btn-locked{min-height:44px;font-size:.9rem;padding:9px 12px}
  .hero-controls{bottom:auto;top:8px;right:8px;gap:3px;min-height:36px}
  .hero-controls .square{width:33px;height:33px}.hero-controls span{font-size:.75rem}
  .section-head{margin:20px 0 10px;gap:5px}.section-head h2{font-size:1.43rem;gap:7px}.section-head h2 svg{width:19px;height:19px}.world-count{font-size:.75rem;gap:4px}
  .world-grid,.crew-grid,.relic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
  .world-thumb{height:80px}.card-body{min-height:58px;padding:8px 9px}.world-number{font-size:.72rem}.card-body strong{font-size:.95rem}
  .radio-panel{gap:10px;padding:10px;margin-top:18px}.radio-text strong{font-size:.98rem}.radio-text p{font-size:.86rem}
  .radio-portrait{width:42px;height:45px}.radio-listen{height:40px;width:35px}
  .game-top{margin-bottom:8px}.back-link{min-height:40px}
  .game-heading{align-items:flex-start;gap:7px;padding:12px}.game-heading h1{font-size:1.55rem}.game-heading .small-label{font-size:.71rem;gap:4px}
  .challenge-badge{font-size:.69rem;padding:4px 6px;margin-top:1px}.game-field{height:215px}
  .instruction{gap:9px;padding:13px 12px 0}.instructor{width:37px;height:39px}.instruction h2{font-size:1.11rem}.instruction p{font-size:.95rem}
  .game-controls,.choice-row,.piece-controls,.stamp-controls{padding-left:12px;padding-right:12px;gap:7px}
  .choice-btn,.piece-btn{min-width:0;flex:1 1 86px;font-size:.89rem;gap:5px;padding:8px 6px;min-height:50px}
  .choice-btn svg,.small-portrait{width:27px;height:27px}.choice-btn span{line-height:1.2}
  .token-art{width:48px;height:47px;border-radius:9px}.token-art svg{width:32px;height:32px}.field-token{max-width:28%;min-width:45px}
  .token-label{font-size:.74rem;padding:3px 4px}.beacon-field .field-token{max-width:23%}.sequence-rack{bottom:5%}
  .crew-scenery{height:145px}.crew-info strong{font-size:1.02rem}
  .relic strong{font-size:.99rem}.relic{padding:12px 8px}
  .ship-cabin{padding:13px;gap:10px;flex-wrap:wrap}.ship-avatar{width:50px;height:50px}.ship-avatar svg{width:33px;height:33px}.ship-cabin h2{font-size:1.45rem}
  .ship-cabin .secondary{font-size:.82rem;padding:8px}.ship-cabin .small-label{font-size:.73rem}
  #dialog-inner{padding:23px 17px}.dialog-actions{gap:8px}
  .win-copy{padding:18px 13px}.win-copy h1{font-size:2rem}.win-copy p{font-size:.98rem}.win-scene{height:170px}
}
@media(max-width:350px){.wrap{width:calc(100% - 20px)}.primary-nav a{gap:4px;font-size:.78rem}.page-heading h1{font-size:1.82rem}.hero h2{font-size:2.3rem}.hero-content{padding:0 13px 16px}.world-count svg{display:none}.brand span{font-size:1.2rem}.hero .secondary{padding:9px}.utility.sound{padding:0 8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}
