/* ══════════════════════════════════════════════════════════════
   AI DEBATE v2 — the duel layer

   Loaded AFTER ai-debate.css on purpose. Nothing here deletes the
   original sheet; it re-skins the lobby, adds the motion drop, tightens
   the stage, and turns the 13-panel results wall into a verdict-first
   page with three accordions.
   ══════════════════════════════════════════════════════════════ */

/* ── Wider page, room for a two-column verdict ── */
.ad-page {
  max-width: 980px;
}

/* ══════════════════════════════════════════════════════════════
   LOBBY
   ══════════════════════════════════════════════════════════════ */

.ad-lobby-card {
  position: relative;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 30px 28px 26px;
}

.ad-lobby-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.ad-lobby-portrait {
  position: relative;
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
}

.ad-lobby-face {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.ad-lobby-copy {
  min-width: 0;
}

.ad-lobby-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ad-purple);
  margin-bottom: 8px;
}

.ad-lobby-card .ad-setup-title {
  font-size: clamp(21px, 3.4vw, 27px);
  margin: 0 0 6px;
  text-align: left;
  line-height: 1.15;
}

.ad-lobby-card .ad-setup-sub {
  font-size: 13.5px;
  margin: 0 0 10px;
}

.ad-lobby-taunt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ad-text);
  border-left: 2px solid rgba(166, 138, 249, 0.5);
  padding-left: 11px;
}

/* ── Stat line ── */

.ad-lobby-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.ad-lstat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ad-lstat-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ad-text);
  line-height: 1.1;
  white-space: nowrap;
}

.ad-lstat-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ad-dim);
}

.ad-lstat-limit .ad-lstat-val { color: var(--ad-blue); }
.ad-lstat-limit.exhausted .ad-lstat-val { color: var(--ad-error); }

/* ── Mode switch ── */

.ad-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.ad-mode-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ad-gray);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ad-mode-btn i {
  font-size: 16px;
  color: var(--ad-dim);
  transition: color 0.18s ease;
}

.ad-mode-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ad-text);
  line-height: 1.25;
}

.ad-mode-copy small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ad-dim);
  letter-spacing: 0;
}

.ad-mode-btn:hover { border-color: rgba(166, 138, 249, 0.4); }

.ad-mode-btn.active {
  background: rgba(166, 138, 249, 0.12);
  border-color: rgba(166, 138, 249, 0.5);
  color: var(--ad-text);
}

.ad-mode-btn.active i { color: var(--ad-purple); }
.ad-mode-btn.active .ad-mode-copy small { color: var(--ad-gray); }

/* ── Terms disclosure ── */

.ad-terms {
  margin: 18px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.ad-terms-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ad-text);
  list-style: none;
  user-select: none;
}

.ad-terms-summary::-webkit-details-marker { display: none; }
.ad-terms-summary > i:first-child { color: var(--ad-purple); font-size: 13px; }

.ad-terms-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--ad-dim);
  letter-spacing: 0.2px;
  margin-left: 2px;
}

.ad-terms-chevron {
  margin-left: auto;
  font-size: 11px;
  color: var(--ad-dim);
  transition: transform 0.22s ease;
}

.ad-terms[open] .ad-terms-chevron { transform: rotate(180deg); }

.ad-terms-body {
  padding: 4px 15px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 2px;
}

.ad-terms-body .ad-form-group { margin-top: 14px; margin-bottom: 0; }

/* ── Start button ── */

.ad-lobby-card .ad-start-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.9px;
  padding: 15px 18px;
}

.ad-lobby-fine {
  margin: 11px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ad-dim);
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════════
   MOTION DROP
   ══════════════════════════════════════════════════════════════ */

.ad-drop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ad-drop[hidden] { display: none; }

.ad-drop-card {
  width: min(460px, 100%);
  background: rgba(17, 24, 39, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: ad-drop-in 0.32s ease-out both;
}

.ad-drop-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ad-purple);
  margin-bottom: 18px;
}

.ad-drop-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ad-drop-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 76px;
}

.ad-drop-face {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 2px;
}

.ad-drop-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ad-text);
}

.ad-drop-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(58, 190, 255, 0.14);
  color: var(--ad-blue);
  border: 1px solid rgba(58, 190, 255, 0.3);
}

.ad-drop-side.rival .ad-drop-tag {
  background: rgba(248, 113, 113, 0.13);
  color: var(--ad-error);
  border-color: rgba(248, 113, 113, 0.3);
}

.ad-drop-x {
  font-size: 15px;
  color: var(--ad-dim);
  padding-top: 14px;
}

.ad-drop-motion {
  margin: 0 0 14px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ad-text);
}

.ad-drop-foot {
  font-size: 11.5px;
  color: var(--ad-dim);
  letter-spacing: 0.4px;
}

@keyframes ad-drop-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   STAGE
   ══════════════════════════════════════════════════════════════ */

.ad-stage {
  position: relative;
}

.ad-rival-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-rival-chip {
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(166, 138, 249, 0.1);
  border: 1px solid rgba(166, 138, 249, 0.28);
  color: var(--ad-purple);
}

.ad-rival-note {
  font-size: 11.5px;
  color: var(--ad-dim);
  min-width: 0;
  flex: 1 1 auto;
}

/* Flat, hairline stage chrome — the sticky HUD should read as a toolbar */
.ad-hud {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ad-debate-header {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.ad-debate-player .ad-player-avatar {
  filter: none;
}

/* Face swap pop */
.ad-face-pop {
  animation: ad-face-pop 0.34s ease-out;
}

@keyframes ad-face-pop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Timer bar as a CSS variable driven track */
.ad-timer-bar {
  background: linear-gradient(90deg, var(--ad-purple), var(--ad-blue));
}

.ad-timer.warn .ad-timer-bar { background: var(--ad-gold); }
.ad-timer.critical .ad-timer-bar { background: var(--ad-error); }

/* ══════════════════════════════════════════════════════════════
   RESULTS — verdict first
   ══════════════════════════════════════════════════════════════ */

.ad-results-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.ad-verdict-hero {
  position: relative;
  border-radius: 14px;
  padding: 26px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 2px solid var(--ad-purple);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.ad-verdict-hero.win { border-top-color: var(--ad-success); }

.ad-verdict-hero.loss { border-top-color: var(--ad-error); }

.ad-verdict-hero.draw { border-top-color: var(--ad-gold); }

.ad-verdict-hero.unrated { border-top-color: rgba(255, 255, 255, 0.18); }

/* ── Match report head: kicker + tier ── */

.ad-mr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ad-verdict-hero .ad-mr-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ad-dim);
}

.ad-verdict-hero .ad-tier-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ad-gray);
  background: rgba(255, 255, 255, 0.03);
}

.ad-verdict-hero .ad-tier-badge.strong,
.ad-verdict-hero .ad-tier-badge.elite {
  color: var(--ad-purple);
  border-color: rgba(166, 138, 249, 0.4);
}

/* ── The verdict word ── */

.ad-mr-verdict {
  margin: 0 0 22px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ad-text);
}

.ad-verdict-hero.win .ad-mr-verdict { color: var(--ad-success); }
.ad-verdict-hero.loss .ad-mr-verdict { color: var(--ad-error); }
.ad-verdict-hero.draw .ad-mr-verdict { color: var(--ad-gold); }
.ad-verdict-hero.unrated .ad-mr-verdict { color: var(--ad-gray); }

/* ── The scoreline is the hero ── */

.ad-mr-scoreline {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-mr-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-mr-side.debix { align-items: flex-end; text-align: right; }

.ad-mr-num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(38px, 9vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ad-text);
  font-variant-numeric: tabular-nums;
}

.ad-mr-side.debix .ad-mr-num { color: var(--ad-gray); }

.ad-mr-side-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ad-dim);
}

.ad-mr-sep {
  flex: 0 0 auto;
  align-self: center;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 6px;
}

/* ── Rating chip + note ── */

.ad-mr-under {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.ad-mr-under:empty { display: none; }

.ad-mr-read {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ad-gray);
  max-width: 62ch;
}

.ad-mr-read:empty { display: none; }

/* ── Rating movement ── */

.ad-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ad-rating-row[hidden] { display: none; }

.ad-rating-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ad-dim);
}

.ad-rating-row > i { font-size: 10px; color: var(--ad-dim); }

.ad-rating-before { color: var(--ad-gray); font-weight: 600; }
.ad-rating-after {
  font-weight: 700;
  color: var(--ad-text);
}

.ad-rating-delta {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-rating-delta.up {
  color: var(--ad-success);
  background: rgba(52, 211, 153, 0.12);
}

.ad-rating-delta.down {
  color: var(--ad-error);
  background: rgba(248, 113, 113, 0.12);
}

.ad-rating-delta.flat {
  color: var(--ad-gray);
  background: rgba(255, 255, 255, 0.05);
}

.ad-rank-note {
  font-size: 11px;
  color: var(--ad-dim);
  letter-spacing: 0.2px;
}

.ad-rank-note:empty { display: none; }

/* ── Why you won / lost — numbered, hairline divided ── */

.ad-mr-reasons {
  list-style: none;
  counter-reset: mr-reason;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-mr-reasons:empty { display: none; }

.ad-mr-reasons li {
  counter-increment: mr-reason;
  position: relative;
  padding: 12px 0 12px 30px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ad-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-mr-reasons li::before {
  content: counter(mr-reason);
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--ad-dim);
}

/* ── The one fix ── */

.ad-headline-fix {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(166, 138, 249, 0.22);
  border-left: 2px solid var(--ad-purple);
  background: rgba(166, 138, 249, 0.05);
}

.ad-headline-fix[hidden] { display: none; }

.ad-hf-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ad-purple);
  margin-bottom: 6px;
}

.ad-hf-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ad-text);
}

/* ── Hero stats row — one hairline-divided strip ── */

.ad-verdict-hero .ad-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-verdict-hero .ad-hstat {
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  padding: 12px 14px;
}

/* Hairline on the left only, so a hidden gems cell never leaves a stray
   trailing border and the right edge stays clean. */
.ad-verdict-hero .ad-hstat:first-child { border-left: none; }

.ad-verdict-hero .ad-hstat i { color: var(--ad-dim); }

/* ── Unrated notice ── */

.ad-provisional {
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.07);
  color: var(--ad-gold);
  font-size: 12px;
  line-height: 1.5;
}

/* ── Actions ── */

.ad-verdict-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Primary action owns its own row; the two secondaries pair beneath it. */
.ad-verdict-actions .ad-start-btn {
  grid-column: 1 / -1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ad-verdict-actions .ad-secondary-btn {
  min-width: 0;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

.ad-verdict-actions .ad-secondary-btn i {
  margin-right: 2px;
}

/* ══════════════════════════════════════════════════════════════
   RESULTS — accordions
   ══════════════════════════════════════════════════════════════ */

.ad-accordions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ad-acc {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.ad-acc-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ad-text);
  transition: background 0.18s ease;
}

.ad-acc-summary::-webkit-details-marker { display: none; }
.ad-acc-summary:hover { background: rgba(255, 255, 255, 0.03); }
.ad-acc-summary > i:first-child { color: var(--ad-purple); font-size: 12px; }

.ad-acc-hint {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--ad-dim);
  text-transform: none;
}

.ad-acc-chevron {
  font-size: 11px;
  color: var(--ad-dim);
  transition: transform 0.22s ease;
}

.ad-acc[open] .ad-acc-chevron { transform: rotate(180deg); }

.ad-acc-body {
  padding: 4px 17px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-acc-body .ad-results-grid {
  margin-top: 16px;
}

.ad-acc-body > *:last-child { margin-bottom: 0; }

/* Reset the old fade-up delays — accordion content should just appear */
.ad-results-card > .ad-results-hero,
.ad-results-card > .ad-results-grid,
.ad-results-card > .ad-detailed-rounds,
.ad-results-card > .ad-results-actions {
  animation: none;
}

/* ══════════════════════════════════════════════════════════════
   RESULTS — inner panels

   The accordion bodies still come from ai-debate.css. Same rules
   here: flat surfaces, hairline borders, 8px radii, tabular
   numerals, no icon-above-centre layouts.
   ══════════════════════════════════════════════════════════════ */

/* Panel headings become quiet micro-labels */
.ad-results-card-head,
.ad-clash-title,
.ad-kw-title,
.ad-used-evidence-title,
.ad-tips-title,
.ad-round-breakdown-title,
.ad-progression-title,
.ad-skill-trends-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ad-dim);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-results-card-head i,
.ad-clash-title i,
.ad-kw-title i,
.ad-used-evidence-title i,
.ad-tips-title i { color: var(--ad-purple); }

/* Score breakdown */
.ad-score-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 16px;
}

.ad-score-row {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-score-row:last-child { border-bottom: none; }

.ad-score-bar-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.ad-score-bar-fill { border-radius: 2px; }

.ad-score-val {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}

/* Strongest / biggest weakness — left-aligned, no floating icon */
.ad-feedback-grid {
  gap: 10px;
  margin-bottom: 16px;
}

.ad-feedback-card {
  padding: 15px 16px;
  border-radius: 8px;
  text-align: left;
}

.ad-feedback-card.strongest {
  background: rgba(52, 211, 153, 0.045);
  border: 1px solid rgba(52, 211, 153, 0.16);
}

.ad-feedback-card.weakest {
  background: rgba(248, 113, 113, 0.045);
  border: 1px solid rgba(248, 113, 113, 0.16);
}

.ad-feedback-icon {
  display: none;
}

.ad-feedback-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  margin-bottom: 6px;
}

.ad-feedback-value {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.ad-feedback-desc {
  font-size: 12.5px;
  line-height: 1.55;
}

/* Clash + key weaknesses + evidence */
.ad-clash,
.ad-key-weaknesses,
.ad-used-evidence,
.ad-improvement-tips,
.ad-skill-trends,
.ad-progression,
.ad-round-breakdown {
  background: transparent;
  border: none;
}

.ad-clash {
  padding: 0;
  margin-bottom: 18px;
}

.ad-clash-grid { gap: 10px; }

.ad-clash-field {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-clash-label,
.ad-kw-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ad-dim);
}

.ad-clash-text,
.ad-kw-text {
  font-size: 13px;
  line-height: 1.6;
}

.ad-kw-card {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-kw-index {
  font-family: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ad-dim);
}

.ad-kw-score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.ad-used-evidence-list { gap: 8px; }

.ad-used-evidence-list > * {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

/* Round-by-round + argument analysis */
.ad-round-breakdown-item {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-round-breakdown-item:hover { border-color: rgba(255, 255, 255, 0.14); }

.ad-rb-score {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.ad-arg-card {
  padding: 15px 16px;
  border-radius: 8px;
}

.ad-arg-card.best {
  background: rgba(52, 211, 153, 0.045);
  border: 1px solid rgba(52, 211, 153, 0.16);
}

.ad-arg-card.worst {
  background: rgba(248, 113, 113, 0.045);
  border: 1px solid rgba(248, 113, 113, 0.16);
}

.ad-arg-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.ad-arg-text {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

/* The clinic — numbered, hairline divided */
.ad-tips-list { gap: 0; }

.ad-tips-list > * {
  padding: 12px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
}

.ad-tips-list > *:last-child { border-bottom: none; }

/* Buttons across the results surface */
.ad-verdict-actions .ad-start-btn,
.ad-results-actions .ad-start-btn {
  border-radius: 8px;
}

.ad-verdict-actions .ad-secondary-btn,
.ad-results-actions .ad-secondary-btn {
  border-radius: 8px;
}

.ad-start-btn:hover:not(:disabled),
.ad-secondary-btn:hover {
  transform: none;
}

.ad-start-btn:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(58, 190, 255, 0.22);
}

/* ══════════════════════════════════════════════════════════════
   STAGE — panels

   Same language as the results surface: flat surfaces, hairline
   borders, 8px radii, colour used as an accent rather than a wash.
   ══════════════════════════════════════════════════════════════ */

/* Motion banner */
.ad-topic-banner {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--ad-text);
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* Previous rounds */
.ad-history-round {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.ad-history-round-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--ad-dim);
  padding-bottom: 9px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-history-label,
.ad-challenge-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

/* Debix challenge — red as a single left accent, not a full wash */
.ad-challenge-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--ad-error);
  border-radius: 10px;
}

.ad-challenge-header {
  padding: 13px 16px;
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-challenge-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.ad-challenge-text {
  font-size: 13.5px;
  line-height: 1.6;
}

.ad-tag {
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.ad-read-countdown {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Response area */
.ad-round-guide {
  background: rgba(166, 138, 249, 0.05);
  border: 1px solid rgba(166, 138, 249, 0.16);
  border-radius: 8px;
}

.ad-rg-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.ad-response-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--ad-dim);
}

/* Controls — flat, no gradient chips */
.ad-vault-btn {
  background: rgba(166, 138, 249, 0.1);
  border: 1px solid rgba(166, 138, 249, 0.32);
  border-radius: 8px;
}

.ad-vault-btn:hover {
  transform: none;
  border-color: rgba(166, 138, 249, 0.5);
}

.ad-voice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.ad-voice-btn:hover:not(:disabled) {
  transform: none;
  border-color: rgba(58, 190, 255, 0.4);
}

.ad-submit-btn {
  border-radius: 8px;
}

.ad-submit-btn:hover:not(:disabled) {
  transform: none;
}

/* Waiting state */
.ad-waiting {
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  .ad-lobby-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ad-lobby-portrait {
    width: 92px;
    height: 92px;
  }

  .ad-lobby-face { width: 74px; height: 74px; }

  .ad-lobby-stats { grid-template-columns: repeat(2, 1fr); }

  .ad-verdict-hero .ad-hstat { flex: 1 1 50%; }

  .ad-verdict-hero .ad-hstat:nth-child(odd) { border-left: none; }

  .ad-verdict-hero .ad-hstat:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .ad-acc-hint { display: none; }
}

@media (max-width: 480px) {
  .ad-lobby-card { padding: 22px 17px 20px; border-radius: 12px; }

  .ad-mode-switch { grid-template-columns: 1fr; }

  .ad-verdict-hero { padding: 20px 16px 18px; border-radius: 12px; }

  .ad-verdict-actions { grid-template-columns: 1fr; }

  .ad-verdict-actions .ad-start-btn { white-space: normal; }

  .ad-rival-note { flex-basis: 100%; order: 3; }

  .ad-acc-summary { padding: 13px 14px; font-size: 11.5px; }
  .ad-acc-body { padding: 4px 14px 16px; }

  .ad-mr-num { font-size: 40px; }
  .ad-mr-sep { width: 20px; margin: 0 4px; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ad-drop-card,
  .ad-face-pop {
    animation: none !important;
  }

  .ad-terms-chevron,
  .ad-acc-chevron {
    transition: none;
  }
}
