/* Baekya rooftop: cached SVG scenery, no canvas, filters or per-frame JavaScript.
   Only the two small status lamps animate opacity; field geometry and UI stay intact. */
.duel-shell {
  background:#0b1018 url('/art/battle-roof.webp?v=4') center/cover no-repeat;
  position:relative;isolation:isolate;
}
/* Slow fog drifting over the city at both edges: one composited layer moved by transform only. */
.duel-shell::before {
  content:'';position:absolute;inset:0 -12%;z-index:-1;pointer-events:none;
  background:
    radial-gradient(38% 30% at 6% 62%,#5f93a033,transparent 70%),
    radial-gradient(30% 24% at 14% 30%,#7fa6b026,transparent 70%),
    radial-gradient(36% 30% at 94% 56%,#8a72b033,transparent 70%),
    radial-gradient(28% 22% at 87% 24%,#a28ac426,transparent 70%);
  will-change:transform;animation:baekya-fog 46s ease-in-out infinite alternate;
}
@keyframes baekya-fog {from{transform:translate3d(-3%,0,0)}to{transform:translate3d(3%,-1.5%,0)}}
.duel-shell .board-wrap.default {
  background:linear-gradient(180deg,#1b232b70,#11172038);
  border-color:#76818e55;
  box-shadow:inset 0 1px 0 #c0c8ce1a;
}
html.layout-wide .duel-shell .arena>.board-wrap.default {
  background:none;border:0;box-shadow:none;
}
.duel-shell .board {
  background:#161b25;
  border-color:#a3aab05c;
  box-shadow:0 2px 0 #090e15,0 10px 18px #00000080;
}
.duel-shell .board::before {
  background-image:url('/art/battle-board.webp?v=2');
}
/* A shallow concrete plinth is painted outside the board without changing slot sizes. */
.duel-shell .board::after {
  content:'';position:absolute;z-index:-1;inset:-9px -9px -11px;
  border:1px solid #8e969e88;border-radius:3px;
  background:linear-gradient(105deg,#5c636c,#343c48 8%,#222934 50%,#46505b 94%,#777e86);
  box-shadow:inset 0 1px 0 #c9ced34d,inset 0 -4px 0 #111721,0 7px 0 #141a24,0 12px 16px #00000070;
  pointer-events:none;
}
.duel-shell .opponent-half .board::after {bottom:-4px;border-bottom:0;border-radius:3px 3px 0 0}
.duel-shell .own-half .board::after {top:-4px;border-top:0;border-radius:0 0 3px 3px}
.duel-shell.my-turn .own-half .board::after {border-color:#8af0cc;box-shadow:inset 0 1px 0 #b9e0cd33,inset 0 -3px 0 #101b21,0 0 0 1px #7be2bbd9,0 0 18px #4ac593b3,0 0 40px #4ac59366,0 7px 0 #141a24}
/* The opponent's glow sits far from the eye at the top of the board, so it is brighter and wider than mine (2026-11-01). */
.duel-shell.opponent-turn .opponent-half .board::after {border-color:#ff8fae;box-shadow:inset 0 1px 0 #e8b5be33,inset 0 -3px 0 #101b21,0 0 0 1px #ff6f9ae6,0 0 20px #ff5fa8c0,0 0 44px #ff5fa873,0 7px 0 #141a24}
.duel-shell .field-label-board {position:relative;z-index:2}
.duel-shell .cell:where(:not(.target)) {
  border-color:transparent;border-radius:2px;background:none;box-shadow:none;
}
.duel-shell .cell:hover:where(:not(.selected,.target,.effect-target,.effect-selected,.move-target)) {border-color:#c7d7e8;box-shadow:inset 0 0 10px #a9c2d524,0 0 7px #c4cbd438}
.duel-shell .field-main {position:relative}
.duel-shell .field-main::after {
  content:'';position:absolute;right:76px;bottom:2px;width:38px;height:2px;
  background:repeating-linear-gradient(90deg,#91e0db 0 9px,transparent 9px 13px);
  box-shadow:0 0 5px #74c7cb70;opacity:.7;pointer-events:none;
  animation:baekya-lamp 10s steps(12,end) infinite;
}
.duel-shell .opponent-half .field-main::after {
  top:2px;bottom:auto;left:14px;right:auto;
  background:repeating-linear-gradient(90deg,#c6a7dc 0 9px,transparent 9px 13px);
  box-shadow:0 0 5px #b394cf60;animation-delay:-3.5s;
}
@keyframes baekya-lamp {0%,100%{opacity:.48}50%{opacity:.9}}
.duel-shell .field-break .zone-row {
  border-color:#818c9b45;
  background:linear-gradient(100deg,#252c36e6,#141c26e6);
  box-shadow:inset 1px 0 0 #b2bdcb15,2px 3px 0 #0c111980;
}
.duel-shell .field-divider {border-color:#8798aa4a}
.duel-shell .board-wrap.field_dusk .board::before {
  background-image:linear-gradient(#c75ba321,#452c4b21),url('/art/battle-board.webp?v=2');
}
.duel-shell .board-wrap.field_aurora .board::before {
  background-image:linear-gradient(#65cabd21,#304c5921),url('/art/battle-board.webp?v=2');
}
@media(max-width:700px),(max-height:560px),(pointer:coarse),(prefers-reduced-motion:reduce) {
  .duel-shell .field-main::after {animation:none;opacity:.65}
  .duel-shell::before {animation:none}
}
@media(max-width:700px) {
  .duel-shell .board::after {inset:-4px;box-shadow:inset 0 1px 0 #c9ced333,0 3px 0 #111721}
  .duel-shell .field-main::after {width:24px;right:64px}
}

/* Animated city overlay (markup: CITY_FX in app.js). The box covers the shell exactly like the
   backdrop image (16:9, background-size:cover), so 1% here = 1% of the image. Only opacity and
   transform animate, each on its own small layer. */
.duel-shell>.city-fx{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;container-type:size}
.city-fx-box{position:absolute;left:50%;top:50%;width:max(100cqw,177.78cqh);height:max(100cqh,56.25cqw);transform:translate(-50%,-50%);container-type:inline-size}
.city-beacon{position:absolute;width:.5cqw;height:.5cqw;margin:-.25cqw 0 0 -.25cqw;border-radius:50%;background:radial-gradient(circle,#fff 0 18%,#ff4a4a 30%,#ff2a2a66 50%,transparent 72%);opacity:0;will-change:opacity;animation:city-beacon 2.4s steps(1,end) infinite}
@keyframes city-beacon{0%{opacity:1}12%{opacity:.35}22%,100%{opacity:0}}

.city-sign{position:absolute;display:flex;align-items:center;font-family:'Paperlogy',sans-serif;font-weight:800;line-height:1;--neon:#ff5fa8;--neon2:#ff9fcd;
  border:.08cqw solid #0006;border-radius:.25cqw;background:linear-gradient(180deg,#151821,#0b0d13);
  box-shadow:inset 0 0 0 .12cqw color-mix(in srgb,var(--neon) 35%,transparent),inset 0 0 1.2cqw color-mix(in srgb,var(--neon) 18%,transparent),0 0 1.6cqw color-mix(in srgb,var(--neon) 30%,transparent),.25cqw .35cqw 0 #05070b}
.city-sign.teal{--neon:#49e6d5;--neon2:#a9fff3}
.city-sign.violet{--neon:#b98cff;--neon2:#e2ccff}
.city-sign b,.city-sign small{color:#fff6fb;text-shadow:0 0 .12em #fff,0 0 .35em var(--neon2),0 0 .8em var(--neon),0 0 1.6em var(--neon);will-change:opacity;animation:city-neon 9s linear infinite}
.city-sign.blade{flex-direction:column;gap:.35cqw;width:2.6cqw;padding:.8cqw 0 .7cqw}
.city-sign.blade b{font-size:1.75cqw}
.city-sign.blade small{font-family:Archivo,sans-serif;font-weight:700;font-size:.42cqw;letter-spacing:.08em;writing-mode:vertical-rl;margin-top:.2cqw;opacity:.85}
.city-sign.blade::before{content:'';position:absolute;top:22%;width:.9cqw;height:.18cqw;background:#3a404a}
.city-sign.blade.pink::before{right:100%}.city-sign.blade.teal::before{left:100%}
.city-sign.blade::after{content:'';position:absolute;top:70%;width:.9cqw;height:.18cqw;background:#3a404a}
.city-sign.blade.pink::after{right:100%}.city-sign.blade.teal::after{left:100%}
.city-sign.strip{padding:.35cqw .6cqw}
.city-sign.strip b{font-family:Archivo,sans-serif;font-stretch:125%;font-weight:700;font-size:.78cqw;letter-spacing:.22em;animation-name:city-neon-strip;animation-duration:13s}
.city-sign.slow b,.city-sign.slow small{animation-duration:14s;animation-delay:-5s}
.city-sign.blade.pink b:nth-child(2){animation-name:city-neon-strip;animation-duration:7s}
/* Mostly steady; two short stutters per cycle like a tired tube. */
@keyframes city-neon{0%,61%,63.5%,66%,100%{opacity:1}62%{opacity:.25}64.5%{opacity:.4}65.2%{opacity:.9}}
@keyframes city-neon-strip{0%,30%,32%,86%,100%{opacity:1}31%{opacity:.3}87%,90%{opacity:.18}88.5%{opacity:.7}}

.city-board{position:absolute;width:8.4cqw;aspect-ratio:16/10}
.city-board .leg{position:absolute;top:100%;width:.3cqw;height:2.4cqw;background:linear-gradient(90deg,#4a525d,#232831)}
.city-board .leg.l{left:18%}.city-board .leg.r{right:18%}
.city-screen{position:absolute;inset:0;overflow:hidden;border:.22cqw solid #2b313a;border-radius:.2cqw;background:#06080d;
  box-shadow:0 0 0 .08cqw #59626e,0 0 2.4cqw #6fb8ff2e,0 .5cqw 1.6cqw #0009}
.city-screen::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,#0000 0 2px,#00000038 2px 3px),radial-gradient(circle at 50% 40%,transparent 50%,#0008);pointer-events:none}
/* Six 4s slides (clock, ad, news, job, ad, weather), each fading in over the previous one. app.js sets the
   duration (slides × 4s) and delay inline; the keyframe percentages below assume a 24s loop (0.6s fade, 4s hold). */
.city-screen .slide{position:absolute;inset:0 0 18%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.2cqw;padding:0 .6cqw;opacity:0;will-change:opacity;animation:city-slide 24s linear infinite;--tone:#7fd8ff;background:linear-gradient(120deg,#0d2238,#0a1322)}
.city-screen .slide i{font-style:normal;font-family:Archivo,sans-serif;font-weight:800;font-size:.38cqw;letter-spacing:.12em;padding:.06cqw .3cqw;border-radius:.1cqw;background:var(--tone);color:#071018}
.city-screen .slide b{font-family:'Paperlogy',sans-serif;font-weight:800;font-size:.86cqw;letter-spacing:.02em;color:#fff;text-shadow:0 0 .5cqw var(--tone);white-space:nowrap}
.city-screen .slide small{font-family:'Paperlogy',sans-serif;font-weight:500;font-size:.42cqw;line-height:1.3;color:#ffffffc8}
.city-screen .slide.now b{font-family:Archivo,sans-serif;font-stretch:115%;font-size:1.15cqw}
/* Ads: tone + gradient come inline per ad; a small line pictogram sits on the right, the copy wraps beside it. */
.city-screen .slide.ad{padding-right:2.7cqw}
.city-screen .slide.ad b{font-size:.84cqw;letter-spacing:.03em;line-height:1.1;white-space:normal;word-break:keep-all;color:color-mix(in srgb,var(--tone) 28%,#fff)}
.city-screen .slide.ad .pic{position:absolute;right:.5cqw;top:50%;width:1.9cqw;height:1.9cqw;transform:translateY(-50%);color:var(--tone);filter:drop-shadow(0 0 .25cqw var(--tone));opacity:.92}
.city-screen .slide.news{--tone:#ff6b6b;background:linear-gradient(120deg,#2e0f14,#120a10)}
.city-screen .slide.job{--tone:#e9c27a;background:linear-gradient(120deg,#1d1a14,#0d0c0a)}
.city-screen .slide.weather{--tone:#9fb7ff;background:linear-gradient(120deg,#161c33,#0b0e1a)}
@keyframes city-slide{0%{opacity:0}2.5%,16.7%{opacity:1}19.2%,100%{opacity:0}}
.city-screen .ticker{position:absolute;left:0;bottom:0;height:18%;display:flex;align-items:center;white-space:nowrap;background:#0b0f16;border-top:.08cqw solid #ffffff22;will-change:transform;animation:city-ticker 48s linear infinite}
.city-screen .ticker em{font-style:normal;font-family:'Paperlogy',sans-serif;font-weight:600;font-size:.46cqw;color:#ffcf7a;text-shadow:0 0 .3cqw #ff9a3a;padding-right:.3cqw}
@keyframes city-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

@media(prefers-reduced-motion:reduce){
  .city-beacon,.city-sign b,.city-sign small,.city-screen .ticker{animation:none}
  .city-beacon{opacity:.6}
  .city-screen .slide{animation:none}.city-screen .slide:first-child{opacity:1}
}

/* Match result card: a dark steel HUD plate in the rooftop style instead of the lobby's pink banner.
   The accent follows the result (win mint like my-turn glow, loss red like opponent-turn, draw gold). */
.duel-shell .duel-result{--res:#7be2bb;--res-deep:#1f5a49;
  border:1px solid color-mix(in srgb,var(--res) 45%,#5d6672);border-radius:6px;
  background:linear-gradient(180deg,#ffffff0d,transparent 40%),repeating-linear-gradient(0deg,#0000 0 3px,#ffffff05 3px 4px),linear-gradient(160deg,#1d232d,#10141b 70%);
  box-shadow:inset 0 1px 0 #ffffff1c,inset 0 0 0 1px #00000080,0 0 0 1px #00000099,0 0 28px color-mix(in srgb,var(--res) 22%,transparent),0 22px 60px #000000c8;
  color:#eef2f4}
.duel-shell .duel-result.lose{--res:#e07a85;--res-deep:#5a2730}
.duel-shell .duel-result.draw{--res:#f0c45f;--res-deep:#5a4520}
.duel-shell .duel-result.with-rematch{padding:30px 28px 24px;border-radius:6px;overflow:visible}
/* Accent bar on top and slot-style corner brackets. */
.duel-shell .duel-result::before{content:'';position:absolute;left:22px;right:22px;top:-1px;height:3px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,transparent,var(--res) 20%,var(--res) 80%,transparent);box-shadow:0 0 12px var(--res)}
.duel-shell .duel-result::after{content:'';position:absolute;inset:6px;pointer-events:none;
  --c:color-mix(in srgb,var(--res) 70%,#ffffff);
  background:
    linear-gradient(var(--c),var(--c)) top left/14px 1.5px,linear-gradient(var(--c),var(--c)) top left/1.5px 14px,
    linear-gradient(var(--c),var(--c)) top right/14px 1.5px,linear-gradient(var(--c),var(--c)) top right/1.5px 14px,
    linear-gradient(var(--c),var(--c)) bottom left/14px 1.5px,linear-gradient(var(--c),var(--c)) bottom left/1.5px 14px,
    linear-gradient(var(--c),var(--c)) bottom right/14px 1.5px,linear-gradient(var(--c),var(--c)) bottom right/1.5px 14px;
  background-repeat:no-repeat;opacity:.75}
.duel-shell .duel-result.with-rematch .duel-result-copy strong{font:800 italic clamp(34px,6vw,46px)/1 'Paperlogy',sans-serif;letter-spacing:.06em;color:#fff;text-shadow:0 0 18px color-mix(in srgb,var(--res) 70%,transparent),0 3px 0 #000a}
.duel-shell .duel-result.with-rematch .duel-result-copy strong::before{content:'VICTORY';display:block;margin-bottom:8px;font:700 11px/1 Archivo,sans-serif;font-stretch:125%;font-style:normal;letter-spacing:.42em;color:var(--res);text-shadow:0 0 8px color-mix(in srgb,var(--res) 60%,transparent)}
.duel-shell .duel-result.lose.with-rematch .duel-result-copy strong::before{content:'DEFEAT'}
.duel-shell .duel-result.draw.with-rematch .duel-result-copy strong::before{content:'DRAW'}
.duel-shell .duel-result.with-rematch .duel-result-copy small{font-size:13px;color:#b9c3cc;opacity:1;letter-spacing:.04em}
.duel-shell .duel-result.with-rematch .duel-result-actions{gap:10px;margin-top:2px}
.duel-shell .duel-result.with-rematch .duel-result-actions .primary,
.duel-shell .duel-result.with-rematch .duel-result-actions .secondary{min-height:48px;border-radius:4px;font-size:15px;letter-spacing:.04em;transition:filter .15s,background .15s,border-color .15s}
.duel-shell .duel-result.with-rematch .duel-result-actions .primary{border:1px solid var(--res);background:linear-gradient(180deg,color-mix(in srgb,var(--res) 92%,#fff),var(--res));color:#0b1714;box-shadow:0 0 16px color-mix(in srgb,var(--res) 35%,transparent),inset 0 1px 0 #ffffff80}
.duel-shell .duel-result.with-rematch .duel-result-actions .secondary{border:1px solid #6b7583;background:#151a22;color:#dfe5ea;box-shadow:inset 0 1px 0 #ffffff12}
.duel-shell .duel-result.with-rematch .duel-result-actions .primary:hover{filter:brightness(1.08)}
.duel-shell .duel-result.with-rematch .duel-result-actions .secondary:hover{border-color:#a9b4c0;background:#1c222c}

/* ---- Steel HUD palette (2026-10-31): the rooftop city made the library's brass/amber/brown read as
   foreign. Inside the battle screen the shared --lb-* tokens become steel, ice-cyan numbers, mint for
   me and rose for the opponent; hardcoded warm colors are overridden below. Overheat keeps its orange. */
.duel-shell{
  --lb-amber:#8fe6ff;--lb-brass:#8a9bad;--lb-brass-dim:#4f5c6b;--lb-cream:#e6edf2;--lb-muted:#9aa8b5;
  --lb-panel:#121820;--lb-raise:#1a212b;--lb-line:#2c3642;--lb-ground:#0b0f15;
  --lb-me:#7be2bb;--lb-foe:#e88a95;--lb-ring:0 0 0 5px var(--lb-ground),0 0 0 6px #8a9bad73;
  --lb-bezel:linear-gradient(180deg,#5d6b7a,#2c3642);--lb-holder:linear-gradient(180deg,#9fb0bf,#5d6b7a)}
.duel-shell .own-life{--dial:#7be2bb}
/* turn plate */
.duel-shell .preview-turn-terminal{border-color:#3e4a58;background:#0a0e14;box-shadow:inset 0 0 22px #4fc9e01a,0 0 0 1px #000,0 10px 24px #00000080}
.duel-shell .preview-turn-phase{border-right-color:#8fe6ff40}
.duel-shell .preview-turn-owner{color:#cfe9f5}
.duel-shell .preview-turn-terminal::after{background:repeating-linear-gradient(0deg,#8fe6ff55 0 1px,transparent 1px 4px)}
.duel-shell .preview-turn-number b,.duel-shell .preview-turn-phase,.duel-shell .preview-turn-number{text-shadow:0 0 8px #4fc9e080}
/* piles, labels, break zone */
.duel-shell .field-piles .pile-button:is(:hover,:focus-visible) .pile-card{box-shadow:0 0 14px #8fe6ff59,2px 3px 0 #06090d}
.duel-shell .field-piles .pile-caption{border-top-color:#8a9bad99;background:#0c1118db;color:#c9d6e0}
.duel-shell .field-piles .pile-caption b,.duel-shell .field-piles .field-cost-marker b,.duel-shell .field-break .zone-title .zone-ready-cost{text-shadow:0 0 7px #4fc9e080}
.duel-shell .field-break .zone-title{background:#0c1118db;color:#c9d6e0;border-top-color:#8a9bad99}
.duel-shell .field-break .zone-row{background:#06090d4d}
.duel-shell .zone-row[data-break-seat] .mini-card .zone-num{border-color:#b9c6d2;background:#0e131af5}
.duel-shell .mini-card .zone-num{background:#0e131acc}
.duel-shell .pile-card,.duel-shell .mini-card.card-back{border-color:#5d6b7a}
.duel-shell .pile-empty{color:#6b7988}
.duel-shell .preview-pass.emphasis>span::before{color:#1f6b74}
.duel-shell .preview-pass:hover:not(:disabled){border-color:#b9c6d2}
.duel-shell .hand-caption span{color:#9fb0bf}
.duel-shell .field-divider.my-turn .turn-mark,.duel-shell .field-divider.opponent-turn .turn-mark{color:#e6edf2}
/* profiles */
.duel-shell .life-portrait::before{background:#0a0e14;box-shadow:0 0 0 1px #8a9bad80}
.duel-shell .life-avatar{border-color:#0a0e14}
.duel-shell .life-plate:not(.overheat) .life-meter i{background:linear-gradient(90deg,#c9566a,#f09aa6)}
.duel-shell .own-life:not(.overheat) .life-meter i{background:linear-gradient(90deg,#3fae8c,#9ff0d6)}
/* action wheel */
.duel-shell .wheel-center,.duel-shell .wheel-option{background:radial-gradient(circle at 40% 35%,#222c38,#0e131a);box-shadow:var(--lb-ring),0 0 22px #4fc9e02e}
.duel-shell .wheel-center:hover,.duel-shell .wheel-option:hover:not(:disabled){border-color:#d6e2ec}
/* header bar badges and buttons */
.duel-shell .duel-header .badge{border-color:#5d6b7a;background:#18202a;color:#dfe7ed}
.duel-shell .duel-header .tiny{border-color:#5d6b7a;background:#18202a;color:#e6edf2}
.duel-shell .duel-header .tiny:hover:not(:disabled){border-color:#b9c6d2;background:#222c38}
.duel-shell .duel-header-status.opponent-turn{border-color:#e9818e;background:#2d1a22;color:#fde2e6}
.duel-shell .duel-header-status.my-turn{border-color:#7be2bb;background:#15302a;color:#e6fff7}
/* side rail, card inspector and their buttons */
.duel-shell .duel-rail.mulligan-mode,.duel-shell .duel-rail.break-choice-mode,.duel-shell .duel-rail .secondary{border-color:#8a9bad8c}
.duel-shell .duel-rail .primary,.duel-shell .duel-rail .secondary,.duel-shell .duel-rail .tiny{border-color:#5d6b7a;background:#18202a;color:#e6edf2}
.duel-shell .duel-rail .primary{border-color:#7be2bb;background:linear-gradient(180deg,#8ff0cc,#5fcfa8);color:#0b1714}
.duel-shell .duel-rail.card-orbit-mode .card-facts{border-color:#8a9bad91;background:#141a22f2}
.duel-shell .duel-rail.card-orbit-mode .card-effect-copy,.duel-shell .card-effect-copy{border-color:#5d6b7a;background:#121820f2}
.duel-shell .card-effect-copy strong{color:#cfe9f5}
.duel-shell .card-effect-copy small{color:#9fb0bf}
.duel-shell .duel-rail.card-orbit-mode .card-facts::after,.duel-shell .duel-rail.card-orbit-mode .card-effect-copy::before{background:linear-gradient(90deg,#8a9bad,#cfe9f5);box-shadow:0 0 9px #8fe6ff80}
.duel-shell .orbit-links line:not(.support-link){stroke:#9fb3c2;filter:drop-shadow(0 0 5px #8fe6ff)}
.duel-shell .orbit-action:not(.support-action){border-color:#b9c6d2;background:radial-gradient(circle at 35% 25%,#2c3846,#151b24 75%)}
.duel-shell .duel-rail.card-orbit-mode .orbit-action:not(.support-action){box-shadow:0 7px 18px #000000cc,0 0 15px #8fe6ff55}
.duel-shell .orbit-action:not(.support-action):hover:not(:disabled),.duel-shell .orbit-action:not(.support-action):focus-visible:not(:disabled){border-color:#e6edf2;background:radial-gradient(circle at 35% 25%,#3a4a5c,#1c2430 75%);box-shadow:0 0 23px #8fe6ffaa}
.duel-shell .orbit-hint{border-color:#8a9bad80;background:#141a22;color:#e6edf2}
.duel-shell .duel-rail.card-orbit-mode .preview-clear{border-color:#b9c6d2;background:#18202aed}
.duel-shell .inspector-scrim,.duel-shell.card-selection-open .inspector-scrim{background:#070a10b9}
.duel-shell .life-plate{--profile-accent:#e88a95;--profile-glow:#e88a9559}
.duel-shell .own-life{--profile-accent:#7be2bb;--profile-glow:#7be2bb59}
.duel-shell .life-plate:not(.overheat) .life-avatar{box-shadow:0 0 0 5px #0a0e14,0 0 0 6px var(--profile-glow),0 8px 28px #00000066,0 0 34px var(--profile-glow)}
.duel-shell .mini-card.card-back,.duel-shell .panel>button.mini-card{background-color:#141a22;border-color:#5d6b7a}
.duel-shell .zone-num{box-shadow:0 2px 7px #000b,0 0 7px #8fe6ff55}
.duel-shell .empty-message{color:#9fb0bf}
html.layout-wide .duel-shell .arena>.challenge-status>span:not(.puzzle-buttons){color:#e6edf2}

/* Halves are never lifted above each other: each .board is an isolated stacking context, so lifting the
   active half (an earlier fix for its glow's bottom blur) put the opponent's board over my front-row cards,
   which overhang the divider. The glow's blur under the divider is simply covered by my board (2026-10-31). */
.duel-shell .board-wrap>.opponent-half,.duel-shell .board-wrap>.own-half{position:relative}
/* While a card entry, commander entry or combat effect plays, freeze the ambient city so those heavy
   effects get the whole frame budget. */
body:has(#field-entry-effect > *, .combat-effect.show) .duel-shell::before,
body:has(#field-entry-effect > *, .combat-effect.show) .city-fx *{animation-play-state:paused}

/* Step hand-off (2026-11-01, owner): only the plinth borders move. The side that stops acting fades back to
   concrete over .4s while the side that starts acting lights up from the divider outward: its plinth is revealed
   through a sliding mask (the hidden part keeps the concrete at half strength), so the glow reads as running
   across to the other field. Nothing is drawn over the cards. */
.duel-shell .board::after{transition:border-color .4s ease,box-shadow .4s ease}
.duel-shell .field-divider span{transition:border-color .4s,background-color .4s,box-shadow .4s,color .4s}
.duel-shell.my-turn .own-half .board::after{-webkit-mask-image:linear-gradient(180deg,#000 0,#000 35%,#0008 55%,#0008 100%);mask-image:linear-gradient(180deg,#000 0,#000 35%,#0008 55%,#0008 100%);
  -webkit-mask-size:100% 300%;mask-size:100% 300%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:0 0;mask-position:0 0;animation:plinth-wave-down .6s cubic-bezier(.3,.6,.3,1) both}
.duel-shell.opponent-turn .opponent-half .board::after{-webkit-mask-image:linear-gradient(0deg,#000 0,#000 35%,#0008 55%,#0008 100%);mask-image:linear-gradient(0deg,#000 0,#000 35%,#0008 55%,#0008 100%);
  -webkit-mask-size:100% 300%;mask-size:100% 300%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:0 100%;mask-position:0 100%;animation:plinth-wave-up .6s cubic-bezier(.3,.6,.3,1) both}
@keyframes plinth-wave-down{0%{-webkit-mask-position:0 100%;mask-position:0 100%}100%{-webkit-mask-position:0 0;mask-position:0 0}}
@keyframes plinth-wave-up{0%{-webkit-mask-position:0 0;mask-position:0 0}100%{-webkit-mask-position:0 100%;mask-position:0 100%}}
@media(prefers-reduced-motion:reduce){.duel-shell .board::after{transition:none;animation:none!important;-webkit-mask-image:none;mask-image:none}}

/* Rendered rooftop (2026-11-21): the sign housings, their neon border tube, the arms to the parapet and the
   billboard frame and posts are part of the backdrop render (battle.glsl, built in camera space at these exact
   screen positions). The page only adds the live lettering and a soft glow; no drawn box, bracket or legs. */
.city-sign{border-color:transparent;background:none;box-shadow:0 0 2.2cqw color-mix(in srgb,var(--neon) 30%,transparent),0 0 6cqw color-mix(in srgb,var(--neon) 13%,transparent)}
.city-sign.blade::before,.city-sign.blade::after,.city-board .leg{display:none}
/* The billboard's dark bezel is drawn here and fully covers the rendered face behind it, so no lit slab shows around the screen (owner, 2026-11-21: the pale blue frame read as a separate thing). */
.city-screen{border-color:#07090d;box-shadow:0 0 0 .1cqw #2a313b,0 0 0 .56cqw #0c1016,0 0 0 .62cqw #343c47,0 .5cqw 1.6cqw .5cqw #000000a6,0 0 5cqw #6fb8ff1f}

/* ---- Rooftop pass 2 (2026-11-21, owner "네, 이어서"): side zones and cards on the field (the old black hand ledge was part of the old backdrop image and is gone with it).
   Layout, slot sizes, profile and hand proportions are untouched; only surfaces change. */
/* Side zones: slots milled into the roof instead of flat floating boxes. A slot is dark inside, lit on its lower
   lip, and its label is an engraved plate below it. */
.duel-shell .field-piles .pile-card:not(.card-back):not(:has(img)){border-color:#0a0d12;border-radius:3px;background:linear-gradient(180deg,#05070b,#0d121a 70%,#121821);
  box-shadow:inset 0 3px 8px #000,inset 0 0 0 1px #00000099,0 1px 0 #c9d6e226,0 0 0 1px #4a556433}
.duel-shell .field-piles .pile-card.card-back,.duel-shell .field-piles .pile-card:has(img){border-color:#5d6b7a;
  box-shadow:1px 1px 0 #2b333e,2px 2px 0 #10151c,3px 3px 0 #2b333e,4px 4px 0 #0c1016,5px 9px 14px #000000b3}
.duel-shell .pile-empty{color:#3d4856;text-shadow:0 1px 0 #ffffff12}
.duel-shell .field-piles .pile-caption{border-top:0;background:linear-gradient(180deg,#1b222cf2,#10151cf2);
  box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -1px 0 #000,0 2px 4px #00000080;color:#aebccb}
.duel-shell .field-piles .pile-caption b{color:#8fe6ff}
.duel-shell .field-break .zone-row{border-color:#0a0d12;border-radius:3px;background:linear-gradient(180deg,#05070b8c,#0b101857 26%,#0d131c47);
  box-shadow:inset 0 4px 10px #000000a6,inset 0 0 0 1px #00000080,0 1px 0 #c9d6e221,0 0 0 1px #4a55642e}
.duel-shell .field-break .zone-title{border-top:0;border-radius:2px;background:linear-gradient(180deg,#1b222cf2,#10151cf2);
  box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -1px 0 #000,0 2px 5px #00000099;letter-spacing:.12em}
.duel-shell .field-break .zone-row .muted{color:#5f6d7c}
.duel-shell .field-piles .field-cost-marker{color:#93a3b3;text-shadow:0 1px 0 #000}
/* Cards on the field stand on the plate: a contact shadow, a longer soft one, and a pool of the owner's colour
   in the tray under the card so sides read at a glance (mint mine, rose theirs, violet for the neutral predator). */
.duel-shell .board .cell img{filter:drop-shadow(0 1px 0 #000) drop-shadow(0 5px 6px #000000c7)}
.duel-shell .board .cell:has(>img){--own:#7be2bb;background:radial-gradient(62% 50% at 50% 60%,color-mix(in srgb,var(--own) 30%,transparent),color-mix(in srgb,var(--own) 9%,transparent) 62%,transparent 80%)}
.duel-shell .board .cell.enemy:has(>img){--own:#f0808f}
.duel-shell .board .cell.neutral-predator:has(>img){--own:#b98cff}
.duel-shell .board .cell:has(>img):where(:not(.target,.selected,.effect-target,.effect-selected,.move-target)){border-color:color-mix(in srgb,var(--own) 34%,transparent);box-shadow:inset 0 0 12px color-mix(in srgb,var(--own) 14%,transparent)}

/* ---- Stand / rest read (2026-11-22, owner "레스트 된 상태의 카드와 스탠드 카드가 구분이 잘 안 된다"; PROPOSAL, shown before deploy).
   Three signals on top of the 90-degree turn: tone (a rested card is switched off: dark, nearly colourless, no
   lift shadow), light (only a standing card lights its tray in the owner's colour) and a small engraved tag.
   Pass 2's drop-shadow rule had the same specificity as the old rest dimming and silently replaced it. */
.duel-shell .board .cell.rest img{filter:brightness(.4) saturate(.3) contrast(.92) drop-shadow(0 1px 0 #000)}
.duel-shell .board .cell:has(>img):not(.rest){background:radial-gradient(66% 54% at 50% 60%,color-mix(in srgb,var(--own) 40%,transparent),color-mix(in srgb,var(--own) 13%,transparent) 62%,transparent 82%)}
.duel-shell .board .cell.rest:has(>img){background:linear-gradient(180deg,#05070b99,#080b1080)}
.duel-shell .board .cell.rest:has(>img):where(:not(.target,.selected,.effect-target,.effect-selected,.move-target)){border-color:#ffffff14;box-shadow:inset 0 2px 8px #000000b3}
.duel-shell .board .cell.rest:has(>img)::before{content:'REST';position:absolute;z-index:3;left:50%;top:6%;transform:translateX(-50%);padding:.1em .5em .12em;border-radius:2px;
  background:#0b0f15e6;box-shadow:inset 0 1px 0 #ffffff1f,0 0 0 1px #000;color:#9fb0c2;font:800 clamp(7px,.62vw,10px)/1 var(--font-ui,system-ui);letter-spacing:.14em;pointer-events:none}
/* The arrow keeps its full colour on a rested card: direction still matters there (owner, 2026-11-22). */
.duel-shell .board .cell.rest .field-zone-badge,.duel-shell .board .cell.rest .owner-dot{opacity:.55}
