/* Couples Debate — only what base.css does not already give us: the start preview, the lectern stage,
   the big clock, the mark cards with their rubric row, and the result list. Buttons, pack cards,
   segmented rows, pills, modal and the scene column all come from base.css. */

/* ---------- START preview ---------- */
.de-preview { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 80%; }
.de-preview__motion { font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-align: center; text-wrap: balance; }
.de-preview__clock { font: 700 34px var(--mono); letter-spacing: .08em; }
.de-preview__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.de-preview__side { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r8); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; box-shadow: var(--shadow-1); }
.de-preview__side.pink { border-color: var(--pink); background: linear-gradient(160deg, var(--pink-tint), var(--paper-raised) 70%); }
.de-preview__side.blue { border-color: var(--blue); background: linear-gradient(160deg, var(--blue-tint), var(--paper-raised) 70%); }
.de-preview__side .tag { font: 700 10px var(--mono); letter-spacing: .14em; background: var(--ink); color: var(--on-ink); border-radius: 4px; padding: 3px 6px; }
.de-preview__side .n { font: 700 12px var(--mono); letter-spacing: .1em; color: var(--ink-soft); }

/* ---------- PACK / ROUNDS ---------- */
.de-pack { width: min(1060px, calc(100vw - 32px)); min-height: calc(100svh - var(--bar-h, 0px)); justify-content: center; }
.de-packs { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.de-packnext { min-width: 180px; }
.de-rounds { min-height: calc(100svh - var(--bar-h, 0px)); justify-content: center; gap: 22px; }
.de-split { max-width: 40ch; }
.de-start { min-width: 220px; }

/* ---------- DEBATE: the floor ---------- */
.de-floor { width: min(1080px, calc(100vw - 32px)); min-height: calc(100svh - var(--bar-h, 0px)); justify-content: center; gap: 12px; }
.de-meta { display: flex; align-items: center; justify-content: center; gap: 8px; }
.de-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
.de-motion { max-width: 22ch; }
.de-crux { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.de-crux__t { font-size: 14px; color: var(--ink-soft); }
.de-clock { font: 700 clamp(34px, 6vw, 46px) var(--mono); letter-spacing: .06em; line-height: 1.1; }
.de-clock.is-low { color: var(--red); }

.de-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.de-seat {
  position: relative; min-height: 200px; border-radius: var(--r8); border: 1px solid var(--line);
  background: var(--paper-raised); box-shadow: var(--shadow-1); padding: 44px 16px 40px; text-align: left; overflow: hidden;
}
.de-seat--pink { background: linear-gradient(170deg, var(--pink-tint) 0%, var(--paper-raised) 55%); border-color: var(--pink); }
.de-seat--blue { background: linear-gradient(170deg, var(--blue-tint) 0%, var(--paper-raised) 55%); border-color: var(--blue); }
.de-seat.is-live { outline: 2px solid var(--ink); outline-offset: -1px; }
.de-seat__banner { position: absolute; top: 12px; left: 12px; font: 700 11px var(--mono); letter-spacing: .12em; padding: 5px 9px; border-radius: 4px; background: var(--red); color: var(--on-red); }
.de-seat__banner.is-for { background: var(--green); }
.de-seat__name { position: absolute; bottom: 12px; left: 12px; font: 700 12px var(--mono); letter-spacing: .06em; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.de-seat__body { max-height: 190px; overflow-y: auto; }
.de-seat__text { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.de-seat__text.is-silent { color: var(--ink-faint); font-style: italic; }

.de-controls { display: flex; flex-direction: column; gap: 8px; align-items: stretch; width: min(560px, 100%); }
.de-speech { min-height: 96px; resize: vertical; }
.de-status { min-height: 20px; }

/* ---------- SCORING ---------- */
.de-scoring { width: min(1080px, calc(100vw - 32px)); min-height: calc(100svh - var(--bar-h, 0px)); justify-content: center; gap: 14px; }
.de-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.de-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r8); box-shadow: var(--shadow-1); padding: 18px 18px 16px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.de-card.pink { border-color: var(--pink); }
.de-card.blue { border-color: var(--blue); }
.de-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.de-card__name { font-weight: 800; font-size: 18px; }
.de-card__side { font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); }
.de-card__score { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.de-card__of { font: 600 14px var(--mono); color: var(--ink-faint); margin-left: 6px; letter-spacing: .04em; }
.de-bar { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.de-card.pink .de-bar i { background: var(--pink); }
.de-card.blue .de-bar i { background: var(--blue); }
.de-bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.de-rubric { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .08em; color: var(--ink-soft); }
.de-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.de-coin { font: 700 13px var(--mono); letter-spacing: .04em; color: var(--on-yellow-tint); background: var(--yellow-tint); border-radius: 999px; padding: 7px 14px; }
.de-bench { margin: 0; font-style: italic; color: var(--ink-soft); max-width: 46ch; }
.de-thinking { display: flex; justify-content: center; }
.de-bybook { display: flex; flex-direction: column; gap: 4px; align-items: center; max-width: 52ch; }
.de-bybook__t { font-size: 13px; color: var(--ink-faint); }
.de-totals { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.de-next { min-width: 200px; }

/* ---------- RESULT ---------- */
.de-result { width: min(760px, calc(100vw - 32px)); }
.de-trophy { font-size: 46px; line-height: 1; }
.de-winner[data-color="pink"] { color: #C2255C; }
.de-winner[data-color="blue"] { color: #1E5FBF; }
.de-sub { max-width: 40ch; }
.de-rows { display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); }
.de-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r8); background: var(--paper-raised); }
.de-row.is-winner.pink { border-color: var(--pink); }
.de-row.is-winner.blue { border-color: var(--blue); }
.de-row__n { font-weight: 800; }
.de-row__p { font-weight: 700; letter-spacing: .04em; }
.de-list { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.de-list__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px 34px; gap: 10px; align-items: center; text-align: left; }
.de-list__r { font-size: 12px; color: var(--ink-faint); }
.de-list__m { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.de-list__s { font-size: 13px; font-weight: 700; text-align: right; }
.de-list__s.pink { color: var(--pink); }
.de-list__s.blue { color: var(--blue); }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .de-stage { grid-template-columns: 1fr; }
  .de-cards { grid-template-columns: 1fr; }
  .de-seat { min-height: 150px; padding: 40px 14px 36px; }
  .de-seat__body { max-height: 120px; }
  .de-list__row { grid-template-columns: 28px minmax(0, 1fr) 30px 30px; gap: 8px; }
}
