/* Test theme: supplied town illustration, dark neutral surfaces, original card-type accents. */
:root{--night:#0d1118;--panel:#151c26;--panel-2:#1d2633;--ink:#edf1f6;--muted:#a6b2c1;--line:#b2c8e124;--gold:#c0cede;--gold-bright:#f0d796;--shadow:0 16px 48px #0006}
body{background-color:#0d1118;background-image:linear-gradient(180deg,rgba(7,11,18,.64),rgba(7,11,18,.88)),url('assets/town-background.png');background-position:center;background-size:cover;background-attachment:fixed;color:var(--ink)}
.topbar{border-bottom:1px solid #b8cce52b}.topbar h1{font-family:inherit;letter-spacing:-.02em}
.brand-mark{background:#151e2b;border:1px solid #bacbe34d;box-shadow:none;border-radius:8px}
.turn-pill,.ghost-button,.secondary-button{background:#18212ddd;border:1px solid #91a9c638;color:#dce5ef;border-radius:8px;box-shadow:none}
.ghost-button:hover,.secondary-button:hover{background:#26374b;border-color:#a9bfd7;color:#edf3fb}
.turn-pill.active{border-color:#8aafcf;color:#d8eafb;box-shadow:none}
.primary-button,.end-turn-button,.weapon-action{background:#d1deeb;color:#142031;border:1px solid #e0eafa;box-shadow:0 3px 12px #0003;border-radius:8px}
.primary-button:hover,.end-turn-button:hover,.weapon-action:hover{background:#e8f1fa}
.fighter-panel,.combat-center{border:1px solid #96acc22b;border-radius:12px;box-shadow:0 8px 28px #0003;background:#101821ed;background-image:none}
.class-emblem{border:1px solid #9aafcb50;background:#172231;box-shadow:none;border-radius:10px}
.resource{background:#0b111bcc;border-radius:9px}.resource.energy{background:#202738;border-color:#bea36560}
.energy-orb{border-radius:50%;transform:none}.energy-orb.filled{background:#f1d486;box-shadow:0 0 5px #f1d48633}
.status-chip{border-radius:6px;background:#2d263d;border-color:#9881c044}
.battle-view-tabs66 button{color:#a8b6c7}.battle-view-tabs66 button[aria-pressed=true]{color:#edf4fc;border-color:#9bb9d7}
.weapon-slot{border:1px solid #829cba33;background:#0d1520bb;border-radius:8px}.versus-mark{background:#17212d;border-color:#8b9fb947;color:#c3d0de}
.battle-log{background:#0d1520;color:#c0cbd8;border:1px solid #8b9fb92b;border-radius:8px;box-shadow:none}
.battle-log .log-heading,.battle-log strong,.battle-log #log-list li strong{color:#e0e9f4}
.battle-log #log-list,.battle-log #log-list li,.battle-log #log-list li span{color:#b9c6d5}
.battle-log li{border-color:#a5b7cf1b}.battle-log .log-turn-divider{background:#17212c;color:#c5d7ec;border-color:#90a3bb30}
.game-card{border-radius:10px!important;border:1px solid var(--card-line)!important;background:linear-gradient(155deg,var(--card-wash),transparent 75%),#121b26!important;color:#e8edf5;box-shadow:0 6px 18px #0004}
.game-card .card-name{color:#f0f4fa;font-family:inherit}.game-card .card-text{color:#ccd6e3}.game-card .card-footer{color:#8b9aaf}
.game-card .card-type{color:var(--card-accent)}.game-card .card-cost{border:none;background:var(--card-accent);color:#101722}
.game-card .card-art-frame{background:#0e1722;border:1px solid #8eacc42b;border-radius:7px}
.game-card:not(:disabled){outline:none}.game-card:hover:not(:disabled){box-shadow:0 0 0 1px var(--card-accent),0 10px 24px #0005}
.game-card:disabled{opacity:.52;filter:saturate(.55)}.game-card.counter-available{outline:2px solid #72e2cd;outline-offset:1px}
.game-card::after{opacity:.08}
.game-dialog{background:#101822;border-color:#92a9c538;border-radius:14px;box-shadow:0 24px 80px #0008}
.dialog-card,.utility-card{background:#111a26;border-radius:12px}
.main-menu-card{background:linear-gradient(180deg,#0a111d77,#090f1ad9),url('assets/town-background.png') center 45%/cover;border-radius:14px}
.main-menu-heading{border-bottom:1px solid #a0b8d12e}.main-menu-heading h2{font-family:inherit;letter-spacing:.04em;color:#f0f4fc;text-shadow:0 2px 16px #0009}
.main-menu-grid button{background:#111d2ce0;border:1px solid #a4bbd442;border-radius:10px;box-shadow:0 6px 20px #0003;color:#ecf2f9}
.main-menu-grid button:hover,.main-menu-grid button:focus-visible{background:#21334aee;border-color:#bfd6f2a0;box-shadow:0 0 0 2px #9bb9d755}
button:focus-visible{outline:2px solid #a6c9ed;outline-offset:3px}.main-menu-card{border-color:#91abc43b}.main-menu-footer a{color:#bdccde}
.deck-choice,.deck-card-row,.deck-option label{background:#182230;border-color:#99b0c833;border-radius:9px}
.deck-choice:has(input:checked),.deck-option input:checked+label{background:#26364b;border-color:#bad0ea;outline-color:#bad0ea}
.deck-card-title strong{font-family:inherit}.deck-card-meta{color:#cbd9ec}.deck-card-row p{color:#bac8db}
.element-formula-guide,.choice-panel{background:#121d2b;border:1px solid #9eb4ce40;border-radius:12px}
.choice-card,.choice-option{background:#1d2a3b;border:1px solid #8ba8c344;border-radius:10px;color:#e2ecf8}
.choice-card:hover,.choice-option:hover{background:#283d56;border-color:#bad6f5}
.evidence67{background:#111b27;border-color:#92aac33a}.evidence-items67 section{background:#1c293b;border-color:#8aa4bf33}.evidence-items67 strong{color:#d9e7f9}
.chess-zone68{flex:0 0 100%;grid-column:1/-1;width:100%;min-width:0;margin-top:6px;padding:8px 10px;border:1px solid #9db6d43b;border-radius:9px;background:#13202c;box-sizing:border-box}
.chess-zone68 summary{cursor:pointer;font-size:12px;color:#dce9f8}.chess-zone68 p{font-size:11px;color:#b9cadc}
.chess-board68{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(340px,100%);aspect-ratio:1;margin:12px auto;border:1px solid #829abb;border-radius:7px;overflow:hidden;gap:2px;padding:3px;background:#101827;box-sizing:border-box}
.chess-cell68{position:relative;min-width:0;min-height:0;padding:0;border:1px solid transparent;border-radius:3px;background:#415066;color:#c8d7ec;aspect-ratio:1;opacity:1!important;filter:none!important;box-shadow:none}
.chess-cell68.dark{background:#263449}.chess-cell68 small{position:absolute;top:3px;left:4px;font-size:9px;color:#c4d2e2}.chess-cell68 span{font-size:clamp(22px,5vw,37px);line-height:1;display:block}
.chess-cell68.noble{color:#b998fc}.chess-cell68.red,.king-label68.red{color:#ffa09d}.chess-cell68.gold,.king-label68.gold{color:#ffe09a}.chess-cell68.white,.king-label68.white{color:#fff}.chess-cell68.blue,.king-label68.blue{color:#8cd6ff}
.chess-cell68.legal{border:2px solid #74d1c1;cursor:pointer;background:#2f635f}.chess-cell68.legal:hover{background:#43847a;box-shadow:inset 0 0 0 2px #b3ffed}.chess-cell68:focus-visible{outline:3px solid white;outline-offset:-4px}
.choice-options.is-chess68{display:block}.chess-choice68>p{font-size:12px;line-height:1.7;text-align:center;color:#b6c9df}.chess-extra68{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}.chess-extra68 button{min-height:40px;padding:8px 12px;flex:1 1 135px}.chess-extra68 small{display:block;font-size:11px;margin-top:3px}
.chess-zone68 .chess-board68{width:min(250px,100%)}
@media(min-width:721px){.combat-center[data-view66=log] .battle-log{box-shadow:0 0 0 1px #a5c3e670}}
@media(max-width:720px){
 .enemy-panel,.player-summary{flex-direction:row;align-content:flex-start}
 #player-panel>.hand-heading{background:#111b29;border-top:1px solid #8ca8c442;box-shadow:0 -6px 18px #0005}
 #player-hand{background:#101925;box-shadow:none}.hand-heading>span{color:#c0cede}.passive-details66>summary{color:#b8cade}
 .mobile-card-zoom66{background:#152235;border-color:#91aec6;border-radius:12px}.zoom-heading66{color:#d6e4f5}
 .player-panel>.choice-inspect65:not([hidden]){background:#172739}
 #player-hand>.game-card.mobile-selected66{outline-color:var(--card-accent)}
 .hand-heading #chess-king-move68{font-size:10px;padding:5px 7px;margin-left:auto}.hand-heading #end-turn-button{margin-left:auto}
 .chess-zone68{padding:6px 8px}.chess-zone68 summary{font-size:10px}.chess-choice68 .chess-board68{width:min(290px,100%);margin:8px auto}
}
