@font-face{font-family:'Duelverse Display';src:url('./assets/fonts/dolce-vita.ttf') format('truetype');font-display:swap;font-weight:400 800}
body.game-table{--dv-purple:#aa58ff;--dv-blue:#397bff;--dv-gold:#ffd787;--dv-line:#ab75ef45;--dv-panel:#100921;--gold:#ffd787;background-color:#050013}
.game-table>.duelverse-header{height:60px;min-height:60px;margin:5px 9px 7px;padding:0 15px 0 5px;gap:12px;border:1px solid #b586ef30;border-radius:32px;background:linear-gradient(110deg,#090616ef,#170b29e6);box-shadow:inset 0 0 16px #9a4eff0b,0 0 22px #6a28b61c}
.game-table>.duelverse-header .brand img{width:91px;height:57px}
.game-table>.duelverse-header .title{padding-left:11px;gap:2px}.game-table>.duelverse-header .title strong{font:400 23px 'Duelverse Display',Barlow,sans-serif;letter-spacing:.4px;color:#f4eaff}.game-table>.duelverse-header .title small{font-size:9px;letter-spacing:1.3px;color:#bd9cdb}
.duelverse-header nav{display:flex;align-items:center;gap:4px;margin-left:auto}.duelverse-header nav a,.duelverse-header nav button,.duelverse-header .nav-current{font:400 14px 'Duelverse Display',Barlow,sans-serif;text-decoration:none;text-transform:uppercase;padding:9px 15px;border:1px solid transparent;border-radius:24px;color:#dcd0ec;white-space:nowrap;background:none}
.duelverse-header nav a:hover,.duelverse-header nav button:hover{background:#ad65ff15;color:#fff;border-color:#c792ff55}
.duelverse-header .nav-current{color:#372000;background:linear-gradient(110deg,#ffe9b6,#f8ba66);border-color:#fff0bf9c;box-shadow:0 0 17px #ffca5c3d}
.duelverse-header .nav-new{border-radius:24px;padding:10px 18px;font:400 14px 'Duelverse Display',Barlow,sans-serif;text-transform:uppercase;color:#fff;background:linear-gradient(115deg,#7731d9,#b956f3);border:1px solid #ce97ff8c;box-shadow:0 0 20px #8c3ee43d}
.duelverse-header .nav-new:hover:not(:disabled){background:linear-gradient(115deg,#8943ea,#cb6bff);border-color:#e8beff}
.round-badge{padding:8px 12px;border-left:1px solid #d3affc2e;color:#d2b1ee;font-size:12px;white-space:nowrap}
.game-table .game-sidebar>.scorebar,.game-table .field-panel,.game-table .game-sidebar #controls.controls,.game-table .game-sidebar .table-settings,.game-table .game-sidebar .rules-notes{border-color:#bd83f13b;background:linear-gradient(140deg,#15102ced,#0d071dee);box-shadow:inset 0 1px 0 #d7b2ff0b,0 6px 24px #03000822;border-radius:15px}
.game-table .game-sidebar .scorebar .team span{font:400 12px 'Duelverse Display',Barlow,sans-serif;letter-spacing:.4px}.game-table .game-sidebar .scorebar .team b{font-size:34px}.game-table .game-sidebar .turn>strong{font-size:14px;color:#ffe5b3}.game-table .game-sidebar .turn>small{font-size:11px;line-height:1.55}.game-table .game-sidebar .turn>.initiative-note{color:#ba9edc;font-size:12px}
.game-table .turn-timer{background:#070314a8;border-color:#9c5ce25c;border-radius:10px}.game-table .game-sidebar .turn-timer>span{font-size:10px}.game-table .game-sidebar .turn-timer>b{font-size:27px}
.game-table .panel-heading h2{font:400 15px 'Duelverse Display',Barlow,sans-serif;text-transform:uppercase;color:#f1e4ff}.game-table .panel-heading>span{font-size:11px}.game-table .field-panel #fieldLegend span{font-size:13px}.game-table .field-panel #eventCountdown{font-size:12px}
.game-table .game-sidebar #controls .status strong{font-size:14px;line-height:1.5}.game-table .game-sidebar #controls .status>span,.game-table .game-sidebar #controls .status>small{font-size:12px;line-height:1.55}.game-table .game-sidebar #controls .play-controls button{font-size:14px;border-radius:20px;padding:9px 13px}.game-table .game-sidebar #controls .play-controls>.arena-zoom{border-radius:22px;background:#07031455}.game-table .game-sidebar #controls .play-controls>.arena-zoom button{font-size:13px;padding:7px 8px}
.game-table .primary{color:#352007;background:linear-gradient(115deg,#ffe7ab,#f8bd72);border:1px solid #ffe6aeba;box-shadow:0 0 14px #e7ac4b22;border-radius:22px}.game-table .primary:hover:not(:disabled){background:linear-gradient(115deg,#fff1c9,#ffcf88)}
.game-table .game-sidebar .table-settings summary,.game-table .game-sidebar .rules-notes summary{font-size:13px;color:#dbc7ef}.game-table .game-sidebar .table-settings label,.game-table .game-sidebar .table-settings select,.game-table .game-sidebar .rules-notes>div{font-size:13px}.game-table .game-sidebar .table-settings select{border-color:#b789e84d;border-radius:9px;background-color:#120a24;color:#f5eaff}
.game-table .game-sidebar .ability-options{border-color:#e5bb7b55;background:#2b193133;border-radius:10px}.game-table .game-sidebar .ability-options label,.game-table .game-sidebar .ability-options strong{font-size:13px}.game-table .game-sidebar .ability-options small{font-size:12px}
.game-table .rarity-info{border-radius:9px;padding:9px}.game-table .rarity-info strong{font-size:13px}.game-table .rarity-info span{font-size:12px}
@media(min-width:1000px){.game-table main.game-layout{height:calc(100dvh - 72px)}.game-sidebar{gap:11px}.game-table .game-layout>#stage[data-arena]{border-color:#a56ae239;box-shadow:inset 0 0 60px #03000822,0 0 30px #27134722}}
@media(max-width:999px){.game-table>.duelverse-header{border-radius:18px;height:70px;min-height:70px}.duelverse-header .title{display:none}.duelverse-header nav{gap:0}.duelverse-header nav a,.duelverse-header nav button,.duelverse-header .nav-current{padding:8px 10px;font-size:13px}.round-badge{display:none}.game-table .game-sidebar>.scorebar{height:auto;min-height:108px}.game-table .game-layout>#stage[data-arena]{height:calc(100dvh - 250px)}}
@media(max-width:550px){.game-table>.duelverse-header{height:auto;min-height:104px;gap:6px;flex-wrap:wrap;padding:4px 10px;margin:5px}.game-table>.duelverse-header .brand img{height:46px;width:78px}.duelverse-header nav{order:3;justify-content:center;width:100%;margin:0}.duelverse-header .nav-new{margin-left:auto;font-size:13px;padding:9px 14px}.duelverse-header nav a,.duelverse-header nav button,.duelverse-header .nav-current{padding:6px 13px}.game-table .game-sidebar .scorebar .team b{font-size:28px}.game-table .game-sidebar #controls .play-controls button{font-size:14px}}
/* The start duel uses the website's original display face, indigo glass and gold/violet pills. */
.start-duel{width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 30px);overflow:auto;border:1px solid #bb7bff80;border-radius:26px;padding:24px 28px;color:#f6edff;background:radial-gradient(ellipse at 20% 0,#57227d66,transparent 60%),linear-gradient(145deg,#17102d,#080318);box-shadow:0 0 0 7px #ae5aff08,0 22px 100px #030008cc,0 0 55px #9144ff24;font:16px/1.55 Barlow,system-ui,sans-serif}
.start-duel:not([open]){display:none}.start-duel [hidden]{display:none!important}.start-duel::backdrop{background:#050013a6;backdrop-filter:blur(4px)}
.start-brand{display:flex;align-items:center;gap:13px;border-bottom:1px solid #c892ff2b;padding-bottom:15px}.start-brand img{width:77px;height:60px;object-fit:contain}.start-brand>div{display:grid;gap:2px}.start-brand>div>span{font:400 17px 'Duelverse Display',Barlow,sans-serif;text-transform:uppercase;color:#ffe3a3}.start-brand small{font-size:13px;color:#c4acd9}.start-attempt{margin-left:auto;padding:6px 10px;border:1px solid #ba8bfc37;border-radius:18px;font-size:11px;letter-spacing:1px;color:#c6a9e3;white-space:nowrap}
.start-duel h1{font:400 clamp(25px,4vw,34px)/1.25 'Duelverse Display',Barlow,sans-serif;letter-spacing:-.4px;margin:21px 0 10px;color:#fff2d1}.start-duel #startStatus{margin:0;min-height:50px;font-size:16px;color:#d6c7e4;line-height:1.55}
.start-versus{display:grid;grid-template-columns:1fr 42px 1fr;align-items:center;gap:12px;margin:20px 0}.start-contender{display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 10px;border:1px solid #9c62e347;border-radius:17px;background:linear-gradient(145deg,#26164277,#090517a6)}.start-contender>span{font:400 13px 'Duelverse Display',Barlow,sans-serif;letter-spacing:1.5px;color:#8ee7b4}.start-contender.is-opponent>span{color:#ff9aaf}.start-contender strong{font-size:14px;font-weight:500;color:#d8c5e9}.start-hand{height:76px;display:grid;place-items:center;color:#ffe2a2}.start-hand>span{font:400 55px 'Duelverse Display',sans-serif;color:#8561a4}.start-hand svg{height:72px;width:72px}.start-versus .versus-label{font:400 18px 'Duelverse Display',Barlow,sans-serif;color:#c28cf4;text-align:center}
.start-duel .start-hand svg path,.start-duel .gesture-art svg path{fill:#ffd7950a;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.start-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.start-choices button{padding:14px 10px 12px;border:1px solid #b377ee65;border-radius:16px;background:linear-gradient(155deg,#351b5399,#10091d);color:#ebd2ff;display:flex;flex-direction:column;align-items:center;gap:7px;transition:transform .15s,border-color .15s,box-shadow .15s}.start-choices button:hover:not(:disabled){transform:translateY(-4px);border-color:#efc883;background:linear-gradient(155deg,#54305b99,#171023);box-shadow:0 5px 25px #b568ed22;color:#ffe6ae}.start-choices .gesture-art{display:block;height:54px}.gesture-art svg{width:54px;height:54px}.start-choices strong{font:400 17px 'Duelverse Display',Barlow,sans-serif}
.start-actions{display:flex;gap:13px;justify-content:center}.start-actions button,.start-single{font:400 15px 'Duelverse Display',Barlow,sans-serif;border-radius:24px;min-height:45px;padding:12px 22px;border:1px solid #b27fed8c;color:#f5e6ff;background:linear-gradient(110deg,#50268c,#7d37ae)}.start-duel .start-gold{color:#402600;border:1px solid #fff0be9c;background:linear-gradient(110deg,#ffe9ac,#f6be78);box-shadow:0 0 20px #ffcf6a24}.start-duel .start-gold:hover{background:linear-gradient(110deg,#fff3cd,#ffcf8a)}.start-single{display:block;margin:0 auto;min-width:175px}
.start-duel .start-fairness{padding-top:15px;border-top:1px solid #ba8bfc24;margin:21px 0 0;color:#a992bd;font-size:12px;line-height:1.6}.start-duel button:focus-visible{outline:2px solid #ffe2a6;outline-offset:4px}.start-duel[data-phase=choose-starter] .is-player{border-color:#f8cd81aa;box-shadow:0 0 20px #ffd38216}.start-duel[data-phase=ready] .is-opponent{border-color:#f8cd81aa;box-shadow:0 0 20px #ffd38216}.start-duel:not([data-phase=choose]) .start-hand svg{animation:gesture-reveal .28s ease-out both}
@keyframes gesture-reveal{from{opacity:.4;transform:translateY(7px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:550px){.start-duel{padding:17px 18px;border-radius:21px;width:calc(100vw - 20px)}.start-brand{gap:8px;padding-bottom:11px}.start-brand img{height:48px;width:60px}.start-brand>div>span{font-size:15px}.start-brand small{font-size:11px}.start-attempt{font-size:9px;padding:5px 7px}.start-duel h1{margin-top:16px;font-size:26px}.start-duel #startStatus{font-size:14px;min-height:44px}.start-versus{gap:6px;grid-template-columns:1fr 27px 1fr;margin:15px 0}.start-contender{padding:11px 7px}.start-hand{height:60px}.start-hand svg{height:56px;width:56px}.start-contender strong{font-size:12px}.start-choices{gap:8px}.start-choices button{padding:11px 6px;border-radius:12px}.start-choices strong{font-size:15px}.start-choices .gesture-art,.gesture-art svg{height:44px;width:44px}.start-actions{flex-wrap:wrap;gap:9px}.start-actions button{font-size:14px;padding:11px 16px}.start-duel .start-fairness{font-size:11px;margin-top:17px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.start-duel *{animation:none!important;transition:none!important}}
/* Sidebar panels keep their natural height; scrolling replaces compressed/overlapping controls. */
@media(min-width:1000px){.game-table .game-sidebar>.field-panel,.game-table .game-sidebar>#controls.controls{flex:0 0 auto}.game-table .game-sidebar #controls .status{flex:0 0 auto;height:auto}}
.start-duel[data-motion=off] *{animation:none!important;transition:none!important}

/* A single frosted sheet separates the start duel from the temporarily blurred arena. */
.start-duel{border:1px solid #eee5ff38;border-radius:26px;background:linear-gradient(140deg,#8a6baa47,#1b102dc9);backdrop-filter:blur(24px) saturate(1.15);-webkit-backdrop-filter:blur(24px) saturate(1.15);box-shadow:inset 0 1px 0 #ffffff24,0 22px 80px #03000888;overflow-y:auto;overflow-x:hidden;text-shadow:0 1px 3px #08031066}
.start-duel::backdrop{background:#08031570;backdrop-filter:blur(14px) saturate(.72);-webkit-backdrop-filter:blur(14px) saturate(.72)}
.start-brand{border-bottom-color:#eee0ff26}.start-attempt{border-color:#efe3ff25;background:#170c2529;color:#eee3fa}
.start-duel h1{color:#fff0cf;text-shadow:0 2px 5px #08031055}.start-duel #startStatus{color:#f3ebfc}
.start-contender{border:0;border-radius:0;background:none;box-shadow:none}.start-contender strong{color:#f3eafd}.start-hand>span{color:#d4b5f6;text-shadow:0 0 18px #b180e42e}
.start-duel[data-phase=choose-starter] .is-player,.start-duel[data-phase=ready] .is-opponent{border-color:transparent;box-shadow:none}
.start-duel[data-phase=choose-starter] .is-player .start-hand,.start-duel[data-phase=ready] .is-opponent .start-hand{filter:drop-shadow(0 0 12px #ffd27866)}
.start-choices button{border-color:transparent;background:none;box-shadow:none;border-radius:0;color:#f6eaff;text-shadow:0 1px 3px #08031066}
.start-choices button:hover:not(:disabled){border-color:transparent;background:none;box-shadow:none;color:#ffe6ae}
.start-choices .gesture-art{display:grid;place-items:center;width:68px;height:68px;border:1px solid #e5ceff6b;border-radius:50%;background:linear-gradient(140deg,#eee3ff0c,#14092042);box-shadow:inset 0 1px 0 #ffffff12;transition:border-color .15s,box-shadow .15s,background .15s}
.start-choices button:hover:not(:disabled) .gesture-art{border-color:#ffda92;background:linear-gradient(140deg,#ffe3a414,#21102755);box-shadow:0 0 24px #e2aa5030}
.start-choices button:focus-visible{outline:none}.start-choices button:focus-visible .gesture-art{outline:2px solid #ffe2a6;outline-offset:5px;box-shadow:0 0 22px #ffd6842e}
.start-duel .start-fairness{border-top-color:#e5d7ff21;color:#d9cce6}.start-versus .versus-label{color:#e0c1ff}
@media(max-width:550px){.start-duel{border-radius:22px;background:linear-gradient(140deg,#6d518e70,#1b102dde)}.start-choices .gesture-art{width:57px;height:57px}.start-choices .gesture-art svg{width:43px;height:43px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.start-duel{background:#1c122bf2}.start-duel::backdrop{background:#080315cc}}
/* Keep the header margin inside the game document, avoiding a stray outer scroll edge. */
body.game-table{display:flow-root}

/* Native modal dialogs make the outer header inert; keep exits inside the top layer. */
.start-duel .start-navigation{display:flex;justify-content:space-between;gap:12px;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #eee0ff26}
.start-duel .start-navigation a{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid #d9b6fa55;border-radius:22px;background:#170c2529;color:#f5e6ff;font:400 14px 'Duelverse Display',Barlow,sans-serif;text-decoration:none}
.start-duel .start-navigation a:hover{border-color:#ffe2a6;background:#bc87ed20;color:#ffe2a6}
.start-duel .start-navigation a:focus-visible{outline:2px solid #ffe2a6;outline-offset:3px}

/* Home artwork: cobalt stone, crystal light and a restrained warm metal edge. */
body.game-table{background:#030819;--dv-panel:#080e24;--dv-line:#719de04a}
.game-table .void-atmosphere{background:radial-gradient(ellipse at 22% 20%,#12134a88,transparent 55%),#030819}
.game-table .void-painted-matte{background-image:url('./assets/arenas/home-rift-v25/void-backdrop.webp');opacity:1;animation:none;inset:0}
.game-table .void-painted-mist{opacity:.18;animation:none}
.game-table .void-painted-rocks-left,.game-table .void-painted-rocks-right{display:none}
.game-table>.duelverse-header{border-color:#d0a45c60;background:linear-gradient(105deg,#050b1bf5,#0c1028ed);box-shadow:inset 0 1px 0 #ffe1a51a,0 5px 22px #00071355}
.game-table .game-sidebar>.scorebar,.game-table .field-panel,.game-table .game-sidebar #controls.controls,.game-table .game-sidebar .table-settings,.game-table .game-sidebar .rules-notes{border-color:#cba16255;background:linear-gradient(145deg,#0a1229ed,#060b1dee);box-shadow:inset 0 1px 0 #eac58b0d,0 5px 22px #00071344}
.game-table .panel-heading h2{color:#ffe0a7}.game-table .turn-timer{background:#030918b8;border-color:#6da8eb70;--clock-color:#b3d6ff}
.game-table .turn-timer[data-state=warning]{--clock-color:#ffd081}.game-table .turn-timer[data-state=critical]{--clock-color:#ff7186}
.game-table .game-sidebar .turn>.initiative-note{color:#a2b5d5}
.game-table .game-sidebar .table-settings select{background-color:#09132b;border-color:#7299ce55}
.game-table #stage[data-arena=painted]{border-color:transparent!important;box-shadow:none!important;background:transparent}
.game-table .arena-message{background:#091126e8;border-color:#b99b6255}
.game-table .deck-label small,.game-table .enemy-caption{color:#a7b7d3;text-shadow:0 1px 4px #010615}
.game-table .game-sidebar #controls .play-controls>.arena-zoom{background:#050c2088}
.game-table .hand-caption{background:linear-gradient(120deg,#061024db,#08112777);border:1px solid #c5a36066;border-radius:18px;padding:8px 12px}

/* Illustrated arenas use the same full stage and touch-friendly selector. */
.game-table #stage[data-arena=city],.game-table #stage[data-arena=lava],.game-table #stage[data-arena=ruins],.game-table #stage[data-arena=cosmos]{border-color:transparent!important;box-shadow:none!important;background:#070712}
.game-table .arena-picker{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;align-items:center;padding:10px 13px;border:1px solid #bd83f13b;border-radius:13px;background:#110c22ed;flex:none}
.game-table .arena-picker label{font-size:13px;color:#d4bfe8}.game-table .arena-picker select{width:100%;min-height:44px;border:1px solid #b789e84d;border-radius:9px;background:#120a24;color:#f5eaff;padding:7px 30px 7px 10px;font:14px Barlow,system-ui,sans-serif}.game-table .arena-picker span{grid-column:1/-1;font-size:12px;color:#c9bad8}.game-table .arena-picker span:empty{display:none}

@media(min-width:760px) and (max-width:999px){.game-table main.game-layout{height:calc(100dvh - 82px);grid-template-columns:minmax(0,1fr) 220px;gap:8px}.game-table .game-layout>#stage[data-arena]{height:100%;min-height:0}.game-table .game-sidebar>.scorebar{min-height:0}.game-table .game-sidebar #controls .play-controls button{min-height:42px}.game-table .game-sidebar .table-settings summary{min-height:42px;display:flex;align-items:center}}

#stage .placement-confirm {
 position:absolute;
 z-index:11;
 transform:translateX(-50%);
 min-height:40px;
 min-width:116px;
 padding:8px 16px;
 border:1px solid #e7bf7f;
 border-radius:7px;
 color:#281a10;
 background:linear-gradient(#f5d69d,#d7a25e);
 line-height:1.2;
 font-family:inherit;
 font-size:13px;
 font-weight:800;
 cursor:pointer;
 box-shadow:0 5px 15px #090610b8;
}
#stage .placement-confirm:hover {background:#ffe0a9}
#stage .placement-confirm:focus-visible {outline:2px solid white;outline-offset:3px}
#stage .placement-confirm[hidden] {display:none}
