/* VERDICT — the duel screen (duel lane). Phone first (375 × 812): foe HUD, stage, your HUD, last line, pad.
 * Wide landscape (≥ 900px): stage on the left, pad and history on the right. Ember Fresco palette from base.css.
 * Every animation has a fade under [data-motion="reduce"]; Thai gets roomier line heights under :lang(th). */

.screen.dl-screen { padding: calc(var(--safe-t) + 4px) calc(var(--safe-r) + 8px) calc(var(--safe-b) + 6px) calc(var(--safe-l) + 8px); }

.dl-root {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 4px;
  --you-c: var(--gold); --foe-c: var(--ochre);
}

/* ---------------------------------------------------------------- HUD */

.dl-hud {
  position: relative; flex: 0 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 3px;
  padding: 5px 8px 6px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(35, 38, 74, .92), rgba(20, 22, 43, .88));
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--fc, var(--gold));
}
.dl-hud.foe { box-shadow: inset -3px 0 0 var(--fc, var(--ochre)); }
.dl-hud-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-face { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid var(--fc, var(--gold)); cursor: pointer; background: var(--indigo-2); }
.dl-face img { width: 100%; height: 100%; object-fit: cover; }
.dl-id { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
.dl-name { font-family: var(--font-display); color: var(--text-strong); font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-epi { font-size: .74rem; color: var(--ash-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-epi.gold { color: var(--gold); }
.dl-edge-token { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: .72rem; color: var(--ash-dim); border: 1px dashed var(--line); opacity: .35; transition: opacity var(--t-mid), color var(--t-mid), border-color var(--t-mid), transform var(--t-mid) var(--ease); }
.dl-edge-token .ic { width: 15px; height: 15px; }
.dl-edge-token.on { opacity: 1; color: var(--night); background: var(--gold); border: 1px solid var(--gold); transform: scale(1.06); box-shadow: 0 0 12px rgba(226, 182, 90, .55); }

.dl-life { position: relative; height: 14px; border-radius: 3px; background: rgba(11, 12, 24, .8); overflow: hidden; border: 1px solid rgba(239, 230, 211, .12); }
.dl-life-ghost, .dl-life-fill { position: absolute; left: 0; top: 0; bottom: 0; }
.dl-life-ghost { background: var(--ember-hot); opacity: .55; transition: width 900ms ease-in 250ms; }
.dl-life-fill { background: linear-gradient(90deg, var(--coal), var(--ember)); transition: width 280ms var(--ease); }
.dl-hud.you .dl-life-fill { background: linear-gradient(90deg, #8f6a24, var(--gold)); }
.dl-life.low .dl-life-fill { background: linear-gradient(90deg, #6d1f16, var(--coal)); animation: dl-lowpulse 1.3s ease-in-out infinite; }
.dl-life-num { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 700; color: var(--bone); text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
@keyframes dl-lowpulse { 50% { filter: brightness(1.35); } }

.dl-gauges { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: nowrap; }
.dl-glabel { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ash-dim); }
:lang(th) .dl-glabel { text-transform: none; letter-spacing: 0; font-size: .68rem; }
.dl-breath { display: flex; gap: 2px; margin-right: 6px; }
.dl-breath i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(143, 200, 230, .45); background: transparent; }
.dl-breath i.on { background: #8fc8e6; border-color: #8fc8e6; box-shadow: 0 0 5px rgba(143, 200, 230, .6); }
.dl-renown { display: flex; align-items: center; gap: 1px; flex: 1 1 auto; min-width: 0; }
.dl-renown i { flex: 1 1 0; max-width: 11px; height: 7px; background: rgba(239, 230, 211, .1); border-radius: 1px; }
.dl-renown i.on { background: var(--ember); }
.dl-renown i.mark4 { margin-right: 3px; box-shadow: 2px 0 0 rgba(226, 182, 90, .7); }
.dl-renown i.mark12 { box-shadow: 0 0 0 1px rgba(226, 182, 90, .7); }
.dl-renown b { margin-left: 4px; font-size: .72rem; color: var(--bone); font-variant-numeric: tabular-nums; }
.dl-renown.armed4 i.on { background: var(--ember-hot); }
.dl-renown.armed12 i.on { background: var(--gold); box-shadow: 0 0 4px rgba(226, 182, 90, .7); }
.flare { animation: dl-flare 600ms ease-out; }
@keyframes dl-flare { 0% { filter: brightness(2.2); } 100% { filter: none; } }

.dl-tags { display: flex; flex-wrap: wrap; gap: 3px; min-height: 0; }
.dl-tags:empty { display: none; }
.dl-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 999px; font-size: .68rem; line-height: 1.5; color: var(--bone); background: rgba(46, 50, 96, .9); border: 1px solid var(--line); white-space: nowrap; }
.dl-tag.later { opacity: .6; border-style: dashed; }
.dl-tag.ward { border-color: rgba(143, 200, 230, .6); color: #cfe9f6; }
.dl-tag.st-stagger, .dl-tag.st-bleed { border-color: rgba(178, 58, 42, .8); color: #ffc7b8; }
.dl-tag.st-seal, .dl-tag.st-oath { border-color: rgba(197, 139, 63, .8); }
.dl-tag.plan { border-color: var(--line-warm); }
.dl-tag.ready { color: var(--night); background: var(--ember-hot); border-color: var(--ember-hot); font-weight: 700; }
.dl-tag.ready.gold { background: var(--gold); border-color: var(--gold); }
.dl-minicard { display: inline-block; width: 8px; height: 11px; border-radius: 1px; background: var(--iron); border: 1px solid var(--gold-deep); }
.dl-minicard.up { background: var(--bone); }

/* ---------------------------------------------------------------- stage */

.dl-stage { position: relative; flex: 1 1 auto; min-height: 150px; border-radius: var(--radius); overflow: hidden; background: var(--soot); border: 1px solid var(--line); perspective: 900px; cursor: pointer; }
.dl-tilt { position: absolute; inset: 0; transform: rotate(var(--tilt, 0deg)) scale(1.06); transition: transform 700ms var(--ease); }
.dl-arena { position: absolute; inset: -4%; }
.dl-arena img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.62); }
.dl-diag { position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49.6%, rgba(240, 138, 60, .18) 50%, transparent 50.4%); pointer-events: none; }
.dl-root[data-edge="you"] .dl-diag { background: linear-gradient(135deg, transparent 49.6%, rgba(226, 182, 90, .35) 50%, transparent 50.4%); }
.dl-root[data-edge="foe"] .dl-diag { background: linear-gradient(135deg, transparent 49.6%, rgba(197, 139, 63, .35) 50%, transparent 50.4%); }

.dl-fig { position: absolute; width: 38%; max-width: 230px; aspect-ratio: 3 / 4; transition: filter var(--t-slow); }
.dl-fig.foe { right: 4%; top: 4%; }
.dl-fig.you { left: 4%; bottom: 2%; }
.dl-fig-img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.dl-fig-glow { position: absolute; inset: 15% 10% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--fc, var(--gold)) 45%, transparent), transparent); opacity: .55; }
/* the Edge holder stands in light; when the Edge changes hands the scales swing (a sweep along the diagonal) */
.dl-fig.has-edge .dl-fig-glow { opacity: .95; transition: opacity 500ms ease; }
.dl-fig .dl-fig-glow { transition: opacity 500ms ease; }
.dl-root.edge-swing .dl-diag { animation: dl-swing 760ms ease-out; }
@keyframes dl-swing { 0% { opacity: 1; filter: brightness(1); } 25% { opacity: 1; filter: brightness(3.2) drop-shadow(0 0 6px var(--gold)); } 100% { opacity: 1; filter: brightness(1); } }
.dl-edge-token.on.pop { animation: dl-edge-pop 620ms var(--ease); }
@keyframes dl-edge-pop { 0% { transform: scale(.6); } 45% { transform: scale(1.32); box-shadow: 0 0 22px rgba(226, 182, 90, .95); } 100% { transform: scale(1.06); } }
/* the fall: the beaten fighter tips and greys before the round card */
.dl-fig.fallen { transition: transform 620ms cubic-bezier(.5, 0, .9, .4), filter 620ms ease, opacity 620ms ease; filter: grayscale(1) brightness(.6); opacity: .8; }
.dl-fig.you.fallen { transform: rotate(-14deg) translate(-6%, 8%); transform-origin: 30% 100%; }
.dl-fig.foe.fallen { transform: rotate(14deg) translate(6%, 8%); transform-origin: 70% 100%; }
.dl-stage.fall-flash::after { content: ''; position: absolute; inset: 0; z-index: 20; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 220, 180, .55), rgba(178, 58, 42, 0)); animation: dl-fallflash 700ms ease-out forwards; }
@keyframes dl-fallflash { from { opacity: 1; } to { opacity: 0; } }
/* the Unveiling lands on the HUD: the new epithet burns in */
.dl-hud.uv-flash { animation: dl-uvflash 1400ms ease-out; }
.dl-hud.uv-flash .dl-epi { animation: dl-uvepi 1400ms ease-out; }
@keyframes dl-uvflash { 0% { box-shadow: inset 3px 0 0 var(--fc, var(--gold)), 0 0 0 0 rgba(240, 138, 60, 0); } 20% { box-shadow: inset 3px 0 0 var(--fc, var(--gold)), 0 0 24px 4px rgba(240, 138, 60, .75); } 100% { box-shadow: inset 3px 0 0 var(--fc, var(--gold)), 0 0 0 0 rgba(240, 138, 60, 0); } }
@keyframes dl-uvepi { 0% { color: var(--ember-hot); letter-spacing: .12em; } 100% { letter-spacing: normal; } }
.dl-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 43, .05), rgba(20, 22, 43, .5)); opacity: 0; transition: opacity var(--t-slow); pointer-events: none; }
.dl-fig.veiled .dl-veil { opacity: 1; }
.dl-fig.veiled .dl-fig-img { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)) saturate(.7); }

.dl-centre { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); z-index: 3; }
.dl-ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.dl-ring circle { fill: rgba(11, 12, 24, .78); stroke-width: 5; }
.dl-ring .rg-back { stroke: rgba(239, 230, 211, .12); }
.dl-ring .rg-burn { fill: none; stroke: var(--ember); stroke-linecap: round; transition: stroke-dashoffset 220ms linear, stroke var(--t-mid); }
.dl-ring.off .rg-burn { stroke: transparent; }
.dl-ring.urgent .rg-burn { stroke: var(--coal); }
.dl-ring.urgent { animation: dl-urgent .9s ease-in-out infinite; }
@keyframes dl-urgent { 50% { transform: scale(1.06); } }
.dl-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; pointer-events: none; }
.dl-ring-sub { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash-dim); max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:lang(th) .dl-ring-sub { text-transform: none; letter-spacing: 0; font-size: .6rem; }
.dl-ring-num { font-family: var(--font-display); font-size: 1.45rem; color: var(--bone); font-weight: 700; }
.dl-ring-secs { font-size: .52rem; color: var(--ash-dim); max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-centre[data-secs]:not([data-secs=""])::after { content: attr(data-secs); position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-size: .75rem; font-weight: 700; color: var(--ember-hot); font-variant-numeric: tabular-nums; }
.is-sudden .dl-ring circle { fill: rgba(80, 12, 8, .85); }
/* Sudden Death n/3 is too long for one line inside the ring: let it wrap (the Bell line is empty then) */
.is-sudden .dl-ring-sub { white-space: normal; max-width: 62px; letter-spacing: .02em; line-height: 1.1; color: var(--bone); }
.is-sudden .dl-stage { border-color: var(--coal); box-shadow: inset 0 0 40px rgba(178, 58, 42, .45); }

/* cards: face down while locked, flip up at the reveal */
.dl-card { position: absolute; width: 58px; height: 82px; z-index: 4; perspective: 600px; opacity: 0; transition: opacity var(--t-fast); pointer-events: none; }
.dl-card.you { left: calc(50% - 98px); top: calc(50% + 4px); }
.dl-card.foe { right: calc(50% - 98px); bottom: calc(50% + 4px); }
.dl-card.down, .dl-card.up { opacity: 1; }
.dl-card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 420ms var(--ease); }
.dl-card.up .dl-card-in { transform: rotateY(180deg); }
.dl-card-back, .dl-card-face { position: absolute; inset: 0; border-radius: 5px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 4px 10px rgba(0, 0, 0, .55); }
.dl-card-back { background: repeating-linear-gradient(45deg, var(--iron) 0 6px, #7a3023 6px 12px); border: 2px solid var(--gold-deep); color: var(--gold); }
.dl-card-back .ic { width: 26px; height: 26px; }
.dl-card-face { transform: rotateY(180deg); background: var(--bone); color: var(--night); border: 2px solid var(--fc, var(--gold)); padding: 3px; text-align: center; }
.dl-card.side-gods .dl-card-face { border-color: var(--gold); }
.dl-card.side-humans .dl-card-face { border-color: var(--ochre); }
.dl-card-glyph .dl-glyph { width: 24px; height: 24px; }
.dl-card-name { font-size: .6rem; font-weight: 700; line-height: 1.1; max-height: 2.3em; overflow: hidden; }
.dl-card-param { font-size: .55rem; color: #5a4a35; }
.dl-card.knock { animation: dl-knock 260ms ease-out; }
@keyframes dl-knock { 30% { transform: translateY(-8px) scale(1.08); } 100% { transform: none; } }

/* the move-name slams after the flip */
.dl-slam { position: absolute; z-index: 5; display: flex; align-items: center; gap: 6px; opacity: 0; pointer-events: none; max-width: 70%; }
.dl-slam.you { left: 4%; bottom: 10%; }
.dl-slam.foe { right: 4%; top: 10%; flex-direction: row-reverse; text-align: right; }
.dl-slam .sl-glyph .dl-glyph { width: 30px; height: 30px; color: var(--ember-hot); filter: drop-shadow(0 0 6px rgba(240, 138, 60, .7)); }
.dl-slam .sl-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 14px rgba(240, 138, 60, .6); line-height: 1.1; }
:lang(th) .dl-slam .sl-name { font-size: 1.3rem; line-height: 1.4; }
.dl-slam .sl-note { display: block; font-size: .7rem; color: var(--ember-hot); }
.dl-slam.go { animation: dl-slam 380ms cubic-bezier(.2, 1.6, .4, 1) both; }
.dl-slam.go.out { animation: dl-slam-out 260ms ease-in both; }
@keyframes dl-slam { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes dl-slam-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }

/* panels: two crops on a diagonal, one word stamped */
.dl-panels { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.dl-panel { position: absolute; inset: 6% 3%; opacity: 0; }
.dl-panel.go, .dl-panel.done { opacity: 1; }
.dl-panel .pc { position: absolute; width: 56%; height: 56%; overflow: hidden; border: 3px solid var(--bone); background: var(--indigo); box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
.dl-panel .pc img { width: 100%; height: 100%; object-fit: cover; }
.dl-panel .pc.you { left: 0; bottom: 0; clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%); }
.dl-panel .pc.foe { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
.dl-panel.go .pc.you { animation: dl-pc-you 340ms var(--ease) both; }
.dl-panel.go .pc.foe { animation: dl-pc-foe 340ms var(--ease) both; }
@keyframes dl-pc-you { from { transform: translateX(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dl-pc-foe { from { transform: translateX(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.dl-panel .pc.a { z-index: 2; border-color: var(--ember-hot); }
.dl-panel.pl-hit .pc.b, .dl-panel.pl-break .pc.b, .dl-panel.pl-counter .pc.b { filter: saturate(.6) brightness(.8); }
.dl-panel.pl-lull .pc { filter: saturate(.4) brightness(.7); border-color: var(--ash-dim); }
.dl-panel .pl-lines { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 177, 94, .12) 18px 20px); mix-blend-mode: screen; }
.dl-panel.pl-lull .pl-lines, .dl-panel.pl-blocked .pl-lines { display: none; }
.pl-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 4; text-align: center; white-space: nowrap; }
.pl-word .w { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: .04em; color: var(--bone); text-transform: uppercase; -webkit-text-stroke: 1px var(--soot); text-shadow: 3px 3px 0 var(--coal), 0 0 18px rgba(240, 138, 60, .7); }
:lang(th) .pl-word .w { text-transform: none; letter-spacing: 0; font-size: 1.9rem; line-height: 1.45; }
.pl-word .who { display: inline-block; margin-top: 2px; padding: 1px 8px; font-size: .75rem; color: var(--night); background: var(--gold); border-radius: 2px; }
.dl-panel.go .pl-word { animation: dl-stamp 360ms cubic-bezier(.2, 1.7, .4, 1) 160ms both; }
@keyframes dl-stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(2.3); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg); } }
.dl-panel.pl-parry .pl-word .w, .dl-panel.pl-blocked .pl-word .w { text-shadow: 3px 3px 0 #2c5a72, 0 0 18px rgba(143, 200, 230, .7); }
.dl-panel.pl-lull .pl-word .w { color: var(--ash); text-shadow: 2px 2px 0 var(--soot); font-size: 1.6rem; }
.pl-sparks { position: absolute; left: 50%; top: 50%; z-index: 3; }
.pl-sparks i { position: absolute; width: 3px; height: 16px; background: var(--ember-hot); border-radius: 2px; transform: rotate(calc(var(--i) * 30deg)) translateY(-10px); opacity: 0; }
.dl-panel.go .pl-sparks i { animation: dl-spark 520ms ease-out 120ms both; }
@keyframes dl-spark { 0% { opacity: 1; transform: rotate(calc(var(--i) * 30deg)) translateY(-6px); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-64px); } }
.pl-shield { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; z-index: 3; color: #cfe9f6; }
.pl-shield .dl-glyph { width: 70px; height: 70px; filter: drop-shadow(0 0 10px rgba(143, 200, 230, .8)); }
.pl-shield .shard { position: absolute; left: 50%; top: 50%; width: 10px; height: 14px; background: #cfe9f6; clip-path: polygon(50% 0, 100% 100%, 0 80%); opacity: 0; }
.dl-panel.go.pl-break .pl-shield .dl-glyph { animation: dl-fadeout 300ms ease-in 320ms both; }
.dl-panel.go .pl-shield .shard { animation: dl-shard 600ms ease-out 320ms both; }
@keyframes dl-shard { 0% { opacity: 1; transform: rotate(calc(var(--i) * 40deg)) translateY(0); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 40deg)) translateY(-70px) rotate(160deg); } }
@keyframes dl-fadeout { to { opacity: 0; } }
.pl-crack { position: absolute; left: 0; right: 0; top: 50%; height: 4px; z-index: 3; background: linear-gradient(90deg, transparent, var(--ember-hot), transparent); transform: rotate(-12deg) scaleX(0); }
.dl-panel.go .pl-crack { animation: dl-crack 360ms ease-out 120ms both; }
@keyframes dl-crack { to { transform: rotate(-12deg) scaleX(1); } }
.pl-cut { position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; z-index: 3; background: var(--bone); box-shadow: 0 0 12px var(--ember-hot); transform: rotate(32deg) scaleX(0); }
.dl-panel.go .pl-cut { animation: dl-cut 260ms ease-out 100ms both; }
@keyframes dl-cut { to { transform: rotate(32deg) scaleX(1); } }

.dl-flash { position: absolute; inset: 0; z-index: 7; background: #fff3dc; opacity: 0; pointer-events: none; }
.dl-flash.go { animation: dl-flash 220ms ease-out; }
@keyframes dl-flash { 0% { opacity: .55; } 100% { opacity: 0; } }
.dl-stage.shake { animation: dl-shake 360ms linear; }
@keyframes dl-shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }

/* floating numbers: tap one for its reasons */
.dl-nums { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.dl-num { position: absolute; pointer-events: auto; min-width: 44px; min-height: 36px; padding: 2px 8px; border: 0; border-radius: 4px; background: rgba(11, 12, 24, .55); color: #ffd9c9; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; cursor: pointer; text-shadow: 0 2px 0 var(--coal), 0 0 8px rgba(0, 0, 0, .8); display: flex; flex-direction: column; align-items: center; }
.dl-num.you { left: 6%; bottom: calc(30% + var(--k, 0) * 40px); }
.dl-num.foe { right: 6%; top: calc(26% + var(--k, 0) * 40px); }
.dl-num.heal { color: #c9f2c4; text-shadow: 0 2px 0 #24521f; }
.dl-num.self { color: var(--ember-hot); font-size: 1.25rem; }
.dl-num.effect { font-size: 1.25rem; color: #ffb3a1; }
.dl-num-sub { font-family: var(--font-body); font-size: .62rem; color: #cfe9f6; text-shadow: none; }
.dl-num.pop { animation: dl-pop 520ms cubic-bezier(.2, 1.6, .4, 1) both; }
.dl-num.settled { opacity: .75; transform: scale(.82); transition: opacity var(--t-mid), transform var(--t-mid); }
.dl-num:focus-visible { outline: 2px solid var(--gold); }
@keyframes dl-pop { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 60% { opacity: 1; transform: translateY(-6px) scale(1.12); } 100% { transform: none; } }

.dl-banner { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); z-index: 9; padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--night); background: var(--ember-hot); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
:lang(th) .dl-banner { text-transform: none; letter-spacing: 0; }
.dl-banner.sudden { background: var(--coal); color: var(--bone); animation: dl-lowpulse 1.2s ease-in-out infinite; }
.dl-banner.practice { background: #8fc8e6; }
.dl-caption { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 9; text-align: center; font-size: .72rem; color: var(--ash); text-shadow: 0 1px 2px #000; pointer-events: none; padding: 0 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-skipping * { transition: none !important; }

.dl-tools { position: absolute; left: 6px; top: 6px; z-index: 10; display: flex; gap: 4px; }
.dl-tools .btn { min-height: 34px; padding: 4px 8px; font-size: .78rem; background: rgba(20, 22, 43, .78); }
.dl-tools .btn.icon { width: 34px; min-width: 34px; padding: 0; }
.dl-tools .btn .ic { width: 16px; height: 16px; }
.dl-tools .btn span { margin-left: 3px; }

/* ---------------------------------------------------------------- the last line and history */

.dl-lastline { flex: 0 0 auto; display: block; width: 100%; min-height: 26px; padding: 3px 8px; border: 0; border-radius: var(--radius); background: rgba(11, 12, 24, .5); color: var(--ash); font: inherit; font-size: .78rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dl-lastline.muted { color: var(--ash-dim); font-style: italic; }
.dl-hist { display: none; }
/* the coach strip (params.coach): between the last line and the pad, never over a gauge, the stage or the pad.
 * It caps itself: at most 30vh, and it is the one part of the column that gives way (flex-shrink, min-height 0),
 * so a tall coach scrolls inside its own box and the pad and its Lock key always stay on screen. */
.dl-coach { flex: 0 1 auto; min-height: 0; max-height: 30vh; overflow: auto; overscroll-behavior: contain; padding: 6px 10px; border-radius: var(--radius); background: rgba(46, 50, 96, .72); border: 1px solid var(--line-warm); color: var(--bone); font-size: .86rem; line-height: 1.45; }
:lang(th) .dl-coach { line-height: 1.7; }
.dl-coach.hidden { display: none; }
.dl-coach:empty { display: none; }
.has-coach .dl-lastline.muted { display: none; }
.hi-title { color: var(--ash-dim); margin-bottom: 4px; }
.hi-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hi-list li { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 6px; align-items: center; font-size: .76rem; padding: 2px 4px; border-radius: 3px; }
.hi-list li:nth-child(odd) { background: rgba(239, 230, 211, .04); }
.hi-x { color: var(--ash-dim); font-variant-numeric: tabular-nums; }
.hi-p { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-p .dl-glyph { width: 13px; height: 13px; flex: 0 0 13px; }
.hi-p.you { color: var(--gold); }
.hi-p.foe { color: var(--ochre); }

/* ---------------------------------------------------------------- the pad */

.dl-pad { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.dl-say { min-height: 1.4em; font-size: .82rem; color: var(--ash); text-align: center; line-height: 1.35; }
:lang(th) .dl-say { line-height: 1.55; }
.dl-say.warn { color: var(--ember-hot); }
.dl-say.peek { color: #8fc8e6; }
.dl-pred { display: flex; flex-direction: column; gap: 3px; }
.dl-pred.empty { display: none; }
.pr-title { font-size: .62rem; color: var(--ash-dim); text-align: center; }
.pr-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.pr-chip { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2px 2px 3px; border-radius: 4px; background: rgba(35, 38, 74, .85); border: 1px solid var(--line); font-size: .62rem; line-height: 1.2; text-align: center; min-width: 0; position: relative; }
.pr-chip.good { border-color: rgba(226, 182, 90, .55); }
.pr-chip.bad { border-color: rgba(178, 58, 42, .7); }
.pr-chip.cannot { opacity: .45; }
.pr-vs .dl-glyph { width: 15px; height: 15px; }
.pr-out { font-weight: 700; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pr-num { color: var(--ash-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pr-edge { position: absolute; top: 1px; right: 2px; color: var(--gold); }
.pr-edge .ic { width: 10px; height: 10px; }
.px-choose { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.px-opt { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(35, 38, 74, .85); color: var(--ash); font: inherit; font-size: .72rem; cursor: pointer; }
.px-opt .dl-glyph { width: 13px; height: 13px; }
.px-opt.sel { border-color: #8fc8e6; color: var(--bone); background: rgba(44, 90, 114, .7); }
.px-res { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: center; font-size: .72rem; color: var(--ash); padding: 3px 6px; border-radius: 4px; background: rgba(44, 90, 114, .25); }
.px-out { font-weight: 700; color: #cfe9f6; }

.dl-params { display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: var(--radius); background: rgba(46, 50, 96, .9); border: 1px solid var(--line-warm); animation: dl-rise 200ms var(--ease) both; }
.dp-title { text-align: center; color: var(--ash); }
.dp-choices { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dp-choice { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; min-width: 64px; padding: 3px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--indigo); color: var(--bone); font: inherit; font-size: .82rem; cursor: pointer; line-height: 1.2; }
.dp-choice .dp-cost { font-size: .62rem; color: #8fc8e6; }
.dp-choice.sel { border-color: var(--ember-hot); box-shadow: 0 0 0 2px rgba(255, 177, 94, .4); }
.dp-choice.illegal { opacity: .4; }
@keyframes dl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dl-specials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.dl-bases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: end; }
.dl-key {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 70px; min-width: 0; padding: 5px 2px 4px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--indigo-2), var(--indigo)); color: var(--bone);
  font: inherit; line-height: 1.15; text-align: center; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease), box-shadow 140ms, border-color 140ms, opacity 140ms;
}
.dl-bases { padding-top: 9px; }
.dl-bases .dl-key { transform: translateY(calc(var(--arc, 0px) * -1)); }
.dl-specials .dl-key { min-height: 52px; flex-direction: row; flex-wrap: wrap; gap: 2px 5px; padding: 4px 6px; }
.dl-key.k-empty { visibility: hidden; }
.dl-key .k-glyph .dl-glyph { width: 22px; height: 22px; }
.dl-specials .k-glyph .dl-glyph { width: 18px; height: 18px; }
.dl-key .k-name { font-size: .74rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
:lang(th) .dl-key .k-name { font-size: .72rem; line-height: 1.3; }
.dl-key .k-cost { display: flex; gap: 2px; font-size: .6rem; color: #8fc8e6; }
.dl-key .k-cost i { width: 6px; height: 6px; border-radius: 50%; background: #8fc8e6; }
.dl-key .k-cost i.free { background: transparent; border: 1px solid rgba(143, 200, 230, .5); }
.dl-key .k-io { display: flex; gap: 4px; font-size: 0; }
.dl-key .k-io .dl-glyph.mini { width: 10px; height: 10px; }
.dl-key .io-b { color: var(--gold); }
.dl-key .io-l { color: #c87a6a; opacity: .8; }
.dl-key .k-slot { font-size: .55rem; color: var(--ash-dim); letter-spacing: .08em; width: 100%; }
:lang(th) .dl-key .k-slot { letter-spacing: 0; font-size: .6rem; }
.dl-key .k-param { font-size: .62rem; color: var(--ember-hot); }
.dl-key .k-param:empty { display: none; }
.dl-key .k-hot { position: absolute; top: 2px; right: 4px; font-size: .55rem; color: var(--ash-dim); opacity: .7; }
@media (hover: none) { .dl-key .k-hot { display: none; } }
.dl-key.c-strike .k-glyph { color: var(--ember-hot); }
.dl-key.c-heavy .k-glyph { color: var(--coal); }
.dl-key.c-guard .k-glyph { color: #8fc8e6; }
.dl-key.c-step .k-glyph { color: #c9f2c4; }
.dl-key.c-focus .k-glyph { color: var(--gold); }
.dl-key.k-legend { border-color: var(--gold-deep); background: linear-gradient(180deg, #4a3a1c, var(--indigo)); }
.dl-key.k-hidden { border-color: rgba(197, 139, 63, .55); }
.dl-key:hover:not(.illegal) { border-color: var(--line-warm); }
.dl-key.sel { transform: translateY(calc(var(--arc, 0px) * -1 - 7px)); border-color: var(--ember-hot); box-shadow: 0 6px 14px rgba(240, 138, 60, .35), 0 0 0 2px rgba(255, 177, 94, .5); }
.dl-specials .dl-key.sel { transform: translateY(-4px); }
.dl-key.chosen { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.dl-key.illegal { opacity: .36; filter: grayscale(.7); }
.dl-key:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.dl-pad.waiting .dl-key:not(.chosen) { opacity: .55; }
.dl-pad.waiting .dl-key.illegal { opacity: .3; }
.dl-actions { display: flex; }
.dl-lockbtn { flex: 1 1 auto; min-height: 46px; font-size: 1rem; }
.dl-lockbtn .ic { width: 16px; height: 16px; vertical-align: -2px; }
.dl-pad.is-locked .dl-lockbtn { background: var(--indigo-2); color: var(--gold); border-color: var(--gold-deep); }
.is-practice .dl-lockbtn { box-shadow: 0 0 0 2px rgba(143, 200, 230, .5); }

/* ---------------------------------------------------------------- overlays (Unveiling, Legend, round intro, moments) */

.dl-ov { position: absolute; inset: -4px -8px; z-index: 30; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; opacity: 0; transition: opacity 240ms ease; }
.dl-ov.go { opacity: 1; }
.dl-ov.out { opacity: 0; }
.uv-tap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--ash-dim); animation: dl-blink 1.6s ease-in-out infinite; }
@keyframes dl-blink { 50% { opacity: .4; } }

.dl-unveil { background: rgba(11, 12, 24, .9); }
.uv-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(240, 138, 60, .25), transparent 60%); }
.uv-fig { position: absolute; left: 50%; top: 6%; width: 64%; max-width: 340px; aspect-ratio: 3 / 4; transform: translateX(-50%); }
.uv-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--fc, var(--gold)) 70%, transparent)); }
.uv-burn { position: absolute; inset: 0; background: linear-gradient(0deg, var(--soot) 0%, var(--soot) 45%, rgba(240, 138, 60, .9) 50%, transparent 56%); background-size: 100% 220%; background-position: 0 0; mix-blend-mode: normal; }
.dl-unveil.go .uv-burn { animation: dl-burn 1300ms ease-in 300ms both; }
@keyframes dl-burn { from { background-position: 0 0; } to { background-position: 0 100%; opacity: 0; } }
.uv-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 44px; background: linear-gradient(180deg, transparent, rgba(11, 12, 24, .96) 30%); text-align: center; }
.uv-kicker { color: var(--ember-hot); }
.uv-name { font-size: 2rem; color: var(--bone); margin: 2px 0; }
.uv-teller { color: var(--ash-dim); font-size: .65rem; margin-top: 4px; }
.uv-line { min-height: 2.8em; font-family: var(--font-display); font-style: italic; color: var(--bone); margin: 4px 0; }
:lang(th) .uv-line { font-style: normal; line-height: 1.6; }
.uv-epithet { font-family: var(--font-display); color: var(--gold); font-size: 1.15rem; opacity: 0; transform: scale(1.6); transition: opacity 300ms, transform 300ms cubic-bezier(.2, 1.6, .4, 1); }
.dl-unveil.typed .uv-epithet { opacity: 1; transform: none; }
.uv-moves { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: .82rem; opacity: 0; transition: opacity 400ms 200ms; }
.dl-unveil.typed .uv-moves { opacity: 1; }
.uv-move .k { color: var(--ash-dim); margin-right: 6px; }
.uv-move .v { color: var(--bone); font-weight: 700; }
.uv-tn { color: var(--ash); font-size: .78rem; margin: 2px auto 0; max-width: 34em; }

.dl-legend { background: var(--soot); }
.lg-paint { position: absolute; inset: 0; }
.lg-paint img { width: 100%; height: 100%; object-fit: cover; }
.dl-legend.go .lg-paint { animation: dl-push 5.6s ease-out both; }
@keyframes dl-push { from { transform: scale(1.25); filter: brightness(1.8); } 12% { filter: none; } to { transform: scale(1.04); } }
.lg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 24, .1) 20%, rgba(11, 12, 24, .92) 62%); }
.lg-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 44px; text-align: center; }
.lg-kicker { color: var(--gold); }
.lg-name { font-size: 2.1rem; color: var(--bone); margin: 4px 0; text-shadow: 0 2px 0 #000; }
.dl-legend.go .lg-name { animation: dl-brush 700ms ease-out 250ms both; }
@keyframes dl-brush { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lg-line { font-family: var(--font-display); font-style: italic; color: var(--ash); margin: 2px 0 8px; }
:lang(th) .lg-line { font-style: normal; }
.lg-law { font-size: .82rem; color: var(--ash); max-width: 34em; margin: 0 auto; }
.lg-law .k { color: var(--ash-dim); margin-right: 6px; }
.lg-stamp { display: inline-block; margin: 10px 0 4px; padding: 4px 16px; border: 3px solid currentColor; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-8deg) scale(2.4); opacity: 0; }
:lang(th) .lg-stamp { text-transform: none; letter-spacing: 0; line-height: 1.4; }
.lg-stamp.fulfilled { color: var(--gold); text-shadow: 0 0 12px rgba(226, 182, 90, .8); }
.lg-stamp.hollow { color: var(--ash-dim); }
.dl-legend.stamped .lg-stamp { opacity: 1; transform: rotate(-8deg); transition: transform 260ms cubic-bezier(.2, 1.7, .4, 1), opacity 160ms; }
.lg-effect { font-size: .82rem; color: var(--bone); opacity: 0; transition: opacity 300ms 200ms; max-width: 34em; margin: 0 auto; }
.dl-legend.stamped .lg-effect { opacity: 1; }
.dl-legend.br-hollow.stamped .lg-paint { filter: grayscale(.85) brightness(.7); transition: filter 600ms; }
.dl-ov.shake { animation: dl-shake 420ms linear; }

.dl-intro { background: rgba(11, 12, 24, .88); }
.ri-busts { position: absolute; inset: 0; }
.ri-bust { position: absolute; width: 48%; height: 56%; overflow: hidden; opacity: .55; }
.ri-bust img { width: 100%; height: 100%; object-fit: cover; }
.ri-bust.foe { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.ri-bust.you { left: 0; bottom: 0; clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.dl-intro.go .ri-bust.foe { animation: dl-pc-foe 500ms var(--ease) both; }
.dl-intro.go .ri-bust.you { animation: dl-pc-you 500ms var(--ease) both; }
.ri-text { position: relative; z-index: 2; text-align: center; padding: 18px; max-width: 32em; background: radial-gradient(closest-side, rgba(11, 12, 24, .92), rgba(11, 12, 24, .5) 70%, transparent); }
.ri-round { font-size: 2.6rem; color: var(--bone); text-shadow: 0 0 20px rgba(240, 138, 60, .6); }
.dl-intro.go .ri-round { animation: dl-slam 500ms cubic-bezier(.2, 1.6, .4, 1) 150ms both; }
.ri-score { color: var(--gold); margin: 4px 0 10px; }
.ri-line { margin: 4px 0; font-size: .86rem; color: var(--ash); }
.ri-line b { color: var(--bone); }
.ri-comeback, .ri-deciding { color: var(--ember-hot); font-size: .86rem; margin: 6px 0; }
.dl-intro .uv-tap { position: static; margin-top: 10px; }

.dl-moment { background: rgba(11, 12, 24, .8); }
.mo-box { position: relative; text-align: center; padding: 22px 20px 44px; max-width: 30em; }
.mo-title { font-size: 2.3rem; color: var(--bone); text-shadow: 0 2px 0 #000; }
.dl-moment.go .mo-title { animation: dl-slam 460ms cubic-bezier(.2, 1.6, .4, 1) both; }
.mo-text { color: var(--ash); margin-top: 6px; }
.mo-sudden { background: radial-gradient(circle, rgba(120, 20, 10, .9), rgba(11, 12, 24, .95)); }
.mo-sudden .mo-title { color: #ffd0c4; text-shadow: 0 0 20px var(--coal), 0 2px 0 #000; }
.mo-bell .mo-title { color: var(--gold); }
.mo-fall .mo-title { color: var(--ember-hot); }

/* ---------------------------------------------------------------- wide screens: stage left, pad right */

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .screen.dl-screen { padding: calc(var(--safe-t) + 10px) calc(var(--safe-r) + 16px) calc(var(--safe-b) + 12px) calc(var(--safe-l) + 16px); }
  .dl-root {
    display: grid; gap: 8px 14px;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 420px);
    grid-template-rows: auto minmax(0, auto) auto minmax(0, 1fr) auto;   /* row 2 (the coach) gives way first */
    grid-template-areas: "foe last" "stage coach" "stage pad" "stage hist" "you hist";
  }
  .dl-hud.foe { grid-area: foe; }
  .dl-hud.you { grid-area: you; }
  .dl-stage { grid-area: stage; min-height: 0; }
  .dl-lastline { grid-area: last; align-self: start; white-space: normal; }
  .dl-pad { grid-area: pad; }
  .dl-coach { grid-area: coach; max-height: 34vh; }
  .dl-hist { grid-area: hist; display: block; overflow: auto; min-height: 0; padding: 8px; border-radius: var(--radius); background: rgba(20, 22, 43, .6); border: 1px solid var(--line); cursor: pointer; }
  .dl-key { min-height: 84px; }
  .dl-key .k-name { font-size: .82rem; }
  .dl-fig { width: 30%; }
  .dl-card { width: 72px; height: 100px; }
  .dl-card.you { left: calc(50% - 120px); }
  .dl-card.foe { right: calc(50% - 120px); }
  .dl-card-name { font-size: .7rem; }
  .pl-word .w { font-size: 3rem; }
  .dl-slam .sl-name { font-size: 2rem; }
  .dl-ov { inset: -10px -16px; }
  .uv-fig { top: 4%; width: 34%; }
  .uv-text, .lg-text { padding-left: 15%; padding-right: 15%; }
}

/* short phones: tighten the pad; with a coach the stage may give up to 60px so the coach keeps a few lines */
@media (max-height: 700px) {
  .has-coach .dl-stage { min-height: 90px; }
  .dl-key { min-height: 60px; }
  .dl-specials .dl-key { min-height: 44px; }
  .dl-hud { padding: 3px 6px 4px; }
  .dl-lockbtn { min-height: 42px; }
}

/* ---------------------------------------------------------------- reduced motion: fades only, no tilt, no shake */

[data-motion="reduce"] .dl-tilt { transform: none; transition: none; }
[data-motion="reduce"] .dl-root.edge-swing .dl-diag, [data-motion="reduce"] .dl-edge-token.on.pop, [data-motion="reduce"] .dl-hud.uv-flash .dl-epi { animation: none; }
[data-motion="reduce"] .dl-hud.uv-flash, [data-motion="reduce"] .dl-stage.fall-flash::after { animation: dl-fade 300ms ease both; }
[data-motion="reduce"] .dl-fig.fallen, [data-motion="reduce"] .dl-fig.you.fallen, [data-motion="reduce"] .dl-fig.foe.fallen { transform: none; transition: filter 300ms ease, opacity 300ms ease; }
[data-motion="reduce"] .dl-stage.shake, [data-motion="reduce"] .dl-ov.shake, [data-motion="reduce"] .dl-ring.urgent,
[data-motion="reduce"] .dl-life.low .dl-life-fill, [data-motion="reduce"] .dl-banner.sudden, [data-motion="reduce"] .uv-tap,
[data-motion="reduce"] .dl-card.knock, [data-motion="reduce"] .dl-flash.go { animation: none; }
[data-motion="reduce"] .dl-slam.go, [data-motion="reduce"] .dl-panel.go .pc.you, [data-motion="reduce"] .dl-panel.go .pc.foe,
[data-motion="reduce"] .dl-panel.go .pl-word, [data-motion="reduce"] .dl-num.pop, [data-motion="reduce"] .dl-intro.go .ri-round,
[data-motion="reduce"] .dl-intro.go .ri-bust.foe, [data-motion="reduce"] .dl-intro.go .ri-bust.you, [data-motion="reduce"] .dl-moment.go .mo-title,
[data-motion="reduce"] .dl-legend.go .lg-paint, [data-motion="reduce"] .dl-legend.go .lg-name, [data-motion="reduce"] .dl-params,
[data-motion="reduce"] .dl-unveil.go .uv-burn { animation: dl-fade 300ms ease both; }
[data-motion="reduce"] .dl-slam.go.out { animation: dl-fadeout 200ms ease both; }
[data-motion="reduce"] .dl-panel.go .pl-word { transform: translate(-50%, -50%) rotate(-6deg); }
[data-motion="reduce"] .dl-unveil.go .uv-burn { opacity: 0; }
[data-motion="reduce"] .dl-panel.go .pl-sparks i, [data-motion="reduce"] .dl-panel.go .pl-shield .shard,
[data-motion="reduce"] .dl-panel.go .pl-crack, [data-motion="reduce"] .dl-panel.go .pl-cut { animation: none; opacity: 0; }
[data-motion="reduce"] .dl-card-in { transition: none; }
[data-motion="reduce"] .dl-key, [data-motion="reduce"] .dl-key.sel, [data-motion="reduce"] .dl-bases .dl-key { transform: none; transition: none; }
[data-motion="reduce"] .dl-key.sel { box-shadow: 0 0 0 3px var(--ember-hot); }
[data-motion="reduce"] .uv-epithet, [data-motion="reduce"] .lg-stamp, [data-motion="reduce"] .dl-legend.stamped .lg-stamp { transform: rotate(-8deg); transition: opacity 300ms; }
[data-motion="reduce"] .uv-epithet { transform: none; }
[data-motion="reduce"] .dl-life-ghost { transition: none; }
@keyframes dl-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- info sheets (move, fighter, log, number, menu) */

.dl-sheet { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; }
.dl-sheet > .scroll, .dl-sheet > .fi-body, .dl-sheet > .lg-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.dl-sheet h2.name { margin: 0; font-size: 1.35rem; color: var(--text-strong); }
.dl-sheet .epithet { color: var(--gold); font-style: italic; font-size: .9rem; }
.fi-head { display: flex; gap: 12px; align-items: flex-end; }
.fi-portrait { flex: 0 0 96px; width: 96px; height: 120px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--fc, var(--gold)); background: var(--indigo-2); }
.fi-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fi-head .namebar { min-width: 0; flex: 1 1 auto; }
.fi-n { font-size: .78rem; color: var(--ash-dim); margin-top: 2px; }
.fi-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.fi-tags:empty { display: none; }
.fi-body { display: flex; flex-direction: column; gap: 10px; }
h3.fi-h { margin: 6px 0 0; font-size: 1rem; color: var(--text-strong); }
.fi-k { color: var(--ash-dim); font-size: .66rem; }
.fi-move { padding: 6px 8px; border-radius: var(--radius); background: rgba(46, 50, 96, .55); border: 1px solid var(--line); }
.fi-move.legend { border-color: var(--gold-deep); background: rgba(74, 58, 28, .45); }
.fi-move b { color: var(--bone); }
.fi-t { margin: 2px 0 0; color: var(--ash); line-height: 1.45; }
:lang(th) .fi-t { line-height: 1.65; }
.fi-hist { margin: 0; padding-left: 18px; font-size: .8rem; color: var(--ash); }
.fi-x { color: var(--ash-dim); margin-right: 4px; font-variant-numeric: tabular-nums; }
.ms-head { display: flex; gap: 10px; align-items: center; }
.ms-glyph .dl-glyph { width: 34px; height: 34px; color: var(--ember-hot); }
.ms-params { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--ash); display: flex; flex-direction: column; gap: 3px; }
.lg-body { display: flex; flex-direction: column; gap: 6px; }
details.lg-round { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px; background: rgba(20, 22, 43, .5); }
details.lg-round > summary { cursor: pointer; color: var(--text-strong); font-weight: 700; padding: 4px 0; }
ol.lg-list { margin: 0; padding: 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
ol.lg-list li { font-size: .82rem; line-height: 1.45; color: var(--ash); border-top: 1px solid var(--line); padding-top: 5px; }
:lang(th) ol.lg-list li { line-height: 1.65; }
.lg-x { color: var(--gold); font-size: .66rem; }
ul.nm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
ul.nm-list li { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--ash); }
.nm-a { flex: 0 0 auto; font-weight: 700; color: var(--bone); font-variant-numeric: tabular-nums; }
.nm-t { min-width: 0; }
.mn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mn-row > b { color: var(--text-strong); font-weight: 600; }
.mn-keys { line-height: 1.6; }
.mn-confirm { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line-warm); }
