/* Production and fleet share the harbor's art direction, while all jobs stay server driven. */
.h5-collections{--h5-ink:#123e59;--h5-muted:#486376;--h5-paper:#fff2d2;--h5-border:#d5b77d;--h5-gold:#efb847;--h5-teal:#0b8190;color:var(--h5-ink);padding-bottom:14px}
.h5-collections *{box-sizing:border-box}
.h5-collections button{font-family:inherit;cursor:pointer}
.h5-collections button:disabled{cursor:not-allowed}
.h5-collections .icon{width:18px;height:18px;flex-shrink:0}
.h5-collections h2,.h5-collections h3,.h5-collections p{margin:0;color:inherit}
.h5-collections h2,.h5-collections h3{letter-spacing:-.3px}
.h5-collections .h5-primary,.h5-collections .h5-secondary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border-radius:11px;font-size:13px;line-height:1.25;font-weight:800;text-align:center;max-width:100%;white-space:normal}
.h5-collections .h5-primary{color:#4d3514;background:linear-gradient(#ffdb77,#efb847);border:1px solid #be8d32;box-shadow:inset 0 2px 0 #fff0b9,0 3px 0 #bd862a;transition:transform .16s,filter .16s}
.h5-collections .h5-primary:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px)}
.h5-collections .h5-primary:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 #fff0b9,0 1px 0 #bd862a}
.h5-collections .h5-secondary{color:var(--h5-ink);background:#fff9e9;border:1px solid #c9b78b;box-shadow:inset 0 1px 0 #fff}
.h5-collections .h5-secondary:hover:not(:disabled){background:#ffedb9}
.h5-collections .h5-primary:disabled,.h5-collections .h5-secondary:disabled{background:#e4e2d6;color:#586975;border-color:#bec6c3;box-shadow:none;filter:none;transform:none;opacity:1}
.h5-collections .h5-primary small,.h5-collections .h5-secondary small{display:block;font-size:10px;font-weight:700;margin-top:3px}
.h5-collections button:focus-visible,.h5-collections summary:focus-visible{outline:3px solid #0b8190;outline-offset:3px}
.h5-collections .h5-section-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;background:#123e59;border:1px solid #32576b;border-radius:16px;box-shadow:inset 0 1px 0 #476678,0 4px 12px #062b3919;margin:0 0 18px}
.h5-collections .h5-section-switch>button{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #476a7b;border-radius:10px;background:#234e65;color:#fff2d2;min-height:50px;padding:8px;font-weight:800;font-size:14px}
.h5-collections .h5-section-switch>button:hover{background:#2f647c}
.h5-collections .h5-section-switch>button small{display:block;font-size:10px;font-weight:500;color:#d8e6e7;margin-top:3px}
.h5-collections .h5-section-switch>button .icon{width:24px;height:24px;color:#f7cc69}
.h5-collections .h5-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.h5-collections .h5-section-title h2{display:flex;align-items:center;gap:8px;font-size:21px;line-height:1.2;font-weight:850;color:var(--h5-ink)}
.h5-collections .h5-section-title h2>.icon{color:#a87b2d;width:21px;height:21px}
.h5-collections .h5-section-title p{font-size:12px;line-height:1.5;margin-top:5px;color:var(--h5-muted)}
.h5-collections .h5-section-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#d9eeea;border:1px solid #aacac0;color:#245955;padding:6px 8px;border-radius:7px;font-size:10px;font-weight:850;white-space:nowrap}
.h5-collections .h5-raw-section.resource-estate{background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 25px;border-radius:0}
.h5-collections .h5-raw-grid,.h5-collections .h5-facility-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.h5-collections .h5-raw-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.h5-collections .h5-raw-card,.h5-collections .h5-factory-card{position:relative;min-width:0;display:flex;flex-direction:column;background:linear-gradient(150deg,#fffae8,#fff0ce);border:1px solid #d8bb83;border-radius:16px;padding:12px;box-shadow:inset 0 1px 0 #fffdf1,0 4px 0 #d6b6793b}
.h5-collections .h5-card-ribbon{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:9px;font-weight:700;color:#576976;line-height:1.3;min-height:22px}
.h5-collections .h5-card-ribbon>b{display:inline-flex;gap:3px;align-items:center;border:1px solid #b9d1b7;background:#e5efda;border-radius:5px;padding:4px 5px;color:#325d4e;font-size:9px;white-space:nowrap}
.h5-collections .h5-card-ribbon>b .icon{width:11px;height:11px}
.h5-collections .h5-card-ribbon>b.h5-state-busy,.h5-collections .is-sailing .h5-card-ribbon>b{background:#f8e4b6;border-color:#dfbd72;color:#73531f}
.h5-collections .h5-resource-art{position:relative;background:radial-gradient(ellipse at 50% 68%,#b5d19372,transparent 70%);border-radius:12px;display:flex;justify-content:center;align-items:center;min-width:0;margin:2px 0 3px;height:140px}
.h5-collections .h5-area-mine .h5-resource-art{background:radial-gradient(ellipse at 50% 65%,#b6cbd975,transparent 72%)}
.h5-collections .h5-area-farm .h5-resource-art{background:radial-gradient(ellipse at 50% 65%,#f5cd6885,transparent 72%)}
.h5-collections .h5-resource-art>.building-sprite{width:145px;height:145px;min-width:0;max-width:100%;position:static;inset:auto;margin:0;aspect-ratio:1}
.h5-collections .h5-yield{position:absolute;bottom:1px;right:0;border:1px solid #ba882b;background:#ffdc79;color:#543d15;box-shadow:inset 0 1px 0 #fff2b6,0 2px 3px #785c2022;border-radius:8px;padding:4px 7px;font-size:15px;font-weight:900;line-height:1.1}
.h5-collections .h5-raw-card h3{font-size:15px;font-weight:850;line-height:1.2;min-height:36px;margin:4px 0 6px}
.h5-collections .h5-resource-meta{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:11px;color:#526676;line-height:1.4}
.h5-collections .h5-resource-meta>.icon{width:13px;height:13px}
.h5-collections .h5-resource-meta>span{color:#315d44;white-space:nowrap;font-size:10px;margin-left:auto}
.h5-collections .h5-resource-status{font-size:11px;line-height:1.5;min-height:40px;display:flex;align-items:center;color:#5d6d73;margin:4px 0}
.h5-collections .h5-raw-card>.h5-primary{width:100%;margin-top:auto;font-size:12px;padding:9px 7px}
.h5-collections .h5-job-progress{margin:8px 0;min-width:0}
.h5-collections .h5-job-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;line-height:1.3;color:#536979;margin-bottom:6px}
.h5-collections .h5-job-progress time{font-variant-numeric:tabular-nums;color:#15576c;font-weight:800;white-space:nowrap}
.h5-collections .h5-progress-track{height:7px;overflow:hidden;display:block;background:#e2ddc7;border:1px solid #c5bc9f;border-radius:9px;box-shadow:inset 0 1px 2px #826a2715}
.h5-collections .h5-progress-track>i{display:block;height:100%;background:linear-gradient(90deg,#087380,#41b1a4);border-radius:8px;transition:width .3s linear}
.h5-collections .h5-upgrade-details{background:#fff5dc;border:1px solid #d8bd87;border-radius:12px;margin-top:13px;overflow:hidden}
.h5-collections .h5-upgrade-details>summary{cursor:pointer;min-height:46px;display:flex;align-items:center;gap:8px;color:#31566a;font-size:12px;font-weight:800;padding:10px 13px;list-style:none}
.h5-collections .h5-upgrade-details>summary::-webkit-details-marker{display:none}
.h5-collections .h5-upgrade-details>summary:after{content:'⌄';font-size:19px;line-height:1;margin-left:3px}
.h5-collections .h5-upgrade-details[open]>summary:after{transform:rotate(180deg)}
.h5-collections .h5-upgrade-details>summary>span{margin-left:auto;font-size:10px;font-weight:500}
.h5-collections .h5-area-upgrades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid #dfcba1;padding:12px}
.h5-collections .h5-area-upgrades>article{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.h5-collections .h5-area-upgrades .building-sprite{width:48px;height:48px}
.h5-collections .h5-area-upgrades h3{font-size:12px;line-height:1.3}
.h5-collections .h5-area-upgrades p{font-size:10px;line-height:1.5;color:#61717b;margin-top:4px}
.h5-collections .h5-area-upgrades button{grid-column:1/-1}
.h5-collections .h5-rule-note{font-size:11px;line-height:1.65;color:#536777;margin:12px 1px}
.h5-collections .h5-factory-section,.h5-collections .h5-logistics,.h5-collections .h5-routes{margin-top:24px}
.h5-collections [id]{scroll-margin-top:90px}
.h5-collections .h5-factory-art{height:140px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 70%,#cfbbdd65,transparent 72%);margin:4px 0 0}
.h5-collections .h5-factory-steel .h5-factory-art{background:radial-gradient(ellipse at 50% 70%,#b4d1e18c,transparent 72%)}
.h5-collections .h5-factory-plank .h5-factory-art{background:radial-gradient(ellipse at 50% 70%,#dac19b9c,transparent 72%)}
.h5-collections .h5-factory-fuel .h5-factory-art{background:radial-gradient(ellipse at 50% 70%,#b2dfce85,transparent 72%)}
.h5-collections .h5-factory-art>.building-sprite{width:145px;height:145px;max-width:100%;aspect-ratio:1;min-width:0}
.h5-collections .h5-factory-card>h3{font-size:16px;font-weight:850;line-height:1.2;margin:6px 0 10px}
.h5-collections .h5-recipe{display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:#ffffff60;border:1px solid #e3cd9e;border-radius:9px;padding:8px}
.h5-collections .h5-recipe>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.h5-collections .h5-recipe-arrow{display:none}
.h5-collections .h5-goods-chip{display:inline-flex;align-items:center;gap:3px;font-size:10px;white-space:nowrap;line-height:1.4;color:#31566a}
.h5-collections .h5-goods-chip .icon{width:12px;height:12px;color:#9c782e}
.h5-collections .h5-goods-chip .h5-goods-art{width:19px;height:19px;min-width:19px;max-width:19px;flex:0 0 19px;display:inline-block;vertical-align:middle;margin:0;aspect-ratio:1}
.h5-collections .h5-factory-queue .h5-goods-chip .h5-goods-art{width:15px;height:15px;min-width:15px;max-width:15px;flex-basis:15px}
.h5-collections .h5-recipe>div:last-child:before{content:'→';color:#936c27;font-weight:900;font-size:13px;line-height:1}
.h5-collections .h5-recipe-time{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:10px;line-height:1.4;color:#586b77;margin:9px 0 0}
.h5-collections .h5-recipe-time>.icon{width:12px;height:12px}
.h5-collections .h5-recipe-time>span{margin-left:auto;color:#6b5595;font-weight:800}
.h5-collections .h5-factory-queue{flex:1;min-height:46px;margin:4px 0 9px}
.h5-collections .h5-empty-queue{font-size:10px;line-height:1.5;color:#677976;padding:11px 0}
.h5-collections .h5-factory-queue ol{padding:0;margin:7px 0 0;list-style:none;border-top:1px solid #e0cba1}
.h5-collections .h5-factory-queue li{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:6px 0;border-bottom:1px solid #e8d8b6;font-size:10px}
.h5-collections .h5-factory-queue li>span{display:flex;gap:5px;align-items:center;min-width:0;flex-wrap:wrap}
.h5-collections .h5-factory-queue li>span>b{display:grid;place-items:center;min-width:16px;height:16px;border-radius:5px;font-size:9px;background:#efe3c6;color:#796030}
.h5-collections .h5-factory-queue li>time{font-size:10px;white-space:nowrap;color:#27566b;font-weight:800;font-variant-numeric:tabular-nums}
.h5-collections .h5-factory-card>.h5-primary,.h5-collections .h5-factory-card>.h5-secondary{width:100%;font-size:12px;padding:8px 6px}
.h5-collections .h5-factory-card>.h5-secondary{margin-top:4px}
.h5-collections .h5-factory-card>.h5-secondary>span{display:flex;flex-wrap:wrap;justify-content:center;column-gap:6px;align-items:center}
.h5-collections .h5-factory-card>.h5-secondary small{margin:0}
.h5-collections .h5-action-reason{font-size:9px;line-height:1.5;color:#677476;min-height:28px;margin:8px 0 0}
.h5-collections .h5-logistics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.h5-collections .h5-storage-card{position:relative;min-width:0;border:1px solid #d3b57a;background:linear-gradient(140deg,#fff9e6,#fae6b8);border-radius:16px;padding:20px}
.h5-collections .h5-logistics-icon{width:40px;height:40px;display:grid;place-items:center;background:#e6d1a6;border:1px solid #c7a66f;border-radius:11px;float:right;margin-left:8px}
.h5-collections .h5-logistics-icon>.icon{width:23px;height:23px;color:#856425}
.h5-collections .h5-storage-card h3{font-size:18px;font-weight:850;line-height:1.3;margin-bottom:12px}
.h5-collections .h5-storage-card h3>small{font-size:11px;font-weight:700;color:#75806a;margin-left:6px}
.h5-collections .h5-storage-count{font-size:30px;line-height:1.25;font-weight:900;margin-bottom:12px}
.h5-collections .h5-storage-count>span{font-size:13px;font-weight:600;color:#586e78;margin-left:6px}
.h5-collections .h5-storage-card dl{margin:12px 0;display:grid;gap:7px}
.h5-collections .h5-storage-card dl>div{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:10px}
.h5-collections .h5-storage-card dt{color:#536b75}
.h5-collections .h5-storage-card dd{font-weight:850;margin:0}
.h5-collections .h5-logistics-actions{display:flex;gap:8px;margin-top:14px}
.h5-collections .h5-logistics-actions>button{flex:1;min-width:0}
.h5-collections .h5-return-link{font-size:11px;display:flex;align-items:center;justify-content:center;gap:8px;color:#0f6175;background:#dfeae2;border:1px solid #adc7bf;min-height:44px;padding:8px 10px;border-radius:9px;width:100%;font-weight:750;margin-top:10px}
.h5-collections .h5-pier-card>p{font-size:12px;line-height:1.65;color:#597079}
.h5-collections .h5-pier-fleet{display:flex;gap:16px;align-items:center;margin:12px 0;min-height:95px}
.h5-collections .h5-pier-fleet>.ship-sprite{width:95px;height:95px;min-width:0;flex-shrink:0;margin:0}
.h5-collections .h5-pier-fleet strong{font-size:16px;line-height:1.4;display:block}
.h5-collections .h5-pier-fleet small{font-size:11px;color:#687977;display:block;margin-top:5px}
.h5-collections .h5-fleet-toolbar{display:flex;align-items:center;gap:18px;background:#123e59;color:#fff2d2;border:1px solid #456779;border-radius:14px;min-height:66px;padding:10px 14px;margin:0 0 16px;box-shadow:inset 0 1px 0 #537487}
.h5-collections .h5-fleet-toolbar>span{display:flex;align-items:center;gap:5px;font-size:12px}
.h5-collections .h5-fleet-toolbar>span>.icon{color:#ffce69}
.h5-collections .h5-fleet-toolbar>span>strong{font-size:17px;font-weight:900}
.h5-collections .h5-fleet-toolbar>span.h5-ready-count{color:#b9efd1}
.h5-collections .h5-fleet-toolbar>button{margin-left:auto;background:#ffefc0;font-size:12px}
.h5-collections .h5-ship-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.h5-collections .h5-ship-card{min-width:0;overflow:hidden;border:1px solid #caae7b;background:linear-gradient(155deg,#fff9e6,#fff0ce);border-radius:17px;box-shadow:0 4px 0 #b68c4930;display:flex;flex-direction:column}
.h5-collections .h5-ship-card>.h5-card-ribbon{padding:10px 12px 0}
.h5-collections .h5-ship-sea{height:200px;position:relative;display:grid;place-items:center;isolation:isolate;background:radial-gradient(ellipse at 50% 75%,#b4dee099,transparent 69%)}
.h5-collections .h5-ship-sea>.ship-art.ship-sprite{position:relative;z-index:1;width:210px;height:210px;max-width:100%;min-width:0;aspect-ratio:1;margin:0}
.h5-collections .h5-ship-wake{position:absolute;width:66%;height:18px;border-bottom:2px solid #72bbbc99;border-top:1px solid #e8ffffcc;bottom:24px;left:19%;border-radius:50%;transform:rotate(-13deg);z-index:0}
.h5-collections .is-sailing .h5-ship-sea>.ship-sprite{animation:h5-ship-float 4s ease-in-out infinite}
.h5-collections .is-sailing .h5-ship-wake{animation:h5-wake-drift 4s ease-in-out infinite}
.h5-collections .h5-ship-copy{padding:4px 14px 15px;flex:1;display:flex;flex-direction:column}
.h5-collections .h5-ship-copy>h3{font-size:19px;line-height:1.25;font-weight:900}
.h5-collections .h5-ship-copy>.h5-ship-design{font-size:11px;line-height:1.4;color:#59717a;margin:5px 0 0;min-height:16px}
.h5-collections .h5-ship-copy>.h5-ship-route{font-size:12px;line-height:1.4;display:flex;align-items:center;gap:4px;color:#246176;margin:11px 0}
.h5-collections .h5-ship-route>.icon{width:13px;height:13px}
.h5-collections .h5-ship-copy>.h5-primary{margin-top:auto;width:100%;font-size:12px}
.h5-collections .h5-ship-copy>.h5-job-progress{margin-top:auto;min-height:44px;padding-top:7px}
.h5-collections .h5-fleet-expand{display:grid;grid-template-columns:95px minmax(0,1fr) auto;align-items:center;gap:15px;min-width:0;padding:10px 16px;margin-top:18px;border:1px solid #d0ac67;border-radius:15px;background:linear-gradient(100deg,#fae2a8,#fff5d7);box-shadow:inset 0 1px 0 #fff9dd}
.h5-collections .h5-next-ship{width:95px;height:95px}
.h5-collections .h5-next-ship>.ship-art.ship-sprite{width:95px;height:95px;min-width:0;margin:0}
.h5-collections .h5-kicker{font-size:9px;letter-spacing:.08em;font-weight:850;color:#8a6428;display:block;margin-bottom:5px}
.h5-collections .h5-fleet-expand h2{font-size:20px;line-height:1.2;font-weight:900}
.h5-collections .h5-fleet-expand p{font-size:12px;line-height:1.45;color:#6c725e;margin-top:6px}
.h5-collections .h5-fleet-expand>.h5-primary{min-width:130px}
.h5-collections .h5-fleet-complete{display:flex;align-items:center;gap:10px;padding:14px;margin-top:14px;border:1px solid #a7c5b1;border-radius:11px;background:#e0efdc;color:#2e6550;font-size:13px}
.h5-collections .h5-livery-preview{display:flex;align-items:center;gap:13px;padding:9px 13px;background:#e7efe4;border:1px solid #b8cbb5;border-radius:12px;margin-top:12px}
.h5-collections .h5-livery-art{width:86px;height:58px;flex:0 0 86px;background:radial-gradient(ellipse,#b4dbe0,transparent 75%);border-radius:10px}
.h5-collections .h5-livery-art>.ship-art{display:block;width:86px;height:58px;max-width:none;min-width:0;margin:0;object-fit:contain}
.h5-collections .h5-livery-preview h3{font-size:15px;line-height:1.3}
.h5-collections .h5-livery-preview p{font-size:10px;line-height:1.5;margin-top:4px;color:#586d73}
.h5-collections .h5-contracts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.h5-collections .h5-contracts-grid>.contract-card{min-width:0;background:linear-gradient(145deg,#fff9e8,#ffeec9);border:1px solid #d1b582;border-radius:15px;padding:16px;box-shadow:0 3px 0 #c7a46025}
.h5-collections .h5-contracts-grid .contract-top{gap:9px;min-width:0}
.h5-collections .h5-contracts-grid .city-icon{height:37px;width:37px;flex-shrink:0;background:#123e59;color:#ffe198;border:1px solid #536879;border-radius:10px;font-size:11px}
.h5-collections .h5-contracts-grid .contract-top h3{font-size:16px;color:#123e59;line-height:1.25}
.h5-collections .h5-contracts-grid .contract-top p{font-size:10px;color:#647478;margin-top:3px;line-height:1.4}
.h5-collections .h5-contracts-grid .route-time{font-size:10px;color:#547080;white-space:nowrap}
.h5-collections .h5-contracts-grid .needs{gap:5px;margin:14px 0;flex-wrap:wrap}
.h5-collections .h5-contracts-grid .need{font-size:11px;padding:5px 7px;background:#f1ead4;border:1px solid #d8c9a2;color:#415f6c;border-radius:7px}
.h5-collections .h5-contracts-grid .need.missing{background:#ffead4;border-color:#dbb195;color:#894b25}
.h5-collections .h5-contracts-grid .contract-bottom{gap:8px;align-items:center;min-width:0}
.h5-collections .h5-contracts-grid .reward{color:#77521c;font-size:18px;font-weight:900;white-space:nowrap}
.h5-collections .h5-contracts-grid .reward small{font-size:10px;font-weight:600;color:#826d45}
.h5-collections .h5-contracts-grid .contract-bottom .btn{font-size:12px;min-height:44px;padding:8px 11px;color:#4d3514;border:1px solid #bc8b31;border-radius:10px;background:linear-gradient(#ffdb77,#efb847);box-shadow:inset 0 1px 0 #fff2b9,0 2px 0 #c6973d;white-space:normal}
.h5-collections .h5-contracts-grid .contract-bottom .btn:disabled{background:#e4e2d6;color:#596d76;border-color:#bdc6c3;box-shadow:none;opacity:1}
.h5-collections .h5-contracts-grid .contract-bottom .btn>.icon{width:15px;height:15px}
.h5-collections .h5-contracts-grid .progress-caption{font-size:11px;color:#456773}
.h5-collections .h5-contracts-grid .progress{background:#ddd6be;border-color:#d0bea0}
.h5-collections .h5-contracts-grid .progress>span{background:#168996}
@keyframes h5-ship-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-4px) rotate(.5deg)}}
@keyframes h5-wake-drift{0%,100%{opacity:.8;transform:rotate(-13deg) scaleX(.95)}50%{opacity:.45;transform:rotate(-13deg) scaleX(1.12)}}
@media(max-width:1199px){.h5-collections .h5-raw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.h5-collections .h5-facility-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h5-collections .h5-contracts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h5-collections .h5-ship-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h5-collections .h5-ship-sea{height:175px}.h5-collections .h5-ship-sea>.ship-art.ship-sprite{width:185px;height:185px}.h5-collections .h5-resource-art{height:128px}.h5-collections .h5-resource-art>.building-sprite{width:134px;height:134px}}
@media(max-width:767px){.h5-collections .h5-section-switch{gap:5px;padding:6px;border-radius:13px;margin-bottom:15px}.h5-collections .h5-section-switch>button{gap:5px;min-height:51px;font-size:12px;padding:7px 4px}.h5-collections .h5-section-switch>button>.icon{width:18px;height:18px}.h5-collections .h5-section-switch>button small{font-size:9px}.h5-collections .h5-section-title{gap:7px;margin-bottom:10px}.h5-collections .h5-section-title h2{font-size:18px;gap:6px}.h5-collections .h5-section-title h2>.icon{width:17px;height:17px}.h5-collections .h5-section-title p{font-size:11px;margin-top:4px}.h5-collections .h5-section-badge{font-size:9px;padding:5px 6px}.h5-collections .h5-raw-grid,.h5-collections .h5-facility-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.h5-collections .h5-raw-card,.h5-collections .h5-factory-card{border-radius:13px;padding:10px}.h5-collections .h5-raw-card h3{font-size:14px;min-height:34px}.h5-collections .h5-resource-art{height:116px}.h5-collections .h5-resource-art>.building-sprite{width:121px;height:121px}.h5-collections .h5-resource-meta{font-size:10px}.h5-collections .h5-resource-meta>span{font-size:9px}.h5-collections .h5-resource-status{font-size:10px;min-height:35px}.h5-collections .h5-resource-meta>span{margin-left:0}.h5-collections .h5-card-ribbon{font-size:8px;gap:3px}.h5-collections .h5-card-ribbon>b{font-size:8px;padding:3px 4px}.h5-collections .h5-yield{font-size:14px}.h5-collections .h5-area-upgrades{grid-template-columns:1fr;padding:10px;gap:9px}.h5-collections .h5-area-upgrades>article{grid-template-columns:45px minmax(0,1fr) 97px;gap:7px;padding-bottom:8px;border-bottom:1px solid #e4d1a7}.h5-collections .h5-area-upgrades>article:last-child{border-bottom:0;padding-bottom:0}.h5-collections .h5-area-upgrades button{grid-column:auto;padding:7px;font-size:11px}.h5-collections .h5-area-upgrades h3{font-size:12px}.h5-collections .h5-area-upgrades p{font-size:9px}.h5-collections .h5-area-upgrades .building-sprite{width:45px;height:45px}.h5-collections .h5-factory-art{height:117px}.h5-collections .h5-factory-art>.building-sprite{height:122px;width:122px}.h5-collections .h5-factory-card>h3{font-size:14px}.h5-collections .h5-factory-card>.h5-primary,.h5-collections .h5-factory-card>.h5-secondary{font-size:11px}.h5-collections .h5-factory-card>.h5-primary>.icon{width:15px;height:15px}.h5-collections .h5-goods-chip{font-size:9px}.h5-collections .h5-goods-chip>.icon{width:11px;height:11px}.h5-collections .h5-recipe{padding:6px}.h5-collections .h5-recipe-time{font-size:9px}.h5-collections .h5-recipe-time>span{font-size:9px;margin-left:0}.h5-collections .h5-logistics-grid{grid-template-columns:1fr;gap:12px}.h5-collections .h5-storage-card{padding:16px}.h5-collections .h5-fleet-toolbar{padding:8px 10px;gap:11px;min-height:61px;margin-bottom:12px}.h5-collections .h5-fleet-toolbar>span{font-size:10px;gap:4px}.h5-collections .h5-fleet-toolbar>span>strong{font-size:15px}.h5-collections .h5-fleet-toolbar>span>.icon{width:16px;height:16px}.h5-collections .h5-fleet-toolbar>button{font-size:11px;padding:8px;min-height:44px}.h5-collections .h5-ship-grid{gap:10px}.h5-collections .h5-ship-card{border-radius:13px}.h5-collections .h5-ship-card>.h5-card-ribbon{padding:9px 9px 0}.h5-collections .h5-ship-sea{height:139px}.h5-collections .h5-ship-sea>.ship-art.ship-sprite{width:146px;height:146px}.h5-collections .h5-ship-wake{bottom:16px;height:13px}.h5-collections .h5-ship-copy{padding:3px 10px 12px}.h5-collections .h5-ship-copy>h3{font-size:15px}.h5-collections .h5-ship-copy>.h5-ship-design{font-size:10px;min-height:28px}.h5-collections .h5-ship-copy>.h5-ship-route{font-size:10px;gap:3px;margin:7px 0 10px;min-height:28px;align-items:flex-start}.h5-collections .h5-ship-route>.icon{height:12px;width:12px;margin-top:1px}.h5-collections .h5-ship-copy>.h5-primary{font-size:11px;padding:8px}.h5-collections .h5-ship-copy>.h5-job-progress{min-height:44px}.h5-collections .h5-job-progress>div:first-child{font-size:9px;align-items:flex-start}.h5-collections .h5-fleet-expand{grid-template-columns:69px minmax(0,1fr);gap:9px;padding:10px;margin-top:14px}.h5-collections .h5-next-ship,.h5-collections .h5-next-ship>.ship-art.ship-sprite{width:69px;height:69px}.h5-collections .h5-fleet-expand h2{font-size:16px}.h5-collections .h5-fleet-expand p{font-size:11px}.h5-collections .h5-fleet-expand>.h5-primary{grid-column:1/-1;min-width:0;min-height:46px}.h5-collections .h5-fleet-expand>.h5-primary>span{display:flex;align-items:center;gap:9px}.h5-collections .h5-fleet-expand>.h5-primary small{margin:0;font-size:11px}.h5-collections .h5-rule-note{font-size:10px;line-height:1.65}.h5-collections .h5-contracts-grid{grid-template-columns:1fr;gap:10px}.h5-collections .h5-contracts-grid>.contract-card{padding:14px}.h5-collections .h5-contracts-grid .contract-bottom{flex-wrap:nowrap}.h5-collections .h5-contracts-grid .contract-bottom .btn{font-size:12px;padding:9px 12px}.h5-collections .h5-contracts-grid .contract-top h3{font-size:16px}.h5-collections [id]{scroll-margin-top:95px}}
@media(max-width:350px){.h5-collections .h5-section-switch>button{gap:4px;font-size:11px}.h5-collections .h5-section-switch>button>.icon{width:15px;height:15px}.h5-collections .h5-section-switch>button small{font-size:8px}.h5-collections .h5-section-title h2{font-size:16px}.h5-collections .h5-section-title p{font-size:10px}.h5-collections .h5-section-badge{font-size:8px;padding:5px}.h5-collections .h5-raw-grid,.h5-collections .h5-facility-grid{gap:8px}.h5-collections .h5-raw-card,.h5-collections .h5-factory-card{padding:8px}.h5-collections .h5-raw-card h3{font-size:13px}.h5-collections .h5-resource-art{height:101px}.h5-collections .h5-resource-art>.building-sprite{height:110px;width:110px}.h5-collections .h5-card-ribbon{font-size:7px}.h5-collections .h5-card-ribbon>b{font-size:7px}.h5-collections .h5-raw-card>.h5-primary{font-size:10px;gap:4px;padding:8px 3px}.h5-collections .h5-raw-card>.h5-primary>.icon{height:14px;width:14px}.h5-collections .h5-factory-art{height:103px}.h5-collections .h5-factory-art>.building-sprite{height:111px;width:111px}.h5-collections .h5-factory-card>h3{font-size:13px}.h5-collections .h5-factory-card>.h5-primary{font-size:10px}.h5-collections .h5-area-upgrades>article{grid-template-columns:36px minmax(0,1fr) 87px;gap:5px}.h5-collections .h5-area-upgrades .building-sprite{width:36px;height:36px}.h5-collections .h5-area-upgrades button{font-size:10px}.h5-collections .h5-fleet-toolbar{gap:8px;padding:8px}.h5-collections .h5-fleet-toolbar>span>.icon{display:none}.h5-collections .h5-ship-sea{height:121px}.h5-collections .h5-ship-sea>.ship-art.ship-sprite{width:130px;height:130px}.h5-collections .h5-ship-copy{padding:3px 8px 10px}.h5-collections .h5-ship-copy>h3{font-size:14px}.h5-collections .h5-ship-copy>.h5-ship-design{font-size:9px}.h5-collections .h5-fleet-expand h2{font-size:15px}.h5-collections .h5-contracts-grid .contract-bottom .btn{font-size:11px}.h5-collections .h5-section-switch>button>span{min-width:0}}
/* The H5 shell remains 620px wide on desktop; viewport width must not expand its card grids. */
@media(min-width:768px){
  .h5-game .h5-collections .h5-raw-grid,.h5-game .h5-collections .h5-facility-grid,.h5-game .h5-collections .h5-ship-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h5-game .h5-collections .h5-contracts-grid,.h5-game .h5-collections .h5-area-upgrades{grid-template-columns:1fr}
  .h5-game .h5-collections .h5-area-upgrades>article{grid-template-columns:48px minmax(0,1fr) 130px;padding-bottom:10px;border-bottom:1px solid #e4d1a7}
  .h5-game .h5-collections .h5-area-upgrades>article:last-child{padding-bottom:0;border-bottom:0}
  .h5-game .h5-collections .h5-area-upgrades button{grid-column:auto}
  .h5-game .h5-collections .h5-ship-sea{height:175px}
  .h5-game .h5-collections .h5-ship-sea>.ship-art.ship-sprite{width:185px;height:185px}
}
@media(prefers-reduced-motion:reduce){.h5-collections *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.page-hidden .h5-collections .is-sailing .h5-ship-sea>.ship-sprite,.page-hidden .h5-collections .is-sailing .h5-ship-wake{animation-play-state:paused}

/* 0.9 — persistent ships and a playable route progression board. */
.h5-fleet .h5-ship-card[data-selected="true"]{border-color:#238e82;box-shadow:inset 0 0 0 1px #238e82,0 4px 0 #6caf9630}
.h5-fleet .h5-ship-card>.h5-card-ribbon{flex-wrap:wrap;min-height:40px;font-size:10px;gap:5px}
.h5-fleet .h5-card-ribbon>b{font-size:9px;margin-left:auto}
.h5-fleet .h5-ship-copy>h3{overflow-wrap:anywhere;min-height:1.3em}
.h5-fleet .h5-ship-capacity{position:absolute;bottom:6px;right:9px;border:1px solid #adc8b5;background:#fff7dceF;color:#28595a;min-width:48px;text-align:center;border-radius:9px;padding:4px 7px;font-size:17px;font-weight:900;z-index:2;box-shadow:0 2px 4px #143e5920}
.h5-fleet .h5-ship-capacity small{display:block;font-size:7px;letter-spacing:1px}
.h5-fleet .h5-owned-ship-stats{display:grid;gap:6px;margin:10px 0 12px;padding:9px 0;border-top:1px solid #decca9;border-bottom:1px solid #decca9;font-size:10px}
.h5-fleet .h5-owned-ship-stats>div{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap}
.h5-fleet .h5-owned-ship-stats dt{color:#506773;line-height:1.4}
.h5-fleet .h5-owned-ship-stats dd{font-weight:800;line-height:1.4;margin:0;color:#214f62}
.h5-fleet .h5-ship-copy>.h5-primary{min-height:48px;margin-top:auto}
.h5-fleet .h5-ship-copy>.h5-ship-detail{display:flex;flex-direction:column;gap:0;min-height:48px;margin-top:8px;padding:7px 4px;font-size:12px;background:#f4edda;box-shadow:none}
.h5-fleet .h5-ship-detail small{font-size:9px;color:#427067}
.h5-fleet .h5-routes{margin-top:22px;scroll-margin-top:115px}
.h5-fleet .h5-active-ship{background:#e2ede2;border:1px solid #a8c7b6;padding:12px;border-radius:11px;margin:0 0 12px}
.h5-fleet .h5-active-ship>span{font-size:11px;color:#376363}
.h5-fleet .h5-active-ship select{width:100%;min-height:46px;font-size:16px;color:#20475a;background:#fff9e7;border-color:#abc2af}
.h5-port-emblem{display:block;width:70px;height:70px;flex:0 0 70px;max-width:100%}
.h5-route-atlas{position:relative;border:1px solid #98c4bd;border-radius:17px;padding:16px;margin-bottom:22px;background:radial-gradient(ellipse at 20% 30%,#f1edcf88,transparent 65%),linear-gradient(140deg,#d8efea,#c2e2e4 55%,#eaf3df);box-shadow:inset 0 0 0 3px #eff5d966,0 4px 0 #86aaa433;overflow:hidden}
.h5-atlas-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;position:relative}
.h5-collections .h5-atlas-heading h2{font-size:20px;line-height:1.25;color:#194e64}
.h5-atlas-heading>b{display:block;flex-shrink:0;border:1px solid #5e9d95;background:#286e7b;color:#fff3ce;border-radius:10px;padding:9px;font-size:22px;line-height:1.2;text-align:center}
.h5-atlas-heading>b>small{display:block;font-size:7px;letter-spacing:.5px;margin-top:2px}
.h5-collections .h5-atlas-heading .h5-kicker{color:#4f755d;font-size:8px;letter-spacing:.6px}
.h5-route-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;position:relative;margin:16px 0}
.h5-route-node{display:flex;flex-direction:column;align-items:center;position:relative;min-width:0;min-height:127px;padding:8px 5px 10px;background:#fff7dccF;border:1px solid #a7c9b7;border-radius:12px;box-shadow:0 3px 0 #8aaa972e;color:#225a66;text-align:center}
.h5-route-node>.h5-port-emblem{width:65px;height:65px;flex-basis:65px;margin-bottom:4px}
.h5-route-node>strong{font-size:13px;line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.h5-route-node>small{display:flex;align-items:center;justify-content:center;gap:4px;font-size:9px;line-height:1.4;margin-top:4px;color:#326b57}
.h5-route-node>small>.icon{width:11px;height:11px}
.h5-route-node-step{position:absolute;top:7px;left:7px;font-size:8px;color:#4e796f;font-weight:800}
.h5-route-node.is-locked{background:#eeeadbbf;border-color:#b6c4b4;box-shadow:none}
.h5-route-node.is-locked>.h5-port-emblem{filter:saturate(.35);opacity:.86}
.h5-route-node.is-locked>small{color:#66694f}
.h5-route-node.is-locked>strong{color:#4c6264}
.h5-route-node:focus-visible{outline:3px solid #075f78;outline-offset:2px}
.h5-next-route{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;background:#fff4d9;border:1px solid #cbb680;border-radius:11px}
.h5-next-route>div{min-width:0}
.h5-next-route span{display:block;font-size:8px;color:#9a6a26;letter-spacing:.7px;font-weight:850}
.h5-next-route strong{display:block;font-size:16px;margin-top:3px;color:#285461}
.h5-collections .h5-next-route p{font-size:11px;line-height:1.55;color:#52716f;margin-top:4px}
.h5-collections .h5-next-route>.h5-secondary{flex-shrink:0;max-width:116px;min-height:46px;padding:7px 9px;font-size:11px;background:#f1deb0;border-color:#c1a163}
.h5-collections .h5-atlas-note{margin-top:9px;font-size:9px;line-height:1.4;color:#4c726e;text-align:center}
.h5-collections .h5-atlas-complete{font-size:12px;line-height:1.5;color:#35695d;border-top:1px solid #98c0ae;padding-top:10px}
.h5-collections .h5-contracts-grid>.h5-route-card{padding:13px;scroll-margin-top:115px}
.h5-route-card:focus-visible,.h5-routes:focus-visible{outline:3px solid #0d7b8e;outline-offset:4px}
.h5-route-card-head{display:flex;gap:9px;align-items:center;min-width:0}
.h5-route-card-head>.h5-port-emblem{width:56px;height:56px;flex-basis:56px}
.h5-route-card-head>div{min-width:0;flex:1}
.h5-collections .h5-route-card-head h3{font-size:19px;line-height:1.2;color:#164e63}
.h5-collections .h5-route-card-head p{font-size:10px;line-height:1.5;color:#557274;margin-top:4px}
.h5-route-card-head .h5-kicker{font-size:7px;letter-spacing:.5px}
.h5-route-state{display:flex;flex-direction:column;gap:2px;align-items:center;font-size:9px;color:#3d7761;background:#e0eed7;border:1px solid #b3cbb0;border-radius:9px;padding:7px;flex-shrink:0}
.h5-route-state>.icon{width:15px;height:15px}
.h5-collections .h5-contracts-grid>.h5-route-card.is-locked{background:#f5edd6;border-style:dashed;border-color:#bbb391;box-shadow:none}
.h5-route-card.is-locked .h5-route-state{background:#e9e3d3;color:#596962;border-color:#c6c6ac}
.h5-route-card.is-locked .h5-route-card-head>.h5-port-emblem{filter:saturate(.35)}
.h5-route-unlock{margin-top:10px;background:#ebe5d1;border:1px solid #ccc1a0;border-radius:9px;padding:9px 10px}
.h5-collections .h5-route-unlock>p{font-size:11px;line-height:1.5;color:#586657}
.h5-route-unlock ul,.h5-ship-requirements{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
.h5-route-unlock li,.h5-ship-requirements li{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1.45;font-size:11px;color:#696344}
.h5-route-unlock li>b,.h5-ship-requirements li>b{flex-shrink:0;font-weight:850}
.h5-route-unlock li.is-complete,.h5-ship-requirements li.is-complete{color:#337462}
.h5-route-cargo{margin-top:14px}
.h5-route-cargo>span{font-size:8px;font-weight:850;letter-spacing:.5px;color:#6e795f}
.h5-collections .h5-route-cargo .needs{margin:7px 0 10px}
.h5-collections .h5-route-cargo .need{display:flex;align-items:center;gap:3px;color:#395b63;background:#f1e7c9;font-size:11px;border-color:#d2c09a}
.h5-collections .h5-route-cargo .need.missing{color:#8b4c2b;background:#f7e3ce;border-color:#d6b293}
.h5-route-cargo .h5-art{width:25px;height:25px;flex-basis:25px}
.h5-route-card.is-locked .h5-route-cargo{display:none}
.h5-route-quote{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dfcca0;padding-top:10px}
.h5-route-quote>div{min-width:0;flex:1}
.h5-route-quote>div>span{display:block;font-size:10px;line-height:1.5;color:#577371;overflow-wrap:anywhere}
.h5-route-quote strong{display:block;font-size:19px;font-weight:900;color:#78571d;line-height:1.4;margin:3px 0}
.h5-route-quote small{display:block;font-size:10px;line-height:1.5;color:#607369}
.h5-route-quote>button{max-width:126px;min-height:46px;font-size:12px;padding:9px 11px;flex-shrink:0;white-space:normal;display:flex;align-items:center;justify-content:center;gap:5px}
.h5-route-quote>button:disabled{background:#e6e2d1;color:#5d6d6e;border-color:#bdc5b8;opacity:1;box-shadow:none}
.h5-collections .h5-route-reason,.h5-collections .h5-route-lock-note{font-size:11px;line-height:1.55;color:#856140;margin-top:9px}
.h5-collections .h5-route-lock-note{font-size:10px;color:#677467}
.h5-route-sailing{border-top:1px solid #c4d4b4;padding-top:9px}
.h5-collections .h5-route-sailing>p{font-size:11px;color:#347569;line-height:1.5;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.h5-route-sailing>small{display:block;font-size:10px;color:#5d7767;line-height:1.5;margin-top:8px}

/* Fleet dialogs stay legible at 320px and inside the 620px game frame. */
.h5-game .h5-shipyard,.h5-game .h5-ship-file,.h5-game .h5-route-planner{color:#173f53;min-width:0}
.h5-game .h5-shipyard *,.h5-game .h5-ship-file *,.h5-game .h5-route-planner *{box-sizing:border-box}
.h5-shipyard-intro{display:flex;align-items:center;gap:9px;margin-bottom:16px}
.h5-shipyard-intro>.h5-art{width:76px;height:76px;flex-basis:76px}
.h5-shipyard-intro>div{min-width:0}
.h5-game .h5-shipyard h3{font-size:19px;line-height:1.3;color:#214e60;margin:0}
.h5-game .h5-shipyard p{font-size:12px;line-height:1.6;color:#59716a;margin:6px 0 0}
.h5-game .h5-shipyard .h5-kicker,.h5-game .h5-ship-file .h5-kicker,.h5-game .h5-route-planner .h5-kicker{display:block;font-size:8px;line-height:1.4;letter-spacing:.5px;color:#8d692b;font-weight:850;margin-bottom:4px}
.h5-class-grid{display:grid;gap:12px}
.h5-class-card{display:grid;grid-template-columns:86px minmax(0,1fr);column-gap:10px;position:relative;border:1px solid #bcbb90;background:#f3efd7;border-radius:13px;padding:12px;min-width:0}
.h5-class-card.h5-class-cargo{background:#e6efdf;border-color:#a0bd9e}
.h5-class-card.h5-class-fast{background:#e1eeeb;border-color:#9fbfbf}
.h5-class-card .h5-class-art{grid-column:1;grid-row:1/4;position:relative;align-self:center;width:86px;height:100px}
.h5-class-art>.ship-art.ship-sprite{position:absolute;top:-5px;left:-3px;width:92px;height:92px;max-width:none;min-width:0;margin:0}
.h5-class-art>b{position:absolute;bottom:0;left:19px;border:1px solid #bad0b0;background:#fff9de;border-radius:8px;padding:3px 8px;font-size:17px;line-height:1.1;text-align:center;color:#326663}
.h5-class-art>b>small{display:block;font-size:6px;letter-spacing:.8px;margin-top:2px}
.h5-class-card>h3,.h5-class-card>p,.h5-class-card>dl{grid-column:2}
.h5-game .h5-class-card>h3{font-size:17px}
.h5-game .h5-class-card>p{font-size:11px;line-height:1.5;margin-top:5px}
.h5-class-card>dl{margin:8px 0 0;display:grid;gap:4px;font-size:11px}
.h5-class-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:7px;line-height:1.5}
.h5-class-card dt{color:#5c7768}
.h5-class-card dd{margin:0;color:#2e665d;font-weight:800}
.h5-class-card>button{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;min-height:48px;font-size:12px;max-width:100%}
.h5-class-card>button>span{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.h5-class-card>button small{font-size:11px;line-height:1.4}
.h5-class-shortfall{grid-column:1/-1;display:block;margin-top:8px;font-size:10px;line-height:1.4;color:#8a633e;text-align:center}
.h5-game .h5-shipyard>.inline-help{margin-top:13px;font-size:11px;line-height:1.6}
.h5-ship-file-hero{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #aecbbd;border-radius:13px;background:linear-gradient(110deg,#d8ebe7,#f2efd4);padding:10px;margin-bottom:13px}
.h5-ship-file-hero>.ship-art.ship-sprite{display:block;width:110px;height:110px;flex:0 0 110px;max-width:42%;min-width:0;margin:0}
.h5-ship-file-hero>div{min-width:0}
.h5-game .h5-ship-file-hero h3{font-size:20px;line-height:1.25;color:#245d69;overflow-wrap:anywhere;margin:0}
.h5-game .h5-ship-file-hero p{font-size:11px;line-height:1.5;color:#5d7769;margin:5px 0}
.h5-ship-file-hero b{display:block;font-size:11px;line-height:1.4;color:#847035}
.h5-ship-file-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 14px}
.h5-ship-file-stats>div{padding:9px 7px;text-align:center;border:1px solid #d3be91;background:#f5e9cb;border-radius:8px;min-width:0}
.h5-ship-file-stats dt{font-size:9px;line-height:1.5;color:#697567}
.h5-ship-file-stats dd{font-size:14px;line-height:1.4;font-weight:850;color:#30646a;margin:5px 0 0;overflow-wrap:anywhere}
.h5-ship-at-sea{display:flex;align-items:center;gap:7px;color:#376b75;background:#e1ece8;border:1px solid #b1cbc2;border-radius:9px;padding:10px;font-size:12px;line-height:1.55;margin:0 0 14px}
.h5-game .h5-ship-upgrade{border:1px solid #d0b272;background:#f5e7bf;border-radius:12px;padding:13px;margin-bottom:18px}
.h5-game .h5-ship-upgrade h3{font-size:18px;color:#715823;line-height:1.3;margin:0 0 11px}
.h5-game .h5-ship-upgrade>p{font-size:12px;color:#68715b;line-height:1.6}
.h5-upgrade-gain{display:grid;grid-template-columns:1fr 1fr;gap:7px;border-bottom:1px solid #c9b486;padding-bottom:10px;margin-bottom:12px}
.h5-upgrade-gain>span{font-size:10px;line-height:1.5;color:#6a795f}
.h5-upgrade-gain b{display:block;font-size:14px;margin-top:3px;color:#337163}
.h5-ship-requirements{margin:0 0 14px;gap:8px}
.h5-ship-requirements li{font-size:12px;color:#805f35;min-height:23px}
.h5-ship-requirements li>span{display:flex;align-items:center;gap:6px}
.h5-ship-requirements .h5-art{width:26px;height:26px;flex-basis:26px}
.h5-game .h5-ship-file button,.h5-game .h5-route-planner button{min-height:46px;white-space:normal;font-size:12px;line-height:1.4}
.h5-game .h5-ship-file input,.h5-game .h5-route-planner select{min-height:46px;font-size:16px;max-width:100%;width:100%}
.h5-game .h5-ship-file input:disabled{opacity:1;background:#e7e6da;color:#677871}
.h5-game .h5-ship-file button:disabled,.h5-game .h5-route-planner button:disabled,.h5-game .h5-shipyard button:disabled{opacity:1;background:#e2e3d8;border-color:#b4c3ba;color:#5a6f70;box-shadow:none}
.h5-planner-port{display:flex;align-items:center;gap:9px;margin-bottom:15px}
.h5-planner-port>.h5-port-emblem{width:68px;height:68px;flex-basis:68px}
.h5-planner-port>div{min-width:0}
.h5-game .h5-planner-port h3{font-size:20px;line-height:1.25;color:#295b69;margin:0}
.h5-game .h5-planner-port p{font-size:11px;line-height:1.5;color:#6b7867;margin:5px 0 0}
.h5-planner-ship{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #abc8b9;border-radius:10px;background:linear-gradient(100deg,#dcece4,#f2efd9);padding:5px 10px;margin:-3px 0 15px;min-height:80px}
.h5-planner-ship>.ship-art.ship-sprite{width:83px;height:76px;flex:0 0 83px;min-width:0;margin:0}
.h5-planner-ship>span{min-width:0}
.h5-planner-ship strong{display:block;font-size:16px;line-height:1.3;color:#285c65;overflow-wrap:anywhere}
.h5-planner-ship small{display:block;font-size:11px;line-height:1.5;color:#527269;margin-top:4px}
.h5-plan-summary{background:#1b5569;color:#fff3d0;border:1px solid #427f8b;border-radius:12px;padding:12px;box-shadow:inset 0 1px 0 #719298;margin:14px 0}
.h5-plan-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.h5-plan-summary dl>div{min-width:0;padding:3px 3px 7px;border-bottom:1px solid #5b8894}
.h5-plan-summary dt{font-size:10px;line-height:1.4;color:#d0e4d7}
.h5-plan-summary dd{font-size:24px;font-weight:900;line-height:1.25;margin:6px 0 0;color:#ffe69a;overflow-wrap:anywhere}
.h5-plan-summary dd small{display:block;font-size:9px;font-weight:600;margin-top:3px;color:#d0e5dd}
.h5-plan-summary>p{font-size:10px;line-height:1.5;margin:9px 0 0;color:#e2eed7}
.h5-planner-cargo{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.h5-planner-cargo>span{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;column-gap:5px;min-width:0;border:1px solid #cdbb8f;border-radius:9px;padding:7px 9px;background:#f4e8c9;font-size:12px;line-height:1.4;color:#425e5e}
.h5-planner-cargo>span>.h5-art{grid-column:1;grid-row:1/3;width:28px;height:28px;flex-basis:28px}
.h5-planner-cargo small{grid-column:2;font-size:9px;color:#6a795e;line-height:1.4}
.h5-planner-cargo>.missing{background:#f4dfc7;border-color:#cca88a;color:#8a583a}
.h5-plan-reason{font-size:12px;line-height:1.55;margin:10px 0 14px;color:#8a5737}
.h5-plan-reason.is-ready{color:#2c7866}
.h5-route-planner[data-submitting] button[type=submit]{cursor:progress}
@media(min-width:500px){.h5-class-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.h5-class-card{display:flex;flex-direction:column;gap:0;padding:10px}.h5-class-card .h5-class-art{width:100%;height:116px;flex-shrink:0;margin-bottom:10px}.h5-class-art>.ship-art.ship-sprite{left:50%;top:0;transform:translateX(-50%);width:115px;height:110px}.h5-class-art>b{left:auto;right:5px;bottom:1px}.h5-game .h5-class-card>h3{font-size:16px}.h5-game .h5-class-card>p{flex:1;min-height:48px}.h5-class-card>dl{width:100%;font-size:10px;margin-top:12px}.h5-class-card>button{font-size:11px;min-height:54px;padding:7px;width:100%;margin-top:13px}.h5-class-card>button>span{display:block}.h5-class-card>button small{display:block;font-size:10px;margin-top:3px}.h5-class-card>button>.icon{display:none}}
@media(max-width:430px){.h5-fleet .h5-ship-card>.h5-card-ribbon{min-height:47px;font-size:9px;gap:3px}.h5-fleet .h5-card-ribbon>span{flex-basis:100%}.h5-fleet .h5-card-ribbon>b{margin-left:0;font-size:8px}.h5-route-atlas{padding:12px}.h5-route-path{gap:7px}.h5-route-node{padding:7px 3px 9px;min-height:117px}.h5-route-node>.h5-port-emblem{width:57px;height:57px;flex-basis:57px}.h5-route-node>strong{font-size:11px}.h5-route-node>small{font-size:8px}.h5-route-node-step{top:5px;left:5px;font-size:7px}.h5-collections .h5-atlas-heading h2{font-size:18px}.h5-atlas-heading>b{font-size:20px;padding:7px}.h5-collections .h5-next-route p{font-size:10px}.h5-next-route{padding:9px;gap:7px}.h5-collections .h5-next-route>.h5-secondary{max-width:93px;font-size:10px;gap:3px}.h5-collections .h5-next-route>.h5-secondary>.icon{display:none}.h5-route-card-head>.h5-port-emblem{width:49px;height:49px;flex-basis:49px}.h5-collections .h5-route-card-head h3{font-size:18px}.h5-route-quote>button{max-width:105px;font-size:11px;padding:8px}.h5-route-quote strong{font-size:18px}.h5-route-quote>div>span{font-size:9px}.h5-game .h5-ship-file-hero h3{font-size:18px}.h5-game .h5-planner-port h3{font-size:19px}}
@media(max-width:350px){.h5-fleet .h5-owned-ship-stats{font-size:9px}.h5-fleet .h5-owned-ship-stats>div{display:block}.h5-fleet .h5-owned-ship-stats dd{margin-top:2px}.h5-fleet .h5-ship-copy>.h5-primary{font-size:10px;padding:7px 4px}.h5-fleet .h5-ship-copy>.h5-primary>.icon{display:none}.h5-fleet .h5-ship-copy>.h5-ship-detail{font-size:11px}.h5-fleet .h5-ship-detail small{font-size:8px}.h5-collections .h5-atlas-heading h2{font-size:16px}.h5-route-node>strong{font-size:10px}.h5-route-node>small{font-size:7px}.h5-route-node>.h5-port-emblem{width:49px;height:49px;flex-basis:49px}.h5-route-node{min-height:108px}.h5-game .h5-shipyard-intro>.h5-art{width:59px;height:59px;flex-basis:59px}.h5-game .h5-shipyard-intro h3{font-size:16px}.h5-game .h5-shipyard-intro p{font-size:11px}.h5-class-card{grid-template-columns:72px minmax(0,1fr);gap:8px;padding:10px}.h5-class-card .h5-class-art{width:72px}.h5-class-art>.ship-art.ship-sprite{width:81px;height:90px;left:-4px}.h5-class-card>button>span{gap:6px}.h5-class-card>button small{font-size:10px}.h5-ship-file-stats dd{font-size:12px}.h5-ship-file-stats dt{font-size:8px}.h5-game .h5-ship-file-hero h3{font-size:16px}.h5-ship-file-hero>.ship-art.ship-sprite{width:84px;height:93px;flex-basis:84px}.h5-plan-summary dd{font-size:22px}.h5-game .h5-route-card-head h3{font-size:17px}.h5-route-quote>button{max-width:96px;font-size:10px}}
