:root{--ink:#111c2e;--panel:#101927ec;--panel2:#182538e8;--panel3:#25364be6;--gold:#f4ce90;--ivory:#f5eddd;--silver:#b1c1d2;--teal:#8ad8d7;--coral:#f2a78c;--edge:#e3c48b35;--edge2:#f3d09b7a;--shadow:0 20px 60px #0309168c}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#101927;color:var(--ivory);font-family:Manrope,Segoe UI,Arial,sans-serif}body{overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #f1d4a65e;background:linear-gradient(180deg,#334359ed,#1a2839e8);padding:12px 17px;border-radius:12px;transition:.2s;min-height:42px}button:hover:not(:disabled){border-color:#f5d69d;filter:brightness(1.12);transform:translateY(-1px)}button:active{transform:translateY(1px)}button:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.7)}.gold{color:#241d18;background:linear-gradient(160deg,#f8dfb1,#d39d62);border:1px solid #ffe3b2;font-weight:800;box-shadow:0 3px 18px #bd904b50}.danger{background:linear-gradient(#713f4b,#432d3c)}.muted{color:var(--silver)}.kicker{font-size:.71rem;letter-spacing:.32em;color:var(--gold);font-weight:800;text-transform:uppercase}.serif{font-family:'Cormorant Garamond',Georgia,serif}.small{font-size:.77rem}.tiny{font-size:.67rem}.subtle{opacity:.72}h1,h2,h3,p{margin-top:0}#app{height:100dvh;overflow:hidden}.screen{width:100%;height:100%;position:relative;overflow:hidden}.shell{height:100%;display:grid;grid-template-rows:auto 1fr;background:#0e1828;min-height:0}.topnav{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 26px;background:linear-gradient(180deg,#101d2df4,#162336ed);border-bottom:1px solid #efd6ad22;position:relative;z-index:3;min-height:74px}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:1.4rem;letter-spacing:.08em}.brand .logo{width:43px;height:43px;display:grid;place-items:center;border:1px solid var(--edge2);border-radius:50%;font-size:1.55rem;background:#debc7940;color:#f2d7a7}.topstats{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.pill{border:1px solid var(--edge);border-radius:99px;padding:9px 13px;background:#172536b6;color:#dbe3e9;font-weight:700;font-size:.82rem}.pill strong{color:#f2d7a7}.nav-actions{display:flex;gap:7px;align-items:center}.nav-actions button{padding:9px 13px;font-size:.79rem}.panel{border:1px solid var(--edge);background:linear-gradient(142deg,#1d2c41f5,#111d2fed);box-shadow:var(--shadow);border-radius:18px;overflow:hidden}.panel-in{padding:20px}.panel-title{font-family:Georgia,serif;font-size:1.38rem;color:#f8e8c5;letter-spacing:.02em;margin:0 0 10px}.hero{background:url('assets/cover.webp') center/cover no-repeat;display:flex;align-items:center;padding:clamp(24px,6vw,96px)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#081321f5 3%,#0a1824cf 30%,#11253c73 60%,#0615249a),linear-gradient(0deg,#08121de9,transparent 40%)}.hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 74% 22%,#d4a95b1b,transparent 40%);animation:breath 12s ease-in-out infinite alternate}@keyframes breath{to{opacity:.4;transform:scale(1.05)}}.hero-copy{position:relative;z-index:1;width:min(690px,100%);max-height:100%;overflow:auto}.hero-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(4rem,8vw,8.6rem);font-weight:700;line-height:.77;letter-spacing:-.035em;color:#ffeed0;text-shadow:0 6px 22px #0008;margin:20px 0 34px}.hero-title em{font-size:.36em;display:block;letter-spacing:.37em;font-style:normal;color:#f6cd83;margin-top:26px}.hero-copy>p{color:#e1dfe1;font-size:1.02rem;line-height:1.8;max-width:540px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0}.hero-facts{display:flex;gap:24px;flex-wrap:wrap;margin:35px 0 0;color:#ded8ca;font-size:.85rem}.hero-facts b{font-size:1.25rem;color:var(--gold);display:block}.credit{position:absolute;right:25px;bottom:24px;z-index:2;color:#e1d3b8a1;font-size:.76rem;letter-spacing:.09em}
.hub{height:100%;display:grid;grid-template-columns:minmax(280px,320px) minmax(0,1fr) minmax(280px,340px);gap:14px;padding:14px;overflow:hidden;position:relative;background:linear-gradient(#142134cb,#131f30d9),url('assets/aurelia.webp') center/cover}.hub>*{min-height:0}.sidecol{display:flex;flex-direction:column;gap:12px;overflow:auto;scrollbar-width:thin}.sidecol .panel{flex-shrink:0}.ship-art{position:relative;height:215px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#baaa8150,transparent 69%)}.ship-art img{width:97%;filter:drop-shadow(0 24px 22px #071222af);animation:shipFloat 4s ease-in-out infinite}@keyframes shipFloat{50%{transform:translateY(-9px) rotate(.7deg)}}.ship-stat{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #bfc9d022;padding:10px 0;gap:10px}.ship-stat strong{color:var(--gold)}.health-track{height:9px;background:#596b7a5c;border-radius:10px;overflow:hidden}.health-track>i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#ad6a5e,#edaa83)}.health-track.shield>i{background:linear-gradient(90deg,#5197b7,#a3ece9)}.chapterlist{display:flex;flex-direction:column;gap:9px}.chapter{padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e4d2ab1e;border-radius:12px;background:#1f30418a;font-size:.82rem}.chapter.done{border-color:#88caac50;color:#ade5c5}.chapter.active{border-color:#efca8666;background:#8d68372c}
.mainpane{border:1px solid var(--edge);border-radius:20px;position:relative;display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:var(--shadow);background:linear-gradient(#1220309c,#0c1728b3),url('assets/verdance.webp') center/cover}.tabs{position:relative;z-index:2;display:flex;gap:5px;flex-wrap:wrap;padding:13px 16px;border-bottom:1px solid var(--edge);background:#0d1c2cc4}.tab{background:transparent;border:1px solid transparent;min-height:38px;padding:8px 12px;color:#bfcfe0;font-size:.82rem}.tab.active{color:#f3d49b;border-color:#d7b7806b;background:#2f3e49bd}.maincontent{min-height:0;overflow-y:auto;padding:clamp(14px,2vw,26px);scrollbar-width:thin}.pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:22px}.pagehead h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(2rem,3vw,3.2rem);margin:4px 0}.pagehead p{margin:0;color:#c3d0d7;line-height:1.6}.mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.mission{position:relative;min-height:174px;border-radius:15px;border:1px solid #e8d5ba39;overflow:hidden;background:#15263aba;display:flex;flex-direction:column;justify-content:flex-end;padding:16px;cursor:pointer;transition:.22s}.mission:hover{transform:translateY(-3px);border-color:#f6d59d;background:#223b50bb}.mission:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0d19251a,#0c162cdb),var(--bg);background-size:cover;background-position:center;z-index:0;transition:transform .4s}.mission:hover:before{transform:scale(1.07)}.mission>*{position:relative;z-index:1}.mission h3{margin:5px 0;font-family:Georgia,serif;font-size:1.15rem}.mission p{font-size:.79rem;color:#dfdfdf;line-height:1.45;max-width:440px;margin:5px 0 10px}.ribbon{font-size:.66rem;text-transform:uppercase;letter-spacing:.16em;color:#f1d39e;font-weight:800}.mission.locked{filter:saturate(.4);opacity:.7}.mission.complete .ribbon{color:#9be5bb}.mission .foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.72rem;color:#e6d0ab}.crew-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.crew-card{display:flex;align-items:stretch;background:#0f1a29c9;border:1px solid #ebc9943b;border-radius:14px;overflow:hidden;min-height:190px}.crew-card img{width:37%;max-width:160px;object-fit:cover;object-position:50% 12%;filter:contrast(1.04)}.crew-card .info{padding:18px 14px;display:flex;flex-direction:column;justify-content:center}.crew-card h3{font-family:Georgia,serif;margin:2px 0;font-size:1.17rem}.crew-card p{font-size:.8rem;line-height:1.5;color:#cbd7df;margin:10px 0}.trust{margin-top:12px;font-size:.76rem;color:var(--gold)}.trust span{display:block;margin-top:5px;height:5px;width:100%;border-radius:4px;background:#6d747b}.trust i{height:100%;background:#e7c88e;display:block;border-radius:4px}.upgrade-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.upgrade{padding:19px;border:1px solid var(--edge);border-radius:14px;background:#15253ac4}.upgrade h3{margin:0 0 8px;font-size:1.06rem}.upgrade p{min-height:42px;font-size:.82rem;color:#c3cfda}.upgrade-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.mapscene{height:min(540px,64vh);border-radius:19px;background:linear-gradient(90deg,#071c2c55,#101a2e30),url('assets/aurelia.webp') center/cover;position:relative;box-shadow:inset 0 0 110px #061528b8;overflow:hidden;border:1px solid var(--edge)}.mapscene:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 49.5%,#ffffff12 50%,transparent 50.5%),linear-gradient(transparent 49.5%,#ffffff0a 50%,transparent 50.5%);background-size:68px 68px;opacity:.24}.mapline{height:2px;background:linear-gradient(90deg,#ddcb91a8,#f6e0a8aa);position:absolute;transform-origin:left center;pointer-events:none;z-index:1;box-shadow:0 0 7px #f5cc7c6d}.mapnode{position:absolute;z-index:2;width:103px;transform:translate(-50%,-50%);background:linear-gradient(#141e2ede,#243b53db);padding:12px 7px;min-height:60px;border:1px solid #eccb888c;text-align:center;box-shadow:var(--shadow);border-radius:12px;font-size:.75rem;font-weight:800}.mapnode.available{border-color:#ffd58f;background:linear-gradient(#59472dcf,#2f3851e8)}.mapnode.done{border-color:#7fd8c0}.mapnode.locked{opacity:.56;filter:grayscale(.6)}.mapnode b{display:block;font-size:1.3rem;margin-bottom:2px}.mapbelow{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:14px}.mapbelow .panel-in{min-height:125px}.letter{border-left:3px solid #e7c486;padding:13px 16px;background:#1a2938b7;font-family:Georgia,serif;line-height:1.6;font-size:1rem}.codex{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.codex-item{padding:17px 18px;border-radius:13px;background:#17283ab8;border:1px solid #e3c48b3a;line-height:1.6;font-size:.84rem}.rightnote{font-size:.84rem;line-height:1.65;color:#cfdee7}.portrait-strip{display:flex;align-items:center;gap:12px;background:#132437bb;padding:11px;border:1px solid #ead5a72d;border-radius:13px;margin-bottom:9px}.portrait-strip img{height:58px;width:48px;object-fit:cover;border:1px solid #e6c7945c;border-radius:7px}.portrait-strip strong{font-size:.83rem}.portrait-strip span{display:block;font-size:.72rem;color:var(--silver);margin-top:3px}.noteimage{height:155px;background:linear-gradient(transparent,#0b192dc0),url('assets/aurelia.webp') center/cover;border-radius:12px;margin-bottom:14px;border:1px solid #e5c38b24}.routebtn{width:100%;margin-top:12px;text-align:left}.menu-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.menu-options button{padding:9px}.badge{font-size:.69rem;padding:5px 9px;border:1px solid #e7c88a44;border-radius:99px;letter-spacing:.07em;color:var(--gold)}
/* Flight canvas screen */
.flight{background:#132337}.flight canvas{display:block;width:100%;height:100%;touch-action:none}.flight-hud{position:absolute;z-index:3;inset:0;pointer-events:none}.flight-top{position:absolute;top:15px;left:16px;right:16px;display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.flight-panel{min-width:210px;max-width:min(380px,50vw);padding:13px 16px;background:#111f32e8;border:1px solid #e7c69469;box-shadow:var(--shadow);border-radius:14px;backdrop-filter:blur(12px)}.flight-panel h3{margin:0 0 6px;font-family:Georgia,serif;font-size:1.1rem}.flight-panel p{color:#cfdee6;font-size:.76rem;line-height:1.6;margin:6px 0}.flight-bars{width:245px;margin-top:8px;display:grid;gap:8px}.barline{display:grid;grid-template-columns:42px 1fr auto;gap:7px;align-items:center;font-size:.7rem;color:#dedacd}.barline .health-track{height:7px}.flight-controls{pointer-events:auto;display:flex;gap:8px}.flight-controls button{font-size:.74rem;padding:9px 13px}.flight-bottom{position:absolute;bottom:14px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:flex-end;gap:14px}.flight-tip{background:#101b2dbb;padding:10px 16px;border:1px solid var(--edge);border-radius:12px;color:#d1dbde;font-size:.76rem}.touch-ui{display:none;pointer-events:auto;gap:8px;justify-content:space-between;width:100%;align-items:end}.touch-move{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:146px}.touch-move button{padding:7px 5px;font-size:1.05rem;border-radius:9px;min-width:45px;min-height:44px;background:#122c42df}.touch-actions{display:flex;gap:8px;align-items:end}.touch-actions button{height:60px;min-width:58px;padding:9px;font-size:.78rem;border-radius:50%;background:#34485ce6}.touch-actions .fire{background:#ae7752e8;color:#fff6e4}
.overlay{position:fixed;inset:0;z-index:20;background:#061222d8;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(12px);overflow:auto}.modal{width:min(860px,100%);max-height:93dvh;overflow:auto;background:linear-gradient(135deg,#1a2c40fa,#0e1e30fc);border:1px solid #dcb9879f;border-radius:22px;box-shadow:0 30px 130px #000b}.modal .modal-top{padding:22px 28px 15px;border-bottom:1px solid var(--edge)}.modal .modal-inner{padding:24px 28px}.dialogue{display:grid;grid-template-columns:205px 1fr;gap:22px;align-items:center}.dialogue img{width:100%;height:244px;object-fit:cover;object-position:top;border:1px solid #d4af76ab;border-radius:13px}.dialogue .text{font-family:Georgia,serif;font-size:1.2rem;line-height:1.8;color:#f2e7d8}.dialogue .name{font-weight:800;color:#ecca8c;margin-bottom:10px}.choices{display:flex;gap:10px;flex-direction:column;margin-top:16px}.choices button{text-align:left}.result-icon{font-size:3.2rem;margin:10px 0}.result-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:3.2rem}.result-details{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.ending-scene{background:linear-gradient(#03111bab,#07121de6),url('assets/heart.webp') center/cover;display:grid;place-items:center;padding:30px}.endcard{max-width:780px;background:#0e1f30dc;border:1px solid #f3d29a68;border-radius:22px;padding:36px;box-shadow:var(--shadow);text-align:center}.endcard h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(2.5rem,6vw,5rem);margin:10px 0}.endcard p{font-size:1.03rem;line-height:1.9;color:#e2e5e6}.toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translate(-50%,20px);background:#172c3ce8;border:1px solid #ebce969e;border-radius:13px;padding:13px 17px;opacity:0;pointer-events:none;transition:.25s;box-shadow:var(--shadow);font-size:.83rem}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1230px){.hub{grid-template-columns:245px minmax(0,1fr) 265px;gap:9px;padding:9px}.topnav{padding:10px 15px}.panel-in{padding:15px}.mission-grid{grid-template-columns:1fr}.pagehead h2{font-size:2.2rem}}
@media(max-width:980px){body{overflow:auto}#app,.screen{min-height:100dvh;height:auto;overflow:visible}.shell{min-height:100dvh}.topnav{flex-wrap:wrap}.hub{grid-template-columns:1fr;overflow:visible}.mainpane{min-height:550px}.sidecol{overflow:visible}.sidecol.left{order:2}.mainpane{order:1}.sidecol.right{order:3}.sidecol .panel{min-height:unset}.mission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:100dvh}.flight,.flight canvas{height:100dvh;min-height:100dvh}.flight-tip{display:none}.touch-ui{display:flex}}
@media(max-width:640px){.topstats{order:3;width:100%;justify-content:flex-start}.brand{font-size:1.15rem}.topnav{gap:9px}.topnav .pill{font-size:.75rem}.hero{padding:25px}.hero-title{font-size:4.4rem}.hero-facts{gap:14px}.pagehead{display:block}.mission-grid,.crew-grid,.upgrade-list,.mapbelow,.codex{grid-template-columns:1fr}.tabs{overflow-x:auto;flex-wrap:nowrap}.tab{white-space:nowrap}.maincontent{padding:14px}.mapscene{height:460px}.mapnode{width:82px;padding:6px 3px;font-size:.62rem}.mapnode b{font-size:1.0rem}.dialogue{grid-template-columns:95px 1fr;gap:12px}.dialogue img{height:155px}.dialogue .text{font-size:.99rem}.modal .modal-top{padding:16px}.modal .modal-inner{padding:16px}.flight-panel{min-width:0;max-width:55vw;padding:10px}.flight-bars{width:auto}.flight-top{left:8px;right:8px;top:9px}.flight-bottom{left:8px;right:8px;bottom:9px}.flight-panel h3{font-size:.85rem}.flight-panel p{font-size:.65rem}.flight-controls{flex-direction:column}.flight-controls button{min-height:36px;padding:7px}.touch-move{width:122px}.touch-move button{min-width:37px;min-height:38px}.touch-actions button{min-width:52px;height:52px}.result-title{font-size:2.4rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
@media(max-width:640px){.hero-title{font-size:clamp(2.8rem,12vw,3.5rem);line-height:.90}.hero-title em{font-size:.34em;letter-spacing:.28em;line-height:1.2}.hero-copy{padding-top:15px}}
