/* Meridian — reference-v2. Live HTML, separate illustrated surfaces. */
:root{--ink:#263f58;--navy:#243d57;--cream:#fff5d9;--gold:#e4c783;--muted:#677c87;--blue:#30b6d3;--coral:#ef7052;--line:#e1d3b4;--sea:#259eaa;--shadow:0 8px 24px #123c4c35}
*{box-sizing:border-box}html{min-height:100%;background:#287c8b;scroll-behavior:smooth;scroll-padding-bottom:130px}body{margin:0;min-height:100svh;padding:18px clamp(16px,6.2vw,32px) calc(130px + env(safe-area-inset-bottom));font-family:Arial,"Segoe UI",sans-serif;color:var(--ink);background:#62a5b6;overflow-x:hidden}body:before{content:"";position:fixed;inset:0;z-index:-1;background:url('assets/reference-v2/background.webp') center / 100% 100% no-repeat;pointer-events:none}body{isolation:isolate}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible{outline:3px solid #fff0a3;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}img{max-width:100%}.app{max-width:520px;margin:0 auto}.screen{display:none}.screen.active{display:block}
.header-stats{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.header-stat{position:relative;display:grid;grid-template-columns:24px auto;grid-template-rows:auto auto;align-items:center;column-gap:5px;min-width:0;padding:5px 8px;border:1px solid #eed89e;border-radius:10px;background:linear-gradient(135deg,#fff3cd,#e7cb8e);box-shadow:0 2px 0 #a98954,0 4px 8px #173e4a30}.header-stat img{grid-row:1/3;width:24px;height:24px;object-fit:contain}.header-stat span{font-size:7px;line-height:1;color:#6c684f;font-weight:800;white-space:nowrap}.header-stat strong{font-size:17px;line-height:1;color:#76552a;white-space:nowrap;font-variant-numeric:tabular-nums}.header-stat.income{background:linear-gradient(135deg,#e0f0df,#a9d2bf);border-color:#c1dfc0}.header-stat.income strong{color:#23734f}.port-home>.values{display:none}
.hero-economy{position:absolute;z-index:5;top:13px;left:9px;right:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.hero-economy-card{display:flex;align-items:center;gap:5px;min-width:0;padding:5px 6px;border:1px solid #dce8d3;border-radius:9px;background:linear-gradient(135deg,#1d5269e8,#2b7b84e8);box-shadow:0 3px 8px #143a4d80,inset 0 0 0 1px #fff3b833;color:#fff8dc}.hero-economy-card.cargo{background:linear-gradient(135deg,#6c633ee8,#9c7e43e8);border-color:#f0d99b}.hero-economy-card>img{width:24px;height:24px;flex:none;object-fit:contain}.hero-economy-card>div{min-width:0;flex:1}.hero-economy-card span{display:block;font-size:6.5px;line-height:1.1;font-weight:800;white-space:nowrap}.hero-economy-card strong{display:block;margin-top:2px;font-size:12px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}.hero-economy-card i{display:block;height:4px;margin-top:4px;border-radius:4px;background:#153d5066;overflow:hidden}.hero-economy-card i b{display:block;width:0;height:100%;border-radius:inherit;background:#61d7f2}.hero-economy-card.cargo i b{background:#f4d36e}
@media(max-width:360px){.header-stats{gap:5px}.header-stat{padding:4px 5px;column-gap:3px}.header-stat img{width:20px;height:20px}.header-stat strong{font-size:14px}.header-stat span{font-size:6px}.hero-economy{left:6px;right:6px;gap:4px}.hero-economy-card{padding:4px}.hero-economy-card>img{width:20px;height:20px}.hero-economy-card span{font-size:5.5px}.hero-economy-card strong{font-size:10px}}

.top{display:flex;align-items:center;justify-content:space-between;gap:10px;height:62px;margin:0 0 15px;padding:0}.brand{display:flex;align-items:center;gap:9px;min-width:0}.crest{width:54px;height:59px;flex:none;display:grid;place-items:center;filter:drop-shadow(0 3px 2px #34515d80)}.crest-ico{display:block;width:100%;height:100%;object-fit:contain}.brand h1{font-size:32px;line-height:1;margin:0;font-weight:900;color:#fff0cb;letter-spacing:.02em;text-shadow:0 2px 0 #a28c60,0 4px 4px #37596480}.brand small{display:none}.sound{width:68px;height:28px;flex:none;position:relative;display:flex;align-items:center;border:2px solid #ebd79d;border-radius:19px;background:linear-gradient(#446a7b,#24495d);color:#f6d07f;box-shadow:0 2px 2px #385a6180,inset 0 1px 1px #91b5bd;padding-left:5px}.sound .ico{width:19px;height:19px;padding:1px;background:#efcf85;color:#6a705c;border-radius:50%}.sound:before{content:"";position:absolute;right:25px;top:7px;width:13px;height:10px;background:repeating-linear-gradient(90deg,#f3da96 0 1px,transparent 1px 3px);clip-path:polygon(0 40%,15% 40%,15% 20%,35% 20%,35% 0,65% 0,65% 20%,85% 20%,85% 40%,100% 40%,100% 60%,85% 60%,85% 80%,65% 80%,65% 100%,35% 100%,35% 80%,15% 80%,15% 60%,0 60%)}.sound:after{content:"";position:absolute;right:3px;top:2px;width:20px;height:20px;border-radius:50%;background:linear-gradient(#fffdf1,#e7e5d0);box-shadow:0 1px 2px #254457}.sound.off{filter:saturate(.3)}.sound.off:before{opacity:.25}.sound.off:after{background:#b1c5c7}
/* First-screen composition is separate from the scrollable catalog. */
.port-home{padding-bottom:28px}.values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:26px}.value{position:relative;min-width:0;height:78px;padding:12px 8px 14px 59px;background:url('assets/reference-v2/panel-cream.png') center / 100% 100% no-repeat;filter:drop-shadow(0 3px 2px #60583335)}.value.gold{background-image:url('assets/reference-v2/panel-blue.png')}.hud-ico{position:absolute;left:9px;top:16px;width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 2px 1px #856b4435)}.value .label{font-size:9px;line-height:1.1;font-weight:850;text-transform:uppercase;white-space:nowrap;letter-spacing:.01em;margin-bottom:3px}.value strong{display:block;font-size:28px;line-height:1;font-weight:850;letter-spacing:-.045em;color:#95703c;white-space:nowrap;font-variant-numeric:tabular-nums}.value strong span{font-size:17px;letter-spacing:-.02em;color:#23445e}.value.gold strong,.value:nth-child(4) strong{color:#23445e}.value.coral strong{color:#258b44}.bar{position:absolute;left:13px;right:13px;bottom:9px;height:8px;border-radius:7px;background:#bba67c62;box-shadow:inset 0 1px 2px #826e4d40;overflow:hidden}.bar i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(#a6de4e,#4ea82a);transition:width .4s}.value.gold .bar{background:#5494b445}.value.gold .bar i{background:linear-gradient(#61d7f2,#1688d0)}.bar em{position:absolute;inset:0;text-align:center;font-size:7px;font-weight:800;font-style:normal;color:#fff;line-height:8px;text-shadow:0 1px 2px #36586b}.value:first-child .bar,.value.coral .bar{display:none}
/* One clean framed illustration; no repeated labels baked into the scene. */
.harbor-frame{position:relative;border:2px solid #e6cc89;border-radius:16px;background:linear-gradient(#254765,#20364f);box-shadow:0 3px 0 #957342,0 7px 14px #173f4a50,inset 0 0 0 1px #faeab966;padding:0 0 4px;margin:0}.hero{position:relative;width:100%;aspect-ratio:1.64;isolation:isolate}.hero-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:61% center;border-radius:13px 13px 0 0;border-bottom:2px solid #cfb675}.status{position:absolute;z-index:4;top:-13px;left:50%;transform:translateX(-50%);height:27px;min-width:174px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:5px;background:url('assets/reference-v2/panel-navy.png') center / 100% 100% no-repeat;color:#fbe4a7;font-size:9px;font-weight:850;white-space:nowrap;filter:drop-shadow(0 2px 2px #324d5c70)}.status:before{content:"";width:15px;height:15px;flex:none;background:url('assets/reference-v2/settings.png') center / contain no-repeat;filter:sepia(.9) saturate(.8) brightness(1.4)}.course-line{position:absolute;z-index:1;left:19%;top:12%;width:75%;height:31px;overflow:visible;filter:drop-shadow(0 1px 1px #674d3b70);pointer-events:none}.hero-info{position:absolute;left:10px;bottom:10px;width:36%;min-width:118px;padding:9px 8px 8px;color:#fff9df;border:1px solid #bddfce;border-radius:9px;background:linear-gradient(135deg,#8fb9bdc9,#3c7d8ac9 48%,#477c8cdb);box-shadow:0 3px 6px #143e5066,inset 0 0 0 2px #cae5d533;backdrop-filter:blur(4px)}.fill-line{display:flex;align-items:center;gap:3px;white-space:nowrap}.fill-line svg{width:15px;height:15px;flex:none}.fill-line span{font-size:7px;font-weight:800}.fill-line strong{font-size:9px;margin-left:auto}.hero-fill-track{display:block;height:7px;margin:4px 0 8px;border-radius:6px;background:#214f64;box-shadow:inset 0 1px 2px #142f47,inset 0 -1px 0 #c4e5de88;overflow:hidden}.hero-fill-track i{display:block;height:100%;width:0;border-radius:inherit;background:repeating-linear-gradient(120deg,#47c6ed 0 3px,#3db2de 3px 6px);box-shadow:inset 0 1px 1px #c9faff;transition:width .4s}.day-line{display:flex;align-items:center;gap:6px}.day-line svg{height:24px;width:24px;flex:none}.day-line span{font-size:7px;display:block;font-weight:700;letter-spacing:.03em}.day-line strong{font-size:19px;line-height:1.1;display:block;font-variant-numeric:tabular-nums}.hero-title{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;font-size:8px;color:#f4f3db;text-shadow:0 1px 2px #134b5a;margin:12px 0 4px;line-height:1.2}.hero-title b{font-weight:700;letter-spacing:.03em}.hero-title small{font-size:8px;opacity:.85}
/* Cream inset and real, consistently labelled coral CTA. */
.collect{margin:7px 4px 0;padding:9px 10px 10px;background:url('assets/reference-v2/panel-cream.png') center / 100% 100% no-repeat}.primary,.primary.done{position:relative;width:100%;height:48px;padding:0 36px 2px 12px;border:0;border-radius:12px;background:transparent url('assets/reference-v2/button-coral.png') center / 100% 100% no-repeat;color:#fff0c8;font-size:19px;font-weight:850;letter-spacing:.015em;text-shadow:0 2px 2px #97553f;filter:drop-shadow(0 2px 1px #98704455);white-space:nowrap}.primary:after{content:"";position:absolute;right:20px;top:11px;width:24px;height:24px;background:url('assets/reference-v2/anchor.png') center / contain no-repeat;filter:drop-shadow(0 1px 1px #aa5b39)}.primary.done{filter:saturate(.86) drop-shadow(0 2px 1px #98704455)}.primary:hover{filter:brightness(1.04)}.harbor-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 7px 2px;gap:0}.harbor-actions button{position:relative;display:flex;align-items:center;justify-content:space-between;gap:2px;text-align:left;min-width:0;height:44px;padding:3px 7px;color:#f9efd2;background:none;border-right:1px solid #ddc28855}.harbor-actions button:last-child{border-right:0}.harbor-actions span{font-size:8px;line-height:1.2;font-weight:800;letter-spacing:.015em}.harbor-actions img{width:31px;height:34px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 2px #102c41)}.harbor-actions button:hover{background:#ffffff0d}.notice{margin:6px 0 0;padding:7px 10px;border:1px solid #b8dfd350;border-radius:8px;background:#225c6a9c;color:#fff8dc;font-size:10px;text-align:center;line-height:1.35;box-shadow:0 2px 5px #20535e22}.notice.ship-stop{background:#744f3fd9;border-color:#eac88e}
/* Bottom menu: real layered wave art, large icons above the tray, one dock. */
.dock{position:fixed;z-index:20;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,590px);height:116px;padding:0 22px 23px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;background:url('assets/reference-v2/footer.png') center bottom / 120% 100% no-repeat;filter:drop-shadow(0 -3px 6px #164a5d25)}.nav{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;background:none;color:#f5edcc;padding:0;min-width:0;height:87px;text-transform:uppercase;font-size:9px;font-weight:800;text-shadow:0 1px 3px #112e49}.nav-ico{position:relative;z-index:2;object-fit:contain;width:55px;height:55px;filter:drop-shadow(0 3px 3px #132f4c90);margin-top:-6px}.nav span{position:relative;z-index:2}.nav.active:before{content:"";position:absolute;top:-10px;width:65px;height:65px;border-radius:50%;border:2px solid #ffe69b;background:radial-gradient(circle,#fff0b165,#77cbd135 65%,#fff9b655 68%,transparent 72%);box-shadow:0 0 11px #ffe7a4a8,inset 0 0 5px #ffefaeb8;transform:rotate(-9deg)}.nav.active{color:#fff0a7}.nav.active .nav-ico{filter:drop-shadow(0 1px 2px #dfd28380)}
/* The complete catalogs remain below the first-screen composition. */
.development{padding:15px 0 0;scroll-margin-top:12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;color:#fff6dc;text-shadow:0 1px 2px #28616e}.section-head h2{font-size:19px;line-height:1.2;margin:0 0 4px}.section-head p{font-size:10px;line-height:1.3;margin:0;opacity:.85}.day-button{font-size:10px;font-weight:800;white-space:nowrap;border-radius:9px;border:1px solid #f9e5b0;padding:10px 8px;background:linear-gradient(#fff4d2,#e9cd98);color:#72522a;box-shadow:0 2px 0 #a1834e}.tabs{display:flex;gap:7px;margin:0 0 12px;scroll-margin:18px}.tabs button{flex:1;min-width:0;padding:10px 4px;font-size:11px;font-weight:800;background:#e5f2e3;border:1px solid #fef1c4;border-radius:10px;color:#356071;box-shadow:0 2px 0 #8dbcb7}.tabs button.active{background:#244764;color:#ffeab8;border-color:#e9ce88;box-shadow:0 2px 0 #192c43}.catalog{display:grid;gap:11px}.card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 9px;background:linear-gradient(#fffdf4,#f4eddc);border:1px solid #fff5d4;border-radius:13px;box-shadow:0 3px 0 #d4be94,0 5px 10px #1c4b5833}.art{position:relative;width:58px;height:58px;display:grid;place-items:center;border-radius:11px;background:#e3f1e5;border:1px solid #cfb877}.art.coral{background:#ffe4d3}.art.gold{background:#f7e8b7}.art.blue{background:#d0e9f4}.art img{width:100%;height:100%;object-fit:contain}.art .rank{position:absolute;right:-4px;bottom:-3px;font-size:8px;min-width:17px;height:17px;padding:2px 3px;background:#274967;color:#fff2bc;border:1px solid #e9d294;border-radius:50%;text-align:center}.card h3{font-size:12px;margin:0 0 4px}.card p{font-size:10px;line-height:1.4;margin:0;color:#6e7a7d}.card p b{color:#26794c;font-size:11px}.price{font-size:10px;font-weight:800;color:#97622d;margin-top:4px}.buy{min-width:63px;border:1px solid #f8dc9a;border-radius:9px;background:linear-gradient(#49c8b9,#22918c);color:#fff6d9;font-size:10px;font-weight:800;padding:10px 7px;box-shadow:0 2px 0 #286660}.buy.owned{background:#deefdf;color:#41774c;box-shadow:none;border-color:#bdd4bd}.buy.closed{background:#e8e7e1;color:#939c99;box-shadow:none;border-color:#d1d3c8}.upgrade{display:flex;align-items:center;gap:8px;margin:18px 0;padding:10px;border:1px solid #e8d39e;border-radius:12px;background:#fbf3dd}.upgrade-art{width:35px;height:35px;flex:none}.upgrade-art img{width:100%;height:100%;object-fit:contain}.upgrade p{flex:1;min-width:0;margin:0}.upgrade small{display:block;font-size:9px;color:#677b7c}.upgrade b{display:block;font-size:9px;margin-top:4px}.upgrade button{font-size:9px;color:#906337;border:1px solid #cdb88d;background:#fffaf0;border-radius:8px;padding:8px 6px}
/* Existing demonstration destinations */
.panel{padding:19px 16px;margin-bottom:17px;background:linear-gradient(#fffdf2,#f4e7ce);border:2px solid #f4dca4;border-radius:15px;box-shadow:0 4px 0 #b89b64,0 12px 28px #194d6033}.panel h2{font-size:22px;margin:0 0 12px}.panel h3{font-size:16px;margin:20px 0 10px}.panel p{font-size:12px;line-height:1.6;margin:8px 0 15px;color:#526a74}.stat-row,.setting,.setting-link{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 0;border-top:1px solid #d5c9ad;font-size:12px}.setting-link{text-decoration:none;color:inherit;cursor:pointer}.setting-link b{color:#8a7a52;font-size:18px;font-weight:700}.setting-link:active{opacity:.7}.stat-row b{white-space:nowrap}.history>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ded3bb;font-size:11px}.history b{white-space:nowrap}.partner{display:flex;align-items:center;gap:9px;padding:13px 0;border-top:1px solid #ddd0ad;font-size:12px}.partner strong{margin-left:auto;color:#399657}.partner-art{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#c7dfd8;font-size:11px;font-weight:800}.muted{font-size:10px;margin-top:4px;color:#6f8186}.toggle{position:relative;flex:none;width:39px;height:23px;border-radius:15px;background:#55b8a0;box-shadow:inset 0 1px 2px #3e7c6f}.toggle i{display:block;position:absolute;width:17px;height:17px;top:3px;right:3px;background:#fff5dc;border-radius:50%}.toggle.off{background:#a2b9b9}.toggle.off i{left:3px;right:auto}.setting>b{font-size:10px}.toast{position:fixed;z-index:99;left:50%;bottom:140px;transform:translate(-50%,15px);max-width:calc(100% - 35px);padding:12px 17px;background:#1c3f59f2;color:#fff2ca;border:1px solid #e6cb86;border-radius:12px;box-shadow:0 7px 20px #132f4b55;font-size:12px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:650px){body{padding-top:24px}.app{max-width:520px}.hero{aspect-ratio:1.95}.value{height:96px;padding:16px 12px 15px 89px}.hud-ico{width:64px;height:64px;left:13px;top:17px}.value .label{font-size:12px}.value strong{font-size:37px}.value strong span{font-size:23px}.bar{height:10px;bottom:13px}.bar em{font-size:9px;line-height:10px}.hero-info{padding:12px}.fill-line span{font-size:10px}.fill-line strong{font-size:13px}.day-line span{font-size:10px}.day-line strong{font-size:25px}.status{height:34px;font-size:12px;min-width:220px}.collect{padding:12px}.primary,.primary.done{height:65px;font-size:26px}.primary:after{height:31px;width:31px;top:16px;right:42px}.harbor-actions button{height:59px}.harbor-actions span{font-size:11px}.harbor-actions img{width:41px;height:42px}.port-home{min-height:calc(100svh - 105px)}}
@media(max-width:360px){body{padding-top:14px}.top{height:55px;margin-bottom:13px}.crest{width:47px;height:52px}.brand h1{font-size:28px}.sound{width:62px}.sound:before{width:10px}.values{gap:8px;margin-bottom:23px}.value{height:70px;padding:11px 5px 12px 49px}.hud-ico{width:35px;height:39px;left:8px;top:15px}.value .label{font-size:7.4px}.value strong{font-size:24px}.value strong span{font-size:13px}.bar{bottom:8px;left:10px;right:10px;height:7px}.bar em{font-size:6px;line-height:7px}.hero-info{left:7px;bottom:7px;min-width:103px;padding:7px 6px}.fill-line span{font-size:6.1px}.fill-line svg{width:12px}.fill-line strong{font-size:8px}.hero-fill-track{height:6px;margin:3px 0 6px}.day-line span{font-size:6.5px}.day-line strong{font-size:16px}.day-line svg{height:21px;width:21px}.status{height:25px;min-width:160px;font-size:8px}.primary,.primary.done{height:43px;font-size:16px;padding-right:27px}.primary:after{right:13px;top:10px;width:21px;height:21px}.collect{padding:8px}.harbor-actions{padding:3px 3px 1px}.harbor-actions button{height:40px;padding:3px 5px}.harbor-actions span{font-size:6.6px}.harbor-actions img{height:28px;width:26px}.hero-title,.hero-title small{font-size:7px}.notice{font-size:9px}.dock{height:103px;padding:0 16px 23px;gap:1px}.nav-ico{height:47px;width:47px}.nav{font-size:7.8px}.nav.active:before{width:57px;height:57px}.card{grid-template-columns:47px minmax(0,1fr) auto;gap:7px;padding:9px 7px}.art{width:47px;height:50px}.card h3{font-size:11px}.card p,.card p b,.price{font-size:9px}.buy{min-width:55px;font-size:9px;padding:9px 5px}.section-head h2{font-size:17px}.section-head p{font-size:9px}.day-button{font-size:9px;padding:9px 6px}.port-home{min-height:calc(100svh - 82px);padding-bottom:115px}}
@media(max-height:720px) and (max-width:649px){body{padding-top:10px}.top{height:48px;margin-bottom:9px}.crest{height:48px;width:44px}.brand h1{font-size:27px}.values{margin-bottom:20px;gap:8px}.value{height:64px;padding-top:9px}.hud-ico{top:12px;height:36px}.value strong{font-size:24px}.value .label{font-size:8px}.hero{aspect-ratio:1.95}.hero-info{padding:6px;bottom:6px}.day-line strong{font-size:15px}.hero-fill-track{margin-bottom:4px}.collect{margin-top:5px;padding:7px}.primary,.primary.done{height:42px;font-size:17px}.primary:after{top:9px}.harbor-actions button{height:36px}.hero-title{margin-top:6px;margin-bottom:1px}.notice{margin-top:3px;padding:4px 7px;font-size:9px}.dock{height:94px}.nav-ico{height:47px;width:47px}.nav{font-size:9px}.nav.active:before{width:58px;height:58px}.port-home{min-height:calc(100svh - 68px);padding-bottom:108px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}
#port .hero-title,#port #reason{display:none}
/* On the home screen the dock stays in the same HUD position as other screens. */
body:has(#port.active){padding-bottom:0}body:has(#port.active) .port-home{min-height:0!important;padding-bottom:16px}body:has(#port.active) .dock{position:fixed;left:50%;bottom:0;transform:translateX(-50%);margin:0 auto;height:74px}body:has(#port.active) .dock-5 .nav{height:68px}body:has(#port.active) .dock-5 .nav:before{width:54px;height:54px;top:-5px}body:has(#port.active) .dock-5 .nav-ico{width:48px;height:48px;margin-top:-4px}body:has(#port.active) .dock-5 .nav span{font-size:8px;min-height:9px}
