/* Karibikkampf: a painted captain's deck. Materials stay visible, type stays readable. */
@font-face{font-family:'Pirata One';src:url('/fonts/pirata-one.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--bg:#092c36;--panel:#163f43;--panel2:#214f4b;--text:#fff1cd;--muted:#c0c9ba;--gold:#edbd64;--gold-dim:#ba8743;--line:#d5a85c70;--teal:#61d5c0;--deck-sidebar:268px;--title:var(--font-display);--timber:url('/art/interface/wood.webp');--paper:url('/art/interface/parchment.webp');font-family:var(--font-body);font-size:var(--font-body-size);color-scheme:dark}
body{background:linear-gradient(115deg,#032d3bb8,#073540b0 60%,#08252da6),url('/art/landing-hero.webp') center top/cover fixed;color:var(--text)}
button,a,input,textarea,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ffe6a7}
button:disabled{opacity:.58}h1,h2,h3{font-family:var(--title);font-weight:400;letter-spacing:.2px}p{color:#d1d7c7}small{color:inherit}
.skip{position:fixed;top:-70px;left:15px;z-index:100;padding:12px 18px;background:#efca83;color:#3d2818}.skip:focus{top:10px}
.shell{display:grid;grid-template-columns:var(--deck-sidebar) minmax(0,1fr);min-height:var(--game-height,100dvh)}
.painted-icon{display:block;flex-shrink:0;width:50px;height:50px;background-image:url('/art/interface/navigation-atlas.webp');background-size:400% 400%;background-position:calc(var(--sprite-x)*100%/3) calc(var(--sprite-y)*100%/3);background-repeat:no-repeat;filter:drop-shadow(0 3px 2px #110b0799)}
.sidebar{position:sticky;top:0;height:var(--game-height,100dvh);width:auto;padding:17px 18px 20px;display:flex;flex-direction:column;border-right:9px solid #382319;box-shadow:2px 0 #d7a963,7px 0 15px #03192180;background:linear-gradient(90deg,#120a074f,#44231618 60%,#140c0866),var(--timber) center/420px;isolation:isolate;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b38b50 #2a1c16}
.sidebar:after{content:'';position:fixed;top:0;bottom:0;left:calc(var(--deck-sidebar) - 13px);width:12px;background:url('/art/interface/rope.svg') center/12px 48px repeat-y;pointer-events:none;z-index:5}
.sidebar:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#0e090777,transparent 50%),repeating-linear-gradient(0deg,transparent 0 110px,#10080680 112px,#e8bf6c22 114px,transparent 116px)}
.sidebar .brand{display:flex!important;flex-direction:row;align-items:center;gap:8px;padding:0 0 14px;text-align:left;color:#f7d48b;font:31px/.88 var(--title);letter-spacing:2px;text-shadow:0 3px #190e09,0 0 18px #cd84272b;flex-shrink:0}
.brand-crest{width:87px;height:95px;object-fit:contain;filter:drop-shadow(0 6px 5px #150a09a8)}
.sidebar .brand>span:last-child{display:block!important}.sidebar .brand>span>span{display:block;font:37px/.98 var(--title);letter-spacing:3px;margin-top:3px}.sidebar .brand small{display:block;font:6px/1.4 var(--font-body);letter-spacing:1.8px;color:#d4b47e;margin:9px 0 0}
.world-label{display:flex!important;align-items:center;justify-content:center;gap:8px;padding:10px 0;margin:0 5px 10px;border-top:1px solid #deb76a66;border-bottom:1px solid #deb76a66;font-size:10px;letter-spacing:2px;color:#ebce96;background:#0e0c081f}
.world-label>span:last-child{margin-left:auto;color:#dcb369;font-size:10px}.world-label .live-dot{background:#61d5b2;width:5px;height:5px;box-shadow:0 0 7px #70ddb3}
.sidebar #navigation{display:flex!important;flex-direction:column;gap:4px;flex-shrink:0;min-width:0}
.nav-group-label{font-size:8px;letter-spacing:2px;color:#cfb17b;font-weight:600;margin:12px 13px 3px}.nav-group-label:first-child{margin-top:3px}
.sidebar #navigation .nav-item{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:46px;padding:3px 12px 3px 7px;margin:0;border:1px solid #d8ac6030;border-radius:2px;box-shadow:inset 0 1px #fff1bf0b,0 2px 2px #12090666;background:linear-gradient(100deg,#4c2e1970,#281a1266),var(--timber) center/330px;text-align:left;color:#f1dfb4;font:15px/1.2 var(--font-body);letter-spacing:.1px}
.sidebar #navigation .nav-item .nav-label{display:inline!important;white-space:normal;font:inherit;min-width:0}
.sidebar #navigation .nav-item .painted-icon{width:43px;height:43px;margin:-1px 0}
.sidebar #navigation .nav-item:hover{background:linear-gradient(90deg,#225c50d9,#123f40d9),var(--timber) center/330px;border-color:#d6ae68a6;color:#fff1ca}
.sidebar #navigation .nav-item.active{background:linear-gradient(100deg,#08776bde,#12554be0),var(--timber) center/330px;border:1px solid #e4bc70;box-shadow:inset 0 0 0 2px #011c2377,0 0 0 1px #2a1b12,0 3px 5px #100a0799;color:#ffe4a4;text-shadow:0 2px #18382f}
.sidebar #navigation .nav-item.active:before{content:'';position:absolute;left:-5px;top:17px;width:9px;height:9px;background:#efc77b;box-shadow:1px 1px #62411d;transform:rotate(45deg)}
.sidebar #navigation .nav-item.active:after{content:'›';position:static;margin-left:auto;font:26px/.8 var(--font-body);color:#ffe5a8}
.sidebar #navigation .nav-item svg{width:22px;height:22px}
.nav-item .badge{position:static!important;margin-left:auto;font:10px var(--font-body);color:#261c11;background:#e6b85d;border:1px solid #ffdfa0;padding:2px 6px;border-radius:2px}
.sidebar-section{display:flex!important;justify-content:space-between;margin:20px 9px 8px;font-size:10px;color:#dfc78f}.sidebar-section .eyebrow{font-size:8px;letter-spacing:1.5px}
.my-islands{display:block!important;flex-shrink:0}.my-islands button{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #d3b17a44;background:#150f0a55;font-size:11px;color:#f0dcae;margin-top:5px;min-width:0}.my-islands button.active{background:#04675b6b;border-color:#c6a66e}.my-islands .islet .painted-icon{width:39px;height:39px}.my-islands button>span:last-child{min-width:0;overflow-wrap:anywhere}.my-islands small{font-size:9px;color:#cdbd95;line-height:1.5}
.sidebar-bottom{margin-top:auto;flex-shrink:0;padding-top:18px}.sidebar-bottom .season{display:none}.sidebar-bottom>.nav-item{display:flex;flex-direction:row;gap:9px;font-size:11px;min-height:37px;padding:8px;color:#e0c999}.sidebar-bottom svg{width:18px;height:18px}.sidebar .legal-links{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;border-top:1px solid #d5ad6b44;padding-top:12px;font-size:9px;color:#bca47c}.legal-links a{color:#c9b38d}
main#workspace{padding:0 24px 25px;min-width:0;position:relative}
.topbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:10px 22px;position:sticky;top:0;z-index:35;height:auto;min-height:155px;margin:0 -24px;padding:10px 24px 13px;border:0;border-bottom:6px solid #3b2619;background:linear-gradient(90deg,#1a100a38,#45271922,#1a100a66),var(--timber) center/600px;box-shadow:0 1px #e8b563,0 7px 14px #001d2877;isolation:isolate}
.topbar:after{content:'';position:absolute;bottom:-8px;left:0;right:0;height:6px;background:linear-gradient(#f4d88d,#a77b39 30%,#352212 70%,#bd914e);pointer-events:none}
.current-island{display:flex!important;align-items:center;gap:10px;min-width:0;grid-column:1;grid-row:1}.current-island>span{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid #c79b54;border-radius:50%;background:linear-gradient(135deg,#014e54,#0b292b);color:#f2ce86;box-shadow:0 0 0 3px #22150f,0 0 0 4px #966f33}
.current-island>span svg{width:30px;height:30px}.current-island>div{min-width:0;flex:1}.current-island small{display:block;font-size:8px;letter-spacing:1.4px;color:#d6b37c;margin-bottom:2px}.current-island select{display:block;width:100%;max-width:350px;background:transparent;border:0;padding:0 24px 1px 0;color:#ffe5a9;font:27px/1.2 var(--title);text-overflow:ellipsis;cursor:pointer;text-shadow:0 2px 2px #1a0e09}.current-island option{background:#2c2117;color:#ffe8b3;font:16px var(--font-body)}
.header-world-badge{grid-column:2;grid-row:1;border:1px solid #ddba7955;padding:8px 11px;background:#10150c33;font-size:9px;letter-spacing:1.5px;color:#e8c68d;white-space:nowrap}.header-world-badge i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#69ddb6;box-shadow:0 0 6px #69ddb6;margin-right:5px}
.topbar #account{position:relative;grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin:0}.captain-button{display:flex;align-items:center;gap:12px;padding:0!important;background:transparent!important;border:0!important;min-width:0}.captain-button:after{content:'⌄';font-size:16px;color:#e9c17c;margin-left:1px}.captain-label{display:flex;flex-direction:column;gap:2px;max-width:145px;text-align:right;min-width:0}.captain-label small{font-size:8px;letter-spacing:1.5px;color:#dab67a}.captain-label strong{font:22px/1.1 var(--title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffe5ad}.captain-rank{font-size:10px;color:#c8c6a9}
.captain-portrait{position:relative;display:block;width:64px;height:64px;border-radius:50%;padding:4px;border:1px solid #f6d48c;background:conic-gradient(#bf8a32,#ffe5a3,#87551c,#eac06c,#9b6729,#ffe5a3,#bf8a32);box-shadow:0 0 0 2px #1a291e,0 0 0 3px #ba8b42,0 4px 8px #130a07aa;flex-shrink:0;overflow:hidden}.captain-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%;border-radius:50%;background:#164545}.captain-button:hover .captain-portrait{box-shadow:0 0 0 2px #142a24,0 0 0 4px #ffe6a3,0 4px 12px #e9b75b44}
.player-menu{position:absolute;right:0;top:calc(100% + 14px);width:290px;max-width:calc(100vw - 24px);padding:12px;background:linear-gradient(#1a100a33,#1a100a33),var(--timber) center/450px;border:3px solid #95682f;box-shadow:0 0 0 1px #ecc980,0 12px 35px #02171ddd;z-index:70}.player-menu-header{display:flex;align-items:center;gap:12px;padding:7px 6px 14px;margin-bottom:6px;border-bottom:1px solid #cfab6999}.player-menu-header img{width:54px;height:54px;object-fit:cover;object-position:center 25%;border:2px solid #e6b865;border-radius:50%}.player-menu-header strong{font:23px var(--title);color:#ffe0a1;overflow-wrap:anywhere}.player-menu-header small{display:block;font-size:11px;margin-top:5px;color:#d5c499}.player-menu>button{display:flex;align-items:center;gap:11px;min-height:45px;width:100%;background:#150e073b;border:1px solid #d6b27b33;color:#f5ddb1;text-align:left;border-radius:1px;font-size:13px;margin:4px 0;padding:10px}.player-menu>button:hover{background:#0b675bb3;border-color:#e8c174}.player-menu svg{width:20px;height:20px;color:#e4bb73;flex-shrink:0}
.island-command-strip{grid-column:1/-1;grid-row:2;display:flex;align-items:stretch;gap:12px;min-width:0;padding-top:14px}
.inventory-section-label{position:absolute;top:-13px;left:5px;font-size:8px;font-weight:600;text-transform:uppercase;letter-spacing:1.4px;color:#e7bd7c;line-height:1}
.topbar .resources{position:relative;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1 1 375px;min-width:0;margin:0}
.topbar .resource{display:flex;align-items:center;gap:8px;position:relative;padding:8px 10px 10px;min-height:66px;min-width:0;border:1px solid #dcb56c;border-radius:2px;background:linear-gradient(100deg,#ffe8b021,#e3bd741f),var(--paper) center/cover;box-shadow:0 0 0 2px #1a150e77,inset 0 0 9px #80502538,0 3px 5px #140d0877;overflow:hidden;color:#482a13}
.resource-icon{display:block!important;width:48px;height:44px;flex-shrink:0;background:none;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 2px 2px #643f1740)}.resource-icon img{display:block;width:100%;height:100%;object-fit:contain}.resource-copy{min-width:0}.resource strong{display:block;font:25px/1 var(--font-body);font-weight:700;letter-spacing:-.4px;color:#432914;font-variant-numeric:tabular-nums}.resource small{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:9px;line-height:1;color:#68491f}.resource .resource-label{display:inline!important;font-size:9px;letter-spacing:.1px;color:#68491f}.resource .rate{color:#2f613b;font-size:9px;white-space:nowrap;font-weight:600}
.resource-gauge{display:block;appearance:none;position:absolute;left:0;bottom:0;height:4px;width:100%;border:0;border-radius:0;background:#89632e4d}.resource-gauge::-webkit-progress-bar{background:#89632e4d}.resource-gauge::-webkit-progress-value{background:linear-gradient(90deg,#94743b,#31705b)}.resource-gauge::-moz-progress-bar{background:#31705b}
.stock-gold .resource-gauge::-webkit-progress-value{background:linear-gradient(90deg,#9c5b0d,#dfaa29)}
#harbor-summary{position:relative;display:flex;gap:0;align-items:stretch;min-width:0;flex:0 0 390px;padding:3px 4px;border:1px solid #b68b4d;background:linear-gradient(110deg,#073f3fe8,#112e2eed);box-shadow:inset 0 0 0 2px #021d23,0 3px 4px #140c0a99}
.header-ship{display:flex;align-items:center;justify-content:center;gap:4px;flex:1;min-width:0;padding:3px 5px!important;background:transparent!important;border:0!important;border-right:1px solid #d4b36d40!important;border-radius:0!important;color:#ffdea0}
.header-ship .ship-miniature{display:block;width:38px;height:43px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 2px #001a23)}.header-ship-copy{min-width:0}.header-ship strong{display:block;font:22px/1 var(--font-body);color:#ffe3aa}.header-ship small{display:block;font-size:8px;color:#d3cfb5;line-height:1.2;margin-top:5px;white-space:nowrap}.header-ship:hover{background:#e3bd7620!important}
.header-army{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:1px 6px;border:0;border-radius:0;background:transparent;min-width:70px;color:#ffe5ae}.header-army .troop-tokens{display:flex;align-items:center;gap:3px;margin:0}.header-army .troop-tokens span{display:flex;align-items:center;gap:1px;font-size:11px}.header-army .troop-tokens img{height:32px;width:20px;object-fit:contain}.header-army small{display:block;font-size:8px;color:#c4d0b6}
#header-status{flex:0 1 126px;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;border:1px solid #cba16099;padding:7px 9px;color:#ffdf9f;background:#261c10a3;box-shadow:inset 0 0 0 2px #100c0866;font-size:10px;line-height:1.3}#header-status svg{width:23px;height:23px;flex-shrink:0;color:#f1c46d}#header-status strong{font-size:11px;font-weight:600;color:#ffe4ac}#header-status small{display:block;margin-top:3px;color:#d1c5a8;font-size:9px}
.page-heading{position:relative;display:flex;align-items:center;gap:14px;padding:22px 0 18px;margin:0 0 18px;border-bottom:1px solid #e4bc6c70}.page-heading:after{content:'✦';position:absolute;right:0;bottom:-9px;padding-left:8px;color:#e9bd64;background:#103d45;font-size:16px}.view-emblem .painted-icon{width:66px;height:66px}.page-title-block{min-width:0}.page-heading .eyebrow{font:9px/1.4 var(--font-body);color:#f1c876;letter-spacing:2px;margin-bottom:4px}.page-heading h1{font:43px/1.05 var(--title);color:#ffe0a2;text-shadow:0 3px 2px #052128}.world-meta{margin-left:auto;color:#e0dcc2;font-size:10px;gap:8px}.world-meta .divider{background:#e3c27c6b}.world-meta .live-dot{background:#79d4ae}
body:not([data-view=map]) .page-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0;border:0}
.content-page{min-height:calc(var(--game-height,100dvh) - 230px);padding-top:23px}
.map-layout{position:relative;display:block}.map-card{height:calc(var(--game-height,100dvh) - 305px);min-height:510px;background:#176879;border:8px solid #4a2c1b;border-radius:0;box-shadow:0 0 0 1px #edc47c,0 0 0 4px #23170f,0 9px 24px #001a2580;overflow:hidden}.map-card:after{content:'';position:absolute;inset:0;pointer-events:none;border:2px solid #cfa65f;box-shadow:inset 0 0 0 2px #122e2f88,inset 0 0 25px #04384466}
.map-toolbar .segmented,.map-toolbar .icon-button,.map-controls{background:linear-gradient(#26190c44,#26190c55),var(--timber) center/300px;border:1px solid #d7b36a;border-radius:2px;box-shadow:0 3px 8px #03222f88}.map-toolbar button,.map-controls button{color:#ffe5ae}.map-toolbar .segmented button.active{color:#fff2c2;background:#177664b0}.map-region{color:#e2dcac;opacity:.58;font:27px var(--title);text-shadow:0 2px #082c3b}.map-region small{font:8px var(--font-body);letter-spacing:2.4px;margin-top:7px}.map-legend{font-size:9px;color:#fff0c4}.map-controls button{font-size:20px}.map-compass{color:#ebd58b;opacity:.7}.chart-overview-wrap{background:#142c29f2;border:3px solid #7c572b;box-shadow:0 0 0 1px #e9c17b,0 3px 12px #001e29a1}.chart-overview-wrap>span{font-size:7px;color:#ebd49a}
.island-detail{position:absolute;right:22px;top:80px;width:260px;max-height:calc(100% - 105px);background:var(--paper) center/cover;border:4px solid #76552b;box-shadow:0 0 0 1px #edce90,0 8px 22px #062b3588;color:#492c17;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#9d6d34 #e0be80;border-radius:2px}.island-art{height:145px}.detail-cover{width:100%;height:100%;object-fit:cover}.island-art .tag{background:#164b47ed;color:#ffdc95;border:1px solid #dfb56b;font-size:9px;padding:6px 9px}.detail-body{padding:18px}.detail-body h2{font:31px/1.1 var(--title);color:#4d2d15}.coordinate{font-size:9px;color:#8c5c2c;letter-spacing:1px}.captain-stamp{color:#70512c;font-size:11px}.detail-body .ship-tokens{gap:6px;margin:12px 0}.detail-body .ship-token{background:#84531f0d;border:1px solid #a87e3e66;padding:3px;color:#513113}.detail-body .ship-token .atlas-token{width:55px;height:53px}.detail-body .ship-token strong{font:18px var(--font-body)}.detail-body .text-button,.detail-body .island-stat-icons{color:#644422}.detail-body .protection{color:#346047}.detail-body .primary{margin-top:12px;width:100%;font-size:13px}.detail-body .troop-tokens{color:#60431f}.guest-callout .starting-kit{color:#62401d}.guest-callout small{color:#76542e}
.scene-banner{position:relative;min-height:174px;margin:0 0 23px;padding:24px 30px;border:4px solid #63411f;border-radius:1px;box-shadow:0 0 0 1px #e2b76c,0 5px 16px #001c2566;overflow:hidden}.scene-banner:before{background-image:linear-gradient(90deg,#062b31b3 0%,#09343f40 52%,#062b3112 90%),var(--scene);background-position:center 55%;background-size:cover}.scene-banner:after{content:'';position:absolute;inset:6px;border:1px solid #f4d98b77;pointer-events:none;z-index:-1}.scene-banner>span{color:#ffdc92;font:9px var(--font-body);letter-spacing:2px;text-shadow:0 1px 3px #08262a}.scene-banner h3{font:43px/1.08 var(--title);color:#fff0c0;margin:7px 0;text-shadow:0 3px 5px #052128}.scene-banner p{color:#fff0cd;font:13px/1.5 var(--font-body);text-shadow:0 2px 4px #06272a}
.primary{position:relative;min-height:40px;border:1px solid #ffe3a2;border-radius:2px;background:linear-gradient(#efcd84,#c58c3c);box-shadow:inset 0 1px #fff6c680,inset 0 -3px #8e581f80,0 2px 4px #0b1e2066;color:#402811;font:16px/1.3 var(--font-body);letter-spacing:.2px;text-shadow:0 1px #ffe3a380;padding:10px 18px}.primary:hover{background:linear-gradient(#ffe3a3,#e3b15c);color:#31200f;border-color:#fff4cf}.primary:disabled{color:#624723;background:linear-gradient(#cbb68a,#b9a273);border-color:#bea16b;box-shadow:inset 0 1px #f5e0b233;opacity:.76}
.secondary{border:1px solid #c79f60;background:#153f3d55;color:#ffdc9a;border-radius:2px;font-size:12px;min-height:36px}.secondary:hover{background:#20725e88;border-color:#efc681;color:#ffedbb}.text-button{color:#f5ce83;font-size:12px}.text-button:hover{color:#ffe7b2;background:#a97e2f1f}.icon-button{background:linear-gradient(#35230f66,#24180c88),var(--timber) center/300px;color:#ffe0a0;border:1px solid #cda15b;border-radius:2px}
input,select,textarea{border:1px solid #bf9859;border-radius:2px;background:#092e35;color:#fff0cd;font:14px/1.4 var(--font-body)}label{color:#e6d6b0;font-size:12px}input:focus,select:focus,textarea:focus{outline:2px solid #f0c779;outline-offset:1px}
.content-intro{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;gap:15px}.content-intro h3{font:27px var(--title);color:#ffe1a4}.content-intro p{font-size:12px}.plan-shortcut{float:right;margin:1px 0 0 10px}.support-heading{font:29px var(--title);color:#ffe1a4;margin:23px 0 16px}
.illustrated-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.building-card.illustrated-card{padding:0;position:relative;border:5px solid #513219;border-radius:2px;box-shadow:0 0 0 1px #dcb46b,0 6px 12px #001c2970;overflow:visible;background:var(--paper) center/cover}.building-card .card-painting{border:0;border-bottom:3px solid #ae7d3c}.card-info{position:relative;padding:19px 18px 18px;background:var(--paper) center/cover;color:#503017}.card-info:before{content:'';position:absolute;inset:6px;pointer-events:none;border:1px solid #9d6f354d}.card-info h3{font:29px/1.15 var(--title);color:#543217;margin:0 45px 12px 0;min-height:33px}.card-info .level{right:15px;top:16px;font:20px var(--font-body);color:#734e23;padding:4px 7px;border:1px solid #a2773b80;background:#ffe8ae88;box-shadow:0 2px 3px #71471f22}.card-info .level small{font-size:10px;color:#967445}.card-info .level svg{width:14px;height:14px}.card-info .costs{display:flex;flex-wrap:wrap;gap:9px;color:#67461e;font-size:12px;margin:14px 0 10px}.card-info .costs svg{width:16px;height:16px}.card-info .costs .missing{color:#a43724;font-weight:600}.card-info .duration{color:#6b532e;font-size:11px;margin-bottom:14px}.card-info p,.card-info details p{color:#644525;font-size:12px}.card-info button{width:100%;font-size:15px;min-height:38px}.card-info .secondary{color:#6b4e26;border-color:#9e753d;background:#bea56c33}.card-info .card-explanation{top:auto;bottom:80px;right:13px}.card-info .card-explanation summary{color:#755022;border-color:#ab7e3f66;background:#fae4b166}.card-info .ship-strength{color:#704b21;font-size:11px;gap:9px}.card-info input{background:#ffedc4;color:#51351d;border-color:#aa7b3c}.card-info form{margin-top:14px}.legacy-building{display:block;width:100%;height:auto;aspect-ratio:1.33;object-fit:cover;border-bottom:3px solid #ae7d3c}
.queue{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:14px 18px;margin:0 0 20px;border:1px solid #d7ad64;background:linear-gradient(100deg,#07665bd9,#17423fdd),var(--timber) center/500px;color:#e9e2b9;box-shadow:0 3px 7px #07252a44;border-radius:1px;font-size:12px}.queue strong{color:#ffe0a0}.queue time{white-space:nowrap;color:#ffdf9c;font-variant-numeric:tabular-nums}
.ship-cards .card-painting{aspect-ratio:1.2}.ship-cards .card-info h3{font-size:32px}.ship-cards form input{font-size:15px;width:75px}.ship-cards .level{font-size:20px}
.progress-cards,.troop-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.progress-card,.troop-card{position:relative;display:grid;grid-template-columns:38% minmax(0,1fr);gap:0;padding:0;border:4px solid #67451f;box-shadow:0 0 0 1px #ddb56d,0 5px 13px #00212a66;background:var(--paper) center/cover;color:#50351e;overflow:hidden;border-radius:1px}.progress-card>img,.troop-card>img{width:100%;height:100%;min-height:255px;max-height:390px;object-fit:contain;background:radial-gradient(ellipse,#dca84c33,#a3752322);padding:14px;border-right:1px solid #b2884a80;filter:drop-shadow(0 3px 2px #75541a26)}.progress-card>div,.troop-card>div{padding:22px 18px;min-width:0}.progress-card h3,.troop-card h3{color:#523318;font:29px/1.1 var(--title);margin-bottom:13px;padding-right:30px}.progress-card p,.troop-card p{color:#654c29;font-size:12px;line-height:1.65}.progress-card .level,.troop-card .level{font:16px var(--font-body);color:#805a2b;right:14px;top:15px}.progress-card .costs,.troop-card .costs,.troop-card .ship-strength,.training-estimate{color:#6b4a23;font-size:11px}.progress-card .duration{color:#775831}.troop-card input{background:#ffedc3;color:#50331a;border-color:#a4783b}.troop-card label{color:#6c4a26}.troop-card .ship-strength svg{width:16px;height:16px}.progress-card button,.troop-card button{font-size:15px}.progress-card .costs .missing,.troop-card .costs .missing{color:#a43827}
.activity-bar{display:flex;align-items:center;gap:16px;margin-top:25px;padding:14px 20px;min-height:64px;background:linear-gradient(90deg,#0b4e46b8,#173b31bb),var(--timber) center/500px;border:3px solid #64421e;box-shadow:0 0 0 1px #cfa463,0 5px 12px #00242c55;border-radius:1px;color:#efddb1}.activity-title svg{width:25px;height:25px;color:#efc574}.activity-detail{font-size:12px;color:#d7d7b8}.activity-detail strong{color:#ffe0a2}.activity-detail time{color:#ffe7b0}.activity-bar .badge{background:#debc7433;color:#ffdc99;border:1px solid #b6975b55;border-radius:2px;font-size:11px}.activity-bar>.text-button{font-size:12px}.activity-bar.under-attack{border-color:#b66d39;background:#633225e6}
.painted-guest-card{position:relative;display:grid;grid-template-columns:53% minmax(0,1fr);min-height:440px;overflow:hidden;border:6px solid #5c3b1f;box-shadow:0 0 0 1px #e9bd70,0 9px 25px #00232c88;background:var(--paper) center/cover;margin:0 0 25px}.painted-guest-art{width:100%;height:100%;object-fit:cover;min-height:440px}.painted-guest-copy{padding:38px 30px;color:#513119;background:linear-gradient(90deg,#f1d59b99,#f1d59b22)}.painted-guest-copy .eyebrow{font-size:9px;letter-spacing:2px;color:#85602e}.painted-guest-copy h3{font:43px/1.1 var(--title);color:#513119;margin:15px 0}.painted-guest-copy p{font:16px/1.7 var(--font-body);color:#72512b}.painted-guest-kit{display:flex;gap:12px;margin:25px 0}.painted-guest-kit>span{flex:1;text-align:center}.painted-guest-kit img{width:55px;height:55px;object-fit:contain;display:block;margin:0 auto 6px}.painted-guest-kit b{font:22px var(--font-body);display:block;color:#5e3a19}.painted-guest-kit small{font-size:10px;color:#896332}.painted-guest-copy>.primary{width:100%;margin-top:18px}
.fleet-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 24px}.fleet-overview-card{display:flex;align-items:center;gap:9px;padding:15px 12px;background:linear-gradient(130deg,#074c48e6,#102e30f0);border:2px solid #a77b3c;box-shadow:0 0 0 1px #2b1b12,0 4px 10px #001e2866;min-width:0}.fleet-overview-card>img{width:62px;height:65px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 4px 3px #06272a)}.fleet-overview-card>div{min-width:0}.fleet-overview-card strong{display:block;font:29px/1 var(--font-body);color:#ffe1a0}.fleet-overview-card span{display:block;font:17px/1.2 var(--title);color:#f6dfaa;margin-top:5px}.fleet-overview-card small{display:none}.fleet-overview-card.has-threats{background:#683026e8;border-color:#e89556}
.painted-fleet-row{display:grid;grid-template-columns:138px minmax(180px,.9fr) minmax(190px,1.25fr) minmax(110px,.6fr);align-items:center;gap:20px;padding:15px 20px 15px 0;margin-bottom:20px;border:4px solid #59391e;box-shadow:0 0 0 1px #ddb26a,0 6px 12px #00212b66;border-radius:1px;background:var(--paper) center/cover;color:#55391d}.fleet-painting{position:relative;align-self:stretch;min-height:160px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#094c59b0,#1a9a9b44),url('/art/legacy/flotten.webp') center/cover;isolation:isolate;border-right:2px solid #ac7f42}.fleet-painting>img{width:145px;height:145px;object-fit:contain;filter:drop-shadow(0 6px 3px #042c34)}.fleet-mission-ribbon{position:absolute;bottom:0;left:0;right:0;text-align:center;background:#164c42ed;color:#ffe2a0;font:16px var(--title);padding:7px}.fleet-unknown-flag{position:absolute;top:5px;left:6px;background:#1e2d25;color:#f8d791;border:1px solid #c99d50;padding:2px 6px}.fleet-order h3{display:flex;align-items:center;gap:7px;font:27px var(--title);color:#5f381c;margin:0 0 10px}.fleet-order h3 svg{width:20px;height:20px}.fleet-captain{display:flex;align-items:center;gap:7px;font-size:11px;color:#78552d}.fleet-captain>img{width:29px;height:29px;object-fit:cover;border:1px solid #a77c39;border-radius:50%}.fleet-captain small{display:block}.painted-ship-tokens{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}.painted-ship-token{display:flex;align-items:center;gap:4px;color:#674320}.painted-ship-token>img{width:34px;height:32px;object-fit:contain}.painted-ship-token>strong{font:17px var(--font-body)}.painted-ship-token>small{display:none}.fleet-order .troop-tokens{color:#745027;margin-top:8px}.fleet-cargo{display:flex;gap:8px;font-size:11px;margin-top:7px;color:#67431d}.fleet-cargo>span{display:flex;align-items:center;gap:3px}.fleet-cargo img{width:24px;height:24px;object-fit:contain}.fleet-route{min-width:0;color:#67451f;font-size:12px}.fleet-route-port{display:flex;align-items:center;gap:7px;line-height:1.5}.fleet-route-port b{overflow-wrap:anywhere}.fleet-route .destination{justify-content:flex-end;text-align:right}.fleet-port-marker{font-size:20px;color:#98713b}.voyage-progress{margin:22px 9px;height:7px;background:#8b6c3b30;border:1px solid #936d33;border-radius:0;overflow:visible}.voyage-progress>span{position:relative;display:block;height:100%;min-width:0;background:linear-gradient(90deg,#08685a,#70bd9c)}.voyage-progress img{position:absolute;right:-17px;bottom:-5px;width:38px;height:35px;object-fit:contain;filter:drop-shadow(0 3px 2px #6b562655)}.fleet-time{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:7px;min-width:0;color:#79562b}.fleet-time>small{font-size:9px;letter-spacing:.5px;color:#8b683a}.fleet-time strong{font:21px var(--title);color:#5a3519}.fleet-time .text-button{color:#80592d;font-size:10px;display:flex;align-items:center;gap:4px}.fleet-time svg{width:16px;height:16px}.hostile-fleet.painted-fleet-row{border-color:#a75e2d}.hostile-fleet .fleet-mission-ribbon{background:#813d2d}.fleet-force-unknown{color:#87663b;font-size:10px}
.table-wrap{border:4px solid #56371c;box-shadow:0 0 0 1px #ddbb74;border-radius:1px}.painted-ranking-table{background:var(--paper) center/cover;color:#5d3d1e}.painted-ranking-table th{font-size:10px;letter-spacing:1px;background:#164d43;color:#ffe0a1;border-color:#97703a88;padding:15px 17px}.painted-ranking-table td{padding:14px 17px;border-color:#9b733b4d}.painted-ranking-table tr.me{background:#20836a22}.ranking-identity{display:flex;align-items:center;gap:12px;min-width:0}.ranking-portrait{display:block;flex-shrink:0;width:48px;height:48px;border:2px solid #b48b47;border-radius:50%;background:#214a42;padding:2px;box-shadow:0 2px 5px #5e3c1d3b}.ranking-portrait>img{width:100%;height:100%;object-fit:cover;border-radius:50%}.ranking-captain{font:23px var(--title);color:#623e1c;overflow-wrap:anywhere}.ranking-crew{display:block;font-size:10px;color:#8c6838;margin-top:3px}.ranking-you{font-size:9px;font-family:var(--font-body);color:#26765a;margin-left:5px}.ranking-rank{font:24px var(--font-body);color:#765123}.ranking-place-1 .ranking-rank{color:#b47e15}.ranking-score-value{font:21px var(--font-body);color:#6c481e}.ranking-scorebar{height:5px;width:100%;max-width:145px;margin-top:7px;background:#9a72322b;border:1px solid #ad854c55}.ranking-scorebar>span{display:block;height:100%;background:linear-gradient(90deg,#2b715b,#b6943f)}
.captain-standing{display:flex;align-items:center;gap:22px;padding:20px 28px;margin:0 0 23px;background:linear-gradient(100deg,#054c44e0,#17392fdd),var(--timber) center/500px;border:4px solid #7a5228;box-shadow:0 0 0 1px #e0bb70,0 5px 12px #00212a66}.standing-medallion{flex-shrink:0}.standing-portrait{width:80px;height:80px;object-fit:cover;border:3px solid #dcb563;border-radius:50%;padding:3px;background:#102e2c;box-shadow:0 0 0 1px #21170e}.standing-identity{flex:1;min-width:0}.standing-identity h3{font:31px var(--title);color:#ffe2a1}.standing-identity small,.standing-identity p{font-size:11px;color:#c8d4b8}.standing-position,.standing-score{padding-left:21px;border-left:1px solid #deb56866;text-align:center}.standing-position strong,.standing-score strong{display:block;font:35px var(--title);color:#ffe6ab}.standing-position small,.standing-score small{font-size:9px;letter-spacing:1px;color:#d3c493}.captain-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:25px}.captain-stats>div{position:relative;padding:18px 15px 18px 70px;background:#103f3fc9;border:1px solid #c8a15e;min-width:0}.captain-stat-art{position:absolute;width:45px;height:45px;left:12px;top:18px;background-size:400% 400%;background-image:url('/art/interface/navigation-atlas.webp')}.captain-stats strong{font:28px var(--font-body);color:#ffe0a2}.captain-stats small{font-size:11px;color:#c5d0b7}
.tab-strip{gap:7px;margin-bottom:18px;display:flex;flex-wrap:wrap}.tab-strip button{padding:10px 14px;background:linear-gradient(#3c281555,#23170e77),var(--timber) center/300px;border:1px solid #d1a35a77;border-radius:2px;color:#f0d7a8;font-size:12px}.tab-strip button.active{background:linear-gradient(#197366d9,#114c46e8),var(--timber) center/300px;border-color:#f2cb7b;color:#ffe6b0;box-shadow:inset 0 0 0 1px #174b36}.tab-strip button:hover{border-color:#f3d18f;color:#fff0bf}
.harbor-build-plan,.route-panel{background:var(--paper) center/cover;color:#59391d;border:4px solid #694620;box-shadow:0 0 0 1px #dab26b;padding:23px}.harbor-build-plan h3,.route-panel h3{color:#5c391b}.plan-panel-header{display:flex;align-items:center;gap:15px;border-bottom:1px solid #9f713d66;padding-bottom:16px;margin-bottom:17px}.plan-panel-art>img{width:77px;height:77px;object-fit:contain}.plan-panel-header h3{font:32px var(--title)}.plan-panel-header p{font-size:12px;color:#866338}.plan-count-seal{margin-left:auto;border:2px solid #b2843f;border-radius:50%;width:54px;height:54px;display:grid;place-items:center;font:20px var(--font-body);color:#835a28;background:#fbe4aa77}.build-plan{list-style:none;padding:0;margin:0 0 19px;display:flex;gap:12px;flex-wrap:wrap}.build-plan>li{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f7e3b37d;border:1px solid #b88f5280;min-width:200px;flex:1;color:#71522a}.plan-queue-position{font:24px var(--title);color:#96703c}.build-plan .plan-building-icon{width:47px;height:47px;flex-shrink:0}.plan-queue-label{font-size:12px}.plan-queue-label small{display:block;font-size:10px;color:#8e713f}.plan-paid{margin-left:auto;font-size:10px;color:#367357}.plan-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:24px}.plan-options .plan-building-card{display:flex;flex-direction:column;align-items:stretch;gap:0;border:2px solid #9b733c;box-shadow:0 0 0 1px #f3d699;background:#edcf9455;padding:0;overflow:hidden;min-width:0}.plan-building-icon{position:relative;width:100%;height:125px;background-size:300% 300%;border-bottom:1px solid #b28c4e;display:block;background-color:#e4cda0}.plan-building-icon img{width:100%;height:100%;object-fit:cover}.plan-building-level{position:absolute;right:5px;bottom:5px;padding:3px 5px;background:#173d32ed;border:1px solid #d5b36e;font-size:10px;color:#ffe1a4}.plan-building-info{padding:12px}.plan-building-info>strong{font:22px var(--title);color:#65401d;display:block}.plan-building-target{font-size:10px;color:#8c632d}.plan-building-info .costs{font-size:10px;color:#715026;gap:6px;flex-wrap:wrap;margin:9px 0}.plan-building-info .missing{color:#a33d26}.plan-building-info button{width:100%;font-size:12px;color:#5e401c;border-color:#9c7338;background:#d9bd7a44}.harbor-build-plan .queue{color:#fff1c5}.harbor-build-plan .community-actions{gap:9px}.harbor-build-plan .secondary,.route-panel .secondary{color:#6b4b20;border-color:#a27d42;background:#c4a56733}.harbor-build-plan .text-button,.route-panel .text-button{color:#815b25}.harbor-build-plan .rule-note,.route-panel p{color:#7f5e30}.rule-note{font-size:11px;line-height:1.7;color:#c9cbb5}
.route-journey{display:flex;align-items:center;gap:20px;padding:17px 5px;border-bottom:1px solid #a67d4266;margin-bottom:13px}.route-port{flex:1;display:flex;align-items:center;gap:10px;min-width:0}.route-port>img{width:65px;height:65px;object-fit:cover;border-radius:50%;border:2px solid #ad8443}.route-port b{font:23px var(--title);color:#65401c;overflow-wrap:anywhere}.route-port small{display:block;font-size:9px;color:#96723d}.route-vessel{position:relative;flex:0 1 190px;text-align:center;min-width:0}.route-vessel>img{width:90px;height:70px;object-fit:contain}.route-waterline{height:4px;background:repeating-linear-gradient(90deg,#267864 0 9px,transparent 9px 13px);width:100%;margin-top:-10px}.route-status-pips{display:flex;justify-content:center;gap:6px;margin-top:13px}.route-status-pips i{width:7px;height:7px;border:1px solid #a98243;background:#9b793b22;border-radius:50%}.route-status-pips i.complete{background:#3e8568;border-color:#2d6852}.route-progress-summary{color:#805c2d;font-size:11px;margin:13px 0}.route-manifest{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.route-manifest-fleet,.route-manifest-cargo{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.route-manifest img{width:37px;height:37px;object-fit:contain}.route-manifest span{display:flex;gap:5px;align-items:center;color:#724d23;font-size:12px}.route-input-ship{width:48px;height:42px;object-fit:contain;display:block;margin-bottom:5px}
.empty{background:linear-gradient(#064f47b3,#0f3939b3),var(--timber) center/600px;border:2px solid #bb8c46;border-radius:1px;padding:35px 25px;color:#e8d6b0}.empty h3{font:33px var(--title);color:#ffe2a0}.empty p{color:#c6d5be;margin-top:10px}
dialog{background:linear-gradient(#102f2be0,#092b2cf2),var(--timber) center/500px;border:5px solid #765025;border-radius:2px;box-shadow:0 0 0 1px #eac17b,0 25px 80px #03151be6;color:#f3e1b6}dialog::backdrop{background:#001c26b8;backdrop-filter:blur(5px)}.modal-top h2{font:34px/1.1 var(--title);color:#ffe1a4}.modal-inner>p{color:#d7d8bd;font-size:13px}.modal-inner label{color:#dfd5b4}.recovery-code{background:var(--paper) center/cover;color:#553318;border:1px dashed #d2a24d;font-size:17px}.toast{background:var(--paper) center/cover;color:#50341c;border:2px solid #9e753b;box-shadow:0 3px 15px #05242b88}.toast.error{color:#8a3921}
/* Avatar selection uses full portraits and a genuinely scrollable gallery. */
.avatar-dialog{width:min(900px,calc(100vw - 28px));max-width:900px;max-height:90dvh;padding:0;overflow:hidden}.avatar-dialog .modal-inner{padding:25px}.avatar-dialog .modal-top{margin-bottom:19px;align-items:center}.avatar-dialog .modal-top .eyebrow{font-size:8px;color:#d3bd8a;letter-spacing:1.7px;display:block;margin-bottom:9px}.avatar-dialog .modal-top h2{font-size:33px}.avatar-dialog #avatar-form{display:block}.avatar-picker-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}#avatar-preview{display:flex;align-items:center;gap:13px}#avatar-preview>img{width:65px;height:65px;object-fit:cover;border-radius:50%;border:2px solid #dcb46e;box-shadow:0 0 0 3px #c8ad731f}#avatar-preview strong{display:block;font:26px var(--title);color:#ffe0a2}#avatar-preview small{display:block;margin-top:5px;font-size:11px;color:#c2d3bb}.avatar-filters{display:flex;gap:5px;flex-wrap:wrap}.avatar-filters button{padding:9px 12px;font-size:11px;border:1px solid #cfac67;background:#143b35;color:#e4d4ac;border-radius:2px}.avatar-filters button.active{color:#4b3116;background:#edc681;border-color:#ffe0a0}.avatar-gallery{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:10px;max-height:44dvh;overflow-y:auto;padding:6px;margin:0;border:0;scrollbar-color:#b99a5b #0b2b34;scrollbar-width:thin}.avatar-choice{display:block;position:relative;margin:0!important;cursor:pointer;border:2px solid #a7823f66;border-radius:2px;background:#092e30;overflow:hidden;min-width:0}.avatar-choice img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}.avatar-choice span{display:block;padding:6px 3px;text-align:center;color:#ddceaa;font-size:9px;line-height:1.25}.avatar-choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.avatar-choice:hover{border-color:#c9d7a0}.avatar-choice.selected{border-color:#ffe3a0;box-shadow:0 0 0 2px #edc47c40}.avatar-choice.selected:after{content:'✓';position:absolute;right:3px;top:3px;background:#edc57a;color:#244235;border-radius:50%;width:19px;height:19px;font:bold 12px/19px var(--font-body);text-align:center;pointer-events:none}.avatar-choice:focus-within{outline:2px solid #f5e3b5;outline-offset:2px}.avatar-choice.selected span{color:#ffe8ae;background:#d6b47725}.avatar-picker-footer{display:flex;gap:14px;align-items:center;border-top:1px solid #d7b16c77;padding-top:17px;margin-top:17px}.avatar-picker-footer>span{font-size:11px;color:#d0ccb0;white-space:nowrap}.avatar-picker-footer .form-error{flex:1;font-size:11px;margin:0}.avatar-picker-footer button{font-size:16px;white-space:nowrap}
#sidebar-close{display:none}.sidebar-backdrop{position:fixed;inset:0;z-index:55;background:#021c26bd;border:0;border-radius:0;backdrop-filter:blur(3px)}
@media(min-width:1700px){:root{--deck-sidebar:292px}.sidebar .brand{font-size:34px}.sidebar .brand>span>span{font-size:40px}.brand-crest{width:98px;height:105px}.sidebar #navigation .nav-item{font-size:17px;min-height:49px}.sidebar #navigation .nav-item .painted-icon{width:47px;height:47px}.resource strong{font-size:28px}.resource-icon{width:55px;height:50px}.topbar{min-height:165px}.header-ship .ship-miniature{width:44px;height:48px}.header-ship strong{font-size:24px}#harbor-summary{flex-basis:380px}.illustrated-cards{gap:25px}.scene-banner{min-height:200px}}
@media(max-width:1280px){:root{--deck-sidebar:232px}.sidebar{padding:14px 14px 19px}.brand-crest{width:74px;height:84px}.sidebar .brand{font-size:31px}.sidebar .brand>span>span{font-size:36px}.sidebar #navigation .nav-item{font-size:14px;min-height:43px;padding-left:5px;gap:7px}.sidebar #navigation .nav-item .painted-icon{width:38px;height:38px}.sidebar .brand small{font-size:7px}.topbar{gap:10px 16px;padding:10px 18px 13px;margin:0 -18px;grid-template-columns:minmax(190px,1fr) auto auto}.current-island select{font-size:24px}.header-world-badge{font-size:8px;padding:7px}.captain-label{max-width:115px}.captain-label strong{font-size:21px}.captain-portrait{width:57px;height:57px}main#workspace{padding-left:18px;padding-right:18px}.resource-icon{width:37px;height:39px}.topbar .resource{gap:5px;padding:8px 7px 10px}.resource strong{font-size:22px}.resource small,.resource .rate,.resource .resource-label{font-size:8px}.island-command-strip{gap:8px}.topbar .resources{gap:6px;flex-basis:320px}#harbor-summary{flex:0 0 345px}.header-ship .ship-miniature{width:30px;height:36px}.header-ship{gap:3px;padding:3px!important}.header-ship strong{font-size:20px}.header-ship small{font-size:7px}.header-army{min-width:59px;padding:1px 3px}.header-army .troop-tokens img{width:17px;height:29px}.header-army .troop-tokens span{font-size:10px}#header-status{flex-basis:100px;padding:5px;gap:5px}#header-status svg{width:18px;height:18px}#header-status strong{font-size:9px}#header-status small{font-size:8px}.scene-banner h3{font-size:40px}.card-info{padding:17px 14px}.card-info h3{font-size:27px}.fleet-overview-card>img{width:45px;height:55px}.fleet-overview-card{padding:13px 8px;gap:6px}.fleet-overview-card span{font-size:16px}.painted-fleet-row{grid-template-columns:112px minmax(145px,.8fr) minmax(160px,1fr) 100px;gap:13px;padding-right:13px}.fleet-painting>img{width:120px;height:120px}.fleet-order h3{font-size:24px}.plan-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1080px){:root{--deck-sidebar:210px}.sidebar{padding-left:10px;padding-right:12px}.sidebar #navigation .nav-item{font-size:14px;gap:5px;padding-right:6px}.sidebar #navigation .nav-item .painted-icon{width:34px;height:36px}.brand-crest{width:65px;height:78px}.sidebar .brand{font-size:29px}.sidebar .brand>span>span{font-size:33px}.sidebar .brand small{font-size:6px;letter-spacing:1.6px}.nav-group-label{font-size:7px;letter-spacing:1.4px}.world-label{font-size:8px;letter-spacing:1.4px}.topbar{grid-template-columns:minmax(180px,1fr) auto;min-height:159px}.header-world-badge{display:none}.topbar #account{grid-column:2}.captain-label{max-width:128px}.island-command-strip{flex-wrap:wrap;row-gap:19px}.topbar .resources{flex:1 1 310px}#harbor-summary{flex:1 1 295px}#header-status{flex:1 1 100%;min-height:26px;justify-content:flex-start;padding:5px 8px}#header-status svg{width:16px;height:16px}#header-status strong{font-size:10px}#header-status small{display:inline;margin-left:8px;font-size:9px}.map-card{height:calc(var(--game-height,100dvh) - 352px);min-height:470px}.page-heading h1{font-size:38px}.page-heading{padding-top:18px;padding-bottom:16px}.view-emblem .painted-icon{width:55px;height:55px}.world-meta{font-size:9px}.world-meta .divider,#server-clock{display:none}.illustrated-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ship-cards{grid-template-columns:1fr}.ship-cards .illustrated-card{display:grid;grid-template-columns:41% minmax(0,1fr)}.ship-cards .card-painting{height:100%;aspect-ratio:auto;border-bottom:0;border-right:3px solid #a87b3c}.ship-cards .card-info{padding:23px}.ship-cards .card-info h3{font-size:34px}.ship-cards .card-info .level{font-size:20px}.progress-cards,.troop-cards{grid-template-columns:1fr}.progress-card>img,.troop-card>img{min-height:210px;max-height:300px}.fleet-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-overview-card>img{width:60px;height:60px}.fleet-overview-card{gap:12px}.painted-fleet-row{grid-template-columns:105px minmax(0,1fr) 115px;gap:14px}.fleet-painting{grid-row:1/3}.fleet-order{grid-column:2}.fleet-time{grid-column:3;grid-row:1/3}.painted-fleet-row .fleet-route{grid-column:2;grid-row:2}.fleet-route-port{font-size:11px}.fleet-route .voyage-progress{margin:18px 7px}.captain-standing{padding:19px;gap:15px}.standing-position,.standing-score{padding-left:13px}.standing-score strong{font-size:29px}.standing-position strong{font-size:29px}.standing-portrait{width:65px;height:65px}.standing-identity h3{font-size:28px}.captain-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){:root{--deck-sidebar:192px}.sidebar{padding-left:8px;padding-right:10px}.sidebar #navigation .nav-item{font-size:14px;min-height:42px;padding-left:3px;gap:4px}.sidebar #navigation .nav-item .painted-icon{width:32px;height:34px}.sidebar .brand{font-size:27px}.sidebar .brand>span>span{font-size:31px}.brand-crest{width:59px;height:72px}.sidebar-section{margin-left:5px;margin-right:5px}.sidebar-section .eyebrow{font-size:7px}.my-islands button{font-size:10px}.my-islands small{font-size:8px}.captain-label{display:none}.captain-portrait{width:52px;height:52px}.topbar{padding:10px 14px 12px;margin:0 -14px;gap:10px;grid-template-columns:minmax(0,1fr) auto}main#workspace{padding-left:14px;padding-right:14px}.current-island select{font-size:25px}.current-island>span{width:35px;height:35px}.current-island>span svg{width:25px;height:25px}.current-island small{font-size:7px;letter-spacing:1px}.island-command-strip{gap:20px 8px}.topbar .resources{flex-basis:100%;gap:8px}.topbar .resource{min-height:61px;padding:7px 10px 10px;gap:7px}.resource-icon{width:39px;height:39px}.resource strong{font-size:24px}.resource small,.resource .rate,.resource .resource-label{font-size:8px}#harbor-summary{flex:1 1 295px;min-height:55px}#header-status{flex:0 1 115px;min-height:55px;justify-content:center}#header-status small{display:block;margin:4px 0 0;font-size:8px}#header-status strong{font-size:10px}.header-ship .ship-miniature{width:33px;height:38px}.header-ship strong{font-size:21px}.header-army .troop-tokens img{width:20px;height:31px}.header-army{min-width:67px}.header-ship small{font-size:7px}.page-heading h1{font-size:34px}.page-heading .eyebrow{font-size:7px;letter-spacing:1.4px}.view-emblem .painted-icon{width:49px;height:49px}.world-meta{font-size:8px;max-width:90px;line-height:1.5;justify-content:flex-end;flex-wrap:wrap}.map-card{height:calc(var(--game-height,100dvh) - 415px);min-height:450px}.island-detail{right:16px;width:218px;top:80px}.island-art{height:120px}.detail-body{padding:14px}.detail-body h2{font-size:27px}.detail-body .ship-token .atlas-token{width:43px;height:44px}.detail-body .primary{font-size:12px}.scene-banner{min-height:160px;padding:22px}.scene-banner h3{font-size:36px}.scene-banner p{font-size:12px}.painted-guest-card{grid-template-columns:1fr;min-height:0}.painted-guest-art{height:230px;min-height:230px}.painted-guest-copy{padding:25px}.painted-guest-copy h3{font-size:35px}.painted-guest-kit{margin:18px 0}.painted-ranking-table th,.painted-ranking-table td{padding:13px 10px}.ranking-portrait{width:39px;height:39px}.ranking-captain{font-size:21px}.ranking-identity{gap:8px}.ranking-score-value{font-size:18px}.captain-standing{flex-wrap:wrap;gap:13px}.standing-identity{min-width:calc(100% - 100px)}.standing-position,.standing-score{flex:1;padding-top:8px;border-top:1px solid #deb56855;border-left:0}.route-journey{gap:10px}.route-port{flex-direction:column;text-align:center}.route-port>img{width:52px;height:52px}.route-port b{font-size:22px}.route-vessel{flex-basis:120px}.avatar-gallery{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){.shell{display:block}.sidebar{display:none;position:fixed;z-index:65;top:0;left:0;bottom:0;width:272px;max-width:calc(100vw - 60px);height:var(--game-height,100dvh);padding:18px 18px 20px;border-right:8px solid #362115;box-shadow:10px 0 45px #02161be0;overscroll-behavior:contain}.sidebar.open{display:flex}.sidebar:after{position:fixed;left:259px;width:11px;background-size:11px 44px}.sidebar .brand{display:flex!important;font-size:34px;flex-direction:row;gap:7px;align-items:center;text-align:left;padding-bottom:18px;margin-top:8px}.sidebar .brand>span>span{font-size:38px;letter-spacing:4px}.sidebar .brand-crest{width:81px;height:90px}.sidebar .brand small{font-size:6px;letter-spacing:1.4px;white-space:nowrap;margin-top:8px}.sidebar .world-label{display:flex!important;font-size:9px;margin-bottom:10px}.sidebar #navigation .nav-item{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;min-height:47px;padding:3px 10px 3px 5px;gap:10px;font-size:16px}.sidebar #navigation .nav-item .nav-label{font-size:16px}.sidebar #navigation .nav-item .painted-icon{width:43px;height:43px}.nav-group-label{font-size:8px;margin:13px 10px 4px}.sidebar .sidebar-section{display:flex!important;margin:22px 8px 10px}.sidebar-section .eyebrow{font-size:8px}.sidebar .my-islands{display:block!important}.my-islands button{font-size:12px;padding:9px 8px}.my-islands small{font-size:9px}.sidebar-bottom>.nav-item{flex-direction:row!important;font-size:11px!important}.sidebar .legal-links{display:flex!important;font-size:9px}.sidebar-bottom svg{display:block!important}
 main#workspace{padding:0 12px 20px}.topbar{grid-template-columns:34px minmax(0,1fr) auto;gap:10px 9px;margin:0 -12px;padding:9px 12px 12px;min-height:217px;position:sticky;top:0;z-index:40;background:linear-gradient(90deg,#1b100a38,#28160e50),var(--timber) center/420px}.topbar #mobile-menu{display:grid;place-items:center;grid-column:1;grid-row:1;width:33px;height:37px;padding:4px;background:#0c514cd9;border:1px solid #e4b76a;color:#ffe6aa;font-size:20px}.topbar .current-island{grid-column:2;grid-row:1;gap:0}.current-island>span{display:none}.current-island small{font-size:6px;letter-spacing:1px;margin:0 0 4px}.current-island select{max-width:100%;font-size:24px;padding-right:16px;line-height:1.1}.topbar #account{grid-column:3;grid-row:1;gap:6px}.captain-portrait{width:48px;height:48px;padding:3px;box-shadow:0 0 0 1px #1a291e,0 0 0 2px #c99d58,0 3px 7px #130a0799}.captain-label{display:none}.captain-button{gap:3px}.captain-button:after{font-size:13px;margin:0}.topbar .account>.primary{font-size:13px;min-height:34px;padding:7px 8px}.topbar .account>.text-button{font-size:10px;padding:4px}.header-world-badge{display:none}.player-menu{width:280px;top:calc(100% + 13px)}.player-menu>button{font-size:13px;min-height:45px}.player-menu-header strong{font-size:24px}.island-command-strip{grid-column:1/-1;grid-row:2;gap:20px 7px;padding-top:15px}.topbar .resources{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex:1 1 100%;width:100%;margin:0}.topbar .resource{min-height:60px;gap:4px;padding:7px 6px 9px}.resource-icon{width:32px;height:36px}.resource strong{font-size:20px;letter-spacing:-.4px}.resource small{gap:3px;margin-top:5px;font-size:7px}.resource .rate,.resource small .resource-label{font-size:7px}.inventory-section-label{font-size:7px;top:-12px;left:3px;letter-spacing:1.2px}#harbor-summary{flex:1 1 245px;min-height:49px;padding:2px;gap:0}.header-ship{gap:3px;padding:2px 3px!important}.header-ship .ship-miniature{width:27px;height:33px}.header-ship strong{font-size:18px}.header-ship small{display:none}.header-army{min-width:65px;padding:1px 3px}.header-army .troop-tokens img{width:16px;height:27px}.header-army .troop-tokens span{font-size:10px}.header-army .troop-tokens{gap:3px}.header-army small{display:none}#header-status{flex:0 1 95px;min-height:49px;padding:5px;gap:4px}#header-status svg{width:17px;height:17px}#header-status strong{font-size:8px}#header-status small{font-size:7px;line-height:1.35}.page-heading{padding:17px 0 14px;gap:10px;margin:0 0 18px}.page-heading h1{font-size:33px}.page-heading .eyebrow{font-size:6px;letter-spacing:1.3px;margin-bottom:4px}.view-emblem .painted-icon{width:50px;height:50px}.world-meta{font-size:7px;max-width:76px;gap:4px}.map-layout{display:flex;flex-direction:column;gap:18px}.map-card{height:calc(var(--game-height,100dvh) - 365px);min-height:390px;border-width:5px;box-shadow:0 0 0 1px #edc47c,0 0 0 2px #23170f,0 7px 20px #001a2580}.map-card:after{border-width:1px}.map-toolbar{top:12px;left:12px;right:12px}.map-toolbar .segmented button{width:34px;height:31px}.map-toolbar .icon-button{width:36px;height:36px}.map-region{font-size:23px;top:75px;left:20px;right:20px}.map-region small{font-size:6px;letter-spacing:2px}.map-controls{left:11px;bottom:46px}.map-legend{bottom:16px;left:11px;gap:8px}.map-legend span{font-size:7px}.chart-overview-wrap{right:11px;bottom:43px;border-width:2px}.island-detail{position:relative;top:auto;right:auto;width:100%;max-height:none;display:grid;grid-template-columns:120px minmax(0,1fr);border-width:3px}.island-art{height:100%;min-height:240px}.detail-body{padding:16px 13px}.detail-body h2{font-size:28px}.island-art .tag{left:6px;top:8px;font-size:7px;padding:5px}.detail-body .ship-token .atlas-token{width:42px;height:42px}.detail-body .ship-token strong{font-size:16px}.detail-body .primary{font-size:13px}.content-page{padding-top:21px;min-height:calc(var(--game-height,100dvh) - 270px)}.scene-banner{min-height:148px;padding:21px;margin-bottom:22px;border-width:3px}.scene-banner h3{font-size:34px;margin:7px 0}.scene-banner>span{font-size:7px;letter-spacing:1.8px}.scene-banner p{font-size:12px;line-height:1.4}.scene-banner:before{background-image:linear-gradient(90deg,#062b31b3,#09343f22 80%),var(--scene)}.content-intro{align-items:center;gap:10px;margin-bottom:15px}.content-intro h3{font-size:25px}.content-intro .secondary{font-size:10px;padding:8px}.plan-shortcut{font-size:10px;margin-bottom:12px}.illustrated-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.building-card.illustrated-card{border-width:3px}.card-info{padding:13px 10px}.card-info h3{font-size:24px;min-height:52px;margin-right:0;margin-bottom:9px}.card-info .level{right:6px;top:-24px;font-size:14px;padding:3px 5px;background:#f4d393;border-color:#a47736;box-shadow:0 2px 4px #75511b66}.card-info .level small{font-size:8px}.card-info .costs{font-size:10px;gap:5px;margin:10px 0}.card-info .costs svg{width:13px;height:13px}.card-info .duration{font-size:9px;gap:4px;margin-bottom:11px}.card-info button{font-size:12px;padding:9px 5px;min-height:35px}.card-info .card-explanation{right:5px;bottom:62px}.card-info:before{inset:4px}.ship-cards{grid-template-columns:1fr}.ship-cards .illustrated-card{grid-template-columns:42% minmax(0,1fr)}.ship-cards .card-info{padding:18px 13px}.ship-cards .card-info h3{min-height:0;font-size:30px;margin:0 0 14px}.ship-cards .card-info .level{top:7px;right:7px;font-size:14px}.ship-cards .card-info .ship-strength{font-size:10px;gap:6px}.ship-cards form input{width:57px;font-size:13px}.ship-cards form button{font-size:13px}.ship-cards .card-painting{background-size:300% 300%;border-width:2px}.queue{font-size:10px;padding:12px;gap:10px;margin-bottom:17px;flex-wrap:wrap}.queue time{font-size:11px}.progress-cards,.troop-cards{gap:18px}.progress-card,.troop-card{grid-template-columns:34% minmax(0,1fr);border-width:3px}.progress-card>div,.troop-card>div{padding:19px 13px}.progress-card h3,.troop-card h3{font-size:27px;padding-right:15px}.progress-card p,.troop-card p{font-size:11px}.progress-card>img,.troop-card>img{min-height:250px;max-height:330px;padding:6px}.progress-card .level,.troop-card .level{font-size:12px;top:8px;right:9px}.progress-card .costs,.troop-card .costs{font-size:10px;gap:6px}.progress-card button,.troop-card button{font-size:14px}.activity-bar{padding:12px;gap:10px;min-height:62px;margin-top:22px;flex-wrap:wrap;border-width:2px}.activity-title{gap:8px}.activity-title svg{width:23px;height:23px}.activity-bar .badge{font-size:10px}.activity-detail{font-size:11px;order:3;flex-basis:100%;gap:9px}.activity-bar>.text-button{font-size:11px;margin-left:auto}
 .fleet-overview{gap:11px;margin-bottom:22px}.fleet-overview-card{padding:12px 8px;gap:5px}.fleet-overview-card>img{width:46px;height:50px}.fleet-overview-card strong{font-size:25px}.fleet-overview-card span{font-size:17px;line-height:1.1}.painted-fleet-row{grid-template-columns:94px minmax(0,1fr);padding:0;border-width:3px;gap:0}.fleet-painting{grid-row:1/4;min-height:230px}.fleet-painting>img{width:105px;height:130px}.fleet-mission-ribbon{font-size:14px;padding:7px 2px}.fleet-order{grid-column:2;padding:16px 12px 5px}.fleet-order h3{font-size:27px;margin-bottom:8px}.fleet-captain{font-size:10px}.fleet-captain img{width:25px;height:25px}.painted-ship-tokens{gap:5px}.painted-ship-token>img{width:30px;height:27px}.painted-ship-token>strong{font-size:15px}.painted-fleet-row .fleet-route{grid-column:2;grid-row:2;padding:12px;font-size:10px}.fleet-route-port{font-size:10px;gap:5px}.voyage-progress img{width:32px;height:30px}.fleet-time{grid-column:2;grid-row:3;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding:0 12px 15px;gap:6px}.fleet-time>small:first-child{display:none}.fleet-time strong{font-size:20px}.fleet-time .text-button{margin-left:auto}.painted-guest-card{border-width:4px}.painted-guest-art{height:215px;min-height:215px}.painted-guest-copy{padding:24px}.painted-guest-copy h3{font-size:35px}.painted-guest-copy p{font-size:14px}.painted-guest-copy>.primary{font-size:19px;min-height:44px}.painted-guest-kit img{width:50px;height:50px}.painted-guest-kit small{font-size:10px}
 .captain-standing{padding:17px;gap:12px}.standing-portrait{width:65px;height:65px}.standing-identity h3{font-size:29px}.standing-position strong,.standing-score strong{font-size:29px}.standing-position small,.standing-score small{font-size:8px}.ranking-tabs{gap:6px}.ranking-tabs button{font-size:11px;padding:8px 10px}.painted-ranking-table thead{display:none}.painted-ranking-table,.painted-ranking-table tbody,.painted-ranking-table tr{display:block}.painted-ranking-table tr{position:relative;display:grid;grid-template-columns:43px minmax(0,1fr) auto;padding:10px;border-bottom:1px solid #936e385e;align-items:center;gap:5px 7px}.painted-ranking-table td{display:block;border:0;padding:3px 0}.painted-ranking-table td:first-child{grid-column:1;grid-row:1/3;text-align:center}.painted-ranking-table td:nth-child(2){grid-column:2;grid-row:1}.painted-ranking-table td:nth-child(3){grid-column:2;grid-row:2;font-size:10px;color:#93713a}.painted-ranking-table td:nth-child(3):before{content:attr(data-label) ': ';font-size:9px}.painted-ranking-table td:nth-child(4){grid-column:3;grid-row:1/3;text-align:right;min-width:48px}.painted-ranking-table td:nth-child(5){grid-column:3;grid-row:3}.ranking-identity{gap:7px}.ranking-portrait{width:38px;height:38px}.ranking-captain{font-size:22px}.ranking-crew{font-size:8px;max-width:150px;overflow-wrap:anywhere}.ranking-you{font-size:8px}.ranking-score-value{font-size:18px}.ranking-rank{font-size:21px}.ranking-scorebar{max-width:65px;min-width:48px}.captain-stats{gap:10px}.captain-stats>div{padding:14px 10px 14px 56px}.captain-stat-art{width:36px;height:36px;left:9px;top:16px}.captain-stats strong{font-size:25px}.captain-stats small{font-size:10px}
 .harbor-build-plan,.route-panel{padding:16px;border-width:3px}.plan-panel-header{gap:10px}.plan-panel-art>img{width:60px;height:60px}.plan-panel-header h3{font-size:29px}.plan-panel-header p{font-size:10px}.plan-count-seal{width:43px;height:43px;font-size:16px;flex-shrink:0}.plan-options{gap:11px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}.plan-building-icon{height:111px}.plan-building-info{padding:10px}.plan-building-info>strong{font-size:23px}.plan-building-info .costs{gap:4px;font-size:9px}.plan-building-info button{font-size:11px;padding:8px 5px}.plan-options .plan-building-card{border-width:1px}.route-port>img{width:45px;height:45px}.route-port b{font-size:20px}.route-vessel{flex-basis:85px}.route-vessel>img{width:70px;height:60px}.route-journey{gap:8px}.route-manifest{gap:13px}.route-manifest img{width:30px;height:30px}.route-manifest span{font-size:10px}.build-plan>li{min-width:100%}.route-input-ship{width:38px;height:34px}
 dialog{max-width:calc(100vw - 22px);border-width:3px}.modal-inner{padding:23px}.modal-top h2{font-size:32px}.modal-inner label{font-size:12px}.avatar-dialog .modal-inner{padding:17px}.avatar-dialog .modal-top h2{font-size:28px}.avatar-picker-intro{align-items:flex-start;flex-direction:column;gap:15px}.avatar-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:41dvh}.avatar-picker-footer{flex-wrap:wrap;gap:8px}.avatar-picker-footer .form-error{flex-basis:60%}.avatar-picker-footer button{width:100%}#avatar-preview>img{width:56px;height:56px}.avatar-choice span{font-size:8px}.avatar-filters button{font-size:11px}.avatar-dialog .modal-top .eyebrow{font-size:7px;letter-spacing:1px}#sidebar-close{display:grid;position:absolute;right:9px;top:4px;color:#ffe0a2;width:28px;height:28px;padding:0;font-size:23px;z-index:2}
}
@media(max-width:390px){main#workspace{padding-left:10px;padding-right:10px}.topbar{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px;gap:10px 7px;grid-template-columns:31px minmax(0,1fr) auto}.topbar #mobile-menu{width:30px}.current-island select{font-size:22px}.current-island small{font-size:5px;letter-spacing:.8px}.captain-portrait{width:44px;height:44px}.topbar .resource{padding:7px 5px 9px;gap:3px}.resource-icon{width:28px;height:33px}.resource strong{font-size:19px}.resource .rate,.resource small .resource-label{font-size:6px}.resource small{gap:3px}#harbor-summary{flex-basis:230px}.header-ship .ship-miniature{width:24px;height:30px}.header-ship strong{font-size:17px}.header-ship{padding-left:2px!important;padding-right:2px!important}.header-army{min-width:60px;padding:1px 2px}.header-army .troop-tokens img{width:15px;height:26px}.header-army .troop-tokens span{font-size:9px}#header-status{flex-basis:88px;padding:4px}#header-status strong{font-size:8px}#header-status small{font-size:6px}.page-heading h1{font-size:31px}.view-emblem .painted-icon{width:45px;height:45px}.page-heading{gap:7px}.world-meta{max-width:68px;font-size:6px}.island-detail{grid-template-columns:109px minmax(0,1fr)}.detail-body h2{font-size:26px}.detail-body .ship-token .atlas-token{width:38px;height:38px}.illustrated-cards{gap:11px}.card-info{padding:12px 8px}.card-info h3{font-size:23px}.card-info button{font-size:11px}.ship-cards .card-info{padding:17px 11px}.ship-cards .card-info h3{font-size:28px}.fleet-order h3{font-size:25px}.painted-fleet-row{grid-template-columns:85px minmax(0,1fr)}.fleet-painting>img{width:95px}.fleet-captain{gap:4px}.avatar-dialog .modal-top h2{font-size:26px}.avatar-choice span{font-size:7px}}
@media(min-width:701px){.sidebar-backdrop{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Painted currency and corner fittings remain visible at every resolution. */
.costs img{display:block;width:22px;height:22px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 1px 1px #65421c33)}
.card-info .costs>span,.progress-card .costs>span,.troop-card .costs>span{display:flex;align-items:center;gap:4px}
.scene-banner{border-image:url('/art/interface/brass-frame.svg') 18 / 10px / 1px stretch}
.map-card{border-image:url('/art/interface/brass-frame.svg') 18 / 9px / 1px stretch}
.plan-count-seal{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;line-height:1}
.plan-count-seal small{font-size:8px;white-space:nowrap}
.plan-options .plan-building-card>button{margin:0 10px 10px;font-size:12px;min-height:35px;color:#61431f;background:#d4b77755;border-color:#aa7f3e}
.route-port{flex-direction:column;text-align:center;gap:5px}.route-port>span{font-size:8px;letter-spacing:1.3px;color:#9a7237}.route-port>strong{font:25px/1.1 var(--title);color:#65401c;overflow-wrap:anywhere}
.ranking-scorebar{display:block}.ranking-captain>strong{font-weight:400}
@media(max-width:700px){.costs img{width:18px;height:18px}.plan-building-info .costs img{width:16px;height:16px}.route-port>strong{font-size:20px}.plan-options .plan-building-card>button{font-size:11px;margin:0 8px 8px}}

.card-info button:disabled{opacity:1;color:#79572e;background:#b9975355;border-color:#9a71366b;box-shadow:none}
.header-ship .ship-miniature{filter:brightness(1.18) drop-shadow(0 3px 2px #001a23)}
@media(max-width:700px){.header-ship{flex-direction:column;gap:0;padding:1px 3px!important}.header-ship .ship-miniature{width:29px;height:27px}.header-ship strong{font-size:18px;line-height:1}.header-army{min-width:66px}.header-army .troop-tokens{gap:2px}.header-army .troop-tokens span{font-size:9px}.header-army .troop-tokens img{width:14px;height:25px}}

@media(max-width:700px){#harbor-summary{min-height:60px}.header-ship{gap:4px;padding-top:1px!important;padding-bottom:1px!important}.header-ship .ship-miniature{height:25px}.header-ship strong{line-height:22px}}
.route-create-panel{background:var(--paper) center/cover;border:4px solid #694620;box-shadow:0 0 0 1px #dab26b;padding:23px;color:#65431e}.route-create-panel summary{color:#603b19;font:27px var(--title)}.route-create-panel label{color:#755228}.route-create-panel input,.route-create-panel select{background:#fff0c9;color:#513519;border-color:#ac8142}.route-create-panel p,.route-create-panel .rule-note{color:#7a5a30}.route-create-panel form{margin-top:22px}.plan-rules,.ranking-rules{margin:18px 0;color:#ddc99f;font-size:12px}.plan-rules{color:#79552a}.plan-rules summary,.ranking-rules summary{cursor:pointer;padding:8px 0}.plan-rules p,.ranking-rules p{padding:10px 0}.trade-section-header{margin-top:30px}.trade-section-header h3{margin:0}.trade-section-header .eyebrow{color:#edca8b;font-size:9px}.trade-section-header .plan-count-seal{background:#164b40;color:#ffe0a4}
@media(max-width:700px){.route-create-panel{padding:17px;border-width:3px}.route-create-panel summary{font-size:25px}}

/* Dense controls stay close to the illustrations; help expands only when requested. */
.card-info .card-explanation{position:static;inset:auto;min-height:0;margin:0}
.card-info .card-explanation summary{position:absolute;right:14px;bottom:63px}
.card-info h3{padding-right:0}
body[data-view=island] .scene-banner{min-height:145px}
body[data-view=island] .content-intro{margin-bottom:14px}
body[data-view=island] .queue{padding-top:11px;padding-bottom:11px}
.painted-ranking-table table{background:transparent;color:#5d3d1e}
.painted-ranking-table th{background:#164d43;color:#ffe0a1}
.painted-ranking-table tbody td{background:transparent;color:#6a4725}
.ranking-captain strong{color:#623e1c}
.plan-rules summary,.plan-rules .rule-note{color:#765126}
.plan-count-seal strong{color:inherit;font-size:20px}.plan-count-seal small{color:inherit;font-size:9px}
.harbor-build-plan .plan-count-seal{color:#6c471f}
@media(max-width:700px){.card-info .card-explanation summary{right:7px;bottom:52px}body[data-view=island] .scene-banner{min-height:135px}.plan-count-seal small{font-size:8px}}

/* The command parchment has its own place beside the chart; it never hides behind the overview. */
@media(min-width:1081px){.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:19px;align-items:start}.island-detail{position:relative;top:auto;right:auto;width:auto;max-height:calc(var(--game-height,100dvh) - 305px);overflow-y:auto}.map-region{left:185px;right:20px;font-size:25px}}
@media(min-width:701px) and (max-width:1080px){.map-layout{display:flex;flex-direction:column;gap:20px}.island-detail{position:relative;top:auto;right:auto;width:100%;max-height:none;display:grid;grid-template-columns:180px minmax(0,1fr)}.island-art{height:100%;min-height:260px}.detail-body{padding:20px}.detail-body .ship-tokens{max-width:260px}.detail-body .primary{width:auto;min-width:210px}.map-region{left:180px;right:20px;font-size:25px}}
.header-ship .ship-miniature{mix-blend-mode:normal;background:#ddc28b;box-shadow:inset 0 0 0 1px #e4ba65;border-radius:2px;padding:2px}
.ranking-message,.painted-ranking-table .text-button{color:#765024;background:#caab6226;border-color:#a77e4044}
@media(max-width:700px){.header-ship .ship-miniature{padding:1px;background:#d5be8d}}
