/* Pearl-edged black lacquer surfaces; all geometry and interactions use the shared engine. */
html[data-premium]{--bg:#101416;--panel:#1b2327;--line:#3a4a4d;--text:#edf1ec;--dim:#acbabe;--ok:#c7e2df;--warn:#e5c69b;color-scheme:dark}
html[data-premium] body{background:#101416;--panel:#1b2327;--line:#3a4a4d;--dim:#acbabe;--ok:#c7e2df}
html[data-premium] button{background:#222d31;border-color:#48595e;color:#e1eeec}html[data-premium] button:hover:not(:disabled){border-color:#cee6e1;background:#2e3b40}
html[data-premium] button.primary,html[data-premium] .primary{background:#c7e2df;color:#13272a;border-color:#c7e2df}
html[data-premium] .lab-banner{background:#161f23;border-bottom:1px solid #3a4a4d;padding:13px 26px}
html[data-premium] .release-goal small{color:#b9d5d5;letter-spacing:.1em}html[data-premium] .release-goal strong{font-family:'AppleMyungjo','Batang',Georgia,serif;font-size:22px;font-weight:500}html[data-premium] .release-goal p{color:#c0cdd0;font-size:12px}
html[data-premium] .topbar{background:#101719;border-bottom:1px solid #35464b;height:78px;padding:8px 26px;gap:24px}.premium-wordmark{width:150px;height:60px;object-fit:contain;display:block}.premium-clock{font-variant-numeric:tabular-nums;color:#c7e2df;border-left:1px solid #58676b;padding-left:12px;font-size:12px;white-space:nowrap}
html[data-premium] .tabletop{max-width:1920px;grid-template-columns:minmax(235px,.85fr) minmax(520px,2.3fr) minmax(265px,1fr);gap:20px;padding:22px}
html[data-premium] .panel,html[data-premium] .opponent,html[data-premium] .tabletop>.player-board{background:#192226;border:1px solid #3a4a4d;border-radius:10px;box-shadow:0 3px 0 #0a1013,0 9px 25px #080d104d}
html[data-premium] .opponents{background:transparent;padding:0;border:0;box-shadow:none}
html[data-premium] .opponent{margin-top:12px;padding:16px}html[data-premium] .tabletop>.player-board{padding:18px;border-top:2px solid #c7e2df}
html[data-premium] .physical-table{background:radial-gradient(ellipse at 45% 20%,#36474e88,transparent 70%),#1a292e;border:10px solid #202b30;border-radius:20px;box-shadow:inset 0 0 0 1px #c7e2df99,inset 0 0 0 5px #172329,inset 0 0 0 6px #92adaa66,0 3px 0 #7e9796,0 7px 0 #162125,0 12px 0 #42565b,0 17px 0 #0c1519,10px 28px 40px #0006;padding:28px 15px 18px;gap:12px}
html[data-premium] .physical-table:before{border-color:#c7e2df33}html[data-premium] .table-inscription{color:#b4d3d1;font-size:7px;letter-spacing:2px}
html[data-premium] .physical-table>.panel{background:transparent;border:0;box-shadow:none}
html[data-premium] .camera-toolbar strong{font-size:21px;color:#e2eeec;font-family:'AppleMyungjo','Batang',Georgia,serif;font-weight:500}html[data-premium] .camera-toolbar small,html[data-premium] .camera-controls label{color:#a9bcc0}
html[data-premium] .camera-presets button[aria-pressed=true]{background:#c7e2df;color:#192b31;border-color:#c7e2df}
html[data-premium] .table-viewport{padding:25px 12px 30px}html[data-premium] .table-scene{padding-bottom:20px}
html[data-premium] .physical-table .tier{background:#20343a;border-color:#9abbbf66;box-shadow:2px 2px 0 #9cb1af,3px 4px 0 #20343a,4px 6px 0 #667e80,6px 9px 12px #0005}html[data-premium] .physical-table .tier b{color:#d3e7e2}
html[data-premium] .physical-table .card.affordable{border-color:#c7e2df;box-shadow:0 0 0 1px #c7e2df80,0 3px 0 #718f91,3px 7px 9px #00171da6}
html[data-premium] .physical-table .bank{border-top:1px solid #b4cfcf55}html[data-premium] .physical-table .bank .tray{background:#101a2077;border-color:#a8c5c344}html[data-premium] .sculpted-token{background:transparent;border-color:transparent}html[data-premium] .physical-table .sculpted-token:hover:not(:disabled){background:#c7e2df13;border-color:#c7e2df55}
html[data-premium] .physical-table .sculpted-token span,html[data-premium] .owned-token span{color:#dce9e6}html[data-premium] .personal-tokens{background:#101a1f66;border-color:#aec5c32a}html[data-premium] .owned-token{background:transparent}
html[data-premium] .board-turn{color:#c7e2df}html[data-premium] .character-caption small{color:#b7ced0}html[data-premium] .character-portrait{border-color:#bdd5d3}html[data-premium] .player-board>.section-head h2 span,html[data-premium] .opponent-name h2 span{color:#b2c5c8}
html[data-premium] .stack-card-summary{background:#1a3039f2;border-color:#c7e2df55;color:#eef4f1}html[data-premium] .travel-stack h4{color:#bcd3d5}html[data-premium] .gauge progress::-webkit-progress-value{background:#c7e2df}html[data-premium] .gauge progress::-moz-progress-bar{background:#c7e2df}
html[data-premium] .physical-table .noble-panel.city-victory-rail{grid-template-columns:1.25fr 1fr;gap:14px;align-items:stretch}html[data-premium] .city-reward-side>p{display:none}
html[data-premium] .physical-table .noble-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(75px,1fr));gap:8px;align-items:stretch;margin-top:10px}
html[data-premium] .relic-card{position:relative;display:block;width:100%;min-width:0;aspect-ratio:.88;padding:0!important;border:1px solid #91acaf;border-radius:6px;overflow:hidden;box-shadow:0 2px 0 #718e8b,0 7px 12px #0005;cursor:pointer;background:#17282c}
html[data-premium] .relic-card .relic-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-height:none}
html[data-premium] .relic-card .relic-copy{position:absolute;left:0;right:0;bottom:0;padding:26px 7px 43px;background:linear-gradient(transparent,#0c1a21f2 48%);color:#eef3e9;min-height:0}
html[data-premium] .relic-card .relic-copy strong{font-size:15px;font-family:'AppleMyungjo','Batang',Georgia,serif;font-weight:500;line-height:1.3}.relic-card .relic-copy small{display:none}
html[data-premium] .relic-card .relic-score{position:absolute;top:5px;left:5px;width:auto;display:flex;align-items:center;gap:2px;padding:2px 4px;background:#0b1720cc;border-radius:4px}
html[data-premium] .relic-score img{width:26px;height:26px;object-fit:contain}html[data-premium] .relic-score b{display:none}
html[data-premium] .relic-card .relic-cost{position:absolute;bottom:4px;left:3px;right:3px;display:block;padding:0;background:transparent;border:0}html[data-premium] .relic-cost>small{display:none}html[data-premium] .relic-cost>div{display:flex;gap:0;justify-content:center}html[data-premium] .relic-cost-icon{width:31%;max-width:38px;height:auto;object-fit:contain}
html[data-premium] .city-view-all{font-size:10px;padding:5px 0}html[data-premium] .victory-guide-side{padding-left:12px;border-color:#99b9b744}
html[data-premium] .victory-guide-cards{display:block;margin-top:10px}html[data-premium] .victory-guide-card{min-height:128px;aspect-ratio:1.65;background:#132129;border-color:#869fa3;color:#e4ece8;box-shadow:0 3px 0 #617c80}
html[data-premium] .victory-guide-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.17;filter:grayscale(.7)}html[data-premium] .victory-guide-card>span{position:relative;display:block;padding:15px;background:transparent}html[data-premium] .victory-guide-card strong{font-size:19px;font-family:'AppleMyungjo','Batang',Georgia,serif;font-weight:500}html[data-premium] .victory-guide-card small{font-size:11px;color:#d2dfdf;line-height:1.7}html[data-premium] .victory-guide-card em{color:#c7e2df;font-size:10px}
html[data-premium] .modal,html[data-premium] .character-picker,html[data-premium] .journey-guide{background:#19262b;color:#edf1ec;border-color:#8caeb1}html[data-premium] .modal::backdrop{background:#03090dd9;backdrop-filter:blur(4px)}html[data-premium] .character-picker-inner{background:#152126}html[data-premium] .character-options button{background:#213238;border-color:#627f80}html[data-premium] .character-picker h2{color:#edf1ec}html[data-premium] .character-options button>span:last-child{color:#c2d2d3}html[data-premium] .journey-guide h2,html[data-premium] .journey-guide small{color:#dfefea}
html[data-premium] .guide-focus{outline-color:#c7e2df!important;box-shadow:0 0 22px #a4d6d63d!important}html[data-premium] .token-model-dialog{background:radial-gradient(ellipse,#344b53,#111d24)}html[data-premium] .model-name,html[data-premium] .joker-model-choices legend{color:#daebe7}
html[data-premium] .model-choices button[aria-pressed=true],html[data-premium] .joker-model-choices button[aria-pressed=true]{background:#c7e2df;color:#15262c;box-shadow:none}html[data-premium] .joker-model-choices{border-color:#aecacb}
html[data-premium] .logs{background:#172126;border-color:#344a4e}html[data-premium] .premium-city-detail{width:min(480px,94vw)}html[data-premium] .premium-city-detail .relic-card{max-width:280px;margin:auto;aspect-ratio:1.1;min-height:230px}html[data-premium] .premium-city-detail .relic-copy strong{font-size:25px}html[data-premium] .premium-city-detail .relic-cost-icon{max-width:58px}html[data-premium] .premium-city-detail .relic-score img{width:42px;height:42px}
.premium-result>small{color:#b8d2d1}.premium-result h2{font-family:'AppleMyungjo','Batang',Georgia,serif;font-size:27px;font-weight:500;margin:10px 0}.premium-result .result-total{font-size:64px;color:#c7e2df;font-weight:650;letter-spacing:-3px;margin:18px 0}.premium-result .result-total span{display:block;font-size:13px;letter-spacing:0;color:#b4c7c8;font-weight:400}.premium-result dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.premium-result dl>div{border-top:1px solid #587173;padding-top:10px}.premium-result dt{font-size:12px;color:#b4c7c8}.premium-result dd{font-size:23px;margin:5px 0}.premium-link{display:block;text-align:center;padding:13px;border-radius:6px;border:1px solid #587173;margin-top:10px;text-decoration:none;color:#dce9e6}
html[data-premium] .victory-guide-card>span{width:100%;max-width:none;inset:auto}html[data-premium] .victory-guide-card strong{white-space:nowrap}
@media(max-width:1240px){html[data-premium] .tabletop{display:flex;flex-direction:column;padding:14px;gap:18px}html[data-premium] .right-column{order:0;position:static;width:100%}html[data-premium] .opponents{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px}html[data-premium] .opponents>.section-head{grid-column:1/-1}html[data-premium] .opponent{margin:0}html[data-premium] .table-scene{order:1;width:100%}html[data-premium] .tabletop>.player-board{order:2;position:static;width:100%}html[data-premium] .logs{order:3;width:100%}html[data-premium] .physical-table .card-row{justify-content:center}html[data-premium] .table-viewport{max-width:950px;margin:auto}html[data-premium] .camera-controls{margin-bottom:0}}
@media(max-width:620px){html[data-premium] .topbar{padding:9px 14px;height:auto;min-height:72px;flex-wrap:wrap;gap:10px}.premium-wordmark{width:110px;height:44px}html[data-premium] .header-tools{gap:5px}.header-tools button{padding:7px!important;font-size:11px}.premium-clock{font-size:11px}.turn-status{font-size:12px;gap:5px;order:3;flex-basis:100%;justify-content:center}.turn-status>b{font-size:14px}html[data-premium] .release-goal{padding:12px 16px}html[data-premium] .release-goal strong{font-size:19px}html[data-premium] .tabletop{padding:10px}html[data-premium] .camera-toolbar{gap:8px}html[data-premium] .camera-toolbar strong{font-size:17px}html[data-premium] .camera-controls{gap:10px}html[data-premium] .physical-table{border-width:6px;padding:25px 6px 10px;border-radius:12px;gap:7px}html[data-premium] .physical-table .noble-panel.city-victory-rail{grid-template-columns:1fr;gap:12px}html[data-premium] .victory-guide-side{padding:10px 0 0;border-left:0;border-top:1px solid #8caeb155}html[data-premium] .victory-guide-card{min-height:100px;aspect-ratio:3.4}html[data-premium] .victory-guide-card>span{padding:12px}html[data-premium] .physical-table .relic-card{min-width:0;width:100%;aspect-ratio:1}html[data-premium] .physical-table .card-row{gap:6px;grid-auto-rows:auto}html[data-premium] .physical-table .card{max-height:none}html[data-premium] .physical-table .tier{width:25px;min-width:25px;height:70px}html[data-premium] .physical-table .tier b{font-size:11px}html[data-premium] .table-viewport{padding:20px 0 26px}html[data-premium] .physical-table .bank-tokens{gap:5px}html[data-premium] .physical-table .sculpted-token span{font-size:7px}html[data-premium] .physical-table .sculpted-token{min-width:0}html[data-premium] .model-stage canvas{max-height:38dvh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:620px){html[data-premium] .table-viewport{perspective:none}html[data-premium] .physical-table{transform:none;width:100%}html[data-premium] .camera-controls,html[data-premium] .camera-presets{display:none}html[data-premium] .physical-table .bank{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}html[data-premium] .physical-table .bank>*{grid-column:1;grid-row:auto;min-width:0}html[data-premium] .physical-table .bank-tokens{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;width:100%}html[data-premium] .physical-table .bank-tokens button{width:100%;min-width:0}html[data-premium] .physical-table .bank .tray{min-height:44px}html[data-premium] .physical-table .relic-cost-icon{max-width:35px}html[data-premium] .physical-table .relic-card .relic-copy{padding-bottom:42px}}
html[data-premium] .victory-guide-card{display:block}
html[data-premium] .victory-guide-card>span{width:100%}
@media(min-width:621px){html[data-premium] .physical-table{transform:rotateX(var(--camera-tilt)) rotateZ(var(--camera-rotation)) scale(var(--camera-zoom)) scale(.82)}}
@media(max-width:620px){html[data-premium] .opponent .owned-token-shelf,html[data-premium] .player-board .owned-token-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}html[data-premium] .owned-token,html[data-premium] .opponent .owned-token{height:88px}html[data-premium] .owned-token span,html[data-premium] .opponent .owned-token span{font-size:10px;line-height:1.2;text-align:center;white-space:normal}html[data-premium] .physical-table .bank-tokens{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}html[data-premium] .physical-table .sculpted-token span{font-size:9px;line-height:1.2;white-space:normal;text-align:center}}
@media(min-width:621px) and (max-width:1240px){
  html[data-premium] .opponents{grid-template-columns:minmax(0,1fr)}
  html[data-premium] .opponents:has(> .opponent:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-premium] .opponents:has(> .opponent:nth-child(4)){grid-template-columns:repeat(3,minmax(0,1fr))}
  html[data-premium] .opponents:has(> .opponent:nth-child(3)) .owned-token-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){html[data-premium] .opponents{grid-template-columns:minmax(0,1fr)}}
.start-setup{width:min(780px,calc(100% - 32px));max-height:min(94dvh,850px);padding:0;border:1px solid #8aa5a8;border-radius:14px;background:#172328;color:#edf2ee;box-shadow:0 30px 100px #000b;overflow:auto}
.start-setup::backdrop{background:#050c10d9;backdrop-filter:blur(5px)}
.setup-inner{padding:clamp(22px,4vw,34px)}
.setup-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #88a8a849;padding-bottom:15px;color:#b6ced0;font-size:12px;letter-spacing:.12em}
.setup-header img{width:120px;max-height:50px;object-fit:contain;object-position:left center}
.setup-progress{display:flex;gap:8px;margin:20px 0 26px}.setup-progress span{flex:1;padding:9px 12px;border:1px solid #5e7778;border-radius:6px;color:#a7b7b8;font-size:12px;text-align:center}.setup-progress .current{background:#c6ddda;border-color:#c6ddda;color:#15262a;font-weight:800}.setup-progress .complete{color:#e5f3ec;border-color:#a2c2b8}
.setup-kicker{color:#a8c6c6;font-size:11px;letter-spacing:.14em;margin:0 0 9px}.start-setup h2{font-family:'AppleMyungjo','Batang',Georgia,serif;font-size:clamp(25px,3.2vw,34px);font-weight:500;line-height:1.25;color:#f1f3ec;margin:0 0 10px}.setup-lede{color:#bdcacc;font-size:14px;line-height:1.55;margin:0 0 20px}
.setup-player-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.setup-player{min-height:115px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;padding:18px;background:#203038;border:1px solid #526b70;text-align:left;border-radius:8px}.setup-player strong{font-size:21px;font-weight:650}.setup-player span{color:#bfd0d0;font-size:13px}.setup-player[aria-pressed="true"],.setup-goal[aria-pressed="true"]{border-color:#e2e6cd;background:#294149;box-shadow:inset 0 0 0 1px #c5e0d7}.setup-player:hover,.setup-goal:hover{border-color:#c1d6d2}
.setup-goal-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.setup-goal{position:relative;min-height:195px;padding:0;border:1px solid #526b70;border-radius:8px;background:#203038;overflow:hidden;text-align:left;display:flex;flex-direction:column}.setup-goal img{width:100%;height:78px;object-fit:cover;opacity:.82}.setup-goal>span{display:flex;flex-direction:column;gap:6px;padding:12px 13px;min-height:116px}.setup-goal strong{font-family:'AppleMyungjo','Batang',Georgia,serif;font-size:20px;font-weight:500}.setup-goal small{color:#bfcdd0;font-size:11px;line-height:1.5}.setup-goal b{font-size:12px;color:#d8ebe7;line-height:1.4;margin-top:auto}.setup-note{color:#9db0b2;font-size:11px;margin:12px 0 0}
.setup-error{min-height:20px;color:#ffb6a9;font-size:12px;margin:12px 0 0}.setup-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:7px}.setup-actions button{min-width:145px;min-height:43px}.setup-next{background:#c8dfdc;border-color:#c8dfdc;color:#172b2e;font-weight:800}.setup-next:disabled{opacity:.45}.setup-back{background:#203038}.setup-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;border-top:1px solid #88a8a849;margin-top:22px;padding-top:15px}.setup-links a{color:#bdd3d1;font-size:12px;text-decoration:underline;text-underline-offset:4px}.setup-links a:focus-visible{outline:2px solid #d0e5dc;outline-offset:4px}
@media(max-width:620px){.start-setup{width:calc(100% - 20px);max-height:94dvh}.setup-inner{padding:18px}.setup-progress{margin:16px 0 20px}.setup-player-options{gap:7px}.setup-player{min-height:94px;padding:10px}.setup-player strong{font-size:16px}.setup-player span{font-size:10px}.setup-goal-options{grid-template-columns:1fr;gap:7px}.setup-goal{min-height:0;flex-direction:row}.setup-goal img{width:90px;height:auto;min-height:89px}.setup-goal>span{min-height:0;gap:3px;padding:9px 10px}.setup-goal strong{font-size:17px}.setup-goal small{font-size:10px}.setup-goal b{font-size:11px}.setup-actions button{min-width:0;flex:1}.setup-links{gap:11px}.setup-links a{font-size:11px}}
.saved-games{margin-top:22px;padding-top:17px;border-top:1px solid #ffffff2b;display:grid;gap:9px;font-size:12px;color:#bfc9c5}
.saved-games strong{color:#fff;font-size:13px}
.saved-games a{display:block;color:#d4eee8;text-decoration:none;padding:9px 11px;border:1px solid #ffffff2b;border-radius:8px}
.saved-games a:hover{background:#ffffff10}
.saved-games p{margin:0;color:#9aa9a5}
