/* 20 Dollar Draft. The original Android game's plum table, cream option cards and
   playful cyan/pink/gold palette, adapted to web solo, room and shared-device play.
   Geometry and accessible interaction rules below also support short screens and RTL. */

.dp {
  --dp-gap: var(--space-3);
  position: relative;
  --dp-solid-1: color-mix(in srgb, var(--bg-raised) 90%, var(--primary));
  --dp-solid-2: color-mix(in srgb, var(--bg-raised) 82%, var(--primary));
  min-block-size: 540px;
  scroll-margin-block-start: calc(var(--header-stuck) + var(--space-2));
}
.dp [hidden] { display: none !important; }
.dp :is(h2, h3) { text-wrap: balance; }
.dp :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dp button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:lang(ja) .dp, :lang(zh) .dp { word-break: keep-all; overflow-wrap: anywhere; }

[data-seat="1"] { --seat: var(--neon-cyan); }
[data-seat="2"] { --seat: var(--neon-pink); }
[data-seat="3"] { --seat: var(--neon-amber); }
[data-seat="4"] { --seat: var(--neon-lime); }
[data-seat="5"] { --seat: var(--primary); }
.dp-swatch {
  flex: none;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 3px;
  background: var(--seat, var(--text-faint));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--seat, var(--text-faint)) 40%, transparent);
}

.dp-label { display: block; margin: 0 0 var(--space-2); color: var(--text); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em; }
.dp-hint { margin: 0; color: var(--text-muted); font-size: var(--step--1); line-height: 1.5; }
.dp-status { min-block-size: 1.5em; margin: 0; color: var(--text-muted); font-size: var(--step--1); line-height: 1.5; }
.dp-banner {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--step--1);
  line-height: 1.5;
}
.dp-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.dp-actions .btn { min-block-size: 48px; }
.dp-actions .btn svg, .dp-tool svg { flex: none; }

/* ── Menu: the night's rundown ───────────────────────────────────────────────────────────────────────── */
.dp-menu__title, .dp-setup__title, .dp-lobby__title, .dp-results__title, .dp-matching__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.dp-menu__title { margin-block-end: var(--space-4); }
.dp-menu__title:focus, .dp-setup__title:focus, .dp-lobby__title:focus, .dp-results__title:focus, .dp-matching__title:focus { outline: none; }
.dp-modes { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; max-inline-size: 760px; }
.dp-mode {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: var(--space-4);
  inline-size: 100%;
  min-block-size: 80px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.dp-mode:hover { background: var(--surface-2); border-color: var(--border-strong); }
.dp-mode .dp-icon {
  box-sizing: content-box;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
}
.dp-mode[data-primary] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.dp-mode[data-primary] .dp-icon { background: var(--accent); color: var(--accent-ink); }
.dp-mode__text { display: grid; gap: 2px; min-inline-size: 0; }
.dp-mode__name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.dp-mode__hint { color: var(--text-muted); font-size: var(--step--1); line-height: 1.4; }
.dp-mode__go { color: var(--text-faint); }
[dir="rtl"] .dp-mode__go, [dir="rtl"] .dp-back svg { transform: scaleX(-1); }

.dp-join { display: grid; gap: var(--space-2); max-inline-size: 760px; margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: 1px solid var(--border); }
.dp-join__label { color: var(--text); font-weight: 600; }
.dp-join__row { display: flex; gap: var(--space-2); }
.dp-join__row .dp-input { flex: 1 1 auto; min-inline-size: 0; }
.dp-join__go { flex: none; min-block-size: 48px; }

.dp-menu { display: grid; gap: 0 var(--space-7); }
.dp-poster { display: none; }
@media (min-width: 1024px) {
  .dp-menu { grid-template-columns: minmax(0, 760px) minmax(260px, 1fr); align-items: start; }
  .dp-menu > :not(.dp-poster) { grid-column: 1; }
  .dp-poster {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: var(--space-5);
    margin-block-start: calc(var(--step-2) + var(--space-4));
    padding: var(--space-6) var(--space-4) var(--space-7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    overflow: hidden;
  }
  .dp-poster.dp-poster > * { grid-area: auto; }
  .dp-poster .dp-card { justify-self: center; max-inline-size: 90%; padding: 14px 22px 10px; text-align: center; }
  .dp-poster .dp-card__theme { font-size: var(--step-2); }
  .dp-poster__lot { margin: 0; color: var(--text); font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
  .dp-poster__paddles { display: flex; gap: 10px; padding-block-end: 14px; }
  .dp-poster__paddles .dp-paddle { inline-size: 62px; cursor: default; }
  .dp-poster__paddles .dp-paddle:nth-child(2) { transform: translateY(-14px) rotate(4deg); }
  .dp-poster .dp-stamp__word { justify-self: center; font-size: 2.4rem; border-width: 4px; }
}

/* ── Forms ───────────────────────────────────────────────────────────────────────────────────────────── */
.dp-setup__head { display: flex; align-items: center; gap: var(--space-2); margin-block-end: var(--space-4); }
.dp-back { inline-size: 48px; min-block-size: 48px; padding: 0; }
.dp-form { display: grid; gap: var(--space-5); max-inline-size: 640px; }
.dp-form > * { margin: 0; }
.dp-field { display: grid; }
.dp-input {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  font-size: max(16px, var(--step-0));
  caret-color: var(--accent);
}
.dp-input::placeholder { color: var(--text-faint); }
.dp-input:hover { border-color: color-mix(in srgb, var(--border-control) 70%, var(--text)); }
.dp-select { appearance: none; padding-inline-end: 40px; background-image: none; }
.dp-field:has(.dp-select) { position: relative; }
.dp-field:has(.dp-select)::after {
  content: '';
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 20px;
  inline-size: 8px;
  block-size: 8px;
  border-inline-end: 2px solid var(--text-muted);
  border-block-end: 2px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.dp-input--code { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; }
.dp-list { min-block-size: 9rem; resize: vertical; line-height: 1.5; }
.dp-names { display: grid; gap: var(--space-2); }
.dp-name { display: flex; align-items: center; gap: var(--space-3); }
.dp-name .dp-swatch { inline-size: 14px; block-size: 40px; border-radius: 4px; }

.dp-seg, .dp-rules { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.dp-seg__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dp-seg__item { position: relative; }
.dp-seg__item input, .dp-rule input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.dp-seg__item label {
  display: inline-grid;
  place-items: center;
  min-inline-size: 56px;
  min-block-size: 48px;
  padding-inline: var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  cursor: pointer;
}
.dp-seg__item input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface-1)); color: var(--text); }
.dp-seg__item input:focus-visible + label, .dp-rule input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.dp-rules__list { display: grid; gap: var(--space-2); }
@media (min-width: 560px) { .dp-rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-rule { position: relative; display: grid; }
.dp-rule label {
  display: grid;
  gap: 2px;
  min-block-size: 56px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  cursor: pointer;
}
.dp-rule input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-1)); }
.dp-rule__name { color: var(--text); font-weight: 600; }
.dp-rule__text { color: var(--text-muted); font-size: var(--step--1); }
.dp-steppers { display: grid; gap: var(--space-2); margin-block-start: var(--space-3); }
.dp-stepper { display: grid; grid-template-columns: minmax(0, 1fr) 48px 5.5rem 48px; align-items: center; gap: var(--space-2); }
.dp-stepper__label { color: var(--text-muted); }
.dp-stepper__btn {
  display: grid;
  place-items: center;
  block-size: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.dp-stepper__btn:hover { background: var(--surface-3); }
.dp-stepper__value { color: var(--text); font-family: var(--font-display); font-size: var(--step-2); text-align: center; font-variant-numeric: tabular-nums; }
.dp-go { min-block-size: 56px; font-size: var(--step-1); justify-self: start; padding-inline: var(--space-6); }
.dp-rule-line { margin: var(--space-2) 0; border: 0; border-block-start: 1px solid var(--border); }
.dp-roomjoin, .dp-roomcreate { display: grid; gap: var(--space-5); }

/* ── Lobby: the room code on the marquee ─────────────────────────────────────────────────────────────── */
.dp-lobby { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .dp-lobby { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .dp-lobby__seats, .dp-lobby__foot { grid-column: 1 / -1; } }
.dp-lobby__head { display: grid; gap: var(--space-3); }
.dp-code {
  justify-self: start;
  margin: 0;
  padding: var(--space-2) var(--space-5) var(--space-1);
  border: 2px solid var(--border-strong);
  border-block-start: 5px dotted var(--neon-amber);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 3vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.dp-qr { display: grid; justify-items: center; gap: var(--space-2); margin: 0; }
.dp-qr__code { inline-size: 196px; block-size: 196px; padding: 0; border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.dp-qr__code svg { display: block; inline-size: 100%; block-size: 100%; }
.dp-qr figcaption { color: var(--text-muted); font-size: var(--step--1); }
.dp-lobby__count { margin: 0 0 var(--space-2); color: var(--text-muted); }
.dp-roster { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .dp-roster { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.dp-roster__seat { display: flex; align-items: center; gap: var(--space-3); min-block-size: 52px; padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-1); }
.dp-roster__seat--empty { border-style: dashed; background: transparent; color: var(--text-faint); }
.dp-roster__name { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.dp-roster__seat--empty .dp-roster__name { color: var(--text-faint); font-weight: 400; letter-spacing: 0.2em; }
.dp-tag { flex: none; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dp-lobby__foot { display: grid; gap: var(--space-3); }
.dp-lobby__foot .dp-stepper { max-inline-size: 420px; }

/* ── Matching: a searchlight over the audience ───────────────────────────────────────────────────────── */
.dp-matching { display: grid; justify-items: center; gap: var(--space-3); padding-block: var(--space-7); text-align: center; }
.dp-beam { display: flex; gap: 10px; block-size: 28px; align-items: end; }
.dp-beam span { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--neon-amber); animation: dp-bulb 1.2s var(--ease) infinite; }
.dp-beam span:nth-child(2) { animation-delay: 0.2s; }
.dp-beam span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dp-bulb { 0%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-10px); } }
.dp-matching__time { margin: 0; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dp-offer { display: grid; justify-items: center; gap: var(--space-3); max-inline-size: 52ch; padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-1); }
.dp-offer p { margin: 0; color: var(--text); }

/* ── Live: the auction owns the screen ─────────────────────────────────────────────────────────────────
   During a match the stage sits in .dp-layer on <body> (draft-play.mjs enterLive, the play shell's pattern
   scoped to this game): fixed over the page at 100dvh with safe-area padding, the page behind it inert and
   unscrollable, restored on exit. Phones hold every 2-player paddle and 3-5 player rows without scrolling;
   when a short screen cannot, only the rows scroll and the option and clock stay pinned. */
html.dp-live, html.dp-live body { overflow: hidden; overscroll-behavior: none; }
.dp-layer {
  --dp-gap: var(--space-2);
  position: fixed;
  inset: 0;
  z-index: 2500;                 /* as the play shell: above header and drawer, below site modals (3000) */
  display: flex;
  min-block-size: 0;
  block-size: 100dvh;
  background: var(--bg);
  color: var(--text);
}
.dp-layer[hidden] { display: none; }

.dp-stage {
  --dp-pad: var(--space-2);
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--dp-gap);
  inline-size: 100%;
  max-inline-size: 1280px;
  min-block-size: 0;
  margin-inline: auto;
  padding: max(var(--dp-pad), env(safe-area-inset-top, 0px)) max(var(--dp-pad), env(safe-area-inset-right, 0px)) max(var(--dp-pad), env(safe-area-inset-bottom, 0px)) max(var(--dp-pad), env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  isolation: isolate;
}
.dp-stage:focus { outline: none; }
@media (min-width: 900px) { .dp-stage { --dp-pad: var(--space-4); --dp-gap: var(--space-3); } }

/* The game bar (3-5 players, solo, online): Leave and the bid ticker. */
.dp-bar { flex: none; display: flex; align-items: center; gap: var(--space-2); min-block-size: 44px; }
.dp-bar__feed { position: relative; flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; min-inline-size: 0; overflow: hidden; }
.dp-bar .dp-ticker { flex: 1 1 auto; min-inline-size: 0; }
.dp-tool { flex: none; min-block-size: 44px; padding-inline: var(--space-3); font-size: var(--step--1); }
.dp-notice { margin: 0; padding: var(--space-1) var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--dp-solid-2); color: var(--text); font-size: var(--step--1); line-height: 1.3; }
.dp-notice--warn { border-color: color-mix(in srgb, var(--neon-amber) 50%, var(--border)); }
/* A notice takes the ticker's place on an opaque plate: nothing shows through, nothing moves. */
.dp-bar__feed > .dp-notice { position: absolute; inset: 0; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding-block: 5px; overflow: hidden; }
.dp-stage__notes { position: absolute; inset-inline: var(--space-4); inset-block-start: 50%; z-index: 4; display: grid; gap: var(--space-1); transform: translateY(-50%); pointer-events: none; }
.dp-stage__notes:not(:has(> :not([hidden]))) { display: none; }

/* The show block: card, option count and title, leading bid (or the coin line in the same cell), ring. */
.dp-show {
  position: relative;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "card ring" "count ring" "lot lot" "lead lead";
  align-content: center;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.dp-card {
  grid-area: card;
  justify-self: start;
  display: grid;
  gap: 2px;
  max-inline-size: 100%;
  padding: 10px 14px 8px;
  border: 1px solid var(--border-strong);
  border-block-start: 5px dotted var(--neon-amber);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.35);
  transform: rotate(-1.5deg);
  transform-origin: 30% 80%;
}
[dir="rtl"] .dp-card { transform: rotate(1.5deg); }
.dp-card.is-dealt { animation: dp-deal 620ms var(--ease) both; }
@keyframes dp-deal {
  from { transform: translate(-30%, -60%) rotate(-16deg); opacity: 0; filter: blur(3px); }
  to { transform: rotate(-1.5deg); opacity: 1; filter: blur(0); }
}
.dp-card__theme { color: var(--text); font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.dp-card__tag { color: var(--text-muted); font-size: var(--step--1); line-height: 1.35; }
.dp-lot__count { grid-area: count; justify-self: start; margin: 0; color: var(--text-muted); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-lot__title {
  grid-area: lot;
  display: grid;
  place-items: center;
  min-block-size: 2.04em;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
:is(:lang(ja), :lang(zh), :lang(hi), :lang(ar)) .dp-lot__title { text-transform: none; font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.8rem); line-height: 1.2; }
.dp-lot__title.is-new { animation: dp-lot 180ms var(--ease) both; }
@keyframes dp-lot { from { transform: translateY(5px); } to { transform: none; } }
.dp-lead { grid-area: lead; display: flex; align-items: baseline; justify-content: center; gap: var(--space-3); min-block-size: 3rem; min-inline-size: 0; }
.dp-lead__amount { min-inline-size: 3ch; color: var(--seat, var(--text-faint)); font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 600; line-height: 1; text-align: end; font-variant-numeric: tabular-nums; }
.dp-show:not([data-lead=""]) .dp-lead__amount { color: var(--seat); }
.dp-show[data-lead=""] .dp-lead__amount { color: var(--text-faint); }
.dp-show[data-lead="1"] { --seat: var(--neon-cyan); }
.dp-show[data-lead="2"] { --seat: var(--neon-pink); }
.dp-show[data-lead="3"] { --seat: var(--neon-amber); }
.dp-show[data-lead="4"] { --seat: var(--neon-lime); }
.dp-show[data-lead="5"] { --seat: var(--primary); }
.dp-lead__who { min-inline-size: 0; color: var(--text-muted); font-size: var(--step-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The coin for an option nobody bid on replaces the leading-bid line in place (same cell, no overlap). */
.dp-coin { grid-area: lead; justify-self: center; display: flex; align-items: center; gap: var(--space-3); min-inline-size: 0; max-inline-size: 100%; }
.dp-show[data-coin="true"] .dp-lead, .dp-show[data-coin="false"] .dp-coin { visibility: hidden; }
.dp-coin__disc { flex: none; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--neon-amber); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--neon-amber) 60%, var(--primary-ink)); }
.dp-show[data-coin="true"] .dp-coin__disc { animation: dp-coin 600ms linear infinite; }
@keyframes dp-coin { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.dp-coin__text { display: grid; min-inline-size: 0; line-height: 1.3; text-align: start; }
.dp-coin__title, .dp-coin__who { overflow: hidden; font-size: var(--step--1); text-overflow: ellipsis; white-space: nowrap; }
.dp-coin__title { color: var(--text); font-weight: 700; }
.dp-coin__who { color: var(--text-muted); }

/* Countdown ring. */
.dp-ring { grid-area: ring; align-self: start; position: relative; inline-size: 72px; block-size: 72px; flex: none; }
.dp-ring svg { display: block; inline-size: 100%; block-size: 100%; }
.dp-ring__track { fill: none; stroke: var(--surface-3); stroke-width: 6; }
.dp-ring__arc { fill: none; stroke: var(--neon-cyan); stroke-width: 6; stroke-linecap: round; transition: stroke var(--dur-fast) var(--ease); }
.dp-ring__time { position: absolute; inset: 0; display: grid; place-items: center; padding-block-start: 4px; color: var(--text); font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-ring[data-urgent="true"] .dp-ring__arc { stroke: var(--danger); }
.dp-ring[data-urgent="true"] .dp-ring__time { color: var(--danger); animation: dp-tick 1s steps(1) infinite; }
@keyframes dp-tick { 0% { transform: scale(1.14); } 50% { transform: scale(1); } }

/* SOLD: an ink stamp on an opaque plate over the whole show block (nothing behind it shows through). */
.dp-stamp {
  position: absolute;
  inset: -1px;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-2);
  border-radius: inherit;
  background: var(--dp-solid-1);
  pointer-events: none;
}
.dp-stamp__word {
  padding: 0.12em 0.42em 0;
  border: 5px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 2.6rem + 4vw, 5.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent);
}
.dp-stamp__who { max-inline-size: calc(100% - 2 * var(--space-3)); padding: 4px 12px; overflow: hidden; border-radius: var(--radius-pill); background: var(--seat, var(--surface-3)); color: var(--primary-ink); font-weight: 700; font-size: var(--step-0); text-overflow: ellipsis; white-space: nowrap; }
.dp-stamp.is-on .dp-stamp__word { animation: dp-stamp 360ms cubic-bezier(0.2, 0.9, 0.2, 1.15) both; }
.dp-stamp.is-on .dp-stamp__who { animation: dp-fade 300ms 180ms var(--ease) both; }
@keyframes dp-stamp { from { transform: rotate(-16deg) scale(2.2); opacity: 0; filter: blur(6px); } 70% { opacity: 1; filter: blur(0); } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes dp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Ticker: the latest bids and reactions, newest first. */
.dp-ticker { display: flex; gap: var(--space-2); block-size: 36px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.dp-tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  block-size: 36px;
  padding-inline: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: dp-tick-in 300ms var(--ease) both;
}
.dp-tick::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--seat); }
.dp-tick--emote { border-style: dashed; color: var(--text-muted); }
@keyframes dp-tick-in { from { opacity: 0; transform: translateX(calc(-16px * var(--dp-dir, 1))); } to { opacity: 1; transform: none; } }
[dir="rtl"] .dp-tick { --dp-dir: -1; }

/* Seats and paddles. */
.dp-seat { flex: none; display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-1); transition: border-color var(--dur-fast) var(--ease); }
.dp-seat[data-lead="true"] { border-color: var(--seat); }
.dp-seat[data-lead="true"] .dp-seat__note { color: var(--seat); font-weight: 700; }
.dp-seat[data-out="true"] .dp-seat__money { color: var(--text-muted); }
.dp-seat[data-connected="false"] .dp-seat__name::after { content: ' ·  · ·'; color: var(--text-faint); }
.dp-seat.is-won { animation: dp-won 700ms var(--ease); }
@keyframes dp-won { 30% { box-shadow: 0 0 0 3px var(--seat); } }
.dp-seat__head { display: flex; align-items: center; gap: var(--space-2); min-block-size: 24px; }
.dp-seat__name { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dp-seat__money { flex: none; min-inline-size: 5.5ch; color: var(--seat); font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1; text-align: end; font-variant-numeric: tabular-nums; }
.dp-seat__note { flex: none; min-inline-size: 0; max-inline-size: 10ch; overflow: hidden; color: var(--text-muted); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.dp-seat__note:empty { display: none; }
.dp-pips { display: inline-flex; gap: 3px; flex: none; }
.dp-pip { inline-size: 9px; block-size: 14px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--seat) 55%, var(--border)); }
.dp-pip.is-full { background: var(--seat); border-color: var(--seat); }

.dp-controls { min-block-size: 74px; }
.dp-controls__title, .dp-controls__wait { margin: 0 0 var(--space-2); color: var(--text-muted); font-size: var(--step--1); }
.dp-controls__wait { display: grid; place-items: center; min-block-size: 60px; margin: 0; text-align: center; }
/* A paddle: the raise big (+$1, +$2, +$5 or All in), the bid it makes small. */
.dp-paddles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.8fr); justify-content: center; gap: var(--space-2); padding-block-end: 14px; }
@media (min-width: 640px) { .dp-paddles { grid-template-columns: repeat(3, minmax(0, 150px)) minmax(0, 120px); } }
.dp-paddle {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  min-inline-size: 0;
  min-block-size: 60px;
  padding: 6px 4px;
  border: 0;
  border-radius: 30px 30px 18px 18px;
  background: var(--seat);
  color: var(--primary-ink);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--seat) 55%, #000), 0 8px 16px rgb(0 0 0 / 0.3);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
/* The paddle's handle. */
.dp-paddle::after {
  content: '';
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: calc(50% - 5px);
  inline-size: 10px;
  block-size: 13px;
  border-radius: 0 0 4px 4px;
  background: color-mix(in srgb, var(--seat) 50%, #2a1f12);
}
.dp-paddle:not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-2px); }
.dp-paddle:not(:disabled):not([aria-disabled="true"]):active, .dp-paddle.is-hit { transform: translateY(2px) rotate(-3deg); box-shadow: 0 1px 0 color-mix(in srgb, var(--seat) 55%, #000); }
.dp-paddle:is(:disabled, [aria-disabled="true"]) { background: transparent; color: var(--text-faint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--seat) 28%, var(--border)); cursor: default; opacity: 0.55; }
.dp-paddle:is(:disabled, [aria-disabled="true"])::after { background: var(--surface-3); }
.dp-paddle[aria-disabled="true"] .dp-paddle__bid { text-decoration: line-through; }
.dp-paddle__amount { max-inline-size: 100%; direction: ltr; unicode-bidi: isolate; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-paddle__bid { max-inline-size: 100%; overflow: hidden; font-size: 0.74rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.dp-paddle--allin .dp-paddle__amount { direction: inherit; unicode-bidi: plaintext; font-size: 1.1rem; line-height: 1; text-transform: uppercase; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.dp-pass {
  min-inline-size: 0;
  min-block-size: 60px;
  border: 1px solid var(--border-control);
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dp-pass:hover:not(:disabled) { background: var(--surface-2); }
.dp-pass:disabled { border-color: var(--border); color: var(--text-muted); cursor: default; opacity: 0.6; }
.dp-give { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-2); padding-block-end: 14px; }
.dp-paddle--give .dp-paddle__amount { direction: inherit; unicode-bidi: plaintext; max-inline-size: 100%; overflow: hidden; padding-inline: 8px; font-size: 1.35rem; text-overflow: ellipsis; white-space: nowrap; }

/* The floor under the show: the bidders. Only the rows scroll on a short screen. */
.dp-floor { flex: 0 1 auto; display: flex; flex-direction: column; gap: var(--dp-gap); min-block-size: 0; }
.dp-rows, .dp-board { flex: 0 1 auto; display: grid; align-content: start; gap: var(--space-2); min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* Single layout (solo, online): my paddles big at the bottom, the others as a compact board. */
@media (min-width: 640px) { .dp-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-seat--mini { padding: var(--space-2) var(--space-3); }
.dp-seat--mine { border-color: color-mix(in srgb, var(--seat) 45%, var(--border)); }
.dp-seat--mine .dp-paddle, .dp-seat--mine .dp-pass { min-block-size: 68px; }
.dp-emotes { flex: none; display: flex; gap: var(--space-2); overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin; }
.dp-emote { flex: none; min-block-size: 44px; padding-inline: var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font: inherit; font-size: var(--step--1); cursor: pointer; }
.dp-emote:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.dp-emote:disabled { opacity: 0.5; cursor: default; }

/* Table layout (3-5 players on one device): one compact row per bidder. */
.dp-rows .dp-seat { gap: 4px; padding: 6px var(--space-3) var(--space-2); }
.dp-rows .dp-seat__head { flex-wrap: wrap; row-gap: 2px; min-block-size: 22px; }
.dp-rows .dp-paddle, .dp-rows .dp-pass { min-block-size: 56px; }
.dp-rows .dp-paddle::after { display: none; }
.dp-rows .dp-paddles { padding-block-end: 0; }
.dp-rows .dp-paddle__amount { font-size: 1.6rem; }
.dp-rows .dp-controls, .dp-rows .dp-controls__wait { min-block-size: 56px; }
@media (max-width: 559.98px) {
  .dp-stage[data-layout="table"] .dp-card__tag { display: none; }
  .dp-stage:is([data-layout="table"], [data-layout="single"]) .dp-show { padding: var(--space-2) var(--space-3); }
  .dp-stage:is([data-layout="table"], [data-layout="single"]) .dp-lot__title { font-size: clamp(1.6rem, 1.3rem + 2vw, 2.4rem); }
  .dp-stage:is([data-layout="table"], [data-layout="single"]) .dp-lead { min-block-size: 2.6rem; }
  .dp-stage:is([data-layout="table"], [data-layout="single"]) .dp-lead__amount { font-size: 2.3rem; }
}
@media (min-width: 700px) {
  .dp-rows .dp-seat { grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.6fr); align-items: center; }
  .dp-rows .dp-seat__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--space-2); }
  .dp-rows .dp-seat__name { grid-column: 2; }
  .dp-rows .dp-seat__money { grid-column: 2; justify-self: start; text-align: start; }
  .dp-rows .dp-pips { grid-column: 2; }
  .dp-rows .dp-seat__note { grid-column: 2; }
}
@media (min-width: 1100px) {
  /* The bar, the show and the floor hold together in the middle of a tall screen instead of the bar stranded at the top. */
  .dp-stage:is([data-layout="table"], [data-layout="single"]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto minmax(0, auto); align-content: center; column-gap: var(--space-5); }
  .dp-stage > .dp-bar { grid-column: 1 / -1; }
  .dp-stage > .dp-show { grid-column: 1; grid-row: 2; align-self: stretch; min-block-size: min(100%, 420px); }
  .dp-stage > .dp-floor { grid-column: 2; grid-row: 2; justify-content: center; }
}

/* Two players on one device: halves face each other (the top one turned), or side by side. Each half is its
   player's show block (shrinking first) over their paddles; the band between holds the layout switch, the clock
   and Leave. */
.dp-stage:is([data-layout="split"], [data-layout="side"]) { display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); max-inline-size: 760px; }
.dp-half { display: flex; flex-direction: column; gap: var(--space-2); min-block-size: 0; }
.dp-half > .dp-seat { padding: var(--space-2) var(--space-3); gap: 6px; }
.dp-show--compact { flex: 1 1 auto; min-block-size: 0; grid-template-areas: "card count" "lot lot" "lead lead"; padding: var(--space-2) var(--space-3); overflow: hidden; }
.dp-show--compact .dp-lot__count { justify-self: end; }
/* Each half's show block is sized by its half, not its content: when the hand-out buttons take more room on a short
   phone, the theme card steps aside instead of being clipped (the count stays, the option and line stay whole). */
.dp-half > .dp-show--compact { container-type: size; }
@container (max-height: 110px) {
  .dp-show--compact .dp-card { display: none; }
  .dp-show--compact .dp-lot__title { min-block-size: 0; }
}
.dp-show--compact .dp-card { padding: 5px 10px 3px; border-block-start-width: 4px; }
.dp-show--compact .dp-card__theme { font-size: var(--step-0); }
.dp-show--compact .dp-lot__title { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.4rem); }
.dp-show--compact .dp-lead { min-block-size: 2.4rem; }
.dp-show--compact .dp-lead__amount { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.8rem); }
@media (min-height: 760px) {
  .dp-show--compact .dp-lot__title { font-size: clamp(1.7rem, 1.3rem + 2vw, 3rem); }
  .dp-show--compact .dp-lead__amount { font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); }
}
.dp-stage[data-layout="split"] .dp-half--top { transform: rotate(180deg); }
.dp-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.dp-mid > .dp-tool:first-child { justify-self: start; }
.dp-mid > .dp-tool:last-child { justify-self: end; }
.dp-mid .dp-tool { max-inline-size: 100%; min-inline-size: 0; padding-inline: var(--space-2); overflow: hidden; }
.dp-mid .dp-tool span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-mid .dp-ring { grid-area: auto; inline-size: 60px; block-size: 60px; }
@media (min-width: 900px) {
  .dp-stage[data-layout="side"] { max-inline-size: 1280px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: var(--space-4); }
  .dp-stage[data-layout="side"] .dp-mid { grid-column: 1 / -1; grid-row: 1; }
  .dp-stage[data-layout="side"] .dp-half--top { grid-row: 2; grid-column: 1; }
  .dp-stage[data-layout="side"] .dp-half--bottom { grid-row: 2; grid-column: 2; }
}
/* Short phones: the handles go, so both players keep every paddle on screen. */
@media (max-height: 700px) {
  .dp-paddle::after { display: none; }
  .dp-paddles, .dp-give { padding-block-end: 0; }
  .dp-controls { min-block-size: 60px; }
}

/* Leave: one question on an opaque plate that hides the stage (no ghost text behind it). */
.dp-sheet { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: var(--space-4); background: var(--bg); }
.dp-sheet__box { display: grid; gap: var(--space-3); inline-size: min(100%, 26rem); padding: var(--space-5); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--dp-solid-1); box-shadow: 0 18px 40px rgb(0 0 0 / 0.5); }
.dp-sheet__title { margin: 0; color: var(--text); font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1; text-transform: uppercase; }
.dp-sheet__text { margin: 0; color: var(--text-muted); line-height: 1.5; }
.dp-sheet .dp-actions .btn { flex: 1 1 auto; }

/* ── Results: the builds side by side ────────────────────────────────────────────────────────────────── */
.dp-results { display: grid; gap: var(--space-4); margin-block-start: var(--space-4); scroll-margin-block-start: calc(var(--header-stuck) + var(--space-2)); }
.dp-results__head { display: grid; gap: var(--space-2); }
.dp-results__lede { margin: 0; color: var(--text-muted); }
/* Phones: a swipeable strip, each build 84% wide so the next one peeks at the edge (from 480px two share the
   width; tracks are fixed so long words never squeeze them). Wider: every build in one grid. */
.dp-builds {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: var(--space-3);
  overflow-x: auto;
  padding-block-end: var(--space-2);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.dp-builds:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 480px) { .dp-builds { grid-auto-columns: calc(50% - var(--space-3) / 2); } }
@media (min-width: 640px) { .dp-builds { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); overflow: visible; } }
.dp-build { display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--space-2); min-inline-size: 0; padding: var(--space-3); border: 1px solid var(--border); border-block-start: 4px solid var(--seat); border-radius: var(--radius-md); background: var(--surface-1); scroll-snap-align: start; }
.dp-build__head { display: flex; align-items: center; gap: var(--space-2); min-inline-size: 0; }
.dp-build__name { margin: 0; min-inline-size: 0; overflow: hidden; color: var(--seat); font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.dp-build__items { display: grid; align-content: start; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dp-build__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: baseline; padding-block-end: 6px; border-block-end: 1px solid var(--border); }
.dp-build__item { color: var(--text); font-size: var(--step--1); line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.dp-build__price { color: var(--text-muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.dp-build__money { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--space-2); margin: 0; color: var(--text-muted); font-size: 0.8rem; }
.dp-build__vote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.dp-build__votes { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.dp-vote { min-block-size: 44px; padding-inline: var(--space-3); }
.dp-vote[aria-pressed="true"] { border-color: var(--seat); color: var(--text); }
.dp-results__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.dp-results__main .btn--primary { min-block-size: 56px; padding-inline: var(--space-6); }
/* Phones: two equal buttons per row (Play again beside Change theme, Share card beside Copy as text). */
@media (max-width: 639.98px) {
  .dp-results__actions > .dp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); inline-size: 100%; }
  .dp-results__actions .btn { justify-content: center; min-inline-size: 0; padding-inline: var(--space-3); text-align: center; white-space: normal; line-height: 1.2; }
  .dp-results__main .btn--primary { padding-inline: var(--space-3); }
}
.dp-house { padding: var(--space-3) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.dp-house__title { margin: 0 0 4px; color: var(--text); font-weight: 600; }

@media (max-width: 420px) {
  .dp-mode { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: var(--space-3); padding-inline: var(--space-3); }
  .dp-mode .dp-icon { padding: 8px; }
  .dp-paddle__amount { font-size: 1.7rem; }
  .dp-paddles { gap: 6px; }
  .dp-ring { inline-size: 60px; block-size: 60px; }
  .dp-ring__time { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dp *, .dp *::before, .dp *::after { animation: none !important; transition: none !important; }
  .dp-paddle:hover:not(:disabled), .dp-paddle:active:not(:disabled), .dp-paddle.is-hit { transform: none; }
}

/* The Draft table has its own material and typography, independent of the site shell. */
@font-face { font-family: 'Draft Lilita'; src: url('/assets/fonts/draft/lilita-one-latin-400-normal.woff2?v=3b71f6c2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Draft Lilita'; src: url('/assets/fonts/draft/lilita-one-latin-ext-400-normal.woff2?v=51927bb8') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
.dp {
  --font-display: 'Draft Lilita', var(--font-body), sans-serif;
  --bg: #211629; --bg-raised: #35223c; --surface-1: #35223c; --surface-2: #49334f; --surface-3: #604269;
  --text: #fff3d8; --text-muted: #d5c2d6; --text-faint: #b5a0bb; --border: #654b6b; --border-strong: #99729d; --border-control: #a287a6;
  --primary: #f2c56a; --primary-ink: #211629; --accent: #f2c56a; --accent-ink: #211629;
  --neon-cyan: #4ed8f4; --neon-pink: #f35da7; --neon-amber: #f2c56a; --neon-lime: #82da83;
  --focus: #fff3d8; --dp-ink: #160f1c; --dp-solid-1: #35223c; --dp-solid-2: #49334f;
  color: var(--text); border-radius: 26px; padding: clamp(18px, 3vw, 38px);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0, #67416a55, transparent 70%), repeating-conic-gradient(#ffffff03 0% 25%, transparent 0% 50%);
  background-size: auto, 38px 38px;
  border: 3px solid var(--dp-ink); box-shadow: 0 7px 0 var(--dp-ink);
}
.dp.dp-layer { padding: 0; border: 0; border-radius: 0; box-shadow: none; min-block-size: 0; }
.dp :is(.btn, .dp-mode, .dp-paddle, .dp-pass) { border: 3px solid var(--dp-ink); box-shadow: 0 4px 0 var(--dp-ink); }
.dp .btn { color: var(--text); background: #49334f; border-radius: 13px; }
.dp .btn--primary { color: var(--primary-ink); background: #82da83; }
.dp .btn--ghost { box-shadow: none; border-color: transparent; background: transparent; }
.dp .btn:hover { filter: brightness(1.08); }
.dp :is(.dp-menu__title,.dp-setup__title,.dp-lobby__title,.dp-results__title,.dp-matching__title,.dp-mode__name,.dp-lot__title,.dp-paddle__amount,.dp-card__theme,.dp-lead__amount) { font-weight: 400; letter-spacing: .01em; text-transform: none; }
.dp-menu { grid-template-columns: minmax(0, 1fr); max-inline-size: 1080px; margin-inline: auto; column-gap: clamp(32px, 5vw, 76px); }
.dp-menu > :not(.dp-poster) { grid-column: 1; }
.dp-menu__title { font-size: clamp(1.6rem, 2vw, 2rem); text-align: center; margin-block: 0 18px; }
.dp-poster { display: flex; flex-direction: column; align-items: center; grid-column: 1; grid-row: 1; padding: 0; margin: 0 0 28px; border: 0; border-radius: 0; background: transparent; overflow: visible; gap: 18px; }
.dp-brand { display: flex; align-items: baseline; justify-content: center; gap: 10px; font: 400 clamp(3rem, 7vw, 5.5rem)/.92 'Draft Lilita', sans-serif; letter-spacing: -.025em; text-shadow: 0 4px 0 var(--dp-ink), 2px 0 var(--dp-ink), -2px 0 var(--dp-ink); transform: rotate(-3deg); }
.dp-brand__budget { color: #f2c56a; }
.dp-brand__name { color: #f35da7; }
.dp-original-art { display: none; inline-size: 190px; block-size: 190px; border-radius: 24px; }
.dp-poster__ticket { display: none; inline-size: min(100%, 290px); padding: 18px 24px; border: 3px solid #160f1c; border-radius: 16px; box-shadow: 0 5px 0 #160f1c; background: #fff3d8; color: #35223c; transform: rotate(3deg); text-align: center; }
.dp-poster__ticket strong { display: block; color: #35223c; margin-block: 12px; font: 400 2.2rem/1.05 var(--font-display); }
.dp-poster__theme { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.dp-poster__ticket > :last-child { color: #775c37; font-weight: 800; }
.dp-modes { gap: 12px; max-inline-size: none; }
.dp-mode { min-block-size: 84px; padding: 13px 17px; grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 14px; border-radius: 17px; color: #211629; background: var(--mode-color); }
.dp-mode[data-mode="local"] { --mode-color: #4ed8f4; }
.dp-mode[data-mode="room"] { --mode-color: #f35da7; }
.dp-mode[data-mode="online"] { --mode-color: #f2c56a; }
.dp-mode[data-mode="solo"] { --mode-color: #82da83; }
.dp-mode:hover { background: var(--mode-color); border-color: var(--dp-ink); filter: brightness(1.06); }
.dp-mode:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--dp-ink); }
.dp-mode .dp-icon, .dp-mode[data-primary] .dp-icon { box-sizing: border-box; inline-size: 40px; block-size: 40px; padding: 4px; background: transparent; color: #211629; }
.dp-mode__name { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.1; }
.dp-mode__hint { color: #38223b; font-size: .83rem; line-height: 1.35; }
.dp-mode__go { color: #38223b; }
.dp-join { margin-block-start: 24px; padding-block-start: 20px; }
.dp-input { border: 2px solid #160f1c; border-radius: 12px; background: #fff3d8; color: #35223c; caret-color: #35223c; }
.dp-input::placeholder { color: #7f657e; }
.dp-chip, .dp-tab { border-radius: 12px; }
.dp-setup, .dp-lobby, .dp-matching { max-inline-size: 720px; margin-inline: auto; }
.dp-show { border: 3px solid #160f1c; border-radius: 20px; box-shadow: 0 4px 0 #160f1c; background: #fff3d8; }
.dp-card { background: transparent; padding: 4px 0; border: 0; box-shadow: none; transform: none; }
[dir="rtl"] .dp-card { transform: none; }
.dp-card__theme { color: #755179; font-size: 1.2rem; }
.dp-card__tag { color: #735d73; }
.dp-lot__count { color: #735d73; font-size: .7rem; }
.dp-lot__title { color: #35223c; padding-block: 10px; }
.dp-lead__who { color: #735d73; }
.dp-show[data-lead] .dp-lead__amount { color: #35223c; }
.dp-ring { color: #35223c; }
.dp-ring__arc { stroke: #af7833; }
.dp-ring__track { stroke: #decba6; }
.dp-ring__time { color: #35223c; font-family: var(--font-display); font-weight: 400; }
.dp-stage .dp-card.is-dealt { animation: none; }
.dp-seat { border: 2px solid #160f1c; border-radius: 16px; background: #35223c; }
.dp-seat__money { color: #f2c56a; font-weight: 400; }
.dp-seat--mine .dp-paddle { background: #82da83; }
.dp-paddle { border-radius: 14px; }
.dp-paddle::after { display: none; }
.dp-paddles, .dp-give { padding-block-end: 4px; }
.dp-paddle:is(:disabled, [aria-disabled="true"]) { background: #49334f; color: #d5c2d6; box-shadow: none; opacity: .55; }
.dp-pass { background: #49334f; border-radius: 14px; }
.dp-seat__collection { display: none; }
.dp-stage[data-layout="single"] .dp-board { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.dp-stage[data-layout="single"] .dp-seat--mini { border-block-start: 4px solid var(--seat); padding: 12px; }
.dp-stage[data-layout="single"] .dp-seat--mini .dp-seat__head { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 7px; }
.dp-stage[data-layout="single"] .dp-seat--mini .dp-seat__money { grid-column: 1 / -1; justify-self: start; font-size: 1.8rem; }
.dp-stage[data-layout="single"] .dp-seat--mini .dp-pips { grid-column: 1 / -1; }
.dp-stage[data-layout="single"] .dp-seat--mini .dp-seat__note { grid-column: 1 / -1; min-block-size: 1em; max-inline-size: none; }
.dp-stage[data-layout="single"] .dp-seat__collection { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.dp-stage[data-layout="single"] .dp-seat__collection:empty { margin: 0; }
.dp-seat__collection li { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; line-height: 1.3; border-block-start: 1px solid #654b6b; padding-block-start: 6px; }
.dp-seat__collection b { color: #f2c56a; white-space: nowrap; }
.dp-seat--dock { flex: none; padding: 10px; border: 0; background: #211629; }
.dp-seat--dock > .dp-seat__head { display: none; }
.dp-sheet__box { border: 3px solid #160f1c; border-radius: 20px; background: #35223c; box-shadow: 0 6px 0 #160f1c; }
.dp-build { background: #fff3d8; color: #35223c; border: 3px solid #160f1c; border-radius: 18px; box-shadow: 0 5px 0 #160f1c; }
.dp-build :is(.dp-build__name,.dp-build__item,.dp-build__price,.dp-build__money,.dp-build__votes) { color: #35223c; }
.dp-build__head { border-block-end-color: #decba6; }
@media (min-width: 900px) {
  .dp-menu { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; }
  .dp-menu > :not(.dp-poster) { grid-column: 2; }
  .dp-poster { grid-column: 1; grid-row: 1 / span 3; margin: 0; gap: 27px; }
  .dp-original-art { display: block; }
  .dp-poster__ticket { display: block; }
}
@media (max-width: 380px) {
  .dp:not(.dp-layer) { padding: 16px 12px; border-radius: 20px; }
  .dp-mode { grid-template-columns: 30px minmax(0, 1fr) 16px; padding: 12px; gap: 10px; }
  .dp-mode .dp-icon { inline-size: 30px; block-size: 30px; }
  .dp-mode__name { font-size: 1.3rem; }
  .dp-mode__hint { font-size: .76rem; }
  .dp-brand { font-size: 3rem; }
  .dp-stage[data-layout="single"] .dp-seat--mini { padding: 9px; }
}
@media (max-height: 740px) {
  .dp-stage[data-layout="single"] .dp-seat__collection { max-block-size: 72px; overflow-y: auto; }
  .dp-stage[data-layout="single"] .dp-seat--mini .dp-seat__head { gap: 4px; }
  .dp-stage[data-layout="single"] .dp-seat--mini .dp-seat__money { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .dp-mode:active { transform: none; } }

.dp-seat__picks { grid-column: 1 / -1; font-size: .72rem; color: var(--text-muted); }

/* On a personal phone the option is a compact card; the collections own the table. */
.dp-stage[data-layout="single"] > .dp-show { flex: 0 0 auto; min-block-size: 210px; }
.dp-stage[data-layout="single"] > .dp-floor { flex: 1 1 auto; }
.dp-stage[data-layout="single"] .dp-board { flex: 1 1 auto; align-content: stretch; align-items: stretch; }
@media (max-height: 740px) {
  .dp-stage[data-layout="single"] > .dp-show { min-block-size: 170px; }
  .dp-stage[data-layout="single"] .dp-card__tag { display: none; }
  .dp-stage[data-layout="single"] .dp-lot__title { padding-block: 6px; min-block-size: 1.2em; }
}

/* Entry keeps the three immediate actions together; names, themes and rules stay optional. */
.dp-menu__status:empty { display: none; }
.dp-menu__status { margin-block: 14px 0; }
.dp-menu .dp-mode[data-primary] { background: linear-gradient(135deg, #a2ed8e, #72d3a0); }
.dp-menu .dp-mode[aria-busy="true"] .dp-mode__go { animation: dp-entry-wait .7s ease-in-out infinite alternate; }
.dp-menu .dp-mode:disabled { cursor: progress; filter: saturate(.6); opacity: .7; transform: none; }
.dp-menu .dp-mode[aria-busy="true"] { opacity: 1; filter: none; }
.dp-options { min-inline-size: 0; margin-block-start: 18px; border-block-start: 1px solid #654b6b; }
.dp-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 48px; color: #fff3d8; cursor: pointer; font-size: .875rem; font-weight: 600; list-style: none; }
.dp-options > summary::-webkit-details-marker { display: none; }
.dp-options > summary::after { content: ''; flex: none; inline-size: 8px; block-size: 8px; border-inline-end: 2px solid #f2c56a; border-block-end: 2px solid #f2c56a; transform: rotate(45deg) translateY(-2px); }
.dp-options[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.dp-options > summary:focus-visible { outline: 2px solid #fff3d8; outline-offset: 3px; }
.dp-options__body { padding-block: 5px 12px; }
.dp-options__modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block-start: 14px; }
.dp-options__modes .btn { min-inline-size: 0; min-block-size: 46px; padding: 10px; white-space: normal; font-size: .8rem; text-align: center; }
.dp-options > .dp-form { padding-block: 12px 22px; }
.dp-menu .dp-join { margin-block-start: 12px; padding-block-start: 14px; }
.dp-menu .dp-join .dp-status:empty { display: none; }
.dp-menu .dp-mode[data-mode="local"] { min-block-size: 62px; background: #35223c; color: #fff3d8; border-color: #654b6b; box-shadow: none; }
.dp-menu .dp-mode[data-mode="local"] :is(.dp-icon, .dp-mode__go) { color: #4ed8f4; }
.dp-menu .dp-mode[data-mode="local"] .dp-mode__hint { color: #d5c2d6; }
.dp-menu .dp-mode[data-mode="local"]:hover { background: #49334f; }
.dp-menu .dp-mode[data-mode="local"] .dp-mode__name { font-size: 1.3rem; }
.dp-menu .dp-mode[data-mode="local"]:active { transform: translateY(1px); }
.dp-lobby .dp-code { background: #fff3d8; color: #35223c; border: 3px solid #160f1c; border-block-start: 5px dotted #af7833; }
#draft-app .dp-lobby__head .dp-actions > :first-child { background: #f35da7; color: #211629; }
#draft-app .dp-lobby__head .dp-actions > :last-child { background: #4ed8f4; color: #211629; }
.dp-lobby .dp-roster__seat { min-block-size: 48px; }
@keyframes dp-entry-wait { to { transform: translateX(4px); } }
@media (min-width: 900px) {
  .dp-menu .dp-poster { grid-row: 1 / span 6; }
}
@media (max-width: 899.98px) {
  .dp-menu .dp-poster { margin-block-end: 18px; }
  .dp-menu__title { margin-block-end: 14px; font-size: 1.45rem; }
  .dp-menu .dp-mode { min-block-size: 74px; padding-block: 10px; }
  .dp-menu .dp-mode[data-mode="local"] { min-block-size: 62px; }
  .dp-menu .dp-modes { gap: 10px; }
  .dp-menu .dp-mode__name { font-size: clamp(1.3rem, 5.8vw, 1.65rem); }
  .dp-menu .dp-mode__hint { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .dp-menu .dp-mode[aria-busy="true"] .dp-mode__go { animation: none; } }

@media (max-width: 759.98px) {
  .dp-lobby { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px 10px; }
  .dp-lobby__head, .dp-lobby__foot { grid-column: 1 / -1; }
  .dp-lobby__head { gap: 10px; }
  .dp-lobby__head .dp-status:empty { display: none; }
  .dp-lobby__head .dp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dp-lobby__head .dp-actions .btn { min-inline-size: 0; white-space: normal; padding: 8px; font-size: .8rem; }
  .dp-lobby__seats { grid-column: 1; grid-row: 2; }
  .dp-lobby .dp-qr { grid-column: 2; grid-row: 2; align-content: start; padding-block-start: 28px; }
  .dp-lobby .dp-qr__code { inline-size: 96px; block-size: 96px; }
  .dp-lobby .dp-qr figcaption { font-size: .7rem; line-height: 1.3; text-align: center; }
  .dp-lobby .dp-roster__seat { flex-wrap: wrap; gap: 4px 7px; padding: 8px; }
  .dp-lobby .dp-roster__name { flex: 1 1 70%; }
  .dp-lobby .dp-tag { padding: 2px 6px; font-size: .65rem; }
  .dp-lobby .dp-code { font-size: clamp(2.3rem, 10vw, 3.4rem); padding-inline: 12px; max-inline-size: 100%; }
}
