/* 2026 game shell. Native controls, labels and decisions keep their owners. */
:root{--renaissance-ink:#f0ede4;--renaissance-muted:#a8b3bc;--renaissance-gold:#ddbb7e;--renaissance-panel:#101c26;--renaissance-line:#d4b47740}
.world-layout{font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#0c1820;color:var(--renaissance-ink)}
.world-layout #world{image-rendering:auto}
.world-layout .world-resources{gap:10px}
.world-layout .world-resources>div{padding:12px 18px;min-width:104px;border:1px solid #d8c49a42;border-radius:14px;background:linear-gradient(140deg,#142530ed,#0b1720df);box-shadow:0 7px 25px #0003,inset 0 1px #ffffff0c;backdrop-filter:blur(18px)}
.world-layout .world-resources dt{font-size:10px;letter-spacing:.12em;color:#bdc8cf}
.world-layout .world-resources dd{font-family:Georgia,serif;font-size:25px;color:#f1d5a1;margin-top:4px}
.world-layout .world-minimap{border:1px solid #d8c49a55;border-radius:14px;overflow:hidden;background:#10202be8;padding:6px;box-shadow:0 10px 36px #0005}
.world-layout .world-minimap canvas{border-radius:8px}
.world-layout .game-settings-toggle{border:1px solid #d2b98570;border-radius:14px;background:linear-gradient(145deg,#20303c,#101c26);box-shadow:0 5px 18px #0003;color:#e4c898}
.world-layout :is(#notice,#save-status){font-family:inherit}
.world-layout #notice:not(:empty){padding:12px 20px;border-radius:12px;border-color:#cfb68055;background:#101e2bf2;backdrop-filter:blur(16px);font-size:13px;box-shadow:0 8px 28px #0004}
.world-layout :is(#campaign-dialog,.game-settings-dialog){border:1px solid #cfb68060;border-radius:20px;background:linear-gradient(145deg,#1b2c38,#101b25);color:#e9e8e2;box-shadow:0 30px 120px #0008;padding:30px;font-family:inherit}
.world-layout :is(#campaign-dialog,.game-settings-dialog)::backdrop{background:#06111bb8;backdrop-filter:blur(8px)}
.world-layout :is(#campaign-dialog,.game-settings-dialog) h2{font:500 28px/1.2 Georgia,serif;color:#f1d7a7;letter-spacing:-.02em}
.world-layout :is(#campaign-dialog,.game-settings-dialog) p{font:14px/1.6 system-ui,sans-serif;color:#bbc5cc}
.world-layout :is(#campaign-dialog,.game-settings-dialog) :is(button,select,input){min-height:42px;border-radius:9px;font:13px/1.4 system-ui,sans-serif}
.world-layout :is(#campaign-dialog,.game-settings-dialog) :is(select,input){background:#0e1a23;color:#ebe9df;border:1px solid #b9b6a34d;padding:9px 12px}
.world-layout :is(#campaign-dialog,.game-settings-dialog) button{background:#243744;color:#eee9d9;border:1px solid #aebece4a;padding:10px 18px}
.world-layout :is(#campaign-dialog,.game-settings-dialog) button:hover:not(:disabled){background:#344b59;border-color:#d7bc80}
.world-layout :is(button,select,input,a,summary):focus-visible{outline:3px solid #e4c185;outline-offset:3px}
.world-layout #campaign-duel-status{inset:32% max(18px,calc((100vw - 700px)/2));border:1px solid #cfb68070;border-radius:18px;background:linear-gradient(145deg,#182d39f7,#0b1925f7);box-shadow:0 24px 90px #0008;backdrop-filter:blur(18px);padding:26px 30px;color:#eee9dc}
.world-layout #campaign-duel-status button{min-height:44px;border-radius:9px;padding:12px 22px;background:#dcbd81;color:#152028;border:1px solid #f8dba3;font-weight:700}
.world-layout :is(#city.living-city-panel,#dungeon.living-dungeon){border-color:#c7b07d66;border-radius:18px;background:#111e28f5;box-shadow:0 24px 100px #0007;color:#eee9df;backdrop-filter:blur(18px)}
.world-layout :is(#city.living-city-panel,#dungeon.living-dungeon) h2{font-family:Georgia,serif;color:#eed3a1;letter-spacing:-.02em}
.world-layout #deck-editor.deck-gallery{inset:18px;border-radius:20px;background:#101c27f8;border-color:#c8ad7855;box-shadow:0 24px 100px #0009}
.world-layout .deck-gallery-top{padding:22px 28px 18px;background:linear-gradient(110deg,#1b2e3b,#101c27);border-bottom-color:#d0b58136}
.world-layout .deck-gallery-top h2{font:500 28px/1.2 Georgia,serif;color:#f1d4a2;letter-spacing:-.025em}
.world-layout .deck-toolbar{gap:8px}
.world-layout #deck-editor :is(button,input,select){border-radius:9px;font-family:inherit}
.world-layout .deck-toolbar button{min-height:40px;padding:10px 16px;background:#1d303d;border-color:#b8bdab40;color:#dbe0dd}
.world-layout .deck-toolbar [aria-pressed="true"]{background:#d4b57d;color:#15212a;border-color:#e4cfac}
.world-layout #deck-editor input{background:#0c1924;border-color:#a9b4b74a;padding:12px 16px;color:#f0eee4;font-size:14px}
.world-layout .deck-gallery :is(.deck-gallery-count,.deck-gallery-summary,.deck-summary){color:#c4cdd0}
/* The illustrated tabletop replaces the old masonry, with readable glass HUD. */
.duel.duel-living-enabled{--info:248px;--gold:#dfbf86;--ink:#f0eee5;--edge:#b49b6b;inset:12px;border:1px solid #c6a97370;border-radius:18px;background:#0b151f;box-shadow:0 24px 100px #000b;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
.duel.duel-living-enabled .duel-arena{background:#102c36;isolation:isolate}
.duel.duel-living-enabled .duel-living-arena-floor{image-rendering:auto;object-fit:fill;filter:none}
.duel.duel-living-enabled .duel-living-arena-effects{image-rendering:auto}
.duel.duel-living-enabled .duel-player{grid-template-columns:58px minmax(0,1fr);background:transparent}
.duel.duel-living-enabled .duel-opponent{border-bottom:1px solid #d0b57e66}
.duel.duel-living-enabled .duel-field{background:none;padding:14px 18px 10px;gap:8px}
.duel.duel-living-enabled .duel-zone h4{padding:4px 9px;border:1px solid #c9b27e35;border-radius:6px;background:#0c1b25bd;color:#e0d2b8;font:550 calc(10px * var(--game-text-scale,1))/1.25 system-ui,sans-serif;letter-spacing:.08em;backdrop-filter:blur(8px)}
.duel.duel-living-enabled .duel-zone .duel-card-row{padding-top:8px;gap:12px}
.duel.duel-living-enabled .duel-empty{margin:12px 4px;color:#bdc8c8;font-size:calc(11px * var(--game-text-scale,1));text-shadow:0 1px 3px #000}
.duel.duel-living-enabled .duel-identity{background:linear-gradient(145deg,#1d303b,#101d28);border-color:#c9b27e3b;color:#eee8d8;padding:14px 12px}
.duel.duel-living-enabled .duel-inspection{background:radial-gradient(ellipse at 50% 20%,#213944,#0d1a25 70%);border-color:#b2a78642}
.duel.duel-living-enabled .duel-inspection-placeholder{color:#d4c092}
.duel.duel-living-enabled .duel-identity :is(button,summary){border-radius:8px;background:#1b303d;border-color:#c5b37a55}
.duel.duel-living-enabled .duel-phase-track{background:#101e28c9;border-right:1px solid #c9b27e35;padding:8px 4px;backdrop-filter:blur(12px)}
.duel.duel-living-enabled .duel-phase-step{color:#9fadb6;border-radius:6px;margin-bottom:3px}
.duel.duel-living-enabled .duel-phase-step.active,.duel.duel-living-enabled .duel-phase-step[aria-current="step"]{background:#c7ab7040;color:#f5ddb1;border-color:#cfb58177}
.duel.duel-living-enabled .duel-card-face{box-shadow:0 4px 10px #0008;border-color:#c4b087;border-radius:7px}
.duel.duel-living-enabled .duel-card.selectable .duel-card-face{outline-color:#eed4a1;box-shadow:0 0 0 3px #bd935830,0 6px 20px #0009}
.duel.duel-living-enabled>.duel-hand{padding:10px 16px;background:linear-gradient(180deg,#1d2e38,#111e28);border-color:#ccb08080}
.duel.duel-living-enabled .duel-actions{padding:14px 18px;background:linear-gradient(110deg,#1b2c38,#111c27);border-color:#b7a57866;gap:12px}
.duel.duel-living-enabled .duel-actions button{min-height:42px;padding:10px 20px;border-radius:9px;box-shadow:0 5px 15px #0003}
.duel.duel-living-enabled .duel-actions :is(.primary,.duel-continue){background:linear-gradient(120deg,#e4c48a,#cfa86d);color:#15212a;border-color:#f0d59e;font-weight:700}
.duel.duel-living-enabled .duel-actions h3{color:#f2d8aa;font-size:calc(13px * var(--game-text-scale,1))}
@media(min-width:1600px){.duel.duel-living-enabled{--info:280px;inset:18px}.duel.duel-living-enabled .duel-field{padding:18px 28px}}
@media(max-width:900px){.duel.duel-living-enabled{--info:190px;inset:6px;border-radius:12px}.duel.duel-living-enabled .duel-field{padding:12px 10px 8px}.duel.duel-living-enabled .duel-player{grid-template-columns:48px minmax(0,1fr)}.duel.duel-living-enabled .duel-phase-step{font-size:8px}.duel.duel-living-enabled .duel-actions{padding:10px 12px}.world-layout #deck-editor.deck-gallery{inset:8px;border-radius:14px}.world-layout .deck-gallery-top{padding:16px}}
@media(max-width:650px){.world-layout .world-resources>div{min-width:74px;padding:9px 12px;border-radius:11px}.world-layout .world-resources dd{font-size:21px}.world-layout .world-minimap{border-radius:11px}.world-layout :is(#campaign-dialog,.game-settings-dialog){padding:20px;border-radius:14px}.world-layout #campaign-duel-status{inset:28% 16px;padding:20px}.duel.duel-living-enabled{inset:3px;border-radius:9px}.duel.duel-living-enabled .duel-player{grid-template-columns:40px minmax(0,1fr)}.duel.duel-living-enabled .duel-field{padding:8px 6px;gap:4px}.duel.duel-living-enabled .duel-zone h4{font-size:8px;padding:3px 5px}.duel.duel-living-enabled .duel-zone .duel-card-row{gap:7px;padding-top:5px}.duel.duel-living-enabled .duel-actions button{min-height:40px;padding:8px 12px}.duel.duel-living-enabled .duel-actions{padding:9px}.duel.duel-living-enabled .duel-identity{padding:8px}.duel.duel-living-enabled .duel-phase-track{padding:5px 2px}}
@media(prefers-reduced-motion:reduce){.world-layout :is(button,a,input,select){scroll-behavior:auto;transition:none!important}}
/* Responsive tabletop: the painting belongs to the fields, never the phase rail. */
.duel.duel-living-enabled{--duel-phase-width:calc(66px * var(--game-text-scale,1) + 22px)}
.duel.duel-living-enabled .duel-player{grid-template-columns:var(--duel-phase-width) minmax(0,1fr)}
.duel.duel-living-enabled .duel-living-arena-floor{left:var(--duel-phase-width);right:0;width:calc(100% - var(--duel-phase-width));height:100%;object-fit:contain}
.duel.duel-living-enabled .duel-field{padding:24px 26px 22px;gap:8px}
.duel.duel-living-enabled .duel-opponent{border-bottom:0}
.duel.duel-living-enabled .duel-phase-track{padding:8px 5px;overflow-x:hidden;scrollbar-gutter:stable}
.duel.duel-living-enabled .duel-phase-step{gap:5px;margin-bottom:2px;padding:2px;font-size:calc(9px * var(--game-text-scale,1));line-height:1.15}
.duel.duel-living-enabled .duel-phase-name{max-width:none;min-width:0;flex:1;overflow-wrap:anywhere}
.duel.duel-living-enabled .duel-phase-symbol{width:22px;height:22px}
.duel.duel-living-enabled .duel-phase-owner{font-size:calc(9px * var(--game-text-scale,1));height:16px;line-height:16px}
.duel.duel-living-enabled .duel-phase-step.current{background:#c7ab7040;color:#f5ddb1;box-shadow:inset 0 0 0 1px #cfb58177}
@media(min-width:1600px){.duel.duel-living-enabled{--duel-phase-width:calc(74px * var(--game-text-scale,1) + 22px)}.duel.duel-living-enabled .duel-field{padding:26px 32px}.duel.duel-living-enabled .duel-phase-step{font-size:calc(10px * var(--game-text-scale,1));gap:6px}}
@media(max-width:900px){.duel.duel-living-enabled{--duel-phase-width:calc(58px * var(--game-text-scale,1) + 20px)}.duel.duel-living-enabled .duel-field{padding:20px 18px}.duel.duel-living-enabled .duel-phase-track{padding:6px 3px}.duel.duel-living-enabled .duel-phase-step{font-size:calc(8px * var(--game-text-scale,1));gap:3px}.duel.duel-living-enabled .duel-phase-symbol{width:19px;height:19px}}
@media(max-width:640px){.duel.duel-living-enabled{--duel-phase-width:calc(43px * var(--game-text-scale,1) + 17px)}.duel.duel-living-enabled .duel-field{padding:14px 12px;gap:5px}.duel.duel-living-enabled .duel-phase-track{padding:5px 2px;scrollbar-gutter:auto}.duel.duel-living-enabled .duel-phase-step{font-size:calc(7.5px * var(--game-text-scale,1));gap:3px;padding:1px}.duel.duel-living-enabled .duel-phase-symbol{width:17px;height:17px}.duel.duel-living-enabled .duel-phase-symbol svg{width:13px;height:13px}.duel.duel-living-enabled .duel-phase-owner{font-size:7px;height:13px;line-height:13px}.duel.duel-living-enabled .duel-field .duel-zone:first-child{padding-left:0}}
@media(max-width:640px){.duel.duel-living-enabled .duel-player-header{flex-wrap:wrap;row-gap:3px}.duel.duel-living-enabled .duel-life{font-size:clamp(17px,calc(17px * var(--game-text-scale,1)),23px);max-width:100%;white-space:normal}.duel.duel-living-enabled .duel-player-name{max-width:100%;overflow-wrap:anywhere}}
