/* Duel page: two promos side by side (desktop) or stacked (phone). */
.duel-page { background: var(--bg); min-height: 100dvh; }
.dwrap { max-width: 980px; margin: 0 auto; padding: 84px 16px 40px; outline: none; }
.dhead { text-align: center; margin: 0 0 14px; }
.dtitle { font: 800 clamp(24px, 5vw, 38px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.dmeta { margin: 8px 0 0; color: var(--muted); font-size: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dprogress { color: var(--lime); font-weight: 700; font-variant-numeric: tabular-nums; }

.dpair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.dvs { font: 800 18px var(--display); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.dcard { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .25s, transform .25s; }
.dstage { position: relative; aspect-ratio: 9 / 16; height: min(66dvh, 640px); width: auto; max-width: 100%; border-radius: 22px; overflow: hidden; background: var(--surface); border: 2px solid var(--line); transition: border-color .25s; }
.dvideo { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.dmute { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 10, 15, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.dmute svg { width: 20px; height: 20px; fill: currentColor; }
.dmute[aria-pressed="true"] { background: var(--lime); color: #0a0a0f; }
.dinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(10, 10, 15, .85)); }
.dwho { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.dwho:hover { text-decoration: underline; }
.dname { margin: 2px 0 0; color: #e9e7f2; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dbadge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 8px; background: var(--lime); color: #0a0a0f; font-weight: 800; font-size: 13px; }

.dpick { width: min(100%, calc(min(66dvh, 640px) * 9 / 16)); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); color: #fff; font: 700 16px var(--body); cursor: pointer; transition: border-color .2s, background .2s, transform .12s; }
.dpick:hover { border-color: var(--lime); }
.dpick:active { transform: scale(.98); }
.dpick:focus-visible, .dmute:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.dchev { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.dpick:disabled { cursor: default; }

.dcard.is-picked .dstage { border-color: var(--lime); }
.dcard.is-picked .dpick { background: var(--lime); border-color: var(--lime); color: #0a0a0f; }
.dcard.is-picked .dchev { stroke: #0a0a0f; }
.dcard.is-other { opacity: .45; }

.dfoot { display: flex; justify-content: center; margin-top: 18px; min-height: 52px; }
.dnext { min-width: 200px; }

.dend { max-width: 520px; margin: 40px auto 0; padding: 28px 22px; text-align: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.dend-t { font: 800 30px var(--display); margin: 0 0 10px; }
.dend-b { color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
.dend-cta { display: flex; flex-direction: column; gap: 10px; }

/* Phone: the two videos stacked, each about half the screen. */
@media (max-width: 640px) {
  .dwrap { padding: 72px 12px 24px; }
  .dpair { grid-template-columns: 1fr; gap: 8px; }
  .dvs { text-align: center; font-size: 13px; margin: -2px 0; }
  .dcard { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .dstage { aspect-ratio: auto; width: 100%; height: 28dvh; border-radius: 18px; }
  .dpick { width: 100%; min-height: 46px; font-size: 15px; }
  .dtitle { font-size: 22px; }
  .dhead { margin-bottom: 10px; }
  .dname { -webkit-line-clamp: 1; }
}

@media (prefers-reduced-motion: reduce) { .dcard, .dstage, .dpick { transition: none; } }
.dwrap [hidden] { display: none !important; }
