/* 0.8 — illustrated portrait H5 client. The world is the main playing surface. */
:root{color-scheme:light;--bg:#e5cf9c;--panel:#fff7e6;--panel2:#f8ebce;--line:#dac39a;--muted:#627073;--text:#173e52;--mint:#0b8190;--gold:#efb847;--blue:#287e9f;--radius:15px;--sidebar:0px}
html{min-width:320px;background:#123e59;scroll-padding-top:105px}
body.h5-game{--h5-ink:#123e59;--h5-gold:#efb847;--h5-paper:#fff2d2;min-width:320px;background:linear-gradient(#0f3a52bb,#133e56dc),url('assets/h5-harbor.webp') center/cover fixed;color:#173e52;overflow-x:hidden}
.h5-game button,.h5-game a{touch-action:manipulation}.h5-game button:disabled{opacity:.52;cursor:not-allowed;filter:saturate(.45)}
.h5-game :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #0288c0;outline-offset:3px}
.h5-game .sidebar{display:none}.h5-game .app-shell{position:relative;margin:0 auto;max-width:620px;min-height:100svh;background:#f7e9c9;box-shadow:0 0 70px #001b35aa;border-left:1px solid #f2d08d55;border-right:1px solid #f2d08d55;padding-bottom:86px}
.h5-game .topbar{position:sticky;top:0;z-index:35;display:block;height:auto;min-height:68px;padding:0;background:linear-gradient(180deg,#1a506b,#12374e);border-bottom:2px solid #cca052;box-shadow:0 3px 12px #132c4a40;color:#fff3d2}
.h5-game .topbar>.breadcrumb{display:none}.h5-hud-main{height:68px;display:flex;align-items:center;gap:7px;padding:6px 10px}
.h5-profile{min-width:0;flex:1;display:flex;align-items:center;gap:8px;text-align:left;padding:0;height:55px;color:#fff6dc}
.h5-avatar-frame{display:block;position:relative;width:48px;height:48px;flex:0 0 48px;border:2px solid #ecc875;border-radius:13px;background:#22536b;box-shadow:0 0 0 2px #653f20,0 2px 7px #052b41aa}
.h5-avatar-frame img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}.h5-avatar-frame>b{position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);min-width:26px;text-align:center;border:1px solid #f0ce83;border-radius:5px;font-size:10px;line-height:17px;color:#fff3ca;background:linear-gradient(#a07732,#775422);font-family:Manrope,sans-serif}
.h5-profile-copy{min-width:0;display:block;max-width:130px}.h5-profile-copy strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}.h5-profile-copy small{display:block;font-size:9px;color:#d6e6df;margin:1px 0 5px}.h5-profile-copy>i{display:block;height:4px;max-width:92px;border-radius:4px;overflow:hidden;background:#0a2d43;border:1px solid #487082}.h5-profile-copy>i>span{display:block;height:100%;background:linear-gradient(90deg,#32c8c8,#b9f4cf)}
.h5-resource-pills{display:flex;gap:5px;align-items:center;flex-shrink:0}.h5-resource-pills button{height:42px;border:1px solid #74909577;border-radius:10px;padding:4px 7px;display:flex;gap:4px;align-items:center;text-align:left;background:#072a4199;box-shadow:inset 0 1px 2px #041e3d55;white-space:nowrap}.h5-resource-pills small{display:block;font-size:7px;letter-spacing:.5px;line-height:1.2;color:#e6d5b3}.h5-resource-pills b{display:block;font-size:12px;line-height:1.65;color:#ffdb7e;font-variant-numeric:tabular-nums}.h5-resource-pills .h5-art{width:29px;height:29px;flex-basis:29px}.h5-resource-pills .h5-wallet-pill{background:#143e6077}.h5-wallet-pill b{color:#def6ff}.h5-wallet-pill small{color:#b8dce8}.h5-wallet-pill>i{background:#23648b;color:#fff;border:1px solid #8bb3ca;border-radius:5px;width:16px;height:20px;display:grid;place-items:center;font-size:14px;font-style:normal;margin-left:2px}
.h5-menu-button{display:grid;place-items:center;flex:0 0 35px;width:35px;height:42px;background:linear-gradient(#39647a,#244a61);border:1px solid #a3b6af88;border-radius:9px;box-shadow:inset 0 1px 0 #ffffff22;color:#eee0b9;padding:5px}.h5-menu-button .icon{width:21px;height:21px}
.h5-auth-strip{display:flex;align-items:center;gap:6px;min-height:33px;padding:0 10px 5px;color:#d8e9e7}.h5-auth-strip>span{font-size:10px;flex:1;line-height:1.35}.h5-auth-strip button{font-size:10px;font-weight:800;min-height:28px;padding:4px 9px;background:#183d55;border:1px solid #94afa377;border-radius:6px;color:#edf3e5;white-space:nowrap}.h5-auth-strip button:last-child{background:linear-gradient(#ffdb78,#edb448);color:#573714;border-color:#ffe098;box-shadow:0 2px 0 #87622c}
.h5-game #main{padding:16px 12px 12px;max-width:none;min-height:calc(100svh - 260px)}.h5-game.world-route #main{padding:0;max-width:none}.h5-game .account-access{display:none}
.h5-game .page-heading{position:relative;display:flex;align-items:center;gap:10px;min-height:89px;margin:0 0 15px;padding:0 0 13px;border-bottom:1px solid #c7a26966}.h5-game .heading-copy{min-width:0;flex:1}.h5-game .page-heading h1{font-size:25px;line-height:1.17;letter-spacing:-.7px;color:#133f55}.h5-game .page-heading p{font-size:11px;color:#547079;margin-top:5px;line-height:1.55;max-width:320px}.h5-game .page-heading .eyebrow{font-size:8px;letter-spacing:1.15px;font-weight:800;color:#93652a;margin-bottom:6px}.h5-game .eyebrow .tiny-dot{background:#c89436}.h5-page-art{flex:0 0 82px;width:82px;height:82px;filter:drop-shadow(0 3px 1px #ae804833)}.h5-game .page-heading .level-chip{display:none}
.h5-art{display:inline-block;width:44px;height:44px;flex:0 0 44px;background-repeat:no-repeat;background-size:300% 300%;background-position:var(--art-x,0%) var(--art-y,0%);vertical-align:middle;pointer-events:none}.h5-menu-art{background-image:url('assets/h5-menu-atlas.webp')}.h5-goods-art{background-image:url('assets/h5-goods-atlas.webp')}
.h5-world{position:relative;width:100%;aspect-ratio:2/3;isolation:isolate;background:#0896ae;overflow:hidden;border-bottom:4px solid #bf9755}.h5-world-picture,.h5-world-picture>img{display:block;width:100%;height:100%;position:absolute;inset:0}.h5-world-picture>img{object-fit:fill}.h5-world-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(#133d5266 0%,transparent 17%,transparent 76%,#083d58aa 100%);pointer-events:none}.h5-world-heading{position:absolute;z-index:4;left:15px;top:14px;text-shadow:0 2px 3px #103c55cc;color:#fff9df}.h5-world-heading>span{display:block;font-size:8px;letter-spacing:1.3px;font-weight:700;color:#fce4ad}.h5-world-heading h1{font:800 29px/1.15 Manrope,system-ui,sans-serif;letter-spacing:-.8px;margin:2px 0}.h5-world-heading small{display:block;font-size:10px;color:#f9ebd3;letter-spacing:.2px}
.h5-event-rail{position:absolute;z-index:8;right:8px;top:9px;display:flex;gap:3px}.h5-event-rail>button{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:0;padding:0;width:48px;min-height:63px;isolation:isolate}.h5-event-rail>button::before{content:'';position:absolute;inset:5px 5px 12px;border-radius:50%;background:radial-gradient(#fff6cbbf,#fff3c622 72%);z-index:-1}.h5-event-rail .h5-art{width:48px;height:48px;flex-basis:48px;filter:drop-shadow(0 2px 1px #08283f99)}.h5-event-rail>button>span:not(.h5-art){margin-top:-4px;font-size:10px;font-weight:800;color:#fff8dd;background:linear-gradient(#79552fee,#543d28ee);padding:2px 5px;border:1px solid #d3b16a;border-radius:5px;white-space:nowrap;box-shadow:0 2px 3px #113c5277}.h5-ready-dot{position:absolute;right:3px;top:6px;width:10px;height:10px;background:#e3492b;border:2px solid #ffe193;border-radius:50%;box-shadow:0 1px 3px #3f130f88}
.h5-world-sites{position:absolute;inset:0;z-index:5;pointer-events:none}.h5-world-pin{position:absolute;left:var(--pin-x);top:var(--pin-y);transform:translate(-50%,-50%);pointer-events:auto;display:flex;align-items:center;gap:5px;min-width:83px;min-height:44px;max-width:116px;padding:5px 8px;color:#fff5cf;border:1px solid #f6d58e;border-radius:8px;background:linear-gradient(135deg,#375c69f2,#1b3e55f2);box-shadow:0 3px 0 #3b3828bb,0 5px 10px #17385177;text-align:left;transition:filter .18s,translate .18s}.h5-world-pin:hover{filter:brightness(1.15);translate:0 -2px}.h5-pin-copy{display:block;white-space:nowrap}.h5-pin-copy strong{display:block;font-size:11px;line-height:1.2}.h5-pin-copy small{display:block;font-size:9px;font-weight:500;line-height:1.3;margin-top:4px;color:#f0e6cd}.h5-pin-dot{display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#ffd875;border:1px solid #fff0b7;box-shadow:0 0 5px #ffde8655}.h5-pin-pointer{position:absolute;left:50%;bottom:-5px;width:8px;height:8px;transform:rotate(45deg);background:#244a55;border-right:1px solid #f6d58e;border-bottom:1px solid #f6d58e;z-index:-1}.h5-pin-green{background:linear-gradient(#54773eee,#2b5134f5)}.h5-pin-green .h5-pin-pointer{background:#345b38}.h5-pin-copper{background:linear-gradient(#925c35ee,#613e2ff5)}.h5-pin-copper .h5-pin-pointer{background:#654531}.h5-pin-red{background:linear-gradient(#b66442f0,#824332f5)}.h5-pin-red .h5-pin-pointer{background:#854934}.h5-pin-gold{background:linear-gradient(#ba873ff2,#805a2af5)}.h5-pin-gold .h5-pin-pointer{background:#885f2d}.h5-world-pin.is-working{border-color:#bfffea}.h5-world-pin.is-working .h5-pin-dot{background:#83f1c2;box-shadow:0 0 0 3px #96ffd328;animation:h5-working 2s ease-in-out infinite}.h5-world-pin.is-working small{color:#b9ffe2}
.h5-shipping-lane{position:absolute;inset:0;z-index:3;pointer-events:none}.h5-world-ship{position:absolute;left:var(--ship-x);top:var(--ship-y);transform:translate(-50%,-50%);width:25%;aspect-ratio:1;min-height:54px;padding:0;pointer-events:auto;filter:drop-shadow(0 5px 3px #04405677)}.h5-world-ship>.ship-art.ship-sprite{position:absolute;width:100%!important;height:100%!important;min-width:0;inset:0;filter:none;animation:h5-ship-rock 5s ease-in-out infinite;animation-delay:var(--ship-delay)}.h5-world-ship.is-sailing>.ship-art.ship-sprite{animation:h5-ship-sail 7s ease-in-out infinite;animation-delay:var(--ship-delay)}.h5-world-ship>.h5-ship-status{position:absolute;left:50%;bottom:0;transform:translateX(-50%);border:1px solid #c0f2e5aa;background:#075b74d9;color:#efffff;padding:1px 6px;font-size:9px;line-height:1.5;font-weight:700;white-space:nowrap;border-radius:7px}.h5-water-wake{position:absolute;top:54%;left:14%;width:76%;height:27%;border-bottom:2px solid #cafef677;border-radius:50%;transform:rotate(-10deg);box-shadow:0 4px 0 -2px #cafef655}.h5-world-ship.is-sailing .h5-water-wake{animation:h5-wake 2.5s ease-out infinite}
.h5-production-status{position:absolute;z-index:7;left:10px;bottom:103px;display:flex;align-items:center;gap:5px;padding:4px 8px 4px 3px;max-width:calc(100% - 20px);text-align:left;border:1px solid #cdebec99;background:linear-gradient(135deg,#0d5978f0,#0a4665f0);border-radius:10px;box-shadow:0 3px 8px #04385566;color:#fff4d6}.h5-production-status>.h5-art{width:37px;height:37px;flex-basis:37px}.h5-production-status b{font-size:11px;display:block}.h5-production-status small{font-size:9px;display:block;color:#c9e7e6}.h5-production-status>.icon{width:14px;height:14px;margin-left:7px}
.h5-quest{position:absolute;left:9px;right:9px;bottom:10px;z-index:8;min-height:81px;padding:9px 10px 9px 5px;display:flex;align-items:center;gap:6px;border:2px solid #e4ba66;border-radius:12px;background:linear-gradient(130deg,#fff7dfee,#edddbaeF);box-shadow:inset 0 0 0 2px #fff9e266,0 4px 12px #103b5c66}.h5-quest-emblem{position:relative;width:49px;height:60px;flex:0 0 49px;align-self:center}.h5-quest-emblem .h5-art{width:52px;height:52px}.h5-quest-emblem b{position:absolute;bottom:2px;left:19px;font-size:9px;background:#97672a;border:1px solid #e8b354;border-radius:5px;padding:0 5px;color:#fff6d3}.h5-quest-copy{flex:1;min-width:0}.h5-quest-copy>span{display:block;color:#976928;font-size:7px;font-weight:800;letter-spacing:.7px;margin-bottom:3px}.h5-quest-copy h2{font-size:14px;line-height:1.25;color:#204354;letter-spacing:-.3px}.h5-quest-copy p{font-size:9px;line-height:1.4;margin:3px 0 5px;color:#56625e}.h5-quest-progress{position:relative;height:12px;border:1px solid #b19c6e;border-radius:5px;overflow:hidden;background:#bcad8355}.h5-quest-progress>i{display:block;height:100%;background:linear-gradient(#57b48f,#218073);border-radius:3px;min-width:0}.h5-quest-progress>b{position:absolute;inset:0;text-align:center;font-size:8px;line-height:10px;color:#153d4b;text-shadow:0 1px 1px #fffaec;font-variant-numeric:tabular-nums}.h5-quest-cta{flex-shrink:0;min-width:75px;min-height:45px;padding:6px 8px;border:1px solid #ab7025;border-radius:8px;background:linear-gradient(#ffdb73,#eab34c);box-shadow:inset 0 1px 1px #fff3a4,0 3px 0 #a36d2a;color:#59380e;font-size:11px;font-weight:800}.h5-quest-cta small{display:block;font-size:8px;margin-top:3px;color:#714e20}.h5-quest-cta .icon{width:13px;height:13px;margin-left:4px}
.h5-game .h5-harbor-below{padding:12px 12px 0}.h5-harbor-ledger{display:grid;grid-template-columns:1fr 1fr;gap:7px}.h5-harbor-ledger>button{display:flex;align-items:center;gap:4px;padding:7px;text-align:left;border:1px solid #d6bd8c;border-radius:10px;background:#fff7e0}.h5-harbor-ledger .h5-art{width:42px;height:42px;flex-basis:42px}.h5-harbor-ledger>button>span:not(.h5-art){min-width:0}.h5-harbor-ledger b{font-size:11px;display:block}.h5-harbor-ledger small{font-size:9px;display:block;color:#657471;line-height:1.4}.h5-harbor-ledger .icon{width:13px;height:13px;margin-left:auto}.h5-bonus-route{display:flex;align-items:center;gap:7px;background:#f6dc9e66;border:1px solid #d4b579;border-radius:9px;margin:10px 0;padding:8px;font-size:10px;line-height:1.5}.h5-bonus-route>.icon{color:#aa702a;width:17px;height:17px}.h5-bonus-route>span{flex:1}.h5-bonus-route button{font-size:10px;white-space:nowrap;color:#0d7586;padding:4px;min-height:38px}.h5-bonus-route button .icon{width:13px;height:13px}.h5-captain-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}.h5-captain-tools>button{display:flex;align-items:center;flex-direction:column;padding:6px 3px;border-radius:10px;color:#3c594f;background:#efe1bc;border:1px solid #d6bf8a;font-size:9px;font-weight:700}.h5-captain-tools .h5-art{width:39px;height:39px;flex-basis:39px}
.h5-game .mobile-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:fixed;z-index:40;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:620px;height:84px;padding:0 6px max(5px,env(safe-area-inset-bottom));gap:0;background:linear-gradient(#fff0c9 0%,#ebd098 10%,#c3a069 18%,#8e673f 19%,#6c4d34 100%);border:0;border-top:3px solid #e7c17a;border-radius:13px 13px 0 0;box-shadow:0 -4px 14px #153a4744}.h5-game .mobile-nav>a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;color:#f5e4c2;min-width:0;min-height:76px;padding:1px 0 4px;font-size:10px;font-weight:750;text-shadow:0 1px 2px #3a2718;isolation:isolate}.h5-game .mobile-nav .h5-art{width:55px;height:55px;flex-basis:55px;margin-top:-4px;filter:drop-shadow(0 3px 2px #372d2988);transition:transform .18s}.h5-game .mobile-nav>a>span:last-child{margin-top:-1px;font-size:10px;line-height:1.2}.h5-game .mobile-nav>a::before{content:'';position:absolute;inset:7px 1px 4px;z-index:-1;border:1px solid transparent;border-radius:11px}.h5-game .mobile-nav>a.active{color:#fff8cf}.h5-game .mobile-nav>a.active::before{background:linear-gradient(#fff0b999,#e3b55766 60%,#8a602b44);border-color:#f6d994aa;box-shadow:inset 0 0 10px #fff4b722}.h5-game .mobile-nav>a.active .h5-art{transform:translateY(-5px) scale(1.08)}.h5-game .mobile-nav>a.active::after{content:'';position:absolute;width:18px;height:3px;bottom:0;left:50%;transform:translateX(-50%);background:#ffe4a2;border-radius:3px;box-shadow:0 0 6px #fff0b588}
.h5-game .btn{min-height:44px;border-radius:9px;font-size:12px;padding:10px 14px;line-height:1.3;font-weight:750;box-shadow:0 2px 0 #9b7b4a33}.h5-game .btn.primary{background:linear-gradient(#15889a,#08627a);color:#fff8e4;border:1px solid #0a5c73;box-shadow:inset 0 1px 0 #9fd5d777,0 2px 0 #08485d}.h5-game .btn.gold{color:#5f3b0f;background:linear-gradient(#ffe097,#efb747);border:1px solid #c08933;box-shadow:inset 0 1px 0 #fff4c4,0 2px 0 #a1742f}.h5-game .btn.ghost{background:#fff9e9;color:#315b66;border:1px solid #cfbd99;box-shadow:inset 0 1px 0 #ffffff,0 2px 0 #b9a47c44}.h5-game .btn.danger{background:#fff0e7;color:#a04732;border-color:#dbab8f}.h5-game .btn.small{min-height:40px;padding:8px 10px;font-size:11px}.h5-game .btn .icon{width:17px;height:17px}
.h5-game .panel,.h5-game .facility-card,.h5-game .market-card,.h5-game .contract-card{background:#fff7e7;border:1px solid #d7bf92;box-shadow:0 3px 0 #c8aa6f22}.h5-game .panel-head{padding:15px}.h5-game .panel-head h2{font-size:16px;color:#204e5b}.h5-game .panel-head p{font-size:10px;color:#66716b}.h5-game .inline-help{font-size:11px;line-height:1.7;color:#65716c}.h5-game .notice{padding:12px;border-radius:10px;font-size:11px;line-height:1.6;gap:10px}.h5-game .notice.blue{background:#e5f1ee;border-color:#aac8c4;color:#315c65}.h5-game .notice .icon{width:19px;height:19px}.h5-game .economy-banner{padding:11px 13px;border-radius:10px;margin:0 0 14px;background:#e4efda;border:1px solid #b6c49a}.h5-game .economy-banner h3{font-size:14px}.h5-game .economy-banner p{font-size:10px;line-height:1.5}.h5-game .economy-banner>.icon{width:27px;height:27px}.h5-game .badge{font-size:8px;line-height:1.4;white-space:normal;border-radius:5px;background:#eee1c0;color:#7a603a;border-color:#d9c18f}.h5-game .badge.green{background:#dcf0d9;color:#2d664f;border-color:#a6c99c}.h5-game .section-title{margin:18px 0 12px;gap:8px;align-items:center}.h5-game .section-title h2{font-size:18px}.h5-game .section-title p{font-size:10px}.h5-game .empty-state{padding:24px 15px;border:1px dashed #c4b085;border-radius:12px;color:#3b615f;background:#f3ead4}.h5-game .empty-state h3{font-size:15px}.h5-game .empty-state p{font-size:11px;line-height:1.6}.h5-game .empty-state>.icon{color:#a18045}
.h5-game .need{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:2px 5px;background:#f4ead1;border-color:#d9c293;color:#385c5f;font-size:10px;border-radius:6px}.h5-game .need .h5-art{width:26px;height:26px;flex-basis:26px}.h5-game .need.missing{background:#ffebe0;color:#a1432a;border-color:#dcaf91}.h5-game .stock-item .h5-art{width:26px;height:26px;flex-basis:26px}.h5-game .resource-icon>.h5-art{width:100%;height:100%}.h5-game .resource-icon{background:radial-gradient(#fff3c6,#e6d1a955);border-color:#d1be90}
.h5-game .tabs{display:flex;gap:4px;padding:4px;background:#e5d4b1;border:1px solid #c9ae7b;border-radius:11px;margin:0 0 14px;overflow:auto;scrollbar-width:none}.h5-game .tabs>button{flex:1;min-height:42px;justify-content:center;padding:7px 6px;font-size:10px;white-space:nowrap;color:#5e6556;border:1px solid transparent;border-radius:8px;box-shadow:none}.h5-game .tabs>button.active{background:linear-gradient(#268ea0,#0f677e);color:#fff1cc;border-color:#07516b;box-shadow:0 2px 3px #495b4f44}.h5-game .tabs>button>.icon{display:none}
.h5-trade-hall{border:1px solid #c7aa6f;border-radius:14px;overflow:hidden;background:#fff3d5;margin-bottom:18px;padding:0;display:block}.h5-market-scene{position:relative;padding:16px 17px 17px;min-height:135px;background:linear-gradient(90deg,#f8e4b7f5 40%,#f4d69566),url('assets/h5-harbor-mobile.webp') 20% 40%/cover;overflow:hidden}.h5-market-scene>.h5-art{position:absolute;right:3px;top:7px;width:132px;height:132px;filter:drop-shadow(0 7px 4px #68461c44)}.h5-market-scene>span:not(.h5-art){display:block;position:relative;font-size:8px;font-weight:800;letter-spacing:1.3px;color:#9e6524}.h5-market-scene h2{position:relative;font-size:24px;line-height:1.2;max-width:65%;margin:9px 0 6px;color:#764824;letter-spacing:-.7px}.h5-market-scene p{position:relative;max-width:66%;font-size:11px;line-height:1.6;color:#795d3d}.h5-trade-money{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #cead6b;border-bottom:1px solid #dbc297;background:#efdfb8;padding:10px 17px;gap:10px}.h5-trade-money>span{font-size:9px;color:#765f36}.h5-trade-money strong{display:block;font-size:20px;color:#805520;line-height:1.5}.h5-trade-money>span+span{border-left:1px solid #c3aa7d;padding-left:16px;color:#456d7c}.h5-trade-money>span+span strong{color:#235c7c}.h5-trade-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:14px 12px 8px}.h5-trade-actions .btn{padding:10px 8px;font-size:11px}.h5-trade-links{display:flex;gap:10px;justify-content:center;padding:4px 10px}.h5-trade-links button{font-size:11px;color:#197289;min-height:36px;text-decoration:underline;text-underline-offset:3px}.h5-trade-rule{font-size:10px;color:#786c54;margin:3px 14px 14px;line-height:1.65}.h5-price-board>h2{font-size:17px;margin:0 0 10px}.h5-price-board>article{display:flex;align-items:center;gap:9px;padding:10px;background:#fff7e5;border:1px solid #d4bf91;border-radius:9px;margin:7px 0}.h5-price-board>article .h5-art{width:45px;height:45px}.h5-price-board>article>div{flex:1}.h5-price-board strong{font-size:12px;display:block}.h5-price-board small{display:block;font-size:9px;color:#657475}.h5-price-board>article>b{font-size:13px;text-align:right;color:#815a28}.h5-empty-market{display:flex;align-items:center;gap:10px;border:1px dashed #c7b181;border-radius:10px;padding:14px;background:#f0e3c7}.h5-empty-market>.h5-art{width:64px;height:64px;flex-basis:64px}.h5-empty-market p{font-size:11px;color:#697367;line-height:1.7}
.h5-game .market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.h5-game .market-card{padding:12px}.h5-game .market-product{gap:6px;align-items:center}.h5-game .market-product .resource-icon{width:44px;height:44px;flex:0 0 44px;padding:0;border:0;background:none}.h5-game .market-product h3{font-size:13px;line-height:1.3}.h5-game .market-product small{font-size:9px}.h5-game .market-price{margin:11px 0 8px;gap:4px;flex-wrap:wrap}.h5-game .market-price strong{font-size:24px}.h5-game .market-price>span{font-size:9px}.h5-game .market-price>small{font-size:8px}.h5-game .market-card .qty-input{width:100%;max-width:none;min-height:38px}.h5-game .qty-input>button{min-width:31px;min-height:38px}.h5-game .qty-input>input{min-width:0;max-width:100%;width:100%;font-size:13px;background:#fffaed;color:#264b59}.h5-game .market-card .market-actions{gap:6px;display:grid;grid-template-columns:1fr 1fr}.h5-game .market-card .market-actions .btn{padding:7px 4px;min-width:0;font-size:10px;min-height:38px}.h5-game .market-actions .btn>.icon{display:none}.h5-game .market-note{font-size:8px;line-height:1.6;gap:4px;margin-top:10px;flex-wrap:wrap}.h5-game .market-card .sparkline{height:28px;margin:0 0 9px}.h5-game .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.h5-game .supply-offer{padding:12px}.h5-game .supply-offer>.resource-icon{height:75px;width:85px;margin:5px auto;padding:0;background:none;border:0}.h5-game .supply-offer h3{font-size:14px;line-height:1.3}.h5-game .supply-offer p{font-size:10px}.h5-game .supply-offer .market-seller-rating,.h5-game .supply-offer .market-unit-price{font-size:9px;line-height:1.6;margin-top:5px}.h5-game .supply-offer .shop-bottom{display:flex;flex-wrap:wrap;margin-top:9px;gap:7px}.h5-game .shop-bottom>strong{font-size:16px}.h5-game .shop-bottom .btn{font-size:11px;min-height:38px;flex:1}.h5-game .supply-offer .trade-rate{font-size:8px;line-height:1.7;margin-top:8px}.h5-game .market-filter{background:#efe1c0;border:1px solid #d3bd8f;border-radius:10px;padding:10px;gap:8px;display:grid;grid-template-columns:1fr 1fr}.h5-game .market-filter>.field:first-child{grid-column:1/-1}.h5-game .market-filter>.btn{min-height:38px;align-self:end}.h5-game .market-pagination{padding:6px 0;margin:8px 0;gap:5px}.h5-game .market-pagination>span{font-size:10px}.h5-game .market-pagination .btn{font-size:10px;min-height:36px;padding:7px 10px}.h5-game .featured-captains{padding:0;margin:14px 0}.h5-game .featured-captains .panel-head{padding:12px 13px 5px}.h5-game .featured-captains h2{font-size:14px}.h5-game .featured-captains>.league-tabs{padding:0 12px;gap:6px}.h5-game .featured-captains>.league-tabs .btn{min-height:34px;font-size:10px;padding:6px 9px}.h5-game .featured-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 12px 12px;gap:5px}.h5-game .featured-card{flex-direction:column;text-align:center;padding:7px 4px;gap:4px;min-height:90px;background:#f5e9cc;border-color:#d9c597}.h5-game .featured-card strong{font-size:10px;line-height:1.3}.h5-game .featured-card small{font-size:8px}.h5-game .featured-card>.icon{display:none}.h5-game .featured-captains>.inline-help{padding:0 12px 10px;font-size:9px}
.h5-game .field{margin-bottom:12px}.h5-game .field>span{font-size:11px;color:#3f626b;font-weight:700}.h5-game .field input,.h5-game .field select,.h5-game .field textarea,.h5-game .chat-form input{min-height:44px;background:#fffbf1;border:1px solid #c8b487;border-radius:8px;color:#214958;padding:10px 11px;font-size:14px;box-shadow:inset 0 2px 3px #b6986430}.h5-game .field small{font-size:9px}.h5-game input::placeholder,.h5-game textarea::placeholder{color:#7d8b87}.h5-game .field select{width:100%;padding-right:24px}.h5-game input[type=number]{font-variant-numeric:tabular-nums}
.h5-game #modal{width:calc(100% - 20px);max-width:580px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:2px solid #d1a15a;border-radius:17px;background:#fff4dc;color:#173e52;box-shadow:0 20px 70px #072b4399;overscroll-behavior:contain}.h5-game #modal::backdrop{background:#062944b8;backdrop-filter:blur(3px)}.h5-game #modal .modal-head{position:sticky;top:0;z-index:5;padding:16px 16px 13px;background:linear-gradient(#fff7e2,#f1dfb4);border-bottom:1px solid #c4a365}.h5-game .modal-head h2{font-size:20px;line-height:1.25;color:#19445b}.h5-game .modal-head p{font-size:10px;color:#647266;line-height:1.5;margin-top:4px;padding-right:27px}.h5-game .modal-head>button{height:36px;width:36px;min-height:36px;border:1px solid #c7b085;background:#fff8e7;color:#67583c;border-radius:9px;padding:7px}.h5-game .modal-body{padding:16px}.h5-game .modal-actions{gap:8px;flex-wrap:wrap;margin-top:15px}.h5-game .modal-actions .btn{flex:1;min-width:100px}.h5-game .modal-body>.inline-help{margin:10px 0}.h5-game .modal-body>h3{margin:15px 0 10px;font-size:16px}.h5-game .modal-body>p{line-height:1.7;font-size:12px}.h5-game .modal-body>form>.btn.full{margin-top:6px}
.h5-game .auth-welcome{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:10px 11px;background:#deece3;border:1px solid #afc8b5;border-radius:9px;text-align:left}.h5-game .auth-welcome>.icon{width:30px;height:30px;margin:0;color:#177b83}.h5-game .auth-welcome h3{font-size:15px;margin:0;white-space:nowrap}.h5-game .auth-welcome p{font-size:10px;line-height:1.5;max-width:210px;margin:0}.h5-game .account-summary{margin:4px 0 10px;font-size:10px;padding:5px 0;color:#63746c}.h5-game .account-tabs{margin:0 0 13px;gap:8px}.h5-game .account-tabs .btn{min-height:39px;font-size:12px}.h5-game #online-auth .field{margin-bottom:10px}.h5-game #online-auth .field input{font-size:16px;min-height:43px;padding:9px 11px}.h5-game #online-auth .inline-help{font-size:10px;margin:9px 0}.h5-game .account-links{border-top:1px solid #d0bb92;margin-top:17px;padding-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.h5-game .account-links .btn{font-size:11px;min-height:39px}.h5-game .profile-editor{border:1px solid #cbb583;background:linear-gradient(100deg,#f4dfb0,#e2ece0);border-radius:13px;padding:14px;margin-bottom:13px}.h5-game .profile-editor .captain-avatar{width:68px;height:68px;border-color:#c79c53}.h5-game .profile-editor strong{font-size:19px}.h5-game .avatar-controls{display:flex;gap:8px;flex-wrap:wrap}.h5-game .avatar-controls .btn{font-size:12px}
.h5-site-intro{display:flex;align-items:center;gap:13px;background:linear-gradient(110deg,#e9ddb6,#dfede0);border:1px solid #cbbb86;border-radius:12px;margin-bottom:14px;padding:9px}.h5-site-intro>.building-sprite{width:100px;height:100px;flex:0 0 100px;margin:0}.h5-site-intro strong{display:block;font-size:20px;line-height:1.2;color:#285c60}.h5-site-intro p{font-size:11px;color:#667464;line-height:1.7;margin-top:7px}.h5-kicker{display:block;font-size:8px;font-weight:800;letter-spacing:1px;color:#986f2c;margin-bottom:5px}.h5-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.h5-inventory-grid>div{background:#fff9e9;border:1px solid #d8c398;border-radius:10px;padding:7px 5px;display:flex;align-items:center;flex-direction:column;text-align:center}.h5-inventory-grid .h5-art{width:51px;height:51px;flex-basis:51px}.h5-inventory-grid>div>span:not(.h5-art){font-size:10px}.h5-inventory-grid strong{display:block;font-size:19px;color:#1c6d7c}.h5-site-resources>article{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #d9c698}.h5-site-resources>article>.h5-art{width:55px;height:55px;flex-basis:55px}.h5-site-resources>article>div{flex:1;min-width:0}.h5-site-resources h3{font-size:14px}.h5-site-resources p{font-size:11px;margin:3px 0;color:#5b7369}.h5-site-resources small{font-size:10px;color:#7a7762}.h5-site-resources .btn{min-width:81px;padding:9px 8px;font-size:11px}.h5-site-workshop{background:#eef0d8;border:1px solid #bdc59d;border-radius:12px;margin-top:16px;padding:10px}.h5-site-workshop-title{display:flex;align-items:center;gap:7px}.h5-site-workshop-title>.building-sprite{width:67px;height:67px;flex:0 0 67px}.h5-site-workshop-title>span{flex:1}.h5-site-workshop-title h3{font-size:15px}.h5-site-workshop-title small{font-size:10px;color:#637668}.h5-site-workshop-title>b{font-size:12px;color:#537265;padding:5px 7px;background:#f9f9e5;border:1px solid #bac497;border-radius:7px}.h5-site-recipe{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;margin:6px 0 12px}.h5-site-recipe>span{display:inline-flex;align-items:center;font-size:10px;white-space:nowrap}.h5-site-recipe .h5-art{width:31px;height:31px;flex-basis:31px}.h5-site-recipe>.icon{width:15px;height:15px}.h5-site-workshop .progress-caption{font-size:10px;margin:9px 0 5px}.h5-site-workshop>.progress{margin-bottom:12px;height:7px}.h5-reward-hero{display:flex;align-items:center;gap:10px;background:radial-gradient(at 10% 60%,#ffe099,#f8ebbf);border:1px solid #dcc184;border-radius:13px;padding:10px;margin-bottom:13px}.h5-reward-hero>.h5-art{width:98px;height:98px;flex:0 0 98px}.h5-reward-hero>div>span{font-size:9px;letter-spacing:1px;color:#997238;font-weight:800}.h5-reward-hero h3{font-size:22px;color:#855221;margin:4px 0}.h5-reward-hero p{font-size:12px;color:#667463}.h5-reward-links{display:grid;gap:9px;margin-top:15px}.h5-reward-links button{display:flex;align-items:center;gap:9px;text-align:left;padding:9px;border:1px solid #c8bb91;background:#fff9e7;border-radius:11px}.h5-reward-links .h5-art{width:50px;height:50px;flex-basis:50px}.h5-reward-links button>span:not(.h5-art){flex:1}.h5-reward-links b{display:block;font-size:13px}.h5-reward-links small{display:block;font-size:10px;color:#637469;margin-top:3px}.h5-reward-links .icon{width:17px;height:17px;color:#2b8492}
.h5-game .league-hero{padding:17px;background:radial-gradient(at top,#ffe9a7,#e6cc91);border:1px solid #c09b52;border-radius:12px;text-align:center;margin-bottom:14px}.h5-game .league-hero>.h5-art{height:92px;width:92px;margin:0 auto;display:block}.h5-game .league-hero>span{font-size:8px;color:#8a642c}.h5-game .league-hero h3{font-size:20px;color:#825a24}.h5-game .league-hero p{font-size:10px;color:#6c7157}.h5-game .league-tabs{gap:6px;display:flex;flex-wrap:wrap}.h5-game .league-tabs .btn{font-size:11px;min-height:38px;flex:1;padding:8px}.h5-game .rank-list{margin-top:12px}.h5-game .rank-row{padding:10px 8px;gap:7px;border-bottom-color:#d6c9a4;background:#fff9e8}.h5-game .rank-row:nth-child(1){background:#fbe7ac}.h5-game .rank-row:nth-child(2){background:#e1e9e6}.h5-game .rank-row:nth-child(3){background:#efd5ba}.h5-game .rank-row.mine{outline:2px solid #449a96;outline-offset:-2px}.h5-game .rank-row>strong{width:24px;flex-shrink:0;font-size:17px;color:#9b7633}.h5-game .rank-row b{font-size:12px}.h5-game .rank-row small{font-size:9px;color:#64766c}.h5-game .rank-row>span:last-child{font-size:14px;color:#236b78}.h5-game .rank-row .chat-avatar{width:36px;height:36px;flex-basis:36px}.h5-game .user-avatar{background:linear-gradient(135deg,#9fc6bb,#1b677b);color:#fff3cf;border-color:#b99656}.h5-game .user-avatar img{object-fit:cover}
.h5-game .social-layout{grid-template-columns:1fr;gap:13px}.h5-game .social-hub{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:13px}.h5-game .social-hub .btn{font-size:11px;min-height:39px;flex:1;padding:9px}.h5-game .chat-messages{height:330px;max-height:50svh;padding:12px;background:linear-gradient(#e5eee299,#f3ebd3),url('assets/h5-harbor-mobile.webp') center/cover}.h5-game .chat-bubble{font-size:12px;padding:9px 11px;color:#254f58;background:#fffbed;border-color:#c7b990}.h5-game .self .chat-bubble{background:#d8ece2;border-color:#98bca8}.h5-game .chat-meta strong{font-size:11px}.h5-game .chat-meta small{font-size:8px}.h5-game .chat-form{padding:10px;gap:8px;border-top-color:#d2bc8e;background:#e9ddb9}.h5-game .chat-form input{font-size:16px}.h5-game .social-side{display:grid;grid-template-columns:1fr;gap:12px}.h5-game .profile-card{padding:18px}.h5-game .profile-card h3{font-size:19px}.h5-game .social-side .friend-invite{padding:0 13px}.h5-game .friend-invite .field{margin-bottom:0}.h5-game .friend-row{padding:10px 13px}.h5-game .chat-panel .panel-head h2{font-size:15px}.h5-game .featured-captains:empty{display:none}
.h5-game .wallet-layout{grid-template-columns:1fr;gap:13px}.h5-game .wallet-card{background:linear-gradient(130deg,#133e58,#277b89);border:2px solid #d8b364;color:#fff6dc;padding:20px;border-radius:15px;box-shadow:0 4px 0 #b28a4744;position:relative;overflow:hidden}.h5-game .wallet-card::after{content:'';position:absolute;right:-26px;top:-30px;width:145px;height:145px;border:25px double #efe6b311;border-radius:50%;pointer-events:none}.h5-game .wallet-card .balance{font-size:37px;line-height:1.3;color:#ffdf93}.h5-game .wallet-card .balance-label,.h5-game .wallet-card small,.h5-game .wallet-card .account-line,.h5-game .wallet-card .reserved{color:#d3e8e3}.h5-game .wallet-card .account-line{font-size:10px;border-top-color:#9cc2c344}.h5-game .wallet-card .wallet-brand{color:#f6e4b9}.h5-game .wallet-actions{gap:7px;display:flex;flex-wrap:wrap;margin-top:15px}.h5-game .wallet-actions .btn{font-size:11px;flex:1;min-height:42px;padding:8px}.h5-game .wallet-info{padding:16px;background:#fff7e5;border:1px solid #d3bb87;border-radius:13px}.h5-game .wallet-info-row{font-size:11px;padding:10px 0}.h5-game .wallet-info h3{font-size:16px}.h5-game .transactions .transaction-row{padding:12px}.h5-game .transaction-row strong{font-size:12px}.h5-game .transaction-row small{font-size:9px}.h5-game .transaction-row>span{font-size:12px}.h5-game .commission-breakdown{background:#efe4c6;border:1px solid #cbb98d;color:#405b5f}.h5-game .commission-breakdown>div{font-size:12px}.h5-game .commission-breakdown>div:last-child{color:#216d70;border-color:#b8a477}.h5-game .market-purchase-summary{background:#e4eee2;border:1px solid #b3c7a9;border-radius:10px;padding:12px;color:#315962;font-size:12px;line-height:1.9}.h5-game .market-purchase-summary h3{font-size:17px}
.h5-game .exchange-balances{background:#e5dac0;border:1px solid #c3ab7c;color:#385a61;gap:12px;padding:11px;border-radius:10px}.h5-game .exchange-balances strong{font-size:18px}.h5-game .exchange-balances small{font-size:9px}.h5-game .exchange-filter{padding:0;margin:12px 0}.h5-game .exchange-filter .field{margin-bottom:8px}.h5-game .exchange-toolbar{gap:6px;display:flex;flex-wrap:wrap;margin:12px 0}.h5-game .exchange-toolbar .btn{font-size:10px;min-height:38px;padding:8px 10px;flex:1}.h5-game .exchange-orders{grid-template-columns:1fr;gap:10px}.h5-game .exchange-order{background:#fff9e9;border:1px solid #cdb78a;border-radius:11px;padding:13px;margin-bottom:10px}.h5-game .exchange-order h3{font-size:17px;gap:8px;display:flex;align-items:center;flex-wrap:wrap}.h5-game .exchange-order h3>.h5-art{width:37px;height:37px;flex-basis:37px}.h5-game .exchange-order p{font-size:11px;line-height:1.7;color:#667367;margin:5px 0}.h5-game .exchange-order small{font-size:9px;line-height:1.6}.h5-game .order-price strong{font-size:21px;color:#825c28}.h5-game .order-price small{font-size:10px}.h5-game .exchange-order>.btn{min-height:39px;font-size:11px}.h5-game .chapter-hero{padding:14px;background:linear-gradient(130deg,#dcebd8,#f9e6b5);border-color:#a9bc91}.h5-game .chapter-hero h2{font-size:21px}.h5-game .chapter-hero p{font-size:11px;line-height:1.7}.h5-game .chapter-hero .btn{font-size:10px;min-height:37px}.h5-game .weekly-row{font-size:11px;padding:10px 0;gap:10px;border-bottom-color:#d8c59c}.h5-game .weekly-row .btn{min-height:39px;font-size:10px;padding:8px}.h5-game .project-card{padding:14px;background:#fff7e0;border-color:#cdb98d}.h5-game .project-card h2{font-size:21px}.h5-game .project-art{background:#dde9d7;border-radius:10px;overflow:hidden}.h5-game .project-art .h5-art{display:block;width:120px;height:120px;margin:0 auto}.h5-game .project-card p{font-size:11px;line-height:1.7}.h5-game .project-card>.eyebrow{margin-top:13px}
.h5-game .mission-card{padding:14px;background:#fff8e5;border-color:#d2b98c}.h5-game .mission-card h3{font-size:15px}.h5-game .mission-card p{font-size:11px}.h5-game .mission-grid,.h5-game .missions-grid{grid-template-columns:1fr;gap:11px}.h5-game .daily-challenges{padding:13px;background:#eaf0da;border-color:#bfca9c}.h5-game .challenge-card{padding:12px;background:#fff8df;border-color:#cbbb83}.h5-game .challenge-card h3{font-size:15px}.h5-game .challenge-card p{font-size:11px}.h5-game .challenge-reward{color:#9e6c28}.h5-game .referral-hero{background:linear-gradient(120deg,#d4e9dd,#fcdf9c);border:1px solid #b9bf86;border-radius:14px;padding:20px}.h5-game .referral-hero h2{font-size:24px;color:#215663}.h5-game .referral-hero p{font-size:12px;color:#4f7169}.h5-game .referral-code{font-size:19px;color:#8c5c27;background:#fff7df;border-color:#c9ae72;overflow-wrap:anywhere}.h5-game .referral-stats{gap:9px}.h5-game .reward-tier,.h5-game .tier-card{background:#fff7df;border-color:#cbb78a}
.h5-game .support-hub{max-width:none;margin:15px 12px 8px;padding:12px;gap:10px;border:1px solid #c4bf8e;background:#e3e7cd;border-radius:12px;display:flex;flex-wrap:wrap}.h5-game .support-hub>div{width:100%;margin:0}.h5-game .support-hub strong{font-size:13px;color:#385c50}.h5-game .support-hub small{font-size:10px;color:#67775b}.h5-game .support-hub .btn{min-height:40px;font-size:11px;flex:1;padding:9px 11px}.h5-game .support-hub .whatsapp-support{background:#36724f!important;border-color:#3d7050!important;color:#fff6df!important;font-size:11px!important}.h5-game .app-footer{padding:10px 15px 13px;display:flex;flex-wrap:wrap;gap:4px;background:none;border:0;line-height:1.6;color:#738069;font-size:9px;justify-content:space-between}.h5-game .app-footer>span:first-child{width:100%;font-size:9px}.h5-game .app-footer>span:nth-child(2){font-size:8px;max-width:73%}.h5-game .app-footer button{font-size:9px;min-height:30px}.h5-game #toast-region{z-index:1000;bottom:100px;max-width:calc(100% - 24px)}.h5-game .toast{background:#fff8e4;border:1px solid #cbb483;color:#215d62;box-shadow:0 5px 25px #0b2e4f44;font-size:12px;line-height:1.6}.h5-game .toast.error{background:#fff0e4;border-color:#d49b78;color:#98482d}
.h5-game.connecting .topbar,.h5-game.connection-failed .topbar,.h5-game.connecting .mobile-nav,.h5-game.connection-failed .mobile-nav{display:none}.h5-game.connecting .app-shell,.h5-game.connection-failed .app-shell{margin:auto;background:#f1e2bf}.h5-game .connection-panel{margin:12vh auto 8vh;width:calc(100% - 30px);max-width:500px;border:2px solid #bf9c5b;background:linear-gradient(#fffae5,#f0dfb4);box-shadow:0 6px 0 #b4935922}.h5-game .connection-panel h1{font-size:24px;color:#25596a}.h5-game .connection-panel p{font-size:13px;color:#5c716b}.h5-game .smooth-in{animation:h5-page-enter .2s ease-out}
.h5-welcome{position:fixed;inset:0;margin:0 auto;width:100%;max-width:620px;height:100dvh;max-height:100dvh;border:0;padding:0;overflow-y:auto;overscroll-behavior:contain;background:#064b6b;color:#fff8df;box-shadow:0 0 90px #061b36;isolation:isolate}.h5-welcome::backdrop{background:linear-gradient(#09283cc9,#09283cc9),url('assets/h5-harbor.webp') center/cover}.h5-welcome[open]{display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh}.h5-welcome-art{position:absolute;z-index:-2;inset:0;min-height:740px;background:linear-gradient(#0b385038,transparent 30%,#034a72bb 62%,#082c46f0),url('assets/h5-harbor-mobile.webp') center top/cover no-repeat}.h5-welcome-brand{position:relative;text-align:center;padding:22px 10px 30px;min-height:260px;text-shadow:0 3px 3px #183348,0 0 20px #062a49}.h5-welcome-brand>img{width:104px;height:104px;filter:drop-shadow(0 4px 5px #17304755);margin-bottom:-4px}.h5-welcome-brand>span{display:block;font-size:8px;letter-spacing:3px;font-weight:750;color:#f8deac}.h5-welcome-brand h1{font-family:Georgia,'Times New Roman',serif;font-size:51px;line-height:.85;font-weight:900;letter-spacing:3px;color:#ffe9a4;margin:13px 0 12px;text-shadow:0 2px 0 #8b5226,0 4px 0 #432e24,0 7px 11px #092a39;transform:rotate(-2deg)}.h5-welcome-brand h1 strong{font-size:26px;letter-spacing:.5px;line-height:1.5}.h5-welcome-brand p{font-size:12px;color:#fff3d2;font-weight:700;letter-spacing:1px}.h5-welcome-panel{position:relative;padding:0 25px 18px;text-align:center;margin-top:auto;z-index:1}.h5-welcome-panel::before{content:'';position:absolute;inset:-60px 0 0;background:linear-gradient(transparent,#07415ed9 15%,#09354bea 85%);z-index:-1;pointer-events:none}.h5-welcome-steps{display:flex;justify-content:center;gap:20px;margin:0 auto 14px}.h5-welcome-steps>span{display:flex;flex-direction:column;align-items:center;font-size:10px;font-weight:750;color:#fff0bd;min-width:65px}.h5-welcome-steps .h5-art{width:63px;height:63px;flex-basis:63px;filter:drop-shadow(0 5px 4px #032d44)}.h5-welcome-panel h2{font-size:20px;color:#fff1c8;margin-bottom:7px;letter-spacing:-.4px}.h5-welcome-panel>p{font-size:12px;color:#cbe2e4;line-height:1.75;max-width:330px;margin:0 auto 18px}.h5-welcome-panel>button{display:block;width:100%;max-width:390px;margin:10px auto;border-radius:11px;min-height:47px;font-size:14px;font-weight:800;padding:10px;box-shadow:0 3px 0 #07263e}.h5-start-register{color:#644017;background:linear-gradient(#ffe699,#f1be55);border:2px solid #fee9af!important;box-shadow:inset 0 0 0 1px #c39944,0 4px 0 #94713c!important;min-height:60px!important}.h5-start-register>span{display:block;font-size:10px;font-weight:600;margin-top:2px;color:#8c672d}.h5-start-login{background:linear-gradient(#277b92,#15516c);border:1px solid #87b1bb!important;color:#fff6dc}.h5-welcome-panel>.h5-start-guest{background:transparent;box-shadow:none;font-size:11px;font-weight:600;color:#e0e9e0;min-height:37px;padding:5px}.h5-start-guest>span{margin-left:8px}.h5-guest-warning{display:block;font-size:9px;line-height:1.6;color:#b6cdd0;max-width:315px;margin:1px auto 10px}.h5-welcome-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #c8dce42b;padding-top:11px;text-align:left}.h5-welcome-footer>span{font-size:8px;color:#91b7c3;text-align:right;line-height:1.7}.h5-welcome-support{display:flex;gap:5px;align-items:center;font-size:10px;color:#d7e8dc;min-height:34px}.h5-welcome-support>.icon{width:16px;height:16px}.h5-welcome-open{overflow:hidden}
@keyframes h5-ship-rock{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}
@keyframes h5-ship-sail{0%,100%{transform:translate(-3px,1px) rotate(-2deg)}50%{transform:translate(8px,-5px) rotate(1deg)}}
@keyframes h5-wake{0%{opacity:.2;scale:.85}70%{opacity:.8;scale:1.05}100%{opacity:0;scale:1.18}}
@keyframes h5-working{50%{box-shadow:0 0 0 5px #96ffd340}}
@keyframes h5-page-enter{from{opacity:.75;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:621px){.h5-world-heading{top:22px;left:23px}.h5-world-heading h1{font-size:39px}.h5-world-heading>span{font-size:10px}.h5-world-heading small{font-size:12px}.h5-event-rail{right:17px;top:18px;gap:9px}.h5-event-rail>button{width:62px;min-height:80px}.h5-event-rail .h5-art{width:64px;height:64px;flex-basis:64px}.h5-event-rail>button>span:not(.h5-art){font-size:12px}.h5-world-pin{min-width:110px;min-height:52px;padding:7px 10px}.h5-pin-copy strong{font-size:14px}.h5-pin-copy small{font-size:11px}.h5-production-status{bottom:128px;left:17px;padding:7px 10px}.h5-production-status b{font-size:14px}.h5-production-status small{font-size:10px}.h5-production-status>.h5-art{width:48px;height:48px;flex-basis:48px}.h5-quest{left:16px;right:16px;bottom:15px;min-height:99px;padding:11px;gap:10px}.h5-quest-emblem{width:66px;flex-basis:66px;height:73px}.h5-quest-emblem>.h5-art{width:67px;height:67px}.h5-quest-emblem>b{left:26px;font-size:10px}.h5-quest-copy>span{font-size:9px}.h5-quest-copy h2{font-size:18px}.h5-quest-copy p{font-size:11px}.h5-quest-cta{min-width:99px;min-height:53px;font-size:13px}.h5-quest-cta small{font-size:10px}.h5-game #main{padding:20px}.h5-game .h5-harbor-below{padding:15px 19px 0}.h5-game .support-hub{margin-left:20px;margin-right:20px}.h5-profile-copy strong{font-size:14px}.h5-profile-copy{max-width:220px}.h5-resource-pills b{font-size:15px}.h5-resource-pills small{font-size:8px}.h5-resource-pills button{min-width:105px;height:44px;padding:5px 9px}.h5-hud-main{gap:13px;padding:7px 17px;height:73px}.h5-auth-strip{padding:0 17px 5px}.h5-auth-strip>span{font-size:11px}.h5-auth-strip button{font-size:11px;min-height:30px}.h5-game .page-heading h1{font-size:30px}.h5-game .page-heading p{font-size:12px}.h5-game .page-heading{min-height:98px}.h5-game .page-heading .h5-page-art{width:98px;height:98px;flex-basis:98px}.h5-harbor-ledger b{font-size:13px}.h5-harbor-ledger small{font-size:10px}.h5-captain-tools>button{font-size:11px}.h5-captain-tools .h5-art{width:47px;height:47px;flex-basis:47px}.h5-market-scene h2{font-size:30px}.h5-market-scene>.h5-art{width:160px;height:160px;right:30px}.h5-market-scene{min-height:166px;padding:21px}.h5-game .market-card{padding:17px}.h5-game .market-product h3{font-size:16px}.h5-game .market-product .resource-icon{width:58px;height:58px;flex-basis:58px}.h5-welcome-brand{padding-top:32px}.h5-welcome-brand>img{width:120px;height:120px}.h5-welcome-brand h1{font-size:62px}.h5-welcome-brand h1 strong{font-size:32px}.h5-welcome-panel{padding:0 60px 25px}.h5-welcome-panel h2{font-size:24px}}
@media(max-width:370px){.h5-hud-main{padding:5px 6px;gap:5px}.h5-profile{gap:5px}.h5-avatar-frame{width:41px;height:41px;flex-basis:41px}.h5-profile-copy{max-width:70px}.h5-profile-copy strong{font-size:10px}.h5-profile-copy small{font-size:8px}.h5-resource-pills{gap:4px}.h5-resource-pills button{padding:4px 5px;gap:2px;min-width:0}.h5-resource-pills .h5-art{width:23px;height:23px;flex-basis:23px}.h5-resource-pills b{font-size:10px}.h5-resource-pills small{font-size:6px}.h5-wallet-pill>i{display:none}.h5-menu-button{width:30px;flex-basis:30px;height:37px}.h5-menu-button .icon{width:18px;height:18px}.h5-auth-strip{gap:4px;padding-left:6px;padding-right:6px}.h5-auth-strip>span{font-size:9px}.h5-auth-strip button{font-size:9px;padding:4px 7px}.h5-world-heading{left:10px;top:12px}.h5-world-heading h1{font-size:24px}.h5-world-heading>span{font-size:6px;letter-spacing:.8px}.h5-world-heading small{font-size:8px}.h5-event-rail{right:5px;top:7px;gap:0}.h5-event-rail>button{width:43px;min-height:56px}.h5-event-rail .h5-art{width:42px;height:42px;flex-basis:42px}.h5-event-rail>button>span:not(.h5-art){font-size:8px}.h5-world-pin{min-width:72px;min-height:42px;padding:5px;gap:4px}.h5-pin-copy strong{font-size:10px}.h5-pin-copy small{font-size:8px;margin-top:3px}.h5-pin-dot{width:5px;height:5px;flex-basis:5px}.h5-production-status{bottom:99px;left:8px;gap:3px}.h5-production-status>.h5-art{width:29px;height:29px;flex-basis:29px}.h5-production-status b{font-size:9px}.h5-production-status small{font-size:8px}.h5-production-status>.icon{margin-left:3px}.h5-quest{left:6px;right:6px;padding:8px 6px 8px 3px;gap:3px}.h5-quest-emblem{width:36px;flex-basis:36px;height:53px}.h5-quest-emblem>.h5-art{width:39px;height:39px}.h5-quest-emblem>b{left:13px;bottom:5px}.h5-quest-copy h2{font-size:12px}.h5-quest-copy p{font-size:8px;line-height:1.5}.h5-quest-copy>span{font-size:6px}.h5-quest-cta{min-width:65px;min-height:43px;font-size:10px;padding:6px}.h5-quest-cta small{font-size:7px}.h5-game .mobile-nav{height:78px;padding-left:3px;padding-right:3px}.h5-game .mobile-nav .h5-art{width:47px;height:47px;flex-basis:47px;margin-top:0}.h5-game .mobile-nav>a>span:last-child{font-size:9px;margin-top:1px}.h5-game .mobile-nav>a{min-height:70px}.h5-game .page-heading h1{font-size:22px}.h5-game .page-heading p{font-size:10px}.h5-page-art{width:67px;height:67px;flex-basis:67px}.h5-game #main{padding:12px 9px}.h5-game.world-route #main{padding:0}.h5-harbor-ledger>button{padding:6px 4px}.h5-harbor-ledger .h5-art{width:31px;height:31px;flex-basis:31px}.h5-harbor-ledger b{font-size:9px}.h5-harbor-ledger small{font-size:8px}.h5-harbor-ledger>.icon{display:none}.h5-bonus-route{font-size:9px;padding:5px}.h5-bonus-route button{font-size:8px}.h5-captain-tools>button{font-size:8px}.h5-captain-tools .h5-art{width:33px;height:33px;flex-basis:33px}.h5-game .tabs>button{font-size:9px;padding:6px 4px}.h5-market-scene h2{font-size:21px}.h5-trade-money strong{font-size:17px}.h5-market-scene>.h5-art{width:116px;height:116px;right:-4px}.h5-game .market-product{gap:3px}.h5-game .market-product .resource-icon{width:36px;height:36px;flex-basis:36px}.h5-game .market-product h3{font-size:11px}.h5-game .market-card{padding:9px}.h5-game .market-price strong{font-size:21px}.h5-game .market-price>span{font-size:8px}.h5-game .market-card .market-actions{grid-template-columns:1fr}.h5-game .shop-grid{gap:7px}.h5-game .supply-offer{padding:9px}.h5-game .modal-head h2{font-size:18px}.h5-game .modal-body{padding:12px}.h5-site-intro>.building-sprite{width:80px;height:80px;flex-basis:80px}.h5-site-intro strong{font-size:17px}.h5-site-intro p{font-size:10px}.h5-site-resources>article>.h5-art{width:43px;height:43px;flex-basis:43px}.h5-site-resources h3{font-size:12px}.h5-site-resources p{font-size:10px}.h5-site-resources .btn{font-size:10px;min-width:67px}.h5-reward-hero h3{font-size:18px}.h5-reward-hero>.h5-art{width:78px;height:78px;flex-basis:78px}.h5-game .auth-welcome{gap:6px}.h5-game .auth-welcome p{display:none}.h5-game .auth-welcome h3{font-size:14px}.h5-welcome-brand{padding-top:18px;min-height:224px}.h5-welcome-brand>img{width:86px;height:86px}.h5-welcome-brand h1{font-size:45px}.h5-welcome-brand h1 strong{font-size:23px}.h5-welcome-panel{padding-left:18px;padding-right:18px}.h5-welcome-panel h2{font-size:18px}.h5-welcome-panel>p{font-size:11px}.h5-welcome-steps{gap:13px;margin-bottom:9px}.h5-welcome-steps .h5-art{width:53px;height:53px;flex-basis:53px}}
@media(max-height:730px){.h5-welcome-brand{padding-top:9px;padding-bottom:13px;min-height:207px}.h5-welcome-brand>img{width:74px;height:74px}.h5-welcome-brand h1{font-size:44px;margin:7px 0 8px}.h5-welcome-brand h1 strong{font-size:23px}.h5-welcome-brand p{font-size:10px}.h5-welcome-steps .h5-art{width:44px;height:44px;flex-basis:44px}.h5-welcome-steps{margin-bottom:8px}.h5-welcome-panel h2{font-size:18px}.h5-welcome-panel>p{font-size:11px;margin-bottom:10px}.h5-welcome-panel>button{margin:8px auto;min-height:42px}.h5-start-register{min-height:52px!important}.h5-welcome-panel{padding-bottom:11px}.h5-welcome-footer{padding-top:5px}.h5-welcome-panel>.h5-start-guest{min-height:32px;margin:5px auto}}
@media(prefers-reduced-motion:reduce){.h5-game *, .h5-game *::before,.h5-game *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.h5-game .topbar,.h5-game .mobile-nav,.h5-welcome{display:none}.h5-game .app-shell{max-width:none;box-shadow:none}.h5-game{background:white}.h5-world{break-inside:avoid}}

/* Live panels, safe areas and optional chapter guidance. */
.h5-game .h5-auth-invite{margin:8px 0 12px;border:1px solid #d4bf96;border-radius:8px;padding:0 10px;background:#f9edd0}.h5-auth-invite>summary{font-size:11px;min-height:38px;padding:10px 0;cursor:pointer;color:#527271}.h5-auth-invite .field{margin:0 0 10px!important}.h5-dialog-toasts{position:sticky;top:74px;height:0;z-index:30;margin:0 10px;pointer-events:none;overflow:visible}.h5-dialog-toasts .toast{margin:5px 0;max-width:100%;width:100%;font-size:12px;padding:12px}.h5-game .mobile-nav>a.active::before{transform:none;left:1px;right:1px}.h5-game .mobile-nav{height:calc(84px + env(safe-area-inset-bottom,0px));padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))}.h5-game .app-shell{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}.h5-guide-dismissed .h5-quest{display:none}.h5-guide-dismissed .h5-production-status{bottom:18px}.h5-game .economy-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 13px}.h5-game .economy-stats>div{padding:9px 7px;background:#efe5c9;border:1px solid #cab990;border-radius:8px;min-width:0}.h5-game .economy-stats span{font-size:8px;display:block;color:#6b7767;line-height:1.4}.h5-game .economy-stats strong{font-size:11px;display:block;margin-top:4px;color:#64764f}.h5-game .supply-stock{margin:7px 0 10px;font-size:9px;color:#698073}.h5-game .supply-stock>i{height:5px;background:#d7dfc8}.h5-game .supply-stock b{background:#3b977d}.h5-game .h5-goods-chip .h5-art{width:25px;height:25px;flex-basis:25px}.h5-game .settings-row{border-bottom:1px solid #d3c197;padding:11px 0;font-size:12px;gap:12px}.h5-game .settings-row .btn{min-height:37px;font-size:10px}.h5-game .fee-breakdown{background:#f4e8c7;border:1px solid #c5b17e;border-radius:11px;padding:13px}.h5-game .fee-breakdown>div{font-size:12px;color:#48646a;gap:10px}.h5-game .fee-breakdown>div:last-child{color:#287764;border-color:#c4b686}.h5-game .inventory-grid .stock-item{background:#fff4d5;border-color:#d8bf8a}.h5-game .cargo-tile{background:linear-gradient(#edc677,#c18c42);color:#6b441b;border:2px solid #a77936;box-shadow:inset 0 1px 0 #ffebac,0 3px 0 #8e672f}.h5-game .cargo-empty{background:#dcd1b4;box-shadow:inset 0 2px 4px #95724b44;border:1px dashed #a99a74}
@media(max-width:370px){.h5-game .mobile-nav{height:calc(78px + env(safe-area-inset-bottom,0px))}.h5-game .economy-stats span{font-size:7px}.h5-game .economy-stats strong{font-size:10px}}

.h5-game .mobile-nav>a::before,.h5-game .mobile-nav>a.active::before{width:auto;height:auto;transform:none}.h5-game .mobile-nav>a.active{background:transparent}.h5-game .page-heading>.h5-page-art{width:82px;height:82px;flex-basis:82px}.h5-game .account-links{grid-template-columns:repeat(2,minmax(0,1fr))}.h5-game .account-links .btn{min-width:0}.h5-depot-art{display:block;width:100px;height:100px;flex:0 0 100px;background:url('assets/h5-harbor-mobile.webp') 50% 31%/300% auto;border:2px solid #acbdb0;border-radius:12px;box-shadow:0 3px 0 #869a9166}.h5-game .h5-page-art.h5-art{background-size:300% 300%}
@media(min-width:621px){.h5-game .page-heading>.h5-page-art{width:98px;height:98px;flex-basis:98px}}
@media(max-width:370px){.h5-game .page-heading>.h5-page-art{width:67px;height:67px;flex-basis:67px}.h5-depot-art{width:80px;height:80px;flex-basis:80px}}

.h5-game .h5-hud-main{height:calc(68px + env(safe-area-inset-top,0px));padding-top:calc(6px + env(safe-area-inset-top,0px))}.h5-welcome-brand{padding-top:calc(22px + env(safe-area-inset-top,0px))}.h5-harbor-below>.h5-production-status{position:relative;left:auto;bottom:auto;width:100%;max-width:none;margin:0 0 10px;padding:7px 9px;border-color:#72a5ac;background:linear-gradient(120deg,#296d7b,#154b67);box-shadow:0 2px 0 #92b1aa44}.h5-harbor-below>.h5-production-status>span:not(.h5-art){flex:1}.h5-more-ships{position:absolute;pointer-events:auto;left:50%;top:80%;transform:translateX(-50%);padding:6px 10px;min-height:36px;white-space:nowrap;border:1px solid #c9ede4;background:#0b526ce8;border-radius:9px;font-size:10px;color:#e6f8ee;box-shadow:0 2px 5px #0d3d5655}
@media(min-width:621px){.h5-game .h5-hud-main{height:calc(73px + env(safe-area-inset-top,0px));padding-top:calc(7px + env(safe-area-inset-top,0px))}.h5-welcome-brand{padding-top:calc(32px + env(safe-area-inset-top,0px))}}
@media(max-width:370px){.h5-game .h5-hud-main{height:calc(68px + env(safe-area-inset-top,0px));padding-top:calc(5px + env(safe-area-inset-top,0px))}.h5-welcome-brand{padding-top:calc(18px + env(safe-area-inset-top,0px))}.h5-more-ships{top:77%;font-size:9px;min-height:32px;padding:5px 8px}}
@media(max-height:730px){.h5-welcome-brand{padding-top:calc(9px + env(safe-area-inset-top,0px))}}

/* 0.9 harbor: persistent ship names and one useful route goal. */
.h5-world-ship .h5-ship-status{max-width:105px;white-space:normal;font-size:8px;line-height:1.35;padding:4px 7px}
.h5-world-ship .h5-ship-status>b{display:block;font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px;color:#fff4cf}
.h5-harbor-route-goal{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:8px;padding:11px;margin-bottom:11px;border:1px solid #c2ac70;border-radius:12px;background:linear-gradient(115deg,#faecc6,#ebedce);box-shadow:0 2px 0 #cab28433}
.h5-harbor-route-goal>.h5-port-emblem{display:block;width:58px;height:58px;max-width:100%}
.h5-harbor-route-goal>div{min-width:0}
.h5-harbor-route-goal>div>span{font-size:8px;font-weight:850;color:#8c6c2a;letter-spacing:.6px;display:block}
.h5-harbor-route-goal h2{font-size:17px;line-height:1.3;color:#2b5c67;margin:3px 0}
.h5-harbor-route-goal p{font-size:10px;line-height:1.5;color:#637363;margin:0}
.h5-harbor-route-goal>button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:46px;max-width:93px;border:1px solid #ac822d;border-radius:9px;padding:8px;background:linear-gradient(#ffdc82,#edbc54);color:#614315;font-size:11px;font-weight:850;line-height:1.35}
.h5-harbor-route-goal>button>.icon{width:14px;height:14px}
.h5-game .modal-head>button{width:44px;height:44px;min-height:44px;flex-shrink:0}
.h5-game .modal-head p{padding-right:0}
.h5-game .h5-bonus-route button{min-height:44px;white-space:normal;max-width:94px}
@media(max-width:350px){.h5-harbor-route-goal{grid-template-columns:43px minmax(0,1fr) 66px;gap:5px;padding:8px}.h5-harbor-route-goal>.h5-port-emblem{width:43px;height:43px}.h5-harbor-route-goal h2{font-size:15px}.h5-harbor-route-goal p{font-size:9px}.h5-harbor-route-goal>button{font-size:10px;padding:7px 5px}.h5-harbor-route-goal>button>.icon{display:none}}

/* 0.9.1: readable harbor labels without covering the illustrated world. */
.h5-game .h5-world-heading{padding:5px 9px;border-radius:9px;background:#123e59b8;max-width:48%;text-shadow:0 1px 2px #082a3e}
.h5-game .h5-world-heading h1{color:#fff4ce;font-size:25px}
.h5-game .h5-world-heading>span{font-size:9px;letter-spacing:.5px}
.h5-game .h5-pin-copy small{font-size:10px;line-height:1.3}
.h5-game .h5-quest-copy>span{font-size:9px;letter-spacing:0}
.h5-game .h5-quest-copy p{font-size:11px;line-height:1.45}
.h5-game .h5-quest-cta small{font-size:10px}
.h5-game .h5-world-ship>.h5-ship-status{font-size:10px}
.h5-game .h5-resource-pills small{font-size:9px;letter-spacing:0}
.h5-game .h5-profile-copy small{font-size:10px}
.h5-game .h5-auth-strip button{min-height:36px;font-size:11px}
.h5-game .h5-menu-button{min-width:40px;min-height:44px}
.h5-game .h5-harbor-ledger small,.h5-game .h5-production-status small{font-size:11px}
.h5-game .h5-captain-tools>button{font-size:11px;line-height:1.4}
.h5-game .h5-welcome-footer>span,.h5-game .h5-guest-warning{font-size:11px;color:#d7e8e6}
@media(max-width:370px){
 .h5-game .h5-profile-copy{display:none}
 .h5-game .h5-resource-pills b{font-size:12px}
 .h5-game .h5-world-heading{left:6px;max-width:49%;padding:4px 6px}
 .h5-game .h5-world-heading h1{font-size:22px}
 .h5-game .h5-world-heading small{font-size:10px}
 .h5-game .h5-pin-copy strong{font-size:11px}
 .h5-game .h5-quest-copy h2{font-size:13px}
 .h5-game .h5-quest-emblem{display:none}
 .h5-game .h5-quest-cta{min-width:72px;min-height:48px}
 .h5-game .h5-harbor-ledger{grid-template-columns:1fr}
}

.h5-port-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 12px}
.h5-port-services>button,.h5-port-services>a{display:flex;align-items:center;justify-content:center;gap:5px;min-height:46px;border:1px solid #b9c8af;border-radius:9px;background:#fff9e7;color:#234e5c;padding:5px;font-size:11px;font-weight:750;text-align:center;line-height:1.4;text-decoration:none}
.h5-port-services .icon{width:18px;height:18px;flex-shrink:0}
.h5-port-services>.h5-port-support{background:#2b6b4b;color:#fff9df;border-color:#245b40}
@media(max-width:350px){.h5-port-services>button,.h5-port-services>a{flex-direction:column;font-size:10px;gap:2px;min-height:58px}}
