:root {
  --ink: #102a2e;
  --muted: #6e725f;
  --paper: #f4ead2;
  --panel: #fffaf0;
  --line: #d8cfb8;
  --teal: #07545d;
  --teal-dark: #033f48;
  --teal-soft: #dfe9dd;
  --red: #b12a33;
  --red-dark: #7e1d27;
  --red-soft: #f2d8d2;
  --dem-blue: #2465b3;
  --dem-blue-dark: #17447c;
  --dem-blue-soft: #dce8f8;
  --gold: #c6a24b;
  --olive: #766f45;
  --cream: #fff6df;
  --shadow: 0 24px 60px rgba(16, 38, 45, 0.2);
  --soft-shadow: 0 12px 30px rgba(16, 38, 45, 0.11);
  --radius: 8px;
  color-scheme: light;
}

/* Source-backed journey polish: keep the customer focused on the task, not clipped methodology labels. */
body[data-step="factors"] .factor-journey-coach {
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) !important;
  max-width: min(1040px, calc(100% - 24px));
  padding: 7px 10px !important;
  border-color: rgba(7, 84, 93, 0.11) !important;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.06), rgba(255, 255, 255, 0.9), rgba(198, 162, 75, 0.08)),
    #ffffff !important;
}

body[data-step="factors"] .journey-coach-step {
  grid-template-columns: 24px minmax(0, 1fr) !important;
  column-gap: 7px !important;
}

body[data-step="factors"] .journey-coach-step b {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.68rem !important;
}

body[data-step="factors"] .journey-coach-step strong {
  font-size: 0.78rem !important;
}

body[data-step="factors"] .journey-coach-step em {
  font-size: 0.62rem !important;
  letter-spacing: 0 !important;
}

body[data-step="factors"] .source-chip-row,
body[data-step="factors"] .source-chip,
body[data-step="rank"] .order-evidence:empty {
  display: none !important;
}

body[data-step="factors"] .factor-token .factor-copy {
  gap: 5px !important;
  min-width: 0 !important;
}

body[data-step="factors"] .factor-token .factor-copy p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body[data-step="rank"] [data-stage="rank"] .order-rank-layout {
  grid-template-columns: minmax(0, 920px) !important;
  justify-content: center !important;
}

body[data-step="rank"] [data-stage="rank"] .order-lane {
  width: 100% !important;
  max-height: min(62vh, 620px) !important;
  border-color: rgba(7, 84, 93, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 247, 239, 0.82)),
    #ffffff !important;
}

body[data-step="rank"] .order-card {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  min-height: 84px !important;
  border: 0 !important;
  border-radius: var(--dv-radius-md) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-step="rank"] .order-card::before {
  position: absolute;
  inset: 0 0 0 56px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.14));
  border-left: 5px solid var(--accent, var(--dv-teal));
  border-radius: var(--dv-radius-sm);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 9%, transparent), rgba(255, 255, 255, 0.97)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(16, 42, 46, 0.08);
  content: "";
}

body[data-step="rank"] .order-card:first-child::before {
  border-color: rgba(198, 162, 75, 0.58);
  border-left-color: var(--dv-gold);
  background:
    linear-gradient(90deg, rgba(198, 162, 75, 0.16), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

body[data-step="rank"] .order-rank {
  grid-column: 1 !important;
  align-self: center !important;
  width: 36px !important;
  height: 36px !important;
  color: #ffffff !important;
  background: var(--accent, var(--dv-teal)) !important;
  box-shadow:
    0 10px 22px rgba(16, 42, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body[data-step="rank"] .order-card:first-child .order-rank {
  color: var(--dv-ink) !important;
  background: var(--dv-gold) !important;
}

body[data-step="rank"] .order-factor-shell {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 84px !important;
  padding: 10px 0 10px 16px !important;
}

body[data-step="rank"] .order-actions {
  grid-column: 3 !important;
  align-self: center !important;
  padding-right: 14px !important;
}

body[data-step="rank"] .order-copy span:not(.order-evidence) {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body[data-step="rank"] .order-shuffle-demo {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  grid-template-rows: repeat(2, 34px) !important;
  width: min(100%, 330px) !important;
  min-height: 86px !important;
  gap: 7px 10px !important;
  padding: 9px 11px !important;
  overflow: hidden !important;
}

body[data-step="rank"] .order-shuffle-demo::before,
body[data-step="rank"] .order-shuffle-demo .coach-arrow {
  display: none !important;
}

.shuffle-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dv-teal);
  font-size: 0.72rem;
  font-weight: 850;
}

.shuffle-rank.is-one {
  grid-column: 1;
  grid-row: 1;
  color: var(--dv-ink);
  background: var(--dv-gold);
}

.shuffle-rank.is-two {
  grid-column: 1;
  grid-row: 2;
}

.shuffle-factor {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-left: 4px solid var(--dv-teal);
  border-radius: var(--dv-radius-sm);
  padding: 0 10px;
  color: var(--dv-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(16, 42, 46, 0.06);
  font-size: 0.68rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shuffle-factor.is-first {
  grid-column: 2;
  grid-row: 1;
  border-left-color: var(--dv-gold);
  animation: shuffle-factor-glow 2.1s ease-in-out infinite;
}

.shuffle-factor.is-second {
  grid-column: 2;
  grid-row: 2;
  animation: shuffle-factor-glow 2.1s ease-in-out infinite reverse;
}

@keyframes shuffle-factor-glow {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(16, 42, 46, 0.06);
  }
  50% {
    box-shadow: 0 10px 24px rgba(7, 84, 93, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shuffle-factor.is-first,
  .shuffle-factor.is-second {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  body[data-step="factors"] .factor-journey-coach {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body[data-step="factors"] .journey-coach-arrow {
    display: none !important;
  }

  body[data-step="rank"] .order-card,
  body[data-step="rank"] .order-card[style] {
    grid-template-columns: 34px minmax(0, 1fr) 88px !important;
    min-height: 64px !important;
    gap: 8px !important;
  }

  body[data-step="rank"] .order-card::before {
    inset-left: 44px !important;
  }

  body[data-step="rank"] .order-factor-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 64px !important;
    padding: 8px 0 8px 12px !important;
  }

  body[data-step="rank"] .order-art.measure-picture {
    display: none !important;
  }

  body[data-step="rank"] .order-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 40px) !important;
    gap: 8px !important;
    padding-right: 8px !important;
  }
}

.info-panel[data-active-info-view="about"] {
  inset: 12px;
}

.info-panel[data-active-info-view="about"] .info-card {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 8px;
  padding: clamp(18px, 2.8vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(241, 248, 245, 0.97) 58%, rgba(231, 238, 227, 0.94)),
    #ffffff;
}

.info-panel[data-active-info-view="about"] .info-close {
  z-index: 5;
}

.about-view {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  padding-top: 28px;
}

.about-creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(350px, 1.02fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
}

.about-founder-copy h2 {
  max-width: 13ch;
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.about-lede {
  max-width: 48ch;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  font-weight: 820;
  line-height: 1.36;
}

.about-body {
  max-width: 58ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.58;
}

.about-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-field-row span {
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 950;
}

.about-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(150px, 0.76fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 438px;
}

.about-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 247, 246, 0.9), rgba(255, 255, 255, 0.86)),
    #ffffff;
  box-shadow: 0 18px 34px rgba(16, 38, 45, 0.13);
}

.about-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(16, 38, 45, 0.42));
  content: "";
  pointer-events: none;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-main {
  grid-row: 1 / span 2;
}

.about-photo-main img {
  object-position: 50% 44%;
}

.about-photo-side {
  min-height: 0;
}

.about-photo-side img {
  object-position: center;
}

.about-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 7px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(16, 38, 45, 0.68);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-proof-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(16, 38, 45, 0.08);
}

.about-proof-grid article:nth-child(2) {
  border-top-color: var(--dv-gold);
}

.about-proof-grid article:nth-child(3) {
  border-top-color: var(--red);
}

.about-proof-grid span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 950;
}

.about-proof-grid strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.18;
}

.about-proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.46;
}

.about-origin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(16px, 2.6vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 26px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.98), rgba(16, 42, 46, 0.98) 56%, rgba(117, 31, 45, 0.92)),
    var(--teal);
}

.about-origin-card .kicker {
  margin-bottom: 8px;
  color: var(--dv-gold);
}

.about-origin-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-origin-card p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  font-weight: 680;
  line-height: 1.5;
}

.about-origin-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 7px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-origin-card a:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 920px) {
  .about-creator-hero {
    grid-template-columns: 1fr;
  }

  .about-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .about-photo-main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .about-photo-side {
    aspect-ratio: 16 / 9;
  }

  .about-proof-grid,
  .about-origin-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .info-panel[data-active-info-view="about"] {
    inset: 8px;
  }

  .info-panel[data-active-info-view="about"] .info-card {
    width: 100%;
    max-height: calc(100vh - 18px);
    padding: 16px;
  }

  .about-view {
    gap: 16px;
    padding-top: 38px;
  }

  .about-founder-copy h2 {
    max-width: 12ch;
    margin-bottom: 12px;
    font-size: clamp(2.1rem, 12vw, 3.35rem);
  }

  .about-lede {
    font-size: 0.98rem;
  }

  .about-body {
    font-size: 0.88rem;
  }

  .about-field-row span {
    flex: 1 1 calc(50% - 8px);
    display: grid;
    place-items: center;
    min-height: 36px;
    padding: 7px 8px;
    text-align: center;
  }

  .about-media-grid {
    gap: 8px;
  }

  .about-photo-main {
    aspect-ratio: 4 / 3;
  }

  .about-photo figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 7px 8px;
    font-size: 0.62rem;
  }

  .about-proof-grid article {
    padding: 12px;
  }

  .about-origin-card a {
    width: 100%;
  }
}

/* Live QA finish: image fit, profile expansion, and page-bottom spacing. */
body[data-step="debate"] .home-usecase-card-1 .home-usecase-media img {
  object-position: 50% 46% !important;
}

body[data-step="debate"] .home-usecase-card-2 .home-usecase-media {
  display: grid !important;
  place-items: center !important;
  background:
    linear-gradient(135deg, rgba(232, 248, 241, 0.94), rgba(255, 250, 240, 0.98)) !important;
}

body[data-step="debate"] .home-usecase-card-2 .home-usecase-media img {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

body[data-step="debate"] .home-usecase-card-2:hover .home-usecase-media img,
body[data-step="debate"] .home-usecase-card-2:focus-visible .home-usecase-media img {
  transform: none !important;
}

body[data-step="debate"] .home-company-photo-two {
  background:
    linear-gradient(135deg, rgba(232, 248, 241, 0.92), rgba(255, 250, 240, 0.96)) !important;
}

body[data-step="debate"] .home-company-photo-two img {
  box-sizing: border-box !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

body[data-step="results"] [data-stage="results"] .results-list {
  align-items: start !important;
}

@media (min-width: 761px) {
  body[data-step="results"] [data-stage="results"] .results-list .result-card.is-profile-open {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body[data-step="results"] [data-stage="results"] .results-list .result-card.is-profile-open .profile-drawer {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

body[data-step="debate"] .home-category-directory {
  margin-bottom: clamp(34px, 4vw, 58px) !important;
}

body[data-step="debate"] .home-category-directory .home-map-actions {
  margin-top: 16px !important;
  padding-top: 14px !important;
}

body[data-step="debate"] .site-footer,
body[data-step="results"] .site-footer,
body[data-step="results"] [data-stage="results"] .site-footer {
  margin-top: clamp(16px, 3vw, 30px) !important;
  margin-bottom: clamp(18px, 3vw, 34px) !important;
}

body[data-step="results"] .feedback-cta {
  margin-top: clamp(22px, 3vw, 34px) !important;
  margin-bottom: clamp(16px, 2.4vw, 24px) !important;
}

body[data-step="results"] .stage-actions,
body[data-step="results"] [data-stage="results"] .stage-actions {
  margin-top: clamp(18px, 3vw, 34px) !important;
  margin-bottom: clamp(18px, 3vw, 34px) !important;
}

body[data-step="rank"] .shuffle-factor.is-first {
  transform: none !important;
  animation: shuffle-factor-glow-final 2.1s ease-in-out infinite !important;
}

body[data-step="rank"] .shuffle-factor.is-second {
  transform: none !important;
  animation: shuffle-factor-glow-final 2.1s ease-in-out infinite reverse !important;
}

@keyframes shuffle-factor-glow-final {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(16, 42, 46, 0.06);
  }
  50% {
    box-shadow: 0 10px 24px rgba(7, 84, 93, 0.14);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family:
    "Aptos", "Aptos Display", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.025) 25%, transparent 25%),
    linear-gradient(225deg, rgba(177, 42, 51, 0.02) 25%, transparent 25%),
    linear-gradient(90deg, rgba(7, 84, 93, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(118, 111, 69, 0.025) 1px, transparent 1px),
    var(--paper);
  background-position: 0 0, 18px 18px, 0 0, 0 0;
  background-size: 36px 36px, 36px 36px, 44px 44px, 44px 44px;
}

.factor-rack,
.rank-stack,
.hero-category-tiles button span,
.kicker,
.poster-card,
.section-card-grid .poster-card,
.result-card {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1240px, 100%);
  height: 100vh;
  margin: 0 auto;
  padding: 12px;
}

.app-header {
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.brand-lockup {
  --brand-compass-x: 64.3%;
  --brand-compass-y: 73.4%;
  --brand-orbit-size: clamp(36px, 3.5vw, 44px);
  position: relative;
  display: block;
  width: 190px;
  height: 72px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.brand-lockup::before,
.brand-lockup::after {
  position: absolute;
  top: var(--brand-compass-y);
  left: var(--brand-compass-x);
  z-index: 2;
  width: var(--brand-orbit-size);
  height: var(--brand-orbit-size);
  border-radius: 50%;
  opacity: 0.88;
  filter: drop-shadow(0 0 5px rgba(198, 162, 75, 0.16));
  pointer-events: none;
  content: "";
}

.brand-lockup::before {
  border: 1px solid rgba(198, 162, 75, 0.72);
  background: radial-gradient(circle at 50% 0%, rgba(177, 42, 51, 0.9) 0 2px, transparent 2.8px);
  box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.5);
  animation: brand-logo-orbit-one 7.4s linear infinite;
}

.brand-lockup::after {
  width: calc(var(--brand-orbit-size) * 0.82);
  height: calc(var(--brand-orbit-size) * 0.82);
  border: 1px solid rgba(7, 84, 93, 0.52);
  background: radial-gradient(circle at 50% 0%, rgba(198, 162, 75, 0.92) 0 1.8px, transparent 2.7px);
  animation: brand-logo-orbit-two 5.8s linear infinite reverse;
}

.brand-lockup img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 4px 8px rgba(16, 38, 45, 0.08));
  mix-blend-mode: normal;
  transform: scale(1.04);
  transform-origin: center;
}

.header-copy {
  min-width: 0;
  color: rgba(16, 42, 46, 0.82);
  font-size: 0.76rem;
  font-weight: 670;
  letter-spacing: 0.01em;
  text-wrap: balance;
  line-height: 1.3;
}

.global-search {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.global-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.global-search input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 480;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    0 8px 18px rgba(16, 38, 45, 0.05);
}

.global-search input:focus {
  border-color: rgba(7, 84, 93, 0.48);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 3px rgba(7, 84, 93, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.header-title {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 16px;
  border-left: 4px solid var(--red);
}

.header-title span,
.kicker {
  color: rgba(110, 114, 95, 0.95);
  font-size: 0.64rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-title strong {
  overflow: visible;
  font-size: clamp(1.08rem, 1.64vw, 1.55rem);
  line-height: 1.02;
  text-wrap: balance;
  white-space: normal;
}

.header-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
  min-width: 0;
}

.site-nav,
.journey-rail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav {
  gap: 0;
  flex-wrap: nowrap;
}

.site-nav button {
  min-height: 30px;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--teal);
  background: rgba(255, 250, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.05);
}

.site-nav button:hover {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.journey-rail {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 10px 24px rgba(16, 38, 45, 0.08);
}

.journey-step {
  position: relative;
  display: grid;
  gap: 1px;
  min-width: 92px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid rgba(16, 38, 45, 0.1);
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

body[data-step="debate"] .journey-rail {
  display: none;
}

.journey-step:last-child {
  border-right: 0;
}

.journey-step span {
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-step strong {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-step.is-active,
.journey-step.is-complete {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.journey-step.is-active + .journey-step,
.journey-step.is-complete + .journey-step {
  border-left-color: transparent;
}

.journey-step.is-complete {
  background: linear-gradient(135deg, rgba(7, 84, 93, 0.84), rgba(198, 162, 75, 0.9));
}

.goat-console {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.95)),
    var(--panel);
  box-shadow: 0 16px 38px rgba(16, 38, 45, 0.12);
}

.info-panel {
  position: absolute;
  inset: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(16, 38, 45, 0.4);
  backdrop-filter: blur(6px);
}

.info-panel[hidden] {
  display: none;
}

.info-card {
  position: relative;
  width: min(760px, 92vw);
  max-height: calc(100vh - 72px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(223, 233, 221, 0.94)),
    #ffffff;
  box-shadow: var(--shadow);
}

.info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  border: 1px solid #d7e1dd;
  border-radius: 7px;
  padding: 0 12px;
  color: var(--teal);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.info-view h2 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.92;
}

.info-copy {
  max-width: 58ch;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.42;
}

.process-grid,
.builder-steps {
  display: grid;
  gap: 10px;
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.process-grid article,
.builder-steps span {
  border: 1px solid #d7e1dd;
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 950;
}

.process-grid strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
}

.process-view {
  position: relative;
  isolation: isolate;
}

.process-view::before {
  position: absolute;
  inset: -24px -28px auto auto;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 200, 79, 0.24), transparent 58%),
    radial-gradient(circle at 35% 35%, rgba(7, 84, 93, 0.16), transparent 62%);
  content: "";
}

.process-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
  margin-bottom: 22px;
}

.process-copy-block .info-copy {
  margin-bottom: 0;
}

.process-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 206px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(223, 233, 221, 0.56)),
    radial-gradient(circle at 30% 24%, rgba(244, 200, 79, 0.28), transparent 36%),
    radial-gradient(circle at 76% 74%, rgba(177, 42, 51, 0.14), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 34px rgba(16, 38, 45, 0.1);
}

.process-orbit-ring {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(7, 84, 93, 0.045),
    0 0 0 50px rgba(177, 42, 51, 0.035);
}

.process-orbit-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), #123039 58%, var(--red));
  font-weight: 950;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 32px rgba(16, 38, 45, 0.2);
}

.process-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(16, 38, 45, 0.18);
}

.process-dot.is-red {
  top: 42px;
  right: 52px;
  background: var(--red);
}

.process-dot.is-gold {
  bottom: 52px;
  right: 36px;
  background: var(--gold);
}

.process-dot.is-teal {
  bottom: 44px;
  left: 46px;
  background: var(--teal);
}

.process-orbit em {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.process-view .process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.process-view .process-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  min-height: 112px;
  overflow: hidden;
  border-color: rgba(7, 84, 93, 0.15);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 239, 0.88)),
    #ffffff;
  box-shadow: 0 14px 24px rgba(16, 38, 45, 0.07);
}

.process-view .process-grid article::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  content: "";
}

.process-view .process-grid strong {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  margin: 0;
  background: linear-gradient(135deg, var(--teal), #0f3038);
  box-shadow: 0 12px 20px rgba(7, 84, 93, 0.22);
}

.process-view .process-grid span {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.08;
}

.process-view .process-grid em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.22;
}

.methodology-view h2 {
  max-width: 14ch;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.methodology-grid article {
  min-height: 156px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(223, 233, 221, 0.72)),
    #ffffff;
}

.methodology-grid strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 12px 22px rgba(16, 38, 45, 0.16);
}

.methodology-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.methodology-grid p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.35;
}

.methodology-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(177, 42, 51, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(177, 42, 51, 0.08), rgba(7, 84, 93, 0.08)),
    rgba(255, 250, 240, 0.9);
  font-size: 0.9rem;
  font-weight: 790;
  line-height: 1.35;
}

.methodology-note strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.builder-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.builder-steps span {
  min-height: 78px;
  color: var(--teal);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.feedback-list span {
  border: 1px solid #d7e1dd;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 950;
}

.feedback-mail {
  display: inline-grid;
  place-items: center;
  width: max-content;
  text-decoration: none;
}

.stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: clamp(14px, 2vw, 20px);
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  pointer-events: none;
}

.stage.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.stage[hidden] {
  display: none;
}

.stage-copy {
  min-width: 0;
}

[data-stage="debate"] {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
}

[data-stage="debate"] .stage-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.07);
  border-radius: var(--radius);
  max-height: none;
  min-height: 50px;
  padding: 7px 11px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.04), transparent 50%, rgba(177, 42, 51, 0.035)),
    rgba(255, 250, 240, 0.78);
  box-shadow: none;
}

[data-stage="debate"] .stage-copy::after {
  display: none;
}

[data-stage="debate"] .hero-copy,
[data-stage="debate"] .hero-engine {
  position: relative;
  z-index: 1;
}

[data-stage="debate"] .hero-engine {
  display: none;
}

[data-stage="debate"] .stage-copy .kicker,
[data-stage="debate"] .stage-subtitle {
  color: var(--muted);
}

.kicker {
  margin-bottom: 3px;
}

.stage-copy h1 {
  margin-bottom: 0;
  font-size: clamp(1.14rem, 1.75vw, 1.62rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 620;
}

.stage-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.96vw, 0.9rem);
  font-weight: 440;
  line-height: 1.22;
}

[data-stage="factors"] .stage-subtitle,
[data-stage="rank"] .stage-subtitle {
  max-width: 58ch;
  font-size: 0.96rem;
  line-height: 1.28;
}

.hero-engine {
  position: relative;
  display: grid;
  grid-template-columns: minmax(96px, 0.68fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 98px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 223, 0.44);
  border-radius: var(--radius);
  padding: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 26% 36%, rgba(255, 246, 223, 0.2), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(198, 162, 75, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(1, 58, 71, 0.82), rgba(126, 29, 39, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.22);
}

.hero-engine::before {
  position: absolute;
  inset: -35%;
  opacity: 0.35;
  background:
    conic-gradient(from 90deg, transparent, rgba(255, 246, 223, 0.24), transparent 26%, rgba(198, 162, 75, 0.22), transparent 58%);
  animation: engine-sweep 10s linear infinite;
  content: "";
}

.hero-engine::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 246, 223, 0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 246, 223, 0.06) 0 1px, transparent 1px 34px);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 86%, transparent);
  content: "";
}

.engine-label {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engine-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-row: 2 / 4;
  place-items: center;
  justify-self: center;
  align-self: center;
  width: clamp(72px, 6vw, 86px);
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 50%;
}

.engine-orbit img {
  position: relative;
  z-index: 3;
  display: block;
  width: clamp(42px, 4.6vw, 54px);
  height: clamp(42px, 4.6vw, 54px);
  object-fit: contain;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.34));
  animation: compass-float 4s ease-in-out infinite;
}

.engine-ring {
  position: absolute;
  inset: var(--ring-inset, 18%);
  border: 1px solid rgba(255, 246, 223, 0.36);
  border-radius: 50%;
  transform: rotate(var(--ring-tilt, -18deg)) scaleY(0.68);
}

.ring-one {
  --ring-inset: 6%;
  --ring-tilt: -21deg;
  border-color: rgba(198, 162, 75, 0.62);
  animation: engine-orbit-one 7s linear infinite;
}

.ring-two {
  --ring-inset: 18%;
  --ring-tilt: 28deg;
  animation: engine-orbit-two 8s linear infinite reverse;
}

.ring-three {
  --ring-inset: 31%;
  --ring-tilt: 0deg;
  border-style: dashed;
  animation: engine-orbit-one 5.5s linear infinite reverse;
}

.engine-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.engine-stack > span,
.engine-answer {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 246, 223, 0.22);
  border-radius: var(--radius);
  padding: 5px 7px;
  background: rgba(255, 250, 240, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.engine-stack > span::before {
  position: absolute;
  left: -13px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 223, 0.72));
  content: "";
}

.engine-stack b,
.engine-answer small {
  color: var(--gold);
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engine-stack em {
  color: rgba(255, 246, 223, 0.88);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.14;
  white-space: normal;
}

.engine-answer {
  z-index: 1;
  grid-column: 2;
  border-color: rgba(198, 162, 75, 0.46);
  background:
    linear-gradient(90deg, rgba(198, 162, 75, 0.24), rgba(255, 250, 240, 0.08)),
    rgba(1, 58, 71, 0.24);
}

.engine-answer strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  line-height: 1.05;
}

.hero-battle {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 246, 223, 0.46);
  border-radius: var(--radius);
  padding: 12px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(1, 58, 71, 0.9), rgba(126, 29, 39, 0.88)),
    rgba(255, 255, 255, 0.08);
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.hero-battle:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 26px 52px rgba(0, 0, 0, 0.26);
}

.civic-battle .battle-card {
  background:
    linear-gradient(90deg, rgba(177, 42, 51, 0.22), transparent 48%, rgba(36, 101, 179, 0.22)),
    rgba(255, 250, 240, 0.08);
}

.civic-battle .battle-left {
  background:
    linear-gradient(180deg, rgba(177, 42, 51, 0.18), rgba(126, 29, 39, 0.92)),
    var(--red);
}

.civic-battle .battle-right {
  background:
    linear-gradient(180deg, rgba(36, 101, 179, 0.2), rgba(23, 68, 124, 0.92)),
    var(--dem-blue);
}

.civic-battle .battle-fighter {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: 0.04em;
}

.battle-label {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.battle-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 132px;
}

.battle-fighter {
  position: relative;
  display: grid;
  place-items: end center;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 223, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 84, 93, 0.18), rgba(1, 58, 71, 0.88)),
    var(--teal);
  box-shadow: inset 0 -38px 60px rgba(0, 0, 0, 0.4);
  font-size: 1.2rem;
}

.battle-right {
  background:
    linear-gradient(180deg, rgba(177, 42, 51, 0.18), rgba(126, 29, 39, 0.9)),
    var(--red);
}

.battle-versus {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.hero-battle strong {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
}

.hero-battle em {
  color: rgba(255, 246, 223, 0.82);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.poster-grid {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: rgba(7, 84, 93, 0.34) transparent;
  scrollbar-width: thin;
}

.poster-grid::-webkit-scrollbar {
  width: 8px;
}

.poster-grid::-webkit-scrollbar-track {
  background: transparent;
}

.poster-grid::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(7, 84, 93, 0.34);
  background-clip: padding-box;
}

.featured-portals {
  gap: 7px;
  margin-bottom: 0;
}

.feature-heading .kicker {
  margin-bottom: 2px;
}

.featured-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(210px, 1.18fr);
  align-items: stretch;
  gap: 18px;
  min-width: 0;
  min-height: 190px;
  border: 1px solid rgba(16, 38, 45, 0.09);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 250, 240, 0.96), rgba(242, 238, 224, 0.78)),
    rgba(255, 255, 255, 0.82);
  text-align: left;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 84, 93, 0.48);
  box-shadow: 0 14px 26px rgba(16, 38, 45, 0.12);
}

.feature-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.feature-copy small {
  color: rgba(126, 29, 39, 0.82);
  font-size: 0.62rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-copy strong {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 620;
  line-height: 1;
}

.feature-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 420;
  line-height: 1.22;
}

.feature-copy em {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  border-bottom: 1px solid currentColor;
  color: var(--teal);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.feature-art {
  display: grid;
  min-width: 0;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--teal), var(--olive));
}

.feature-card[data-category="politics"] .feature-art,
.feature-card[data-category-preview="politics"] .feature-art {
  background:
    linear-gradient(90deg, rgba(177, 42, 51, 0.96), rgba(255, 246, 223, 0.76), rgba(36, 101, 179, 0.96)),
    #ffffff;
}

.feature-card[data-category="nba"] .feature-art,
.feature-card[data-category-preview="nba"] .feature-art {
  background:
    linear-gradient(135deg, var(--teal), var(--olive));
}

.feature-card[data-category="city"] .feature-art,
.feature-card[data-category-preview="city"] .feature-art {
  background:
    linear-gradient(135deg, var(--teal-dark), var(--gold));
}

.feature-art .poster-duel {
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.feature-art .player-token {
  max-width: none;
  height: 100%;
  min-height: 148px;
  border-radius: 8px;
}

.feature-art .player-token.photo-token.has-photo {
  background-size: auto, cover;
  background-position: center, var(--photo-position, 50% 34%);
}

.feature-art .vs-token {
  width: 42px;
  height: 42px;
  align-self: center;
}

.value-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border: 1px solid rgba(16, 38, 45, 0.07);
  border-radius: var(--radius);
  padding: 5px 7px;
  background: rgba(255, 250, 240, 0.62);
}

.value-panel article {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 6px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 0;
  padding: 1px 14px 1px 0;
  background: transparent;
  box-shadow: none;
}

.value-panel article::before {
  display: none;
}

.value-panel article + article {
  padding-left: 14px;
}

.value-panel article:last-child {
  border-right: 0;
  padding-right: 0;
}

.value-panel b {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  font-size: 0.62rem;
  font-weight: 700;
  box-shadow: none;
}

.value-panel span {
  display: block;
  margin-bottom: 1px;
  color: rgba(110, 114, 95, 0.92);
  font-size: 0.48rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.value-panel strong,
.value-panel p,
.value-panel span {
  grid-column: 2;
}

.value-panel strong {
  display: block;
  margin-bottom: 0;
  font-size: 0.7rem;
  font-weight: 520;
  line-height: 1.08;
}

.value-panel p {
  display: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.24;
}

.portal-board-head {
  display: none;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-top: 0;
  padding-top: 2px;
}

.portal-board-head .kicker {
  margin-bottom: 3px;
}

.portal-board-head h2 {
  margin-bottom: 0;
  font-size: clamp(0.96rem, 1.35vw, 1.16rem);
  font-weight: 620;
  line-height: 1;
}

.portal-board-head > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.portal-board-tools {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.portal-board-tools > span {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 480;
  text-align: right;
  white-space: nowrap;
}

.portal-search {
  position: relative;
  display: block;
  width: min(260px, 30vw);
  flex: 0 1 260px;
}

.portal-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.portal-search input {
  width: 100%;
  height: 31px;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 780;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.portal-search input:focus {
  border-color: rgba(7, 84, 93, 0.42);
  box-shadow:
    0 0 0 3px rgba(7, 84, 93, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.portal-menu {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: var(--radius);
  padding: 5px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
  scrollbar-width: thin;
}

.portal-menu button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: rgba(16, 42, 46, 0.72);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 540;
  white-space: nowrap;
}

.portal-menu button:hover,
.portal-menu button.is-active {
  color: #ffffff;
  background: var(--teal);
}

.category-section {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.75vw, 1.34rem);
  font-weight: 620;
  line-height: 1;
}

.goat-photo {
  display: none;
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 250, 240, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent, rgba(16, 38, 45, 0.18)),
    url("assets/photo-cache/css/css-0-0ca9dfee84b7.jpg");
  background-position: 50% 44%;
  background-size: cover;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.14);
}

.section-heading p {
  display: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 420;
  text-align: right;
}

.section-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 10px;
}

.culture-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: var(--radius);
  padding: 6px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.06);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(190px, 0.86fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 16px;
  min-height: 38px;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: none;
}

.footer-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-brand strong {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-brand span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 420;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
  min-width: 0;
}

.footer-nav button {
  min-height: 26px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.66rem;
  font-weight: 640;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-nav button:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.culture-strip span,
.culture-strip button {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  color: var(--teal);
  background: rgba(7, 84, 93, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.culture-strip button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--teal));
}

.soon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
}

.soon-chip {
  min-width: 0;
  border: 1px solid #d8e2df;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soon-chip em {
  color: var(--red);
  font-style: normal;
  text-transform: uppercase;
}

.poster-card {
  position: relative;
  display: grid;
  grid-template-rows: 136px auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.88);
  text-align: left;
  box-shadow: 0 6px 14px rgba(16, 38, 45, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.poster-card:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 12px 24px rgba(16, 38, 45, 0.11);
}

.poster-card:disabled {
  min-height: 0;
  opacity: 0.58;
  background: #f4f6f5;
}

.poster-card.is-active {
  border-color: var(--teal);
}

.poster-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: inset 0 -20px 42px rgba(1, 58, 71, 0.055);
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255, 250, 240, 0.7) 49.5% 50.5%, transparent 50.6%),
    linear-gradient(135deg, #0c5961, #294f4e);
}

.poster-badge {
  display: none;
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 7px;
  color: #ffffff;
  background: rgba(1, 58, 71, 0.78);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.poster-card[data-category="qb"] .poster-art {
  background:
    linear-gradient(135deg, var(--olive), var(--teal));
}

.poster-card[data-family="sports"] .poster-art,
.poster-card[data-family="goatCalcs"] .poster-art {
  background:
    linear-gradient(135deg, var(--teal), var(--olive));
}

.poster-card[data-category="rap"] .poster-art {
  background:
    linear-gradient(135deg, var(--teal-dark), var(--red));
}

.poster-card[data-family="politics"] .poster-art {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.95), rgba(255, 246, 223, 0.72), rgba(177, 42, 51, 0.95)),
    #ffffff;
}

.poster-card[data-family="careers"] .poster-art,
.poster-card[data-family="lifeDecisions"] .poster-art {
  background:
    linear-gradient(135deg, var(--teal), var(--gold));
}

.poster-card[data-family="home"] .poster-art,
.poster-card[data-family="homeServices"] .poster-art {
  background:
    linear-gradient(135deg, var(--teal-dark), var(--olive) 54%, var(--gold));
}

.poster-card[data-family="entertainment"] .poster-art {
  background:
    linear-gradient(135deg, var(--red), var(--teal-dark));
}

.poster-card[data-category="console"] .poster-art {
  background:
    linear-gradient(135deg, var(--teal), var(--gold));
}

.poster-card[data-category="fastfood"] .poster-art {
  background:
    linear-gradient(135deg, var(--red), var(--gold));
}

.poster-card[data-category="politics"] .poster-art {
  background:
    linear-gradient(90deg, rgba(177, 42, 51, 0.95), rgba(255, 246, 223, 0.76), rgba(36, 101, 179, 0.95)),
    #ffffff;
}

.poster-card[data-category="career"] .poster-art {
  background:
    linear-gradient(135deg, var(--teal), var(--gold));
}

.poster-card:disabled .poster-art {
  background:
    linear-gradient(135deg, rgba(4, 82, 100, 0.18), rgba(189, 40, 49, 0.18)),
    #eef2f1;
}

.poster-duel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.player-token,
.vs-token {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

.player-token {
  width: 100%;
  max-width: none;
  height: 100%;
  justify-self: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--teal-dark);
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.12);
  font-size: 0.95rem;
}

.player-token:last-child {
  justify-self: start;
  background: var(--red);
}

.poster-card[data-category="politics"] .player-token {
  border-color: rgba(255, 250, 240, 0.48);
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.12);
}

.poster-card[data-category="politics"] .player-token:first-of-type {
  background: linear-gradient(180deg, rgba(216, 77, 90, 0.58), rgba(177, 42, 51, 0.96));
}

.poster-card[data-category="politics"] .player-token:last-of-type {
  background: linear-gradient(180deg, rgba(86, 140, 212, 0.58), rgba(36, 101, 179, 0.96));
}

.poster-card[data-category="politics"] .player-token::before {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.92;
  content: "";
}

.poster-card[data-category="politics"] .player-token:first-of-type::before {
  content: "🐘";
}

.poster-card[data-category="politics"] .player-token:last-of-type::before {
  content: "🫏";
}

.poster-card[data-category="politics"] .player-token.photo-token.has-photo {
  background-size: auto, cover;
}

.poster-card[data-category="politics"] .player-token.photo-token.has-photo::before {
  display: none;
}

.poster-card[data-category="politics"] .player-token.photo-token.has-photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.poster-card[data-category="politics"] .player-token:first-of-type.photo-token.has-photo::after {
  background: linear-gradient(180deg, rgba(177, 42, 51, 0.22), rgba(126, 29, 39, 0.52));
}

.poster-card[data-category="politics"] .player-token:last-of-type.photo-token.has-photo::after {
  background: linear-gradient(180deg, rgba(36, 101, 179, 0.22), rgba(23, 68, 124, 0.52));
}

.poster-card[data-category="politics"] .player-token.photo-token.has-photo span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 999px;
  padding: 0 7px;
  color: #ffffff;
  background: rgba(1, 58, 71, 0.72);
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.peek-token {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid rgba(255, 250, 240, 0.82);
  border-radius: 50%;
  color: #ffffff;
  background: var(--gold);
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, 0.16),
    0 12px 22px rgba(0, 0, 0, 0.16);
  font-size: 0.62rem;
  font-weight: 950;
  transform: translateX(16px);
}

.poster-duel .player-token,
.poster-duel .vs-token {
  position: relative;
  z-index: 1;
}

.vs-token {
  width: 52px;
  height: 52px;
  justify-self: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  font-size: 0.78rem;
  font-weight: 680;
}

.poster-duel .player-token.photo-token.has-photo {
  background-size: auto, cover;
  background-position: center, var(--photo-position, 50% 28%);
  background-repeat: no-repeat;
}

.poster-card[data-category="presidents"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-family="home"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-category="console"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-category="fastfood"] .poster-duel .player-token.photo-token.has-photo {
  background-color: rgba(255, 250, 240, 0.92);
  background-size: auto, contain;
  background-position: center, center;
}

.poster-card[data-category="nba"] .poster-duel .player-token.photo-token.has-photo,
.feature-card[data-category="nba"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-category="rap"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-category="moviefranchise"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-category="gamefranchise"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-category="streaming"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-family="business"] .poster-duel .player-token.photo-token.has-photo,
.poster-card[data-family="careers"] .poster-duel .player-token.photo-token.has-photo {
  background-size: auto, cover;
  background-position: center, var(--photo-position, 50% 34%);
}

.poster-card[data-category="nba"] .poster-duel .player-token.photo-token.has-photo,
.feature-card[data-category="nba"] .poster-duel .player-token.photo-token.has-photo {
  background-color: rgba(255, 250, 240, 0.92);
  background-size: auto, contain;
  background-position: center, center;
}

.poster-label {
  padding-top: 9px;
}

.poster-label strong {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  font-weight: 620;
  letter-spacing: 0;
}

.poster-label span {
  display: block;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 390;
  line-height: 1.22;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.poster-label small {
  display: none;
  margin-top: 6px;
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

.poster-label .portal-share-row {
  margin-top: 10px;
  display: inline-flex;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.photo-token {
  background-size: cover;
  background-position: var(--photo-position, 50% 30%);
  background-repeat: no-repeat;
}

.photo-token.has-photo {
  color: #ffffff;
  overflow: hidden;
  background-color: #dfe7e3;
  box-shadow:
    inset 0 -26px 52px rgba(1, 58, 71, 0.08),
    0 14px 28px rgba(16, 38, 45, 0.12);
}

.brand-token {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(7, 84, 93, 0.96), rgba(3, 63, 72, 0.96));
  text-align: center;
  box-shadow: 0 14px 30px rgba(16, 38, 45, 0.12);
}

.brand-token::before {
  display: none;
}

.brand-token span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 12ch;
  font-size: clamp(1.05rem, 1.65vw, 1.62rem);
  font-weight: 650;
  line-height: 1;
}

.brand-token.has-brand-image {
  padding: 14px;
}

.brand-token.has-brand-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(86%, 150px);
  height: min(86%, 150px);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16, 38, 45, 0.18));
}

.brand-token.has-brand-image span {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 2;
  max-width: calc(100% - 18px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(16, 38, 45, 0.62);
  font-size: 0.54rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.player-token.party-gop,
.brand-token.party-gop {
  background:
    linear-gradient(135deg, rgba(126, 29, 39, 0.96), rgba(177, 42, 51, 0.96));
}

.player-token.party-gop::after,
.player-token.party-dem::after,
.brand-token.party-gop::after,
.brand-token.party-dem::after {
  display: none;
}

.player-token.party-dem,
.brand-token.party-dem {
  background:
    linear-gradient(135deg, rgba(23, 68, 124, 0.98), rgba(36, 101, 179, 0.98));
}

.player-token.party-dem::after,
.brand-token.party-dem::after {
  content: "";
}

.hiphop-pac,
.hiphop-biggie {
  background:
    linear-gradient(135deg, #151515, #6f2634 58%, var(--red-dark));
}

.hiphop-pac span,
.hiphop-biggie span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.film-starwars {
  color: #f8f3d8;
  background: linear-gradient(135deg, #0f1415, #283033);
}

.film-marvel,
.stream-netflix,
.stream-max,
.brand-angi,
.brand-metal {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.game-playstation,
.game-zelda,
.country-usa {
  background: linear-gradient(135deg, var(--teal), #1d5c89);
}

.game-nintendo,
.game-mario,
.brand-thumbtack,
.country-swiss {
  background: linear-gradient(135deg, var(--red), #d94d3f);
}

.ai-openai,
.ai-deepmind,
.brand-microsoft,
.brand-pulte {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.brand-apple {
  color: var(--ink);
  background: linear-gradient(135deg, #f9f9f7, #e3e5df);
}

.brand-apple::before {
  opacity: 0.4;
}

.photo-token.has-photo span {
  display: none;
}

.result-rank.photo-token.has-photo {
  overflow: visible;
}

.result-rank.photo-token.has-photo span {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.64rem;
  font-weight: 950;
  box-shadow: 0 5px 10px rgba(16, 38, 45, 0.18);
}

.is-winner .result-rank.photo-token.has-photo span {
  background: var(--red);
}

.factor-board {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) 64px minmax(310px, 1.18fr);
  gap: 14px;
  min-height: 0;
}

.factor-zone {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d7e1dd;
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(4, 82, 100, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 82, 100, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 38px 38px;
}

.scoring-zone {
  overflow: hidden;
  border-color: rgba(189, 40, 49, 0.32);
  background:
    radial-gradient(circle at 87% 18%, rgba(244, 200, 79, 0.34), transparent 20%),
    linear-gradient(90deg, rgba(189, 40, 49, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 200, 79, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, rgba(244, 200, 79, 0.18), rgba(255, 255, 255, 0.95)),
    #ffffff;
  background-size: auto, 38px 38px, 38px 38px, auto;
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone {
  border-color: rgba(126, 69, 20, 0.34);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 74px, rgba(255, 250, 240, 0.72) 75px 78px, transparent 79px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 250, 240, 0.64) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(ellipse at 50% -8%, transparent 0 118px, rgba(255, 250, 240, 0.66) 119px 122px, transparent 123px),
    radial-gradient(ellipse at 50% 108%, transparent 0 118px, rgba(255, 250, 240, 0.66) 119px 122px, transparent 123px),
    repeating-linear-gradient(90deg, rgba(94, 48, 13, 0.08) 0 2px, transparent 2px 42px),
    linear-gradient(135deg, rgba(239, 186, 94, 0.95), rgba(247, 210, 136, 0.9) 45%, rgba(212, 139, 58, 0.86)),
    #e8b766;
  background-size: auto;
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone::before,
body[data-category="nba"] [data-stage="factors"] .scoring-zone::after {
  position: absolute;
  right: 12%;
  left: 12%;
  z-index: 0;
  height: 128px;
  border: 3px solid rgba(255, 250, 240, 0.68);
  border-radius: 0 0 140px 140px;
  content: "";
  pointer-events: none;
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone::before {
  top: -3px;
  border-top: 0;
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone::after {
  bottom: -3px;
  border-top: 0;
  transform: rotate(180deg);
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone .zone-label,
body[data-category="nba"] [data-stage="factors"] .scoring-zone .factor-rack {
  position: relative;
  z-index: 1;
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone .zone-label {
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 8px 18px rgba(94, 48, 13, 0.08);
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone .endzone-empty {
  border-color: rgba(255, 250, 240, 0.7);
  color: rgba(16, 38, 45, 0.7);
  background: rgba(255, 250, 240, 0.42);
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone {
  border-color: rgba(36, 101, 179, 0.34);
  background:
    radial-gradient(ellipse at 52% 58%, rgba(198, 226, 244, 0.86) 0 20%, rgba(98, 148, 182, 0.58) 21% 31%, transparent 32%),
    radial-gradient(circle at 72% 18%, rgba(255, 250, 240, 0.48), transparent 30%),
    linear-gradient(180deg, rgba(19, 52, 89, 0.95) 0 28%, rgba(63, 113, 154, 0.9) 28% 42%, rgba(212, 231, 244, 0.8) 42% 48%, rgba(62, 112, 151, 0.76) 48% 64%, rgba(23, 57, 90, 0.94) 64% 100%),
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.12) 0 2px, transparent 2px 40px);
  background-size: auto;
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone::before,
body[data-category="politics"] [data-stage="factors"] .scoring-zone::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone::before {
  top: 34px;
  right: 16%;
  width: 62px;
  height: 252px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(252, 254, 255, 0.94) 0 44%, rgba(214, 227, 240, 0.94) 44% 100%);
  clip-path: polygon(50% 0, 64% 8%, 64% 100%, 36% 100%, 36% 8%);
  box-shadow:
    0 20px 34px rgba(10, 24, 45, 0.3),
    inset -10px 0 12px rgba(11, 35, 59, 0.2);
  opacity: 0.9;
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone::after {
  right: 9%;
  bottom: 20px;
  left: 9%;
  height: 132px;
  border-radius: 12px 12px 4px 4px;
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.8) 0 18%, rgba(219, 229, 242, 0.82) 18% 28%, rgba(193, 208, 223, 0.7) 28% 100%),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(247, 252, 255, 0.92) 14px 23px, transparent 23px 34px);
  box-shadow:
    0 18px 30px rgba(9, 30, 53, 0.2),
    inset 0 12px 0 rgba(255, 255, 255, 0.38);
  opacity: 0.8;
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone .zone-label,
body[data-category="politics"] [data-stage="factors"] .scoring-zone .factor-rack {
  position: relative;
  z-index: 1;
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone .zone-label {
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 10px 18px rgba(4, 20, 44, 0.14);
}

body[data-category="politics"] [data-stage="factors"] .scoring-zone .endzone-empty {
  border-color: rgba(230, 243, 255, 0.64);
  color: rgba(18, 47, 77, 0.8);
  background: rgba(236, 246, 255, 0.3);
}

.zone-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.zone-label span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zone-label strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.factor-rack {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 2px;
}

.bench-zone .factor-rack {
  grid-template-columns: 1fr;
  gap: 6px;
}

.selected-rack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.endzone-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 150px;
  border: 2px dashed rgba(189, 40, 49, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  color: rgba(16, 38, 45, 0.56);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.96rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.factor-token {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border: 1px solid #d7e1dd;
  border-radius: var(--radius);
  padding: 9px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.factor-token * {
  user-select: none;
  -webkit-user-select: none;
}

.factor-token:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 14px 26px rgba(16, 38, 45, 0.12);
}

.factor-token:focus-visible {
  outline: 3px solid rgba(198, 162, 75, 0.52);
  outline-offset: 2px;
}

.factor-token.is-selected {
  border-color: rgba(189, 40, 49, 0.3);
  background: #fffdf7;
}

.factor-token.is-dragging {
  opacity: 0.42;
}

.drag-ghost {
  position: fixed;
  z-index: 20;
  width: 220px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow: 0 22px 44px rgba(16, 38, 45, 0.22);
}

body.is-factor-dragging,
body.is-factor-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

.factor-token .mini-action {
  position: absolute;
  top: 7px;
  right: 7px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.factor-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.68rem;
  font-weight: 950;
}

.factor-token.is-selected .factor-icon {
  background: var(--red);
}

.factor-token h3 {
  overflow: hidden;
  margin-bottom: 0;
  padding-right: 26px;
  font-size: clamp(0.8rem, 1vw, 0.98rem);
  line-height: 1.1;
  text-wrap: balance;
  white-space: normal;
}

.factor-token p {
  display: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.24;
}

.factor-token:hover p,
.factor-token:focus-within p {
  display: block;
}

.factor-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.source-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.measure-legitimacy {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  border: 1px solid rgba(16, 38, 45, 0.14);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.measure-legitimacy.is-quantifiable {
  border-color: rgba(7, 84, 93, 0.28);
  color: var(--teal-dark);
  background: rgba(223, 233, 221, 0.86);
}

.measure-legitimacy.is-explainable {
  border-color: rgba(118, 111, 69, 0.3);
  color: var(--olive);
  background: rgba(255, 246, 223, 0.9);
}

.measure-legitimacy.is-proxy {
  border-color: rgba(177, 42, 51, 0.32);
  color: var(--red);
  background: rgba(242, 216, 210, 0.9);
}

.source-chip {
  display: inline-grid;
  justify-self: start;
  place-items: center;
  min-height: 20px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--teal);
  background: rgba(255, 250, 240, 0.9);
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.source-chip.is-static {
  color: var(--muted);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.72);
}

.source-chip:hover,
.source-chip:focus-visible {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.bench-zone .factor-token {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 42px;
  padding: 5px 8px;
}

.bench-zone .factor-icon {
  width: 32px;
  height: 32px;
  font-size: 0.6rem;
}

.bench-zone .factor-token h3 {
  font-size: 0.86rem;
}

.field-arrow {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  min-height: 0;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.field-arrow span {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(7, 84, 93, 0.55), transparent);
}

.field-arrow strong {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 34px;
  padding: 0;
  color: rgba(7, 84, 93, 0.78);
  background: transparent;
}

.rank-stack {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(244, 200, 79, 0.3), rgba(255, 255, 255, 0.84) 28%, rgba(4, 82, 100, 0.09) 68%, rgba(189, 40, 49, 0.09)),
    linear-gradient(90deg, rgba(4, 82, 100, 0.07) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 36px 36px;
}

[data-stage="rank"] .rank-stack {
  align-self: start;
  max-height: 100%;
  overflow: auto;
}

.rank-stack::before,
.rank-stack::after {
  display: none;
}

.priority-flow {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
}

.order-workbench {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
}

.order-instructions {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: var(--radius);
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.1), rgba(255, 250, 240, 0.92)),
    #ffffff;
}

.order-instructions h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 2.1rem);
  line-height: 0.98;
}

.order-instructions p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.28;
}

.order-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(177, 42, 51, 0.18);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(238, 245, 242, 0.72)),
    linear-gradient(90deg, rgba(7, 84, 93, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 36px 36px;
}

.order-lane.is-sorting {
  cursor: grabbing;
}

.order-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--teal)) 34%, rgba(16, 38, 45, 0.12));
  border-left: 6px solid var(--accent, var(--teal));
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--teal)) 10%, transparent), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: var(--soft-shadow);
  cursor: grab;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  will-change: transform;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.order-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 246, 223, 0.92), transparent);
  transform: translateX(-32%);
  pointer-events: none;
}

.order-card:first-child {
  border-color: rgba(198, 162, 75, 0.74);
  border-left-color: var(--gold);
  background:
    linear-gradient(90deg, rgba(198, 162, 75, 0.22), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.order-card:hover,
.order-card:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(16, 38, 45, 0.13);
}

.order-card:active {
  cursor: grabbing;
  transform: translateY(1px) scale(0.995);
}

.order-card.is-dragging {
  opacity: 0.58;
  transform: scale(0.99);
}

.order-card.is-pointer-placeholder {
  border-style: dashed;
  opacity: 0.34;
  box-shadow: inset 0 0 0 2px rgba(198, 162, 75, 0.2);
  transform: scale(0.985);
}

.order-card.is-pointer-placeholder > * {
  visibility: hidden;
}

.order-card.is-snapped {
  animation: order-snap 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.order-card.is-snapped::after {
  animation: snap-glint 420ms ease-out;
}

.order-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  margin: 0;
  opacity: 0.98;
  pointer-events: none;
  cursor: grabbing;
  box-shadow: 0 28px 48px rgba(16, 38, 45, 0.24);
}

.order-card.is-drop-target {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.order-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent, var(--teal));
  box-shadow: 0 10px 22px rgba(16, 38, 45, 0.16);
  font-size: 1.05rem;
  font-weight: 950;
}

.order-card:first-child .order-rank {
  color: var(--ink);
  background: var(--gold);
}

.order-art.measure-picture {
  width: 96px;
  min-height: 68px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--accent, var(--teal)) 38%, rgba(255, 250, 240, 0.24));
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--teal)) 86%, #10262d), rgba(118, 111, 69, 0.86));
}

.order-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.order-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-copy em {
  color: var(--red);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-evidence {
  display: block;
  margin-top: 2px;
}

.order-evidence .source-chip-row {
  gap: 5px;
}

.order-evidence .measure-legitimacy,
.order-evidence .source-chip {
  min-height: 18px;
  padding: 0 6px;
  font-size: 0.52rem;
}

.order-actions {
  display: grid;
  gap: 6px;
}

.order-actions button {
  min-width: 66px;
  min-height: 32px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 250, 240, 0.94);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-actions button:hover,
.order-actions button:focus-visible {
  color: #ffffff;
  background: var(--teal);
}

.order-actions button:disabled {
  color: rgba(16, 38, 45, 0.32);
  background: rgba(238, 245, 242, 0.74);
  cursor: default;
}

.priority-mixer {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.formula-dashboard {
  display: grid;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  gap: 10px;
  min-width: 0;
}

.mixer-intro {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 250, 240, 0.72);
}

.mixer-intro h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 2.1rem);
  line-height: 0.98;
}

.mixer-intro p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.26;
}

.mixer-faders {
  display: grid;
  grid-template-columns: repeat(var(--rank-count, 4), minmax(112px, 1fr));
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}

.mixer-card {
  position: relative;
  display: grid;
  grid-template-rows: 82px 178px auto;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent, var(--teal)) 40%, rgba(16, 38, 45, 0.12));
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--teal)) 12%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 242, 0.88)),
    #ffffff;
  box-shadow:
    inset 0 4px 0 var(--accent, var(--teal)),
    var(--soft-shadow);
}

.mixer-art.measure-picture {
  min-height: 0;
  border-color: color-mix(in srgb, var(--accent, var(--teal)) 40%, rgba(255, 250, 240, 0.22));
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--teal)) 86%, #10262d), rgba(118, 111, 69, 0.86));
}

.mixer-track-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.mixer-track {
  position: absolute;
  inset: 8px auto;
  width: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 84, 93, 0.13);
  box-shadow: inset 0 0 0 1px rgba(7, 84, 93, 0.1);
  pointer-events: none;
}

.mixer-track i {
  position: absolute;
  inset: auto 0 0;
  height: var(--level, 20%);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--teal)) 62%, var(--cream)), var(--accent, var(--teal)));
}

.mixer-range {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 32px;
  accent-color: var(--accent, var(--red));
  background: transparent;
  transform: rotate(-90deg);
}

.mixer-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mixer-copy strong,
.mixer-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mixer-copy strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.mixer-copy span {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mixer-copy em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--accent, var(--teal));
  background: rgba(255, 250, 240, 0.86);
  font-style: normal;
  font-weight: 950;
}

.mixer-copy em i {
  color: var(--accent, var(--red));
  font-style: normal;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.compare-meter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(4, 82, 100, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-meter::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--priority-progress, 10%);
  background: linear-gradient(90deg, rgba(244, 200, 79, 0.4), rgba(4, 82, 100, 0.16));
  content: "";
}

.compare-meter span,
.compare-meter strong {
  position: relative;
  z-index: 1;
}

.compare-meter span {
  color: var(--red);
}

.compare-meter strong {
  color: var(--teal);
}

.formula-pie-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(4, 82, 100, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.9), rgba(255, 255, 255, 0.72)),
    #ffffff;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.05);
}

.formula-pie {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--pie);
  box-shadow:
    inset 0 0 0 1px rgba(16, 38, 45, 0.12),
    0 10px 18px rgba(16, 38, 45, 0.12);
}

.formula-pie::after {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: inset 0 0 0 1px rgba(16, 38, 45, 0.08);
  content: "";
}

.formula-pie i {
  position: relative;
  z-index: 1;
  color: var(--teal);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 950;
}

.formula-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  min-width: 0;
}

.formula-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 880;
}

.formula-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.formula-legend-item b {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-legend-item em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.compare-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-height: 0;
  touch-action: pan-y;
}

.polarity-flow {
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
}

.polarity-duel {
  align-items: start;
}

.polarity-issue {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: var(--radius);
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.08), rgba(177, 42, 51, 0.08)),
    rgba(255, 250, 240, 0.78);
}

.polarity-issue span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.polarity-issue strong {
  font-size: clamp(1rem, 2vw, 1.34rem);
  line-height: 1.05;
}

.polarity-choice {
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  min-height: 0;
}

.polarity-choice .choice-copy small {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choice-right .choice-copy small {
  background: var(--red);
}

.polarity-choice.choice-left {
  background:
    radial-gradient(circle at 82% 16%, rgba(177, 42, 51, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 233, 233, 0.78)),
    #ffffff;
}

.polarity-choice.choice-left .choice-copy small {
  background: var(--red);
}

.polarity-choice.choice-right {
  background:
    radial-gradient(circle at 82% 16%, rgba(36, 101, 179, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(220, 232, 248, 0.78)),
    #ffffff;
}

.polarity-choice.choice-right .choice-copy small {
  background: var(--dem-blue);
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr);
  align-content: center;
  gap: 16px;
  min-width: 0;
  min-height: 260px;
  border: 1px solid rgba(16, 38, 45, 0.14);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 200, 79, 0.34), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 241, 239, 0.88)),
    #ffffff;
  text-align: left;
  box-shadow: var(--soft-shadow);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.compare-duel.is-swiping .choice-card {
  transition: none;
}

.compare-duel.is-swiping .choice-candidate {
  transform: translateX(calc(var(--swipe-shift, 0px) * 0.1));
}

.compare-duel.is-swiping .choice-comparison {
  transform: translateX(calc(var(--swipe-shift, 0px) * 0.1));
}

.compare-duel.is-swipe-left .choice-candidate,
.compare-duel.is-swipe-right .choice-comparison {
  border-color: rgba(198, 162, 75, 0.92);
  box-shadow:
    0 0 0 4px rgba(198, 162, 75, 0.18),
    var(--shadow);
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.choice-comparison,
.choice-right {
  background:
    radial-gradient(circle at 82% 16%, rgba(189, 40, 49, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 233, 233, 0.78)),
    #ffffff;
}

.choice-card.polarity-choice {
  grid-template-columns: minmax(156px, 0.34fr) minmax(0, 1fr);
  grid-template-rows: auto;
  align-content: start;
  align-items: stretch;
  min-height: 0;
}

.choice-card.polarity-choice .measure-picture {
  min-height: 100%;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 950;
}

.choice-comparison .choice-icon {
  background: var(--red);
}

.measure-picture {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.28) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.94), rgba(118, 111, 69, 0.88));
  box-shadow: inset 0 -24px 50px rgba(0, 0, 0, 0.15);
}

.choice-comparison .measure-picture {
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(16, 42, 46, 0.92), rgba(177, 42, 51, 0.9));
}

.polarity-choice.choice-left .measure-picture {
  border-color: rgba(177, 42, 51, 0.2);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(126, 29, 39, 0.92), rgba(177, 42, 51, 0.88));
}

.polarity-choice.choice-right .measure-picture {
  border-color: rgba(36, 101, 179, 0.2);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(23, 68, 124, 0.92), rgba(36, 101, 179, 0.88));
}

.measure-picture::before,
.measure-picture::after {
  position: absolute;
  content: "";
}

.measure-picture::before {
  width: 74px;
  height: 74px;
  border: 8px solid rgba(255, 246, 223, 0.78);
  border-radius: 50%;
}

.measure-picture::after {
  width: 90px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 246, 223, 0.42);
  transform: translateY(38px);
}

.picture-orbit {
  position: absolute;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(198, 162, 75, 0.46);
  border-radius: 50%;
  transform: rotate(-20deg) scaleY(0.42);
}

.picture-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 60px;
  height: 42px;
  border-radius: 999px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(3, 63, 72, 0.9);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
  font-size: 0.78rem;
  font-weight: 950;
}

.picture-mark.polarity-symbol {
  min-width: 74px;
  border: 1px solid rgba(255, 246, 223, 0.34);
  color: var(--cream);
  background: rgba(16, 42, 46, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.choice-comparison .picture-mark,
.choice-right .picture-mark {
  background: rgba(177, 42, 51, 0.92);
}

.polarity-choice.choice-left .picture-mark {
  background: rgba(126, 29, 39, 0.92);
}

.polarity-choice.choice-right .picture-mark {
  background: rgba(23, 68, 124, 0.92);
}

body[data-category="politics"] .polarity-choice.choice-left,
body[data-category="politics"] .polarity-choice.choice-right {
  background:
    radial-gradient(circle at 82% 16%, rgba(198, 162, 75, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 236, 0.84)),
    #ffffff;
}

body[data-category="politics"] .polarity-choice.choice-tone-a .choice-copy small,
body[data-category="politics"] .polarity-choice.choice-tone-a .picture-mark {
  background: var(--teal);
}

body[data-category="politics"] .polarity-choice.choice-tone-b .choice-copy small,
body[data-category="politics"] .polarity-choice.choice-tone-b .picture-mark {
  background: var(--olive);
}

body[data-category="politics"] .polarity-choice.choice-tone-a .measure-picture,
body[data-category="politics"] .polarity-choice.choice-tone-b .measure-picture {
  border-color: rgba(198, 162, 75, 0.24);
}

body[data-category="politics"] .polarity-choice.choice-tone-a .measure-picture {
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(3, 63, 72, 0.94), rgba(118, 111, 69, 0.88));
}

body[data-category="politics"] .polarity-choice.choice-tone-b .measure-picture {
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.22) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(118, 111, 69, 0.92), rgba(7, 84, 93, 0.88));
}

.picture-bars {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: end;
  gap: 4px;
  z-index: 1;
}

.picture-bars i {
  display: block;
  width: 8px;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 246, 223, 0.78);
}

.picture-bars i:nth-child(1) {
  height: 22px;
}

.picture-bars i:nth-child(2) {
  height: 36px;
}

.picture-bars i:nth-child(3) {
  height: 52px;
  background: var(--gold);
}

.measure-picture[data-art="rings"]::before {
  width: 82px;
  height: 82px;
  border-width: 10px;
  box-shadow: 28px 10px 0 -13px rgba(255, 246, 223, 0.72);
}

.measure-picture[data-art="medal"]::before,
.measure-picture[data-art="award"]::before {
  width: 68px;
  height: 68px;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 12px rgba(255, 246, 223, 0.5);
}

.measure-picture[data-art="trophy"]::before {
  width: 70px;
  height: 58px;
  border: 0;
  border-radius: 10px 10px 22px 22px;
  background:
    radial-gradient(circle at -12px 17px, transparent 0 17px, rgba(255, 246, 223, 0.84) 18px 23px, transparent 24px),
    radial-gradient(circle at calc(100% + 12px) 17px, transparent 0 17px, rgba(255, 246, 223, 0.84) 18px 23px, transparent 24px),
    linear-gradient(180deg, var(--gold), rgba(255, 246, 223, 0.9));
  box-shadow:
    0 54px 0 -26px rgba(255, 246, 223, 0.86),
    0 76px 0 -32px var(--gold);
}

.measure-picture[data-art="trophy"]::after {
  width: 58px;
  height: 6px;
  transform: translateY(50px);
  background: rgba(255, 246, 223, 0.74);
}

.measure-picture[data-art="shield"]::before {
  width: 74px;
  height: 84px;
  border: 0;
  border-radius: 38px 38px 50px 50px;
  background: linear-gradient(180deg, rgba(255, 246, 223, 0.88), rgba(198, 162, 75, 0.78));
  clip-path: polygon(50% 0, 92% 18%, 82% 80%, 50% 100%, 18% 80%, 8% 18%);
}

.measure-picture[data-art="score"]::before,
.measure-picture[data-art="gauge"]::before {
  width: 92px;
  height: 58px;
  border-width: 4px;
  border-radius: 10px;
}

.measure-picture[data-art="video"]::before {
  width: 0;
  height: 0;
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 42px solid var(--gold);
  border-radius: 0;
}

.measure-picture[data-art="records"]::before {
  width: 82px;
  height: 82px;
  border-width: 18px;
  border-color: rgba(16, 42, 46, 0.88);
  box-shadow: inset 0 0 0 8px var(--gold);
}

.measure-picture[data-art="chart"] .picture-bars,
.measure-picture[data-art="coins"] .picture-bars,
.measure-picture[data-art="speed"] .picture-bars {
  right: 50%;
  bottom: 21px;
  transform: translateX(50%);
}

.measure-picture[data-art="speed"]::before {
  width: 114px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    -22px -24px 0 -2px rgba(255, 246, 223, 0.68),
    24px 24px 0 -2px rgba(255, 246, 223, 0.5);
}

.measure-picture[data-art="clock"]::before {
  box-shadow: inset 20px -14px 0 -16px var(--gold);
}

.measure-picture[data-art="clock"]::after {
  width: 5px;
  height: 36px;
  transform: translate(8px, -8px) rotate(-38deg);
  transform-origin: bottom center;
  background: var(--gold);
}

.measure-picture[data-art="field"]::before,
.measure-picture[data-art="timeline"]::before,
.measure-picture[data-art="library"]::before,
.measure-picture[data-art="menu"]::before {
  width: 114px;
  height: 72px;
  border-width: 2px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 246, 223, 0.5) 48% 52%, transparent 53%),
    repeating-linear-gradient(90deg, rgba(255, 246, 223, 0.38) 0 2px, transparent 2px 24px);
}

.measure-picture[data-art="controller"]::before {
  width: 104px;
  height: 58px;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 246, 223, 0.86);
  box-shadow:
    -40px 9px 0 -24px rgba(255, 246, 223, 0.86),
    40px 9px 0 -24px rgba(255, 246, 223, 0.86);
}

.measure-picture[data-art="plate"]::before {
  border-width: 12px;
  border-color: rgba(255, 246, 223, 0.85);
  box-shadow: inset 0 0 0 12px rgba(177, 42, 51, 0.3);
}

.measure-picture[data-art="fries"]::before {
  width: 64px;
  height: 66px;
  border: 0;
  border-radius: 0 0 18px 18px;
  background: var(--red);
  box-shadow:
    -18px -24px 0 -12px var(--gold),
    0 -31px 0 -12px var(--gold),
    18px -22px 0 -12px var(--gold);
}

.measure-picture[data-art="scales"]::before {
  width: 112px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 246, 223, 0.84);
  box-shadow:
    -30px 28px 0 10px rgba(255, 246, 223, 0.42),
    30px 28px 0 10px rgba(255, 246, 223, 0.42);
}

.measure-picture[data-art="column"]::before {
  width: 98px;
  height: 78px;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 246, 223, 0.82) 18% 28%, transparent 28% 38%, rgba(255, 246, 223, 0.82) 38% 48%, transparent 48% 58%, rgba(255, 246, 223, 0.82) 58% 68%, transparent 68% 78%, rgba(255, 246, 223, 0.82) 78% 88%, transparent 88%),
    linear-gradient(180deg, var(--gold) 0 12%, transparent 12% 88%, var(--gold) 88%);
}

.measure-picture[data-art="people"]::before {
  width: 42px;
  height: 42px;
  border-width: 0;
  background: rgba(255, 246, 223, 0.88);
  box-shadow:
    -34px 18px 0 4px rgba(255, 246, 223, 0.68),
    34px 18px 0 4px rgba(255, 246, 223, 0.68);
}

.measure-picture[data-art="leaf"]::before,
.measure-picture[data-art="spark"]::before,
.measure-picture[data-art="compass"]::before {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 80% 10% 80% 10%;
  background: linear-gradient(135deg, rgba(255, 246, 223, 0.88), var(--gold));
  transform: rotate(45deg);
}

.measure-picture[data-art="compass"]::after {
  width: 18px;
  height: 74px;
  border-radius: 999px;
  background: var(--red);
  transform: rotate(38deg);
}

.tap-hint {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.choice-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

.polarity-choice .choice-copy strong {
  font-size: clamp(1.75rem, 2.8vw, 3rem);
}

.choice-card em {
  display: block;
  max-width: 32rem;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.choice-detail-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.choice-detail-list li {
  position: relative;
  border: 1px solid rgba(7, 84, 93, 0.1);
  border-radius: var(--radius);
  padding: 8px 10px 8px 28px;
  background: rgba(255, 250, 240, 0.64);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.22;
}

.choice-detail-list li::before {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.choice-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 38, 45, 0.08);
}

.choice-signal b,
.choice-signal i {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-signal b {
  color: var(--muted);
}

.choice-signal i {
  color: var(--teal);
}

.choice-right .choice-signal i {
  color: var(--red);
}

.or-token {
  display: grid;
  place-items: center;
  align-self: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.16);
  font-weight: 950;
  text-transform: uppercase;
}

.order-peek {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.order-peek span,
.order-peek strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.order-peek span {
  color: var(--red);
  background: #fff7d3;
  text-transform: uppercase;
}

.order-peek strong {
  color: var(--teal);
  background: #ffffff;
}

.priority-complete {
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto;
  align-content: center;
  gap: 12px;
  min-height: 0;
}

.priority-complete-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 0.98;
}

.final-rank-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.final-rank-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 250, 240, 0.92);
}

.final-rank-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 950;
}

.final-rank-card:first-child {
  border-color: rgba(198, 162, 75, 0.72);
  background:
    linear-gradient(90deg, rgba(198, 162, 75, 0.22), rgba(255, 250, 240, 0.95)),
    #ffffff;
}

.final-rank-card:first-child span {
  color: var(--ink);
  background: var(--gold);
}

.final-rank-card strong {
  display: block;
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-rank-card em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.redo-button {
  justify-self: end;
}

.rank-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  border: 1px solid #d7e1dd;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.rank-card:first-child {
  border-color: rgba(244, 200, 79, 0.85);
  background:
    linear-gradient(90deg, rgba(244, 200, 79, 0.22), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 14px 28px rgba(143, 31, 39, 0.14);
}

.rank-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(16, 38, 45, 0.12);
}

.rank-card.is-dragging {
  opacity: 0.4;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 950;
}

.rank-card:first-child .rank-number {
  color: var(--ink);
  background: var(--gold);
}

.rank-card:nth-child(2) .rank-number {
  background: var(--red);
}

.rank-card h3 {
  margin-bottom: 3px;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
}

.rank-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.rank-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  min-width: 40px;
  min-height: 38px;
  border: 1px solid #cfdbd8;
  border-radius: 7px;
  color: var(--teal);
  background: #ffffff;
  font-weight: 950;
}

.icon-button:hover:not(:disabled) {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.stage-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.next-button,
.ghost-button {
  min-height: 52px;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 950;
}

.next-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 14px 25px rgba(143, 31, 39, 0.22);
}

.next-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid #cdd8d5;
  color: var(--teal);
  background: #ffffff;
}

.results-stage {
  grid-template-rows: minmax(0, auto) minmax(0, 1fr) auto auto;
}

.feedback-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  border-top: 1px solid rgba(16, 38, 45, 0.09);
  padding: 4px 2px 0;
  background: transparent;
  box-shadow: none;
}

.feedback-cta div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feedback-cta strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.feedback-cta span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
}

.feedback-cta button {
  min-height: 24px;
  border: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feedback-cta button:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.loading-reveal {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.loading-reveal[hidden] {
  display: none;
}

.results-stage.is-calculating .loading-reveal {
  opacity: 1;
  transform: scale(1);
}

.calc-wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 246, 223, 0.98) 0 45%, rgba(255, 250, 240, 0.72) 68%, rgba(7, 84, 93, 0.08));
  box-shadow:
    0 22px 42px rgba(16, 38, 45, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.calc-wheel::before,
.calc-wheel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.calc-wheel::before {
  inset: 0;
  border: 8px solid rgba(4, 82, 100, 0.12);
  border-top-color: rgba(177, 42, 51, 0.9);
  border-right-color: rgba(198, 162, 75, 0.94);
  animation: calc-ring-spin 1.28s cubic-bezier(0.55, 0.02, 0.43, 0.99) infinite;
}

.calc-wheel::after {
  inset: 16px;
  border: 1px solid rgba(198, 162, 75, 0.36);
  box-shadow: inset 0 0 24px rgba(198, 162, 75, 0.2);
}

.calc-compass {
  position: relative;
  z-index: 1;
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow:
    0 8px 18px rgba(16, 38, 45, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform-origin: 50% 50%;
  animation: calc-compass-spin 1.56s cubic-bezier(0.64, 0.02, 0.36, 1) infinite;
}

.calc-wheel img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 104px;
  max-width: none;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(16, 38, 45, 0.16));
  transform: translate(-50%, -50%);
}

.loading-reveal p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.winner-spotlight {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 184px;
  border: 1px solid rgba(244, 200, 79, 0.88);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(244, 200, 79, 0.25), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.winner-spotlight[hidden] {
  display: none;
}

.winner-medal {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 50%, #fff8d9 0 38%, transparent 39%),
    conic-gradient(var(--gold), var(--red), var(--teal), var(--gold));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.68);
  font-size: 2rem;
  font-weight: 950;
}

.winner-copy .kicker {
  margin-bottom: 4px;
}

.winner-copy {
  min-width: 0;
}

.winner-copy.has-corner-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: start;
  gap: 14px;
}

.winner-main {
  min-width: 0;
}

.winner-identity,
.winner-proof {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.winner-name {
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.winner-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 800;
}

.method-basis {
  margin-top: 8px;
  max-width: 62ch;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.data-readiness-chip,
.data-readiness-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.data-readiness-chip {
  margin-left: 6px;
  padding: 4px 7px;
  vertical-align: middle;
}

.data-readiness-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
}

.data-readiness-chip.is-strong,
.result-field-note.is-strong .data-readiness-badge {
  color: var(--teal);
  border-color: rgba(7, 84, 93, 0.24);
  background: rgba(232, 248, 241, 0.88);
}

.data-readiness-chip.is-watch,
.result-field-note.is-watch .data-readiness-badge {
  color: #80651e;
  border-color: rgba(198, 162, 75, 0.42);
  background: rgba(255, 250, 240, 0.95);
}

.data-readiness-chip.is-caution,
.result-field-note.is-caution .data-readiness-badge {
  color: #8b5520;
  border-color: rgba(190, 117, 42, 0.4);
  background: rgba(255, 244, 226, 0.96);
}

.data-readiness-chip.is-critical,
.result-field-note.is-critical .data-readiness-badge {
  color: var(--red);
  border-color: rgba(177, 42, 51, 0.38);
  background: rgba(255, 237, 239, 0.96);
}

.result-field-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 68ch;
  margin-top: 12px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.05);
}

.result-field-note.is-strong {
  border-left-color: var(--teal);
}

.result-field-note.is-watch {
  border-left-color: var(--gold);
}

.result-field-note.is-caution {
  border-left-color: #be752a;
}

.result-field-note.is-critical {
  border-left-color: var(--red);
}

.result-field-note span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.result-field-note strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.18;
}

.result-field-note em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.board-readiness-note {
  margin: 10px 0 12px;
}

.board-readiness-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(16, 38, 45, 0.05);
}

.board-readiness-card.is-strong {
  border-color: rgba(7, 84, 93, 0.18);
  background: rgba(232, 248, 241, 0.68);
}

.board-readiness-card.is-watch {
  border-color: rgba(198, 162, 75, 0.34);
  background: rgba(255, 250, 240, 0.86);
}

.board-readiness-card.is-caution {
  border-color: rgba(190, 117, 42, 0.32);
  background: rgba(255, 244, 226, 0.84);
}

.board-readiness-card.is-critical {
  border-color: rgba(177, 42, 51, 0.3);
  background: rgba(255, 237, 239, 0.82);
}

.board-readiness-card > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.board-readiness-card strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 860;
  line-height: 1.15;
}

.board-readiness-card em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.3;
}

.board-photo-preview {
  display: grid;
  grid-template-columns: minmax(138px, 0.9fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 10px;
  overflow: hidden;
}

.board-photo-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 96px;
}

.board-preview-photo {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 96px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(7, 84, 93, 0.92), rgba(126, 29, 39, 0.86));
  background-size: 100% 100%, cover;
  background-position: center, var(--board-preview-position, var(--photo-position, 50% 30%));
  background-repeat: no-repeat;
  box-shadow: inset 0 -34px 38px rgba(1, 35, 41, 0.34);
}

.board-preview-photo.has-photo {
  background-size: 100% 100%, cover;
  background-position: center, var(--board-preview-position, var(--photo-position, 50% 30%));
  background-repeat: no-repeat;
  box-shadow:
    inset 0 -42px 52px rgba(1, 35, 41, 0.4),
    0 10px 20px rgba(16, 38, 45, 0.1);
}

.board-preview-photo > span {
  position: relative;
  z-index: 1;
  margin: 5px;
  width: fit-content;
  max-width: calc(100% - 10px);
  padding: 3px 6px 4px;
  border-radius: 999px;
  background: rgba(1, 35, 41, 0.58);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.board-preview-photo.has-photo > span {
  display: block;
}

.board-photo-preview-copy {
  align-self: center;
  gap: 4px;
}

.board-photo-preview-copy strong {
  font-size: 0.9rem;
}

.board-photo-preview-copy em {
  max-width: 28ch;
}

@media (max-width: 640px) {
  .method-basis .data-readiness-chip {
    margin: 6px 0 0;
  }

  .result-field-note,
  .board-readiness-card {
    flex-direction: column;
  }

  .board-photo-preview {
    grid-template-columns: 1fr;
  }

  .board-photo-preview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 212px;
  }

  .board-preview-photo {
    min-height: 102px;
  }
}

/* Final geometry override: proof text, not pills; slight-radius result art. */
.site-footer .footer-proof,
body[data-step="debate"] .site-footer .footer-proof,
[data-stage="results"] .site-footer .footer-proof {
  grid-column: auto !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-self: center !important;
  justify-self: start !important;
  gap: 7px 15px !important;
  min-width: 0 !important;
}

.site-footer .footer-proof span,
body[data-step="debate"] .site-footer .footer-proof span,
[data-stage="results"] .site-footer .footer-proof span {
  position: relative !important;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: baseline !important;
  align-content: initial !important;
  gap: 5px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(16, 42, 46, 0.64) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.site-footer .footer-proof span::before {
  display: none !important;
}

.site-footer .footer-proof span:not(:last-child)::after {
  content: "" !important;
  display: inline-block !important;
  width: 3px !important;
  height: 3px !important;
  margin-left: 8px !important;
  border-radius: 50% !important;
  background: rgba(157, 23, 50, 0.42) !important;
}

.site-footer .footer-proof b,
body[data-step="debate"] .site-footer .footer-proof b,
[data-stage="results"] .site-footer .footer-proof b {
  color: rgba(7, 84, 93, 0.9) !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

.site-footer .footer-proof em,
body[data-step="debate"] .site-footer .footer-proof em,
[data-stage="results"] .site-footer .footer-proof em {
  margin: 0 !important;
  color: rgba(16, 42, 46, 0.52) !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 520 !important;
  line-height: 1 !important;
}

.result-card {
  border-radius: 8px !important;
}

.result-card .profile-photo,
.profile-photo,
.profile-head .profile-photo {
  border-radius: 8px !important;
}

.result-card-actions .info-link,
.result-card-actions .case-link,
.result-card-actions .official-site-link,
.ghost-button,
.next-button,
.info-close {
  border-radius: 6px !important;
}

.factor-zone,
.rank-stack,
.order-lane,
.winner-spotlight,
.info-card,
.media-card {
  border-radius: 8px !important;
}

@media (max-width: 560px) {
  .site-footer .footer-proof,
  body[data-step="debate"] .site-footer .footer-proof,
  [data-stage="results"] .site-footer .footer-proof {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .site-footer .footer-proof span:not(:last-child)::after {
    display: none !important;
  }
}

.winner-copy .result-disclaimer {
  max-width: 68ch;
  margin-top: 10px;
  font-size: 0.74rem;
  line-height: 1.25;
}

.winner-corner-video {
  box-sizing: border-box;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  display: grid;
  border: 1px solid rgba(198, 162, 75, 0.46);
  border-radius: var(--radius);
  padding: 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(198, 162, 75, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.97), rgba(223, 233, 221, 0.74)),
    #ffffff;
}

.winner-corner-shell {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.16) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.95), rgba(126, 29, 39, 0.9));
  aspect-ratio: 16 / 9;
}

.winner-corner-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.winner-corner-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .winner-copy.has-corner-video {
    grid-template-columns: 1fr;
  }

  .winner-corner-video {
    justify-self: stretch;
    width: 100%;
  }
}

.alignment-visual {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin-top: 14px;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: var(--radius);
  padding: 10px 12px;
  background:
    linear-gradient(90deg, rgba(177, 42, 51, 0.08), rgba(36, 101, 179, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.alignment-pie {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    conic-gradient(
      #b12a33 0 var(--republican-share, 50%),
      #2465b3 var(--republican-share, 50%) 100%
    );
  box-shadow:
    0 12px 24px rgba(16, 38, 45, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.alignment-pie::after {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.95);
  box-shadow: inset 0 0 0 1px rgba(16, 38, 45, 0.08);
  content: "";
}

.alignment-pie span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.alignment-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.alignment-copy strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.alignment-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.24;
}

.alignment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.alignment-legend em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 250, 240, 0.86);
  color: var(--ink);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alignment-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.alignment-legend .is-republican i {
  background: #b12a33;
}

.alignment-legend .is-democrat i {
  background: #2465b3;
}

.winner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.result-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 640px);
  margin-top: 16px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 16px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 241, 0.7)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(16, 42, 46, 0.07);
}

.result-summary-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.result-summary-copy .kicker {
  margin: 0;
}

.result-summary-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  font-weight: 760;
  line-height: 1.08;
}

.result-summary-copy .winner-description {
  max-width: none !important;
  margin: 0 !important;
}

.result-summary-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}

.result-summary-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(16, 42, 46, 0.72);
  background: rgba(255, 250, 240, 0.78);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1;
}

.winner-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 2px 0 0;
  border: 1px solid rgba(126, 29, 39, 0.16);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 14% 18%, rgba(198, 162, 75, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(238, 245, 242, 0.94)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.winner-share-card > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.winner-share-card small {
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.winner-share-card strong {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  font-weight: 780;
  line-height: 1.08;
}

.winner-share-card em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 460;
  line-height: 1.25;
}

.result-share-button {
  display: inline-grid;
  align-content: center;
  place-items: center;
  gap: 3px;
  min-height: 62px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 12px;
  padding: 0 24px;
  color: var(--teal);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 10px 18px rgba(16, 38, 45, 0.06);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 820;
  letter-spacing: 0;
  cursor: pointer;
}

.result-share-button small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.64rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-share-primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red) 0%, #9a2631 58%, var(--teal) 100%);
  box-shadow: 0 16px 28px rgba(126, 29, 39, 0.24);
}

.result-share-button:hover,
.result-share-button:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(198, 162, 75, 0.46);
  outline-offset: 2px;
}

.share-status-toast {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 1000;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(126, 29, 39, 0.92));
  box-shadow: 0 20px 42px rgba(16, 38, 45, 0.18);
  font-size: 0.84rem;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.share-status-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 620px) {
  .result-summary-panel {
    width: 100%;
    margin-top: 12px;
    border-radius: 13px;
    padding: 12px;
  }

  .result-summary-copy h3 {
    font-size: 1.08rem;
  }

  .result-summary-facts span {
    min-height: 26px;
    font-size: 0.66rem;
  }

  .winner-share-card {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .winner-share-card .result-share-button {
    width: 100%;
    min-height: 56px;
  }
}

.results-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(72px, auto);
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.empty-results-note {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  border: 1px solid rgba(177, 42, 51, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(177, 42, 51, 0.06), rgba(7, 84, 93, 0.04)),
    #ffffff;
  font-size: 0.9rem;
}

.empty-results-note strong {
  color: var(--ink);
  font-size: 1rem;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  min-height: 0;
  border: 1px solid #dce5e2;
  border-radius: var(--radius);
  padding: 10px;
  background: #ffffff;
  animation: land 300ms ease both;
  overflow: hidden;
}

.result-card::after {
  position: absolute;
  inset: auto 0 0 0;
  width: var(--score-pct, 0%);
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  content: "";
}

.result-card.is-winner {
  border-color: rgba(189, 40, 49, 0.45);
  background:
    linear-gradient(90deg, rgba(189, 40, 49, 0.08), rgba(4, 82, 100, 0.06)),
    #ffffff;
}

.result-rank {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 950;
}

.is-winner .result-rank {
  background: var(--red);
}

.result-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card .result-rank {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
}

.score-value {
  color: var(--teal);
  font-weight: 950;
  text-align: right;
}

.result-card.is-ai-model-result {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 14px;
  min-height: 88px;
  padding: 13px 15px;
}

.result-card.is-ai-model-result .result-rank.ai-model-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: visible;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, var(--ai-model-accent), var(--ai-model-color) 58%, #102a2e);
  box-shadow:
    0 14px 26px rgba(16, 38, 45, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.result-card.is-ai-model-result .result-rank.ai-model-avatar::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
  opacity: 0.55;
}

.result-card.is-ai-model-result .ai-model-picture {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.2);
}

.result-card.is-ai-model-result .ai-model-picture img {
  display: block;
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.result-card.is-ai-model-result .ai-model-picture b {
  color: var(--ai-model-color);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

.result-card.is-ai-model-result .ai-model-rank {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(16, 38, 45, 0.2);
}

.result-card.is-ai-model-result.is-winner .ai-model-rank {
  background: var(--red);
}

.result-card.is-ai-model-result strong {
  font-size: 0.96rem;
}

.result-card.is-ai-model-result div > span {
  margin-top: 3px;
  white-space: normal;
  line-height: 1.26;
}

.full-ranking-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(245, 239, 226, 0.78)),
    #ffffff;
}

.full-ranking-head {
  display: grid;
  gap: 3px;
}

.full-ranking-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
}

.full-ranking-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.3;
}

.full-ranking-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.full-ranking-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 8px;
  border-bottom: 1px solid rgba(7, 84, 93, 0.08);
  padding: 5px 0 7px;
}

.full-ranking-list li:last-child {
  border-bottom: 0;
}

.full-ranking-rank {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
}

.full-ranking-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-ranking-list em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.full-ranking-list small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.24;
}

.full-ranking-divider {
  margin-top: 4px;
  border-bottom: 0 !important;
  padding: 8px 0 3px !important;
}

.full-ranking-divider span {
  grid-column: 1 / -1;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.full-ranking-list li.is-factor-leader {
  border: 1px solid rgba(198, 162, 75, 0.5);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: rgba(255, 250, 240, 0.9);
}

.full-ranking-list li.is-factor-leader .full-ranking-rank,
.full-ranking-list li.is-factor-leader small {
  color: var(--red);
}

.polarity-breakdown {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.08), rgba(177, 42, 51, 0.06)),
    rgba(255, 250, 240, 0.82);
}

.polarity-breakdown h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1;
}

.polarity-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.polarity-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
}

.polarity-row b,
.polarity-row strong,
.polarity-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polarity-row b {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.polarity-row strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.polarity-row em {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--red));
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.city-guide-dock {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 260px;
  border: 1px solid rgba(198, 162, 75, 0.55);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 18% 14%, rgba(198, 162, 75, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(223, 233, 221, 0.7)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.source-video-dock {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-height: 260px;
  border: 1px solid rgba(198, 162, 75, 0.55);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 18% 14%, rgba(198, 162, 75, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(223, 233, 221, 0.72)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.source-video-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.16) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(126, 29, 39, 0.92));
}

.source-video-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
}

.source-video-placeholder {
  color: #ffffff;
  font-weight: 950;
}

.source-video-copy {
  align-self: center;
  min-width: 0;
}

.source-video-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 0.98;
}

.source-video-copy > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.25;
}

.source-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.city-photo-shell {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(126, 29, 39, 0.9));
}

.city-photo-shell::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(16, 38, 45, 0.76)),
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.16) 0 2px, transparent 2px 20px);
  content: "";
}

.city-photo-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 18px;
  color: #ffffff;
}

.city-photo-caption small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.city-photo-caption strong {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.94;
}

.city-video-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(126, 29, 39, 0.9));
}

.city-video-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
}

.city-video-copy {
  align-self: center;
  min-width: 0;
}

.city-video-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 0.98;
}

.city-video-copy > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.25;
}

.city-video-actions,
.city-guide-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.city-guide-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: min(220px, 100%);
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(16, 38, 45, 0.06);
}

.city-guide-chip span {
  color: var(--red);
}

.city-guide-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-guide-chip em {
  color: var(--teal);
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
}

.player-token.photo-token.has-photo,
.battle-fighter.photo-token.has-photo,
.winner-medal.photo-token.has-photo,
.result-rank.photo-token.has-photo {
  background-size: var(--photo-size, cover);
  background-position: var(--photo-position, 50% 30%);
  background-repeat: no-repeat;
}

.winner-medal.photo-token.has-photo {
  border: 8px solid rgba(255, 255, 255, 0.92);
  outline: 1px solid rgba(7, 84, 93, 0.16);
  background-color: #e8eee9;
  box-shadow:
    0 18px 40px rgba(16, 38, 45, 0.14),
    inset 0 -34px 58px rgba(1, 58, 71, 0.06);
}

.info-link {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.result-actions .info-link,
.winner-actions .info-link,
.case-link,
.social-share-link {
  display: inline-grid;
  place-items: center;
  min-height: 25px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 250, 240, 0.84);
  font-size: 0.68rem;
  line-height: 1;
}

.case-link {
  color: var(--teal);
  font-weight: 950;
  text-transform: uppercase;
}

.social-share-link {
  width: 30px;
  height: 25px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.social-share-link[role="button"] {
  border: 0;
}

.social-share-link:focus-visible {
  outline: 2px solid rgba(24, 119, 242, 0.74);
  outline-offset: 2px;
}

.social-share-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.portal-share-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.social-share-linkedin {
  background: #0a66c2;
}

.social-share-facebook {
  background: #1877f2;
}

.social-share-instagram {
  background: radial-gradient(circle at 35% 35%, #f9ce34, #e1306c 45%, #405de6);
}

.social-share-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-toggle {
  border: 1px solid rgba(7, 84, 93, 0.14);
  font-family: inherit;
  cursor: pointer;
}

.profile-toggle[aria-expanded="true"] {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.case-link:hover,
.info-link:hover {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.profile-drawer {
  display: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(238, 245, 242, 0.92)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.is-profile-open .profile-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 12px;
  animation: profile-drop 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-drawer > * {
  max-width: 100%;
  min-width: 0;
}

.result-card .profile-drawer {
  grid-column: 1 / -1;
}

.result-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.result-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.result-card-actions .info-link,
.result-card-actions .case-link {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.72rem;
}

.official-site-link {
  color: var(--teal);
}

.result-card-actions .official-site-link,
.profile-links .official-site-link {
  border-color: rgba(7, 84, 93, 0.24);
  background: rgba(232, 244, 242, 0.92);
}

.winner-copy .profile-drawer {
  max-width: 980px;
}

.profile-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 223, 0.9) 0 34%, transparent 35%),
    linear-gradient(135deg, var(--teal), var(--red));
  box-shadow: 0 16px 30px rgba(16, 38, 45, 0.14);
  font-size: 1.1rem;
  font-weight: 950;
}

.profile-photo.has-photo {
  background-size: cover;
  background-position: var(--photo-position, 50% 30%);
  background-repeat: no-repeat;
}

.profile-photo span,
.result-card .profile-photo span {
  display: grid;
  place-items: center;
  overflow: visible;
  color: #ffffff;
  font-size: inherit;
  font-weight: 950;
  line-height: 1;
  text-overflow: clip;
  white-space: normal;
}

.profile-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-title h3,
.result-card .profile-title h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 2.1vw, 2.25rem);
  font-weight: 950;
  line-height: 0.96;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-title span,
.result-card .profile-title span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.profile-stat,
.result-card .profile-stat {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.76);
}

.profile-stat b,
.result-card .profile-stat b {
  overflow: visible;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.profile-stat em,
.result-card .profile-stat em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-stat small,
.result-card .profile-stat small {
  display: block;
  overflow: hidden;
  color: rgba(79, 95, 96, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.result-card .profile-body {
  grid-template-columns: minmax(0, 1fr);
}

.profile-why {
  display: grid;
  align-content: start;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-left: 4px solid var(--gold);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 246, 223, 0.74);
}

.profile-why strong,
.result-card .profile-why strong {
  overflow: visible;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
}

.profile-why span,
.result-card .profile-why span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
}

.profile-why b,
.profile-why em,
.result-card .profile-why b,
.result-card .profile-why em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-why em,
.result-card .profile-why em {
  color: var(--red);
  font-style: normal;
  font-weight: 950;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.profile-links .info-link,
.profile-links .case-link {
  margin-top: 0;
}

@keyframes profile-drop {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (max-width: 720px) {
  .profile-drawer {
    padding: 10px;
  }

  .profile-head {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 9px;
  }

  .profile-photo {
    width: 66px;
    height: 66px;
    border-width: 4px;
    font-size: 0.82rem;
  }

  .profile-title h3,
  .result-card .profile-title h3 {
    font-size: 1.14rem;
  }

  .profile-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-why span,
  .result-card .profile-why span {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .profile-why b,
  .profile-why em,
  .result-card .profile-why b,
  .result-card .profile-why em {
    white-space: normal;
  }
}

.media-card {
  width: min(820px, 94vw);
}

.media-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.12) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.media-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  max-width: 52ch;
  padding: 22px;
  color: #ffffff;
  text-align: center;
}

.media-placeholder strong {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1;
}

.media-placeholder p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 780;
  line-height: 1.38;
}

.media-placeholder small {
  color: rgba(255, 246, 223, 0.76);
  font-weight: 800;
}

.media-placeholder .city-video-actions {
  justify-content: center;
}

.media-placeholder .city-research-link {
  border: 1px solid rgba(255, 246, 223, 0.32);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--cream);
  background: rgba(255, 246, 223, 0.08);
  text-decoration: none;
}

.media-placeholder .city-research-link:hover {
  color: var(--teal);
  background: var(--cream);
}

.media-play {
  display: block;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--gold);
}

.media-link-button {
  display: inline-grid;
  place-items: center;
  width: max-content;
  margin-top: 14px;
  text-decoration: none;
}

.result-celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  z-index: 5;
  top: var(--y, 56px);
  left: var(--x, 50%);
  width: var(--w, 9px);
  height: var(--h, 14px);
  border-radius: var(--r, 2px);
  background: var(--c);
  animation: confetti var(--duration, 1960ms) cubic-bezier(0.18, 0.74, 0.24, 1) forwards;
  transform: translate3d(-50%, -8px, 0) rotate(var(--start-rot, 0deg));
  will-change: transform, opacity;
  pointer-events: none;
}

.result-celebration-layer .confetti-piece {
  z-index: 1;
  opacity: 1;
  mix-blend-mode: normal;
  box-shadow: 0 1px 3px rgba(16, 42, 46, 0.12);
}

.confetti-piece.is-dot {
  border-radius: 999px;
}

.confetti-piece.is-ribbon {
  width: calc(var(--w, 9px) * 1.8);
  height: calc(var(--h, 14px) * 0.46);
  border-radius: 999px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes calc-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes calc-compass-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  58% {
    transform: rotate(250deg) scale(1.035);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes engine-sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes engine-orbit-one {
  to {
    transform: rotate(339deg) scaleY(0.68);
  }
}

@keyframes engine-orbit-two {
  to {
    transform: rotate(388deg) scaleY(0.68);
  }
}

@keyframes brand-logo-orbit-one {
  0% {
    transform: translate(-50%, -50%) rotate(20deg) scaleY(0.62);
  }
  100% {
    transform: translate(-50%, -50%) rotate(380deg) scaleY(0.62);
  }
}

@keyframes brand-logo-orbit-two {
  0% {
    transform: translate(-50%, -50%) rotate(-28deg) scaleY(0.72);
  }
  100% {
    transform: translate(-50%, -50%) rotate(332deg) scaleY(0.72);
  }
}

@keyframes compass-float {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes order-snap {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.025);
  }
  72% {
    transform: scale(0.992);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes snap-glint {
  0% {
    opacity: 0;
    transform: translateX(-34%);
  }
  30% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: translateX(34%);
  }
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confetti {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -18px, 0) rotate(var(--start-rot, 0deg)) scale(0.9);
  }
  14% {
    opacity: 1;
  }
  56% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--dx)), var(--fall, 360px), 0) rotate(var(--spin, 520deg)) scale(1);
  }
}

@keyframes result-spotlight-pop {
  0% {
    filter: saturate(0.98);
    opacity: 0.98;
    transform: translateY(12px) scale(0.986);
  }
  42% {
    filter: saturate(1.04);
    opacity: 1;
    transform: translateY(-3px) scale(1.006);
  }
  100% {
    filter: saturate(1);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes result-reveal-aura {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.035);
  }
}

@keyframes result-panel-rise {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-celebration-layer {
    display: none !important;
  }

  body[data-step="results"] .winner-spotlight.is-reveal-celebrating,
  body[data-step="results"] .winner-spotlight.is-reveal-celebrating::before,
  body[data-step="results"] .winner-spotlight.is-reveal-celebrating > * {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
    padding: 12px;
  }

  .app-header {
    grid-template-columns: 170px minmax(220px, 1fr) auto;
    gap: 10px;
    min-height: 64px;
  }

  .brand-lockup {
    width: 170px;
    height: 64px;
  }

  .global-search input {
    height: 36px;
    font-size: 0.8rem;
  }

  .header-title {
    padding-left: 10px;
  }

  .header-title strong {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    white-space: normal;
  }

  .header-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 6px;
    justify-items: end;
  }

  .site-nav {
    justify-content: end;
  }

  .site-nav button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.64rem;
  }

  .journey-rail {
    justify-self: end;
    width: auto;
  }

  .journey-step {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 7px 9px;
    text-align: center;
  }

  .journey-step strong {
    font-size: 0.72rem;
  }

  .goat-console {
    min-height: 0;
  }

  .winner-spotlight {
    min-height: 142px;
    grid-template-columns: 122px minmax(0, 1fr);
  }

  .winner-medal {
    width: 118px;
    height: 118px;
    font-size: 1.5rem;
  }

  .alignment-visual {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .alignment-pie {
    width: 76px;
    height: 76px;
  }

  .alignment-pie::after {
    inset: 13px;
  }

  .alignment-copy strong {
    font-size: 0.92rem;
  }

  .alignment-copy > span {
    font-size: 0.72rem;
  }

  .stage {
    gap: 8px;
    padding: 12px;
  }

  .stage-copy h1 {
    font-size: clamp(1.55rem, 4vw, 2.3rem);
  }

  [data-stage="debate"] .stage-copy {
    grid-template-columns: 1fr;
    max-height: 112px;
  }

  .value-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .featured-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(132px, 1.05fr);
    min-height: 134px;
  }

  .feature-art {
    min-height: 112px;
  }

  .feature-art .player-token {
    min-height: 94px;
  }

  .value-panel article {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 7px;
    padding: 6px 8px;
  }

  .value-panel b {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .value-panel p {
    font-size: 0.68rem;
  }

  .hero-engine {
    display: none;
  }

  .engine-orbit {
    width: 118px;
  }

  .portal-board-head {
    align-items: start;
  }

  .portal-board-tools {
    align-items: end;
    flex-direction: column;
    gap: 6px;
  }

  .portal-board-tools > span {
    max-width: 28ch;
    font-size: 0.7rem;
  }

  .portal-search {
    width: min(240px, 34vw);
  }

  .hero-battle {
    grid-template-columns: minmax(0, 1fr);
  }

  .battle-card {
    min-height: 108px;
  }

  .battle-fighter {
    height: 108px;
  }

  .poster-art {
    min-height: 0;
  }

  .player-token {
    width: 100%;
    max-width: 86px;
    height: 78px;
    font-size: 1.12rem;
  }

  .poster-duel {
    grid-template-columns: minmax(56px, 1fr) 48px minmax(56px, 1fr);
    gap: 5px;
    padding-inline: 7px;
  }

  .factor-token {
    padding: 11px;
  }

  .factor-token p,
  .rank-card p {
    display: none;
  }

  .rank-card {
    padding: 8px 12px;
  }

  .order-lane {
    gap: 8px;
  }

  .order-card {
    grid-template-columns: 42px 72px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 78px;
    padding: 8px;
  }

  .order-rank {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }

  .order-art.measure-picture {
    width: 72px;
    min-height: 56px;
  }

  .order-copy span {
    display: none;
  }

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

  .order-actions button {
    min-width: 54px;
    min-height: 30px;
    font-size: 0.62rem;
  }

  .mixer-faders {
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  }

  .mixer-card {
    grid-template-rows: 72px 138px auto;
  }

  .choice-card {
    min-height: 210px;
    padding: 16px;
  }

  .polarity-choice {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .choice-card.polarity-choice {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .measure-picture {
    min-height: 98px;
  }

  .choice-card strong {
    font-size: clamp(1.55rem, 4vw, 2.6rem);
  }

  .choice-card em {
    font-size: 0.86rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  .app-header {
    grid-template-columns: 138px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px;
    min-height: 98px;
    justify-content: space-between;
    min-width: 0;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    width: 138px;
    height: 54px;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .global-search input {
    height: 34px;
    padding: 0 13px;
    font-size: 0.76rem;
  }

  .header-title {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    grid-template-columns: 1fr;
    gap: 5px;
    width: auto;
    max-width: 100%;
    overflow: visible;
  }

  .site-nav {
    display: flex;
    justify-content: end;
  }

  .site-nav button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.58rem;
  }

  .journey-rail {
    width: auto;
    max-width: 100%;
  }

  .journey-step {
    display: none;
    min-width: 96px;
    min-height: 40px;
    border-right: 0;
    padding: 6px 9px;
    text-align: left;
  }

  .journey-step.is-active {
    display: grid;
  }

  .journey-step span {
    font-size: 0.5rem;
  }

  .journey-step strong {
    font-size: 0.68rem;
  }

  .goat-console {
    min-height: 0;
    min-width: 0;
  }

  .poster-grid,
  .factor-board,
  .results-list {
    grid-template-columns: 1fr;
  }

  [data-stage="debate"] .stage-copy {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    min-height: 64px;
    padding: 9px 10px;
  }

  .stage-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  [data-stage="debate"] .stage-subtitle {
    display: block;
    max-width: 31ch;
    overflow: visible;
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .hero-copy,
  .hero-engine,
  .hero-battle,
  .battle-card,
  .value-panel {
    min-width: 0;
    max-width: 100%;
  }

  .hero-battle {
    gap: 7px;
    padding: 8px;
  }

  .battle-label {
    padding: 4px 7px;
    font-size: 0.56rem;
  }

  .battle-card {
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    min-height: 78px;
  }

  .battle-fighter {
    height: 78px;
    font-size: 0.82rem;
  }

  .battle-versus {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }

  .hero-battle strong {
    font-size: 1.08rem;
  }

  .hero-battle em {
    font-size: 0.68rem;
  }

  .hero-engine {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px;
    min-height: 0;
    padding: 10px;
  }

  .engine-label {
    padding: 4px 7px;
    font-size: 0.54rem;
  }

  .engine-orbit {
    grid-row: 2 / 4;
    width: 84px;
  }

  .engine-orbit img {
    width: 54px;
    height: 54px;
  }

  .engine-stack {
    gap: 5px;
  }

  .engine-stack > span,
  .engine-answer {
    padding: 7px 8px;
  }

  .engine-stack b,
  .engine-answer small {
    font-size: 0.5rem;
  }

  .engine-stack em {
    font-size: 0.64rem;
  }

  .engine-answer strong {
    font-size: 0.78rem;
  }

  .value-panel {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .featured-board {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .feature-art {
    order: -1;
    min-height: 108px;
  }

  .feature-art .poster-duel {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    padding: 7px;
  }

  .feature-art .player-token {
    min-height: 90px;
  }

  .feature-copy strong {
    font-size: 1.04rem;
  }

  .feature-copy span {
    font-size: 0.72rem;
  }

  .portal-board-head {
    display: grid;
    gap: 4px;
    padding-top: 4px;
  }

  .portal-board-head h2 {
    font-size: 1rem;
  }

  .portal-board-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .portal-board-tools > span {
    max-width: 100%;
    font-size: 0.64rem;
    text-align: left;
  }

  .portal-search {
    width: 100%;
  }

  .portal-search input {
    height: 30px;
    font-size: 0.72rem;
  }

  .portal-menu {
    gap: 5px;
    padding: 5px;
  }

  .portal-menu button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .value-panel article {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 6px;
    padding: 6px 7px 6px 9px;
  }

  .value-panel b {
    width: 24px;
    height: 24px;
    margin-top: 0;
    font-size: 0.7rem;
  }

  .value-panel span {
    margin-bottom: 3px;
    font-size: 0.48rem;
  }

  .value-panel strong {
    margin-bottom: 0;
    font-size: 0.68rem;
    line-height: 1.08;
  }

  .value-panel p {
    display: none;
  }

  .site-footer {
    min-height: 0;
    padding: 7px;
  }

  .footer-brand span {
    display: none;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .footer-nav button {
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.56rem;
  }

  .poster-grid {
    grid-template-columns: 1fr;
  }

  .culture-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 32px;
  }

  .factor-board {
    grid-template-rows: minmax(0, 1fr) auto minmax(112px, 0.82fr);
    gap: 8px;
    min-height: 0;
    overflow: hidden;
  }

  .factor-zone {
    padding: 8px;
  }

  .zone-label {
    margin-bottom: 6px;
  }

  .zone-label span {
    font-size: 0.65rem;
  }

  .zone-label strong {
    font-size: 0.92rem;
  }

  .bench-zone .factor-token {
    min-height: 38px;
    padding: 4px 7px;
  }

  .bench-zone .factor-icon {
    width: 30px;
    height: 30px;
  }

  .endzone-empty {
    min-height: 86px;
    font-size: 0.82rem;
  }

  .field-arrow {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto;
  }

  .field-arrow span {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(7, 84, 93, 0.55), transparent);
  }

  .field-arrow strong {
    width: 82px;
    min-height: 26px;
    border-radius: var(--radius);
    font-size: 0.58rem;
  }

  .selected-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage {
    gap: 8px;
    padding: 10px;
  }

  .stage-copy h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 1.48rem;
  }

  .poster-grid {
    gap: 8px;
  }

  .category-section {
    gap: 6px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .section-heading > div {
    gap: 7px;
  }

  .section-heading h2 {
    font-size: 1rem;
  }

  .section-heading p {
    font-size: 0.68rem;
    text-align: left;
  }

  .goat-photo {
    width: 38px;
    height: 28px;
  }

  .section-card-grid,
  .soon-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .poster-art {
    min-height: 0;
    height: 88px;
  }

  .poster-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    min-height: 110px;
    padding: 10px;
  }

  .poster-label {
    min-width: 0;
    padding: 0 0 0 8px;
  }

  .poster-label strong {
    margin-bottom: 2px;
    font-size: 1rem;
  }

  .poster-label span {
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .poster-label small {
    margin-top: 5px;
    font-size: 0.54rem;
  }

  .poster-duel {
    grid-template-columns: minmax(32px, 1fr) 28px minmax(32px, 1fr);
    gap: 2px;
    padding-inline: 4px;
  }

  .player-token {
    width: 100%;
    max-width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 0.62rem;
  }

  .peek-token {
    right: 2px;
    width: 26px;
    height: 26px;
    font-size: 0.4rem;
    transform: translateX(10px);
  }

  .vs-token {
    width: 28px;
    height: 28px;
    font-size: 0.58rem;
  }

  .poster-badge {
    top: 5px;
    left: 5px;
    padding: 3px 5px;
    font-size: 0.54rem;
  }

  .platform-strip span {
    display: grid;
  }

  .platform-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .culture-strip span,
  .culture-strip button {
    min-height: 32px;
    padding: 0 6px;
    font-size: 0.62rem;
    white-space: normal;
    text-align: center;
  }

  .info-panel {
    inset: 8px;
  }

  .info-card {
    width: 100%;
    padding: 18px;
  }

  .info-view h2 {
    font-size: 2rem;
  }

  .process-grid,
  .methodology-grid,
  .builder-steps,
  .feedback-list {
    grid-template-columns: 1fr;
  }

  .process-hero,
  .process-view .process-grid {
    grid-template-columns: 1fr;
  }

  .process-orbit {
    min-height: 148px;
  }

  .process-view .process-grid article {
    min-height: 0;
  }

  .methodology-grid article {
    min-height: 0;
  }

  .rank-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 8px;
  }

  .rank-stack {
    gap: 6px;
    padding: 8px;
  }

  .priority-flow {
    gap: 8px;
  }

  .order-instructions {
    padding: 8px 10px;
  }

  .order-instructions h2 {
    font-size: 1.05rem;
  }

  .order-instructions p {
    font-size: 0.72rem;
  }

  .order-lane {
    gap: 6px;
    padding: 7px;
  }

  .order-card {
    grid-template-columns: 32px 52px minmax(0, 1fr) 50px;
    gap: 7px;
    min-height: 66px;
    border-left-width: 4px;
    padding: 6px;
  }

  .order-rank {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .order-art.measure-picture {
    width: 52px;
    min-height: 48px;
  }

  .order-copy strong {
    font-size: 0.86rem;
  }

  .order-copy em {
    font-size: 0.56rem;
  }

  .order-actions button {
    min-width: 48px;
    min-height: 26px;
    font-size: 0.56rem;
  }

  .compare-meter {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .formula-dashboard {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .formula-pie-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 9px;
  }

  .formula-pie {
    width: 54px;
    height: 54px;
  }

  .formula-pie::after {
    inset: 13px;
  }

  .formula-pie i {
    font-size: 0.58rem;
  }

  .formula-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .formula-legend-item {
    font-size: 0.56rem;
  }

  .compare-duel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
  }

  .priority-mixer {
    gap: 8px;
  }

  .mixer-intro {
    padding: 8px 10px;
  }

  .mixer-intro h2 {
    font-size: 1.02rem;
  }

  .mixer-intro p:not(.kicker) {
    display: none;
  }

  .mixer-faders {
    grid-template-columns: 1fr;
    gap: 7px;
    overflow: auto;
  }

  .mixer-card {
    grid-template-columns: 58px minmax(0, 1fr) 70px;
    grid-template-rows: auto;
    align-items: center;
    gap: 8px;
    min-height: 76px;
    padding: 7px;
  }

  .mixer-art.measure-picture {
    width: 58px;
    min-height: 58px;
  }

  .mixer-track-wrap {
    height: 38px;
  }

  .mixer-track {
    inset: auto 0;
    width: 100%;
    height: 12px;
  }

  .mixer-track i {
    inset: 0 auto 0 0;
    width: var(--level, 20%);
    height: 100%;
  }

  .mixer-copy strong {
    font-size: 0.76rem;
  }

  .mixer-copy span {
    display: none;
  }

  .mixer-copy em {
    display: grid;
    justify-items: end;
    gap: 1px;
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .mixer-copy em i {
    font-size: 0.54rem;
  }

  .mixer-range {
    width: 100%;
    height: 30px;
    transform: none;
  }

  .choice-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 12px;
    min-height: 124px;
    padding: 12px;
  }

  .polarity-issue {
    padding: 9px 10px;
  }

  .polarity-issue strong {
    font-size: 0.92rem;
  }

  .polarity-choice {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 124px;
  }

  .choice-card.polarity-choice {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 146px;
    padding: 8px;
  }

  .polarity-choice .choice-copy small {
    margin-bottom: 4px;
    padding: 4px 7px;
    font-size: 0.5rem;
  }

  .measure-picture {
    width: 72px;
    min-height: 132px;
  }

  .measure-picture::before {
    transform: scale(0.82);
  }

  .measure-picture::after {
    transform: translateY(32px) scale(0.82);
  }

  .picture-orbit {
    transform: rotate(-20deg) scale(0.68, 0.32);
  }

  .picture-mark {
    min-width: 40px;
    height: 30px;
    font-size: 0.65rem;
  }

  .picture-mark.polarity-symbol {
    min-width: 50px;
    height: 30px;
    padding: 0 6px;
    font-size: 0.46rem;
  }

  .choice-card strong {
    margin-top: 0;
    font-size: 1.18rem;
  }

  .polarity-choice .choice-copy strong {
    font-size: 1.18rem;
  }

  .choice-card em {
    margin-top: 5px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .choice-detail-list {
    gap: 4px;
    margin-top: 6px;
  }

  .choice-detail-list li {
    display: -webkit-box;
    overflow: hidden;
    padding: 5px 7px 5px 18px;
    font-size: 0.58rem;
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .choice-detail-list li:nth-child(n + 2) {
    display: none;
  }

  .choice-detail-list li::before {
    top: 9px;
    left: 8px;
    width: 6px;
    height: 6px;
  }

  .choice-signal {
    display: none;
  }

  .or-token {
    justify-self: center;
    width: 42px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.7rem;
  }

  .tap-hint {
    min-height: 28px;
    font-size: 0.58rem;
  }

  .order-peek {
    display: none;
  }

  .priority-complete {
    gap: 8px;
  }

  .priority-complete-copy h2 {
    font-size: 1.32rem;
  }

  .final-rank-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .final-rank-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 7px;
  }

  .final-rank-card span {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .redo-button {
    justify-self: stretch;
  }

  .rank-stack::before,
  .rank-stack::after {
    display: none;
  }

  .rank-number {
    width: 34px;
    height: 34px;
  }

  .rank-card h3 {
    font-size: 0.86rem;
  }

  .icon-button {
    min-width: 34px;
    min-height: 32px;
    font-size: 0.72rem;
  }

  .next-button,
  .ghost-button {
    min-height: 44px;
    padding: 0 16px;
  }

  .rank-actions {
    justify-content: flex-end;
  }

  .stage-actions {
    position: relative;
    z-index: 4;
    flex-direction: column;
    align-items: stretch;
  }

  .winner-spotlight {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 10px;
  }

  .winner-medal {
    width: 72px;
    height: 72px;
    font-size: 1rem;
  }

  .winner-name {
    margin-bottom: 4px;
    font-size: 1.8rem;
  }

  .winner-copy p {
    font-size: 0.8rem;
  }

  .alignment-visual {
    grid-column: 1 / -1;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
  }

  .alignment-pie {
    width: 58px;
    height: 58px;
  }

  .alignment-pie::after {
    inset: 10px;
  }

  .alignment-pie span {
    font-size: 0.78rem;
  }

  .alignment-copy {
    gap: 3px;
  }

  .alignment-copy strong {
    font-size: 0.82rem;
  }

  .alignment-copy > span {
    font-size: 0.66rem;
  }

  .alignment-legend {
    gap: 4px;
  }

  .alignment-legend em {
    padding: 4px 6px;
    font-size: 0.54rem;
  }

  .winner-actions {
    gap: 5px;
    margin-top: 7px;
  }

  .result-card {
    padding: 8px;
  }

  .polarity-breakdown {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .polarity-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .city-guide-dock {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    padding: 10px;
  }

  .source-video-dock {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    padding: 10px;
  }

  .source-video-shell,
  .source-video-shell iframe {
    min-height: 150px;
  }

  .source-video-copy h3 {
    font-size: 1.2rem;
  }

  .source-video-copy > p {
    font-size: 0.74rem;
  }

  .city-photo-shell {
    min-height: 118px;
  }

  .city-photo-caption {
    padding: 12px;
  }

  .city-photo-caption strong {
    font-size: 1.35rem;
  }

  .city-video-shell iframe {
    min-height: 118px;
  }

  .city-video-placeholder {
    gap: 5px;
    padding: 14px;
  }

  .city-video-placeholder strong {
    font-size: 1.05rem;
  }

  .city-video-placeholder p {
    display: none;
  }

  .city-video-copy h3 {
    font-size: 1.2rem;
  }

  .city-video-copy > p {
    font-size: 0.74rem;
  }

  .city-video-actions,
  .city-guide-queue {
    gap: 6px;
    margin-top: 8px;
  }

  .city-guide-chip {
    width: 100%;
    min-width: 0;
  }

  .result-actions {
    gap: 4px;
  }

  .result-actions .info-link,
  .winner-actions .info-link,
  .case-link {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.58rem;
  }

  .media-card {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .result-card:nth-child(n + 7) {
    display: none;
  }
}

[data-stage="debate"] .portal-board-head {
  display: none;
}

body[data-step="debate"] {
  background:
    radial-gradient(circle at 15% 0%, rgba(7, 84, 93, 0.07), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(177, 42, 51, 0.055), transparent 30%),
    #f7f4ed;
  background-size: auto;
}

body[data-step="debate"] .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-step="debate"] .app-header {
  grid-template-columns: 190px minmax(260px, 760px) auto;
  gap: 28px;
  min-height: 74px;
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  padding: 8px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

body[data-step="debate"] .brand-lockup {
  --brand-compass-x: 63.9%;
  --brand-compass-y: 73%;
  --brand-orbit-size: clamp(36px, 2.9vw, 42px);
  width: 190px;
  height: 62px;
}

body[data-step="debate"] .brand-lockup img {
  filter: saturate(1.04) contrast(1.02);
  transform: none;
}

body[data-step="debate"] .global-search input {
  height: 44px;
  border-color: rgba(16, 38, 45, 0.1);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 38, 45, 0.05);
  font-size: 0.92rem;
  font-weight: 420;
}

body[data-step="debate"] .site-nav button {
  min-height: 34px;
  border-color: transparent;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body[data-step="debate"] .site-nav button:hover {
  color: var(--red);
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-step="debate"] .goat-console {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-step="debate"] .stage {
  padding: 0;
}

body[data-step="debate"] .portal-menu {
  gap: 28px;
  border: 0;
  border-bottom: 1px solid rgba(16, 38, 45, 0.09);
  border-radius: 0;
  padding: 0 clamp(20px, 4vw, 56px);
  min-height: 52px;
  background: rgba(255, 255, 255, 0.62);
  scrollbar-width: none;
}

body[data-step="debate"] .portal-menu::-webkit-scrollbar {
  display: none;
}

body[data-step="debate"] .portal-menu button {
  position: relative;
  min-height: 52px;
  border-radius: 0;
  padding: 0;
  color: rgba(16, 42, 46, 0.7);
  font-size: 0.88rem;
  font-weight: 460;
}

body[data-step="debate"] .portal-menu button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

body[data-step="debate"] .portal-menu button:hover,
body[data-step="debate"] .portal-menu button.is-active {
  color: var(--teal);
  background: transparent;
}

body[data-step="debate"] .portal-menu button.is-active::after {
  background: var(--teal);
}

body[data-step="debate"] .stage-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 24px clamp(20px, 4vw, 56px) 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 240, 0.72)),
    transparent;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.2vw, 3.7rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 48ch;
  color: rgba(110, 114, 95, 0.92);
  margin-top: 8px;
  font-size: clamp(0.98rem, 1.18vw, 1.14rem);
  font-weight: 380;
  line-height: 1.35;
}

body[data-step="debate"] .hero-engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
  min-height: 188px;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 18px;
  padding: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 22%, rgba(198, 162, 75, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(7, 84, 93, 0.08), rgba(177, 42, 51, 0.055)),
    #ffffff;
  box-shadow: 0 24px 60px rgba(16, 38, 45, 0.1);
}

body[data-step="debate"] .hero-engine::before,
body[data-step="debate"] .hero-engine::after {
  display: none;
}

body[data-step="debate"] .engine-label {
  display: inline-grid;
  width: max-content;
  padding: 6px 10px;
  background: rgba(198, 162, 75, 0.22);
  color: var(--ink);
  font-weight: 650;
}

body[data-step="debate"] .engine-orbit {
  display: grid;
  grid-row: auto;
  justify-self: center;
  width: 62px;
}

body[data-step="debate"] .engine-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body[data-step="debate"] .engine-stack > span,
body[data-step="debate"] .engine-answer {
  border-color: rgba(16, 38, 45, 0.07);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

body[data-step="debate"] .engine-stack > span::before {
  display: none;
}

body[data-step="debate"] .engine-stack b,
body[data-step="debate"] .engine-answer small {
  color: rgba(126, 29, 39, 0.75);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

body[data-step="debate"] .engine-stack em,
body[data-step="debate"] .engine-answer strong {
  color: rgba(16, 42, 46, 0.92);
  font-size: 0.7rem;
  font-weight: 420;
  line-height: 1.18;
}

body[data-step="debate"] .engine-answer {
  grid-column: 1 / -1;
  min-width: 0;
  border-color: rgba(7, 84, 93, 0.13);
}

body[data-step="debate"] .value-panel {
  border: 0;
  border-top: 1px solid rgba(16, 38, 45, 0.08);
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 0;
  padding: 10px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.48);
}

body[data-step="debate"] .value-panel b {
  width: 18px;
  height: 18px;
  color: var(--teal);
  background: rgba(7, 84, 93, 0.08);
  font-weight: 650;
}

body[data-step="debate"] .value-panel article {
  padding-top: 0;
  padding-bottom: 0;
}

body[data-step="debate"] .value-panel span {
  color: rgba(126, 29, 39, 0.72);
  font-size: 0.46rem;
  font-weight: 620;
}

body[data-step="debate"] .value-panel strong {
  color: rgba(16, 42, 46, 0.92);
  font-size: 0.86rem;
  font-weight: 430;
}

body[data-step="debate"] .poster-grid {
  gap: 28px;
  padding: 14px clamp(20px, 4vw, 56px) 0;
  overflow-x: hidden;
}

body[data-step="debate"] .section-heading h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 560;
}

body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

body[data-step="debate"] .featured-board {
  gap: 18px;
}

body[data-step="debate"] .featured-portals {
  padding: 16px 0 8px;
  border-bottom: 1px solid rgba(16, 38, 45, 0.07);
}

body[data-step="debate"] .feature-heading {
  align-items: center;
}

body[data-step="debate"] .feature-heading h2 {
  max-width: 16ch;
  font-size: clamp(1.45rem, 2.3vw, 2.6rem);
  font-weight: 520;
  line-height: 0.98;
}

body[data-step="debate"] .feature-heading p {
  display: block;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.3;
}

body[data-step="debate"] .feature-card,
body[data-step="debate"] .poster-card {
  border-color: rgba(16, 38, 45, 0.09);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 38, 45, 0.045);
}

body[data-step="debate"] .feature-card {
  min-height: 210px;
}

body[data-step="debate"] .poster-card {
  border-radius: 12px;
}

body[data-step="debate"] .feature-card:hover,
body[data-step="debate"] .poster-card:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(7, 84, 93, 0.34);
  box-shadow: 0 12px 26px rgba(16, 38, 45, 0.08);
}

body[data-step="debate"] .feature-copy small {
  color: rgba(110, 114, 95, 0.95);
  font-size: 0.56rem;
  font-weight: 620;
}

body[data-step="debate"] .feature-copy strong,
body[data-step="debate"] .poster-label strong {
  font-weight: 560;
}

body[data-step="debate"] .feature-copy span,
body[data-step="debate"] .poster-label span {
  color: rgba(110, 114, 95, 0.92);
  font-weight: 380;
}

body[data-step="debate"] .poster-label {
  padding-top: 12px;
}

body[data-step="debate"] .poster-art,
body[data-step="debate"] .feature-art {
  box-shadow: none;
  border-radius: 10px;
}

body[data-step="debate"] .player-token {
  box-shadow: 0 12px 24px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .vs-token {
  box-shadow: 0 8px 16px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .site-footer {
  border: 0;
  border-top: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 0;
  margin: 10px clamp(20px, 4vw, 56px) 0;
  padding: 14px 0 0;
  background: transparent;
}

@media (max-width: 900px) {
  body[data-step="debate"] .app-shell {
    padding: 10px;
  }

  body[data-step="debate"] .app-header {
    grid-template-columns: 146px minmax(180px, 1fr) auto;
    gap: 10px;
    padding-inline: 14px;
  }

  body[data-step="debate"] .brand-lockup {
    width: 146px;
    height: 54px;
  }

  body[data-step="debate"] .stage-copy {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 14px 18px;
  }

  body[data-step="debate"] .hero-engine {
    display: none;
  }

  body[data-step="debate"] .section-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }

  body[data-step="debate"] .featured-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 132px minmax(0, 1fr);
    padding-inline: 12px;
  }

  body[data-step="debate"] .brand-lockup {
    width: 132px;
    height: 52px;
  }

  body[data-step="debate"] .stage {
    padding: 10px;
  }

  body[data-step="debate"] .value-panel {
    gap: 7px;
    border-top: 0;
    padding-top: 0;
  }

  body[data-step="debate"] .value-panel article {
    border-right: 0;
    padding-left: 0;
  }

  body[data-step="debate"] .portal-menu {
    gap: 14px;
    padding-inline: 12px;
  }

  body[data-step="debate"] .poster-grid {
    padding-inline: 12px;
  }

  body[data-step="debate"] .value-panel {
    padding-inline: 12px;
  }
}

/* Results should read like a clean report page, not a nested scrolling widget. */
[data-stage="results"] {
  grid-template-rows: auto auto auto auto;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
}

[data-stage="results"] .winner-spotlight,
[data-stage="results"] .results-list,
[data-stage="results"] .feedback-cta,
[data-stage="results"] .stage-actions {
  flex: 0 0 auto;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.winner-spotlight {
  border-radius: 18px;
  padding: clamp(18px, 2.8vw, 30px);
  align-items: start;
  background:
    radial-gradient(circle at 9% 10%, rgba(198, 162, 75, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 240, 0.94));
  box-shadow: 0 18px 46px rgba(16, 38, 45, 0.06);
}

.winner-name {
  font-weight: 520;
  letter-spacing: 0;
}

.winner-description {
  max-width: 72ch;
  margin-top: 10px !important;
  color: rgba(16, 42, 46, 0.72) !important;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem) !important;
  font-weight: 410 !important;
  line-height: 1.42;
}

.results-list {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  overflow: visible;
  padding-right: 0;
}

.result-card {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  border-color: rgba(16, 38, 45, 0.09);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: 0 10px 24px rgba(16, 38, 45, 0.045);
}

.result-card strong {
  font-weight: 620;
}

.result-card span {
  max-width: 58ch;
  font-weight: 380;
}

.result-actions {
  gap: 8px;
  margin-top: 8px;
}

.result-actions .info-link,
.winner-actions .info-link,
.case-link {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.66rem;
  font-weight: 720;
}

.score-value {
  min-width: 58px;
  font-weight: 620;
}

.city-guide-dock,
.source-video-dock {
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(16, 38, 45, 0.055);
}

.feedback-cta {
  border-top: 1px solid rgba(16, 38, 45, 0.08);
  padding-top: 14px;
}

@media (max-width: 760px) {
  .winner-spotlight {
    display: block;
    min-height: 0;
  }

  .winner-medal {
    width: 124px;
    height: 124px;
    margin-bottom: 14px;
  }

  .winner-copy.has-corner-video {
    display: block;
  }

  .winner-corner-video {
    max-width: none;
    margin-top: 14px;
  }

  .results-list {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .score-value {
    grid-column: 2;
    justify-self: start;
  }
}

/* Modern visual system pass: reduce dated texture, open the layout, and make tools feel tactile. */
body {
  background:
    radial-gradient(circle at 8% -10%, rgba(7, 84, 93, 0.08), transparent 30%),
    radial-gradient(circle at 96% 0%, rgba(177, 42, 51, 0.06), transparent 28%),
    linear-gradient(180deg, #fbf8ef 0%, #f7f4ed 48%, #fbfaf6 100%);
  background-size: auto;
}

.app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.app-header {
  grid-template-columns: clamp(150px, 15vw, 214px) minmax(240px, 820px) auto;
  gap: clamp(14px, 2vw, 32px);
  min-height: 78px;
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  width: clamp(150px, 15vw, 214px);
  height: 58px;
}

.brand-lockup img {
  filter: saturate(1.03) contrast(1.02);
  transform: none;
}

.global-search input {
  height: 46px;
  border-color: rgba(16, 38, 45, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 38, 45, 0.055);
  font-size: 0.94rem;
  font-weight: 420;
}

.site-nav button {
  min-height: 38px;
  border-color: rgba(16, 38, 45, 0.09);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 38, 45, 0.045);
  font-weight: 760;
  letter-spacing: 0.03em;
}

.journey-rail {
  border-color: rgba(16, 38, 45, 0.08);
  background: #ffffff;
  box-shadow: none;
}

.journey-step {
  min-width: 96px;
  min-height: 40px;
}

.goat-console {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stage {
  padding: clamp(18px, 3vw, 36px) clamp(18px, 4vw, 64px);
}

[data-stage="factors"],
[data-stage="rank"],
[data-stage="results"] {
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: clamp(18px, 2.4vw, 30px);
  overflow: auto;
}

[data-stage="factors"] .stage-copy,
[data-stage="rank"] .stage-copy {
  max-width: 1120px;
  margin: 0 auto;
}

[data-stage="factors"] .stage-copy h1,
[data-stage="rank"] .stage-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  font-weight: 520;
  line-height: 0.96;
}

[data-stage="factors"] .stage-subtitle,
[data-stage="rank"] .stage-subtitle {
  max-width: 54ch;
  margin-top: 10px;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 380;
  line-height: 1.38;
}

.factor-board {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(18px, 3vw, 34px);
  min-height: 0;
}

.field-arrow {
  display: none;
}

.factor-zone {
  min-height: 0;
  max-height: min(620px, calc(100vh - 280px));
  border: 1px solid rgba(16, 38, 45, 0.09);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  background-size: auto;
  box-shadow: 0 18px 42px rgba(16, 38, 45, 0.065);
}

.scoring-zone,
body[data-category="nba"] [data-stage="factors"] .scoring-zone,
body[data-category="politics"] [data-stage="factors"] .scoring-zone {
  border-color: rgba(177, 42, 51, 0.18);
  background:
    radial-gradient(circle at 88% 4%, rgba(198, 162, 75, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.94));
  box-shadow: 0 20px 48px rgba(126, 29, 39, 0.075);
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone::before,
body[data-category="nba"] [data-stage="factors"] .scoring-zone::after,
body[data-category="politics"] [data-stage="factors"] .scoring-zone::before,
body[data-category="politics"] [data-stage="factors"] .scoring-zone::after {
  display: none;
}

body[data-category="nba"] [data-stage="factors"] .scoring-zone .zone-label,
body[data-category="politics"] [data-stage="factors"] .scoring-zone .zone-label {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.zone-label {
  align-items: start;
  margin-bottom: 14px;
}

.zone-label span {
  color: rgba(177, 42, 51, 0.9);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.zone-label strong {
  font-size: clamp(1.05rem, 1.5vw, 1.42rem);
  font-weight: 520;
}

.factor-rack {
  gap: 10px;
  padding-right: 2px;
  scrollbar-color: rgba(7, 84, 93, 0.28) transparent;
}

.selected-rack {
  grid-template-columns: 1fr;
}

.factor-token {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 64px;
  border-color: rgba(16, 38, 45, 0.09);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 38, 45, 0.05);
}

.factor-token:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.08);
}

.factor-token.is-selected {
  border-color: color-mix(in srgb, var(--accent, var(--red)) 28%, rgba(16, 38, 45, 0.08));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--red)) 8%, transparent), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.factor-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), #0d6871);
  font-weight: 760;
}

.factor-token.is-selected .factor-icon {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.factor-token h3 {
  padding-right: 44px;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  font-weight: 620;
  line-height: 1.05;
}

.factor-token p {
  display: block;
  color: rgba(110, 114, 95, 0.9);
  font-size: 0.78rem;
  font-weight: 380;
  line-height: 1.28;
}

.bench-zone .factor-token {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 58px;
  padding: 8px 10px;
}

.bench-zone .factor-icon {
  width: 36px;
  height: 36px;
}

.bench-zone .factor-token p {
  display: none;
}

.mini-action {
  letter-spacing: 0.06em;
}

.source-chip {
  min-height: 21px;
  border-color: rgba(16, 38, 45, 0.1);
  color: rgba(7, 84, 93, 0.88);
  background: rgba(247, 244, 237, 0.86);
  font-size: 0.56rem;
  font-weight: 680;
}

.endzone-empty {
  min-height: 280px;
  border: 1px dashed rgba(177, 42, 51, 0.22);
  border-radius: 16px;
  color: rgba(16, 42, 46, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 162, 75, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.64);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 560;
  letter-spacing: 0.02em;
  text-transform: none;
}

.stage-actions {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.ghost-button,
.next-button,
.feedback-cta button {
  border-radius: 12px;
  font-weight: 720;
  letter-spacing: 0.01em;
  text-transform: none;
}

.next-button {
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 16px 32px rgba(16, 38, 45, 0.12);
}

.rank-stack,
.order-lane {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-color: rgba(16, 38, 45, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  background-size: auto;
  box-shadow: 0 18px 42px rgba(16, 38, 45, 0.06);
}

.order-instructions,
.mixer-intro {
  border-color: rgba(16, 38, 45, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.order-card {
  min-height: 78px;
  grid-template-columns: 44px 72px minmax(0, 1fr) auto;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.045);
}

.order-art.measure-picture {
  width: 72px;
  min-height: 52px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--teal)) 74%, #ffffff), color-mix(in srgb, var(--accent, var(--teal)) 72%, #10262d));
}

.order-copy strong {
  font-weight: 620;
}

.order-copy span {
  font-weight: 380;
}

body[data-step="debate"] .stage-copy {
  padding-top: 18px;
  padding-bottom: 18px;
  background: transparent;
}

body[data-step="debate"] .hero-engine {
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(198, 162, 75, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 237, 0.96));
  box-shadow: 0 16px 40px rgba(16, 38, 45, 0.06);
}

body[data-step="debate"] .value-panel {
  background: rgba(255, 255, 255, 0.56);
}

body[data-step="debate"] .poster-grid {
  gap: clamp(24px, 3vw, 38px);
}

body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

body[data-step="debate"] .feature-card,
body[data-step="debate"] .poster-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(16, 38, 45, 0.055);
}

body[data-step="debate"] .feature-card {
  min-height: 232px;
  grid-template-columns: minmax(0, 0.78fr) minmax(230px, 1.22fr);
}

body[data-step="debate"] .poster-card {
  grid-template-rows: 166px auto;
  padding: 12px;
}

body[data-step="debate"] .poster-art,
body[data-step="debate"] .feature-art {
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.62) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(135deg, #07545d, #485b41);
}

body[data-step="debate"] .poster-duel {
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

body[data-step="debate"] .player-token {
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .photo-token.has-photo {
  background-size: auto, cover;
  background-position: center, var(--photo-position, 50% 42%);
}

body[data-step="debate"] .poster-card[data-family="home"] .poster-duel .player-token.photo-token.has-photo,
body[data-step="debate"] .poster-card[data-category="console"] .poster-duel .player-token.photo-token.has-photo,
body[data-step="debate"] .poster-card[data-family="business"] .poster-duel .player-token.photo-token.has-photo {
  background-size: auto, contain;
  background-position: center, center;
}

body[data-step="debate"] .poster-card[data-category="politics"] .player-token::before {
  display: none;
}

body[data-step="debate"] .brand-token span {
  font-weight: 620;
}

body[data-step="debate"] .poster-label strong,
body[data-step="debate"] .feature-copy strong {
  font-weight: 540;
}

body[data-step="debate"] .poster-label span,
body[data-step="debate"] .feature-copy span {
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 14px;
  }

  .brand-lockup {
    width: 144px;
    height: 52px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .journey-rail {
    justify-content: stretch;
    overflow-x: auto;
  }

  .factor-board {
    grid-template-columns: 1fr;
  }

  .factor-zone {
    max-height: none;
  }

  .selected-rack {
    min-height: 220px;
  }

  body[data-step="debate"] .section-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  body[data-step="debate"] .feature-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-header {
    grid-template-columns: 128px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .brand-lockup {
    width: 128px;
    height: 48px;
  }

  .global-search input {
    height: 40px;
    font-size: 0.84rem;
  }

  [data-stage="factors"] .stage-copy h1,
  [data-stage="rank"] .stage-copy h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .stage {
    padding: 14px 12px;
  }

  .factor-zone {
    border-radius: 14px;
    padding: 12px;
  }

  .factor-token {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .factor-token p {
    display: none;
  }

  .order-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .order-art.measure-picture {
    display: none;
  }
}

[data-stage="results"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  overflow-x: hidden;
  overflow-y: auto;
}

.loading-reveal {
  overflow: hidden;
}

/* Featured decision cards: more visual, less copy-heavy. */
body[data-step="debate"] .feature-heading h2 {
  max-width: 20ch;
  font-size: clamp(1.24rem, 1.95vw, 2.18rem);
  font-weight: 500;
}

body[data-step="debate"] .feature-heading p {
  max-width: 30ch;
  font-size: 0.82rem;
}

body[data-step="debate"] .feature-card {
  grid-template-columns: minmax(150px, 0.54fr) minmax(270px, 1.46fr);
  gap: 14px;
  min-height: 254px;
  padding: 12px;
}

body[data-step="debate"] .feature-copy {
  align-content: center;
  gap: 7px;
}

body[data-step="debate"] .feature-copy small {
  font-size: 0.5rem;
  font-weight: 560;
  letter-spacing: 0.06em;
}

body[data-step="debate"] .feature-copy strong {
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
  font-weight: 520;
  line-height: 1.04;
}

body[data-step="debate"] .feature-copy span {
  font-size: 0.72rem;
  line-height: 1.3;
  -webkit-line-clamp: 3;
}

body[data-step="debate"] .gateway-card {
  min-height: 236px;
}

body[data-step="debate"] .gateway-card .feature-copy small {
  color: rgba(110, 114, 95, 0.95);
}

body[data-step="debate"] .gateway-card .feature-copy strong {
  font-size: clamp(1.08rem, 1.6vw, 1.42rem);
}

body[data-step="debate"] .gateway-card .feature-copy em {
  font-size: 0.72rem;
}

body[data-step="debate"] .feature-art {
  min-height: 226px;
}

body[data-step="debate"] .feature-art .poster-duel {
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

body[data-step="debate"] .feature-art .player-token {
  min-height: 198px;
  border-radius: 16px;
}

body[data-step="debate"] .feature-art .vs-token {
  width: 58px;
  height: 58px;
  font-size: 0.82rem;
}

/* Real party marks need room to breathe; keep color context but let the logos lead. */
body[data-step="debate"] .poster-card[data-category="politics"] .brand-token.has-brand-image,
body[data-step="debate"] .feature-card[data-category="politics"] .brand-token.has-brand-image {
  border: 1px solid rgba(255, 250, 240, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.14),
    0 14px 24px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .poster-card[data-category="politics"] .brand-token.has-brand-image img,
body[data-step="debate"] .feature-card[data-category="politics"] .brand-token.has-brand-image img {
  width: min(90%, 184px);
  height: min(90%, 184px);
  max-width: 184px;
  max-height: 184px;
}

.footer-brand span {
  white-space: normal;
}

.footer-brand em {
  display: block;
  margin-top: 3px;
  color: rgba(110, 114, 95, 0.9);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 430;
}

.suggestion-section {
  border-top: 1px solid rgba(16, 38, 45, 0.1);
  padding-top: clamp(18px, 3vw, 28px);
}

.suggestion-section .section-heading {
  margin-bottom: 12px;
}

.suggestion-card {
  max-width: 520px;
  text-align: left;
}

.suggestion-art {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 140px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 223, 0.94), rgba(198, 162, 75, 0.26) 42%, transparent 68%),
    linear-gradient(135deg, rgba(1, 58, 71, 0.94), rgba(126, 29, 39, 0.88));
}

.suggestion-art span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.96);
  font-size: 2.4rem;
  font-weight: 520;
  box-shadow: 0 18px 40px rgba(16, 38, 45, 0.22);
}

.transition-reveal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 223, 0.98), rgba(255, 250, 240, 0.95) 38%, rgba(1, 58, 71, 0.12)),
    rgba(255, 250, 240, 0.98);
  backdrop-filter: blur(14px);
}

.transition-reveal[hidden] {
  display: none;
}

html[data-startup-transition="board"] body {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 223, 0.98), rgba(255, 250, 240, 0.95) 38%, rgba(1, 58, 71, 0.12)),
    rgba(255, 250, 240, 0.98);
}

html[data-startup-transition="board"] body:not(.is-transitioning) .app-shell {
  opacity: 0;
}

html[data-startup-transition="board"] body:not(.is-transitioning)::before,
html[data-startup-transition="board"] body:not(.is-transitioning)::after {
  position: fixed;
  left: 50%;
  z-index: 79;
  transform: translateX(-50%);
  pointer-events: none;
}

html[data-startup-transition="board"] body:not(.is-transitioning)::before {
  inset: 0;
  left: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 223, 0.98), rgba(255, 250, 240, 0.95) 38%, rgba(1, 58, 71, 0.12)),
    rgba(255, 250, 240, 0.98);
  content: "";
  transform: none;
}

html[data-startup-transition="board"] body:not(.is-transitioning)::after {
  top: min(48vh, 390px);
  color: var(--ink);
  content: "Opening your board";
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.transition-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(360px, calc(100vw - 44px));
  text-align: center;
}

.transition-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
}

.transition-track span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 26px;
  border: 1px solid rgba(16, 42, 46, 0.13);
  border-radius: 999px;
  color: rgba(16, 42, 46, 0.58);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.transition-reveal[data-transition-phase="board"] [data-transition-step="board"],
.transition-reveal[data-transition-phase="criteria"] [data-transition-step="criteria"],
.transition-reveal[data-transition-phase="answer"] [data-transition-step="answer"] {
  color: #ffffff;
  border-color: rgba(7, 84, 93, 0.64);
  background: linear-gradient(135deg, var(--teal), #102a2e);
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.14);
}

.transition-reveal p {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transition-step-label {
  margin-top: 3px !important;
  color: var(--red) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
}

.transition-subtext {
  max-width: 34ch;
  color: rgba(16, 42, 46, 0.68) !important;
  font-size: 0.76rem !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

/* Decision-board thumbnails should show the full image or logo clearly. */
body[data-step="debate"] .poster-duel .player-token.photo-token.has-photo,
body[data-step="debate"] .feature-art .player-token.photo-token.has-photo,
body[data-step="debate"] .poster-duel .brand-token.has-brand-image,
body[data-step="debate"] .feature-art .brand-token.has-brand-image {
  background-color: rgba(255, 250, 240, 0.94);
  background-size: auto, contain !important;
  background-position: center, center !important;
  background-repeat: no-repeat;
}

body[data-step="debate"] .poster-duel .player-token.photo-token.has-photo span,
body[data-step="debate"] .feature-art .player-token.photo-token.has-photo span {
  opacity: 0;
}

body[data-step="debate"] .poster-duel .brand-token.has-brand-image img,
body[data-step="debate"] .feature-art .brand-token.has-brand-image img {
  width: min(92%, 190px);
  height: min(92%, 190px);
  object-fit: contain;
}

@media (max-width: 680px) {
  .footer-brand span {
    display: block;
  }

  .transition-reveal .calc-wheel {
    transform: scale(0.86);
  }
}

body[data-step="debate"] .poster-card[data-category="politics"] .brand-token.has-brand-image span,
body[data-step="debate"] .feature-card[data-category="politics"] .brand-token.has-brand-image span {
  bottom: 10px;
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

body[data-step="debate"] .poster-card[data-category="politics"] .party-gop,
body[data-step="debate"] .feature-card[data-category="politics"] .party-gop {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 250, 240, 0.18), transparent 42%),
    linear-gradient(145deg, #a22231, #cf3d49);
}

body[data-step="debate"] .poster-card[data-category="politics"] .party-dem,
body[data-step="debate"] .feature-card[data-category="politics"] .party-dem {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 250, 240, 0.18), transparent 42%),
    linear-gradient(145deg, #174f90, #2f78c9);
}

@media (max-width: 900px) {
  body[data-step="debate"] .feature-card {
    grid-template-columns: minmax(0, 0.72fr) minmax(180px, 1.28fr);
    min-height: 220px;
  }

  body[data-step="debate"] .feature-art {
    min-height: 196px;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .feature-card {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .feature-copy {
    order: 2;
  }

  body[data-step="debate"] .feature-art {
    order: 1;
  }
}

/* Hero: editorial image fade instead of a mechanical explanation card. */
body[data-step="debate"] .stage-copy {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 0.55fr) minmax(280px, 0.45fr);
  align-items: center;
  min-height: clamp(230px, 25vw, 340px);
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px);
  background:
    linear-gradient(90deg, #f7f4ed 0%, rgba(247, 244, 237, 0.96) 36%, rgba(247, 244, 237, 0.72) 58%, rgba(247, 244, 237, 0.18) 76%, rgba(247, 244, 237, 0) 100%),
    linear-gradient(180deg, rgba(16, 42, 46, 0.08), rgba(16, 42, 46, 0.02)),
    url("assets/hero-decision-table.jpg") right center / min(58vw, 820px) auto no-repeat,
    #f7f4ed;
}

body[data-step="debate"] .stage-copy::before {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 38, 45, 0.14), transparent);
  content: "";
}

body[data-step="debate"] .hero-copy {
  max-width: 620px;
}

body[data-step="debate"] .stage-copy .kicker {
  margin-bottom: 10px;
  color: rgba(110, 114, 95, 0.92);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.1em;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.45rem, 4.45vw, 5.15rem);
  font-weight: 460;
  letter-spacing: -0.015em;
  line-height: 0.96;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 36ch;
  margin-top: 16px;
  color: rgba(70, 74, 59, 0.9);
  font-size: clamp(1.02rem, 1.24vw, 1.22rem);
  font-weight: 360;
}

body[data-step="debate"] .hero-engine {
  display: none;
}

@media (max-width: 900px) {
  body[data-step="debate"] .stage-copy {
    grid-template-columns: 1fr;
    min-height: 280px;
    background:
      linear-gradient(90deg, rgba(247, 244, 237, 0.98) 0%, rgba(247, 244, 237, 0.82) 62%, rgba(247, 244, 237, 0.28) 100%),
      url("assets/hero-decision-table.jpg") right center / cover no-repeat,
      #f7f4ed;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .stage-copy {
    min-height: 250px;
    padding: 30px 18px;
    background:
      linear-gradient(90deg, rgba(247, 244, 237, 0.98) 0%, rgba(247, 244, 237, 0.9) 70%, rgba(247, 244, 237, 0.46) 100%),
      url("assets/hero-decision-table.jpg") 62% center / cover no-repeat,
      #f7f4ed;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
}

/* Homepage should scroll like a site, with only the category rail staying handy. */
.menu-toggle {
  display: none;
  place-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body[data-step="debate"] .menu-toggle {
  display: grid;
}

body[data-step="debate"] .app-header {
  grid-template-columns: 42px 190px minmax(260px, 760px) auto;
}

body[data-step="debate"] .stage[data-stage="debate"] {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-color: rgba(7, 84, 93, 0.34) transparent;
  scrollbar-width: thin;
}

body[data-step="debate"] .stage[data-stage="debate"]::-webkit-scrollbar {
  width: 9px;
}

body[data-step="debate"] .stage[data-stage="debate"]::-webkit-scrollbar-track {
  background: transparent;
}

body[data-step="debate"] .stage[data-stage="debate"]::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(7, 84, 93, 0.34);
  background-clip: padding-box;
}

body[data-step="debate"] .portal-menu {
  position: sticky;
  top: 0;
  z-index: 18;
  backdrop-filter: blur(14px);
}

body[data-step="debate"] .poster-grid {
  overflow: visible;
  padding: clamp(24px, 3vw, 38px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 56px);
}

body[data-step="debate"] .value-panel {
  margin: 0;
  border-top: 1px solid rgba(16, 38, 45, 0.08);
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding: 11px clamp(20px, 4vw, 56px);
}

body[data-step="debate"] .site-footer {
  margin: 0 clamp(20px, 4vw, 56px) clamp(18px, 3vw, 34px);
}

@media (max-width: 900px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 42px 146px minmax(0, 1fr);
  }

  body[data-step="debate"] .header-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 40px 132px minmax(0, 1fr);
    gap: 10px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

/* Final nav decision: use the visible horizontal category rail, not a hidden hamburger. */
body[data-step="debate"] .menu-toggle {
  display: none;
}

body[data-step="debate"] .app-header {
  grid-template-columns: 190px minmax(260px, 760px) auto;
}

@media (max-width: 900px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 146px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

/* U.S. News authority + NerdWallet guided-search homepage blend. */
body[data-step="debate"] {
  background:
    linear-gradient(180deg, #f5f2ea 0%, #fbfaf6 58%, #f7f4ed 100%);
}

body[data-step="debate"] .app-header {
  position: relative;
  z-index: 24;
  min-height: 76px;
  border-bottom: 1px solid rgba(16, 38, 45, 0.09);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 38, 45, 0.05);
}

body[data-step="debate"] .global-search input {
  height: 46px;
  border-color: rgba(16, 38, 45, 0.13);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 390;
}

body[data-step="debate"] .site-nav button {
  font-weight: 680;
}

body[data-step="debate"] .portal-menu {
  position: sticky;
  top: 0;
  z-index: 22;
  gap: clamp(20px, 3.2vw, 42px);
  min-height: 54px;
  border-top: 0;
  border-bottom: 1px solid rgba(16, 38, 45, 0.1);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 10px 22px rgba(16, 38, 45, 0.045);
}

body[data-step="debate"] .stage-copy {
  grid-template-columns: minmax(320px, 0.64fr) minmax(280px, 0.36fr);
  align-items: center;
  min-height: clamp(390px, 46vw, 560px);
  padding: clamp(42px, 6vw, 86px) clamp(22px, 6vw, 96px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 56, 65, 0.98) 0%, rgba(4, 67, 75, 0.92) 36%, rgba(4, 67, 75, 0.68) 58%, rgba(4, 67, 75, 0.18) 76%, rgba(4, 67, 75, 0.02) 100%),
    radial-gradient(circle at 14% 10%, rgba(206, 169, 67, 0.2), transparent 34%),
    url("assets/hero-decision-table.jpg") right center / cover no-repeat,
    #073f48;
}

body[data-step="debate"] .hero-copy {
  max-width: 720px;
}

body[data-step="debate"] .stage-copy .kicker {
  color: rgba(255, 246, 223, 0.84);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 14ch;
  color: #ffffff;
  font-size: clamp(2.65rem, 5vw, 5.8rem);
  font-weight: 480;
  line-height: 0.96;
  text-wrap: balance;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 42ch;
  margin-top: 18px;
  color: rgba(255, 246, 223, 0.9);
  font-size: clamp(1.04rem, 1.34vw, 1.28rem);
  font-weight: 390;
}

.hero-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(650px, 100%);
  margin-top: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
}

.hero-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-search input {
  min-width: 0;
  height: 58px;
  border: 0;
  padding: 0 20px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 380;
  outline: none;
}

.hero-search button {
  min-width: 96px;
  border: 0;
  border-left: 1px solid rgba(16, 38, 45, 0.08);
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), #073f48);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-search:focus-within {
  box-shadow:
    0 0 0 4px rgba(206, 169, 67, 0.18),
    0 22px 46px rgba(0, 0, 0, 0.22);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
}

.hero-quick-links button {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 520;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.hero-quick-links button:hover {
  color: #ffffff;
}

body[data-step="debate"] .value-panel {
  background: rgba(255, 255, 255, 0.96);
}

body[data-step="debate"] .featured-portals {
  padding-top: clamp(32px, 4.2vw, 58px);
}

@media (max-width: 900px) {
  body[data-step="debate"] .stage-copy {
    grid-template-columns: 1fr;
    min-height: 420px;
    background:
      linear-gradient(90deg, rgba(4, 56, 65, 0.98) 0%, rgba(4, 67, 75, 0.88) 58%, rgba(4, 67, 75, 0.34) 100%),
      url("assets/hero-decision-table.jpg") right center / cover no-repeat,
      #073f48;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .app-header {
    min-height: 116px;
  }

  body[data-step="debate"] .stage-copy {
    min-height: 420px;
    padding: 34px 18px;
    background:
      linear-gradient(90deg, rgba(4, 56, 65, 0.98) 0%, rgba(4, 67, 75, 0.86) 76%, rgba(4, 67, 75, 0.5) 100%),
      url("assets/hero-decision-table.jpg") 64% center / cover no-repeat,
      #073f48;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-search button {
    height: 46px;
    border-left: 0;
    border-top: 1px solid rgba(16, 38, 45, 0.08);
  }
}

/* Palette refinement: photorealistic hero with even fade and subtle card-table accents. */
body[data-step="debate"] .stage-copy {
  overflow: hidden;
  background:
    linear-gradient(90deg, #063f47 0%, #0a4b51 38%, #386566 66%, #917f55 100%);
}

body[data-step="debate"] .stage-copy::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: auto;
  background:
    linear-gradient(90deg, rgba(5, 47, 54, 0.93) 0%, rgba(5, 59, 65, 0.84) 34%, rgba(5, 59, 65, 0.58) 58%, rgba(112, 101, 61, 0.34) 78%, rgba(112, 101, 61, 0.16) 100%),
    url("assets/hero-decision-table.jpg") center center / cover no-repeat;
  filter: saturate(1.08) contrast(0.92) sepia(0.18);
  content: "";
}

body[data-step="debate"] .stage-copy::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(206, 169, 67, 0.16), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(177, 42, 51, 0.18), transparent 20%),
    radial-gradient(circle at 73% 78%, rgba(56, 143, 158, 0.18), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.055) 0 1px, transparent 1px 34px),
    repeating-radial-gradient(circle at 84% 44%, rgba(255, 246, 223, 0.07) 0 1px, transparent 1px 18px);
  mix-blend-mode: soft-light;
  opacity: 0.88;
  content: "";
}

body[data-step="debate"] .hero-search {
  border-color: rgba(255, 246, 223, 0.7);
}

body[data-step="debate"] .stage-copy h1 {
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  body[data-step="debate"] .stage-copy {
    background:
      linear-gradient(90deg, #063f47 0%, #0a4b51 58%, #917f55 100%);
  }

  body[data-step="debate"] .stage-copy::before {
    background:
      linear-gradient(90deg, rgba(5, 47, 54, 0.94) 0%, rgba(5, 59, 65, 0.82) 58%, rgba(112, 101, 61, 0.38) 100%),
      url("assets/hero-decision-table.jpg") center center / cover no-repeat;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .stage-copy::before {
    background:
      linear-gradient(90deg, rgba(5, 47, 54, 0.94) 0%, rgba(5, 59, 65, 0.86) 72%, rgba(112, 101, 61, 0.42) 100%),
      url("assets/hero-decision-table.jpg") 54% center / cover no-repeat;
  }
}

/* Landing flow: less directory, more premium decision platform. */
body[data-step="debate"] .featured-portals {
  gap: clamp(28px, 4vw, 58px);
  padding: clamp(28px, 4vw, 54px) 0 clamp(12px, 2vw, 22px);
  border-bottom: 0;
}

.landing-headline,
.category-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.58fr);
  align-items: end;
  gap: clamp(22px, 5vw, 96px);
}

.landing-headline h2,
.category-lead h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 5.6rem);
  font-weight: 430;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.landing-headline p:not(.kicker),
.category-lead p:not(.kicker) {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 380;
  line-height: 1.35;
}

.hero-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.hero-choice-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(280px, 1.38fr);
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
  min-height: 254px;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 24px;
  padding: clamp(18px, 2vw, 24px);
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(16, 38, 45, 0.07);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hero-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 84, 93, 0.24);
  box-shadow: 0 24px 70px rgba(16, 38, 45, 0.11);
}

.hero-choice-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.hero-choice-copy small,
.hot-card em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 520;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-choice-copy strong {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.35vw, 2.55rem);
  font-weight: 430;
  line-height: 1.02;
}

.hero-choice-copy span {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 380;
  line-height: 1.34;
}

.hero-choice-art {
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.66) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(135deg, #07545d, #766f45);
}

.hero-choice-art .poster-duel {
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.hero-choice-art .player-token,
.hero-choice-art .brand-token {
  min-height: 178px;
  border-radius: 18px;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(26px, 5vw, 84px);
  padding: clamp(34px, 4vw, 58px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 18%, rgba(198, 162, 75, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(236, 248, 244, 0.92), rgba(255, 250, 240, 0.98));
}

.trust-visual {
  position: relative;
  min-height: 286px;
}

.trust-phone {
  position: absolute;
  inset: 0 auto auto 50%;
  display: grid;
  align-content: end;
  width: min(260px, 76%);
  min-height: 286px;
  border: 10px solid #103139;
  border-radius: 32px;
  padding: 22px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(5, 84, 93, 0.14), rgba(126, 29, 39, 0.54)),
    url("assets/hero-decision-table.jpg") center / cover no-repeat;
  box-shadow: 0 24px 55px rgba(16, 38, 45, 0.22);
  transform: translateX(-50%) rotate(-2deg);
}

.trust-phone > span {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}

.trust-phone strong {
  font-size: 1.18rem;
  font-weight: 560;
}

.trust-phone em {
  margin-top: 4px;
  font-style: normal;
  font-weight: 370;
}

.trust-chip {
  position: absolute;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 38, 45, 0.14);
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-chip-one {
  top: 34px;
  left: 0;
}

.trust-chip-two {
  right: 0;
  bottom: 42px;
}

.trust-copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.trust-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 4rem);
  font-weight: 420;
  line-height: 1;
}

.trust-copy > p:not(.kicker) {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 380;
  line-height: 1.42;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-stats span {
  display: grid;
  gap: 2px;
}

.trust-stats strong {
  color: var(--teal);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 430;
  line-height: 1;
}

.trust-stats em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 430;
}

.trust-feedback {
  justify-self: start;
  min-height: 42px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--teal);
  background: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 560;
  cursor: pointer;
}

.trust-feedback:hover {
  color: #ffffff;
  background: var(--teal);
}

.hot-section {
  display: grid;
  gap: 16px;
}

.hot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 332px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 14px;
  scroll-snap-type: inline mandatory;
}

.hot-card {
  display: grid;
  grid-template-rows: 130px auto;
  gap: 12px;
  min-height: 226px;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 38, 45, 0.055);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.hot-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 470;
  line-height: 1.1;
}

.hot-card .portal-share-row {
  margin-top: 8px;
}

.hot-card em {
  display: block;
  margin-top: 6px;
  line-height: 1.25;
}

.hot-art {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.62) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(135deg, #07545d, #766f45);
}

.hot-art .poster-duel {
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.hot-art .player-token,
.hot-art .brand-token {
  min-height: 104px;
  border-radius: 14px;
}

.category-lead {
  padding-top: clamp(8px, 2vw, 18px);
  border-top: 1px solid rgba(16, 38, 45, 0.08);
}

.category-lead h2 {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3.4vw, 4rem);
}

.factor-token {
  min-height: 74px;
}

.factor-copy h3 {
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .landing-headline,
  .category-lead,
  .trust-band,
  .hero-choice-grid {
    grid-template-columns: 1fr;
  }

  .hero-choice-card {
    grid-template-columns: minmax(0, 0.7fr) minmax(220px, 1.3fr);
  }
}

@media (max-width: 640px) {
  .hero-choice-card {
    grid-template-columns: 1fr;
  }

  .hero-choice-art {
    min-height: 188px;
  }

  .trust-band {
    padding: 24px 18px;
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .trust-visual {
    min-height: 240px;
  }

  .trust-phone {
    width: min(230px, 82%);
    min-height: 240px;
  }
}

/* NerdWallet-inspired home flow: one hero search, square launch cards, then proof. */
body[data-step="debate"] .global-search {
  display: none;
}

body[data-step="debate"] .app-header {
  grid-template-columns: minmax(170px, 220px) auto;
  justify-content: space-between;
}

body[data-step="debate"] .header-actions {
  justify-self: end;
}

body[data-step="debate"] .value-panel {
  display: none;
}

body[data-step="debate"] .stage-copy {
  min-height: clamp(500px, 50vw, 690px);
  padding: clamp(58px, 7vw, 112px) clamp(22px, 6vw, 108px) clamp(126px, 11vw, 180px);
  background: #052f36;
}

body[data-step="debate"] .stage-copy::before {
  background:
    linear-gradient(90deg, rgba(2, 42, 49, 0.98) 0%, rgba(2, 48, 55, 0.94) 34%, rgba(3, 60, 67, 0.68) 56%, rgba(73, 70, 49, 0.26) 76%, rgba(18, 16, 12, 0.1) 100%),
    url("assets/hero-decision-table.jpg") center center / cover no-repeat;
  filter: saturate(0.88) contrast(1.04) sepia(0.18);
}

body[data-step="debate"] .stage-copy::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(198, 162, 75, 0.17), transparent 18%),
    radial-gradient(circle at 72% 42%, rgba(255, 246, 223, 0.1), transparent 18%),
    repeating-radial-gradient(circle at 84% 44%, rgba(255, 246, 223, 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.05) 0 1px, transparent 1px 34px);
  mix-blend-mode: screen;
  opacity: 0.8;
}

body[data-step="debate"] .hero-copy {
  max-width: 780px;
}

body[data-step="debate"] .stage-copy .kicker {
  color: rgba(255, 246, 223, 0.88);
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 13ch;
  color: #ffffff;
  font-weight: 420;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

body[data-step="debate"] .stage-subtitle {
  max-width: 38ch;
  color: rgba(255, 246, 223, 0.92);
}

body[data-step="debate"] .hero-search {
  width: min(720px, 100%);
  margin-top: clamp(24px, 3vw, 42px);
  border-radius: 10px;
}

body[data-step="debate"] .hero-quick-links {
  margin-top: 20px;
}

body[data-step="debate"] .featured-portals {
  position: relative;
  z-index: 5;
  gap: clamp(42px, 5vw, 78px);
  padding: 0 0 clamp(12px, 2vw, 22px);
}

.category-hub-shell {
  width: min(1460px, calc(100% - clamp(28px, 6vw, 108px)));
  margin: clamp(-112px, -8vw, -70px) auto 0;
  border-radius: 28px;
  padding: clamp(18px, 2.4vw, 34px);
  background:
    linear-gradient(180deg, rgba(238, 250, 246, 0.98), rgba(231, 247, 242, 0.94));
  box-shadow:
    0 24px 70px rgba(16, 38, 45, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.category-hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.54fr);
  align-items: end;
  gap: 22px;
  margin-bottom: clamp(14px, 2vw, 24px);
}

.category-hub-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  font-weight: 430;
  line-height: 1;
}

.category-hub-intro p:not(.kicker) {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 390;
  line-height: 1.34;
}

.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}

.category-hub-card {
  display: grid;
  grid-template-rows: minmax(128px, 1fr) auto;
  gap: 14px;
  min-width: 0;
  min-height: 260px;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 18px;
  padding: 14px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 38, 45, 0.055);
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.category-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 84, 93, 0.24);
  box-shadow: 0 18px 44px rgba(16, 38, 45, 0.11);
}

.category-hub-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 223, 0.84), transparent 32%),
    linear-gradient(135deg, #07545d, #766f45);
}

.category-hub-art::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 246, 223, 0.08) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.08) 0 1px, transparent 1px 24px);
  content: "";
}

.hub-pattern {
  position: absolute;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(198, 162, 75, 0.36);
  border-radius: 50%;
  opacity: 0.78;
}

.hub-pattern::before,
.hub-pattern::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 246, 223, 0.28);
  border-radius: 50%;
  content: "";
}

.hub-pattern::after {
  inset: 38px;
}

.hub-token {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(112px, 56%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background-color: rgba(255, 250, 240, 0.94);
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 16px 32px rgba(16, 38, 45, 0.2);
}

.hub-token span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(1, 58, 71, 0.88);
  font-size: 0.78rem;
  font-weight: 560;
}

.hub-token.has-photo span,
.hub-token.has-brand-image span {
  opacity: 0;
}

.category-hub-copy {
  display: grid;
  gap: 6px;
}

.category-hub-copy strong {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.25vw, 1.3rem);
  font-weight: 520;
  line-height: 1.08;
}

.category-hub-copy span {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 380;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.landing-headline,
.hero-choice-grid {
  display: none;
}

@media (max-width: 1080px) {
  .category-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: minmax(132px, 170px) auto;
  }

  .category-hub-intro {
    grid-template-columns: 1fr;
  }

  .category-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .app-header {
    min-height: 72px;
  }

  body[data-step="debate"] .stage-copy {
    min-height: 560px;
    padding-bottom: 128px;
  }

  .category-hub-shell {
    width: calc(100% - 24px);
    border-radius: 22px;
    padding: 14px;
  }

  .category-hub-grid {
    grid-template-columns: 1fr;
  }

  .category-hub-card {
    min-height: 226px;
  }
}

/* Homepage pass: cleaner NerdWallet-style flow with one hero and square launch cards. */
body[data-step="debate"] .app-header {
  grid-template-columns: minmax(170px, 210px) auto;
  min-height: 78px;
  padding: 8px clamp(22px, 5vw, 72px);
}

body[data-step="debate"] .brand-lockup {
  width: clamp(170px, 14vw, 214px);
  height: 64px;
}

body[data-step="debate"] .site-nav button {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 640;
}

body[data-step="debate"] .portal-menu {
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 42px);
  min-height: 54px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: blur(16px);
}

body[data-step="debate"] .stage-copy {
  display: block;
  min-height: clamp(520px, 54vw, 720px);
  padding: clamp(72px, 8vw, 118px) clamp(22px, 6vw, 96px) clamp(155px, 12vw, 210px);
}

body[data-step="debate"] .stage-copy::before {
  background:
    linear-gradient(90deg, rgba(2, 42, 49, 0.99) 0%, rgba(2, 46, 53, 0.96) 35%, rgba(5, 60, 68, 0.72) 58%, rgba(115, 98, 62, 0.18) 78%, rgba(13, 13, 10, 0.06) 100%),
    linear-gradient(180deg, rgba(2, 42, 49, 0.12), rgba(2, 42, 49, 0.28)),
    url("assets/hero-decision-table.jpg") center center / cover no-repeat;
  filter: saturate(0.82) contrast(1.08) sepia(0.18);
}

body[data-step="debate"] .hero-copy {
  width: min(760px, 100%);
  max-width: 760px;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(3.3rem, 7.8vw, 7.4rem);
  font-weight: 390;
  letter-spacing: 0;
  line-height: 0.93;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 38ch;
  color: rgba(255, 246, 223, 0.94);
  font-size: clamp(1.04rem, 1.55vw, 1.36rem);
  font-weight: 360;
}

body[data-step="debate"] .hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  width: min(760px, 100%);
  min-height: 74px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
}

body[data-step="debate"] .hero-search input {
  height: 74px;
  padding-inline: clamp(18px, 2vw, 28px);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 380;
}

body[data-step="debate"] .hero-search button {
  height: auto;
  border-radius: 0;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.04em;
}

body[data-step="debate"] .hero-quick-links {
  gap: 18px;
}

body[data-step="debate"] .hero-quick-links button {
  color: rgba(255, 246, 223, 0.94);
  font-size: 0.88rem;
  font-weight: 560;
  text-decoration-thickness: 1px;
}

body[data-step="debate"] .hero-engine,
body[data-step="debate"] .portal-board-head {
  display: none;
}

body[data-step="debate"] .featured-portals {
  gap: clamp(58px, 6vw, 92px);
  padding-bottom: clamp(22px, 3vw, 44px);
}

.category-hub-shell {
  width: min(1500px, calc(100% - clamp(28px, 7vw, 120px)));
  margin-top: clamp(-136px, -9vw, -88px);
  border-radius: 30px;
  padding: clamp(18px, 2.6vw, 40px);
  background:
    linear-gradient(180deg, rgba(236, 250, 245, 0.98), rgba(229, 247, 242, 0.95));
  box-shadow:
    0 28px 80px rgba(16, 38, 45, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.category-hub-intro {
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  align-items: end;
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

.category-hub-intro h2 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 4.2vw, 4.7rem);
  font-weight: 390;
  letter-spacing: 0;
}

.category-hub-intro p:not(.kicker) {
  justify-self: end;
  max-width: 34ch;
  color: rgba(91, 96, 78, 0.92);
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
}

.category-hub-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.65vw, 22px);
}

.category-hub-card {
  aspect-ratio: 1 / 1;
  min-height: unset;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
}

.category-hub-art {
  min-height: 0;
  border-radius: 16px;
}

.category-hub-copy {
  gap: 4px;
  min-height: 74px;
}

.category-hub-copy em {
  color: rgba(126, 29, 39, 0.82);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-hub-copy strong {
  font-size: clamp(1.12rem, 1.42vw, 1.48rem);
  font-weight: 460;
}

.category-hub-copy span {
  min-height: 0;
  font-size: 0.78rem;
}

.hub-token {
  width: min(134px, 62%);
  border-radius: 24px;
}

.hub-token.has-photo {
  background-size: contain !important;
  background-color: #f4f0e5;
}

.hub-token.has-brand-image img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

body[data-step="debate"] .trust-band {
  width: min(1320px, calc(100% - clamp(28px, 7vw, 120px)));
  margin-inline: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 22%, rgba(198, 162, 75, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.96));
}

body[data-step="debate"] .hot-section,
body[data-step="debate"] .category-lead,
body[data-step="debate"] .category-section:not(.featured-portals) {
  width: min(1320px, calc(100% - clamp(28px, 7vw, 120px)));
  margin-inline: auto;
}

body[data-step="debate"] .hot-section {
  border-radius: 24px;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(16, 38, 45, 0.07);
}

body[data-step="debate"] .hot-rail {
  padding-bottom: 8px;
}

body[data-step="debate"] .hot-card {
  min-width: min(340px, 82vw);
  border-radius: 18px;
  background: #ffffff;
}

body[data-step="debate"] .poster-grid {
  overflow-y: auto;
  padding-right: 0;
}

body[data-step="debate"] .category-section:not(.featured-portals) {
  gap: 14px;
}

body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

body[data-step="debate"] .poster-card {
  grid-template-rows: 180px auto;
  border-radius: 18px;
  padding: 12px;
}

body[data-step="debate"] .poster-card .photo-token.has-photo,
body[data-step="debate"] .hot-card .photo-token.has-photo {
  background-size: contain;
  background-color: #f2efe6;
}

body[data-step="debate"] .poster-label {
  padding: 4px 0 0;
}

body[data-step="debate"] .poster-label strong {
  font-size: 1.06rem;
  font-weight: 480;
}

body[data-step="debate"] .poster-label span {
  font-size: 0.76rem;
  line-height: 1.32;
  -webkit-line-clamp: 2;
}

body[data-step="debate"] .poster-label small {
  display: none;
}

body[data-step="debate"] .category-lead {
  border-top: 1px solid rgba(16, 38, 45, 0.1);
  padding-top: clamp(12px, 2vw, 20px);
}

body[data-step="debate"] .suggestion-section {
  padding-bottom: clamp(70px, 7vw, 110px);
}

@media (max-width: 1120px) {
  .category-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 1fr auto;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: clamp(2.95rem, 12vw, 5.4rem);
  }

  body[data-step="debate"] .hero-search {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .hero-search button {
    min-height: 52px;
  }

  .category-hub-intro {
    grid-template-columns: 1fr;
  }

  .category-hub-intro p:not(.kicker) {
    justify-self: start;
  }

  .category-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .app-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  body[data-step="debate"] .brand-lockup {
    width: 152px;
    height: 50px;
  }

  body[data-step="debate"] .portal-menu {
    padding-inline: 14px;
  }

  body[data-step="debate"] .stage-copy {
    min-height: 540px;
    padding: 58px 18px 132px;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .category-hub-shell,
  body[data-step="debate"] .trust-band,
  body[data-step="debate"] .hot-section,
  body[data-step="debate"] .category-lead,
  body[data-step="debate"] .category-section:not(.featured-portals) {
    width: calc(100% - 24px);
  }

  .category-hub-grid {
    grid-template-columns: 1fr;
  }

  .category-hub-card {
    aspect-ratio: auto;
    min-height: 246px;
  }
}

/* Keep the NerdWallet-style launch area immediate: hero, then cards. */
.category-hub-intro {
  display: none;
}

.category-hub-shell {
  margin-top: clamp(-118px, -7vw, -64px);
}

body[data-step="debate"] .featured-portals {
  gap: clamp(52px, 5vw, 82px);
}

@media (max-width: 560px) {
  .category-hub-shell {
    margin-top: -52px;
  }
}

/* Category navigation belongs in the hero, not as another oversized homepage. */
body[data-step="debate"] .hero-quick-links {
  gap: 8px;
  max-width: 760px;
  margin-top: 18px;
}

body[data-step="debate"] .hero-quick-links button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(255, 246, 223, 0.26);
  border-radius: 999px;
  padding: 0 11px;
  color: rgba(255, 250, 240, 0.94);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-decoration: none;
  text-transform: none;
  font-size: 0.76rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

body[data-step="debate"] .hero-quick-links button::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 162, 75, 0.15);
  content: "";
}

body[data-step="debate"] .hero-quick-links button[data-section-jump="politics"]::before,
body[data-step="debate"] .hero-quick-links button[data-section-jump="homeServices"]::before {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(177, 42, 51, 0.16);
}

body[data-step="debate"] .hero-quick-links button[data-section-jump="entertainment"]::before,
body[data-step="debate"] .hero-quick-links button[data-section-jump="lifeDecisions"]::before {
  background: #58a6ad;
  box-shadow: 0 0 0 3px rgba(88, 166, 173, 0.16);
}

body[data-step="debate"] .hero-quick-links button:hover {
  border-color: rgba(255, 246, 223, 0.46);
  background: rgba(255, 255, 255, 0.15);
}

body[data-step="debate"] .featured-portals {
  gap: clamp(38px, 5vw, 72px);
  padding: clamp(30px, 4vw, 56px) 0 clamp(22px, 3vw, 42px);
}

body[data-step="debate"] .hot-section-primary {
  margin-top: 0;
}

body[data-step="debate"] .hot-section-primary .hot-card {
  min-height: 214px;
  grid-template-rows: 122px auto;
}

body[data-step="debate"] .category-hub-shell {
  display: none;
}

@media (max-width: 620px) {
  body[data-step="debate"] .hero-quick-links {
    gap: 7px;
    margin-top: 16px;
  }

  body[data-step="debate"] .hero-quick-links button {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 0.7rem;
  }

  body[data-step="debate"] .featured-portals {
    padding-top: 22px;
  }
}

/* The hero now carries category choice directly, like a polished launch panel. */
body[data-step="debate"] .hero-search,
body[data-step="debate"] .hero-quick-links {
  display: none;
}

.hero-category-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: min(780px, 100%);
  margin-top: clamp(18px, 2.4vw, 28px);
}

.hero-category-tiles button {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  min-height: 70px;
  border: 1px solid rgba(255, 246, 223, 0.24);
  border-radius: 14px;
  padding: 10px 11px;
  color: rgba(255, 250, 240, 0.96);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 12px 28px rgba(0, 0, 0, 0.12);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.hero-category-tiles button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 246, 223, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
}

.hero-category-tiles button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 223, 0.92) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(198, 162, 75, 0.9), rgba(7, 84, 93, 0.7));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-category-tiles button[data-section-jump="politics"] > span,
.hero-category-tiles button[data-section-jump="homeServices"] > span {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 223, 0.92) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(177, 42, 51, 0.92), rgba(7, 84, 93, 0.76));
}

.hero-category-tiles button[data-section-jump="entertainment"] > span,
.hero-category-tiles button[data-section-jump="lifeDecisions"] > span {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 223, 0.92) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(88, 166, 173, 0.95), rgba(198, 162, 75, 0.72));
}

.hero-category-tiles strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-category-tiles em {
  overflow: hidden;
  color: rgba(255, 246, 223, 0.76);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 420;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(560px, 100%);
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .stage-copy {
    min-height: 610px;
    padding-bottom: 48px;
  }

  .hero-category-tiles {
    gap: 7px;
    margin-top: 16px;
  }

  .hero-category-tiles button {
    min-height: 58px;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
    border-radius: 12px;
    padding: 8px 9px;
  }

  .hero-category-tiles button > span {
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }

  .hero-category-tiles strong {
    font-size: 0.72rem;
  }

  .hero-category-tiles em {
    font-size: 0.58rem;
  }
}

/* Collaborative design pass: cleaner NerdWallet journey with Polymarket-style scan cards. */
body[data-step="debate"] {
  background: #f6f7f2;
}

body[data-step="debate"] .app-header {
  min-height: 72px;
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

body[data-step="debate"] .brand-lockup {
  width: clamp(154px, 13vw, 192px);
  height: 56px;
}

body[data-step="debate"] .header-copy {
  color: rgba(16, 42, 46, 0.72);
  font-size: 0.82rem;
  font-weight: 560;
}

body[data-step="debate"] .portal-menu {
  min-height: 50px;
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body[data-step="debate"] .portal-menu button {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(16, 42, 46, 0.76);
  font-size: 0.78rem;
  font-weight: 560;
}

body[data-step="debate"] .portal-menu button:hover,
body[data-step="debate"] .portal-menu button.is-active {
  color: #ffffff;
  background: var(--teal);
}

body[data-step="debate"] .stage-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  min-height: auto;
  padding: clamp(44px, 6vw, 84px) clamp(22px, 6vw, 96px) clamp(38px, 5vw, 72px);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfaf5 100%);
}

body[data-step="debate"] .stage-copy::before {
  inset: auto clamp(22px, 6vw, 96px) clamp(28px, 4vw, 54px) auto;
  z-index: 0;
  width: min(470px, 36vw);
  height: min(310px, 28vw);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(3, 63, 72, 0.06), rgba(3, 63, 72, 0.18)),
    url("assets/hero-decision-table.jpg") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(16, 38, 45, 0.12);
  filter: saturate(0.82) contrast(1.02);
  content: "";
}

body[data-step="debate"] .stage-copy::after {
  display: none;
}

body[data-step="debate"] .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

body[data-step="debate"] .stage-copy .kicker {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 740;
  letter-spacing: 0.08em;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 520;
  line-height: 0.98;
  text-shadow: none;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 43ch;
  color: rgba(16, 42, 46, 0.76);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 420;
}

body[data-step="debate"] .hero-engine {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: stretch;
  min-height: 330px;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 20px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(16, 38, 45, 0.09);
  backdrop-filter: blur(8px);
}

body[data-step="debate"] .engine-label {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.08em;
}

body[data-step="debate"] .engine-orbit {
  width: 118px;
  height: 118px;
  margin: 8px auto 2px;
}

body[data-step="debate"] .engine-stack {
  gap: 8px;
}

body[data-step="debate"] .engine-stack span,
body[data-step="debate"] .engine-answer {
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 12px;
  background: #f8faf6;
}

body[data-step="debate"] .engine-stack b,
body[data-step="debate"] .engine-answer strong {
  color: var(--ink);
}

body[data-step="debate"] .engine-stack em,
body[data-step="debate"] .engine-answer small {
  color: rgba(16, 42, 46, 0.62);
}

.hero-category-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(640px, 100%);
  gap: 10px;
}

.hero-category-tiles button {
  min-height: 88px;
  border: 1px solid rgba(16, 38, 45, 0.09);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 38, 45, 0.06);
  backdrop-filter: none;
}

.hero-category-tiles button:hover {
  border-color: rgba(7, 84, 93, 0.28);
  background: #ffffff;
}

.hero-category-tiles strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-category-tiles em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.68rem;
  font-weight: 460;
}

body[data-step="debate"] .featured-portals {
  gap: clamp(26px, 4vw, 52px);
  padding: clamp(24px, 4vw, 52px) 0 clamp(22px, 3vw, 42px);
}

body[data-step="debate"] .hot-section {
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body[data-step="debate"] .hot-section .section-heading,
body[data-step="debate"] .category-section:not(.featured-portals) .section-heading {
  align-items: start;
  padding-bottom: 2px;
}

body[data-step="debate"] .hot-section .section-heading h2,
body[data-step="debate"] .category-section:not(.featured-portals) .section-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 720;
}

body[data-step="debate"] .hot-section .section-heading p,
body[data-step="debate"] .category-section:not(.featured-portals) .section-heading p {
  display: block;
  max-width: 46ch;
  color: rgba(16, 42, 46, 0.6);
  font-size: 0.9rem;
  font-weight: 420;
  line-height: 1.35;
}

body[data-step="debate"] .hot-rail {
  grid-auto-columns: minmax(245px, 292px);
  gap: 12px;
}

body[data-step="debate"] .hot-card,
body[data-step="debate"] .poster-card {
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

body[data-step="debate"] .hot-card {
  grid-template-rows: 86px auto;
  min-height: 184px;
  padding: 10px;
}

body[data-step="debate"] .hot-art {
  border-radius: 10px;
}

body[data-step="debate"] .hot-art .poster-duel {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
}

body[data-step="debate"] .hot-art .player-token,
body[data-step="debate"] .hot-art .brand-token {
  min-height: 70px;
  border-radius: 9px;
}

body[data-step="debate"] .hot-card strong,
body[data-step="debate"] .poster-label strong {
  font-size: 0.98rem;
  font-weight: 700;
}

body[data-step="debate"] .hot-card em,
body[data-step="debate"] .poster-label span {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.76rem;
  font-weight: 430;
  line-height: 1.28;
}

body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(246px, 1fr));
  gap: 12px;
}

body[data-step="debate"] .poster-card {
  grid-template-rows: 104px auto;
  padding: 10px;
}

body[data-step="debate"] .poster-art {
  border-radius: 10px;
}

body[data-step="debate"] .poster-duel {
  gap: 8px;
}

body[data-step="debate"] .trust-band {
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  border: 1px solid rgba(16, 38, 45, 0.09);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 42px);
  background: #ffffff;
  box-shadow: none;
}

body[data-step="debate"] .trust-copy h3 {
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 720;
}

body[data-step="debate"] .trust-stats strong {
  font-weight: 720;
}

@media (max-width: 840px) {
  body[data-step="debate"] .stage-copy {
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 34px;
  }

  body[data-step="debate"] .stage-copy::before {
    display: none;
  }

  body[data-step="debate"] .hero-engine {
    display: none;
  }

  .hero-category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, 100%);
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .app-header {
    min-height: 82px;
  }

  body[data-step="debate"] .stage-copy {
    min-height: auto;
    padding: 32px 18px 28px;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  body[data-step="debate"] .stage-subtitle {
    font-size: 0.96rem;
  }

  body[data-step="debate"] .hero-engine {
    display: none;
  }

  .hero-category-tiles {
    grid-template-columns: 1fr;
  }

  .hero-category-tiles button {
    min-height: 58px;
  }

  body[data-step="debate"] .hot-section,
  body[data-step="debate"] .category-lead,
  body[data-step="debate"] .category-section:not(.featured-portals),
  body[data-step="debate"] .trust-band {
    width: calc(100% - 24px);
  }
}

/* Board preview polish: compact proof panel beside the launch chooser. */
body[data-step="debate"] .stage-copy h1 {
  font-size: 4.7rem;
  line-height: 0.98;
  letter-spacing: 0;
}

body[data-step="debate"] .stage-subtitle {
  font-size: 1.1rem;
}

body[data-step="debate"] .stage-copy::before {
  display: none;
}

body[data-step="debate"] .hero-engine {
  align-self: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  min-height: 0;
  max-width: 390px;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 246, 0.98));
  box-shadow: 0 16px 36px rgba(16, 38, 45, 0.08);
}

body[data-step="debate"] .hero-engine::before,
body[data-step="debate"] .hero-engine::after {
  display: none;
}

body[data-step="debate"] .engine-label {
  justify-self: start;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 999px;
  padding: 6px 9px;
  background: #ffffff;
  color: var(--teal);
  font-size: 0.66rem;
}

body[data-step="debate"] .engine-orbit {
  width: 76px;
  height: 76px;
  margin: 0 auto;
}

body[data-step="debate"] .engine-orbit img {
  width: 42px;
  height: 42px;
}

body[data-step="debate"] .engine-ring {
  border-color: rgba(7, 84, 93, 0.22);
}

body[data-step="debate"] .engine-stack {
  grid-template-columns: 1fr;
  gap: 7px;
}

body[data-step="debate"] .engine-stack span,
body[data-step="debate"] .engine-answer {
  min-height: 52px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #ffffff;
}

body[data-step="debate"] .engine-stack b,
body[data-step="debate"] .engine-answer small {
  color: rgba(126, 29, 39, 0.76);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.05em;
}

body[data-step="debate"] .engine-stack em,
body[data-step="debate"] .engine-answer strong {
  color: rgba(16, 42, 46, 0.9);
  font-size: 0.78rem;
  font-weight: 520;
  line-height: 1.2;
}

body[data-step="debate"] .engine-answer {
  grid-column: auto;
  border-color: rgba(7, 84, 93, 0.15);
  background: #edf7f5;
}

@media (max-width: 1120px) {
  body[data-step="debate"] .stage-copy h1 {
    font-size: 3.8rem;
  }
}

@media (max-width: 840px) {
  body[data-step="debate"] .stage-copy h1 {
    font-size: 3.4rem;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .stage-copy h1 {
    font-size: 2.7rem;
  }

  body[data-step="debate"] .stage-subtitle {
    font-size: 0.96rem;
  }
}

/* Launch cards: quieter marketplace tiles with a clear next step. */
body[data-step="debate"] .hot-rail {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

body[data-step="debate"] .hot-card {
  min-width: 0;
  min-height: 176px;
  grid-template-rows: 74px auto;
  gap: 9px;
  padding: 10px;
  scroll-snap-align: none;
}

body[data-step="debate"] .hot-card > span:last-child,
body[data-step="debate"] .poster-label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body[data-step="debate"] .hot-card strong,
body[data-step="debate"] .poster-label strong {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

body[data-step="debate"] .hot-card em,
body[data-step="debate"] .poster-label span,
body[data-step="debate"] .poster-label small:not(.card-action) {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 440;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-step="debate"] .hot-art .poster-duel {
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 6px;
  padding: 7px;
}

body[data-step="debate"] .hot-art .player-token,
body[data-step="debate"] .hot-art .brand-token {
  min-height: 58px;
}

body[data-step="debate"] .hot-art .vs-token {
  width: 30px;
  height: 30px;
  font-size: 0.55rem;
}

body[data-step="debate"] .card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 26px;
  margin-top: 2px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal);
  background: #f1f8f6;
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1;
}

body[data-step="debate"] .poster-card {
  min-height: 0;
}

body[data-step="debate"] .poster-label .card-action {
  display: inline-flex;
}

/* Header polish: one clean utility bar, category rail below. */
body[data-step="debate"] .app-header {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  min-height: 70px;
  padding: 7px 56px;
}

body[data-step="debate"] .brand-lockup {
  width: 180px;
  height: 54px;
}

body[data-step="debate"] .header-copy,
body[data-step="debate"] .journey-rail {
  display: none;
}

body[data-step="debate"] .header-actions {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
}

body[data-step="debate"] .site-nav {
  justify-content: flex-end;
}

body[data-step="debate"] .site-nav button {
  min-height: 34px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--teal);
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 720;
}

@media (max-width: 840px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 152px minmax(0, 1fr);
    padding: 8px 18px;
  }

  body[data-step="debate"] .brand-lockup {
    width: 152px;
    height: 50px;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 64px;
    padding: 7px 12px;
  }

  body[data-step="debate"] .brand-lockup {
    width: 132px;
    height: 46px;
  }

  body[data-step="debate"] .site-nav button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.66rem;
  }
}

/* NerdWallet-inspired hero search: tighter header, one obvious entry point. */
body[data-step="debate"] .app-header {
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 58px;
  padding: 5px 42px;
}

body[data-step="debate"] .brand-lockup {
  width: 154px;
  height: 48px;
}

body[data-step="debate"] .site-nav button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.66rem;
}

body[data-step="debate"] .portal-menu {
  min-height: 44px;
}

body[data-step="debate"] .portal-menu button {
  min-height: 30px;
  font-size: 0.74rem;
}

body[data-step="debate"] .stage-copy {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
  padding: 34px 24px 30px;
  text-align: center;
}

body[data-step="debate"] .hero-copy {
  width: min(840px, 100%);
  max-width: 840px;
}

body[data-step="debate"] .hero-engine {
  display: none;
}

body[data-step="debate"] .stage-copy .kicker {
  margin-bottom: 10px;
  font-size: 0.72rem;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: 3.55rem;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 47ch;
  margin-inline: auto;
  font-size: 1.02rem;
}

body[data-step="debate"] .hero-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  width: min(720px, 100%);
  min-height: 60px;
  margin: 20px auto 0;
  overflow: visible;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(16, 38, 45, 0.09);
}

body[data-step="debate"] .hero-search::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(7, 84, 93, 0.12), rgba(198, 162, 75, 0.42), rgba(177, 42, 51, 0.16), rgba(7, 84, 93, 0.12));
  background-size: 220% 100%;
  opacity: 0.85;
  animation: hero-search-sweep 5s linear infinite;
  content: "";
}

body[data-step="debate"] .hero-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body[data-step="debate"] .hero-search input {
  min-width: 0;
  height: 60px;
  border: 0;
  border-radius: 12px 0 0 12px;
  padding: 0 20px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

body[data-step="debate"] .hero-search input::placeholder {
  color: rgba(16, 42, 46, 0.48);
}

body[data-step="debate"] .hero-search button {
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 0 18px;
  color: #ffffff;
  background: var(--teal);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 760;
}

body[data-step="debate"] .hero-search:focus-within {
  border-color: rgba(7, 84, 93, 0.36);
  box-shadow:
    0 0 0 4px rgba(7, 84, 93, 0.08),
    0 18px 40px rgba(16, 38, 45, 0.11);
}

body[data-step="debate"] .hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 38, 45, 0.13);
  text-align: left;
}

body[data-step="debate"] .hero-search-results.is-open {
  display: grid;
}

body[data-step="debate"] .hero-search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid rgba(16, 38, 45, 0.07);
  padding: 9px 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

body[data-step="debate"] .hero-search-result:last-child {
  border-bottom: 0;
}

body[data-step="debate"] .hero-search-result:hover,
body[data-step="debate"] .hero-search-result:focus-visible {
  background: #f5faf8;
}

body[data-step="debate"] .hero-search-result i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 223, 0.96) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.88), rgba(198, 162, 75, 0.72));
}

body[data-step="debate"] .hero-search-result strong,
body[data-step="debate"] .hero-search-result span {
  display: block;
}

body[data-step="debate"] .hero-search-result strong {
  font-size: 0.9rem;
  line-height: 1.16;
}

body[data-step="debate"] .hero-search-result span {
  overflow: hidden;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .hero-search-result em {
  color: var(--teal);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 720;
}

body[data-step="debate"] .hero-search .hero-search-results .hero-search-result {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(16, 38, 45, 0.07);
  border-radius: 0;
  padding: 9px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-transform: none;
}

body[data-step="debate"] .hero-search .hero-search-results .hero-search-result:last-child {
  border-bottom: 0;
}

body[data-step="debate"] .hero-search .hero-search-results .hero-search-result:hover,
body[data-step="debate"] .hero-search .hero-search-results .hero-search-result:focus-visible {
  color: var(--ink);
  background: #f5faf8;
}

body[data-step="debate"] .hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(720px, 100%);
  margin: 12px auto 0;
}

body[data-step="debate"] .hero-quick-links button {
  min-height: 30px;
  border: 1px solid rgba(7, 84, 93, 0.13);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(16, 42, 46, 0.74);
  background: #ffffff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 620;
}

body[data-step="debate"] .hero-quick-links button:hover {
  border-color: rgba(7, 84, 93, 0.28);
  color: var(--teal);
}

@keyframes hero-search-sweep {
  to {
    background-position: 220% 0;
  }
}

@media (max-width: 840px) {
  body[data-step="debate"] .stage-copy {
    padding: 32px 18px 28px;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: 3rem;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .stage-copy h1 {
    font-size: 2.35rem;
  }

  body[data-step="debate"] .hero-search {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .hero-search input {
    height: 54px;
    border-radius: 12px 12px 0 0;
  }

  body[data-step="debate"] .hero-search button {
    min-height: 44px;
    border-top: 1px solid rgba(16, 38, 45, 0.08);
    border-left: 0;
    border-radius: 0 0 12px 12px;
  }
}

/* Tighten the launch hero so search feels like the first action, not a billboard. */
body[data-step="debate"] .stage-copy {
  min-height: 0;
  padding: 24px 24px 22px;
}

body[data-step="debate"] .stage-copy .kicker {
  margin-bottom: 7px;
  font-size: 0.64rem;
}

body[data-step="debate"] .stage-copy h1 {
  max-width: 18ch;
  font-size: 2.75rem;
  line-height: 1.02;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 48ch;
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.34;
}

body[data-step="debate"] .hero-search {
  min-height: 52px;
  margin-top: 16px;
}

body[data-step="debate"] .hero-search input {
  height: 52px;
  padding-inline: 18px;
  font-size: 0.94rem;
}

body[data-step="debate"] .hero-search button {
  font-size: 0.68rem;
}

body[data-step="debate"] .hero-quick-links {
  margin-top: 10px;
}

body[data-step="debate"] .hero-quick-links button {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.68rem;
}

body[data-step="debate"] .featured-portals {
  padding-top: 24px;
}

@media (max-width: 840px) {
  body[data-step="debate"] .stage-copy {
    padding: 22px 18px 20px;
  }

  body[data-step="debate"] .stage-copy h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .stage-copy h1 {
    font-size: 2.15rem;
  }
}

/* Popular boards carousel: intentional motion instead of accidental overflow. */
body[data-step="debate"] .featured-portals {
  padding-top: 20px;
}

body[data-step="debate"] .hot-section-primary {
  box-sizing: border-box;
  justify-self: center;
  width: min(1120px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  min-width: 0;
  margin-inline: auto;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 18px;
  padding: 14px 18px 16px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(16, 38, 45, 0.06);
}

body[data-step="debate"] .carousel-heading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 0 10px;
}

body[data-step="debate"] .carousel-heading h2 {
  font-size: 1rem;
  font-weight: 760;
}

body[data-step="debate"] .carousel-heading p {
  justify-self: end;
  max-width: 32ch;
  color: rgba(16, 42, 46, 0.56);
  font-size: 0.78rem;
}

body[data-step="debate"] .hot-carousel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body[data-step="debate"] .hot-carousel::before,
body[data-step="debate"] .hot-carousel::after {
  position: absolute;
  top: 0;
  bottom: 18px;
  z-index: 3;
  width: 42px;
  pointer-events: none;
  content: "";
}

body[data-step="debate"] .hot-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

body[data-step="debate"] .hot-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

body[data-step="debate"] .hot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(244px, 272px);
  grid-template-columns: none;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

body[data-step="debate"] .hot-rail::-webkit-scrollbar {
  display: none;
}

body[data-step="debate"] .hot-card {
  min-width: 0;
  min-height: 174px;
  grid-template-rows: 78px auto;
  gap: 8px;
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 6px 18px rgba(16, 38, 45, 0.05);
  scroll-snap-align: start;
}

body[data-step="debate"] .hot-card:not(:disabled):hover {
  transform: translateY(-1px);
}

body[data-step="debate"] .hot-art {
  border-radius: 10px;
}

body[data-step="debate"] .hot-art .poster-duel {
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 6px;
  padding: 7px;
}

body[data-step="debate"] .hot-art .player-token,
body[data-step="debate"] .hot-art .brand-token {
  min-height: 62px;
  border-radius: 9px;
}

body[data-step="debate"] .carousel-button {
  position: absolute;
  top: 42%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 38, 45, 0.12);
  border-radius: 999px;
  color: var(--teal);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .carousel-button span {
  display: block;
  transform: translateY(-1px);
  font-size: 1.35rem;
  line-height: 1;
}

body[data-step="debate"] .carousel-button:disabled {
  opacity: 0.34;
}

body[data-step="debate"] .carousel-prev {
  left: -12px;
}

body[data-step="debate"] .carousel-next {
  right: -12px;
}

body[data-step="debate"] .carousel-progress {
  position: relative;
  height: 5px;
  margin: 4px 40px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 84, 93, 0.14);
}

body[data-step="debate"] .carousel-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  border-radius: inherit;
  background: rgba(7, 84, 93, 0.46);
  transition:
    left 220ms ease,
    width 220ms ease;
}

@media (max-width: 680px) {
  body[data-step="debate"] .hot-section-primary {
    width: calc(100% - 24px);
    padding: 12px;
  }

  body[data-step="debate"] .carousel-heading {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  body[data-step="debate"] .carousel-heading p {
    justify-self: start;
  }

  body[data-step="debate"] .hot-rail {
    grid-auto-columns: minmax(236px, 82vw);
  }
}

/* Proof section: replace generic device mockup with the actual weighing metaphor. */
body[data-step="debate"] .trust-band {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: center;
}

body[data-step="debate"] .trust-scale-visual {
  display: grid;
  place-items: center;
  min-height: 310px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(198, 162, 75, 0.14), transparent 32%),
    linear-gradient(135deg, #f7faf6, #ffffff);
}

body[data-step="debate"] .scale-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(310px, 86%);
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 18px;
  padding: 18px 16px 44px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(16, 38, 45, 0.08);
}

body[data-step="debate"] .scale-mark {
  width: min(236px, 100%);
  height: auto;
}

body[data-step="debate"] .scale-mark path,
body[data-step="debate"] .scale-mark circle {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

body[data-step="debate"] .scale-mark .scale-beam {
  stroke: #7e1d27;
}

body[data-step="debate"] .scale-mark .scale-pan {
  fill: rgba(198, 162, 75, 0.16);
  stroke: #c6a24b;
}

body[data-step="debate"] .scale-mark .scale-pin {
  fill: #ffffff;
  stroke: #7e1d27;
}

body[data-step="debate"] .scale-mark .scale-shadow {
  stroke: rgba(16, 38, 45, 0.12);
  stroke-width: 10;
}

body[data-step="debate"] .scale-caption {
  display: grid;
  gap: 2px;
  text-align: center;
}

body[data-step="debate"] .scale-caption strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
}

body[data-step="debate"] .scale-caption em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.78rem;
  font-style: normal;
}

body[data-step="debate"] .trust-scale-visual .trust-chip {
  z-index: 3;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.68rem;
  box-shadow: 0 12px 28px rgba(16, 38, 45, 0.1);
}

body[data-step="debate"] .trust-scale-visual .trust-chip-one {
  top: 38px;
  left: 30px;
}

body[data-step="debate"] .trust-scale-visual .trust-chip-two {
  right: 24px;
  bottom: auto;
  top: 76px;
}

body[data-step="debate"] .trust-chip-three {
  right: 50%;
  bottom: 20px;
  transform: translateX(50%);
}

body[data-step="debate"] .trust-copy h3 {
  max-width: 11ch;
}

@media (max-width: 760px) {
  body[data-step="debate"] .trust-band {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .trust-scale-visual {
    min-height: 250px;
  }
}

/* Keep the carousel compact enough to be understood in the first viewport. */
body[data-step="debate"] .featured-portals {
  gap: 24px;
  padding: 8px 0 24px;
}

body[data-step="debate"] .hot-section-primary .hot-card {
  min-height: 168px;
  grid-template-rows: 72px auto;
}

body[data-step="debate"] .hot-section-primary .hot-art .player-token,
body[data-step="debate"] .hot-section-primary .hot-art .brand-token {
  min-height: 56px;
}

body[data-step="debate"] .hot-section-primary .hot-card strong {
  font-size: 0.9rem;
}

body[data-step="debate"] .hot-section-primary .hot-card em {
  font-size: 0.68rem;
  line-height: 1.22;
}

body[data-step="debate"] .hot-section-primary .card-action {
  min-height: 24px;
  font-size: 0.64rem;
}

/* NerdWallet-inspired home journey: top nav, search hero, big tiles, trust, briefs. */
body[data-step="debate"] .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
  background: #fbfaf6;
}

body[data-step="debate"] .app-header {
  position: relative;
  z-index: 40;
  grid-template-columns: minmax(138px, 164px) minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 72px;
  padding: 8px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(16, 38, 45, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 38, 45, 0.04);
}

body[data-step="debate"] .brand-lockup {
  width: 154px;
  height: 52px;
}

body[data-step="debate"] .app-header .portal-menu {
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 24px);
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

body[data-step="debate"] .app-header .portal-menu::-webkit-scrollbar {
  display: none;
}

body[data-step="debate"] .app-header .portal-menu button {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #0d2225;
  background: transparent;
  box-shadow: none;
  font-size: clamp(0.74rem, 0.9vw, 0.9rem);
  font-weight: 820;
  letter-spacing: 0;
  text-transform: none;
}

body[data-step="debate"] .app-header .portal-menu button::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

body[data-step="debate"] .app-header .portal-menu button.is-active {
  color: #07545d;
}

body[data-step="debate"] .app-header .portal-menu button.is-active::after,
body[data-step="debate"] .app-header .portal-menu button:hover::after {
  background: #48b456;
}

body[data-step="debate"] .header-actions {
  justify-self: end;
}

body[data-step="debate"] .site-nav button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: 4px;
  color: #07545d;
  background: #f8fbf8;
  font-size: 0.7rem;
  font-weight: 860;
  letter-spacing: 0.08em;
}

body[data-step="debate"] [data-stage="debate"] {
  overflow-x: hidden;
  background: #fbfaf6;
}

body[data-step="debate"] .stage-copy {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
  max-width: none;
  min-height: 466px;
  margin: 0;
  padding: clamp(42px, 6vw, 72px) max(28px, calc((100vw - 1120px) / 2)) 118px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 104, 78, 0.96) 0 53%, rgba(224, 241, 233, 0.98) 53% 100%),
    #0a6e57;
  box-shadow: none;
}

body[data-step="debate"] .stage-copy::before,
body[data-step="debate"] .stage-copy::after {
  display: none;
}

body[data-step="debate"] .hero-copy {
  max-width: 560px;
  color: #ffffff;
}

body[data-step="debate"] .hero-copy .kicker {
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.08em;
}

body[data-step="debate"] .hero-copy h1 {
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(2.65rem, 4.6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
}

body[data-step="debate"] .hero-search {
  width: min(560px, 100%);
  margin-top: 26px;
  overflow: visible;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 38, 45, 0.22);
}

body[data-step="debate"] .hero-search > span {
  color: #07545d;
  font-weight: 850;
}

body[data-step="debate"] .hero-search input {
  min-height: 62px;
  color: #1a2c30;
  font-size: 1rem;
}

body[data-step="debate"] .hero-search button[type="submit"] {
  align-self: center;
  min-width: 50px;
  min-height: 50px;
  border-radius: 5px;
  background: #48b456;
  color: #ffffff;
  font-size: 0;
}

body[data-step="debate"] .hero-search button[type="submit"]::before {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  content: "";
}

body[data-step="debate"] .hero-search-results {
  top: calc(100% + 8px);
}

body[data-step="debate"] .hero-quick-links button {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

body[data-step="debate"] .hero-engine {
  justify-self: center;
  width: min(360px, 90%);
  min-height: 330px;
  border-color: rgba(7, 84, 93, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 70px rgba(16, 38, 45, 0.14);
}

body[data-step="debate"] .value-panel,
body[data-step="debate"] .portal-board-head {
  display: none;
}

body[data-step="debate"] .poster-grid {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 0 54px;
}

body[data-step="debate"] .featured-portals {
  display: grid;
  gap: 46px;
  width: 100%;
  padding: 0 0 22px;
}

body[data-step="debate"] .launch-tile-shell {
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100vw - 48px));
  margin: -70px auto 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(7, 84, 93, 0.08);
  border-radius: 12px;
  background: rgba(237, 251, 246, 0.96);
  box-shadow: 0 28px 70px rgba(16, 38, 45, 0.14);
  backdrop-filter: blur(16px);
}

body[data-step="debate"] .launch-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-step="debate"] .launch-tile {
  position: relative;
  display: grid;
  grid-template-rows: 92px minmax(70px, auto);
  gap: 12px;
  min-height: 190px;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 8px;
  color: #0d2225;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 38, 45, 0.05);
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .launch-tile:hover {
  border-color: rgba(7, 84, 93, 0.18);
  box-shadow: 0 18px 34px rgba(16, 38, 45, 0.1);
  transform: translateY(-2px);
}

body[data-step="debate"] .launch-tile i {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: rgba(16, 38, 45, 0.5);
}

body[data-step="debate"] .launch-tile i::before {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

body[data-step="debate"] .launch-tile-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.76), transparent 28%),
    linear-gradient(135deg, rgba(7, 84, 93, 0.92), rgba(72, 180, 86, 0.52));
}

body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art {
  background: linear-gradient(135deg, rgba(126, 29, 39, 0.92), rgba(7, 84, 93, 0.78));
}

body[data-step="debate"] .launch-tile[data-family="goatCalcs"] .launch-tile-art {
  background: linear-gradient(135deg, rgba(7, 84, 93, 0.94), rgba(198, 162, 75, 0.7));
}

body[data-step="debate"] .launch-tile[data-family="entertainment"] .launch-tile-art {
  background: linear-gradient(135deg, rgba(76, 68, 123, 0.88), rgba(198, 162, 75, 0.62));
}

body[data-step="debate"] .launch-tile[data-family="lifeDecisions"] .launch-tile-art {
  background: linear-gradient(135deg, rgba(7, 84, 93, 0.86), rgba(128, 168, 156, 0.74));
}

body[data-step="debate"] .launch-tile[data-family="homeServices"] .launch-tile-art {
  background: linear-gradient(135deg, rgba(41, 98, 78, 0.9), rgba(198, 162, 75, 0.66));
}

body[data-step="debate"] .launch-tile-art .poster-duel {
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 10px;
  gap: 7px;
}

body[data-step="debate"] .launch-tile-art .player-token,
body[data-step="debate"] .launch-tile-art .brand-token {
  min-height: 66px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .launch-tile-copy {
  display: grid;
  gap: 7px;
  align-content: start;
  padding-right: 12px;
}

body[data-step="debate"] .launch-tile-copy strong {
  color: #081f23;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}

body[data-step="debate"] .launch-tile-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(16, 42, 46, 0.68);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-step="debate"] .hot-section-primary {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

body[data-step="debate"] .trust-band {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

body[data-step="debate"] .trust-copy .kicker {
  color: #07545d;
}

body[data-step="debate"] .decision-briefs {
  display: grid;
  gap: 20px;
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

body[data-step="debate"] .decision-briefs-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

body[data-step="debate"] .decision-briefs-heading h2 {
  margin: 0;
  color: #081f23;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

body[data-step="debate"] .decision-briefs-heading > span {
  max-width: 56ch;
  color: rgba(16, 42, 46, 0.66);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}

body[data-step="debate"] .brief-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-step="debate"] .brief-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 228px;
  padding: 18px;
  border: 1px solid rgba(16, 38, 45, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(72, 180, 86, 0.18), transparent 44%);
  box-shadow: 0 12px 30px rgba(16, 38, 45, 0.06);
  color: #102a2e;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .brief-card:hover {
  border-color: rgba(7, 84, 93, 0.16);
  box-shadow: 0 18px 34px rgba(16, 38, 45, 0.1);
  transform: translateY(-2px);
}

body[data-step="debate"] .brief-label {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #07545d;
  background: rgba(7, 84, 93, 0.08);
  font-size: 0.64rem;
  font-weight: 860;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-step="debate"] .brief-card strong {
  color: #081f23;
  font-size: 1.14rem;
  line-height: 1.12;
  letter-spacing: 0;
}

body[data-step="debate"] .brief-card > span:not(.brief-label) {
  color: rgba(16, 42, 46, 0.68);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.42;
}

body[data-step="debate"] .brief-card em {
  align-self: end;
  color: #07545d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

body[data-step="debate"] .category-lead {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

body[data-step="debate"] .category-section:not(.featured-portals) {
  width: min(1120px, calc(100vw - 48px));
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1040px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 14px;
  }

  body[data-step="debate"] .launch-tile-grid,
  body[data-step="debate"] .brief-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: minmax(128px, auto) auto;
    min-height: 104px;
    align-content: center;
  }

  body[data-step="debate"] .app-header .portal-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  body[data-step="debate"] .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-step="debate"] .stage-copy {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 94px;
    background:
      linear-gradient(180deg, rgba(0, 104, 78, 0.96) 0 68%, rgba(224, 241, 233, 0.98) 68% 100%),
      #0a6e57;
  }

  body[data-step="debate"] .hero-copy h1 {
    max-width: 12ch;
  }

  body[data-step="debate"] .hero-engine {
    width: min(340px, 100%);
    min-height: 240px;
  }
}

@media (max-width: 680px) {
  body[data-step="debate"] .app-header {
    padding: 8px 14px 10px;
  }

  body[data-step="debate"] .brand-lockup {
    width: 132px;
    height: 46px;
  }

  body[data-step="debate"] .site-nav button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.62rem;
  }

  body[data-step="debate"] .stage-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-step="debate"] .hero-search {
    grid-template-columns: 1fr 48px;
    padding: 0;
  }

  body[data-step="debate"] .hero-search > span {
    display: none;
  }

  body[data-step="debate"] .hero-search input {
    min-height: 56px;
    padding-left: 16px;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    min-width: 44px;
    min-height: 44px;
    margin-right: 6px;
  }

  body[data-step="debate"] .launch-tile-shell,
  body[data-step="debate"] .hot-section-primary,
  body[data-step="debate"] .trust-band,
  body[data-step="debate"] .decision-briefs,
  body[data-step="debate"] .category-lead,
  body[data-step="debate"] .category-section:not(.featured-portals) {
    width: calc(100vw - 24px);
  }

  body[data-step="debate"] .launch-tile-shell {
    margin-top: -54px;
    padding: 12px;
  }

  body[data-step="debate"] .launch-tile-grid,
  body[data-step="debate"] .brief-card-grid {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .launch-tile {
    grid-template-rows: 84px minmax(0, auto);
    min-height: 168px;
  }
}

/* Keep the header and homepage shelves from collapsing too early in the embedded preview. */
body[data-step="debate"] .app-header .brand-lockup {
  grid-column: 1;
  grid-row: 1;
}

body[data-step="debate"] .app-header .portal-menu {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

body[data-step="debate"] .app-header .header-actions {
  grid-column: 3;
  grid-row: 1;
  min-width: max-content;
}

@media (min-width: 821px) {
  body[data-step="debate"] .launch-tile-grid,
  body[data-step="debate"] .brief-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-step="debate"] .app-header .portal-menu {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body[data-step="debate"] .app-header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 820px) and (min-width: 681px) {
  body[data-step="debate"] .launch-tile-grid,
  body[data-step="debate"] .brief-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Give the hero a visible DecisionVision weighing signal instead of an empty media panel. */
body[data-step="debate"] .hero-copy {
  justify-items: start;
  text-align: left;
}

body[data-step="debate"] .stage-subtitle {
  text-align: left;
}

body[data-step="debate"] .stage-copy {
  background:
    linear-gradient(90deg, rgba(0, 104, 78, 0.96) 0 64%, rgba(224, 241, 233, 0.98) 64% 100%),
    #0a6e57;
}

body[data-step="debate"] .hero-engine.hero-scale {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  width: min(340px, 90%);
  min-height: 318px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(198, 162, 75, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 246, 0.78));
  box-shadow: 0 28px 70px rgba(16, 38, 45, 0.14);
}

body[data-step="debate"] .hero-engine.hero-scale::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(7, 84, 93, 0.08);
  border-radius: 999px;
  content: "";
}

body[data-step="debate"] .hero-scale-kicker {
  position: relative;
  z-index: 1;
  color: #07545d;
  font-size: 0.68rem;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-step="debate"] .hero-scale-mark {
  position: relative;
  z-index: 1;
  width: min(230px, 88%);
  height: auto;
}

body[data-step="debate"] .hero-scale-mark path,
body[data-step="debate"] .hero-scale-mark circle {
  fill: none;
  stroke: #07545d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

body[data-step="debate"] .hero-scale-mark .scale-beam,
body[data-step="debate"] .hero-scale-mark .scale-pin {
  stroke: #7e1d27;
}

body[data-step="debate"] .hero-scale-mark .scale-pan {
  fill: rgba(198, 162, 75, 0.16);
  stroke: #c6a24b;
}

body[data-step="debate"] .hero-scale-mark .scale-pin {
  fill: #ffffff;
}

body[data-step="debate"] .hero-scale-mark .scale-shadow {
  stroke: rgba(16, 38, 45, 0.12);
  stroke-width: 10;
}

body[data-step="debate"] .hero-scale-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  text-align: center;
}

body[data-step="debate"] .hero-scale-copy strong {
  color: #102a2e;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.1;
}

body[data-step="debate"] .hero-scale-copy em {
  color: rgba(16, 42, 46, 0.64);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 650;
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    background:
      linear-gradient(180deg, rgba(0, 104, 78, 0.96) 0 70%, rgba(224, 241, 233, 0.98) 70% 100%),
      #0a6e57;
  }

  body[data-step="debate"] .hero-engine.hero-scale {
    width: min(320px, 100%);
    min-height: 246px;
    justify-self: start;
  }

  body[data-step="debate"] .hero-scale-mark {
    width: min(190px, 82%);
  }
}

/* Brighter DecisionVision pass: simple NerdWallet-style journey with DV color only. */
@keyframes dv-hero-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes dv-search-glow {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(8, 54, 48, 0.2);
  }

  50% {
    box-shadow: 0 22px 52px rgba(8, 54, 48, 0.28);
  }
}

@keyframes dv-tile-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dv-scale-balance {
  0%,
  100% {
    transform: rotate(-1.6deg);
  }

  50% {
    transform: rotate(1.6deg);
  }
}

body[data-step="debate"] {
  --dv-green: #48b456;
  --dv-teal: #07545d;
  --dv-deep: #063f3f;
  --dv-red: #7e1d27;
  --dv-gold: #c6a24b;
  --dv-mint: #e8f8f1;
  --dv-paper: #ffffff;
  --dv-cream: #fbfaf6;
}

body[data-step="debate"] .app-shell {
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 72px, var(--dv-cream) 72px 100%),
    var(--dv-cream);
}

body[data-step="debate"] .app-header {
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom-color: rgba(7, 84, 93, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

body[data-step="debate"] .brand-lockup {
  width: 150px;
  height: 52px;
}

body[data-step="debate"] .app-header .portal-menu button {
  color: #102a2e;
  font-size: clamp(0.76rem, 0.92vw, 0.93rem);
  font-weight: 870;
}

body[data-step="debate"] .app-header .portal-menu button.is-active,
body[data-step="debate"] .app-header .portal-menu button:hover {
  color: var(--dv-teal);
}

body[data-step="debate"] .app-header .portal-menu button.is-active::after,
body[data-step="debate"] .app-header .portal-menu button:hover::after {
  background: var(--dv-green);
}

body[data-step="debate"] .site-nav button {
  border-color: rgba(7, 84, 93, 0.14);
  color: var(--dv-teal);
  background: #f8fbf8;
  box-shadow: none;
}

body[data-step="debate"] .site-nav button:hover {
  border-color: rgba(72, 180, 86, 0.46);
  background: #eef9f0;
}

body[data-step="debate"] .stage-copy {
  min-height: 545px;
  padding-top: clamp(52px, 6.4vw, 86px);
  padding-bottom: 132px;
  background:
    linear-gradient(90deg, rgba(0, 110, 84, 0.98) 0 63.5%, rgba(226, 246, 237, 0.98) 63.5% 100%),
    var(--dv-teal);
}

body[data-step="debate"] .hero-copy {
  gap: 18px;
}

body[data-step="debate"] .hero-copy .kicker {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 890;
}

body[data-step="debate"] .hero-copy h1 {
  max-width: 12.5ch;
  color: #ffffff;
  font-size: clamp(2.82rem, 4.85vw, 4.95rem);
  font-weight: 890;
  line-height: 0.99;
}

body[data-step="debate"] .hero-copy h1 span {
  color: #a6f04e;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.42vw, 1.24rem);
  font-weight: 620;
}

body[data-step="debate"] .hero-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  min-height: 82px;
  margin-top: 14px;
  border-radius: 7px;
  animation: dv-search-glow 5.6s ease-in-out infinite;
}

body[data-step="debate"] .hero-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body[data-step="debate"] .hero-search input {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 0 18px 0 20px;
  border: 0;
  color: #182f32;
  background: transparent;
  font-size: 1.04rem;
  font-weight: 600;
}

body[data-step="debate"] .hero-search input::placeholder {
  color: rgba(16, 42, 46, 0.5);
}

body[data-step="debate"] .hero-search button[type="submit"] {
  grid-column: 2;
  justify-self: end;
  width: 96px;
  min-width: 96px;
  height: 58px;
  min-height: 58px;
  margin-right: 10px;
  border-radius: 6px;
  background: var(--dv-green);
  box-shadow: inset 0 -2px 0 rgba(16, 42, 46, 0.1);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .hero-search button[type="submit"]:hover {
  background: #57c765;
  transform: translateY(-1px);
}

body[data-step="debate"] .hero-quick-links {
  gap: 8px;
  margin-top: 8px;
}

body[data-step="debate"] .hero-quick-links button {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 780;
}

body[data-step="debate"] .hero-quick-links button:hover {
  background: rgba(255, 255, 255, 0.18);
}

body[data-step="debate"] .hero-engine.hero-scale {
  width: min(350px, 88%);
  min-height: 342px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(198, 162, 75, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 250, 0.88));
  box-shadow: 0 30px 72px rgba(7, 84, 93, 0.18);
  animation: dv-hero-card-float 6.8s ease-in-out infinite;
}

body[data-step="debate"] .hero-engine.hero-scale::before {
  inset: 26px;
  border-color: rgba(7, 84, 93, 0.07);
}

body[data-step="debate"] .hero-scale-kicker {
  color: var(--dv-teal);
}

body[data-step="debate"] .hero-scale-mark .scale-beam {
  transform-origin: 160px 78px;
  animation: dv-scale-balance 5.8s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile-shell {
  margin-top: -82px;
  padding: 26px;
  border-radius: 8px;
  border-color: rgba(7, 84, 93, 0.08);
  background: rgba(233, 251, 244, 0.98);
  box-shadow: 0 24px 64px rgba(7, 84, 93, 0.13);
}

body[data-step="debate"] .launch-tile-grid {
  gap: 16px;
}

body[data-step="debate"] .launch-tile {
  grid-template-rows: 104px minmax(78px, auto);
  min-height: 208px;
  padding: 16px;
  border-radius: 7px;
  border-color: rgba(7, 84, 93, 0.09);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 84, 93, 0.055);
  animation: dv-tile-rise 520ms ease both;
}

body[data-step="debate"] .launch-tile:nth-child(2) {
  animation-delay: 45ms;
}

body[data-step="debate"] .launch-tile:nth-child(3) {
  animation-delay: 90ms;
}

body[data-step="debate"] .launch-tile:nth-child(4) {
  animation-delay: 135ms;
}

body[data-step="debate"] .launch-tile:nth-child(5) {
  animation-delay: 180ms;
}

body[data-step="debate"] .launch-tile:nth-child(6) {
  animation-delay: 225ms;
}

body[data-step="debate"] .launch-tile:nth-child(7) {
  animation-delay: 270ms;
}

body[data-step="debate"] .launch-tile:nth-child(8) {
  animation-delay: 315ms;
}

body[data-step="debate"] .launch-tile:hover {
  border-color: rgba(72, 180, 86, 0.36);
  box-shadow: 0 18px 36px rgba(7, 84, 93, 0.12);
}

body[data-step="debate"] .launch-tile i {
  color: rgba(7, 84, 93, 0.58);
}

body[data-step="debate"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="goatCalcs"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="entertainment"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="lifeDecisions"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="homeServices"] .launch-tile-art {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 8px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, rgba(232, 248, 241, 0.95), rgba(251, 250, 246, 0.95));
}

body[data-step="debate"] .launch-tile-art small {
  color: rgba(7, 84, 93, 0.72);
  font-size: 0.64rem;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-step="debate"] .launch-tile-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(7, 84, 93, 0.08),
    0 10px 22px rgba(7, 84, 93, 0.1);
}

body[data-step="debate"] .launch-tile-icon::before,
body[data-step="debate"] .launch-tile-icon::after,
body[data-step="debate"] .launch-tile-icon span {
  position: absolute;
  display: block;
  content: "";
}

body[data-step="debate"] .launch-tile-balance .launch-tile-icon::before {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--dv-red);
  transform: translateY(-10px);
}

body[data-step="debate"] .launch-tile-balance .launch-tile-icon::after {
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: var(--dv-teal);
}

body[data-step="debate"] .launch-tile-balance .launch-tile-icon span:nth-child(1),
body[data-step="debate"] .launch-tile-balance .launch-tile-icon span:nth-child(2) {
  top: 29px;
  width: 18px;
  height: 10px;
  border: 3px solid var(--dv-gold);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

body[data-step="debate"] .launch-tile-balance .launch-tile-icon span:nth-child(1) {
  left: 8px;
}

body[data-step="debate"] .launch-tile-balance .launch-tile-icon span:nth-child(2) {
  right: 8px;
}

body[data-step="debate"] .launch-tile-trophy .launch-tile-icon::before {
  width: 28px;
  height: 28px;
  border: 4px solid var(--dv-gold);
  border-top-width: 6px;
  border-radius: 8px 8px 16px 16px;
}

body[data-step="debate"] .launch-tile-trophy .launch-tile-icon::after {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: var(--dv-teal);
  transform: translateY(19px);
}

body[data-step="debate"] .launch-tile-city .launch-tile-icon span {
  bottom: 14px;
  width: 8px;
  border-radius: 2px 2px 0 0;
  background: var(--dv-teal);
}

body[data-step="debate"] .launch-tile-city .launch-tile-icon span:nth-child(1) {
  left: 15px;
  height: 20px;
}

body[data-step="debate"] .launch-tile-city .launch-tile-icon span:nth-child(2) {
  left: 26px;
  height: 30px;
  background: var(--dv-green);
}

body[data-step="debate"] .launch-tile-city .launch-tile-icon span:nth-child(3) {
  left: 37px;
  height: 24px;
  background: var(--dv-gold);
}

body[data-step="debate"] .launch-tile-home .launch-tile-icon::before {
  width: 32px;
  height: 32px;
  border-top: 5px solid var(--dv-red);
  border-left: 5px solid var(--dv-red);
  transform: translateY(3px) rotate(45deg);
}

body[data-step="debate"] .launch-tile-home .launch-tile-icon::after {
  width: 28px;
  height: 24px;
  border-radius: 3px;
  background: var(--dv-teal);
  transform: translateY(10px);
}

body[data-step="debate"] .launch-tile-screen .launch-tile-icon::before {
  width: 36px;
  height: 25px;
  border: 4px solid var(--dv-red);
  border-radius: 5px;
}

body[data-step="debate"] .launch-tile-screen .launch-tile-icon::after {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--dv-teal);
  transform: translateY(20px);
}

body[data-step="debate"] .launch-tile-console .launch-tile-icon::before {
  width: 39px;
  height: 25px;
  border-radius: 16px 16px 18px 18px;
  background: var(--dv-teal);
}

body[data-step="debate"] .launch-tile-console .launch-tile-icon span:nth-child(1),
body[data-step="debate"] .launch-tile-console .launch-tile-icon span:nth-child(2) {
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
}

body[data-step="debate"] .launch-tile-console .launch-tile-icon span:nth-child(1) {
  left: 18px;
}

body[data-step="debate"] .launch-tile-console .launch-tile-icon span:nth-child(2) {
  right: 18px;
}

body[data-step="debate"] .launch-tile-compass .launch-tile-icon::before {
  width: 34px;
  height: 34px;
  border: 4px solid var(--dv-teal);
  border-radius: 999px;
}

body[data-step="debate"] .launch-tile-compass .launch-tile-icon::after {
  width: 11px;
  height: 26px;
  background: linear-gradient(180deg, var(--dv-red) 0 50%, var(--dv-gold) 50% 100%);
  clip-path: polygon(50% 0, 100% 100%, 50% 80%, 0 100%);
  transform: rotate(38deg);
}

body[data-step="debate"] .launch-tile-nodes .launch-tile-icon::before {
  width: 35px;
  height: 3px;
  border-radius: 999px;
  background: var(--dv-teal);
  transform: rotate(-18deg);
}

body[data-step="debate"] .launch-tile-nodes .launch-tile-icon span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--dv-gold);
  box-shadow: 0 0 0 4px rgba(198, 162, 75, 0.16);
}

body[data-step="debate"] .launch-tile-nodes .launch-tile-icon span:nth-child(1) {
  left: 12px;
  top: 18px;
}

body[data-step="debate"] .launch-tile-nodes .launch-tile-icon span:nth-child(2) {
  right: 12px;
  bottom: 18px;
  background: var(--dv-green);
}

body[data-step="debate"] .launch-tile-copy strong {
  color: #102a2e;
  font-size: clamp(1.02rem, 1.16vw, 1.12rem);
  font-weight: 880;
}

body[data-step="debate"] .launch-tile-copy span {
  color: rgba(16, 42, 46, 0.66);
  font-size: 0.8rem;
  font-weight: 620;
}

body[data-step="debate"] .hot-section-primary,
body[data-step="debate"] .trust-band,
body[data-step="debate"] .decision-briefs,
body[data-step="debate"] .category-lead,
body[data-step="debate"] .category-section:not(.featured-portals) {
  width: min(1120px, calc(100vw - 48px));
}

body[data-step="debate"] .hot-section-primary,
body[data-step="debate"] .trust-band {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(7, 84, 93, 0.07);
}

body[data-step="debate"] .hot-section-primary {
  padding: 24px;
}

body[data-step="debate"] .carousel-heading h2,
body[data-step="debate"] .decision-briefs-heading h2,
body[data-step="debate"] .category-lead h2 {
  color: #102a2e;
  font-weight: 890;
}

body[data-step="debate"] .hot-card {
  border-radius: 7px;
  border-color: rgba(7, 84, 93, 0.08);
  box-shadow: 0 8px 20px rgba(7, 84, 93, 0.05);
}

body[data-step="debate"] .hot-card:hover,
body[data-step="debate"] .brief-card:hover {
  border-color: rgba(72, 180, 86, 0.34);
}

body[data-step="debate"] .trust-band {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(7, 84, 93, 0.08);
}

body[data-step="debate"] .trust-scale-visual {
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(72, 180, 86, 0.12), transparent 38%),
    linear-gradient(135deg, #f6fbf7, #ffffff);
}

body[data-step="debate"] .scale-card {
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(7, 84, 93, 0.1);
}

body[data-step="debate"] .scale-mark .scale-beam {
  transform-origin: 160px 78px;
  animation: dv-scale-balance 6.2s ease-in-out infinite;
}

body[data-step="debate"] .trust-copy h3 {
  max-width: 13ch;
  color: #102a2e;
  font-weight: 890;
}

body[data-step="debate"] .trust-stats strong {
  color: var(--dv-teal);
}

body[data-step="debate"] .brief-card {
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 18% 0%, rgba(72, 180, 86, 0.16), transparent 42%);
}

body[data-step="debate"] .brief-label {
  color: var(--dv-teal);
  background: rgba(72, 180, 86, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  body[data-step="debate"] .hero-search,
  body[data-step="debate"] .hero-engine.hero-scale,
  body[data-step="debate"] .hero-scale-mark .scale-beam,
  body[data-step="debate"] .scale-mark .scale-beam,
  body[data-step="debate"] .launch-tile {
    animation: none;
  }
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    min-height: 0;
    padding-bottom: 104px;
    background:
      linear-gradient(180deg, rgba(0, 110, 84, 0.98) 0 72%, rgba(226, 246, 237, 0.98) 72% 100%),
      var(--dv-teal);
  }

  body[data-step="debate"] .hero-copy h1 {
    max-width: 11ch;
  }

  body[data-step="debate"] .hero-engine.hero-scale {
    justify-self: center;
  }
}

@media (max-width: 680px) {
  body[data-step="debate"] .hero-search {
    grid-template-columns: 1fr 56px;
    min-height: 66px;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  body[data-step="debate"] .launch-tile-shell {
    margin-top: -62px;
    padding: 14px;
  }

  body[data-step="debate"] .launch-tile {
    grid-template-columns: 86px minmax(0, 1fr) 18px;
    grid-template-rows: auto;
    align-items: center;
    min-height: 118px;
  }

  body[data-step="debate"] .launch-tile-art {
    min-height: 86px;
  }

  body[data-step="debate"] .launch-tile-icon {
    width: 48px;
    height: 48px;
  }
}

/* Mobile-style NerdWallet header and illustration tile grid. */
body[data-step="debate"] .app-header {
  grid-template-columns: 48px 154px minmax(0, 1fr);
  gap: 12px;
  min-height: 74px;
  padding: 10px clamp(18px, 3vw, 42px);
  background: #ffffff;
}

body[data-step="debate"] .menu-toggle {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 84, 93, 0.11);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 84, 93, 0.06);
}

body[data-step="debate"] .menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--dv-teal);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body[data-step="debate"] .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body[data-step="debate"] .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

body[data-step="debate"] .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body[data-step="debate"] .app-header .brand-lockup {
  grid-column: 2;
  grid-row: 1;
  width: 150px;
  height: 52px;
}

body[data-step="debate"] .app-header .header-actions {
  display: none;
}

body[data-step="debate"] .app-header .portal-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: clamp(18px, 3vw, 42px);
  z-index: 60;
  display: none;
  grid-column: auto;
  grid-row: auto;
  width: min(290px, calc(100vw - 36px));
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(7, 84, 93, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(7, 84, 93, 0.16);
}

body[data-step="debate"] .app-header.is-menu-open .portal-menu {
  display: grid;
  gap: 4px;
}

body[data-step="debate"] .app-header .portal-menu button {
  display: flex;
  justify-content: flex-start;
  min-height: 42px;
  width: 100%;
  padding: 0 13px;
  border-radius: 7px;
  color: #102a2e;
  font-size: 0.88rem;
  font-weight: 820;
}

body[data-step="debate"] .app-header .portal-menu button::after {
  display: none;
}

body[data-step="debate"] .app-header .portal-menu button.is-active,
body[data-step="debate"] .app-header .portal-menu button:hover {
  color: var(--dv-teal);
  background: rgba(72, 180, 86, 0.1);
}

body[data-step="debate"] .app-header .portal-menu .portal-menu-info {
  margin-top: 6px;
  border-top: 1px solid rgba(7, 84, 93, 0.08);
}

body[data-step="debate"] .launch-tile-shell {
  width: min(1160px, calc(100vw - 48px));
  margin-top: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #e9fbf5;
  box-shadow: none;
}

@media (max-width: 680px) {
  body[data-step="debate"] .launch-tile-shell {
    margin-top: 0;
  }
}

body[data-step="debate"] .launch-tile-grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 16px;
}

body[data-step="debate"] .launch-tile {
  grid-template-rows: 82px minmax(82px, auto);
  justify-items: center;
  align-content: start;
  min-height: 186px;
  padding: 18px 16px 20px;
  border: 1px solid rgba(7, 84, 93, 0.07);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(7, 84, 93, 0.06);
}

body[data-step="debate"] .launch-tile:nth-child(-n + 4) {
  grid-column: span 5;
}

body[data-step="debate"] .launch-tile:nth-child(n + 5) {
  grid-column: span 4;
}

body[data-step="debate"] .launch-tile:hover {
  border-color: var(--dv-green);
  box-shadow: 0 18px 34px rgba(7, 84, 93, 0.12);
}

body[data-step="debate"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="goatCalcs"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="entertainment"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="lifeDecisions"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="homeServices"] .launch-tile-art {
  min-height: 74px;
  border-radius: 0;
  background: transparent;
}

body[data-step="debate"] .launch-tile-art small {
  display: none;
}

body[data-step="debate"] .launch-tile-illo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}

body[data-step="debate"] .launch-tile-illo svg {
  width: 72px;
  height: 72px;
  overflow: visible;
}

body[data-step="debate"] .launch-tile-illo .illo-teal,
body[data-step="debate"] .launch-tile-illo .illo-red,
body[data-step="debate"] .launch-tile-illo .illo-gold {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.5;
}

body[data-step="debate"] .launch-tile-illo .illo-teal {
  stroke: var(--dv-teal);
}

body[data-step="debate"] .launch-tile-illo .illo-red {
  stroke: var(--dv-red);
}

body[data-step="debate"] .launch-tile-illo .illo-gold {
  stroke: var(--dv-gold);
}

body[data-step="debate"] .launch-tile-illo .illo-teal-fill {
  fill: var(--dv-teal);
}

body[data-step="debate"] .launch-tile-illo .illo-red-fill {
  fill: var(--dv-red);
}

body[data-step="debate"] .launch-tile-illo .illo-gold-fill {
  fill: var(--dv-gold);
}

body[data-step="debate"] .launch-tile-illo .illo-green-fill {
  fill: var(--dv-green);
}

body[data-step="debate"] .launch-tile-illo .illo-mint-fill {
  fill: #dff6ec;
}

body[data-step="debate"] .launch-tile-copy {
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 0;
  text-align: center;
}

body[data-step="debate"] .launch-tile-copy strong {
  color: #050f12;
  font-size: 1.02rem;
  font-weight: 880;
  line-height: 1.08;
}

body[data-step="debate"] .launch-tile-copy span {
  color: rgba(16, 42, 46, 0.76);
  font-size: 0.86rem;
  font-weight: 540;
  line-height: 1.25;
  -webkit-line-clamp: 3;
}

body[data-step="debate"] .launch-tile i {
  top: 15px;
  right: 15px;
  color: rgba(7, 84, 93, 0.58);
}

@media (max-width: 1040px) and (min-width: 741px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-step="debate"] .launch-tile:nth-child(n) {
    grid-column: span 1;
  }
}

@media (max-width: 740px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 46px minmax(126px, 148px) minmax(0, 1fr);
    padding-right: 14px;
    padding-left: 14px;
  }

  body[data-step="debate"] .launch-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-step="debate"] .launch-tile:nth-child(n) {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-step="debate"] .launch-tile:nth-child(n) {
    grid-column: span 1;
  }
}

body[data-step="debate"] .launch-tile,
body[data-step="debate"] .brief-card {
  text-decoration: none;
}

/* Keep the logo clean: the bitmap already includes the compass mark. */
.brand-lockup::before,
.brand-lockup::after {
  display: none !important;
  animation: none !important;
}

body[data-step="debate"] .hero-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 780;
  text-decoration: none;
}

body[data-step="debate"] .hero-quick-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* NerdWallet-like human hero: photo carries the right side instead of a graphic card. */
body[data-step="debate"] .stage-copy {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 110, 84, 0.98) 0 54%, rgba(0, 110, 84, 0.82) 54%, rgba(255, 255, 255, 0) 66%),
    #e9fbf5;
}

body[data-step="debate"] .hero-copy {
  position: relative;
  z-index: 2;
}

body[data-step="debate"] .hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 52%;
  min-width: 420px;
  overflow: hidden;
  background: #e9fbf5;
}

body[data-step="debate"] .hero-photo::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 110, 84, 0.28), rgba(0, 110, 84, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

body[data-step="debate"] .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, rgba(0, 110, 84, 0.98) 0 64%, rgba(0, 110, 84, 0.16) 64%, rgba(255, 255, 255, 0) 74%),
      #e9fbf5;
  }

  body[data-step="debate"] .hero-photo {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    min-height: 260px;
    border-radius: 8px;
  }
}

/* Tighten the human hero and bring back the top-right How it works action. */
body[data-step="debate"] .app-header {
  grid-template-columns: 48px 154px minmax(0, 1fr) auto;
}

body[data-step="debate"] .app-header .header-actions {
  display: flex;
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  min-width: max-content;
}

body[data-step="debate"] .site-nav button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  color: var(--dv-teal);
  background: #f8fbf8;
}

body[data-step="debate"] .stage-copy {
  min-height: 424px;
  padding-top: clamp(30px, 3.7vw, 48px);
  padding-bottom: 68px;
  background: #007456;
  text-align: left;
}

body[data-step="debate"] .hero-copy {
  max-width: 505px;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

body[data-step="debate"] .hero-copy .kicker {
  font-size: 0.68rem;
}

body[data-step="debate"] .hero-copy h1 {
  max-width: 15.2ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(2.22rem, 3.65vw, 3.72rem);
  line-height: 0.98;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 43ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(0.96rem, 1.25vw, 1.1rem);
  line-height: 1.34;
}

body[data-step="debate"] .hero-search {
  width: min(520px, 100%);
  min-height: 66px;
  margin-top: 8px;
}

body[data-step="debate"] .hero-search input {
  min-height: 54px;
  font-size: 0.98rem;
}

body[data-step="debate"] .hero-search button[type="submit"] {
  width: 78px;
  min-width: 78px;
  height: 46px;
  min-height: 46px;
}

body[data-step="debate"] .hero-quick-links {
  justify-content: flex-start;
  margin-top: 4px;
}

body[data-step="debate"] .hero-photo {
  width: 62%;
  min-width: 520px;
}

body[data-step="debate"] .hero-photo::before {
  background:
    linear-gradient(90deg, rgba(0, 116, 86, 1) 0%, rgba(0, 116, 86, 0.92) 13%, rgba(0, 116, 86, 0.64) 30%, rgba(0, 116, 86, 0.2) 50%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

body[data-step="debate"] .hero-photo img {
  object-position: 62% center;
}

body[data-step="debate"] .launch-tile-shell {
  margin-top: 0;
}

body[data-step="debate"] .scale-caption strong {
  font-size: 0.94rem;
}

body[data-step="debate"] .trust-copy h3 {
  max-width: 16ch;
}

@media (max-width: 860px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 46px minmax(126px, 148px) minmax(0, 1fr) auto;
  }

  body[data-step="debate"] .app-header .header-actions {
    grid-column: 4;
  }

  body[data-step="debate"] .site-nav button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.62rem;
  }

  body[data-step="debate"] .stage-copy {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 34px;
    background: #007456;
  }

  body[data-step="debate"] .hero-photo {
    width: 100%;
    min-width: 0;
    min-height: 220px;
  }
}

/* DecisionVision brand palette correction: keep the NerdWallet structure, not the green palette. */
body[data-step="debate"] {
  --dv-green: var(--dv-gold);
}

body[data-step="debate"] .app-shell {
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 74px, var(--cream) 74px 100%),
    var(--cream);
}

body[data-step="debate"] .app-header .portal-menu button.is-active::after,
body[data-step="debate"] .app-header .portal-menu button:hover::after {
  background: var(--dv-gold);
}

body[data-step="debate"] .site-nav button {
  border-color: rgba(7, 84, 93, 0.16);
  color: var(--dv-teal);
  background: #fffaf0;
}

body[data-step="debate"] .site-nav button:hover {
  border-color: rgba(177, 42, 51, 0.3);
  color: var(--red);
  background: #fff6df;
}

body[data-step="debate"] .stage-copy {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 1) 0%, rgba(7, 84, 93, 0.98) 42%, rgba(126, 29, 39, 0.12) 72%, rgba(255, 255, 255, 0) 100%),
    var(--dv-teal);
}

body[data-step="debate"] .hero-copy .kicker {
  color: rgba(255, 250, 240, 0.84);
}

body[data-step="debate"] .hero-copy h1 span {
  color: var(--dv-gold);
}

body[data-step="debate"] .stage-subtitle {
  color: rgba(255, 250, 240, 0.9);
}

body[data-step="debate"] .hero-search {
  background: #fffaf0;
  box-shadow: 0 20px 48px rgba(16, 38, 45, 0.18);
}

body[data-step="debate"] .hero-search input {
  color: var(--ink);
}

body[data-step="debate"] .hero-search button[type="submit"] {
  background: var(--red);
  box-shadow: inset 0 -2px 0 rgba(16, 42, 46, 0.14);
}

body[data-step="debate"] .hero-search button[type="submit"]:hover {
  background: var(--red-dark);
}

body[data-step="debate"] .hero-quick-links a,
body[data-step="debate"] .hero-quick-links button {
  border-color: rgba(198, 162, 75, 0.55);
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
}

body[data-step="debate"] .hero-quick-links a:hover,
body[data-step="debate"] .hero-quick-links button:hover {
  border-color: rgba(198, 162, 75, 0.82);
  background: rgba(198, 162, 75, 0.16);
}

body[data-step="debate"] .hero-photo {
  width: 78%;
  min-width: 690px;
  background: var(--cream);
}

body[data-step="debate"] .hero-photo::before {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 1) 0%, rgba(7, 84, 93, 0.96) 19%, rgba(7, 84, 93, 0.76) 34%, rgba(7, 84, 93, 0.48) 47%, rgba(126, 29, 39, 0.18) 62%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0));
}

body[data-step="debate"] .hero-photo img {
  object-position: 68% center;
}

body[data-step="debate"] .launch-tile-shell {
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 24px 64px rgba(16, 38, 45, 0.12);
}

body[data-step="debate"] .launch-tile:hover {
  border-color: rgba(177, 42, 51, 0.32);
}

body[data-step="debate"] .launch-tile-illo .illo-green-fill,
body[data-step="debate"] .launch-tile-illo .illo-mint-fill {
  fill: var(--dv-gold);
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    background:
      linear-gradient(180deg, rgba(7, 84, 93, 1) 0%, rgba(7, 84, 93, 0.96) 58%, rgba(126, 29, 39, 0.14) 75%, rgba(255, 255, 255, 0) 100%),
      var(--dv-teal);
  }
}

/* Keep the first screen efficient: hero first, two tidy rows of category tiles immediately after. */
body[data-step="debate"] .stage-copy {
  min-height: 368px;
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: 42px;
}

body[data-step="debate"] .hero-copy {
  gap: 8px;
}

body[data-step="debate"] .hero-copy h1 {
  font-size: clamp(2.05rem, 3.25vw, 3.34rem);
}

body[data-step="debate"] .stage-subtitle {
  max-width: 42ch;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
}

body[data-step="debate"] .hero-search {
  min-height: 60px;
  margin-top: 6px;
}

body[data-step="debate"] .hero-search input {
  min-height: 50px;
}

body[data-step="debate"] .hero-search button[type="submit"] {
  height: 42px;
  min-height: 42px;
}

body[data-step="debate"] .launch-tile-shell {
  padding: 20px;
}

body[data-step="debate"] .launch-tile-grid {
  gap: 14px;
}

body[data-step="debate"] .launch-tile {
  grid-template-rows: 86px minmax(62px, auto);
  min-height: 172px;
  padding: 13px;
}

body[data-step="debate"] .launch-tile-copy {
  gap: 5px;
}

body[data-step="debate"] .launch-tile-copy strong {
  font-size: clamp(0.94rem, 1.16vw, 1.05rem);
}

body[data-step="debate"] .launch-tile-copy span {
  font-size: 0.86rem;
  line-height: 1.22;
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    padding-top: 24px;
    padding-bottom: 28px;
  }
}

body[data-step="debate"] .stage-copy {
  min-height: 324px;
  padding-top: clamp(20px, 2.4vw, 30px);
  padding-bottom: 28px;
}

body[data-step="debate"] .hero-copy h1 {
  font-size: clamp(1.96rem, 3vw, 3.08rem);
}

body[data-step="debate"] .hero-copy .kicker {
  font-size: 0.64rem;
}

body[data-step="debate"] .stage-subtitle {
  font-size: clamp(0.88rem, 1vw, 0.96rem);
}

body[data-step="debate"] .hero-search {
  min-height: 56px;
}

body[data-step="debate"] .hero-search input {
  min-height: 46px;
}

body[data-step="debate"] .hero-search button[type="submit"] {
  width: 72px;
  min-width: 72px;
  height: 38px;
  min-height: 38px;
}

body[data-step="debate"] .hero-quick-links a,
body[data-step="debate"] .hero-quick-links button {
  min-height: 28px;
}

body[data-step="debate"] .launch-tile-shell {
  padding: 16px;
}

body[data-step="debate"] .launch-tile {
  grid-template-rows: 72px minmax(0, 1fr);
  height: 174px;
  min-height: 174px;
  overflow: hidden;
}

body[data-step="debate"] .launch-tile-art {
  min-height: 0;
}

body[data-step="debate"] .launch-tile-copy span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Typography refinement: calmer, more editorial, less chunky. */
body {
  font-family:
    "Aptos", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
}

body *,
body *::before,
body *::after {
  letter-spacing: 0;
}

body[data-step="debate"] .hero-copy h1,
.stage-copy h1,
.section-heading h2,
.portal-board-head h2,
.decision-briefs-heading h2,
.trust-copy h3,
.info-panel h2,
.results-headline h1,
#factorHeadline,
#rankHeadline {
  font-weight: 720;
}

body[data-step="debate"] .hero-copy h1 {
  font-weight: 730;
  line-height: 1.03;
}

body[data-step="debate"] .hero-copy h1 span {
  font-weight: 760;
}

.kicker,
body[data-step="debate"] .hero-copy .kicker,
.site-nav button,
.portal-menu button,
.menu-toggle,
.hero-quick-links a,
.hero-quick-links button,
.footer-nav button {
  font-weight: 620;
}

body[data-step="debate"] .hero-copy .kicker {
  text-transform: none;
}

body[data-step="debate"] .stage-subtitle,
.stage-subtitle,
.section-heading p,
.decision-briefs-heading span,
.trust-copy p,
.poster-label span,
.launch-tile-copy span,
.brief-card span,
.info-copy,
.guide-copy {
  font-weight: 400;
}

body[data-step="debate"] .hero-search input {
  font-weight: 420;
}

body[data-step="debate"] .hero-search button[type="submit"],
.next-button,
.ghost-button,
.trust-feedback,
.card-action,
.brief-card em {
  font-weight: 640;
}

body[data-step="debate"] .launch-tile-copy strong,
.poster-label strong,
.brief-card strong,
.hot-card strong,
.value-panel strong,
.trust-stats strong,
.scale-caption strong {
  font-weight: 690;
}

body[data-step="debate"] .launch-tile-copy strong {
  font-size: clamp(0.92rem, 1.08vw, 1rem);
}

body[data-step="debate"] .launch-tile-copy span {
  color: rgba(16, 42, 46, 0.72);
}

.poster-label small,
.launch-tile-art small,
.hot-card em,
.trust-stats em {
  font-weight: 500;
}

body[data-step="debate"] .hero-copy h1 {
  font-weight: 680;
}

body[data-step="debate"] .hero-copy h1 span {
  font-weight: 710;
}

body[data-step="debate"] .hero-copy .kicker,
body[data-step="debate"] .launch-tile-art small,
body[data-step="debate"] .site-nav button,
body[data-step="debate"] .hero-quick-links a,
body[data-step="debate"] .hero-quick-links button {
  letter-spacing: 0;
}

body[data-step="debate"] .launch-tile .launch-tile-copy strong {
  font-weight: 650;
}

body[data-step="debate"] .launch-tile .launch-tile-copy span {
  font-weight: 400;
}

body[data-step="debate"] .hero-quick-links a,
body[data-step="debate"] .hero-quick-links button {
  font-weight: 560;
}

/* Rich category tile illustrations. */
body[data-step="debate"] .launch-tile {
  grid-template-rows: 84px minmax(0, 1fr);
}

body[data-step="debate"] .launch-tile-illo {
  width: 88px;
  height: 84px;
}

body[data-step="debate"] .launch-tile-illo svg.launch-illo-svg {
  width: 88px;
  height: 88px;
  overflow: visible;
}

body[data-step="debate"] .launch-illo-svg * {
  transform-box: fill-box;
  transform-origin: center;
}

body[data-step="debate"] .illo-shadow {
  fill: rgba(16, 38, 45, 0.13);
}

body[data-step="debate"] .illo-blob {
  fill: #edf8f4;
  stroke: rgba(7, 84, 93, 0.08);
  stroke-width: 1;
}

body[data-step="debate"] .illo-paper,
body[data-step="debate"] .illo-screen {
  fill: #fffaf0;
}

body[data-step="debate"] .illo-map,
body[data-step="debate"] .illo-cup,
body[data-step="debate"] .illo-coin,
body[data-step="debate"] .illo-leaf,
body[data-step="debate"] .illo-tassel,
body[data-step="debate"] .illo-ballot {
  fill: var(--dv-gold);
}

body[data-step="debate"] .illo-house,
body[data-step="debate"] .illo-phone,
body[data-step="debate"] .illo-briefcase,
body[data-step="debate"] .illo-card,
body[data-step="debate"] .illo-cap,
body[data-step="debate"] .illo-base,
body[data-step="debate"] .illo-stem {
  fill: var(--dv-teal);
}

body[data-step="debate"] .illo-house-roof,
body[data-step="debate"] .illo-roof,
body[data-step="debate"] .illo-mic,
body[data-step="debate"] .illo-ball,
body[data-step="debate"] .illo-chip,
body[data-step="debate"] .illo-red-dot {
  fill: var(--dv-red);
}

body[data-step="debate"] .illo-door,
body[data-step="debate"] .illo-button,
body[data-step="debate"] .illo-paw {
  fill: #fffaf0;
}

body[data-step="debate"] .illo-film {
  fill: rgba(198, 162, 75, 0.92);
}

body[data-step="debate"] .illo-cap-band,
body[data-step="debate"] .illo-briefcase-band,
body[data-step="debate"] .illo-handle,
body[data-step="debate"] .illo-card-band,
body[data-step="debate"] .illo-card-lines,
body[data-step="debate"] .illo-dollar,
body[data-step="debate"] .illo-mic-line,
body[data-step="debate"] .illo-film-hole,
body[data-step="debate"] .illo-cup-line,
body[data-step="debate"] .illo-ball-lines,
body[data-step="debate"] .illo-chip-lines,
body[data-step="debate"] .illo-spark,
body[data-step="debate"] .illo-path,
body[data-step="debate"] .illo-arrow,
body[data-step="debate"] .illo-stand,
body[data-step="debate"] .illo-stem-line,
body[data-step="debate"] .illo-tool,
body[data-step="debate"] .illo-scale-post,
body[data-step="debate"] .illo-scale-hangers,
body[data-step="debate"] .illo-check {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

body[data-step="debate"] .illo-cap-band,
body[data-step="debate"] .illo-mic-line,
body[data-step="debate"] .illo-card-band,
body[data-step="debate"] .illo-card-lines,
body[data-step="debate"] .illo-dollar,
body[data-step="debate"] .illo-film-hole,
body[data-step="debate"] .illo-ball-lines,
body[data-step="debate"] .illo-check {
  stroke: #fffaf0;
}

body[data-step="debate"] .illo-briefcase-band,
body[data-step="debate"] .illo-handle,
body[data-step="debate"] .illo-path,
body[data-step="debate"] .illo-arrow,
body[data-step="debate"] .illo-chip-lines,
body[data-step="debate"] .illo-spark,
body[data-step="debate"] .illo-stem-line,
body[data-step="debate"] .illo-tool {
  stroke: var(--dv-gold);
}

body[data-step="debate"] .illo-stand,
body[data-step="debate"] .illo-scale-post,
body[data-step="debate"] .illo-scale-hangers {
  stroke: var(--dv-teal);
}

body[data-step="debate"] .illo-pan {
  fill: #f2dfac;
}

body[data-step="debate"] .illo-pin {
  fill: var(--dv-red);
}

body[data-step="debate"] .illo-flag-main {
  fill: var(--dv-teal);
}

body[data-step="debate"] .illo-flag-second {
  fill: var(--dv-red);
}

body[data-step="debate"] .illo-star {
  fill: #fffaf0;
}

body[data-step="debate"] .illo-flag-pole,
body[data-step="debate"] .illo-flag-base {
  fill: none;
  stroke: var(--dv-teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

body[data-step="debate"] .illo-money .illo-card {
  fill: #0f6870;
}

body[data-step="debate"] .illo-tech .illo-phone {
  fill: #fffaf0;
  stroke: var(--dv-teal);
  stroke-width: 6;
}

body[data-step="debate"] .illo-tech .illo-screen {
  fill: #e9fbf5;
}

body[data-step="debate"] .illo-lifestyle .illo-map {
  fill: rgba(198, 162, 75, 0.92);
}

body[data-step="debate"] .illo-lifestyle .illo-paw.motion-pop {
  fill: var(--dv-red);
}

body[data-step="debate"] .launch-tile:hover .motion-float,
body[data-step="debate"] .launch-tile:focus-visible .motion-float {
  animation: dv-illo-float 1.5s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-pop,
body[data-step="debate"] .launch-tile:focus-visible .motion-pop {
  animation: dv-illo-pop 820ms ease both;
}

body[data-step="debate"] .launch-tile:hover .motion-pulse,
body[data-step="debate"] .launch-tile:focus-visible .motion-pulse {
  animation: dv-illo-pulse 1.25s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-spark,
body[data-step="debate"] .launch-tile:focus-visible .motion-spark {
  animation: dv-illo-spark 1.1s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-rise,
body[data-step="debate"] .launch-tile:focus-visible .motion-rise {
  animation: dv-illo-rise 1.45s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-tilt,
body[data-step="debate"] .launch-tile:focus-visible .motion-tilt {
  animation: dv-illo-tilt 1.4s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-spin,
body[data-step="debate"] .launch-tile:focus-visible .motion-spin {
  animation: dv-illo-spin 1.35s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-sway,
body[data-step="debate"] .launch-tile:focus-visible .motion-sway {
  animation: dv-illo-sway 1.55s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-tilt-left,
body[data-step="debate"] .launch-tile:focus-visible .motion-tilt-left {
  animation: dv-illo-pan-left 1.35s ease-in-out infinite;
}

body[data-step="debate"] .launch-tile:hover .motion-tilt-right,
body[data-step="debate"] .launch-tile:focus-visible .motion-tilt-right {
  animation: dv-illo-pan-right 1.35s ease-in-out infinite;
}

body[data-step="debate"] .delay-one {
  animation-delay: 120ms;
}

@keyframes dv-illo-float {
  50% { transform: translateY(-4px); }
}

@keyframes dv-illo-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes dv-illo-pulse {
  50% { transform: scale(1.08); opacity: 0.82; }
}

@keyframes dv-illo-spark {
  50% { transform: scale(1.14) rotate(10deg); opacity: 0.68; }
}

@keyframes dv-illo-rise {
  50% { transform: translate(3px, -3px); }
}

@keyframes dv-illo-tilt {
  50% { transform: rotate(-5deg) translateY(-2px); }
}

@keyframes dv-illo-spin {
  50% { transform: rotate(12deg); }
}

@keyframes dv-illo-sway {
  50% { transform: rotate(7deg) translate(2px, -2px); }
}

@keyframes dv-illo-pan-left {
  50% { transform: rotate(-3deg) translateY(1px); }
}

@keyframes dv-illo-pan-right {
  50% { transform: rotate(3deg) translateY(-1px); }
}

/* Keep richer icons readable inside the compact above-the-fold cards. */
body[data-step="debate"] .launch-tile {
  grid-template-rows: 70px minmax(0, 1fr);
  gap: 8px;
}

body[data-step="debate"] .launch-tile-illo {
  width: 76px;
  height: 70px;
}

body[data-step="debate"] .launch-tile-illo svg.launch-illo-svg {
  width: 76px;
  height: 76px;
}

body[data-step="debate"] .launch-tile-copy {
  gap: 4px;
}

body[data-step="debate"] .launch-tile .launch-tile-copy strong {
  font-size: 0.95rem;
  line-height: 1.05;
}

body[data-step="debate"] .launch-tile .launch-tile-copy span {
  font-size: 0.82rem;
  line-height: 1.16;
  -webkit-line-clamp: 3;
}

/* Dimensional Popular Boards carousel. */
body[data-step="debate"] .hot-section-primary {
  overflow: hidden;
  padding: 26px 0 22px;
  border-color: rgba(7, 84, 93, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(198, 162, 75, 0.1), transparent 38%);
  box-shadow: 0 20px 50px rgba(16, 38, 45, 0.08);
}

body[data-step="debate"] .hot-section-primary .carousel-heading {
  padding: 0 28px 6px;
}

body[data-step="debate"] .hot-section-primary .carousel-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 680;
}

body[data-step="debate"] .hot-section-primary .carousel-heading p {
  font-size: 0.92rem;
  font-weight: 400;
}

body[data-step="debate"] .hot-carousel {
  --spotlight-card-width: min(620px, 70vw);
  overflow: hidden;
  padding-top: 4px;
  perspective: 1200px;
}

body[data-step="debate"] .hot-carousel::before,
body[data-step="debate"] .hot-carousel::after {
  bottom: 48px;
  z-index: 6;
  width: clamp(46px, 8vw, 110px);
}

body[data-step="debate"] .hot-carousel::before {
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0));
}

body[data-step="debate"] .hot-carousel::after {
  background: linear-gradient(270deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0));
}

body[data-step="debate"] .hot-rail {
  display: flex;
  gap: 22px;
  grid-auto-columns: unset;
  padding: 18px max(24px, calc((100% - var(--spotlight-card-width)) / 2)) 26px;
  overflow-x: auto;
  scroll-padding-inline: max(24px, calc((100% - var(--spotlight-card-width)) / 2));
  scroll-snap-type: x mandatory;
  transform-style: preserve-3d;
}

body[data-step="debate"] .hot-card {
  position: relative;
  display: grid;
  flex: 0 0 var(--spotlight-card-width);
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 0;
  min-height: 258px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  opacity: 0.46;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 38, 45, 0.1);
  filter: saturate(0.78);
  scroll-snap-align: center;
  transform:
    translateY(12px)
    scale(0.88)
    rotateY(calc(var(--carousel-offset, 0) * -7deg));
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 360ms cubic-bezier(0.2, 0.72, 0.22, 1),
    box-shadow 260ms ease;
  transform-origin: center;
}

body[data-step="debate"] .hot-card.is-before {
  transform-origin: right center;
}

body[data-step="debate"] .hot-card.is-after {
  transform-origin: left center;
}

body[data-step="debate"] .hot-card.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  box-shadow: 0 28px 70px rgba(16, 38, 45, 0.16);
  transform: translateY(0) scale(1) rotateY(0deg);
}

body[data-step="debate"] .hot-card:not(:disabled):hover {
  transform:
    translateY(8px)
    scale(0.9)
    rotateY(calc(var(--carousel-offset, 0) * -5deg));
}

body[data-step="debate"] .hot-card.is-active:not(:disabled):hover {
  transform: translateY(-2px) scale(1) rotateY(0deg);
}

body[data-step="debate"] .hot-art {
  min-height: 100%;
  border-radius: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.52), transparent 26%),
    linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(126, 29, 39, 0.78));
}

body[data-step="debate"] .hot-art .poster-duel {
  height: 100%;
  min-height: 220px;
  padding: 16px;
}

body[data-step="debate"] .hot-art .player-token,
body[data-step="debate"] .hot-art .brand-token {
  min-height: 150px;
  border-radius: 12px;
}

body[data-step="debate"] .hot-card > span:last-child {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  text-align: left;
}

body[data-step="debate"] .hot-card strong {
  max-width: 15ch;
  color: #102a2e;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 680;
  line-height: 1.06;
}

body[data-step="debate"] .hot-card em {
  max-width: 34ch;
  color: rgba(16, 42, 46, 0.66);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.42;
}

body[data-step="debate"] .hot-card .card-action {
  width: fit-content;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 999px;
  color: var(--dv-teal);
  background: #fffaf0;
  font-weight: 560;
}

body[data-step="debate"] .carousel-button {
  top: calc(50% - 14px);
  width: 42px;
  height: 42px;
  border-color: rgba(7, 84, 93, 0.12);
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.14);
}

body[data-step="debate"] .carousel-prev {
  left: 18px;
}

body[data-step="debate"] .carousel-next {
  right: 18px;
}

body[data-step="debate"] .carousel-progress {
  display: none;
}

body[data-step="debate"] .carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 28px;
}

body[data-step="debate"] .carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(7, 84, 93, 0.34);
  border-radius: 999px;
  background: transparent;
  transition:
    background 180ms ease,
    transform 180ms ease,
    width 180ms ease;
}

body[data-step="debate"] .carousel-dots button.is-active {
  width: 26px;
  background: var(--dv-teal);
  transform: scale(1.02);
}

@media (max-width: 760px) {
  body[data-step="debate"] .hot-carousel {
    --spotlight-card-width: min(86vw, 520px);
  }

  body[data-step="debate"] .hot-card {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  body[data-step="debate"] .hot-art .poster-duel {
    min-height: 170px;
  }

  body[data-step="debate"] .hot-art .player-token,
  body[data-step="debate"] .hot-art .brand-token {
    min-height: 112px;
  }
}

/* Higher-specificity correction for older carousel card sizing rules. */
body[data-step="debate"] .hot-section-primary .hot-card {
  display: grid;
  flex: 0 0 var(--spotlight-card-width);
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  height: 258px;
  min-height: 258px;
  padding: 0;
}

body[data-step="debate"] .hot-section-primary .hot-art {
  display: grid;
  min-height: 100%;
}

body[data-step="debate"] .hot-section-primary .hot-card > span:not(.hot-art) {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 0;
  padding: 24px;
}

body[data-step="debate"] .hot-section-primary .hot-art .poster-duel {
  min-height: 100%;
}

body[data-step="debate"] .hot-section-primary .hot-art .player-token,
body[data-step="debate"] .hot-section-primary .hot-art .brand-token {
  min-height: 150px;
}

body[data-step="debate"] .hot-section-primary .hot-card strong {
  max-width: 15ch;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 680;
  line-height: 1.06;
}

body[data-step="debate"] .hot-section-primary .hot-card em {
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.42;
}

@media (max-width: 760px) {
  body[data-step="debate"] .hot-section-primary .hot-card {
    grid-template-columns: 1fr;
    height: 360px;
    min-height: 360px;
  }

  body[data-step="debate"] .hot-section-primary .hot-art {
    min-height: 170px;
  }
}

/* Primetime simplification pass: fewer containers, stronger imagery, seven top-level lanes. */
body[data-step="debate"] {
  --dv-card-radius: 14px;
}

body[data-step="debate"] .value-panel,
body[data-step="debate"] .portal-board-head,
body[data-step="debate"] .hero-quick-links {
  display: none !important;
}

body[data-step="debate"] .stage[data-stage="debate"] {
  gap: 0;
}

body[data-step="debate"] .stage-copy {
  min-height: 308px !important;
  max-height: 330px;
}

body[data-step="debate"] .hero-copy {
  max-width: 610px;
  padding-block: 34px !important;
}

body[data-step="debate"] .hero-copy h1 {
  max-width: 13ch;
  font-weight: 620 !important;
  line-height: 0.98;
  letter-spacing: 0;
}

body[data-step="debate"] .stage-subtitle {
  max-width: 36ch;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 410;
}

body[data-step="debate"] .hero-search {
  max-width: 560px;
}

body[data-step="debate"] .hero-photo img {
  object-position: 62% 47%;
}

body[data-step="debate"] .featured-portals {
  margin-top: 0;
  padding-top: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-step="debate"] .launch-tile-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 44px));
  margin: -18px auto 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-step="debate"] .launch-tile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

body[data-step="debate"] .launch-tile {
  grid-column: span 3;
  min-height: 154px;
  padding: 16px 15px 14px;
  border: 1px solid rgba(7, 84, 93, 0.1);
  border-radius: var(--dv-card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(16, 38, 45, 0.08);
}

body[data-step="debate"] .launch-tile:nth-child(-n + 4) {
  grid-column: span 3;
}

body[data-step="debate"] .launch-tile:nth-child(n + 5) {
  grid-column: span 4;
}

body[data-step="debate"] .launch-tile .launch-tile-copy strong {
  font-weight: 650;
}

body[data-step="debate"] .launch-tile .launch-tile-copy span {
  font-weight: 400;
}

body[data-step="debate"] .illo-warranty-shield {
  fill: #0f6870;
}

body[data-step="debate"] .illo-toolbox {
  fill: #7e1d27;
}

body[data-step="debate"] .illo-warranty-check,
body[data-step="debate"] .illo-toolbox-lid,
body[data-step="debate"] .illo-wrench {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

body[data-step="debate"] .illo-warranty-check,
body[data-step="debate"] .illo-toolbox-lid {
  stroke: #fffaf0;
}

body[data-step="debate"] .illo-wrench {
  stroke: var(--dv-gold);
}

body[data-step="debate"] .hot-section-primary {
  max-width: 100%;
  margin-top: 14px;
  padding: 18px 0 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(255, 250, 240, 0.82) 24%, rgba(255, 250, 240, 0.76)) !important;
  box-shadow: none !important;
}

body[data-step="debate"] .hot-section-primary .carousel-heading {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 4px !important;
}

body[data-step="debate"] .hot-carousel {
  --spotlight-card-width: min(760px, 82vw);
}

body[data-step="debate"] .hot-rail {
  gap: 26px;
  padding-top: 18px;
}

body[data-step="debate"] .hot-card,
body[data-step="debate"] .hot-section-primary .hot-card {
  grid-template-columns: minmax(0, 1.75fr) minmax(190px, 0.72fr) !important;
  height: 300px !important;
  min-height: 300px !important;
  border: 1px solid rgba(7, 84, 93, 0.09);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(16, 38, 45, 0.1);
}

body[data-step="debate"] .hot-card.is-active {
  box-shadow: 0 30px 72px rgba(16, 38, 45, 0.17);
}

body[data-step="debate"] .hot-art,
body[data-step="debate"] .hot-section-primary .hot-art {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #102a2e;
}

body[data-step="debate"] .hot-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 42, 46, 0), rgba(16, 42, 46, 0.18)),
    radial-gradient(circle at 82% 20%, rgba(255, 250, 240, 0.22), transparent 34%);
  pointer-events: none;
}

body[data-step="debate"] .hot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

body[data-step="debate"] .hot-card.is-active .hot-image {
  animation: dv-photo-drift 9s ease-in-out infinite alternate;
}

body[data-step="debate"] .hot-card > span:not(.hot-art),
body[data-step="debate"] .hot-section-primary .hot-card > span:not(.hot-art) {
  gap: 13px;
  padding: 22px 22px 22px 24px !important;
}

body[data-step="debate"] .hot-card strong,
body[data-step="debate"] .hot-section-primary .hot-card strong {
  max-width: 14ch;
  font-size: clamp(1.22rem, 1.55vw, 1.56rem);
  font-weight: 650;
  line-height: 1.06;
}

body[data-step="debate"] .hot-card em,
body[data-step="debate"] .hot-section-primary .hot-card em {
  max-width: 25ch;
  color: rgba(16, 42, 46, 0.68);
  font-size: 0.91rem;
  font-weight: 400;
  line-height: 1.42;
}

body[data-step="debate"] .category-section:not(.featured-portals) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-step="debate"] .trust-band {
  border: 0 !important;
  background:
    linear-gradient(135deg, rgba(234, 249, 243, 0.7), rgba(255, 250, 240, 0.94)) !important;
  box-shadow: none !important;
}

@keyframes dv-photo-drift {
  0% {
    transform: scale(1.02) translateX(-1%);
  }
  100% {
    transform: scale(1.07) translateX(1.5%);
  }
}

@media (max-width: 700px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  body[data-step="debate"] .stage-copy {
    max-height: none;
    min-height: 420px !important;
  }

  body[data-step="debate"] .launch-tile-shell {
    width: min(calc(100% - 28px), 520px);
    margin-top: -10px !important;
  }

  body[data-step="debate"] .hot-carousel {
    --spotlight-card-width: min(88vw, 520px);
  }

  body[data-step="debate"] .hot-card,
  body[data-step="debate"] .hot-section-primary .hot-card {
    grid-template-columns: 1fr !important;
    height: 392px !important;
    min-height: 392px !important;
  }

  body[data-step="debate"] .hot-art,
  body[data-step="debate"] .hot-section-primary .hot-art {
    min-height: 238px;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-step="debate"] .hot-card.is-active .hot-image {
    animation: none;
  }
}

/* Whole-site primetime pass: one calmer shell across home, guides, and calculators. */
:root {
  --dv-green: #48b456;
  --dv-teal: #07545d;
  --dv-deep: #063f3f;
  --dv-red: #7e1d27;
  --dv-gold: #c6a24b;
  --dv-mint: #e8f8f1;
  --dv-paper: #ffffff;
  --dv-cream: #fbfaf6;
  --dv-ink: #102a2e;
  --dv-muted: #667276;
  --dv-line: rgba(16, 42, 46, 0.1);
  --dv-surface: rgba(255, 255, 255, 0.94);
  --dv-warm: #fffaf0;
}

body {
  color: var(--dv-ink);
  background:
    radial-gradient(circle at 10% -8%, rgba(7, 84, 93, 0.08), transparent 30%),
    radial-gradient(circle at 94% 3%, rgba(126, 29, 39, 0.055), transparent 30%),
    linear-gradient(180deg, #fbf8ef 0%, #f7f4ed 48%, #fbfaf6 100%);
  font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

body *,
body *::before,
body *::after {
  letter-spacing: 0;
}

.app-header,
body[data-step="debate"] .app-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 52px minmax(146px, 184px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 9px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(16, 42, 46, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.menu-toggle,
body[data-step="debate"] .menu-toggle {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 42, 46, 0.06);
}

.menu-toggle span,
body[data-step="debate"] .menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--dv-teal);
}

.brand-lockup,
body[data-step="debate"] .brand-lockup,
body[data-step="debate"] .app-header .brand-lockup {
  grid-column: 2;
  width: clamp(146px, 15vw, 184px);
  height: 54px;
}

.brand-lockup::before,
.brand-lockup::after {
  display: none !important;
}

.header-actions,
body[data-step="debate"] .header-actions,
body[data-step="debate"] .app-header .header-actions {
  grid-column: 4;
  justify-self: end;
}

.site-nav button,
body[data-step="debate"] .site-nav button {
  min-height: 42px;
  border: 1px solid rgba(16, 42, 46, 0.1);
  border-radius: 10px;
  padding: 0 18px;
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.045);
  font-size: 0.76rem;
  font-weight: 680;
  text-transform: uppercase;
}

.portal-menu,
body[data-step="debate"] .portal-menu,
body[data-step="debate"] .app-header .portal-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: clamp(18px, 3vw, 42px);
  z-index: 90;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  width: min(330px, calc(100vw - 36px));
  max-width: none;
  max-height: min(520px, calc(100vh - 96px));
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(16, 42, 46, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(16, 42, 46, 0.16);
}

.app-header.is-menu-open .portal-menu,
body[data-step="debate"] .app-header.is-menu-open .portal-menu {
  display: grid;
}

.portal-menu button,
body[data-step="debate"] .portal-menu button,
body[data-step="debate"] .app-header .portal-menu button {
  justify-content: flex-start;
  min-height: 40px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--dv-ink);
  background: transparent;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 620;
  text-align: left;
  text-transform: none;
}

.portal-menu button::after,
body[data-step="debate"] .app-header .portal-menu button::after {
  display: none;
}

.portal-menu button:hover,
.portal-menu button.is-active,
body[data-step="debate"] .portal-menu button:hover,
body[data-step="debate"] .portal-menu button.is-active {
  color: var(--dv-teal);
  background: rgba(7, 84, 93, 0.08);
}

.journey-rail {
  display: none;
}

body[data-step="debate"] .stage-copy {
  min-height: 300px !important;
  max-height: 318px;
}

body[data-step="debate"] .hero-copy h1 {
  font-weight: 630 !important;
}

body[data-step="debate"] .hero-copy .stage-subtitle {
  color: rgba(255, 250, 240, 0.92);
}

body[data-step="debate"] .stage-subtitle,
[data-stage="factors"] .stage-subtitle,
[data-stage="rank"] .stage-subtitle,
.winner-copy p,
.result-card span {
  color: rgba(16, 42, 46, 0.68);
  font-weight: 400;
}

body[data-step="debate"] .launch-tile,
body[data-step="debate"] .feature-card,
body[data-step="debate"] .poster-card,
.factor-zone,
.rank-stack,
.order-lane,
.winner-spotlight,
.result-card {
  border-color: rgba(16, 42, 46, 0.085);
  background-color: rgba(255, 255, 255, 0.94);
}

body[data-step="debate"] .launch-tile {
  box-shadow: 0 12px 26px rgba(16, 42, 46, 0.055);
}

body[data-step="debate"] .launch-tile:hover {
  box-shadow: 0 18px 38px rgba(16, 42, 46, 0.1);
}

body[data-step="debate"] .category-section:not(.featured-portals) {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 42px);
}

body[data-step="debate"] .category-section:not(.featured-portals) .section-heading {
  align-items: end;
  margin-bottom: 18px;
}

body[data-step="debate"] .category-section:not(.featured-portals) .section-heading h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
  font-weight: 620;
}

body[data-step="debate"] .category-section:not(.featured-portals) .section-heading p {
  max-width: 56ch;
  color: rgba(16, 42, 46, 0.62);
  font-weight: 400;
}

body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body[data-step="debate"] .feature-card {
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(16, 42, 46, 0.055);
}

body[data-step="debate"] .feature-copy strong,
body[data-step="debate"] .poster-label strong,
.factor-token h3,
.order-copy strong,
.result-card strong {
  font-weight: 620;
}

.stage,
[data-stage="factors"],
[data-stage="rank"],
[data-stage="results"] {
  padding-inline: clamp(22px, 5vw, 72px);
}

[data-stage="factors"] .stage-copy h1,
[data-stage="rank"] .stage-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 4.6vw, 4.35rem);
  font-weight: 610;
  line-height: 1;
}

.factor-board {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.factor-zone {
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(16, 42, 46, 0.055);
}

.zone-label span {
  color: rgba(126, 29, 39, 0.86);
  font-weight: 650;
}

.zone-label strong {
  font-weight: 610;
}

.factor-token {
  border-radius: 12px;
  box-shadow: none;
}

.factor-token:hover {
  box-shadow: 0 12px 24px rgba(16, 42, 46, 0.075);
}

.factor-icon {
  font-weight: 650;
}

.mini-action {
  color: var(--dv-red);
  font-weight: 700;
}

.next-button {
  background: linear-gradient(135deg, #7e1d27, #07545d);
}

.next-button,
.ghost-button {
  min-height: 50px;
  border-radius: 12px;
  font-weight: 650;
}

.winner-spotlight {
  border-color: rgba(198, 162, 75, 0.32);
  border-radius: 18px;
}

.winner-name {
  font-weight: 620;
  line-height: 0.98;
}

.winner-medal {
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.72), 0 16px 36px rgba(16, 42, 46, 0.14);
}

.results-list {
  gap: 14px;
}

.result-card {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 42, 46, 0.04);
}

.result-card.is-winner {
  border-color: rgba(126, 29, 39, 0.28);
}

.score-value {
  color: var(--dv-teal);
  font-weight: 650;
}

.info-panel,
.media-panel {
  backdrop-filter: blur(12px);
}

.info-card,
.media-card {
  border-radius: 18px;
  box-shadow: 0 26px 72px rgba(16, 42, 46, 0.2);
}

@media (max-width: 760px) {
  .result-card.is-ai-model-result {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 11px;
    min-height: 80px;
    padding: 11px;
  }

  .result-card.is-ai-model-result .result-rank.ai-model-avatar {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .result-card.is-ai-model-result .result-rank.ai-model-avatar::before {
    inset: 7px;
    border-radius: 11px;
  }

  .result-card.is-ai-model-result .ai-model-picture {
    width: 36px;
    height: 36px;
  }

  .result-card.is-ai-model-result .ai-model-rank {
    min-width: 23px;
    height: 23px;
    font-size: 0.64rem;
  }

  .app-header,
  body[data-step="debate"] .app-header {
    grid-template-columns: 48px minmax(132px, 158px) minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 12px;
  }

  .brand-lockup,
  body[data-step="debate"] .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    width: 150px;
    height: 50px;
  }

  .site-nav button,
  body[data-step="debate"] .site-nav button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.68rem;
  }

  .stage,
  [data-stage="factors"],
  [data-stage="rank"],
  [data-stage="results"] {
    padding-inline: 14px;
  }

  .factor-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-header,
  body[data-step="debate"] .app-header {
    grid-template-columns: 44px minmax(116px, 136px) minmax(0, 1fr);
  }

  .header-actions,
  body[data-step="debate"] .header-actions,
  body[data-step="debate"] .app-header .header-actions {
    grid-column: 3;
  }

  .brand-lockup,
  body[data-step="debate"] .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    width: 134px;
  }
}

/* Sharpness pass: simpler marks, squarer geometry, cleaner hero. */
:root {
  --dv-radius-xs: 3px;
  --dv-radius-sm: 4px;
  --dv-radius-md: 6px;
}

.app-header,
body[data-step="debate"] .app-header {
  grid-template-columns: 34px minmax(152px, 190px) minmax(0, 1fr) auto;
  gap: 8px;
  padding-left: clamp(10px, 1.6vw, 20px);
}

.menu-toggle,
body[data-step="debate"] .menu-toggle {
  width: 32px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-lockup,
body[data-step="debate"] .brand-lockup,
body[data-step="debate"] .app-header .brand-lockup {
  width: clamp(158px, 15.5vw, 194px);
}

.brand-lockup::after {
  display: none !important;
}

.site-nav button,
body[data-step="debate"] .site-nav button {
  border-radius: var(--dv-radius-md);
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 560;
  text-transform: none;
}

body[data-step="debate"] .stage-copy {
  min-height: 330px !important;
  max-height: 340px;
}

body[data-step="debate"] .hero-copy {
  max-width: 700px;
}

body[data-step="debate"] .hero-copy h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4.25vw, 3.85rem);
  line-height: 1;
  white-space: nowrap;
}

body[data-step="debate"] .hero-copy .stage-subtitle {
  font-size: clamp(1.02rem, 1.32vw, 1.22rem);
  white-space: nowrap;
}

body[data-step="debate"] .hero-search {
  max-width: 600px;
  border-radius: var(--dv-radius-md);
}

body[data-step="debate"] .hero-search button[type="submit"] {
  border-radius: var(--dv-radius-sm);
}

body[data-step="debate"] .hero-photo img {
  object-position: 64% 48%;
}

body[data-step="debate"] .launch-tile-shell {
  margin: 28px auto 34px !important;
}

body[data-step="debate"] .launch-tile {
  min-height: 166px;
  border-radius: var(--dv-radius-md);
}

body[data-step="debate"] .launch-tile-art small {
  display: none;
}

body[data-step="debate"] .launch-tile-illo,
body[data-step="debate"] .launch-tile-illo svg.launch-illo-svg {
  width: 86px;
  height: 86px;
}

body[data-step="debate"] .simple-mark .simple-bg {
  fill: var(--dv-teal);
}

body[data-step="debate"] .simple-mark .simple-accent {
  fill: var(--dv-red);
}

body[data-step="debate"] .simple-mark .simple-dot {
  fill: var(--dv-gold);
}

body[data-step="debate"] .simple-mark .simple-line,
body[data-step="debate"] .simple-mark .simple-cutout {
  fill: none;
  stroke: #fffaf0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

body[data-step="debate"] .simple-lifestyle .simple-accent,
body[data-step="debate"] .simple-money .simple-accent,
body[data-step="debate"] .simple-career .simple-accent {
  fill: var(--dv-gold);
  stroke: none;
}

body[data-step="debate"] .simple-money .simple-dot {
  fill: #f1d487;
}

body[data-step="debate"] .simple-politics .flag-pole,
body[data-step="debate"] .simple-politics .flag-base {
  stroke: var(--dv-teal);
}

body[data-step="debate"] .simple-politics .simple-cutout {
  fill: #fffaf0;
  stroke: none;
}

body[data-step="debate"] .simple-tech .simple-accent,
body[data-step="debate"] .simple-homegarden .simple-accent {
  fill: var(--dv-gold);
  stroke: none;
}

body[data-step="debate"] .hot-card,
body[data-step="debate"] .hot-section-primary .hot-card,
body[data-step="debate"] .poster-card,
body[data-step="debate"] .feature-card,
body[data-step="debate"] .launch-tile,
.factor-zone,
.rank-stack,
.order-lane,
.winner-spotlight,
.result-card,
.info-card,
.media-card {
  border-radius: var(--dv-radius-md) !important;
}

body[data-step="debate"] .poster-art,
body[data-step="debate"] .feature-art,
body[data-step="debate"] .hot-art,
body[data-step="debate"] .player-token,
body[data-step="debate"] .brand-token,
.guide-board-media {
  border-radius: var(--dv-radius-sm) !important;
}

body[data-step="debate"] .poster-card {
  grid-template-rows: 190px auto;
}

body[data-step="debate"] .poster-board-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-step="debate"] .cast-art {
  --cast-a: var(--dv-teal);
  --cast-b: var(--dv-red);
  --cast-c: var(--dv-gold);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 250, 240, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(5, 68, 77, 0.98), rgba(16, 42, 46, 0.96));
}

body[data-step="debate"] .cast-art-nba {
  --cast-a: #7e1d27;
  --cast-b: #3f1f69;
  --cast-c: #c6a24b;
}

body[data-step="debate"] .cast-art-rap {
  --cast-a: #102a2e;
  --cast-b: #7e1d27;
  --cast-c: #c6a24b;
}

body[data-step="debate"] .cast-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0 60%, rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--cast-c) 36%, transparent), transparent 24%),
    linear-gradient(120deg, var(--cast-a), var(--cast-b));
  background-size: 34px 34px, auto, auto, auto;
}

body[data-step="debate"] .cast-spotlight {
  position: absolute;
  inset: -20% 25% auto;
  height: 78%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.28), transparent);
  filter: blur(2px);
  opacity: 0.72;
  transform: rotate(17deg);
}

body[data-step="debate"] .cast-featured {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  min-height: 0;
}

body[data-step="debate"] .cast-art-poster .cast-featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-step="debate"] .cast-player {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  height: 100%;
}

body[data-step="debate"] .cast-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.22), rgba(7, 84, 93, 0.48)),
    var(--cast-a);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

body[data-step="debate"] .cast-art-poster .cast-avatar {
  min-height: 86px;
}

body[data-step="debate"] .cast-avatar::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  content: "";
}

body[data-step="debate"] .cast-avatar > span {
  z-index: 1;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  font-weight: 640;
}

body[data-step="debate"] .cast-caption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  z-index: 2;
  display: grid;
  gap: 1px;
  min-width: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

body[data-step="debate"] .cast-caption strong,
body[data-step="debate"] .cast-caption em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .cast-caption strong {
  color: #fffaf0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

body[data-step="debate"] .cast-caption em {
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 520;
}

body[data-step="debate"] .cast-roster {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

body[data-step="debate"] .cast-art-poster .cast-roster {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

body[data-step="debate"] .cast-roster span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 3px;
  padding: 4px 5px;
  background: rgba(255, 250, 240, 0.12);
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.58rem;
  font-weight: 640;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .cast-roster b {
  color: var(--cast-c);
  font-size: 0.52rem;
  font-weight: 760;
}

body[data-step="debate"] .cast-board-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  display: grid;
  gap: 2px;
  max-width: 56%;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 3px;
  padding: 6px 8px;
  background: rgba(16, 42, 46, 0.7);
  backdrop-filter: blur(8px);
}

body[data-step="debate"] .cast-board-label strong {
  color: #fffaf0;
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .cast-board-label em {
  overflow: hidden;
  color: rgba(241, 212, 135, 0.94) !important;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 560 !important;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .brand-field {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(198, 162, 75, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(222, 236, 229, 0.94));
}

body[data-step="debate"] .brand-field::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 84, 93, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.44;
  content: "";
}

body[data-step="debate"] .brand-field-panel {
  position: absolute;
  inset: 13px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

body[data-step="debate"] .brand-field-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(7, 84, 93, 0.18);
  padding-bottom: 8px;
}

body[data-step="debate"] .brand-field-heading strong {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .brand-field-heading em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 520;
  line-height: 1;
  text-align: right;
}

body[data-step="debate"] .brand-logo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}

body[data-step="debate"] .brand-field-hot .brand-logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-step="debate"] .brand-logo-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 4px;
  padding: 10px 8px 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .brand-logo-tile::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-color);
  content: "";
}

body[data-step="debate"] .brand-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid color-mix(in srgb, var(--brand-color) 40%, transparent);
  border-radius: 50%;
  color: var(--brand-color);
  font-size: 0.62rem;
  font-weight: 760;
}

body[data-step="debate"] .brand-logo-box {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-top: 8px;
}

body[data-step="debate"] .brand-logo-box img {
  display: block;
  width: min(50px, 52%);
  height: min(50px, 52%);
  object-fit: contain;
}

body[data-step="debate"] .brand-field-poster .brand-logo-box img {
  width: 42px;
  height: 42px;
}

body[data-step="debate"] .brand-logo-box strong {
  color: var(--brand-color);
  font-size: 1rem;
  font-weight: 720;
}

body[data-step="debate"] .brand-logo-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

body[data-step="debate"] .brand-logo-copy strong,
body[data-step="debate"] .brand-logo-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .brand-logo-copy strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 690;
  line-height: 1;
}

body[data-step="debate"] .brand-field-hot .brand-logo-copy strong {
  font-size: clamp(0.58rem, 0.72vw, 0.7rem);
}

body[data-step="debate"] .brand-logo-copy em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 480;
  line-height: 1;
}

body[data-step="debate"] .brand-field-hot .brand-logo-copy em {
  font-size: 0.52rem;
}

body[data-step="debate"] .brand-factor-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: rgba(7, 84, 93, 0.82);
  font-size: 0.58rem;
  font-weight: 620;
  letter-spacing: 0.03em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-step="debate"] .card-action,
body[data-step="debate"] .hot-card .card-action {
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: var(--dv-radius-sm);
  font-size: 0.74rem;
}

@keyframes dv-compass-needle {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  18% { transform: translate(-50%, -50%) rotate(12deg); }
  34% { transform: translate(-50%, -50%) rotate(-8deg); }
  52% { transform: translate(-50%, -50%) rotate(5deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 880px) {
  body[data-step="debate"] .hero-copy h1,
  body[data-step="debate"] .hero-copy .stage-subtitle {
    white-space: normal;
  }
}

/* Typography refinement: less chunky, closer to a clean editorial product site. */
body[data-step="debate"] .hero-copy h1 {
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 620;
}

body[data-step="debate"] .launch-tile strong,
body[data-step="debate"] .hot-copy strong,
body[data-step="debate"] .poster-card strong,
body[data-step="debate"] .section-heading h2,
body[data-step="debate"] .hot-section .section-heading h2,
body[data-step="debate"] .category-lead h2,
body[data-step="debate"] .trust-copy h3 {
  font-weight: 640 !important;
  letter-spacing: 0;
}

body[data-step="debate"] .trust-copy h3 {
  line-height: 1.04;
}

body[data-step="debate"] .launch-tile span,
body[data-step="debate"] .hot-copy em,
body[data-step="debate"] .poster-card span,
body[data-step="debate"] .section-heading p,
body[data-step="debate"] .trust-copy > p:not(.kicker) {
  font-weight: 390;
}

body[data-step="debate"] .kicker,
body[data-step="debate"] .trust-copy .kicker {
  font-weight: 560;
  letter-spacing: 0.075em;
}

/* Hero search submit: balanced button and visually centered arrow. */
body[data-step="debate"] .hero-search button[type="submit"] {
  display: grid;
  place-items: center;
  width: 72px !important;
  min-width: 72px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 10px 0 0;
  padding: 0;
}

body[data-step="debate"] .hero-search button[type="submit"]::before {
  width: 12px;
  height: 12px;
  margin-left: -3px;
  border-top-width: 2.5px;
  border-right-width: 2.5px;
  transform: rotate(45deg);
  transform-origin: center;
}

/* Hero column alignment: keep the search bar on the same left edge as the headline. */
body[data-step="debate"] .hero-search {
  margin-left: 0 !important;
}

/* Launch tile atmosphere: soft brand tint behind the cards, feathered to the page. */
body[data-step="debate"] .launch-tile-shell {
  isolation: isolate;
}

body[data-step="debate"] .launch-tile-shell::before {
  position: absolute;
  z-index: -1;
  inset: -30px -38px -42px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 43%,
      rgba(127, 178, 176, 0.42) 0%,
      rgba(176, 221, 211, 0.31) 38%,
      rgba(232, 247, 241, 0.18) 64%,
      rgba(255, 255, 255, 0) 86%),
    linear-gradient(180deg,
      rgba(244, 252, 249, 0) 0%,
      rgba(213, 239, 232, 0.32) 42%,
      rgba(244, 252, 249, 0) 100%);
  content: "";
}

body[data-step="debate"] .launch-tile-shell::after {
  position: absolute;
  z-index: -1;
  inset: 8px -18px -18px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(7, 84, 93, 0.06) 0%,
      rgba(7, 84, 93, 0.035) 44%,
      rgba(7, 84, 93, 0) 78%);
  content: "";
}

@media (max-width: 760px) {
  body[data-step="debate"] .launch-tile-shell::before {
    inset: -22px -20px -30px;
  }

  body[data-step="debate"] .launch-tile-shell::after {
    inset: 0 -10px -14px;
  }
}

/* NerdWallet-style launch block: equal cards on a soft mint surface. */
body[data-step="debate"] .launch-tile-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 28px auto 34px !important;
  padding: clamp(18px, 2.2vw, 28px) !important;
  border: 0 !important;
  border-radius: 18px !important;
  background:
    radial-gradient(ellipse at 48% 48%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(135deg, rgba(225, 248, 241, 0.96), rgba(237, 251, 247, 0.9)) !important;
  box-shadow: 0 24px 60px rgba(7, 84, 93, 0.08) !important;
}

body[data-step="debate"] .launch-tile-shell::before {
  inset: -20px -28px -32px;
  background:
    radial-gradient(ellipse at 50% 48%,
      rgba(127, 178, 176, 0.24) 0%,
      rgba(210, 241, 233, 0.2) 48%,
      rgba(255, 255, 255, 0) 84%);
}

body[data-step="debate"] .launch-tile-shell::after {
  display: none;
}

body[data-step="debate"] .launch-tile-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px !important;
}

body[data-step="debate"] .launch-tile,
body[data-step="debate"] .launch-tile:nth-child(-n + 4),
body[data-step="debate"] .launch-tile:nth-child(n + 5) {
  grid-column: auto !important;
  flex: 0 1 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  min-width: 0;
  min-height: 166px;
}

@media (max-width: 920px) {
  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .launch-tile-shell {
    width: min(100% - 22px, 420px);
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    flex-basis: 100%;
    width: 100%;
  }
}

/* Decision-board artwork pass: show the actual field being measured, not generic stock art. */
body[data-step="debate"] .field-art .cast-stage {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.04), transparent 36%, rgba(0, 0, 0, 0.26)),
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--cast-c) 34%, transparent), transparent 25%),
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--cast-a) 28%, transparent), transparent 28%),
    linear-gradient(116deg, var(--cast-a), var(--cast-b));
  background-size: 32px 32px, auto, auto, auto, auto;
}

body[data-step="debate"] .field-art .cast-featured {
  grid-template-columns: repeat(var(--field-cols, 5), minmax(0, 1fr));
}

body[data-step="debate"] .field-art.cast-art-poster .cast-featured {
  grid-template-columns: repeat(var(--field-cols, 4), minmax(0, 1fr));
}

body[data-step="debate"] .field-art .cast-avatar {
  border-radius: 5px !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 240, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

body[data-step="debate"] .field-art .cast-avatar > span {
  max-width: 92%;
  text-align: center;
  white-space: normal;
}

body[data-step="debate"] .field-art .cast-avatar.photo-token.has-photo {
  background-size: cover;
  background-position: var(--photo-position, 50% 28%);
}

body[data-step="debate"] .field-art .cast-avatar.brand-token.has-brand-image {
  padding: 0;
}

body[data-step="debate"] .field-art .cast-avatar.pet-border-terrier img,
body[data-step="debate"] .field-art .cast-avatar.pet-blue-point img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-step="debate"] .field-art .cast-avatar.party-gop,
body[data-step="debate"] .field-art .cast-avatar.party-dem {
  padding: 16px;
  background: rgba(255, 250, 240, 0.92);
}

body[data-step="debate"] .field-art .cast-avatar.party-gop img,
body[data-step="debate"] .field-art .cast-avatar.party-dem img {
  width: min(86%, 132px);
  height: min(86%, 132px);
  object-fit: contain;
}

body[data-step="debate"] .field-art .cast-board-label {
  max-width: 64%;
  background: rgba(16, 42, 46, 0.74);
}

body[data-step="debate"] .field-art .cast-roster span {
  border-radius: 3px;
}

body[data-step="debate"] .hot-section-primary .field-art .cast-avatar {
  min-height: 166px;
}

body[data-step="debate"] .hot-section-primary .field-art .cast-board-label strong {
  font-size: 0.76rem;
}

body[data-step="debate"] .hot-section-primary .field-art .cast-board-label em {
  font-size: 0.62rem;
}

body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

@media (max-width: 1050px) {
  body[data-step="debate"] .section-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body[data-step="debate"] .section-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Category iconography: raster illustration assets, closer to NerdWallet's polished tile language. */
body[data-step="debate"] .launch-tile {
  grid-template-rows: 82px minmax(0, 1fr) !important;
  align-content: start;
}

body[data-step="debate"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
  overflow: visible;
  background: transparent !important;
}

body[data-step="debate"] .launch-tile-illo {
  display: grid;
  place-items: center;
  width: 96px !important;
  height: 82px !important;
}

body[data-step="debate"] .launch-illo-image {
  display: block;
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(16, 42, 46, 0.1));
  transform: translateY(-4px);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .launch-tile:hover .launch-illo-image {
  filter: drop-shadow(0 16px 20px rgba(16, 42, 46, 0.14));
  transform: translateY(-7px) scale(1.03);
}

/* Hero search CTA: make the action feel deliberate and fully clickable. */
body[data-step="debate"] .hero-search {
  grid-template-columns: minmax(0, 1fr) clamp(88px, 17%, 116px) !important;
  overflow: hidden !important;
}

body[data-step="debate"] .hero-search button[type="submit"] {
  position: relative;
  display: grid !important;
  place-items: center !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 var(--dv-radius-md) var(--dv-radius-md) 0 !important;
  color: #ffffff;
  background: linear-gradient(135deg, #9a2631 0%, var(--dv-red) 58%, #681923 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.24),
    inset 0 -3px 0 rgba(16, 42, 46, 0.14) !important;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .hero-search button[type="submit"]::before {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  border-top: 3px solid currentColor !important;
  border-right: 3px solid currentColor !important;
  transform: translate(-62%, -50%) rotate(45deg) !important;
  transform-origin: center !important;
}

body[data-step="debate"] .hero-search button[type="submit"]:hover {
  background: linear-gradient(135deg, #b82f3c 0%, #8f202b 58%, #701823 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.28),
    inset 0 -3px 0 rgba(16, 42, 46, 0.18),
    0 12px 22px rgba(126, 29, 39, 0.22) !important;
  transform: none !important;
}

body[data-step="debate"] .hero-search button[type="submit"]:active {
  background: linear-gradient(135deg, #7e1d27 0%, #681923 100%) !important;
  box-shadow: inset 0 2px 5px rgba(16, 42, 46, 0.24) !important;
}

/* Prime-time Decision Board art: cinematic, dimension-aware, and uncluttered. */
body[data-step="debate"] .poster-card {
  grid-template-rows: 224px auto !important;
}

body[data-step="debate"] .board-showcase {
  --board-a: var(--dv-teal);
  --board-b: var(--dv-red);
  --board-c: var(--dv-gold);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fffaf0;
  background: #102a2e;
}

body[data-step="debate"] .board-showcase-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--board-c) 34%, transparent), transparent 24%),
    radial-gradient(circle at 84% 78%, rgba(255, 250, 240, 0.12), transparent 26%),
    linear-gradient(124deg, color-mix(in srgb, var(--board-a) 92%, #050f12), color-mix(in srgb, var(--board-b) 88%, #071113));
  background-size: 40px 40px, auto, auto, auto;
}

body[data-step="debate"] .board-showcase-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    radial-gradient(ellipse at 50% 105%, rgba(0, 0, 0, 0.28), transparent 48%);
  content: "";
}

body[data-step="debate"] .board-showcase-head,
body[data-step="debate"] .board-showcase-subjects,
body[data-step="debate"] .board-showcase-strip {
  position: relative;
  z-index: 1;
}

body[data-step="debate"] .board-showcase-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

body[data-step="debate"] .board-showcase-head span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-step="debate"] .board-showcase-head em,
body[data-step="debate"] .board-showcase-head small {
  color: rgba(255, 250, 240, 0.74);
  font-style: normal;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
}

body[data-step="debate"] .board-showcase-head em {
  font-size: 0.63rem;
}

body[data-step="debate"] .board-showcase-head strong {
  color: #fffaf0;
  font-size: clamp(1rem, 1.72vw, 1.55rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.96;
}

body[data-step="debate"] .board-showcase-head small {
  max-width: 12ch;
  border-left: 1px solid rgba(255, 250, 240, 0.22);
  padding-left: 10px;
  color: color-mix(in srgb, var(--board-c) 70%, #fffaf0);
  font-size: 0.58rem;
  text-align: right;
}

body[data-step="debate"] .board-showcase-subjects {
  display: grid;
  grid-template-columns: repeat(var(--board-count, 3), minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}

body[data-step="debate"] .showcase-subject {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px;
  min-width: 0;
  min-height: 0;
}

body[data-step="debate"] .showcase-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.2), rgba(255, 250, 240, 0.08)),
    rgba(255, 250, 240, 0.08);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

body[data-step="debate"] .showcase-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
  content: "";
}

body[data-step="debate"] .showcase-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  overflow: hidden;
}

body[data-step="debate"] .showcase-avatar.photo-token {
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 250, 240, 0.18), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--board-a) 72%, #fffaf0), color-mix(in srgb, var(--board-b) 74%, #102a2e));
  background-position: var(--photo-position, 50% 24%);
  background-size: cover;
}

body[data-step="debate"] .showcase-avatar.photo-token > span,
body[data-step="debate"] .showcase-avatar.brand-token > span {
  max-width: 9ch;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(1rem, 2.1vw, 1.7rem);
  font-weight: 720;
  line-height: 0.96;
  text-align: center;
  white-space: normal;
}

body[data-step="debate"] .showcase-avatar.photo-token.has-photo > span {
  display: none;
}

body[data-step="debate"] .showcase-avatar.brand-token.has-brand-image {
  padding: 0;
  background: rgba(255, 250, 240, 0.94);
}

body[data-step="debate"] .showcase-avatar.brand-token.has-brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

body[data-step="debate"] .showcase-logo {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 242, 0.9));
}

body[data-step="debate"] .showcase-logo::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-color);
  content: "";
}

body[data-step="debate"] .showcase-logo img {
  width: min(58%, 74px);
  height: min(58%, 74px);
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(16, 42, 46, 0.12));
}

body[data-step="debate"] .showcase-logo strong {
  color: var(--brand-color);
  font-size: 1rem;
}

body[data-step="debate"] .showcase-caption {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body[data-step="debate"] .showcase-caption strong,
body[data-step="debate"] .showcase-caption em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .showcase-caption strong {
  color: #fffaf0;
  font-size: 0.82rem;
  font-weight: 710;
  line-height: 1;
}

body[data-step="debate"] .showcase-caption em {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 430;
  line-height: 1;
}

body[data-step="debate"] .board-showcase-strip {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
}

body[data-step="debate"] .board-showcase-strip span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 108px;
  gap: 4px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 3px;
  padding: 4px 6px;
  background: rgba(255, 250, 240, 0.1);
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-step="debate"] .board-showcase-strip b {
  color: var(--board-c);
  font-size: 0.52rem;
  font-weight: 760;
}

body[data-step="debate"] .board-showcase-aiassistant {
  color: var(--dv-ink);
}

body[data-step="debate"] .board-showcase-aiassistant .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 12%, rgba(198, 162, 75, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(226, 241, 235, 0.95));
  background-size: 38px 38px, auto, auto;
}

body[data-step="debate"] .board-showcase-aiassistant .board-showcase-head strong,
body[data-step="debate"] .board-showcase-aiassistant .showcase-caption strong {
  color: var(--dv-ink);
}

body[data-step="debate"] .board-showcase-aiassistant .board-showcase-head em,
body[data-step="debate"] .board-showcase-aiassistant .board-showcase-head small,
body[data-step="debate"] .board-showcase-aiassistant .showcase-caption em {
  color: rgba(16, 42, 46, 0.64);
}

body[data-step="debate"] .board-showcase-aiassistant .board-showcase-head small {
  border-left-color: rgba(7, 84, 93, 0.18);
}

body[data-step="debate"] .board-showcase-aiassistant .board-showcase-strip span {
  border-color: rgba(7, 84, 93, 0.12);
  color: rgba(16, 42, 46, 0.7);
  background: rgba(255, 255, 255, 0.55);
}

body[data-step="debate"] .board-showcase-aiassistant .board-showcase-strip b {
  color: var(--dv-red);
}

body[data-step="debate"] .board-showcase-nba .board-showcase-stage {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 209, 115, 0.28), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(152, 105, 255, 0.25), transparent 24%),
    linear-gradient(118deg, #65151e 0%, #221330 55%, #5f3c0e 100%);
}

body[data-step="debate"] .board-showcase-rap .board-showcase-stage {
  background:
    radial-gradient(circle at 18% 20%, rgba(198, 162, 75, 0.22), transparent 24%),
    radial-gradient(circle at 85% 70%, rgba(126, 29, 39, 0.32), transparent 30%),
    linear-gradient(118deg, #102a2e 0%, #371e24 55%, #741d2b 100%);
}

body[data-step="debate"] .board-showcase-hot .board-showcase-stage {
  padding: 18px;
}

body[data-step="debate"] .board-showcase-hot .board-showcase-subjects {
  gap: 12px;
}

body[data-step="debate"] .board-showcase-hot .showcase-frame {
  border-radius: 8px;
}

body[data-step="debate"] .board-showcase-hot .showcase-caption strong {
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
}

body[data-step="debate"] .board-showcase-poster .board-showcase-stage {
  gap: 8px;
  padding: 13px;
}

body[data-step="debate"] .board-showcase-poster .board-showcase-head small {
  display: none;
}

body[data-step="debate"] .board-showcase-poster .board-showcase-head strong {
  font-size: 1.04rem;
}

body[data-step="debate"] .board-showcase-poster .board-showcase-subjects {
  gap: 8px;
}

body[data-step="debate"] .board-showcase-poster .board-showcase-strip {
  display: none;
}

body[data-step="debate"] .board-showcase-poster .showcase-caption strong {
  font-size: 0.72rem;
}

body[data-step="debate"] .board-showcase-poster .showcase-caption em {
  display: none;
}

@media (max-width: 760px) {
  body[data-step="debate"] .board-showcase-hot .board-showcase-subjects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-step="debate"] .board-showcase-hot .showcase-subject:nth-child(n + 4) {
    display: none;
  }
}

/* Board-art polish: use full-width scene assets where they are stronger than tiny crops. */
body[data-step="debate"] .hot-carousel {
  --spotlight-card-width: min(940px, 88vw);
}

body[data-step="debate"] .hot-card,
body[data-step="debate"] .hot-section-primary .hot-card {
  grid-template-columns: minmax(0, 2.35fr) minmax(210px, 0.72fr) !important;
  height: 340px !important;
  min-height: 340px !important;
  border-radius: var(--dv-radius-md) !important;
}

body[data-step="debate"] .hot-card > span:not(.hot-art),
body[data-step="debate"] .hot-section-primary .hot-card > span:not(.hot-art) {
  padding-inline: 24px !important;
}

body[data-step="debate"] .board-showcase-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.01);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-stage {
  z-index: 1;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(90deg, rgba(4, 51, 56, 0.82) 0%, rgba(4, 51, 56, 0.38) 43%, rgba(4, 51, 56, 0.08) 76%),
    linear-gradient(180deg, rgba(8, 26, 29, 0.18), rgba(8, 26, 29, 0.56));
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-stage::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 250, 240, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 42, 46, 0.02), rgba(16, 42, 46, 0.34));
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-head {
  max-width: 52%;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-head strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-subjects {
  display: none;
}

body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-strip {
  display: flex;
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-strip {
  align-self: end;
  flex-wrap: wrap;
  max-width: min(96%, 620px);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-strip span {
  max-width: none;
  border-color: rgba(255, 250, 240, 0.24);
  background: rgba(16, 42, 46, 0.62);
  color: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(8px);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-strip b {
  color: var(--dv-gold);
}

body[data-step="debate"] .board-showcase-catbreed .board-showcase-backdrop {
  object-position: 52% 48%;
}

body[data-step="debate"] .board-showcase-dogbreed .board-showcase-backdrop {
  object-position: 50% 50%;
}

body[data-step="debate"] .board-showcase-politics .board-showcase-backdrop {
  object-position: 50% 48%;
}

body[data-step="debate"] .board-showcase:not(.has-backdrop) .showcase-frame {
  border-radius: var(--dv-radius-sm);
}

body[data-step="debate"] .board-showcase-nba .showcase-frame,
body[data-step="debate"] .board-showcase-rap .showcase-frame {
  border-color: rgba(255, 250, 240, 0.28);
  background: rgba(255, 250, 240, 0.08);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 250, 240, 0.18);
}

body[data-step="debate"] .board-showcase-nba .showcase-caption strong,
body[data-step="debate"] .board-showcase-rap .showcase-caption strong {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

body[data-step="debate"] .board-showcase-hot .board-showcase-stage {
  padding: 22px;
}

body[data-step="debate"] .board-showcase-hot .board-showcase-head strong {
  font-size: clamp(1.25rem, 1.95vw, 1.92rem);
}

body[data-step="debate"] .board-showcase-hot .showcase-caption strong {
  font-size: clamp(0.84rem, 1.12vw, 1.08rem);
}

@media (max-width: 760px) {
  body[data-step="debate"] .hot-card,
  body[data-step="debate"] .hot-section-primary .hot-card {
    grid-template-columns: 1fr !important;
    height: 430px !important;
    min-height: 430px !important;
  }

  body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-head {
    max-width: 74%;
  }
}

/* GOAT boards need a poster language, not five equal little windows. */
body[data-step="debate"] .rival-showcase {
  --board-a: var(--dv-teal);
  --board-b: var(--dv-red);
  --board-c: var(--dv-gold);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fffaf0;
  background: #120f14;
}

body[data-step="debate"] .rival-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--board-c) 28%, transparent), transparent 24%),
    radial-gradient(circle at 82% 23%, rgba(255, 250, 240, 0.14), transparent 25%),
    linear-gradient(112deg, color-mix(in srgb, var(--board-a) 78%, #06090a) 0%, #231525 49%, color-mix(in srgb, var(--board-b) 84%, #0b0507) 100%);
}

body[data-step="debate"] .rival-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.26));
  background-size: 42px 42px, auto;
  content: "";
}

body[data-step="debate"] .rival-head,
body[data-step="debate"] .rival-heroes,
body[data-step="debate"] .rival-bench,
body[data-step="debate"] .rival-roster {
  position: absolute;
  z-index: 1;
}

body[data-step="debate"] .rival-head {
  top: 22px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

body[data-step="debate"] .rival-head span {
  display: grid;
  gap: 2px;
}

body[data-step="debate"] .rival-head em,
body[data-step="debate"] .rival-head small {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 560;
  line-height: 1.08;
}

body[data-step="debate"] .rival-head strong {
  color: #fffaf0;
  font-size: clamp(1.5rem, 2.35vw, 2.28rem);
  font-weight: 760;
  line-height: 0.94;
}

body[data-step="debate"] .rival-head small {
  max-width: 12ch;
  border-left: 1px solid rgba(255, 250, 240, 0.22);
  padding-left: 11px;
  color: color-mix(in srgb, var(--board-c) 72%, #fffaf0);
  text-align: right;
}

body[data-step="debate"] .rival-heroes {
  inset: 82px 174px 58px 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-step="debate"] .rival-heroes::after {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.7), transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--board-c) 70%, transparent);
  content: "";
  transform: translateX(-50%) rotate(4deg);
}

body[data-step="debate"] .rival-hero {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--dv-radius-sm);
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.28);
}

body[data-step="debate"] .rival-photo,
body[data-step="debate"] .rival-photo .showcase-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-step="debate"] .rival-photo .showcase-avatar.photo-token,
body[data-step="debate"] .rival-photo .showcase-avatar.brand-token {
  background-size: cover;
  background-position: var(--photo-position, 50% 28%);
  transform: scale(1.05);
}

body[data-step="debate"] .rival-photo .showcase-avatar.photo-token > span,
body[data-step="debate"] .rival-photo .showcase-avatar.brand-token > span {
  display: none;
}

body[data-step="debate"] .rival-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 44%, rgba(4, 12, 14, 0.78)),
    radial-gradient(circle at 50% 10%, rgba(255, 250, 240, 0.12), transparent 34%);
  content: "";
}

body[data-step="debate"] .rival-name {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  display: grid;
  gap: 2px;
}

body[data-step="debate"] .rival-name strong {
  color: #fffaf0;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 760;
  line-height: 0.95;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

body[data-step="debate"] .rival-name em {
  overflow: hidden;
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .rival-bench {
  top: 84px;
  right: 22px;
  bottom: 58px;
  display: grid;
  width: 128px;
  gap: 7px;
}

body[data-step="debate"] .rival-bench-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--dv-radius-sm);
  background: rgba(255, 250, 240, 0.12);
}

body[data-step="debate"] .rival-bench-card > span,
body[data-step="debate"] .rival-bench-card .showcase-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-step="debate"] .rival-bench-card .showcase-avatar.photo-token > span,
body[data-step="debate"] .rival-bench-card .showcase-avatar.brand-token > span {
  display: none;
}

body[data-step="debate"] .rival-bench-card strong {
  position: absolute;
  right: 7px;
  bottom: 6px;
  left: 7px;
  z-index: 1;
  overflow: hidden;
  color: #fffaf0;
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 0.96;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.56);
  white-space: nowrap;
}

body[data-step="debate"] .rival-bench-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 12, 14, 0.78));
  content: "";
}

body[data-step="debate"] .rival-roster {
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  gap: 5px;
  overflow: hidden;
}

body[data-step="debate"] .rival-roster span {
  display: inline-flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  gap: 4px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: var(--dv-radius-sm);
  padding: 4px 6px;
  background: rgba(255, 250, 240, 0.1);
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.55rem;
  font-weight: 650;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-step="debate"] .rival-roster span:nth-child(n + 9) {
  display: none;
}

body[data-step="debate"] .rival-roster b {
  color: var(--board-c);
  font-size: 0.52rem;
}

@media (max-width: 760px) {
  body[data-step="debate"] .rival-heroes {
    inset: 82px 18px 102px;
  }

  body[data-step="debate"] .rival-bench {
    right: 18px;
    bottom: 52px;
    left: 18px;
    top: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    height: 44px;
  }
}

/* Decision Board taxonomy: consistent visual language by ranking type. */
body[data-step="debate"] .hot-card .board-kind {
  width: fit-content;
  color: rgba(7, 84, 93, 0.76);
  font-size: 0.72rem;
  font-weight: 560;
  line-height: 1;
}

body[data-step="debate"] .hot-card[data-board-type="field"] .board-kind {
  color: var(--dv-red);
}

body[data-step="debate"] .hot-card[data-board-type="spec"] .board-kind {
  color: #087d83;
}

body[data-step="debate"] .hot-card[data-board-type="money"] .board-kind {
  color: #8a6b16;
}

body[data-step="debate"] .hot-card[data-board-type="provider"] .board-kind {
  color: #485b41;
}

body[data-step="debate"] .hot-card[data-board-type="values"] .board-kind {
  color: var(--dv-red);
}

body[data-step="debate"] .board-showcase:not(.has-backdrop).board-showcase-type-fit .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(198, 162, 75, 0.2), transparent 26%),
    linear-gradient(124deg, #07545d 0%, #43624c 56%, #7e1d27 100%);
  background-size: 40px 40px, auto, auto;
}

body[data-step="debate"] .board-showcase-type-spec .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 12%, rgba(198, 162, 75, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(226, 241, 235, 0.95));
  background-size: 38px 38px, auto, auto;
}

body[data-step="debate"] .board-showcase-type-money .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(198, 162, 75, 0.28), transparent 28%),
    linear-gradient(135deg, #fffaf0 0%, #e8f8f1 100%);
  background-size: 42px 42px, auto, auto;
}

body[data-step="debate"] .board-showcase-type-money .board-showcase-head strong,
body[data-step="debate"] .board-showcase-type-money .showcase-caption strong {
  color: var(--dv-ink);
}

body[data-step="debate"] .board-showcase-type-money .board-showcase-head em,
body[data-step="debate"] .board-showcase-type-money .board-showcase-head small,
body[data-step="debate"] .board-showcase-type-money .showcase-caption em {
  color: rgba(16, 42, 46, 0.66);
}

body[data-step="debate"] .board-showcase-type-money .board-showcase-strip span {
  border-color: rgba(7, 84, 93, 0.12);
  color: rgba(16, 42, 46, 0.7);
  background: rgba(255, 255, 255, 0.56);
}

body[data-step="debate"] .board-showcase-type-provider .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(198, 162, 75, 0.26), transparent 26%),
    linear-gradient(125deg, #063f3f 0%, #485b41 64%, #7e1d27 100%);
  background-size: 40px 40px, auto, auto;
}

body[data-step="debate"] .board-showcase-type-values:not(.has-backdrop) .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(198, 162, 75, 0.22), transparent 28%),
    linear-gradient(118deg, #07545d 0%, #fffaf0 48%, #7e1d27 100%);
  background-size: 40px 40px, auto, auto;
}

/* Production-value pass: calmer covers, cleaner hierarchy, and factor colors that travel. */
body[data-step="debate"] .hot-section-primary {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(225, 244, 237, 0.84), rgba(255, 250, 240, 0) 54%),
    linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(255, 250, 240, 0.78) 26%, rgba(255, 250, 240, 0.58)) !important;
}

body[data-step="debate"] .hot-card,
body[data-step="debate"] .hot-section-primary .hot-card {
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: var(--dv-radius-md) !important;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(16, 42, 46, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

body[data-step="debate"] .hot-card > span:not(.hot-art),
body[data-step="debate"] .hot-section-primary .hot-card > span:not(.hot-art) {
  align-content: end;
  gap: 10px;
  padding: 24px 24px 26px !important;
}

body[data-step="debate"] .hot-card strong,
body[data-step="debate"] .hot-section-primary .hot-card strong {
  max-width: 14ch;
  font-weight: 640;
}

body[data-step="debate"] .hot-card em,
body[data-step="debate"] .hot-section-primary .hot-card em {
  max-width: 26ch;
  font-size: 0.88rem;
}

body[data-step="debate"] .hot-card .card-action {
  min-height: 31px;
  border-color: rgba(126, 29, 39, 0.18);
  border-radius: var(--dv-radius-sm);
  color: #fffaf0;
  background: linear-gradient(135deg, var(--dv-red), #671721);
  box-shadow: 0 10px 20px rgba(126, 29, 39, 0.14);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(4, 51, 56, 0.72) 0%, rgba(4, 51, 56, 0.28) 44%, rgba(4, 51, 56, 0.04) 78%),
    linear-gradient(180deg, rgba(8, 26, 29, 0.04), rgba(8, 26, 29, 0.36));
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-strip,
body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-strip {
  display: none;
}

body[data-step="debate"] .board-showcase-strip,
body[data-step="debate"] .rival-roster {
  gap: 6px;
}

body[data-step="debate"] .board-showcase-strip span,
body[data-step="debate"] .rival-roster span {
  flex: 0 1 auto;
  max-width: 118px;
  overflow: hidden;
  border-radius: var(--dv-radius-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

body[data-step="debate"] .board-showcase-strip span.is-more,
body[data-step="debate"] .rival-roster span.is-more {
  color: color-mix(in srgb, var(--board-c) 68%, #fffaf0);
}

body[data-step="debate"] .rival-roster span:nth-child(n + 9) {
  display: inline-flex;
}

body[data-step="debate"] .rival-heroes {
  inset: 84px 168px 64px 22px;
}

body[data-step="debate"] .rival-bench {
  bottom: 64px;
}

body[data-step="debate"] .poster-card {
  border: 1px solid rgba(16, 42, 46, 0.08);
  background:
    linear-gradient(180deg, #fff, rgba(255, 250, 240, 0.8)),
    #fff;
  box-shadow: 0 16px 42px rgba(16, 42, 46, 0.055);
}

body[data-step="debate"] .poster-card:not(:disabled):hover {
  box-shadow: 0 24px 58px rgba(16, 42, 46, 0.11);
}

body[data-step="debate"] .poster-label {
  padding: 12px 2px 0;
}

body[data-step="debate"] .poster-label strong {
  font-weight: 640;
}

body[data-step="debate"] .poster-label small:not(.card-action) {
  display: none;
}

body[data-step="debate"] .poster-card .card-action {
  min-height: 0;
  width: fit-content;
  margin-top: 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--dv-red) 46%, transparent);
  border-radius: 0;
  padding: 0 0 2px;
  color: var(--dv-red);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 560;
}

.factor-token {
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 28%, rgba(16, 42, 46, 0.12));
  border-left: 4px solid var(--accent, var(--dv-teal));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 8%, transparent), rgba(255, 255, 255, 0.96)),
    #fff;
}

.factor-token.is-selected {
  border-color: color-mix(in srgb, var(--accent, var(--dv-red)) 42%, rgba(16, 42, 46, 0.12));
  border-left-color: var(--accent, var(--dv-red));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-red)) 12%, transparent), rgba(255, 250, 240, 0.98)),
    #fffaf0;
}

.factor-icon,
.factor-token.is-selected .factor-icon {
  background: var(--accent, var(--dv-teal));
}

.factor-token .mini-action {
  color: var(--accent, var(--dv-red));
}

.drag-ghost {
  border-left-color: var(--accent, var(--dv-teal));
}

[data-stage="rank"] .rank-stack {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.order-workbench {
  gap: 10px;
}

.order-instructions {
  border: 0;
  border-bottom: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
}

.order-instructions h2 {
  font-size: clamp(1.14rem, 1.65vw, 1.55rem);
  font-weight: 640;
}

.order-instructions p {
  max-width: 68ch;
  font-size: 0.82rem;
  font-weight: 400;
}

.order-lane {
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 2px 2px 6px;
  background: transparent;
}

.order-card {
  grid-template-columns: 34px 38px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 64px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 28%, rgba(16, 42, 46, 0.1));
  border-left: 4px solid var(--accent, var(--dv-teal));
  border-radius: var(--dv-radius-md);
  padding: 8px 9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 9%, transparent), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 8px 20px rgba(16, 42, 46, 0.055);
}

.order-card:first-child {
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 38%, rgba(16, 42, 46, 0.12));
  border-left-color: var(--accent, var(--dv-teal));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 12%, transparent), rgba(255, 255, 255, 0.98)),
    #fff;
}

.order-rank,
.order-card:first-child .order-rank {
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: var(--accent, var(--dv-teal));
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: none;
}

.order-art.measure-picture {
  width: 34px;
  min-height: 34px;
  border-radius: var(--dv-radius-sm);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 250, 240, 0.6), transparent 32%),
    linear-gradient(135deg, var(--accent, var(--dv-teal)), color-mix(in srgb, var(--accent, var(--dv-teal)) 58%, #102a2e));
}

.order-art.measure-picture .picture-orbit,
.order-art.measure-picture .picture-bars {
  display: none;
}

.order-art.measure-picture::before {
  transform: scale(0.62);
}

.order-copy {
  gap: 2px;
}

.order-copy strong {
  font-size: 0.95rem;
  font-weight: 640;
}

.order-copy span {
  max-width: 58ch;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.74rem;
  font-weight: 390;
}

.order-copy em {
  color: color-mix(in srgb, var(--accent, var(--dv-red)) 80%, #102a2e);
  font-size: 0.64rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

.order-evidence {
  display: none;
}

.order-actions {
  grid-auto-flow: column;
  gap: 4px;
}

.order-actions button {
  display: grid;
  place-items: center;
  min-width: 28px;
  width: 28px;
  min-height: 28px;
  height: 28px;
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 28%, rgba(16, 42, 46, 0.12));
  border-radius: var(--dv-radius-sm);
  padding: 0;
  color: var(--accent, var(--dv-teal));
  background: #fff;
  font-size: 0.78rem;
  font-weight: 650;
}

.order-actions button:hover,
.order-actions button:focus-visible {
  border-color: var(--accent, var(--dv-teal));
  background: var(--accent, var(--dv-teal));
}

.order-actions button:disabled {
  color: rgba(16, 42, 46, 0.22);
  background: rgba(255, 255, 255, 0.6);
}

.order-drag-ghost {
  border-left-color: var(--accent, var(--dv-teal));
}

@media (max-width: 760px) {
  .order-card {
    grid-template-columns: 32px 34px minmax(0, 1fr);
  }

  .order-actions {
    grid-column: 2 / -1;
    justify-content: start;
  }
}

/* Editorial board-card system: make cards feel like site features, not ads. */
body[data-step="debate"] .section-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body[data-step="debate"] .poster-card {
  grid-template-rows: 212px auto !important;
  min-height: 306px;
  padding: 8px !important;
  border-color: rgba(16, 42, 46, 0.095);
  border-radius: var(--dv-radius-md) !important;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 42, 46, 0.055);
}

body[data-step="debate"] .poster-art {
  height: 212px;
  border-radius: var(--dv-radius-sm) !important;
  background: rgba(234, 248, 243, 0.9);
  box-shadow: none;
}

body[data-step="debate"] .poster-label {
  display: grid;
  gap: 5px;
  padding: 12px 4px 2px !important;
}

body[data-step="debate"] .poster-label strong {
  display: none;
}

body[data-step="debate"] .poster-label span {
  display: block;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.78rem;
  font-weight: 390;
  line-height: 1.24;
  -webkit-line-clamp: 2;
}

body[data-step="debate"] .poster-label small:not(.card-action) {
  display: none !important;
}

body[data-step="debate"] .poster-card .card-action {
  margin-top: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--dv-red) 50%, transparent);
  border-radius: 0;
  padding: 0 0 2px;
  color: var(--dv-red);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 590;
}

body[data-step="debate"] .poster-card:not(:disabled):hover {
  border-color: rgba(126, 29, 39, 0.22);
  box-shadow: 0 22px 54px rgba(16, 42, 46, 0.11);
}

body[data-step="debate"] .board-showcase-stage {
  background:
    radial-gradient(circle at 18% 18%, rgba(198, 162, 75, 0.16), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(7, 84, 93, 0.11), transparent 28%),
    linear-gradient(135deg, #f7fbf8 0%, #fffaf0 100%);
  background-size: auto;
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .board-showcase-head strong,
body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .showcase-caption strong {
  color: var(--dv-ink);
  text-shadow: none;
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .board-showcase-head em,
body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .board-showcase-head small,
body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .showcase-caption em {
  color: rgba(16, 42, 46, 0.62);
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .board-showcase-head small {
  border-left-color: rgba(7, 84, 93, 0.16);
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .showcase-frame {
  border-color: rgba(7, 84, 93, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px rgba(16, 42, 46, 0.09);
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .showcase-frame::after {
  background: linear-gradient(180deg, transparent 58%, rgba(255, 250, 240, 0.86));
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .showcase-avatar.photo-token {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 250, 240, 0.9), transparent 36%),
    linear-gradient(180deg, rgba(7, 84, 93, 0.82), rgba(16, 42, 46, 0.94));
  background-position: var(--photo-position, 50% 28%);
  background-size: cover;
}

body[data-step="debate"] .board-showcase:not(.has-backdrop):not(.board-showcase-type-field) .showcase-avatar.photo-token:not(.has-photo) > span {
  max-width: 11ch;
  color: #fffaf0;
  font-size: clamp(0.72rem, 1.25vw, 1.1rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

body[data-step="debate"] .board-showcase-type-field:not(.has-backdrop) .board-showcase-stage {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--board-c) 24%, transparent), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(255, 250, 240, 0.11), transparent 30%),
    linear-gradient(123deg, color-mix(in srgb, var(--board-a) 86%, #081013), #241a1e 52%, color-mix(in srgb, var(--board-b) 82%, #081013));
  background-size: auto;
}

body[data-step="debate"] .board-showcase-type-field:not(.has-backdrop) .board-showcase-stage::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.2)),
    radial-gradient(ellipse at 50% 104%, rgba(0, 0, 0, 0.28), transparent 46%);
}

body[data-step="debate"] .board-showcase-type-field:not(.has-backdrop) .showcase-frame {
  border-color: rgba(255, 250, 240, 0.2);
  background: rgba(255, 250, 240, 0.1);
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(4, 51, 56, 0.72) 0%, rgba(4, 51, 56, 0.34) 42%, rgba(4, 51, 56, 0.06) 78%),
    linear-gradient(180deg, rgba(8, 26, 29, 0.02), rgba(8, 26, 29, 0.28)) !important;
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-head {
  max-width: min(66%, 440px);
}

body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-head {
  max-width: 72%;
}

body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-head strong {
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  line-height: 0.96;
}

body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-head em {
  display: none;
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-backdrop {
  filter: saturate(1.04) contrast(1.02);
}

body[data-step="debate"] .board-showcase-career .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-major .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-college .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-gradschool .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-trades .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-healthcare .board-showcase-backdrop {
  object-position: 58% 50%;
}

body[data-step="debate"] .board-showcase-city .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-state .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-country .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-trip .board-showcase-backdrop {
  object-position: 62% 50%;
}

body[data-step="debate"] .board-showcase-smartphone .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-tv .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-console .board-showcase-backdrop {
  object-position: 62% 50%;
}

body[data-step="debate"] .board-showcase-greatestmovie .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-greatestvideogame .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-streaming .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-moviefranchise .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-gamefranchise .board-showcase-backdrop {
  object-position: 63% 50%;
}

body[data-step="debate"] .board-showcase-mortgage .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-creditcard .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-insurance .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-bankaccount .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-economy .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-business .board-showcase-backdrop {
  object-position: 56% 50%;
}

body[data-step="debate"] .board-showcase-homewarranty .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-homebuilders .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-barndominium .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-contractorleads .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-metalbuildings .board-showcase-backdrop,
body[data-step="debate"] .board-showcase-homeproject .board-showcase-backdrop {
  object-position: 55% 50%;
}

body[data-step="debate"] .board-showcase-subjects {
  gap: 9px;
}

body[data-step="debate"] .board-showcase-poster .showcase-caption {
  display: none;
}

body[data-step="debate"] .board-showcase-poster .board-showcase-head small,
body[data-step="debate"] .board-showcase-poster .board-showcase-head em,
body[data-step="debate"] .board-showcase-poster .board-showcase-strip {
  display: none !important;
}

body[data-step="debate"] .board-showcase-poster .board-showcase-stage {
  padding: 15px;
}

body[data-step="debate"] .board-showcase-poster:not(.has-backdrop) .board-showcase-head strong {
  font-size: clamp(1.02rem, 1.44vw, 1.28rem);
}

body[data-step="debate"] .board-showcase-hot .showcase-caption strong {
  white-space: normal;
}

body[data-step="debate"] .hot-card,
body[data-step="debate"] .hot-section-primary .hot-card {
  grid-template-columns: minmax(0, 1.86fr) minmax(200px, 0.64fr) !important;
  border-radius: var(--dv-radius-md) !important;
}

body[data-step="debate"] .hot-card > span:not(.hot-art),
body[data-step="debate"] .hot-section-primary .hot-card > span:not(.hot-art) {
  gap: 11px;
}

body[data-step="debate"] .hot-card strong,
body[data-step="debate"] .hot-section-primary .hot-card strong {
  max-width: 12ch;
}

body[data-step="debate"] .hot-card em,
body[data-step="debate"] .hot-section-primary .hot-card em {
  max-width: 22ch;
  font-size: 0.86rem;
}

@media (max-width: 1050px) {
  body[data-step="debate"] .section-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body[data-step="debate"] .section-card-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-step="debate"] .poster-card {
    grid-template-rows: 200px auto !important;
  }

  body[data-step="debate"] .poster-art {
    height: 200px;
  }

  body[data-step="debate"] .hot-card,
  body[data-step="debate"] .hot-section-primary .hot-card {
    grid-template-columns: 1fr !important;
  }
}

/* Board covers should read as actual comparison tools, not stock-image ads. */
body[data-step="debate"] .editorial-board-overlay {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: clamp(126px, 38%, 260px);
  z-index: 3;
  display: grid;
  gap: 8px;
  color: #fffaf0;
}

body[data-step="debate"] .editorial-board-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body[data-step="debate"] .editorial-board-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px 7px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--dv-radius-sm);
  padding: 7px 8px;
  background:
    linear-gradient(135deg, rgba(16, 42, 46, 0.74), rgba(16, 42, 46, 0.44)),
    rgba(16, 42, 46, 0.62);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 250, 240, 0.12);
  backdrop-filter: blur(10px);
}

body[data-step="debate"] .editorial-board-option b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #102a2e;
  background: var(--dv-gold);
  font-size: 0.58rem;
  font-weight: 720;
  line-height: 1;
}

body[data-step="debate"] .editorial-board-option strong,
body[data-step="debate"] .editorial-board-option em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .editorial-board-option strong {
  color: #fffaf0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

body[data-step="debate"] .editorial-board-option em {
  grid-column: 2;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 430;
  line-height: 1;
}

body[data-step="debate"] .editorial-board-meta {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--dv-radius-sm);
  padding: 7px 8px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  color: var(--dv-ink);
  backdrop-filter: blur(10px);
}

body[data-step="debate"] .editorial-board-meta strong {
  color: var(--dv-ink);
  font-size: 0.66rem;
  font-weight: 680;
  line-height: 1;
}

body[data-step="debate"] .editorial-board-meta span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body[data-step="debate"] .editorial-board-meta i {
  border-left: 3px solid var(--accent, var(--dv-teal));
  border-radius: 2px;
  padding: 3px 5px 3px 6px;
  color: rgba(16, 42, 46, 0.68);
  background: color-mix(in srgb, var(--accent, var(--dv-teal)) 9%, #fffaf0);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 560;
  line-height: 1;
}

body[data-step="debate"] .editorial-board-overlay-hot {
  right: 18px;
  bottom: 18px;
  left: clamp(210px, 45%, 410px);
  gap: 10px;
}

body[data-step="debate"] .editorial-board-overlay-hot .editorial-board-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-step="debate"] .editorial-board-overlay-hot .editorial-board-option {
  min-height: 48px;
  padding: 8px 9px;
}

body[data-step="debate"] .editorial-board-overlay-hot .editorial-board-option strong {
  font-size: 0.78rem;
}

body[data-step="debate"] .editorial-board-overlay-hot .editorial-board-option em {
  font-size: 0.58rem;
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-head {
  z-index: 4;
}

body[data-step="debate"] .board-showcase.has-backdrop .board-showcase-stage {
  background:
    linear-gradient(90deg, rgba(4, 51, 56, 0.78) 0%, rgba(4, 51, 56, 0.44) 42%, rgba(4, 51, 56, 0.12) 78%),
    linear-gradient(180deg, rgba(8, 26, 29, 0.04), rgba(8, 26, 29, 0.22)) !important;
}

body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-head {
  max-width: 54%;
}

body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-head strong {
  font-size: clamp(1.08rem, 1.6vw, 1.46rem);
}

body[data-step="debate"] .brand-field {
  background:
    radial-gradient(circle at 17% 18%, rgba(198, 162, 75, 0.18), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(7, 84, 93, 0.13), transparent 32%),
    linear-gradient(135deg, #f7fbf8 0%, #fffaf0 100%);
}

body[data-step="debate"] .brand-field::before {
  opacity: 0.16;
}

body[data-step="debate"] .brand-field-heading {
  border-bottom-color: rgba(7, 84, 93, 0.12);
}

body[data-step="debate"] .brand-field-heading strong {
  font-size: clamp(0.92rem, 1.34vw, 1.22rem);
  font-weight: 700;
  text-transform: none;
}

body[data-step="debate"] .brand-field-heading em {
  max-width: 20ch;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.62rem;
}

body[data-step="debate"] .brand-logo-grid,
body[data-step="debate"] .brand-field-hot .brand-logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

body[data-step="debate"] .brand-logo-tile {
  border-color: rgba(7, 84, 93, 0.1);
  border-radius: var(--dv-radius-sm);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .brand-logo-box img,
body[data-step="debate"] .brand-field-poster .brand-logo-box img {
  width: min(58px, 58%);
  height: min(58px, 58%);
}

body[data-step="debate"] .brand-factor-strip {
  display: flex;
  gap: 5px;
  overflow: hidden;
  color: transparent;
}

body[data-step="debate"] .brand-factor-strip::before {
  color: rgba(16, 42, 46, 0.66);
  content: "Reasoning  /  Writing  /  Coding  /  Research  /  Speed  /  Integrations";
  font-size: 0.58rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 760px) {
  body[data-step="debate"] .editorial-board-overlay,
  body[data-step="debate"] .editorial-board-overlay-hot {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  body[data-step="debate"] .board-showcase-poster.has-backdrop .board-showcase-head {
    max-width: 72%;
  }
}

/* Homepage editorial flow: fewer boxes, more space, same polish as the hero. */
body[data-step="debate"] .home-editorial {
  position: relative;
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  width: min(1180px, calc(100% - 44px)) !important;
  margin: clamp(42px, 6vw, 78px) auto !important;
}

body[data-step="debate"] .home-editorial::before {
  position: absolute;
  z-index: -1;
  inset: 8% -6% -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 35% 34%, rgba(211, 239, 231, 0.72), rgba(255, 250, 240, 0) 62%),
    radial-gradient(ellipse at 78% 72%, rgba(198, 162, 75, 0.16), rgba(255, 250, 240, 0) 50%);
  content: "";
}

body[data-step="debate"] .home-editorial-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  align-items: end;
  gap: clamp(20px, 5vw, 72px);
}

body[data-step="debate"] .home-editorial-lead .kicker {
  color: var(--dv-red);
}

body[data-step="debate"] .home-editorial-lead h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--dv-ink);
  font-size: clamp(2.15rem, 4vw, 4.6rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

body[data-step="debate"] .home-editorial-lead > p {
  max-width: 39ch;
  margin: 0 0 0.28rem;
  color: rgba(16, 42, 46, 0.66);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 390;
  line-height: 1.5;
}

body[data-step="debate"] .home-editorial-panel {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

body[data-step="debate"] .home-formula-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.09);
  border-radius: var(--dv-radius-md);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 250, 240, 0.48), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(198, 162, 75, 0.22), transparent 32%),
    linear-gradient(135deg, #07545d 0%, #24463e 55%, #7e1d27 100%);
  box-shadow: 0 26px 70px rgba(7, 84, 93, 0.16);
}

body[data-step="debate"] .home-formula-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
}

body[data-step="debate"] .formula-card,
body[data-step="debate"] .formula-result {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--dv-radius-md);
  color: #fffaf0;
  background: rgba(16, 42, 46, 0.46);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

body[data-step="debate"] .formula-card {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  width: min(78%, 330px);
  padding: 14px;
}

body[data-step="debate"] .formula-card-one {
  top: 34px;
  left: 28px;
}

body[data-step="debate"] .formula-card-two {
  top: 155px;
  right: 26px;
}

body[data-step="debate"] .formula-card-three {
  right: 56px;
  bottom: 44px;
}

body[data-step="debate"] .formula-card b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--dv-ink);
  background: var(--dv-gold);
  font-size: 0.86rem;
  font-weight: 720;
}

body[data-step="debate"] .formula-card strong {
  overflow: hidden;
  color: #fffaf0;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .formula-card em {
  overflow: hidden;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 410;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-step="debate"] .formula-card::after {
  position: absolute;
  right: -42px;
  bottom: -28px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.46), transparent);
  content: "";
  transform: rotate(25deg);
}

body[data-step="debate"] .formula-result {
  left: 32px;
  bottom: 34px;
  width: min(48%, 230px);
  gap: 7px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--dv-ink);
}

body[data-step="debate"] .formula-result small {
  color: rgba(126, 29, 39, 0.82);
  font-size: 0.66rem;
  font-weight: 670;
  letter-spacing: 0;
}

body[data-step="debate"] .formula-result strong {
  color: var(--dv-ink);
  font-size: 1.16rem;
  font-weight: 680;
  line-height: 1;
}

body[data-step="debate"] .formula-result i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(7, 84, 93, 0.14);
}

body[data-step="debate"] .formula-result i:nth-of-type(1) {
  width: 94%;
  background: var(--dv-teal);
}

body[data-step="debate"] .formula-result i:nth-of-type(2) {
  width: 72%;
  background: var(--dv-red);
}

body[data-step="debate"] .formula-result i:nth-of-type(3) {
  width: 52%;
  background: var(--dv-gold);
}

body[data-step="debate"] .home-path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body[data-step="debate"] .home-path-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label action"
    "title action"
    "summary chips";
  gap: 8px 22px;
  align-content: center;
  min-height: 132px;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: var(--dv-radius-md);
  padding: clamp(18px, 2vw, 24px);
  color: var(--dv-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.88)),
    radial-gradient(circle at 98% 10%, rgba(198, 162, 75, 0.14), transparent 38%);
  box-shadow: 0 14px 32px rgba(16, 42, 46, 0.055);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .home-path-card:hover {
  border-color: rgba(126, 29, 39, 0.2);
  box-shadow: 0 22px 52px rgba(16, 42, 46, 0.105);
  transform: translateY(-2px);
}

body[data-step="debate"] .home-path-card .brief-label {
  grid-area: label;
  width: fit-content;
  border-radius: var(--dv-radius-sm);
  color: var(--dv-red);
  background: rgba(126, 29, 39, 0.08);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

body[data-step="debate"] .home-path-card strong {
  grid-area: title;
  max-width: 23ch;
  color: var(--dv-ink);
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  font-weight: 650;
  line-height: 1.05;
}

body[data-step="debate"] .home-path-card > span:not(.brief-label) {
  grid-area: summary;
  max-width: 48ch;
  color: rgba(16, 42, 46, 0.63);
  font-size: 0.86rem;
  font-weight: 390;
  line-height: 1.42;
}

body[data-step="debate"] .home-path-card small {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
  min-width: 176px;
}

body[data-step="debate"] .home-path-card small b {
  border: 1px solid rgba(7, 84, 93, 0.1);
  border-radius: var(--dv-radius-sm);
  padding: 5px 7px;
  color: rgba(16, 42, 46, 0.68);
  background: rgba(232, 248, 241, 0.72);
  font-size: 0.62rem;
  font-weight: 560;
  line-height: 1;
}

body[data-step="debate"] .home-path-card em {
  grid-area: action;
  align-self: center;
  justify-self: end;
  color: var(--dv-teal);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 640;
  white-space: nowrap;
}

body[data-step="debate"] .home-path-card em::after {
  content: " \2192";
}

body[data-step="debate"] .category-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(20px, 5vw, 72px);
  width: min(1180px, calc(100% - 44px)) !important;
  margin: clamp(42px, 5vw, 70px) auto clamp(18px, 2.8vw, 34px) !important;
  padding-top: clamp(18px, 2.5vw, 34px);
  border-top: 1px solid rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .category-lead h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3.7rem);
  font-weight: 650 !important;
  line-height: 0.98;
}

body[data-step="debate"] .category-lead > p {
  max-width: 42ch;
  margin: 0 0 0.25rem;
  color: rgba(16, 42, 46, 0.64);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  body[data-step="debate"] .home-editorial-lead,
  body[data-step="debate"] .home-editorial-panel,
  body[data-step="debate"] .category-lead {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-formula-visual {
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .home-editorial {
    width: min(100% - 24px, 560px) !important;
  }

  body[data-step="debate"] .home-editorial-lead h2,
  body[data-step="debate"] .category-lead h2 {
    max-width: 13ch;
  }

  body[data-step="debate"] .home-path-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "summary"
      "chips"
      "action";
  }

  body[data-step="debate"] .home-path-card small {
    justify-content: start;
  }

  body[data-step="debate"] .formula-card,
  body[data-step="debate"] .formula-result {
    right: 16px;
    left: 16px;
    width: auto;
  }

  body[data-step="debate"] .formula-card-two {
    top: 145px;
  }

  body[data-step="debate"] .formula-card-three {
    bottom: 36px;
  }

  body[data-step="debate"] .formula-result {
    display: none;
  }
}

/* Homepage spotlight carousel: light, simple, front-and-center. */
body[data-step="debate"] .home-spotlight-section {
  width: min(1120px, calc(100% - 36px)) !important;
  margin: clamp(42px, 6vw, 78px) auto !important;
  gap: clamp(14px, 2.4vw, 24px);
  text-align: center;
}

body[data-step="debate"] .home-spotlight-section::before {
  inset: 18% -8% -18%;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(218, 244, 236, 0.72), rgba(255, 250, 240, 0) 62%),
    radial-gradient(ellipse at 24% 74%, rgba(198, 162, 75, 0.12), rgba(255, 250, 240, 0) 46%);
}

body[data-step="debate"] .home-spotlight-lead {
  display: grid;
  justify-items: center;
  gap: 7px;
  max-width: 680px;
  margin: 0 auto;
}

body[data-step="debate"] .home-spotlight-lead .kicker {
  margin: 0;
  color: var(--dv-red);
}

body[data-step="debate"] .home-spotlight-lead h2 {
  max-width: none;
  margin: 0;
  color: var(--dv-ink);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.06;
}

body[data-step="debate"] .home-spotlight-lead p:not(.kicker) {
  max-width: 52ch;
  margin: 0;
  color: rgba(16, 42, 46, 0.64);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 390;
  line-height: 1.48;
}

body[data-step="debate"] .home-spotlight-carousel {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  overflow: hidden;
  padding: clamp(8px, 1.5vw, 18px) 0 4px;
  isolation: isolate;
}

body[data-step="debate"] .home-spotlight-carousel::before {
  position: absolute;
  z-index: -1;
  inset: 18% 5% 12%;
  border-radius: var(--dv-radius-md);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0), rgba(225, 247, 239, 0.78) 18%, rgba(225, 247, 239, 0.84) 82%, rgba(255, 250, 240, 0)),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9), transparent 68%);
  content: "";
}

body[data-step="debate"] .home-spotlight-stage {
  position: relative;
  width: 100%;
  height: clamp(308px, 31vw, 398px);
}

body[data-step="debate"] .home-spotlight-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--spotlight-z, 1);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(640px, 72vw);
  height: clamp(270px, 27vw, 344px);
  overflow: hidden;
  border: 1px solid rgba(16, 42, 46, 0.1);
  border-radius: var(--dv-radius-md);
  color: var(--dv-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 56px rgba(16, 42, 46, 0.12);
  opacity: var(--spotlight-opacity, 0.42);
  text-align: left;
  text-decoration: none;
  transform: translate3d(calc(-50% + var(--spotlight-x, 0px)), -50%, 0) scale(var(--spotlight-scale, 0.72));
  transform-origin: center;
  transition:
    opacity 420ms ease,
    box-shadow 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

body[data-step="debate"] .home-spotlight-card.is-active {
  border-color: rgba(7, 84, 93, 0.16);
  box-shadow: 0 28px 72px rgba(16, 42, 46, 0.16);
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) {
  pointer-events: none;
  filter: saturate(0.86);
}

body[data-step="debate"] .home-spotlight-card.is-far {
  filter: blur(0.2px) saturate(0.76);
}

body[data-step="debate"] .home-spotlight-media {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(232, 248, 241, 0.82), rgba(255, 250, 240, 0.95));
}

body[data-step="debate"] .home-spotlight-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82));
  content: "";
  pointer-events: none;
}

body[data-step="debate"] .home-spotlight-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

body[data-step="debate"] .home-spotlight-brand-art {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-step="debate"] .home-spotlight-card .brand-field {
  background:
    radial-gradient(circle at 16% 18%, rgba(198, 162, 75, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 246, 240, 0.94));
}

body[data-step="debate"] .home-spotlight-card .brand-field-heading em,
body[data-step="debate"] .home-spotlight-card .brand-factor-strip {
  display: none;
}

body[data-step="debate"] .home-spotlight-card .brand-field-spotlight .brand-field-panel {
  inset: clamp(14px, 1.8vw, 22px);
  grid-template-rows: minmax(0, 1fr);
  padding-top: clamp(52px, 5.4vw, 76px);
}

body[data-step="debate"] .home-spotlight-card .brand-field-spotlight .brand-field-heading,
body[data-step="debate"] .home-spotlight-card .brand-field-spotlight .brand-factor-strip {
  display: none;
}

body[data-step="debate"] .home-spotlight-card .brand-field-spotlight .brand-logo-grid {
  min-height: 0;
  align-items: stretch;
}

body[data-step="debate"] .home-spotlight-card .brand-field-spotlight .brand-logo-tile {
  padding: clamp(9px, 1.1vw, 13px) clamp(7px, 1vw, 10px) clamp(8px, 0.9vw, 10px);
}

body[data-step="debate"] .home-spotlight-card .brand-field-spotlight .brand-logo-box img {
  width: min(68px, 68%);
  height: min(68px, 68%);
}

body[data-step="debate"] .home-spotlight-copy {
  display: grid;
  gap: 6px;
  padding: clamp(13px, 1.6vw, 18px) clamp(15px, 2vw, 22px) clamp(15px, 1.8vw, 20px);
  background: rgba(255, 255, 255, 0.98);
}

body[data-step="debate"] .home-spotlight-copy small {
  width: fit-content;
  border-radius: var(--dv-radius-xs);
  padding: 3px 6px;
  color: var(--dv-red);
  background: rgba(126, 29, 39, 0.08);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
}

body[data-step="debate"] .home-spotlight-copy strong {
  color: var(--dv-ink);
  font-size: clamp(1.1rem, 1.65vw, 1.52rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.03;
}

body[data-step="debate"] .home-spotlight-copy span {
  max-width: 52ch;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.86rem;
  font-weight: 390;
  line-height: 1.38;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy span {
  display: none;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy {
  padding-bottom: 16px;
}

body[data-step="debate"] .home-spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

body[data-step="debate"] .home-spotlight-dots button {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(7, 84, 93, 0.44);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    width 160ms ease;
}

body[data-step="debate"] .home-spotlight-dots button.is-active {
  width: 22px;
  border-color: var(--dv-teal);
  background: var(--dv-teal);
}

body[data-step="debate"] .home-spotlight-arrow {
  position: absolute;
  top: 50%;
  z-index: 30;
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 54px);
  height: clamp(42px, 4vw, 54px);
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 241, 0.92));
  box-shadow: 0 18px 42px rgba(16, 42, 46, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

body[data-step="debate"] .home-spotlight-arrow::before {
  width: 12px;
  height: 12px;
  border-top: 2.5px solid var(--dv-teal);
  border-right: 2.5px solid var(--dv-teal);
  content: "";
}

body[data-step="debate"] .home-spotlight-prev {
  left: clamp(6px, 2.2vw, 34px);
}

body[data-step="debate"] .home-spotlight-prev::before {
  margin-left: 4px;
  transform: rotate(-135deg);
}

body[data-step="debate"] .home-spotlight-next {
  right: clamp(6px, 2.2vw, 34px);
}

body[data-step="debate"] .home-spotlight-next::before {
  margin-right: 4px;
  transform: rotate(45deg);
}

body[data-step="debate"] .home-spotlight-arrow:hover,
body[data-step="debate"] .home-spotlight-arrow:focus-visible {
  border-color: rgba(126, 29, 39, 0.24);
  box-shadow: 0 22px 48px rgba(16, 42, 46, 0.18);
  transform: translateY(-50%) scale(1.04);
}

body[data-step="debate"] .home-spotlight-arrow:hover::before,
body[data-step="debate"] .home-spotlight-arrow:focus-visible::before {
  border-color: var(--dv-red);
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-spotlight-section {
    width: min(100% - 22px, 620px) !important;
    margin: clamp(34px, 9vw, 52px) auto !important;
  }

  body[data-step="debate"] .home-spotlight-lead h2 {
    max-width: none;
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  body[data-step="debate"] .home-spotlight-stage {
    height: 338px;
  }

  body[data-step="debate"] .home-spotlight-card {
    width: min(86vw, 430px);
    height: 296px;
  }

  body[data-step="debate"] .home-spotlight-copy strong {
    font-size: 1.12rem;
  }

  body[data-step="debate"] .home-spotlight-copy span {
    font-size: 0.8rem;
  }

  body[data-step="debate"] .home-spotlight-prev {
    left: 2px;
  }

  body[data-step="debate"] .home-spotlight-next {
    right: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
body[data-step="debate"] .home-spotlight-card {
    transition: none;
  }
}

/* CTA pass: make Start feel like a real button and keep it one clean brand color. */
body[data-step="debate"] .home-spotlight-copy em,
body[data-step="debate"] .poster-card .card-action,
body[data-step="debate"] .hot-card .card-action,
body[data-step="debate"] .hot-section-primary .card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 128px !important;
  min-height: 54px !important;
  border: 1px solid rgba(126, 29, 39, 0.18) !important;
  border-radius: 5px !important;
  padding: 0 24px !important;
  color: #fffaf0 !important;
  background: #a82634 !important;
  box-shadow: 0 16px 34px rgba(126, 29, 39, 0.18) !important;
  font-size: 0.98rem !important;
  font-style: normal !important;
  font-weight: 680 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease !important;
}

body[data-step="debate"] .home-spotlight-card:hover .home-spotlight-copy em,
body[data-step="debate"] .home-spotlight-card:focus-visible .home-spotlight-copy em,
body[data-step="debate"] .poster-card:hover .card-action,
body[data-step="debate"] .poster-card:focus-visible .card-action,
body[data-step="debate"] .hot-card:hover .card-action,
body[data-step="debate"] .hot-card:focus-visible .card-action {
  border-color: rgba(126, 29, 39, 0.28) !important;
  background: #8f202b !important;
  box-shadow: 0 20px 42px rgba(126, 29, 39, 0.24) !important;
  transform: translateY(-1px);
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy em {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-spotlight-copy em,
  body[data-step="debate"] .poster-card .card-action,
  body[data-step="debate"] .hot-card .card-action {
    min-width: 100% !important;
  }
}

body[data-step="debate"] .hero-copy h1 em {
  color: inherit;
  font-family: inherit;
  font-style: italic;
  font-weight: inherit;
}

/* Final hero framing: top-left copy anchor and full person in the photo. */
body[data-step="debate"] .stage-copy {
  align-items: start;
  min-height: clamp(292px, 28vw, 338px) !important;
  max-height: 348px;
  padding: clamp(34px, 4.2vw, 56px) clamp(30px, 4.2vw, 56px) clamp(34px, 4vw, 52px) !important;
}

body[data-step="debate"] .hero-copy {
  align-self: start;
  justify-self: start;
  gap: 8px;
  max-width: min(620px, 52vw);
  padding: 0 !important;
}

body[data-step="debate"] .hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 3.75vw, 3.6rem);
  line-height: 1;
}

body[data-step="debate"] .hero-copy .stage-subtitle {
  margin: 0;
}

body[data-step="debate"] .hero-search {
  margin-top: 2px;
}

body[data-step="debate"] .hero-photo {
  width: 58%;
  min-width: 560px;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.15), rgba(255, 255, 255, 0)),
    #eef7f2;
}

body[data-step="debate"] .hero-photo img {
  object-fit: contain;
  object-position: right center;
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    padding: 28px 22px 30px !important;
  }

  body[data-step="debate"] .hero-copy {
    max-width: 100%;
  }

  body[data-step="debate"] .hero-copy h1,
  body[data-step="debate"] .hero-copy .stage-subtitle {
    white-space: normal;
  }
}

body[data-step="debate"] .portal-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--dv-radius-sm);
  padding: 9px 10px;
  color: rgba(16, 42, 46, 0.78);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

body[data-step="debate"] .portal-menu a:hover,
body[data-step="debate"] .portal-menu a:focus-visible {
  border-color: rgba(7, 84, 93, 0.14);
  color: var(--dv-teal);
  background: rgba(232, 248, 241, 0.72);
}

body[data-step="debate"] .home-category-directory {
  position: relative;
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  width: min(1120px, calc(100% - 36px));
  margin: clamp(36px, 6vw, 78px) auto clamp(64px, 8vw, 108px);
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border-radius: var(--dv-radius-md);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 248, 240, 0.9), rgba(224, 248, 240, 0.28) 42%, rgba(255, 250, 240, 0) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.8));
}

body[data-step="debate"] .home-category-directory-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

body[data-step="debate"] .home-category-directory-head .kicker {
  margin: 0;
  color: var(--dv-red);
}

body[data-step="debate"] .home-category-directory-head h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--dv-ink);
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1;
}

body[data-step="debate"] .home-category-directory-head p:not(.kicker) {
  max-width: 56ch;
  margin: 0;
  color: rgba(16, 42, 46, 0.64);
  font-size: 0.98rem;
  font-weight: 390;
  line-height: 1.48;
}

body[data-step="debate"] .home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(12px, 1.6vw, 18px);
}

body[data-step="debate"] .home-category-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: var(--dv-radius-md);
  padding: clamp(16px, 2vw, 20px);
  color: var(--dv-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(16, 42, 46, 0.055);
  text-align: left;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .home-category-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 12%, rgba(232, 248, 241, 0.88), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(198, 162, 75, 0.1), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

body[data-step="debate"] .home-category-card:hover,
body[data-step="debate"] .home-category-card:focus-visible {
  border-color: rgba(7, 84, 93, 0.2);
  box-shadow: 0 20px 52px rgba(16, 42, 46, 0.095);
  transform: translateY(-2px);
}

body[data-step="debate"] .home-category-card:hover::before,
body[data-step="debate"] .home-category-card:focus-visible::before {
  opacity: 1;
}

body[data-step="debate"] .home-category-icon,
body[data-step="debate"] .home-category-copy,
body[data-step="debate"] .home-category-preview,
body[data-step="debate"] .home-category-card em {
  position: relative;
  z-index: 1;
}

body[data-step="debate"] .home-category-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  justify-self: start;
}

body[data-step="debate"] .home-category-icon .launch-illo-image {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

body[data-step="debate"] .home-category-copy {
  display: grid;
  align-content: start;
  gap: 5px;
}

body[data-step="debate"] .home-category-copy small {
  color: var(--dv-red);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
}

body[data-step="debate"] .home-category-copy strong {
  color: var(--dv-ink);
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.05;
}

body[data-step="debate"] .home-category-copy span {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.84rem;
  font-weight: 390;
  line-height: 1.35;
}

body[data-step="debate"] .home-category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body[data-step="debate"] .home-category-preview b {
  border: 1px solid rgba(7, 84, 93, 0.1);
  border-radius: var(--dv-radius-xs);
  padding: 5px 6px;
  color: rgba(16, 42, 46, 0.64);
  background: rgba(232, 248, 241, 0.7);
  font-size: 0.62rem;
  font-weight: 540;
  line-height: 1;
}

body[data-step="debate"] .home-category-card em {
  align-self: end;
  color: var(--dv-teal);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 640;
}

body[data-step="debate"] .home-category-card em::after {
  content: " \2192";
}

body[data-step="debate"] .home-suggest-link {
  justify-self: center;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: var(--dv-radius-sm);
  padding: 10px 14px;
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

body[data-step="debate"] .home-suggest-link:hover,
body[data-step="debate"] .home-suggest-link:focus-visible {
  border-color: rgba(126, 29, 39, 0.2);
  color: var(--dv-red);
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 1040px) {
  body[data-step="debate"] .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-category-directory {
    width: min(100% - 22px, 620px);
    padding: 20px 14px;
  }

  body[data-step="debate"] .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-step="debate"] .home-category-card {
    min-height: 230px;
    padding: 15px;
  }
}

@media (max-width: 520px) {
  body[data-step="debate"] .home-category-grid {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-category-card {
    min-height: 0;
  }
}

/* Homepage architecture pass: featured boards immediately after launch, map instead of repeat tiles. */
body[data-step="debate"] .launch-tile-shell {
  margin-bottom: clamp(26px, 4vw, 46px) !important;
}

body[data-step="debate"] .home-spotlight-section {
  margin: clamp(20px, 3.8vw, 46px) auto clamp(46px, 6vw, 76px) !important;
}

body[data-step="debate"] .home-spotlight-lead {
  max-width: 740px;
}

body[data-step="debate"] .home-spotlight-lead h2 {
  font-size: clamp(1.95rem, 3.5vw, 3.35rem);
  letter-spacing: 0;
}

body[data-step="debate"] .home-spotlight-lead p:not(.kicker) {
  max-width: 60ch;
}

body[data-step="debate"] .home-spotlight-stage {
  height: clamp(350px, 36vw, 468px);
}

body[data-step="debate"] .home-spotlight-card {
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(740px, 76vw);
  height: clamp(312px, 32vw, 414px);
  border-radius: 8px;
  box-shadow: 0 26px 74px rgba(16, 42, 46, 0.15);
}

body[data-step="debate"] .home-spotlight-card.is-active {
  box-shadow: 0 34px 88px rgba(16, 42, 46, 0.2);
}

body[data-step="debate"] .home-spotlight-media {
  min-height: 0;
  background: #102a2e;
}

body[data-step="debate"] .home-spotlight-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 42, 46, 0.72), rgba(16, 42, 46, 0.16) 34%, rgba(16, 42, 46, 0)),
    linear-gradient(90deg, rgba(16, 42, 46, 0.42), rgba(16, 42, 46, 0));
  content: "";
  pointer-events: none;
}

body[data-step="debate"] .home-spotlight-media::after {
  z-index: 1;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9));
}

body[data-step="debate"] .home-spotlight-media > img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

body[data-step="debate"] .home-spotlight-card.is-active .home-spotlight-media > img {
  animation: spotlight-image-drift 8s ease-in-out infinite alternate;
}

body[data-step="debate"] .home-spotlight-title {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2.2vw, 28px);
  z-index: 2;
  max-width: min(72%, 520px);
  color: #fffaf0;
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3.1vw, 3.15rem);
  font-weight: 680;
  line-height: 0.96;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

body[data-step="debate"] .home-spotlight-card[data-home-spotlight-id="aiassistant"] .home-spotlight-title {
  top: clamp(72px, 7vw, 86px);
  color: var(--dv-ink);
  text-shadow: 0 8px 24px rgba(255, 250, 240, 0.96);
}

body[data-step="debate"] .home-spotlight-card[data-home-spotlight-id="aiassistant"] .brand-field-spotlight .brand-field-panel {
  padding-top: clamp(96px, 9vw, 112px);
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-title {
  font-size: clamp(1.12rem, 2vw, 1.8rem);
}

body[data-step="debate"] .home-spotlight-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label action"
    "title action"
    "summary action";
  align-items: center;
  column-gap: 18px;
  padding: clamp(15px, 1.8vw, 22px) clamp(18px, 2.3vw, 28px);
}

body[data-step="debate"] .home-spotlight-copy small {
  grid-area: label;
}

body[data-step="debate"] .home-spotlight-copy strong {
  grid-area: title;
}

body[data-step="debate"] .home-spotlight-copy span {
  grid-area: summary;
}

body[data-step="debate"] .home-spotlight-copy em {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dv-red), var(--dv-teal));
  box-shadow: 0 14px 28px rgba(16, 42, 46, 0.14);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 650;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy em {
  display: none;
}

body[data-step="debate"] .home-category-directory {
  margin-top: clamp(46px, 7vw, 90px);
  padding: clamp(24px, 3.4vw, 38px);
}

body[data-step="debate"] .home-category-directory-head h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

body[data-step="debate"] .home-map-grid {
  display: grid;
  gap: 10px;
}

body[data-step="debate"] .home-map-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(300px, 1.42fr) minmax(96px, auto);
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  min-height: 94px;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 4px;
  padding: clamp(14px, 1.8vw, 20px);
  color: var(--dv-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 241, 0.35) 58%, rgba(255, 250, 240, 0.86));
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .home-map-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--dv-teal), var(--dv-red));
  content: "";
}

body[data-step="debate"] .home-map-row:hover,
body[data-step="debate"] .home-map-row:focus-visible {
  border-color: rgba(7, 84, 93, 0.22);
  box-shadow: 0 18px 42px rgba(16, 42, 46, 0.08);
  transform: translateY(-1px);
}

body[data-step="debate"] .home-map-title,
body[data-step="debate"] .home-map-lanes,
body[data-step="debate"] .home-map-cta {
  position: relative;
  z-index: 1;
}

body[data-step="debate"] .home-map-title {
  display: grid;
  gap: 4px;
}

body[data-step="debate"] .home-map-title small {
  color: var(--dv-red);
  font-size: 0.64rem;
  font-weight: 620;
  line-height: 1;
}

body[data-step="debate"] .home-map-title strong {
  color: var(--dv-ink);
  font-size: clamp(1.06rem, 1.45vw, 1.35rem);
  font-weight: 650;
  line-height: 1.05;
}

body[data-step="debate"] .home-map-title span {
  color: rgba(16, 42, 46, 0.6);
  font-size: 0.82rem;
  line-height: 1.32;
}

body[data-step="debate"] .home-map-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  align-items: center;
}

body[data-step="debate"] .home-map-lanes b {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 12px;
  color: rgba(16, 42, 46, 0.72);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 570;
  line-height: 1.12;
  text-align: left;
}

body[data-step="debate"] .home-map-lanes b::before {
  position: absolute;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--dv-gold);
  box-shadow: 0 0 0 4px rgba(198, 162, 75, 0.12);
  content: "";
}

body[data-step="debate"] .home-map-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 4px;
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .home-map-cta::after {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

body[data-step="debate"] .home-map-row:hover .home-map-cta,
body[data-step="debate"] .home-map-row:focus-visible .home-map-cta {
  border-color: rgba(126, 29, 39, 0.24);
  color: #fffaf0;
  background: linear-gradient(135deg, var(--dv-red), var(--dv-teal));
  transform: translateX(2px);
}

body[data-step="debate"] .home-map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body[data-step="debate"] .home-map-actions a,
body[data-step="debate"] .home-map-actions button {
  min-height: 42px;
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

body[data-step="debate"] .home-map-actions a:hover,
body[data-step="debate"] .home-map-actions button:hover {
  border-color: rgba(126, 29, 39, 0.2);
  color: var(--dv-red);
  background: #ffffff;
}

@keyframes spotlight-image-drift {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-8px, -5px, 0); }
}

@media (max-width: 880px) {
  body[data-step="debate"] .home-map-row {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-map-cta {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-spotlight-stage {
    height: 388px;
  }

  body[data-step="debate"] .home-spotlight-card {
    width: min(88vw, 460px);
    height: 342px;
  }

  body[data-step="debate"] .home-spotlight-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "summary"
      "action";
    align-items: start;
  }

  body[data-step="debate"] .home-spotlight-copy em {
    min-width: 100%;
  }

  body[data-step="debate"] .home-map-lanes {
    gap: 8px 14px;
  }
}

/* Directory placement pass: keep the map useful, but no longer make it part of the featured-board moment. */
body[data-step="debate"] .home-category-directory {
  width: min(1040px, calc(100% - 44px));
  margin: clamp(18px, 3vw, 36px) auto clamp(62px, 8vw, 104px);
  padding: clamp(20px, 3vw, 32px) 0 0;
  border-top: 1px solid rgba(16, 42, 46, 0.12);
  border-radius: 0;
  background: transparent;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  justify-items: start;
  align-items: end;
  max-width: none;
  text-align: left;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head .kicker {
  grid-column: 1 / -1;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head h2 {
  max-width: 18ch;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
}

body[data-step="debate"] .home-category-directory .home-category-directory-head p:not(.kicker) {
  justify-self: end;
  max-width: 42ch;
  font-size: 0.9rem;
}

body[data-step="debate"] .home-category-directory .home-map-grid {
  gap: 0;
  border-top: 1px solid rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .home-category-directory .home-map-row {
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 0;
  padding: 16px 0;
  background: transparent;
  box-shadow: none;
}

body[data-step="debate"] .home-category-directory .home-map-row::before {
  display: none;
}

body[data-step="debate"] .home-category-directory .home-map-row:hover,
body[data-step="debate"] .home-category-directory .home-map-row:focus-visible {
  border-color: rgba(16, 42, 46, 0.08);
  box-shadow: none;
  transform: none;
}

body[data-step="debate"] .home-category-directory .home-map-title small {
  font-size: 0.58rem;
}

body[data-step="debate"] .home-category-directory .home-map-title strong {
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
}

body[data-step="debate"] .home-category-directory .home-map-lanes b {
  font-size: 0.76rem;
}

body[data-step="debate"] .home-category-directory .home-map-cta {
  min-width: 82px;
  min-height: 34px;
  background: rgba(255, 255, 255, 0.62);
}

body[data-step="debate"] .home-category-directory .home-map-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

/* Codex taxonomy pass: make the product map show areas, lanes, boards, and factor language. */
body[data-step="debate"] .home-category-directory .home-map-row {
  grid-template-columns: minmax(180px, 0.64fr) minmax(320px, 1.4fr) minmax(180px, 0.62fr) auto;
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  min-height: 132px;
  padding: 18px 0;
}

body[data-step="debate"] .home-map-title em {
  margin-top: 5px;
  color: rgba(126, 29, 39, 0.74);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 690;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .home-category-directory .home-map-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-step="debate"] .home-map-lane {
  display: grid;
  gap: 4px;
  min-height: 54px;
  border: 1px solid rgba(7, 84, 93, 0.09);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.64);
}

body[data-step="debate"] .home-category-directory .home-map-lanes .home-map-lane b {
  padding: 0;
  color: rgba(5, 16, 20, 0.9);
  font-size: 0.72rem;
  font-weight: 790;
}

body[data-step="debate"] .home-category-directory .home-map-lanes .home-map-lane b::before {
  display: none;
}

body[data-step="debate"] .home-map-lane em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(16, 42, 46, 0.58);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 430;
  line-height: 1.2;
}

body[data-step="debate"] .home-map-factors {
  position: relative;
  z-index: 1;
  display: block;
  border-left: 1px solid rgba(16, 42, 46, 0.1);
  padding-left: 14px;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.72rem;
  font-weight: 430;
  line-height: 1.32;
}

body[data-step="debate"] .home-map-factors::before {
  display: block;
  margin-bottom: 5px;
  color: rgba(7, 84, 93, 0.86);
  content: "Sample factors";
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  body[data-step="debate"] .home-category-directory .home-map-row {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-map-factors {
    border-left: 0;
    border-top: 1px solid rgba(16, 42, 46, 0.08);
    padding: 10px 0 0;
  }
}

@media (max-width: 520px) {
  body[data-step="debate"] .home-category-directory .home-map-row {
    min-height: 0;
    padding: 17px 0;
  }

  body[data-step="debate"] .home-category-directory .home-map-lanes {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-map-lane {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-category-directory {
    width: min(100% - 28px, 620px);
  }

  body[data-step="debate"] .home-category-directory .home-category-directory-head {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-category-directory .home-category-directory-head p:not(.kicker) {
    justify-self: start;
  }
}

/* Homepage story pass: make the middle of the page explain the product with the same visual quality as the opener. */
body[data-step="debate"] .home-company-story,
body[data-step="debate"] .home-method-story {
  position: relative;
  width: min(1120px, calc(100% - 44px));
  margin: clamp(52px, 6vw, 92px) auto;
}

body[data-step="debate"] .home-company-story::before,
body[data-step="debate"] .home-method-story::before {
  position: absolute;
  inset: clamp(-22px, -2vw, -12px) calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  content: "";
}

body[data-step="debate"] .home-company-story::before {
  background:
    radial-gradient(circle at 78% 28%, rgba(222, 247, 240, 0.62), transparent 34%),
    radial-gradient(circle at 24% 72%, rgba(255, 250, 240, 0.92), transparent 38%);
}

body[data-step="debate"] .home-method-story::before {
  background:
    linear-gradient(90deg, rgba(222, 247, 240, 0.52), rgba(255, 250, 240, 0.25) 54%, rgba(255, 255, 255, 0)),
    radial-gradient(circle at 14% 46%, rgba(7, 84, 93, 0.08), transparent 36%);
}

body[data-step="debate"] .home-company-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(34px, 5.4vw, 84px);
  align-items: center;
}

body[data-step="debate"] .home-company-copy,
body[data-step="debate"] .home-method-copy {
  display: grid;
  gap: 17px;
}

body[data-step="debate"] .home-company-copy {
  max-width: 560px;
}

body[data-step="debate"] .home-company-copy .kicker,
body[data-step="debate"] .home-method-copy .kicker {
  margin: 0;
  color: var(--dv-red);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .home-company-copy h2,
body[data-step="debate"] .home-method-copy h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--dv-ink);
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2.12rem, 3.35vw, 3.68rem);
  font-weight: 610;
  line-height: 1.01;
}

body[data-step="debate"] .home-company-copy > p {
  max-width: 58ch;
  margin: 0;
  color: rgba(16, 42, 46, 0.68);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  font-weight: 390;
  line-height: 1.55;
}

body[data-step="debate"] .home-company-points {
  display: grid;
  gap: 13px;
  margin-top: 4px;
}

body[data-step="debate"] .home-company-points span {
  display: grid;
  gap: 3px;
  padding-left: 17px;
  border-left: 3px solid rgba(7, 84, 93, 0.18);
}

body[data-step="debate"] .home-company-points strong {
  color: var(--dv-ink);
  font-size: 0.98rem;
  font-weight: 650;
}

body[data-step="debate"] .home-company-points em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 390;
  line-height: 1.34;
}

body[data-step="debate"] .home-company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

body[data-step="debate"] .home-company-actions button,
body[data-step="debate"] .home-company-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(7, 84, 93, 0.22);
  border-radius: 4px;
  padding: 0 18px;
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 640;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

body[data-step="debate"] .home-company-actions button:hover,
body[data-step="debate"] .home-company-actions button:focus-visible,
body[data-step="debate"] .home-company-actions a:hover,
body[data-step="debate"] .home-company-actions a:focus-visible {
  border-color: rgba(126, 29, 39, 0.34);
  box-shadow: 0 14px 34px rgba(16, 42, 46, 0.1);
  transform: translateY(-1px);
}

body[data-step="debate"] .home-company-media {
  position: relative;
  min-height: clamp(390px, 40vw, 530px);
}

body[data-step="debate"] .home-company-media::before {
  position: absolute;
  inset: 10% 5% 4% 8%;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(222, 247, 240, 0.82), rgba(255, 250, 240, 0.18));
  box-shadow: 0 36px 82px rgba(16, 42, 46, 0.1);
  content: "";
}

body[data-step="debate"] .home-company-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 24px 62px rgba(16, 42, 46, 0.13);
}

body[data-step="debate"] .home-company-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}

body[data-step="debate"] .home-company-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 42, 46, 0), rgba(16, 42, 46, 0.28)),
    linear-gradient(90deg, rgba(7, 84, 93, 0.12), rgba(255, 255, 255, 0));
  content: "";
}

body[data-step="debate"] .home-company-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 24px);
  border-radius: 3px;
  padding: 6px 9px;
  color: var(--dv-ink);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 12px 26px rgba(16, 42, 46, 0.12);
  font-size: 0.76rem;
  font-weight: 690;
  line-height: 1.15;
}

body[data-step="debate"] .home-company-photo-large {
  inset: 0 6% 18% 8%;
}

body[data-step="debate"] .home-company-photo-one {
  right: 0;
  bottom: 0;
  width: 47%;
  height: 32%;
}

body[data-step="debate"] .home-company-photo-two {
  top: 8%;
  right: 0;
  width: 37%;
  height: 29%;
}

body[data-step="debate"] .home-vision-card {
  position: absolute;
  bottom: 18%;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 5px;
  width: min(240px, 46%);
  border: 1px solid rgba(7, 84, 93, 0.13);
  border-radius: 5px;
  padding: 15px 16px;
  color: var(--dv-ink);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 22px 50px rgba(16, 42, 46, 0.16);
  backdrop-filter: blur(14px);
}

body[data-step="debate"] .home-vision-card small {
  color: var(--dv-red);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-step="debate"] .home-vision-card strong {
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 660;
  line-height: 1.08;
}

body[data-step="debate"] .home-vision-card span {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.78rem;
  font-weight: 520;
}

body[data-step="debate"] .home-method-story {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(340px, 0.86fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 54px);
  border-top: 1px solid rgba(16, 42, 46, 0.08);
  border-bottom: 1px solid rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .home-method-visual {
  position: relative;
  min-height: clamp(340px, 34vw, 460px);
  overflow: hidden;
  border-radius: 5px;
  background: var(--dv-teal);
  box-shadow: 0 28px 72px rgba(16, 42, 46, 0.12);
}

body[data-step="debate"] .home-method-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

body[data-step="debate"] .home-method-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.74), rgba(7, 84, 93, 0.28) 45%, rgba(126, 29, 39, 0.18)),
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(16, 42, 46, 0.28));
  content: "";
}

body[data-step="debate"] .home-method-card {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(20px, 3vw, 34px);
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(300px, calc(100% - 40px));
  border: 1px solid rgba(7, 84, 93, 0.13);
  border-radius: 5px;
  padding: 17px;
  color: var(--dv-ink);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 22px 50px rgba(16, 42, 46, 0.18);
  backdrop-filter: blur(12px);
}

body[data-step="debate"] .home-method-card small {
  color: var(--dv-red);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-step="debate"] .home-method-card strong {
  font-size: 1.22rem;
  font-weight: 670;
  line-height: 1;
}

body[data-step="debate"] .home-method-card span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 29px;
  overflow: hidden;
  border-radius: 4px;
  padding: 0 10px;
  background: rgba(7, 84, 93, 0.08);
}

body[data-step="debate"] .home-method-card b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(7, 84, 93, 0.92), rgba(212, 169, 69, 0.82));
}

body[data-step="debate"] .home-method-card em {
  position: relative;
  z-index: 1;
  color: var(--dv-ink);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 720;
}

body[data-step="debate"] .home-method-factors {
  position: absolute;
  top: clamp(18px, 2.8vw, 30px);
  left: clamp(18px, 2.8vw, 30px);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(390px, calc(100% - 44px));
}

body[data-step="debate"] .home-method-factors span {
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 3px;
  padding: 7px 10px;
  color: #fffaf0;
  background: rgba(7, 84, 93, 0.62);
  box-shadow: 0 14px 26px rgba(16, 42, 46, 0.14);
  font-size: 0.74rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

body[data-step="debate"] .home-method-copy h2 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.05vw, 3.2rem);
}

body[data-step="debate"] .home-method-steps {
  display: grid;
  border-top: 1px solid rgba(16, 42, 46, 0.1);
}

body[data-step="debate"] .home-method-steps article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 13px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .home-method-steps b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--dv-red), var(--dv-teal));
  font-size: 0.78rem;
  font-weight: 720;
}

body[data-step="debate"] .home-method-steps strong {
  color: var(--dv-ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.12;
}

body[data-step="debate"] .home-method-steps span {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.88rem;
  line-height: 1.38;
}

body[data-step="debate"] .home-usecase-section {
  position: relative;
  width: min(1120px, calc(100% - 44px));
  margin: clamp(56px, 6vw, 96px) auto clamp(72px, 7vw, 118px);
  padding: clamp(18px, 3vw, 34px);
}

body[data-step="debate"] .home-usecase-section::before {
  position: absolute;
  inset: -34px calc(50% - 50vw) -44px;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, rgba(222, 247, 240, 0.82), transparent 32%),
    radial-gradient(circle at 88% 64%, rgba(255, 250, 240, 0.96), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(222, 247, 240, 0.32), rgba(255, 255, 255, 0));
  content: "";
}

body[data-step="debate"] .home-usecase-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 62px);
  align-items: end;
  margin-bottom: clamp(22px, 3.2vw, 36px);
}

body[data-step="debate"] .home-usecase-head .kicker {
  grid-column: 1 / -1;
  margin: 0 0 -4px;
  color: var(--dv-red);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .home-usecase-head h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--dv-ink);
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2.05rem, 3.5vw, 3.55rem);
  font-weight: 610;
  line-height: 1.01;
}

body[data-step="debate"] .home-usecase-head p:not(.kicker) {
  max-width: 56ch;
  margin: 0;
  color: rgba(16, 42, 46, 0.66);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  font-weight: 390;
  line-height: 1.55;
}

body[data-step="debate"] .home-usecase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

body[data-step="debate"] .home-usecase-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 5px;
  color: var(--dv-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 74px rgba(16, 42, 46, 0.1);
  text-decoration: none;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

body[data-step="debate"] .home-usecase-card:hover,
body[data-step="debate"] .home-usecase-card:focus-visible {
  border-color: rgba(126, 29, 39, 0.22);
  box-shadow: 0 34px 92px rgba(16, 42, 46, 0.14);
  transform: translateY(-2px);
}

body[data-step="debate"] .home-usecase-card-1 {
  grid-row: 1 / span 2;
  grid-template-rows: minmax(330px, 1fr) auto;
}

body[data-step="debate"] .home-usecase-card:not(.home-usecase-card-1) {
  grid-template-columns: minmax(180px, 0.86fr) minmax(220px, 1fr);
}

body[data-step="debate"] .home-usecase-media {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  background: var(--dv-teal);
}

body[data-step="debate"] .home-usecase-card-1 .home-usecase-media {
  min-height: 360px;
}

body[data-step="debate"] .home-usecase-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 42, 46, 0.03), rgba(16, 42, 46, 0.22)),
    linear-gradient(90deg, rgba(7, 84, 93, 0.18), rgba(255, 255, 255, 0));
  content: "";
}

body[data-step="debate"] .home-usecase-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.01);
  transition: transform 300ms ease;
}

body[data-step="debate"] .home-usecase-card:hover .home-usecase-media img,
body[data-step="debate"] .home-usecase-card:focus-visible .home-usecase-media img {
  transform: scale(1.045);
}

body[data-step="debate"] .home-usecase-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 28px);
}

body[data-step="debate"] .home-usecase-copy small {
  width: max-content;
  max-width: 100%;
  border-radius: 3px;
  padding: 4px 7px;
  color: var(--dv-red);
  background: rgba(126, 29, 39, 0.08);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .home-usecase-copy strong {
  max-width: 17ch;
  color: var(--dv-ink);
  font-size: clamp(1.22rem, 1.8vw, 1.9rem);
  font-weight: 650;
  line-height: 1.03;
}

body[data-step="debate"] .home-usecase-card:not(.home-usecase-card-1) .home-usecase-copy strong {
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
}

body[data-step="debate"] .home-usecase-copy > span {
  color: rgba(16, 42, 46, 0.64);
  font-size: 0.94rem;
  font-weight: 390;
  line-height: 1.45;
}

body[data-step="debate"] .home-usecase-copy i {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-style: normal;
}

body[data-step="debate"] .home-usecase-copy b {
  border: 1px solid rgba(7, 84, 93, 0.16);
  border-radius: 3px;
  padding: 5px 8px;
  color: rgba(16, 42, 46, 0.72);
  background: rgba(222, 247, 240, 0.44);
  font-size: 0.7rem;
  font-weight: 630;
  line-height: 1;
}

body[data-step="debate"] .home-usecase-copy em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 128px;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 5px;
  padding: 0 18px;
  color: #fffaf0;
  background: #a82634;
  box-shadow: 0 16px 34px rgba(126, 29, 39, 0.18);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 680;
  line-height: 1;
}

@media (max-width: 920px) {
  body[data-step="debate"] .home-company-story,
  body[data-step="debate"] .home-method-story {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-company-media {
    min-height: clamp(360px, 64vw, 520px);
  }

  body[data-step="debate"] .home-usecase-head,
  body[data-step="debate"] .home-usecase-grid {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .home-usecase-card-1 {
    grid-row: auto;
  }

  body[data-step="debate"] .home-usecase-card:not(.home-usecase-card-1) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .home-company-story,
  body[data-step="debate"] .home-method-story,
  body[data-step="debate"] .home-usecase-section {
    width: min(100% - 28px, 560px);
  }

  body[data-step="debate"] .home-company-copy h2,
  body[data-step="debate"] .home-method-copy h2,
  body[data-step="debate"] .home-usecase-head h2 {
    max-width: 16ch;
    font-size: clamp(1.78rem, 10vw, 2.7rem);
  }

  body[data-step="debate"] .home-company-photo-two {
    display: none;
  }

  body[data-step="debate"] .home-company-photo-large {
    inset: 0 0 23% 0;
  }

  body[data-step="debate"] .home-company-photo-one {
    width: 66%;
    height: 36%;
  }

  body[data-step="debate"] .home-vision-card {
    bottom: 13%;
    width: min(250px, 68%);
  }

  body[data-step="debate"] .home-method-visual {
    min-height: 390px;
  }

  body[data-step="debate"] .home-usecase-section {
    padding-inline: 0;
  }

  body[data-step="debate"] .home-usecase-card-1 .home-usecase-media {
    min-height: 300px;
  }

  body[data-step="debate"] .home-usecase-copy em {
    width: 100%;
  }
}

/* Hero vertical spacing pass: keep the opening tight and bring the tiles into view sooner. */
body[data-step="debate"] .stage-copy {
  min-height: clamp(238px, 21vw, 276px) !important;
  max-height: 286px !important;
  padding:
    clamp(28px, 3.35vw, 42px)
    clamp(30px, 4.2vw, 56px)
    clamp(26px, 2.8vw, 34px) !important;
}

body[data-step="debate"] .hero-copy {
  gap: 6px;
}

body[data-step="debate"] .hero-search {
  margin-top: 4px;
}

body[data-step="debate"] .launch-tile-shell {
  margin-top: clamp(18px, 2vw, 24px) !important;
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    min-height: 0 !important;
    max-height: none !important;
    padding: 26px 22px 28px !important;
  }
}

/* Universal Start CTA lock: same strong primary button across the homepage and calculators. */
body[data-step="debate"] .home-spotlight-copy em,
body[data-step="debate"] .home-usecase-copy em,
body[data-step="debate"] .poster-card .card-action,
body[data-step="debate"] .hot-card .card-action,
body[data-step="debate"] .hot-section-primary .card-action {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 148px !important;
  min-height: 58px !important;
  border: 1px solid rgba(126, 29, 39, 0.26) !important;
  border-radius: 5px !important;
  padding: 0 24px !important;
  overflow: hidden !important;
  color: #fffaf0 !important;
  background: #a82634 !important;
  background-image: linear-gradient(180deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0)) !important;
  box-shadow:
    0 18px 36px rgba(126, 29, 39, 0.24),
    inset 0 1px 0 rgba(255, 250, 240, 0.22) !important;
  font-size: 0.98rem !important;
  font-style: normal !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(16, 42, 46, 0.16) !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    filter 160ms ease !important;
}

body[data-step="debate"] .home-spotlight-copy em::before,
body[data-step="debate"] .home-usecase-copy em::before,
body[data-step="debate"] .poster-card .card-action::before,
body[data-step="debate"] .hot-card .card-action::before,
body[data-step="debate"] .hot-section-primary .card-action::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: linear-gradient(120deg, rgba(255, 250, 240, 0.42), transparent 34%, transparent 70%, rgba(255, 250, 240, 0.22));
  pointer-events: none;
  content: "";
}

body[data-step="debate"] .home-spotlight-copy em::after,
body[data-step="debate"] .home-usecase-copy em::after,
body[data-step="debate"] .poster-card .card-action::after,
body[data-step="debate"] .hot-card .card-action::after,
body[data-step="debate"] .hot-section-primary .card-action::after {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

body[data-step="debate"] .home-spotlight-card:hover .home-spotlight-copy em,
body[data-step="debate"] .home-spotlight-card:focus-visible .home-spotlight-copy em,
body[data-step="debate"] .home-usecase-card:hover .home-usecase-copy em,
body[data-step="debate"] .home-usecase-card:focus-visible .home-usecase-copy em,
body[data-step="debate"] .poster-card:hover .card-action,
body[data-step="debate"] .poster-card:focus-visible .card-action,
body[data-step="debate"] .hot-card:hover .card-action,
body[data-step="debate"] .hot-card:focus-visible .card-action {
  border-color: rgba(126, 29, 39, 0.34) !important;
  background: #8f202b !important;
  background-image: linear-gradient(180deg, rgba(255, 250, 240, 0.13), rgba(255, 250, 240, 0)) !important;
  box-shadow:
    0 22px 46px rgba(126, 29, 39, 0.3),
    inset 0 1px 0 rgba(255, 250, 240, 0.24) !important;
  filter: saturate(1.05) contrast(1.02);
  transform: translateY(-1px);
}

/* Featured boards should read as product surfaces, not sponsored cards. */
body[data-step="debate"] .home-spotlight-card,
body[data-step="debate"] .home-spotlight-card.is-active {
  grid-template-rows: minmax(0, 1.08fr) auto !important;
  border-radius: 6px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 239, 0.98)) !important;
  box-shadow:
    0 28px 68px rgba(16, 42, 46, 0.13),
    0 0 0 1px rgba(7, 84, 93, 0.04) !important;
}

body[data-step="debate"] .home-spotlight-card.is-active {
  border-color: rgba(7, 84, 93, 0.2) !important;
}

body[data-step="debate"] .home-spotlight-media::after {
  height: 56% !important;
  background:
    linear-gradient(180deg, transparent 8%, rgba(16, 42, 46, 0.1) 46%, rgba(251, 248, 239, 0.94) 100%) !important;
}

body[data-step="debate"] .home-spotlight-title {
  top: clamp(18px, 2vw, 28px) !important;
  left: clamp(18px, 2vw, 28px) !important;
  max-width: 12ch !important;
  color: #fffaf0 !important;
  font-size: clamp(2rem, 3.6vw, 3.4rem) !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  line-height: 0.92 !important;
  text-shadow: 0 12px 28px rgba(16, 42, 46, 0.34) !important;
}

body[data-step="debate"] .home-spotlight-board-mark {
  position: absolute;
  right: clamp(14px, 1.8vw, 22px);
  bottom: clamp(14px, 1.8vw, 22px);
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #fffaf0;
  text-align: right;
  text-shadow: 0 10px 24px rgba(16, 42, 46, 0.3);
}

body[data-step="debate"] .home-spotlight-board-mark b {
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-step="debate"] .home-spotlight-board-mark i {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 430;
}

body[data-step="debate"] .home-spotlight-copy {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 8px 18px !important;
  border-top: 1px solid rgba(7, 84, 93, 0.08) !important;
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2.2vw, 28px) !important;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.98)) !important;
}

body[data-step="debate"] .home-spotlight-copy small,
body[data-step="debate"] .home-spotlight-copy strong,
body[data-step="debate"] .home-spotlight-copy > span:not(.home-spotlight-metrics) {
  grid-column: 1;
}

body[data-step="debate"] .home-spotlight-copy small {
  padding: 0 !important;
  color: var(--dv-red) !important;
  background: transparent !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body[data-step="debate"] .home-spotlight-copy strong {
  font-size: clamp(1.24rem, 1.8vw, 1.8rem) !important;
  font-weight: 600 !important;
}

body[data-step="debate"] .home-spotlight-copy > span:not(.home-spotlight-metrics) {
  max-width: 56ch !important;
  color: rgba(16, 42, 46, 0.66) !important;
}

body[data-step="debate"] .home-spotlight-metrics {
  grid-column: 1;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

body[data-step="debate"] .home-spotlight-metrics b {
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(7, 84, 93, 0.86);
  background: rgba(232, 248, 241, 0.62);
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1;
}

body[data-step="debate"] .home-spotlight-copy em,
body[data-step="debate"] .home-spotlight-card:hover .home-spotlight-copy em,
body[data-step="debate"] .home-spotlight-card:focus-visible .home-spotlight-copy em {
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  align-self: center !important;
  min-width: 0 !important;
  min-height: 38px !important;
  border: 1px solid rgba(7, 84, 93, 0.18) !important;
  border-radius: 999px !important;
  padding: 0 14px 0 16px !important;
  color: var(--dv-teal) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  background-image: none !important;
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.08) !important;
  font-size: 0.76rem !important;
  font-weight: 680 !important;
  text-shadow: none !important;
  transform: none !important;
}

body[data-step="debate"] .home-spotlight-copy em::before {
  display: none !important;
}

body[data-step="debate"] .home-spotlight-copy em::after {
  width: 8px !important;
  height: 8px !important;
  border-width: 1.5px !important;
}

body[data-step="debate"] .home-spotlight-card:hover .home-spotlight-copy em,
body[data-step="debate"] .home-spotlight-card:focus-visible .home-spotlight-copy em {
  color: #fffaf0 !important;
  border-color: var(--dv-teal) !important;
  background: var(--dv-teal) !important;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy em,
body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-metrics {
  display: none !important;
}

/* Homepage story clarity pass: keep the visuals, make the message scan faster. */
body[data-step="debate"] .home-company-copy > p,
body[data-step="debate"] .home-usecase-head > p:not(.kicker) {
  max-width: 44ch !important;
  color: rgba(16, 42, 46, 0.68) !important;
  font-size: clamp(0.98rem, 1.12vw, 1.1rem) !important;
  line-height: 1.42 !important;
}

body[data-step="debate"] .home-company-points {
  gap: 8px !important;
}

body[data-step="debate"] .home-company-points span {
  padding: 9px 0 !important;
}

body[data-step="debate"] .home-company-points em,
body[data-step="debate"] .home-method-steps span,
body[data-step="debate"] .home-usecase-copy > span {
  max-width: 42ch !important;
  color: rgba(16, 42, 46, 0.62) !important;
  font-size: 0.82rem !important;
  line-height: 1.34 !important;
}

body[data-step="debate"] .home-method-copy {
  gap: 14px !important;
}

body[data-step="debate"] .home-method-steps {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  border-top: 1px solid rgba(16, 42, 46, 0.1);
}

body[data-step="debate"] .home-method-steps article {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 3px 12px !important;
  align-items: start !important;
  border-bottom: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-radius: 0 !important;
  padding: 11px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-step="debate"] .home-method-steps article:last-child {
  border-bottom: 0 !important;
}

body[data-step="debate"] .home-method-steps b {
  grid-row: 1 / span 2;
  width: 25px !important;
  height: 25px !important;
  border-radius: 5px !important;
}

body[data-step="debate"] .home-usecase-copy {
  gap: 8px !important;
}

body[data-step="debate"] .home-usecase-copy strong {
  max-width: 15ch !important;
  font-size: clamp(1.05rem, 1.45vw, 1.34rem) !important;
  font-weight: 620 !important;
  line-height: 1.05 !important;
}

body[data-step="debate"] .home-usecase-copy i {
  display: none !important;
}

body[data-step="debate"] .home-usecase-copy em {
  margin-top: 4px !important;
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-spotlight-copy {
    grid-template-columns: 1fr !important;
  }

  body[data-step="debate"] .home-spotlight-copy em {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
  }

  body[data-step="debate"] .home-spotlight-title {
    font-size: clamp(1.7rem, 8vw, 2.6rem) !important;
  }
}

/* Results what-if controls: let the final ranking update without leaving the reveal. */
[data-stage="results"] .winner-spotlight:has(.result-tuner) {
  grid-template-columns: minmax(168px, 0.34fr) minmax(260px, 1fr) minmax(330px, 430px);
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 28px);
}

[data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
  grid-template-columns: minmax(176px, 0.34fr) minmax(260px, 1fr) minmax(360px, 470px);
}

.result-tuner {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border-left: 1px solid rgba(16, 42, 46, 0.1);
  padding-left: clamp(16px, 2vw, 24px);
}

.result-tuner.is-many {
  gap: 9px;
}

.result-tuner-head {
  display: grid;
  gap: 4px;
}

.result-tuner-head .kicker {
  margin: 0;
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 620;
  text-transform: none;
}

.result-tuner-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.45vw, 1.34rem);
  font-weight: 640;
  line-height: 1;
}

.result-tuner-head span {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.78rem;
  line-height: 1.28;
}

.result-tuner-grid {
  display: grid;
  grid-template-columns: repeat(var(--tune-columns, 3), minmax(0, 1fr));
  gap: 8px;
}

.result-tuner.is-many .result-tuner-grid {
  gap: 7px;
}

.result-tune-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  gap: 8px;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 6px;
  padding: 9px 7px 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(255, 255, 255, 0.9)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(16, 42, 46, 0.045);
}

.result-tuner.is-many .result-tune-card {
  height: 134px;
  min-height: 134px;
  padding: 8px 6px 7px;
}

.result-tune-card::before {
  position: absolute;
  inset: auto 0 0;
  height: var(--level, 0%);
  opacity: 0.12;
  background: var(--accent);
  content: "";
  pointer-events: none;
  transition: height 120ms ease;
}

.result-tune-card::after {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0.88;
  content: "";
}

.result-tune-card.is-tuning {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(16, 42, 46, 0.08));
  box-shadow: 0 14px 30px rgba(16, 42, 46, 0.08);
}

.result-tune-copy,
.result-tune-control {
  position: relative;
  z-index: 1;
}

.result-tune-copy {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  text-align: center;
}

.result-tuner.is-many .result-tune-copy {
  min-height: 36px;
}

.result-tune-copy strong {
  color: var(--ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.72rem;
  font-weight: 640;
  line-height: 1.04;
  text-overflow: ellipsis;
}

.result-tuner.is-many .result-tune-copy strong {
  font-size: 0.66rem;
}

.result-tune-copy span {
  color: rgba(16, 42, 46, 0.58);
  font-size: 0.58rem;
  font-weight: 560;
}

.result-tune-control {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 78px;
}

.result-tuner.is-many .result-tune-control {
  min-height: 66px;
}

.result-tune-range {
  width: 30px;
  height: 74px;
  margin: 0;
  accent-color: var(--accent);
  cursor: grab;
  writing-mode: vertical-lr;
  direction: rtl;
}

.result-tuner.is-many .result-tune-range {
  width: 28px;
  height: 62px;
}

.result-tune-range:active {
  cursor: grabbing;
}

.result-tune-control em {
  color: var(--ink);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 680;
}

.result-tuner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-tuner-reset,
.result-tuner-refine {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 5px;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 640;
}

.result-tuner-reset {
  color: var(--teal);
  background: rgba(255, 250, 240, 0.72);
}

.result-tuner-refine {
  color: #fffaf0;
  border-color: rgba(126, 29, 39, 0.32);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.1);
}

.result-tuner-reset:hover,
.result-tuner-reset:focus-visible,
.result-tuner-refine:hover,
.result-tuner-refine:focus-visible {
  border-color: rgba(126, 29, 39, 0.24);
}

.result-tuner-reset:hover,
.result-tuner-reset:focus-visible {
  background: #fffaf0;
  color: var(--red);
}

.result-tuner-refine:hover,
.result-tuner-refine:focus-visible {
  filter: saturate(1.08) contrast(1.02);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  [data-stage="results"] .winner-spotlight:has(.result-tuner) {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .result-tuner {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(16, 42, 46, 0.1);
    padding: 16px 0 0;
  }

  .result-tuner-grid {
    grid-template-columns: repeat(var(--tune-columns, 4), minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .result-tuner-grid {
    grid-auto-columns: 98px;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .result-tune-card {
    min-height: 126px;
    scroll-snap-align: start;
  }

  .result-tuner.is-many .result-tune-card {
    min-height: 126px;
  }
}

/* Footer origin badge: small trust marker, shared with category pages. */
.site-footer .footer-flag,
.footer-flag {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.68rem;
  font-weight: 640;
  line-height: 1;
  white-space: nowrap;
}

.footer-flag img {
  display: block;
  width: 32px;
  height: auto;
  border: 1px solid rgba(16, 42, 46, 0.1);
  box-shadow: 0 6px 14px rgba(16, 42, 46, 0.08);
}

body[data-step="debate"] .site-footer {
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.5fr) auto;
}

body[data-step="debate"] .site-footer .footer-flag {
  justify-self: end;
}

@media (max-width: 760px) {
  body[data-step="debate"] .site-footer {
    grid-template-columns: 1fr;
  }

  body[data-step="debate"] .site-footer .footer-nav,
  body[data-step="debate"] .site-footer .footer-flag {
    justify-content: flex-start;
    justify-self: start;
  }
}

/* Unified navigation: the same menu/header treatment across home and every Decision Board. */
.app-header,
body[data-step="debate"] .app-header {
  grid-template-columns: 34px minmax(152px, 194px) minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-height: 72px !important;
  padding: 9px clamp(10px, 1.6vw, 20px) !important;
  border-bottom: 1px solid rgba(16, 42, 46, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
}

.menu-toggle,
body[data-step="debate"] .menu-toggle {
  display: inline-flex !important;
  grid-column: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 32px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.menu-toggle span,
body[data-step="debate"] .menu-toggle span {
  display: block;
  width: 18px !important;
  height: 2px !important;
  border-radius: 999px;
  background: var(--dv-teal) !important;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1),
body[data-step="debate"] .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2),
body[data-step="debate"] .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3),
body[data-step="debate"] .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand-lockup,
body[data-step="debate"] .brand-lockup,
body[data-step="debate"] .app-header .brand-lockup {
  grid-column: 2 !important;
  width: clamp(158px, 15.5vw, 194px) !important;
  height: 54px !important;
}

.header-actions,
body[data-step="debate"] .header-actions,
body[data-step="debate"] .app-header .header-actions {
  display: block !important;
  grid-column: 4 !important;
  justify-self: end !important;
}

.site-nav button,
body[data-step="debate"] .site-nav button {
  min-height: 38px !important;
  border-radius: 4px !important;
  padding: 0 15px !important;
  color: var(--dv-teal) !important;
  background: #ffffff !important;
  font-family: Inter, Aptos, "Segoe UI", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 560 !important;
  text-transform: none !important;
}

.portal-menu,
body[data-step="debate"] .portal-menu,
body[data-step="debate"] .app-header .portal-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: clamp(10px, 1.6vw, 20px) !important;
  z-index: 100 !important;
  display: none !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  width: min(380px, calc(100vw - 20px)) !important;
  max-height: min(620px, calc(100vh - 94px)) !important;
  overflow: auto !important;
  padding: 9px !important;
  border: 1px solid rgba(16, 42, 46, 0.11) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.98)),
    #ffffff !important;
  box-shadow: 0 28px 70px rgba(16, 42, 46, 0.18) !important;
}

.app-header.is-menu-open .portal-menu,
body[data-step="debate"] .app-header.is-menu-open .portal-menu {
  display: grid !important;
}

.portal-menu a,
.portal-menu button,
body[data-step="debate"] .portal-menu a,
body[data-step="debate"] .portal-menu button,
body[data-step="debate"] .app-header .portal-menu a,
body[data-step="debate"] .app-header .portal-menu button {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: stretch !important;
  min-height: 54px !important;
  width: 100% !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  padding: 9px 10px !important;
  color: var(--dv-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
}

.portal-menu a::after,
.portal-menu button::after,
body[data-step="debate"] .app-header .portal-menu a::after,
body[data-step="debate"] .app-header .portal-menu button::after {
  display: none !important;
}

.portal-menu-section {
  margin: 6px 2px 2px;
  color: rgba(126, 29, 39, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.portal-menu-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--dv-teal), var(--dv-red));
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
}

.portal-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portal-menu-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-menu-copy em {
  overflow: hidden;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 430;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-menu a:hover,
.portal-menu a:focus-visible,
.portal-menu button:hover,
.portal-menu button:focus-visible,
.portal-menu a.is-active,
.portal-menu button.is-active,
body[data-step="debate"] .portal-menu a:hover,
body[data-step="debate"] .portal-menu a:focus-visible,
body[data-step="debate"] .portal-menu button:hover,
body[data-step="debate"] .portal-menu button:focus-visible,
body[data-step="debate"] .portal-menu a.is-active,
body[data-step="debate"] .portal-menu button.is-active {
  border-color: rgba(7, 84, 93, 0.12) !important;
  color: var(--dv-teal) !important;
  background: linear-gradient(135deg, rgba(232, 248, 241, 0.9), rgba(255, 250, 240, 0.82)) !important;
}

.portal-menu a.is-active .portal-menu-copy em,
.portal-menu button.is-active .portal-menu-copy em {
  color: rgba(16, 42, 46, 0.7);
}

.portal-menu-info {
  margin-top: 5px;
  border-top-color: rgba(16, 42, 46, 0.08) !important;
}

@media (max-width: 580px) {
  .app-header,
  body[data-step="debate"] .app-header {
    grid-template-columns: 30px minmax(126px, 146px) minmax(0, 1fr) auto !important;
    min-height: 64px !important;
  }

  .brand-lockup,
  body[data-step="debate"] .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    width: 142px !important;
    height: 48px !important;
  }

  .site-nav button,
  body[data-step="debate"] .site-nav button {
    min-height: 34px !important;
    padding-inline: 9px !important;
    font-size: 0.7rem !important;
  }
}

/* Hero composition pass: more open, with the copy block balanced inside the teal field. */
body[data-step="debate"] .stage-copy {
  --hero-edge: clamp(44px, 4.05vw, 58px);
  align-items: center !important;
  align-content: start !important;
  min-height: clamp(260px, 19vw, 276px) !important;
  max-height: 284px !important;
  padding: var(--hero-edge) var(--hero-edge) !important;
}

body[data-step="debate"] .hero-copy {
  gap: 8px !important;
  max-width: min(720px, 58vw) !important;
}

body[data-step="debate"] .hero-copy h1 {
  line-height: 1.02 !important;
}

body[data-step="debate"] .hero-copy .stage-subtitle {
  margin-top: 0 !important;
  line-height: 1.28 !important;
}

body[data-step="debate"] .hero-search {
  margin-top: 8px !important;
  max-width: min(600px, 52vw) !important;
}

body[data-step="debate"] .hero-search input {
  caret-color: rgba(16, 42, 46, 0.5) !important;
}

body[data-step="debate"] .hero-search.is-placeholder-typing::after {
  position: absolute;
  top: 50%;
  left: var(--hero-search-cursor-left, 118px);
  z-index: 3;
  width: 2px;
  height: 1.1em;
  border-radius: 999px;
  background: rgba(16, 42, 46, 0.5);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  animation: hero-search-cursor-blink 980ms steps(1, end) infinite;
}

@keyframes hero-search-cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

body[data-step="debate"] .launch-tile-shell {
  margin-top: clamp(24px, 2.6vw, 34px) !important;
}

@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    --hero-edge: clamp(26px, 7vw, 42px);
    min-height: clamp(252px, 56vw, 330px) !important;
    max-height: none !important;
    padding: var(--hero-edge) !important;
  }

  body[data-step="debate"] .hero-search {
    max-width: 100% !important;
  }
}

/* Rank-stage composition: keep the focus on priority order without exposing model math. */
[data-stage="rank"] .rank-stack {
  width: min(1080px, 100%);
  margin-inline: auto;
  overflow: visible !important;
}

[data-stage="rank"] .order-workbench {
  gap: clamp(12px, 1.5vw, 18px);
}

[data-stage="rank"] .order-rank-layout {
  display: grid;
  grid-template-columns: minmax(420px, 660px) minmax(300px, 340px);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
  justify-content: center;
  min-height: 0;
}

[data-stage="rank"] .order-lane {
  max-height: min(58vh, 575px);
  overflow: auto;
  padding-right: 6px;
}

.order-sidecar {
  position: sticky;
  top: 92px;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(16, 42, 46, 0.09);
  border-radius: var(--dv-radius-md);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 246, 0.92)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(16, 42, 46, 0.065);
}

[data-stage="rank"] .stage-actions {
  position: relative;
  z-index: 5;
}

.order-sidecar-head {
  display: grid;
  gap: 6px;
}

.order-sidecar-head h3 {
  margin: 0;
  color: var(--dv-ink);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 620;
  line-height: 1.03;
}

.order-sidecar-head p:not(.kicker) {
  margin: 0;
  color: rgba(16, 42, 46, 0.66);
  font-size: 0.82rem;
  font-weight: 390;
  line-height: 1.36;
}

.order-sidecar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.order-sidecar-stats span {
  display: grid;
  gap: 3px;
  min-height: 64px;
  border: 1px solid rgba(7, 84, 93, 0.09);
  border-radius: var(--dv-radius-sm);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.76);
}

.order-sidecar-stats b {
  color: var(--dv-teal);
  font-size: 1.36rem;
  font-weight: 650;
  line-height: 1;
}

.order-sidecar-stats em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(16, 42, 46, 0.6);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 520;
  line-height: 1.15;
}

.order-formula-preview {
  display: none;
  gap: 7px;
}

.order-formula-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(16, 42, 46, 0.08));
  border-radius: var(--dv-radius-sm);
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.78);
}

.order-formula-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  display: none;
  width: var(--level, 0%);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  content: "";
}

.order-formula-row i,
.order-formula-row b,
.order-formula-row em {
  position: relative;
  z-index: 1;
}

.order-formula-row i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 650;
}

.order-formula-row b {
  overflow: hidden;
  color: var(--dv-ink);
  font-size: 0.74rem;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-formula-row em {
  color: var(--accent);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 680;
  text-align: right;
}

.order-edit-factors {
  justify-self: start;
  min-height: 36px;
  border: 1px solid rgba(126, 29, 39, 0.2);
  border-radius: var(--dv-radius-sm);
  padding: 0 13px;
  color: var(--dv-red);
  background: #fffaf0;
  font-size: 0.76rem;
  font-weight: 620;
}

.order-edit-factors:hover,
.order-edit-factors:focus-visible {
  color: #fffaf0;
  background: var(--dv-red);
}

@media (max-width: 940px) {
  [data-stage="rank"] .order-rank-layout {
    grid-template-columns: 1fr;
  }

  .order-sidecar {
    position: static;
  }
}

@media (max-width: 620px) {
  [data-stage="rank"] .order-lane {
    max-height: none;
    overflow: visible;
  }

  .order-sidecar-stats {
    grid-template-columns: 1fr;
  }
}

/* Result-page cleanup: rankings stay readable, while research links live with the winner. */
[data-stage="results"] .result-card {
  grid-template-columns: 46px minmax(0, 1fr) !important;
}

[data-stage="results"] .result-card > div {
  min-width: 0;
}

[data-stage="results"] .result-actions,
[data-stage="results"] .score-value,
.source-video-dock,
.winner-corner-video {
  display: none !important;
}

[data-stage="results"] .site-footer {
  width: min(1180px, 100%);
  margin: clamp(28px, 4vw, 52px) auto 0;
}

/* Footer alignment: keep brand, links, and USA marker in one deliberate row. */
.site-footer,
body[data-step="debate"] .site-footer,
[data-stage="results"] .site-footer {
  grid-template-columns: minmax(260px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px clamp(18px, 2.2vw, 28px) !important;
  padding: 10px 12px !important;
}

.site-footer .footer-brand {
  min-width: 0 !important;
}

.site-footer .footer-brand span {
  max-width: 54ch;
  white-space: normal !important;
}

.site-footer .footer-nav {
  justify-content: flex-end !important;
}

.site-footer .footer-flag {
  grid-column: auto !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
}

@media (max-width: 860px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-columns: 1fr auto !important;
  }

  .site-footer .footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start !important;
  }

  .site-footer .footer-flag {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-columns: 1fr !important;
  }

  .site-footer .footer-nav,
  .site-footer .footer-flag {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-content: flex-start !important;
    justify-self: start !important;
  }
}

/* Decision-step window pass: give measure selection the same presence across every board. */
[data-stage="factors"] .stage-copy,
[data-stage="factors"] .stage-actions {
  max-width: min(1240px, 100%);
}

[data-stage="factors"] .factor-board {
  width: min(1240px, 100%);
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.34fr);
  gap: clamp(22px, 3.2vw, 42px);
}

[data-stage="factors"] .factor-zone {
  min-height: clamp(430px, 58vh, 690px);
  max-height: min(720px, calc(100vh - 236px));
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--dv-radius-md);
}

[data-stage="factors"] .zone-label {
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

[data-stage="factors"] .zone-label strong {
  font-size: clamp(1.12rem, 1.45vw, 1.55rem);
}

[data-stage="factors"] .factor-rack {
  gap: 12px;
}

[data-stage="factors"] .factor-token {
  min-height: 70px;
  padding: 12px 14px;
}

[data-stage="factors"] .selected-rack {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-content: start;
}

[data-stage="factors"] .endzone-empty {
  min-height: clamp(300px, 42vh, 520px);
}

@media (max-width: 700px) {
  [data-stage="factors"] .factor-board {
    grid-template-columns: 1fr;
  }

  [data-stage="factors"] .factor-zone {
    min-height: 360px;
    max-height: none;
  }

  [data-stage="factors"] .selected-rack {
    grid-template-columns: 1fr;
  }
}

/* Action visibility pass: controls must never hide behind tall panes or browser zoom. */
.app-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.goat-console,
.stage {
  min-height: 0;
}

[data-stage="factors"],
[data-stage="rank"] {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  overflow: hidden !important;
  padding-bottom: clamp(10px, 1.4vw, 18px) !important;
}

[data-stage="factors"] .factor-board {
  align-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
}

[data-stage="factors"] .factor-zone {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

[data-stage="factors"] .factor-rack {
  min-height: 0 !important;
  overflow: auto !important;
  padding-bottom: 10px !important;
}

[data-stage="factors"] .endzone-empty {
  min-height: min(300px, 100%) !important;
}

[data-stage="rank"] .rank-stack {
  align-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

[data-stage="rank"] .order-workbench {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

[data-stage="rank"] .order-rank-layout {
  align-items: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
}

[data-stage="rank"] .order-lane,
[data-stage="rank"] .order-sidecar {
  max-height: none !important;
  min-height: 0 !important;
  overflow: auto !important;
}

[data-stage="factors"] .stage-actions,
[data-stage="rank"] .stage-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 40 !important;
  flex: 0 0 auto !important;
  min-height: max-content !important;
  padding-top: clamp(8px, 1.2vw, 14px) !important;
  padding-bottom: 4px !important;
  background:
    linear-gradient(180deg, rgba(244, 234, 210, 0), rgba(244, 234, 210, 0.98) 30%, rgba(244, 234, 210, 1));
}

[data-stage="results"] .stage-actions {
  position: sticky;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid rgba(16, 42, 46, 0.08);
  padding-top: 10px;
  padding-bottom: 8px;
  background:
    linear-gradient(180deg, rgba(244, 234, 210, 0), rgba(244, 234, 210, 0.96) 38%, rgba(244, 234, 210, 1));
}

@media (max-height: 760px) and (min-width: 701px) {
  [data-stage="factors"] .factor-token {
    min-height: 60px !important;
    padding-block: 9px !important;
  }

  [data-stage="factors"] .factor-zone {
    padding: 14px !important;
  }

  [data-stage="factors"] .stage-copy h1,
  [data-stage="rank"] .stage-copy h1 {
    font-size: clamp(2rem, 4vw, 3.55rem) !important;
  }
}

@media (max-width: 700px) {
  [data-stage="factors"] {
    grid-template-rows: auto auto auto !important;
    overflow: auto !important;
  }

  [data-stage="factors"] .factor-board {
    height: auto !important;
  }

  [data-stage="factors"] .factor-zone {
    height: auto !important;
    min-height: 300px !important;
  }

  [data-stage="factors"] .stage-actions {
    position: sticky !important;
    bottom: 0;
  }
}

/* Open rank-stage pass: keep controls visible without trapping content in mini scroll panes. */
[data-stage="rank"] {
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

[data-stage="rank"] .rank-stack,
[data-stage="rank"] .order-workbench,
[data-stage="rank"] .order-rank-layout {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

[data-stage="rank"] .rank-stack {
  width: min(1240px, 100%) !important;
}

[data-stage="rank"] .order-rank-layout {
  grid-template-columns: minmax(520px, 1fr) minmax(320px, 0.48fr) !important;
  align-items: start !important;
}

[data-stage="rank"] .order-lane,
[data-stage="rank"] .order-sidecar {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

@media (max-width: 940px) {
  [data-stage="rank"] .order-rank-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Hero no-stack pass: narrow or short screens keep the photo blended, never as a card below the search. */
@media (max-width: 860px) {
  body[data-step="debate"] .stage-copy {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: clamp(258px, 38vw, 314px) !important;
    max-height: 324px !important;
    overflow: hidden !important;
    background:
      linear-gradient(90deg, rgba(7, 84, 93, 1) 0%, rgba(7, 84, 93, 0.96) 44%, rgba(7, 84, 93, 0.62) 66%, rgba(7, 84, 93, 0.12) 100%),
      var(--dv-teal) !important;
  }

  body[data-step="debate"] .hero-copy {
    position: relative !important;
    z-index: 3 !important;
    max-width: min(590px, 68vw) !important;
  }

  body[data-step="debate"] .hero-search {
    max-width: min(560px, 62vw) !important;
  }

  body[data-step="debate"] .hero-photo {
    position: absolute !important;
    inset: 0 0 0 auto !important;
    z-index: 1 !important;
    width: min(58%, 520px) !important;
    min-width: 360px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body[data-step="debate"] .hero-photo::before {
    background:
      linear-gradient(90deg, rgba(7, 84, 93, 1) 0%, rgba(7, 84, 93, 0.92) 20%, rgba(7, 84, 93, 0.46) 48%, rgba(7, 84, 93, 0.04) 78%),
      linear-gradient(180deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0)) !important;
  }

  body[data-step="debate"] .hero-photo img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: 70% center !important;
  }
}

@media (max-width: 620px) {
  body[data-step="debate"] .stage-copy {
    min-height: clamp(300px, 74vw, 390px) !important;
    max-height: none !important;
    background:
      linear-gradient(90deg, rgba(7, 84, 93, 1) 0%, rgba(7, 84, 93, 0.98) 62%, rgba(7, 84, 93, 0.66) 100%),
      var(--dv-teal) !important;
  }

  body[data-step="debate"] .hero-copy,
  body[data-step="debate"] .hero-search {
    max-width: 100% !important;
  }

  body[data-step="debate"] .hero-photo {
    width: 100% !important;
    min-width: 0 !important;
    opacity: 0.28;
  }

  body[data-step="debate"] .hero-photo::before {
    background:
      linear-gradient(90deg, rgba(7, 84, 93, 1), rgba(7, 84, 93, 0.78)),
      linear-gradient(180deg, rgba(7, 84, 93, 0.18), rgba(7, 84, 93, 0.72)) !important;
  }
}

@media (max-height: 650px) and (min-width: 701px) {
  body[data-step="debate"] .stage-copy {
    min-height: 252px !important;
    max-height: 278px !important;
    padding-top: clamp(28px, 4vh, 36px) !important;
    padding-bottom: clamp(24px, 4vh, 34px) !important;
  }
}

/* Codex design pass: keep decision flows readable and reversible. */
body[data-step="factors"] .app-shell,
body[data-step="rank"] .app-shell,
body[data-step="results"] .app-shell {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

body[data-step="factors"] .goat-console,
body[data-step="rank"] .goat-console,
body[data-step="results"] .goat-console {
  overflow: visible !important;
}

body[data-step="factors"] .stage.is-active,
body[data-step="rank"] .stage.is-active,
body[data-step="results"] .stage.is-active {
  position: relative !important;
  inset: auto !important;
  min-height: calc(100dvh - 96px);
  overflow: visible !important;
}

body[data-step="factors"] .stage-actions,
body[data-step="rank"] .stage-actions,
body[data-step="results"] .stage-actions {
  position: static !important;
  z-index: 1 !important;
  margin-top: clamp(14px, 2vw, 24px) !important;
  border-top: 1px solid rgba(16, 42, 46, 0.08);
  padding-top: clamp(12px, 1.4vw, 18px) !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

body[data-step="rank"] .order-rank-layout {
  padding-bottom: 0 !important;
}

body[data-step="results"] .winner-spotlight {
  position: relative;
  isolation: isolate;
}

body[data-step="results"] .winner-spotlight.is-reveal-celebrating {
  transform-origin: 50% 18%;
  animation: result-spotlight-pop 1180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-step="results"] .winner-spotlight.is-reveal-celebrating::before {
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.82), transparent 31%),
    radial-gradient(circle at 75% 18%, rgba(198, 162, 75, 0.34), transparent 34%),
    linear-gradient(120deg, rgba(177, 42, 51, 0.18), rgba(7, 84, 93, 0.12), rgba(198, 162, 75, 0.22));
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: result-reveal-aura 1280ms ease-out both;
}

body[data-step="results"] .winner-spotlight > * {
  position: relative;
  z-index: 2;
}

body[data-step="results"] .winner-spotlight.is-reveal-celebrating > .winner-media-panel,
body[data-step="results"] .winner-spotlight.is-reveal-celebrating > .winner-medal,
body[data-step="results"] .winner-spotlight.is-reveal-celebrating > .winner-copy,
body[data-step="results"] .winner-spotlight.is-reveal-celebrating > .result-tuner {
  animation: result-panel-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-step="results"] .winner-spotlight.is-reveal-celebrating > .winner-copy {
  animation-delay: 70ms;
}

body[data-step="results"] .winner-spotlight.is-reveal-celebrating > .result-tuner {
  animation-delay: 140ms;
}

body[data-step="results"] .confetti-piece {
  z-index: 1;
  opacity: 0.42;
  mix-blend-mode: multiply;
}

@media (max-width: 700px) {
  body[data-step="factors"] .stage.is-active,
  body[data-step="rank"] .stage.is-active,
  body[data-step="results"] .stage.is-active {
    min-height: auto;
  }

  body[data-step="factors"] .factor-board {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    gap: 14px !important;
  }

  body[data-step="factors"] .field-arrow {
    display: none !important;
  }

  body[data-step="factors"] .factor-zone,
  body[data-step="factors"] .bench-zone,
  body[data-step="factors"] .scoring-zone {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-step="factors"] .bench-zone {
    order: 1;
  }

  body[data-step="factors"] .scoring-zone {
    order: 2;
  }

  body[data-step="factors"] .factor-rack,
  body[data-step="factors"] .selected-rack {
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-step="factors"] .selected-rack {
    min-height: 0 !important;
  }

  body[data-step="factors"] .endzone-empty {
    min-height: 96px !important;
  }

  body[data-step="factors"] .stage-actions,
  body[data-step="rank"] .stage-actions,
  body[data-step="rank"] [data-stage="rank"] .stage-actions,
  body[data-step="results"] .stage-actions,
  body[data-step="results"] [data-stage="results"] .stage-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-step="factors"] .stage-actions > *,
  body[data-step="rank"] .stage-actions > *,
  body[data-step="results"] .stage-actions > * {
    width: 100%;
  }
}

/* Codex whole-site polish pass: smoother touch targets and tighter mobile scrolling. */
.header-actions button,
body[data-step="debate"] .app-header .header-actions button {
  min-height: 40px !important;
}

.source-chip {
  min-height: 26px !important;
  padding: 0 9px !important;
}

.source-chip:focus-visible {
  outline: 2px solid rgba(7, 84, 93, 0.28);
  outline-offset: 2px;
}

.order-evidence .source-chip {
  min-height: 24px !important;
}

body[data-step="debate"] .poster-grid {
  overflow-x: hidden !important;
}

.loading-reveal,
.results-stage.is-calculating .loading-reveal {
  max-width: 100%;
  transform: none !important;
}

@media (max-width: 700px) {
  .header-actions button,
  body[data-step="debate"] .app-header .header-actions button {
    min-height: 40px !important;
    padding-inline: 12px !important;
  }

  .source-chip {
    min-height: 28px !important;
  }
}

@media (max-width: 760px) {
  body[data-step="rank"] .order-card {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    min-height: auto !important;
  }

  body[data-step="rank"] .order-art.measure-picture {
    display: none !important;
  }

  body[data-step="rank"] .order-copy {
    grid-column: 2 / -1 !important;
    min-width: 0 !important;
  }

  body[data-step="rank"] .order-copy strong {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body[data-step="rank"] .order-copy em {
    line-height: 1.2;
  }

  body[data-step="rank"] .order-actions {
    grid-column: 2 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100%;
    margin-top: 6px;
  }
}

/* Codex dog-breed push: make measure selection feel like a finished decision surface. */
body[data-step="factors"] [data-stage="factors"] .stage-copy {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 42, 46, 0.08);
  padding-bottom: clamp(18px, 3vw, 28px);
}

body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy {
  min-height: clamp(250px, 25vw, 340px);
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 18px;
  padding:
    clamp(24px, 4vw, 42px)
    min(42vw, 470px)
    clamp(24px, 4vw, 42px)
    clamp(22px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.94) 48%, rgba(255, 250, 240, 0.28) 72%, rgba(255, 250, 240, 0.02) 100%),
    url("assets/photo-cache/popular-board-images/lifestyle-968cd23545e3.jpg") right center / cover no-repeat,
    #fffaf0;
  box-shadow: 0 18px 42px rgba(16, 42, 46, 0.08);
}

body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::after {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 28px);
  width: clamp(72px, 9vw, 112px);
  height: clamp(72px, 9vw, 112px);
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.86), rgba(126, 29, 39, 0.78)),
    url("assets/photo-cache/popular-board-images/lifestyle-968cd23545e3.jpg") center bottom / 86% auto no-repeat;
  box-shadow: 0 18px 36px rgba(16, 42, 46, 0.2);
  content: "";
}

body[data-step="factors"] .factor-zone {
  border-radius: 14px;
}

body[data-step="factors"] .factor-rack {
  gap: 10px;
}

body[data-step="factors"] .factor-token {
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  align-items: start;
  gap: 12px;
  min-height: 88px;
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 24%, rgba(16, 42, 46, 0.12));
  border-left: 5px solid var(--accent, var(--dv-teal));
  padding: 12px 12px 12px 10px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 8%, transparent), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

body[data-step="factors"] .factor-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, var(--accent, var(--dv-teal)), color-mix(in srgb, var(--accent, var(--dv-teal)) 54%, #102a2e));
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.18);
  font-size: 0.56rem;
  letter-spacing: 0;
  line-height: 1;
}

body[data-step="factors"] .factor-token[data-factor="groomingEase"] .factor-icon,
body[data-step="factors"] .factor-token[data-factor="trainability"] .factor-icon,
body[data-step="factors"] .factor-token[data-factor="ownerEase"] .factor-icon {
  font-size: 0.48rem;
}

body[data-step="factors"] .factor-copy {
  gap: 5px;
  padding-top: 1px;
}

body[data-step="factors"] .factor-token h3 {
  padding-right: 0;
  font-size: clamp(0.94rem, 1.15vw, 1.05rem);
  line-height: 1.08;
}

body[data-step="factors"] .factor-token p {
  display: block !important;
  max-width: 58ch;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.76rem;
  font-weight: 390;
  line-height: 1.32;
}

body[data-step="factors"] .source-chip-row {
  margin-top: 1px;
}

body[data-step="factors"] .mini-action {
  position: static !important;
  align-self: start;
  min-width: 44px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 28%, rgba(16, 42, 46, 0.14));
  border-radius: 999px;
  padding: 8px 10px 0;
  color: color-mix(in srgb, var(--accent, var(--dv-teal)) 82%, #102a2e);
  background: rgba(255, 250, 240, 0.82);
  font-size: 0.62rem;
  font-weight: 720;
  line-height: 1;
  text-align: center;
}

body[data-step="factors"] .factor-token:hover .mini-action,
body[data-step="factors"] .factor-token:focus-within .mini-action {
  color: #ffffff;
  background: var(--accent, var(--dv-teal));
}

body[data-step="factors"] .endzone-empty {
  border: 1px dashed rgba(7, 84, 93, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.06), rgba(198, 162, 75, 0.08)),
    rgba(255, 250, 240, 0.72);
  color: rgba(16, 42, 46, 0.64);
}

@media (max-width: 700px) {
  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy {
    min-height: 0;
    margin-inline: -8px;
    padding:
      22px
      18px
      132px;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.94) 54%, rgba(255, 250, 240, 0.18) 100%),
      url("assets/photo-cache/popular-board-images/lifestyle-968cd23545e3.jpg") center bottom / cover no-repeat,
      #fffaf0;
  }

  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::after {
    right: 18px;
    bottom: 18px;
    width: 76px;
    height: 76px;
  }

  body[data-step="factors"] .factor-zone {
    padding: 14px !important;
  }

  body[data-step="factors"] .factor-rack {
    gap: 12px;
  }

  body[data-step="factors"] .factor-token {
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    min-height: 96px;
    padding: 12px 10px;
  }

  body[data-step="factors"] .factor-icon {
    width: 40px;
    height: 40px;
  }

  body[data-step="factors"] .factor-token h3 {
    font-size: 0.96rem;
  }

  body[data-step="factors"] .factor-token p {
    font-size: 0.74rem;
  }

  body[data-step="factors"] .source-chip {
    min-height: 24px !important;
    padding-inline: 8px !important;
  }

  body[data-step="factors"] .mini-action {
    min-width: 40px;
    min-height: 28px;
    padding: 7px 8px 0;
  }
}

@media (max-width: 380px) {
  body[data-step="factors"] .factor-token {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  body[data-step="factors"] .mini-action {
    grid-column: 2;
    width: max-content;
    margin-top: 2px;
  }
}

/* Codex dog-breed push: sharpen the mobile board image instead of burying it under copy. */
body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy > * {
  position: relative;
  z-index: 2;
}

body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(46%, 430px);
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.74), rgba(255, 250, 240, 0.04) 42%),
    url("assets/photo-cache/popular-board-images/lifestyle-968cd23545e3.jpg") center 38% / cover no-repeat;
  content: "";
}

body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::after {
  display: none;
}

@media (max-width: 700px) {
  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy {
    padding-bottom: 172px;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.96)),
      #fffaf0;
  }

  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
    top: auto;
    left: 0;
    width: 100%;
    height: 150px;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(7, 84, 93, 0.12)),
      url("assets/photo-cache/popular-board-images/lifestyle-968cd23545e3.jpg") center 35% / cover no-repeat;
  }
}

/* Codex best pass: live factor progress belongs next to the choices. */
.factor-progress {
  display: grid;
  gap: 8px;
  margin: -2px 0 10px;
  border: 1px solid rgba(16, 42, 46, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.06), rgba(198, 162, 75, 0.08)),
    rgba(255, 250, 240, 0.76);
}

.factor-progress > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.factor-progress strong,
.factor-progress em {
  min-width: 0;
  line-height: 1.15;
}

.factor-progress strong {
  color: var(--dv-ink);
  font-size: 0.9rem;
  font-weight: 680;
}

.factor-progress em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 520;
  text-align: right;
}

.factor-progress-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 42, 46, 0.08);
}

.factor-progress-track i {
  display: block;
  width: var(--factor-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dv-red), var(--dv-teal));
  transition: width 220ms ease;
}

.factor-progress[data-ready="true"] {
  border-color: rgba(7, 84, 93, 0.18);
  background:
    linear-gradient(135deg, rgba(7, 84, 93, 0.09), rgba(198, 162, 75, 0.12)),
    rgba(255, 250, 240, 0.9);
}

.factor-progress[data-ready="true"] em {
  color: var(--dv-teal);
  font-weight: 660;
}

@media (max-width: 700px) {
  .factor-progress {
    margin-bottom: 12px;
  }

  .factor-progress > span:first-child {
    align-items: start;
  }

  .factor-progress em {
    max-width: 16ch;
  }
}

/* Codex mobile-first density pass: phone screens should show choices, not oversized blocks. */
@media (max-width: 700px) {
  body[data-step="debate"] .stage-copy {
    min-height: 260px !important;
    max-height: 280px !important;
    padding:
      28px
      clamp(18px, 6vw, 26px)
      24px !important;
  }

  body[data-step="debate"] .hero-copy {
    gap: 8px !important;
    padding-block: 0 !important;
  }

  body[data-step="debate"] .hero-copy h1 {
    max-width: 12ch !important;
    font-size: clamp(2rem, 8.4vw, 2.55rem) !important;
    line-height: 1 !important;
  }

  body[data-step="debate"] .stage-subtitle {
    max-width: 30ch;
    font-size: 0.96rem !important;
    line-height: 1.28;
  }

  body[data-step="debate"] .hero-search {
    min-height: 52px !important;
    margin-top: 6px !important;
  }

  body[data-step="debate"] .launch-tile-shell {
    width: min(100% - 20px, 420px) !important;
    margin: 14px auto 18px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body[data-step="debate"] .launch-tile-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    display: grid !important;
    grid-column: auto !important;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: start;
    min-width: 0;
    width: auto !important;
    min-height: 116px !important;
    padding: 11px 10px !important;
    gap: 9px;
    text-align: left;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    min-height: 0 !important;
    width: 56px;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 56px !important;
    height: 56px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 60px;
    height: 60px;
    transform: translate(-2px, 0);
  }

  body[data-step="debate"] .launch-tile-copy {
    justify-items: start;
    gap: 4px;
    padding-right: 12px;
    text-align: left;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    font-size: 0.9rem !important;
    line-height: 1.08;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.72rem !important;
    line-height: 1.16;
  }

  body[data-step="debate"] .launch-tile i {
    top: 9px;
    right: 9px;
  }
}

@media (max-width: 700px) {
  [data-stage="factors"] .stage-copy,
  [data-stage="rank"] .stage-copy {
    padding-block: 18px !important;
  }

  [data-stage="factors"] .stage-copy h1,
  [data-stage="rank"] .stage-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.42rem) !important;
    line-height: 1.02 !important;
  }

  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy {
    margin-inline: 0;
    padding:
      18px
      16px
      122px !important;
    border-radius: 14px;
  }

  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
    height: 112px;
  }

  body[data-step="factors"] .factor-zone {
    padding: 10px !important;
  }

  body[data-step="factors"] .factor-rack {
    gap: 9px;
  }

  body[data-step="factors"] .factor-token {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    min-height: 82px !important;
    gap: 9px !important;
    padding: 10px 9px !important;
  }

  body[data-step="factors"] .factor-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.5rem;
  }

  body[data-step="factors"] .factor-token h3 {
    font-size: 0.9rem;
  }

  body[data-step="factors"] .factor-token p {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.68rem;
    line-height: 1.24;
  }

  body[data-step="factors"] .source-chip {
    min-height: 22px !important;
    padding-inline: 7px !important;
    font-size: 0.54rem;
  }

  body[data-step="factors"] .mini-action {
    min-width: 36px;
    min-height: 26px;
    padding: 7px 7px 0;
    font-size: 0.56rem;
  }

  .factor-progress {
    gap: 6px;
    margin-bottom: 9px;
    padding: 8px 10px;
  }

  .factor-progress strong {
    font-size: 0.82rem;
  }

  .factor-progress em {
    font-size: 0.66rem;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 104px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-template-columns: 46px minmax(0, 1fr);
    height: 104px !important;
    max-height: 104px !important;
    min-height: 104px !important;
    padding: 9px 8px !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 700px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-template-rows: none !important;
    grid-auto-rows: 108px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-template-rows: minmax(78px, auto) !important;
    height: 108px !important;
    max-height: 108px !important;
    min-height: 108px !important;
    align-content: center !important;
    position: relative;
    gap: 8px !important;
    padding: 9px 9px !important;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 52px !important;
    height: 52px !important;
    align-self: center !important;
  }

  body[data-step="debate"] .launch-tile-art small {
    display: none !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 52px !important;
    height: 52px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 56px !important;
    height: 56px !important;
  }

  body[data-step="debate"] .launch-tile-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    min-width: 0;
    padding-right: 10px !important;
  }

  body[data-step="debate"] .launch-tile i {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
  }
}

@media (max-width: 700px) {
  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy {
    padding:
      16px
      15px
      104px !important;
  }

  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
    height: 94px !important;
  }

  body[data-step="factors"] .factor-zone {
    margin-top: 12px !important;
  }

  body[data-step="factors"] .factor-rack {
    gap: 8px !important;
  }

  body[data-step="factors"] .factor-token {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    min-height: 76px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body[data-step="factors"] .factor-icon {
    width: 34px !important;
    height: 34px !important;
  }

  body[data-step="factors"] .factor-token h3 {
    font-size: 0.86rem !important;
  }

  body[data-step="factors"] .factor-token p {
    -webkit-line-clamp: 1 !important;
    font-size: 0.66rem !important;
  }

  body[data-step="factors"] .source-chip {
    min-height: 20px !important;
    padding-inline: 6px !important;
  }

  body[data-step="factors"] .mini-action {
    min-width: 34px !important;
    min-height: 25px !important;
    padding: 6px 7px 0 !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 104px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    height: 104px !important;
    max-height: 104px !important;
    min-height: 104px !important;
  }
}

@media (max-width: 700px) {
  body[data-step="rank"] .order-workbench {
    padding: 12px !important;
  }

  body[data-step="rank"] .order-instructions {
    gap: 5px !important;
    margin-bottom: 10px !important;
  }

  body[data-step="rank"] .order-instructions h2 {
    font-size: 1rem !important;
    line-height: 1.12 !important;
  }

  body[data-step="rank"] .order-instructions p:not(.kicker) {
    font-size: 0.76rem !important;
    line-height: 1.28 !important;
  }

  body[data-step="rank"] .order-lane {
    gap: 8px !important;
  }

  body[data-step="rank"] .order-card {
    grid-template-columns: 32px minmax(0, 1fr) 66px !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    min-height: 64px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body[data-step="rank"] .order-rank {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 28px !important;
    height: 28px !important;
    align-self: center !important;
  }

  body[data-step="rank"] .order-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 2px !important;
    min-width: 0;
    align-self: center !important;
  }

  body[data-step="rank"] .order-copy strong {
    font-size: 0.9rem !important;
    line-height: 1.08 !important;
  }

  body[data-step="rank"] .order-copy > span:not(.order-evidence) {
    display: none !important;
  }

  body[data-step="rank"] .order-copy em {
    font-size: 0.62rem !important;
    line-height: 1.1 !important;
  }

  body[data-step="rank"] .order-evidence {
    display: none !important;
  }

  body[data-step="rank"] .order-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 28px);
    justify-content: end !important;
    align-self: center !important;
    width: auto !important;
    gap: 6px !important;
  }

  body[data-step="rank"] .order-actions button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* Codex detail pass: mobile launcher should feel intentional, not like a missing eighth tile. */
@media (max-width: 700px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 96px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    gap: 8px !important;
    padding: 8px 9px !important;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 50px !important;
    height: 50px !important;
  }

  body[data-step="debate"] .launch-tile-copy {
    gap: 3px !important;
    padding-right: 12px !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    font-size: 0.84rem !important;
    line-height: 1.08 !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span {
    font-size: 0.68rem !important;
    line-height: 1.18 !important;
  }

  body[data-step="debate"] .launch-tile[data-family="politics"] {
    grid-column: 1 / -1 !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    width: auto !important;
  }

  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-copy {
    max-width: 28ch;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 94px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;
  }
}

/* Codex detail pass: fix homepage spotlight card overlap and calm the mobile controls. */
body[data-step="debate"] .home-spotlight-copy {
  grid-template-areas:
    "label action"
    "title action"
    "summary action"
    "chips action" !important;
}

body[data-step="debate"] .home-spotlight-copy > span:not(.home-spotlight-metrics) {
  grid-area: summary !important;
}

body[data-step="debate"] .home-spotlight-metrics {
  grid-area: chips !important;
}

body[data-step="debate"] .home-spotlight-copy em {
  grid-area: action !important;
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-spotlight-stage {
    height: 374px !important;
  }

  body[data-step="debate"] .home-spotlight-card {
    height: 328px !important;
  }

  body[data-step="debate"] .home-spotlight-copy {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "label"
      "title"
      "summary"
      "chips"
      "action" !important;
    gap: 5px !important;
    padding: 13px 16px 15px !important;
  }

  body[data-step="debate"] .home-spotlight-copy small {
    font-size: 0.62rem !important;
    line-height: 1 !important;
  }

  body[data-step="debate"] .home-spotlight-copy strong {
    font-size: 1.08rem !important;
    line-height: 1.08 !important;
  }

  body[data-step="debate"] .home-spotlight-copy > span:not(.home-spotlight-metrics) {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 0.74rem !important;
    line-height: 1.22 !important;
  }

  body[data-step="debate"] .home-spotlight-metrics {
    gap: 5px !important;
    margin-top: 1px !important;
  }

  body[data-step="debate"] .home-spotlight-metrics b {
    padding: 4px 7px !important;
    font-size: 0.58rem !important;
  }

  body[data-step="debate"] .home-spotlight-copy em,
  body[data-step="debate"] .home-spotlight-card:hover .home-spotlight-copy em,
  body[data-step="debate"] .home-spotlight-card:focus-visible .home-spotlight-copy em {
    justify-self: start !important;
    width: auto !important;
    min-width: 116px !important;
    min-height: 36px !important;
    padding: 0 13px 0 15px !important;
    font-size: 0.72rem !important;
  }

  body[data-step="debate"] .home-spotlight-arrow {
    top: 47% !important;
    width: 36px !important;
    height: 36px !important;
  }

  body[data-step="debate"] .home-spotlight-prev {
    left: 0 !important;
  }

  body[data-step="debate"] .home-spotlight-next {
    right: 0 !important;
  }
}

@media (max-width: 700px) {
  body[data-step="debate"] .hero-search {
    grid-template-columns: minmax(0, 1fr) 66px !important;
    min-height: 48px !important;
    height: 48px !important;
  }

  body[data-step="debate"] .hero-search input {
    height: 48px !important;
    min-width: 0 !important;
    padding: 0 14px 0 17px !important;
    font-size: 0.92rem !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    height: 48px !important;
    width: 66px !important;
    min-width: 66px !important;
    flex: 0 0 66px !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"]::before {
    width: 14px !important;
    height: 14px !important;
    border-width: 3px 3px 0 0 !important;
  }
}

@media (max-width: 340px) {
  body[data-step="debate"] .hero-search {
    grid-template-columns: minmax(0, 1fr) 60px !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    width: 60px !important;
    min-width: 60px !important;
    flex-basis: 60px !important;
  }
}

/* Codex footer polish: make the mobile footer feel finished instead of loosely stacked. */
@media (max-width: 560px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    width: min(100% - 28px, 380px) !important;
    margin: 24px auto 0 !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 10px !important;
    border-color: rgba(16, 42, 46, 0.09) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.94)) !important;
    box-shadow: 0 18px 42px rgba(16, 42, 46, 0.08) !important;
  }

  .site-footer .footer-brand {
    gap: 4px !important;
    padding-bottom: 2px;
  }

  .site-footer .footer-brand strong {
    font-size: 0.76rem !important;
    letter-spacing: 0.1em !important;
  }

  .site-footer .footer-brand span {
    display: grid !important;
    gap: 3px !important;
    max-width: none !important;
    color: rgba(16, 42, 46, 0.66) !important;
    font-size: 0.72rem !important;
    line-height: 1.42 !important;
  }

  .site-footer .footer-brand em {
    display: block !important;
    color: rgba(16, 42, 46, 0.5) !important;
    font-size: 0.62rem !important;
    font-style: normal !important;
    line-height: 1.28 !important;
  }

  .site-footer .footer-nav {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    justify-content: stretch !important;
    padding-top: 9px !important;
    border-top: 1px solid rgba(16, 42, 46, 0.08);
  }

  .site-footer .footer-nav button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 31px !important;
    border: 1px solid rgba(7, 84, 93, 0.12) !important;
    border-radius: 999px !important;
    padding: 0 9px !important;
    color: var(--dv-teal) !important;
    background: rgba(232, 248, 241, 0.46) !important;
    font-size: 0.62rem !important;
    font-weight: 720 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .site-footer .footer-nav button:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: min(100%, 142px) !important;
  }

  .site-footer .footer-flag {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    border-top: 1px solid rgba(16, 42, 46, 0.08);
    padding-top: 9px !important;
    color: rgba(16, 42, 46, 0.62) !important;
    font-size: 0.72rem !important;
  }

  .site-footer .footer-flag img {
    width: 30px !important;
  }
}

/* Codex sharpness pass: make the mobile launcher read crisp instead of hazy. */
@media (max-width: 700px) {
  body[data-step="debate"] .launch-tile-shell {
    border: 1px solid rgba(7, 84, 93, 0.08) !important;
    border-radius: 14px !important;
    padding: 11px !important;
    background:
      linear-gradient(180deg, rgba(232, 248, 241, 0.78), rgba(232, 248, 241, 0.5)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 14px 34px rgba(16, 42, 46, 0.06) !important;
    backdrop-filter: none !important;
  }

  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 102px !important;
    gap: 11px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    height: 102px !important;
    min-height: 102px !important;
    max-height: 102px !important;
    gap: 9px !important;
    border: 1px solid rgba(7, 84, 93, 0.13) !important;
    border-radius: 9px !important;
    padding: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 7px 16px rgba(16, 42, 46, 0.055) !important;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 48px !important;
    height: 48px !important;
    filter: none !important;
    transform: translate(-1px, 0) !important;
  }

  body[data-step="debate"] .launch-tile-copy {
    gap: 3px !important;
    padding-right: 16px !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    color: #051014 !important;
    font-size: 0.88rem !important;
    font-weight: 730 !important;
    line-height: 1.04 !important;
    text-rendering: geometricPrecision;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span {
    display: block !important;
    overflow: visible !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span::after {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    content: attr(data-mobile-copy);
    color: rgba(16, 42, 46, 0.82) !important;
    font-size: 0.72rem !important;
    font-weight: 470 !important;
    line-height: 1.2 !important;
    text-rendering: geometricPrecision;
  }

  body[data-step="debate"] .launch-tile i {
    top: 11px !important;
    right: 9px !important;
    width: 17px !important;
    height: 17px !important;
    opacity: 0.62;
    transform: none !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 100px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
  }
}

@media (max-width: 340px) {
  body[data-step="debate"] .launch-tile-shell {
    width: calc(100% - 12px) !important;
    padding: 10px !important;
  }

  body[data-step="debate"] .launch-tile-grid {
    gap: 9px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong::after {
    display: block;
    color: #051014;
    content: attr(data-mobile-title);
    font-size: 0.82rem !important;
    font-weight: 730;
    line-height: 1.04;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span::after {
    font-size: 0.68rem !important;
  }
}

/* Codex footer logo redesign: utility first, brand mark as the closing note. */
.site-footer .footer-logo {
  grid-column: 1 / -1;
  display: inline-flex;
  justify-self: stretch;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid rgba(16, 42, 46, 0.08);
  padding-top: 8px;
  text-decoration: none;
}

.site-footer .footer-logo img {
  display: block;
  width: 132px;
  height: auto;
}

@media (min-width: 861px) {
  .site-footer .footer-logo {
    padding-top: 7px;
  }

  .site-footer .footer-logo img {
    width: 122px;
  }
}

@media (max-width: 560px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    width: min(100% - 24px, 372px) !important;
    gap: 0 !important;
    border-radius: 9px !important;
    padding: 13px 14px 12px !important;
    box-shadow: 0 14px 34px rgba(16, 42, 46, 0.07) !important;
  }

  .site-footer .footer-brand {
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(16, 42, 46, 0.08);
  }

  .site-footer .footer-brand strong {
    color: rgba(7, 84, 93, 0.86) !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.14em !important;
  }

  .site-footer .footer-brand span {
    font-size: 0.69rem !important;
    line-height: 1.36 !important;
  }

  .site-footer .footer-brand em {
    margin-top: 1px !important;
    font-size: 0.59rem !important;
    line-height: 1.24 !important;
  }

  .site-footer .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border-bottom: 1px solid rgba(16, 42, 46, 0.08);
    border-top: 0 !important;
    padding: 8px 0 6px !important;
  }

  .site-footer .footer-nav button {
    justify-content: flex-start !important;
    min-height: 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: rgba(7, 84, 93, 0.9) !important;
    background: transparent !important;
    font-size: 0.59rem !important;
    letter-spacing: 0.07em !important;
    line-height: 1 !important;
  }

  .site-footer .footer-nav button:nth-child(even) {
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .site-footer .footer-nav button:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 24px !important;
    min-width: 0 !important;
  }

  .site-footer .footer-flag {
    width: max-content !important;
    border-top: 0;
    padding-top: 8px !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
  }

  .site-footer .footer-flag img {
    width: 26px !important;
  }

  .site-footer .footer-logo {
    justify-self: center !important;
    width: 100%;
    justify-content: center;
    margin-top: 9px;
    padding-top: 10px;
  }

  .site-footer .footer-logo img {
    width: min(136px, 58%) !important;
  }
}

/* Codex best-in-breed footer pass: a useful decision dock with a signed brand finish. */
.site-footer,
body[data-step="debate"] .site-footer,
[data-stage="results"] .site-footer {
  position: relative !important;
  overflow: hidden !important;
  width: min(100%, 1120px) !important;
  margin: clamp(34px, 4.6vw, 64px) auto 0 !important;
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) minmax(340px, 0.92fr) !important;
  align-items: start !important;
  gap: 16px 28px !important;
  border: 1px solid rgba(16, 42, 46, 0.11) !important;
  border-radius: 8px !important;
  padding: 18px 20px 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.93)) !important;
  box-shadow:
    0 24px 54px rgba(16, 42, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.site-footer::before,
body[data-step="debate"] .site-footer::before,
[data-stage="results"] .site-footer::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  height: 3px !important;
  background:
    linear-gradient(90deg, #07545d 0%, #07545d 31%, #d8b45c 31%, #d8b45c 54%, #9d1732 54%, #9d1732 72%, #07545d 72%, #07545d 100%) !important;
}

.site-footer .footer-brand {
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.site-footer .footer-brand strong {
  color: var(--dv-teal) !important;
  font-size: clamp(0.78rem, 1vw, 0.9rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0.14em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.site-footer .footer-brand span {
  display: block !important;
  max-width: 32ch !important;
  color: rgba(16, 42, 46, 0.72) !important;
  font-size: clamp(0.84rem, 1vw, 0.96rem) !important;
  line-height: 1.38 !important;
}

.site-footer .footer-proof {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-self: stretch !important;
}

.site-footer .footer-proof span {
  display: grid !important;
  align-content: center !important;
  min-height: 62px !important;
  border: 1px solid rgba(7, 84, 93, 0.1) !important;
  border-radius: 8px !important;
  padding: 10px !important;
  background: rgba(232, 248, 241, 0.36) !important;
}

.site-footer .footer-proof b {
  color: rgba(5, 16, 20, 0.94) !important;
  font-size: 0.74rem !important;
  font-weight: 820 !important;
  line-height: 1.08 !important;
}

.site-footer .footer-proof em {
  margin-top: 3px !important;
  color: rgba(16, 42, 46, 0.62) !important;
  font-size: 0.66rem !important;
  font-style: normal !important;
  line-height: 1.16 !important;
}

.site-footer .footer-nav {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 7px 16px !important;
  width: 100% !important;
  border-top: 1px solid rgba(16, 42, 46, 0.08) !important;
  border-bottom: 1px solid rgba(16, 42, 46, 0.08) !important;
  margin: 0 !important;
  padding: 12px 0 !important;
}

.site-footer .footer-nav button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(7, 84, 93, 0.9) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.66rem !important;
  font-weight: 780 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.site-footer .footer-nav button::after {
  content: "" !important;
  display: block !important;
  width: 4px !important;
  height: 4px !important;
  margin-left: 10px !important;
  border-radius: 999px !important;
  background: rgba(157, 23, 50, 0.56) !important;
}

.site-footer .footer-nav button:last-child {
  min-height: 30px !important;
  border: 1px solid rgba(157, 23, 50, 0.18) !important;
  border-radius: 999px !important;
  padding: 0 13px !important;
  color: #8f1229 !important;
  background: rgba(157, 23, 50, 0.055) !important;
}

.site-footer .footer-nav button:last-child::after {
  width: 6px !important;
  height: 6px !important;
  background: #9d1732 !important;
}

.site-footer .footer-base {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.site-footer .footer-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: auto !important;
  width: auto !important;
  min-width: max-content !important;
  gap: 8px !important;
  grid-column: auto !important;
  grid-row: auto !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(16, 42, 46, 0.66) !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.site-footer .footer-flag img {
  width: 29px !important;
  height: auto !important;
}

.site-footer .footer-legal {
  min-width: 0 !important;
  color: rgba(16, 42, 46, 0.5) !important;
  font-size: 0.68rem !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

.site-footer .footer-logo {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  justify-self: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
  text-decoration: none !important;
}

.site-footer .footer-logo::before,
.site-footer .footer-logo::after {
  content: "" !important;
  height: 1px !important;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0), rgba(7, 84, 93, 0.16)) !important;
}

.site-footer .footer-logo::after {
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.16), rgba(7, 84, 93, 0)) !important;
}

.site-footer .footer-logo img {
  display: block !important;
  width: 128px !important;
  height: auto !important;
}

@media (max-width: 860px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .site-footer .footer-brand span {
    max-width: 42ch !important;
  }
}

@media (max-width: 560px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    width: min(100% - 24px, 366px) !important;
    margin: 26px auto 0 !important;
    gap: 10px !important;
    border-radius: 8px !important;
    padding: 15px 13px 13px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 244, 0.95)) !important;
    box-shadow: 0 18px 38px rgba(16, 42, 46, 0.075) !important;
  }

  .site-footer .footer-brand {
    gap: 5px !important;
    text-align: left !important;
  }

  .site-footer .footer-brand strong {
    font-size: 0.68rem !important;
    letter-spacing: 0.145em !important;
  }

  .site-footer .footer-brand span {
    max-width: 28ch !important;
    font-size: 0.75rem !important;
    line-height: 1.28 !important;
  }

  .site-footer .footer-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .site-footer .footer-proof span {
    position: relative !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    align-content: center !important;
    min-height: 55px !important;
    padding: 9px 6px 7px !important;
    text-align: center !important;
  }

  .site-footer .footer-proof span::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 12px !important;
    right: 12px !important;
    height: 2px !important;
    border-radius: 99px !important;
    background: rgba(7, 84, 93, 0.55) !important;
  }

  .site-footer .footer-proof span:nth-child(2)::before {
    background: rgba(216, 180, 92, 0.9) !important;
  }

  .site-footer .footer-proof span:nth-child(3)::before {
    background: rgba(157, 23, 50, 0.62) !important;
  }

  .site-footer .footer-proof b {
    font-size: 0.64rem !important;
    line-height: 1.02 !important;
  }

  .site-footer .footer-proof em {
    margin-top: 3px !important;
    font-size: 0.59rem !important;
    line-height: 1.05 !important;
  }

  .site-footer .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 8px 0 !important;
  }

  .site-footer .footer-nav button {
    min-height: 25px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.055em !important;
  }

  .site-footer .footer-nav button::after {
    display: none !important;
  }

  .site-footer .footer-nav button:nth-child(even) {
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .site-footer .footer-nav button:last-child {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    min-height: 28px !important;
    margin-top: 2px !important;
    padding: 0 11px !important;
    font-size: 0.58rem !important;
  }

  .site-footer .footer-base {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .site-footer .footer-flag {
    gap: 7px !important;
    font-size: 0.66rem !important;
  }

  .site-footer .footer-flag img {
    width: 26px !important;
  }

  .site-footer .footer-legal {
    font-size: 0.59rem !important;
    line-height: 1.18 !important;
    text-align: left !important;
  }

  .site-footer .footer-logo {
    gap: 10px !important;
    padding-top: 1px !important;
  }

  .site-footer .footer-logo img {
    width: 118px !important;
  }
}

@media (max-width: 340px) {
  .site-footer .footer-proof span {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    min-height: 58px !important;
  }
}

/* Codex mobile tile scale pass: larger art and Aptos typography, still compact. */
@media (max-width: 700px) {
  body[data-step="debate"] .launch-tile-shell {
    width: min(100% - 14px, 358px) !important;
    border-radius: 16px !important;
    padding: 10px !important;
    background:
      radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 66%),
      linear-gradient(180deg, rgba(232, 248, 241, 0.82), rgba(232, 248, 241, 0.72)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 16px 36px rgba(16, 42, 46, 0.065) !important;
  }

  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 114px !important;
    gap: 10px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    position: relative !important;
    z-index: 1 !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    align-items: center !important;
    height: 114px !important;
    min-height: 114px !important;
    max-height: 114px !important;
    gap: 8px !important;
    border-radius: 10px !important;
    padding: 10px 9px !important;
    font-family:
      "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
    box-shadow:
      0 8px 18px rgba(16, 42, 46, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    width: 56px !important;
    height: 56px !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 56px !important;
    height: 56px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 61px !important;
    height: 61px !important;
    filter: saturate(1.05) contrast(1.02) !important;
    transform: translate(-2px, 0) !important;
  }

  body[data-step="debate"] .launch-tile-copy {
    gap: 4px !important;
    padding-right: 14px !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    display: block !important;
    color: #051014 !important;
    font-family:
      "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0 !important;
    font-weight: 790 !important;
    letter-spacing: 0 !important;
    line-height: 0 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong::after {
    display: block !important;
    color: #051014 !important;
    content: attr(data-mobile-title) !important;
    font-family:
      "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 790 !important;
    letter-spacing: 0 !important;
    line-height: 1.02 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span::after {
    color: rgba(16, 42, 46, 0.76) !important;
    font-family:
      "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 480 !important;
    line-height: 1.13 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased;
  }

  body[data-step="debate"] .launch-tile i {
    top: 10px !important;
    right: 9px !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 0.68 !important;
  }

  body[data-step="debate"] .launch-tile[data-family="politics"] {
    z-index: 2 !important;
    background: #ffffff !important;
    box-shadow:
      0 9px 20px rgba(16, 42, 46, 0.07),
      inset 0 0 0 1px rgba(7, 84, 93, 0.025),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }

  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-copy {
    max-width: none !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:hover,
  body[data-step="debate"] .launch-tile:focus,
  body[data-step="debate"] .launch-tile:focus-visible,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5),
  body[data-step="debate"] .launch-tile:nth-child(n + 5):hover,
  body[data-step="debate"] .launch-tile:nth-child(n + 5):focus,
  body[data-step="debate"] .launch-tile:nth-child(n + 5):focus-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  body[data-step="debate"] .launch-tile *,
  body[data-step="debate"] .launch-tile *::before,
  body[data-step="debate"] .launch-tile *::after {
    opacity: 1 !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .launch-tile-grid {
    grid-auto-rows: 108px !important;
    gap: 9px !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-template-columns: 49px minmax(0, 1fr) !important;
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
    gap: 8px !important;
    padding: 9px 8px !important;
  }

  body[data-step="debate"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="politics"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="lifestyle"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="careerEducation"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="cultureEntertainment"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="money"] .launch-tile-art,
  body[data-step="debate"] .launch-tile[data-family="homeGarden"] .launch-tile-art {
    width: 49px !important;
    height: 49px !important;
  }

  body[data-step="debate"] .launch-tile-illo {
    width: 49px !important;
    height: 49px !important;
  }

  body[data-step="debate"] .launch-illo-image {
    width: 54px !important;
    height: 54px !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    font-size: 0 !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong::after {
    font-size: 0.91rem !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy span::after {
    font-size: 0.75rem !important;
    line-height: 1.12 !important;
  }

  body[data-step="debate"] .launch-tile[data-family="technology"] .launch-tile-copy strong::after {
    content: "Tech" !important;
  }
}

@media (max-width: 340px) {
  body[data-step="debate"] .launch-tile .launch-tile-copy strong {
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body[data-step="debate"] .launch-tile .launch-tile-copy strong::after {
    display: block !important;
    color: #051014 !important;
    content: attr(data-mobile-title) !important;
    font-family:
      "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 790 !important;
    letter-spacing: 0 !important;
    line-height: 1.02 !important;
  }
}

/* Codex brand spark: top-header-only two-step logo animation. */
body[data-step="debate"] .app-header .brand-lockup {
  --brand-check-x: 63.9%;
  --brand-check-y: 28.4%;
  --brand-check-size: 28px;
  --brand-vision-x: 61.2%;
  --brand-vision-y: 79.2%;
  --brand-vision-size: 27px;
  width: clamp(180px, 16.5vw, 208px) !important;
  height: 60px !important;
}

body[data-step="debate"] .app-header .brand-lockup::before,
body[data-step="debate"] .app-header .brand-lockup::after {
  display: none !important;
  animation: none !important;
}

body[data-step="debate"] .app-header .brand-logo-art {
  transform: none !important;
}

body[data-step="debate"] .app-header .brand-check-draw,
body[data-step="debate"] .app-header .brand-vision-compass {
  position: absolute !important;
  z-index: 4 !important;
  display: block !important;
  pointer-events: none !important;
  overflow: visible !important;
}

body[data-step="debate"] .app-header .brand-check-draw {
  top: var(--brand-check-y) !important;
  left: var(--brand-check-x) !important;
  width: var(--brand-check-size) !important;
  height: var(--brand-check-size) !important;
  transform: translate(-50%, -50%) !important;
}

body[data-step="debate"] .app-header .brand-check-cover {
  fill: #ffffff !important;
  stroke: none !important;
}

body[data-step="debate"] .app-header .brand-check-draw path {
  fill: none !important;
  stroke: #0a6f7a !important;
  stroke-width: 14px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: 100 !important;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: dv-logo-check-draw 20s ease-in-out infinite !important;
}

body[data-step="debate"] .app-header .brand-vision-compass {
  top: var(--brand-vision-y) !important;
  left: var(--brand-vision-x) !important;
  width: var(--brand-vision-size) !important;
  height: var(--brand-vision-size) !important;
  transform: translate(-50%, -50%) !important;
}

body[data-step="debate"] .app-header .brand-vision-cover {
  fill: #ffffff !important;
  stroke: none !important;
}

body[data-step="debate"] .app-header .brand-vision-fill {
  fill: #fff1cd !important;
  stroke: #f8e8bc !important;
  stroke-width: 2px !important;
}

body[data-step="debate"] .app-header .brand-vision-ring {
  fill: none !important;
  stroke: #b12a33 !important;
  stroke-width: 14px !important;
}

body[data-step="debate"] .app-header .brand-vision-spinner {
  transform-origin: center !important;
  transform-box: view-box !important;
  animation: dv-logo-compass-spin 20s cubic-bezier(0.66, 0, 0.18, 1) infinite !important;
  will-change: transform;
}

body[data-step="debate"] .app-header .brand-vision-star {
  fill: #07545d !important;
  stroke: #053941 !important;
  stroke-width: 1.4px !important;
}

body[data-step="debate"] .app-header .brand-vision-needle {
  fill: #b12a33 !important;
  stroke: #7e1d27 !important;
  stroke-width: 1.6px !important;
}

@keyframes dv-logo-check-draw {
  0%,
  2% {
    opacity: 0;
    stroke-dashoffset: 100;
  }

  4% {
    opacity: 1;
    stroke-dashoffset: 100;
  }

  12%,
  96% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  98%,
  100% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
}

@keyframes dv-logo-compass-spin {
  0%,
  50% {
    transform: rotate(0deg);
  }

  64%,
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 30px minmax(146px, 158px) minmax(0, 1fr) auto !important;
  }

  body[data-step="debate"] .app-header .brand-lockup {
    --brand-check-size: 24px;
    --brand-vision-size: 23px;
    width: 158px !important;
    height: 52px !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .app-header {
    grid-template-columns: 30px minmax(136px, 146px) minmax(0, 1fr) auto !important;
  }

  body[data-step="debate"] .app-header .brand-lockup {
    --brand-check-size: 22px;
    --brand-vision-size: 21px;
    width: 148px !important;
    height: 49px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-step="debate"] .app-header .brand-check-draw path,
  body[data-step="debate"] .app-header .brand-vision-spinner {
    animation: none !important;
  }

  body[data-step="debate"] .app-header .brand-check-draw path {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Codex logo restore: keep the top brand mark static and clean. */
body[data-step="debate"] .app-header .brand-lockup {
  width: clamp(170px, 16vw, 198px) !important;
  height: 58px !important;
}

body[data-step="debate"] .app-header .brand-lockup::before,
body[data-step="debate"] .app-header .brand-lockup::after,
body[data-step="debate"] .app-header .brand-check-draw,
body[data-step="debate"] .app-header .brand-vision-compass {
  display: none !important;
  content: none !important;
  animation: none !important;
}

body[data-step="debate"] .app-header .brand-lockup img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 4px 8px rgba(16, 38, 45, 0.08)) !important;
  transform: none !important;
}

@media (max-width: 700px) {
  body[data-step="debate"] .app-header .brand-lockup {
    width: 154px !important;
    height: 52px !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .app-header .brand-lockup {
    width: 144px !important;
    height: 49px !important;
  }
}

/* Codex logo retry: only replace the Vision O with a clean animated vector mark. */
body[data-step="debate"] .app-header .brand-lockup {
  --brand-vision-x: 64.35%;
  --brand-vision-y: 78%;
  --brand-vision-size: 26.8px;
  width: clamp(154px, 12vw, 164px) !important;
  height: auto !important;
  aspect-ratio: 1088 / 453 !important;
}

body[data-step="debate"] .app-header .brand-lockup img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 4px 8px rgba(16, 38, 45, 0.08)) !important;
  transform: none !important;
}

body[data-step="debate"] .app-header .brand-check-draw {
  display: none !important;
}

body[data-step="debate"] .app-header .brand-vision-compass {
  position: absolute !important;
  top: var(--brand-vision-y) !important;
  left: var(--brand-vision-x) !important;
  z-index: 4 !important;
  display: block !important;
  width: var(--brand-vision-size) !important;
  height: var(--brand-vision-size) !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  shape-rendering: geometricPrecision;
}

body[data-step="debate"] .app-header .brand-vision-fill {
  fill: #fff1cd !important;
  stroke: #f8e8bc !important;
  stroke-width: 2px !important;
}

body[data-step="debate"] .app-header .brand-vision-ring {
  fill: none !important;
  stroke: #b12a33 !important;
  stroke-width: 14px !important;
}

body[data-step="debate"] .app-header .brand-vision-spinner {
  transform-origin: center !important;
  transform-box: view-box !important;
  animation: dv-vision-o-spin-clean 10s cubic-bezier(0.66, 0, 0.18, 1) infinite !important;
  will-change: transform;
}

body[data-step="debate"] .app-header .brand-vision-spinner-core {
  transform: none !important;
  transform-origin: center !important;
  transform-box: view-box !important;
}

body[data-step="debate"] .app-header .brand-vision-star {
  fill: #07545d !important;
  stroke: #053941 !important;
  stroke-width: 1.2px !important;
}

body[data-step="debate"] .app-header .brand-vision-needle {
  fill: #b12a33 !important;
  stroke: #7e1d27 !important;
  stroke-width: 1.4px !important;
}

@keyframes dv-vision-o-spin-clean {
  0%,
  22% {
    transform: rotate(0deg);
  }

  56%,
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  body[data-step="debate"] .app-header .brand-lockup {
    --brand-vision-size: 24.2px;
    width: 148px !important;
    height: auto !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .app-header .brand-lockup {
    --brand-vision-size: 23px;
    width: 140px !important;
    height: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-step="debate"] .app-header .brand-vision-spinner {
    animation: none !important;
  }
}

/* Codex desktop spotlight balance: keep the feature dominant while letting neighbors breathe. */
@media (min-width: 900px) {
  body[data-step="debate"] .home-spotlight-section {
    width: min(1180px, calc(100% - 36px)) !important;
  }

  body[data-step="debate"] .home-spotlight-carousel::before {
    inset-inline: 2% !important;
  }

  body[data-step="debate"] .home-spotlight-stage {
    height: clamp(328px, 34vw, 438px) !important;
  }

  body[data-step="debate"] .home-spotlight-card {
    width: clamp(570px, 60vw, 700px) !important;
    height: clamp(292px, 29vw, 398px) !important;
  }

  body[data-step="debate"] .home-spotlight-card.is-near {
    filter: saturate(0.94) !important;
  }

  body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-media::before {
    background:
      linear-gradient(180deg, rgba(16, 42, 46, 0.54), rgba(16, 42, 46, 0.14) 38%, rgba(16, 42, 46, 0)),
      linear-gradient(90deg, rgba(16, 42, 46, 0.32), rgba(16, 42, 46, 0)) !important;
  }
}

/* Site-wide top logo spinner: keep the animated Vision O styled in every app state. */
.app-header .brand-lockup {
  --brand-vision-x: 64.35%;
  --brand-vision-y: 78%;
  --brand-vision-size: 26.8px;
  position: relative !important;
  display: block !important;
  width: clamp(154px, 12vw, 164px) !important;
  height: auto !important;
  aspect-ratio: 1088 / 453 !important;
  overflow: visible !important;
}

.app-header .brand-lockup::before,
.app-header .brand-lockup::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.app-header .brand-lockup img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 4px 8px rgba(16, 38, 45, 0.08)) !important;
  transform: none !important;
}

.app-header .brand-vision-compass {
  position: absolute !important;
  top: var(--brand-vision-y) !important;
  left: var(--brand-vision-x) !important;
  z-index: 4 !important;
  display: block !important;
  width: var(--brand-vision-size) !important;
  height: var(--brand-vision-size) !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  shape-rendering: geometricPrecision;
}

.app-header .brand-vision-fill {
  fill: #fff1cd !important;
  stroke: none !important;
}

.app-header .brand-vision-ring {
  fill: none !important;
  stroke: #b12a33 !important;
  stroke-width: 11px !important;
}

.app-header .brand-vision-spinner {
  transform-origin: center !important;
  transform-box: view-box !important;
  animation: dv-vision-o-spin-clean 10s cubic-bezier(0.66, 0, 0.18, 1) infinite !important;
  will-change: transform;
}

.app-header .brand-vision-spinner-core {
  transform: none !important;
  transform-origin: center !important;
  transform-box: view-box !important;
}

.app-header .brand-vision-star {
  fill: #07545d !important;
  stroke: #053941 !important;
  stroke-width: 1.2px !important;
}

.app-header .brand-vision-needle {
  fill: #b12a33 !important;
  stroke: #7e1d27 !important;
  stroke-width: 1.4px !important;
}

@media (max-width: 700px) {
  .app-header .brand-lockup {
    --brand-vision-size: 24.2px;
    width: 148px !important;
    height: auto !important;
  }
}

@media (max-width: 360px) {
  .app-header .brand-lockup {
    --brand-vision-size: 23px;
    width: 140px !important;
    height: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-header .brand-vision-spinner {
    animation: none !important;
  }
}

/* Codex mobile QA pass: decision stages must fit phones, show board imagery, and keep actions reachable. */
body[data-step="factors"],
body[data-step="rank"],
body[data-step="results"] {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body[data-step="factors"] .app-shell,
body[data-step="rank"] .app-shell,
body[data-step="results"] .app-shell {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

body[data-step="factors"] .goat-console,
body[data-step="rank"] .goat-console,
body[data-step="results"] .goat-console,
body[data-step="factors"] .stage.is-active,
body[data-step="rank"] .stage.is-active,
body[data-step="results"] .stage.is-active {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
}

body[data-step="factors"] .stage.is-active,
body[data-step="rank"] .stage.is-active,
body[data-step="results"] .stage.is-active {
  box-sizing: border-box !important;
  padding-inline: clamp(14px, 4vw, 56px) !important;
  padding-bottom: clamp(28px, 5vw, 54px) !important;
  transform: none !important;
}

body[data-step="factors"] [data-stage="factors"] .stage-copy {
  position: relative !important;
  isolation: isolate;
  box-sizing: border-box !important;
  width: min(1120px, 100%) !important;
  max-width: 100% !important;
  min-height: clamp(218px, 24vw, 306px) !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border: 1px solid rgba(16, 42, 46, 0.09) !important;
  border-radius: 16px !important;
  padding:
    clamp(22px, 3.4vw, 40px)
    min(42vw, 456px)
    clamp(22px, 3.4vw, 40px)
    clamp(20px, 3.6vw, 42px) !important;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.72) 44%, rgba(255, 250, 240, 0.42)),
    #fffaf0 !important;
  box-shadow: 0 18px 42px rgba(16, 42, 46, 0.07) !important;
}

body[data-step="factors"] [data-stage="factors"] .stage-copy > * {
  position: relative !important;
  z-index: 2 !important;
  max-width: min(58ch, 100%) !important;
}

body[data-step="factors"] [data-stage="factors"] .stage-copy h1 {
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: balance;
}

body[data-step="factors"] [data-stage="factors"] .stage-copy::before {
  position: absolute !important;
  inset: 0 0 0 auto !important;
  z-index: 1 !important;
  display: block !important;
  width: min(43%, 446px) !important;
  height: 100% !important;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 240, 0.92) 0%, rgba(255, 250, 240, 0.46) 28%, rgba(255, 250, 240, 0.04) 72%),
    var(--dv-board-photo, linear-gradient(135deg, rgba(7, 84, 93, 0.18), rgba(198, 162, 75, 0.2))) !important;
  background-position: center, center !important;
  background-size: auto, cover !important;
  background-repeat: no-repeat !important;
  content: "" !important;
}

body[data-step="factors"] [data-stage="factors"] .stage-copy::after {
  display: none !important;
  content: none !important;
}

body[data-step="factors"] .factor-board {
  box-sizing: border-box !important;
  width: min(1120px, 100%) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  grid-template-columns: minmax(286px, 0.8fr) minmax(0, 1.2fr) !important;
  gap: clamp(16px, 2.6vw, 30px) !important;
  overflow: visible !important;
}

body[data-step="factors"] .field-arrow {
  display: none !important;
}

body[data-step="factors"] .factor-zone,
body[data-step="factors"] .bench-zone,
body[data-step="factors"] .scoring-zone {
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-step="factors"] .factor-rack,
body[data-step="factors"] .selected-rack {
  max-height: none !important;
  overflow: visible !important;
}

body[data-step="factors"] .factor-token {
  min-width: 0 !important;
}

@media (max-width: 700px) {
  body[data-step="factors"] .app-header,
  body[data-step="rank"] .app-header,
  body[data-step="results"] .app-header,
  body[data-step="debate"] .app-header {
    grid-template-columns: 34px minmax(138px, 148px) minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 66px !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    padding: 7px 12px !important;
  }

  body[data-step="factors"] .menu-toggle,
  body[data-step="rank"] .menu-toggle,
  body[data-step="results"] .menu-toggle,
  body[data-step="debate"] .menu-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    --brand-vision-size: 22.8px;
    width: 142px !important;
    height: auto !important;
  }

  body[data-step="factors"] .global-search,
  body[data-step="rank"] .global-search,
  body[data-step="results"] .global-search,
  body[data-step="debate"] .global-search,
  body[data-step="factors"] .header-actions,
  body[data-step="rank"] .header-actions,
  body[data-step="results"] .header-actions,
  body[data-step="debate"] .header-actions {
    display: none !important;
  }

  body[data-step="factors"] .stage.is-active,
  body[data-step="rank"] .stage.is-active,
  body[data-step="results"] .stage.is-active {
    padding: 12px 14px 92px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .stage-copy {
    min-height: 0 !important;
    border-radius: 14px !important;
    padding:
      16px
      15px
      112px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .stage-copy h1 {
    max-width: 13.2ch !important;
    font-size: clamp(2rem, 9.2vw, 2.42rem) !important;
    line-height: 1.02 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .stage-subtitle {
    max-width: 31ch !important;
    font-size: 0.88rem !important;
    line-height: 1.34 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .stage-copy::before {
    inset: auto 0 0 0 !important;
    width: 100% !important;
    height: 96px !important;
    background-image:
      linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(7, 84, 93, 0.1)),
      var(--dv-board-photo, linear-gradient(135deg, rgba(7, 84, 93, 0.18), rgba(198, 162, 75, 0.2))) !important;
    background-position: center, center 42% !important;
  }

  body[data-step="factors"] .factor-board {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  body[data-step="factors"] .factor-zone {
    width: 100% !important;
    margin-top: 0 !important;
    border-radius: 13px !important;
    padding: 10px !important;
  }

  body[data-step="factors"] .zone-label {
    gap: 4px !important;
    margin-bottom: 8px !important;
  }

  body[data-step="factors"] .zone-label strong {
    font-size: 1rem !important;
    line-height: 1.1 !important;
  }

  body[data-step="factors"] .factor-progress {
    margin-bottom: 9px !important;
  }

  body[data-step="factors"] .factor-token {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    min-height: 74px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body[data-step="factors"] .factor-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }

  body[data-step="factors"] .factor-token h3 {
    font-size: 0.86rem !important;
    line-height: 1.1 !important;
  }

  body[data-step="factors"] .factor-token p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 0.66rem !important;
    line-height: 1.24 !important;
  }

  body[data-step="factors"] .source-chip {
    min-width: 36px !important;
    min-height: 24px !important;
    padding-inline: 8px !important;
    font-size: 0.54rem !important;
  }

  body[data-step="factors"] .mini-action {
    min-width: 34px !important;
    min-height: 25px !important;
    padding: 6px 7px 0 !important;
    font-size: 0.56rem !important;
  }

  body[data-step="factors"] .stage-actions,
  body[data-step="rank"] .stage-actions,
  body[data-step="rank"] [data-stage="rank"] .stage-actions,
  body[data-step="results"] .stage-actions,
  body[data-step="results"] [data-stage="results"] .stage-actions {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(180deg, rgba(251, 248, 239, 0), rgba(251, 248, 239, 0.96) 18%, rgba(251, 248, 239, 1)) !important;
    box-shadow: 0 -14px 34px rgba(16, 42, 46, 0.08) !important;
  }

  body[data-step="results"] .stage-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  body[data-step="results"] .stage-actions .next-button {
    grid-column: 1 / -1 !important;
  }

  body[data-step="factors"] .stage-actions > *,
  body[data-step="rank"] .stage-actions > *,
  body[data-step="results"] .stage-actions > * {
    width: 100% !important;
    min-height: 46px !important;
    padding-inline: 10px !important;
    font-size: 0.86rem !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }
}

@media (max-width: 360px) {
  body[data-step="factors"] .app-header,
  body[data-step="rank"] .app-header,
  body[data-step="results"] .app-header,
  body[data-step="debate"] .app-header {
    grid-template-columns: 32px minmax(132px, 140px) minmax(0, 1fr) !important;
    padding-inline: 10px !important;
  }

  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    --brand-vision-size: 22px;
    width: 136px !important;
  }

  body[data-step="factors"] .stage.is-active,
  body[data-step="rank"] .stage.is-active,
  body[data-step="results"] .stage.is-active {
    padding-inline: 10px !important;
  }
}

@media (max-width: 700px) {
  body[data-step="factors"] .bench-zone .zone-label {
    display: block !important;
  }

  body[data-step="factors"] #benchLabel {
    display: none !important;
  }

  body[data-step="factors"] .scoring-zone .zone-label {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    gap: 3px !important;
  }

  body[data-step="factors"] #selectedCount {
    max-width: 100% !important;
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-step="factors"] #scorecardLabel {
    max-width: 100% !important;
    font-size: 0.96rem !important;
  }

  body[data-step="factors"] .factor-progress > span:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body[data-step="factors"] .factor-progress em {
    display: none !important;
  }
}

/* Codex mobile QA pass: homepage containers must not drift wider than the phone viewport. */
@media (max-width: 700px) {
  body[data-step="debate"] {
    overflow-x: hidden !important;
  }

  body[data-step="debate"] .app-shell,
  body[data-step="debate"] .goat-console,
  body[data-step="debate"] .stage.is-active {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  body[data-step="debate"] #categoryCards,
  body[data-step="debate"] .featured-portals {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: clip !important;
  }

  body[data-step="debate"] .stage-copy {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  body[data-step="debate"] .hero-copy {
    width: min(100%, calc(100vw - 44px)) !important;
    max-width: calc(100vw - 44px) !important;
  }

  body[data-step="debate"] .hero-search {
    box-sizing: border-box !important;
    width: min(100%, calc(100vw - 52px)) !important;
    max-width: calc(100vw - 52px) !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    overflow: hidden !important;
  }

  body[data-step="debate"] .hero-search input {
    min-width: 0 !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    position: static !important;
    justify-self: stretch !important;
    width: 58px !important;
    min-width: 58px !important;
    margin: 0 !important;
    flex-basis: 58px !important;
  }

  body[data-step="debate"] .launch-tile-shell {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
    width: calc(100vw - 20px) !important;
    max-width: 348px !important;
    margin: 14px auto 18px !important;
    padding: 10px !important;
    overflow: hidden !important;
    transform: translateX(min(0px, calc((430px - 100vw) / 2))) !important;
  }

  body[data-step="debate"] .launch-tile-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 108px !important;
    gap: 9px !important;
    width: 100% !important;
  }

  body[data-step="debate"] .launch-tile,
  body[data-step="debate"] .launch-tile:nth-child(-n + 4),
  body[data-step="debate"] .launch-tile:nth-child(n + 5) {
    grid-column: auto !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body[data-step="debate"] .launch-tile[data-family="politics"] {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 360px) {
  body[data-step="debate"] .hero-copy {
    width: min(100%, calc(100vw - 34px)) !important;
    max-width: calc(100vw - 34px) !important;
  }

  body[data-step="debate"] .hero-search {
    width: min(100%, calc(100vw - 34px)) !important;
    max-width: calc(100vw - 34px) !important;
    grid-template-columns: minmax(0, 1fr) 54px !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    width: 54px !important;
    min-width: 54px !important;
    flex-basis: 54px !important;
  }
}

/* Codex mobile QA polish: final shared phone affordances. */
@media (max-width: 700px) {
  .app-header .header-actions,
  .app-header .site-nav,
  .app-header .global-search {
    display: none !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    color: #ffffff !important;
    background: #9d1732 !important;
    box-shadow:
      inset 0 -2px 0 rgba(16, 42, 46, 0.14),
      -1px 0 0 rgba(16, 42, 46, 0.06) !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"]::before {
    position: static !important;
    display: block !important;
    content: "" !important;
    width: 13px !important;
    height: 13px !important;
    margin-left: -4px !important;
    border-top: 3px solid currentColor !important;
    border-right: 3px solid currentColor !important;
    transform: rotate(45deg) !important;
  }

  body[data-step="debate"] .hero-search {
    width: min(calc(100vw - 52px), 338px) !important;
    max-width: 338px !important;
    justify-self: start !important;
  }

  body[data-step="factors"] .factor-board,
  body[data-step="rank"] .rank-layout,
  body[data-step="results"] .result-layout {
    padding-bottom: 24px !important;
  }
}

/* Codex pet-photo QA: animal results need roomy thumbnails, not tight portrait circles. */
.photo-token.has-photo[data-photo-shape="pet"] {
  background-color: #f6efdf !important;
  background-position: center, var(--photo-position, 50% 48%) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100%, cover !important;
}

.winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  width: clamp(150px, 16vw, 188px) !important;
  height: clamp(118px, 12.8vw, 146px) !important;
  border: 8px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 18px !important;
  outline: 1px solid rgba(7, 84, 93, 0.14) !important;
  box-shadow:
    0 18px 38px rgba(16, 38, 45, 0.14),
    inset 0 -26px 48px rgba(1, 58, 71, 0.06) !important;
}

.profile-head-pet {
  grid-template-columns: 126px minmax(0, 1fr) !important;
}

.profile-photo.photo-token.has-photo[data-photo-shape="pet"] {
  width: 120px !important;
  height: 92px !important;
  border-radius: 14px !important;
}

[data-stage="results"] .result-card:has(.result-rank[data-photo-shape="pet"]) {
  grid-template-columns: 72px minmax(0, 1fr) !important;
}

.result-rank.photo-token.has-photo[data-photo-shape="pet"] {
  width: 62px !important;
  height: 50px !important;
  border-radius: 12px !important;
  box-shadow:
    0 10px 20px rgba(16, 38, 45, 0.11),
    inset 0 -16px 28px rgba(1, 58, 71, 0.06) !important;
}

.result-rank.photo-token.has-photo[data-photo-shape="pet"] span {
  right: -6px !important;
  bottom: -6px !important;
}

@media (max-width: 620px) {
  .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    width: min(152px, 46vw) !important;
    height: min(118px, 34vw) !important;
  }

  .profile-head-pet {
    grid-template-columns: 102px minmax(0, 1fr) !important;
  }

  .profile-photo.photo-token.has-photo[data-photo-shape="pet"] {
    width: 96px !important;
    height: 76px !important;
  }

  [data-stage="results"] .result-card:has(.result-rank[data-photo-shape="pet"]) {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  .result-rank.photo-token.has-photo[data-photo-shape="pet"] {
    width: 56px !important;
    height: 46px !important;
  }
}

/* Codex footer completion: universal proof copy and one-line origin. */
.site-footer .footer-nav :is(button, a) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(7, 84, 93, 0.9) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.66rem !important;
  font-weight: 780 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.site-footer .footer-nav :is(button, a)::after {
  content: "" !important;
  display: block !important;
  width: 4px !important;
  height: 4px !important;
  margin-left: 10px !important;
  border-radius: 999px !important;
  background: rgba(157, 23, 50, 0.56) !important;
}

.site-footer .footer-nav :is(button, a):last-child {
  min-height: 30px !important;
  border: 1px solid rgba(157, 23, 50, 0.18) !important;
  border-radius: 999px !important;
  padding: 0 13px !important;
  color: #8f1229 !important;
  background: rgba(157, 23, 50, 0.055) !important;
}

.site-footer .footer-nav :is(button, a):last-child::after {
  width: 6px !important;
  height: 6px !important;
  background: #9d1732 !important;
}

.site-footer .footer-base {
  justify-content: flex-start !important;
}

.site-footer .footer-origin {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: rgba(16, 42, 46, 0.58) !important;
}

.site-footer .footer-origin-separator {
  display: block !important;
  width: 4px !important;
  height: 4px !important;
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  background: rgba(7, 84, 93, 0.28) !important;
}

.site-footer .footer-legal {
  text-align: left !important;
}

@media (max-width: 560px) {
  .site-footer .footer-nav :is(button, a) {
    min-height: 25px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.055em !important;
  }

  .site-footer .footer-nav :is(button, a)::after {
    display: none !important;
  }

  .site-footer .footer-nav :is(button, a):nth-child(even) {
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .site-footer .footer-nav :is(button, a):last-child {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    min-height: 28px !important;
    margin-top: 2px !important;
    padding: 0 11px !important;
    font-size: 0.58rem !important;
  }

  .site-footer .footer-origin {
    gap: 6px !important;
    font-size: 0.59rem !important;
    line-height: 1.18 !important;
  }
}

/* Codex home QA: protect the mobile hero from header collision and soften the search action. */
body[data-step="debate"] .hero-search button[type="submit"] {
  color: #ffffff !important;
  background:
    linear-gradient(180deg, #bf3142 0%, #a81d32 58%, #8c1728 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(92, 12, 25, 0.12),
    -1px 0 0 rgba(16, 42, 46, 0.06) !important;
}

@media (max-width: 700px) {
  body[data-step="debate"] .stage-copy {
    min-height: clamp(276px, 58vw, 344px) !important;
    padding-top: clamp(34px, 9vw, 54px) !important;
    padding-bottom: clamp(24px, 6vw, 36px) !important;
  }

  body[data-step="debate"] .hero-copy {
    gap: 7px !important;
  }

  body[data-step="debate"] .hero-copy h1 {
    margin-top: 0 !important;
    max-width: min(12.6ch, calc(100vw - 52px)) !important;
    line-height: 0.98 !important;
  }

  body[data-step="debate"] .hero-copy .stage-subtitle {
    max-width: min(33ch, calc(100vw - 52px)) !important;
    line-height: 1.2 !important;
  }

  body[data-step="debate"] .hero-search {
    margin-top: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 250, 240, 0.2) !important;
    border-radius: 7px !important;
    background: #fffaf0 !important;
    box-shadow:
      0 14px 28px rgba(16, 42, 46, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"] {
    border-left: 1px solid rgba(126, 29, 39, 0.18) !important;
    color: #ffffff !important;
    background:
      linear-gradient(180deg, #bf3142 0%, #a81d32 58%, #8c1728 100%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -10px 18px rgba(92, 12, 25, 0.12),
      -1px 0 0 rgba(16, 42, 46, 0.06) !important;
  }

  body[data-step="debate"] .hero-search button[type="submit"]::before {
    margin-left: -2px !important;
    filter: drop-shadow(0 1px 0 rgba(16, 42, 46, 0.18));
  }
}

@media (min-width: 561px) and (max-width: 700px) {
  body[data-step="debate"] .launch-tile-shell {
    justify-self: center !important;
    transform: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* Codex home map remodel: make the structure section read like a guided choice map. */
body[data-step="debate"] .home-category-directory {
  position: relative;
  z-index: 0;
  width: min(1120px, calc(100% - 40px));
  margin: clamp(38px, 5vw, 76px) auto clamp(74px, 8vw, 110px);
  padding: clamp(28px, 4vw, 44px) 0 0;
  overflow: visible;
  border-top: 1px solid rgba(16, 42, 46, 0.12);
  border-radius: 0;
  background: transparent;
}

body[data-step="debate"] .home-category-directory::before {
  position: absolute;
  inset: clamp(18px, 3vw, 34px) calc(50% - 50vw) auto;
  z-index: -1;
  height: 54%;
  min-height: 360px;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(226, 248, 240, 0.64), transparent 34%),
    radial-gradient(ellipse at 82% 62%, rgba(255, 250, 240, 0.94), transparent 38%);
  content: "";
  pointer-events: none;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head {
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(280px, 0.9fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: end;
  justify-items: start;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(18px, 2.6vw, 28px);
  text-align: left;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head .kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--dv-red);
}

body[data-step="debate"] .home-category-directory .home-category-directory-head h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--dv-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 0.98;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head p:not(.kicker) {
  justify-self: end;
  max-width: 46ch;
  margin: 0;
  color: rgba(16, 42, 46, 0.66);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
}

body[data-step="debate"] .home-category-directory .home-map-grid {
  display: grid;
  gap: 12px;
  border-top: 0;
}

body[data-step="debate"] .home-category-directory .home-map-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.64fr) minmax(0, 1.36fr) minmax(180px, 0.56fr) auto;
  gap: clamp(14px, 2.1vw, 26px);
  align-items: stretch;
  min-height: 122px;
  border: 1px solid rgba(16, 42, 46, 0.1);
  border-radius: 8px;
  padding: clamp(14px, 1.8vw, 18px);
  color: var(--dv-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 248, 0.92) 58%, rgba(255, 250, 240, 0.9)),
    radial-gradient(circle at 96% 14%, rgba(232, 248, 241, 0.72), transparent 30%);
  box-shadow: 0 16px 38px rgba(16, 42, 46, 0.065);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-step="debate"] .home-category-directory .home-map-row::before {
  position: absolute;
  inset: 12px auto 12px 10px;
  display: block;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--dv-teal), var(--dv-red));
  content: "";
}

body[data-step="debate"] .home-category-directory .home-map-row:hover,
body[data-step="debate"] .home-category-directory .home-map-row:focus-visible {
  border-color: rgba(7, 84, 93, 0.22);
  box-shadow: 0 22px 52px rgba(16, 42, 46, 0.1);
  transform: translateY(-2px);
}

body[data-step="debate"] .home-category-directory .home-map-title,
body[data-step="debate"] .home-category-directory .home-map-lanes,
body[data-step="debate"] .home-category-directory .home-map-factors,
body[data-step="debate"] .home-category-directory .home-map-cta {
  position: relative;
  z-index: 1;
}

body[data-step="debate"] .home-category-directory .home-map-title {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-left: 14px;
}

body[data-step="debate"] .home-category-directory .home-map-title small {
  color: var(--dv-red);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .home-category-directory .home-map-title strong {
  color: var(--dv-ink);
  font-size: clamp(1.18rem, 1.55vw, 1.45rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.02;
}

body[data-step="debate"] .home-category-directory .home-map-title span {
  max-width: 28ch;
  color: rgba(16, 42, 46, 0.66);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.33;
}

body[data-step="debate"] .home-category-directory .home-map-title em {
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  border: 1px solid rgba(7, 84, 93, 0.14);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(7, 84, 93, 0.9);
  background: rgba(232, 248, 241, 0.72);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

body[data-step="debate"] .home-category-directory .home-map-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  align-items: stretch;
}

body[data-step="debate"] .home-category-directory .home-map-lane {
  display: grid;
  gap: 5px;
  min-height: 64px;
  border: 1px solid rgba(7, 84, 93, 0.1);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-step="debate"] .home-category-directory .home-map-lanes .home-map-lane b {
  display: block;
  padding: 0;
  color: rgba(5, 16, 20, 0.92);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.14;
}

body[data-step="debate"] .home-category-directory .home-map-lanes .home-map-lane b::before {
  display: none;
}

body[data-step="debate"] .home-category-directory .home-map-lane em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 430;
  line-height: 1.22;
}

body[data-step="debate"] .home-category-directory .home-map-factors {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 100%;
  border: 1px dashed rgba(126, 29, 39, 0.18);
  border-left: 1px dashed rgba(126, 29, 39, 0.18);
  border-radius: 8px;
  padding: 12px;
  color: rgba(16, 42, 46, 0.64);
  background: rgba(255, 250, 240, 0.72);
  font-size: 0.78rem;
  font-weight: 430;
  line-height: 1.34;
}

body[data-step="debate"] .home-category-directory .home-map-factors::before {
  display: none;
  content: "";
}

body[data-step="debate"] .home-category-directory .home-map-factors b {
  color: rgba(126, 29, 39, 0.82);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-step="debate"] .home-category-directory .home-map-factors em {
  color: rgba(16, 42, 46, 0.66);
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  line-height: inherit;
}

body[data-step="debate"] .home-category-directory .home-map-cta {
  align-self: center;
  justify-self: end;
  min-width: 126px;
  min-height: 46px;
  border: 1px solid rgba(7, 84, 93, 0.18);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--dv-teal);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(16, 42, 46, 0.07);
  font-size: 0.9rem;
  font-weight: 760;
}

body[data-step="debate"] .home-category-directory .home-map-cta::after {
  width: 8px;
  height: 8px;
  margin-left: 10px;
}

body[data-step="debate"] .home-category-directory .home-map-row:hover .home-map-cta,
body[data-step="debate"] .home-category-directory .home-map-row:focus-visible .home-map-cta {
  border-color: rgba(126, 29, 39, 0.22);
  color: #fffaf0;
  background: linear-gradient(135deg, #bf3142, #07545d);
  transform: translateX(3px);
}

body[data-step="debate"] .home-category-directory .home-map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(16, 42, 46, 0.1);
  padding: clamp(14px, 2vw, 18px) 0 0;
}

body[data-step="debate"] .home-category-directory .home-map-actions span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-step="debate"] .home-category-directory .home-map-actions strong {
  color: var(--dv-ink);
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.1;
}

body[data-step="debate"] .home-category-directory .home-map-actions em {
  color: rgba(16, 42, 46, 0.64);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

body[data-step="debate"] .home-category-directory .home-map-actions button {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid rgba(126, 29, 39, 0.2);
  border-radius: 6px;
  padding: 0 18px;
  color: #fffaf0;
  background: linear-gradient(180deg, #bf3142 0%, #a81d32 58%, #8c1728 100%);
  box-shadow: 0 14px 28px rgba(126, 29, 39, 0.16);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
}

body[data-step="debate"] .home-category-directory .home-map-actions button:hover,
body[data-step="debate"] .home-category-directory .home-map-actions button:focus-visible {
  border-color: rgba(7, 84, 93, 0.26);
  color: #fffaf0;
  background: linear-gradient(135deg, #bf3142, #07545d);
  transform: translateY(-1px);
}

@media (max-width: 1060px) {
  body[data-step="debate"] .home-category-directory .home-map-row {
    grid-template-columns: minmax(180px, 0.74fr) minmax(0, 1.26fr) auto;
  }

  body[data-step="debate"] .home-category-directory .home-map-factors {
    grid-column: 2 / 3;
  }

  body[data-step="debate"] .home-category-directory .home-map-cta {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }
}

@media (max-width: 860px) {
  body[data-step="debate"] .home-category-directory {
    width: min(calc(100% - 30px), 680px);
  }

  body[data-step="debate"] .home-category-directory .home-category-directory-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-step="debate"] .home-category-directory .home-category-directory-head p:not(.kicker) {
    justify-self: start;
    max-width: 58ch;
  }

  body[data-step="debate"] .home-category-directory .home-map-row {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 15px;
  }

  body[data-step="debate"] .home-category-directory .home-map-factors,
  body[data-step="debate"] .home-category-directory .home-map-cta {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-step="debate"] .home-category-directory .home-map-cta {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  body[data-step="debate"] .home-spotlight-lead h2 {
    max-width: min(13ch, calc(100vw - 32px)) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: clamp(2rem, 9vw, 2.45rem) !important;
    line-height: 0.98 !important;
  }

  body[data-step="debate"] .home-category-directory {
    width: min(calc(100% - 24px), 430px);
    margin-top: 34px;
    padding-top: 24px;
  }

  body[data-step="debate"] .home-category-directory .home-category-directory-head h2 {
    max-width: 14ch;
    font-size: clamp(1.78rem, 9vw, 2.2rem);
  }

  body[data-step="debate"] .home-category-directory .home-category-directory-head p:not(.kicker) {
    font-size: 0.94rem;
  }

  body[data-step="debate"] .home-category-directory .home-map-grid {
    gap: 10px;
  }

  body[data-step="debate"] .home-category-directory .home-map-title {
    padding-left: 12px;
  }

  body[data-step="debate"] .home-category-directory .home-map-lanes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-step="debate"] .home-category-directory .home-map-lane {
    min-height: 0;
  }

  body[data-step="debate"] .home-category-directory .home-map-cta {
    width: 100%;
  }

  body[data-step="debate"] .home-category-directory .home-map-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-step="debate"] .home-category-directory .home-map-actions button {
    width: 100%;
  }
}

/* Codex home map QA: keep the remodeled map disciplined on narrow screens. */
body[data-step="debate"] .home-category-directory .home-map-row > *,
body[data-step="debate"] .home-category-directory .home-map-title,
body[data-step="debate"] .home-category-directory .home-map-title span,
body[data-step="debate"] .home-category-directory .home-map-lanes,
body[data-step="debate"] .home-category-directory .home-map-lane,
body[data-step="debate"] .home-category-directory .home-map-lane em,
body[data-step="debate"] .home-category-directory .home-map-factors,
body[data-step="debate"] .home-category-directory .home-map-factors em {
  min-width: 0;
  max-width: 100%;
}

body[data-step="debate"] .home-category-directory,
body[data-step="debate"] .home-category-directory .home-map-row,
body[data-step="debate"] .home-category-directory .home-map-actions {
  max-width: 100%;
  box-sizing: border-box;
}

body[data-step="debate"] .home-category-directory .home-category-directory-head p:not(.kicker),
body[data-step="debate"] .home-category-directory .home-map-title span,
body[data-step="debate"] .home-category-directory .home-map-lane em,
body[data-step="debate"] .home-category-directory .home-map-factors em {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  body[data-step="debate"] .home-category-directory .home-map-row {
    gap: 9px;
    overflow: hidden;
    padding: 13px 12px;
    box-shadow: 0 12px 26px rgba(16, 42, 46, 0.07);
  }

  body[data-step="debate"] .home-category-directory .home-map-title {
    gap: 4px;
    padding-left: 11px;
  }

  body[data-step="debate"] .home-category-directory .home-map-title small {
    font-size: 0.58rem;
  }

  body[data-step="debate"] .home-category-directory .home-map-title strong {
    font-size: 1.18rem;
  }

  body[data-step="debate"] .home-category-directory .home-map-title span {
    font-size: 0.82rem;
    line-height: 1.28;
  }

  body[data-step="debate"] .home-category-directory .home-map-title em {
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  body[data-step="debate"] .home-category-directory .home-map-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-step="debate"] .home-category-directory .home-map-lane {
    min-height: 50px;
    padding: 7px 8px;
  }

  body[data-step="debate"] .home-category-directory .home-map-lanes .home-map-lane b {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  body[data-step="debate"] .home-category-directory .home-map-lane em {
    font-size: 0.62rem;
    line-height: 1.16;
    -webkit-line-clamp: 1;
  }

  body[data-step="debate"] .home-category-directory .home-map-factors {
    gap: 5px;
    min-height: 0;
    padding: 9px;
    font-size: 0.67rem;
    line-height: 1.25;
  }

  body[data-step="debate"] .home-category-directory .home-map-factors b {
    font-size: 0.56rem;
  }

  body[data-step="debate"] .home-category-directory .home-map-factors em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-step="debate"] .home-category-directory .home-map-cta {
    min-height: 42px;
    font-size: 0.84rem;
  }
}

@media (max-width: 350px) {
  body[data-step="debate"] .home-category-directory .home-map-lanes {
    grid-template-columns: 1fr;
  }
}

/* Codex footer balance pass: origin and legal copy now flank the signed logo. */
.site-footer,
body[data-step="debate"] .site-footer,
[data-stage="results"] .site-footer {
  gap: 15px 30px !important;
  padding: 18px 20px 17px !important;
}

.site-footer .footer-proof span {
  position: relative !important;
  overflow: hidden !important;
}

.site-footer .footer-proof span::before {
  position: absolute !important;
  top: 0 !important;
  right: 12px !important;
  left: 12px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: rgba(7, 84, 93, 0.62) !important;
  content: "" !important;
}

.site-footer .footer-proof span:nth-child(2)::before {
  background: rgba(216, 180, 92, 0.92) !important;
}

.site-footer .footer-proof span:nth-child(3)::before {
  background: rgba(157, 23, 50, 0.62) !important;
}

.site-footer .footer-base {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr) !important;
  grid-template-areas: "origin logo legal" !important;
  align-items: center !important;
  gap: clamp(14px, 2.2vw, 28px) !important;
  width: 100% !important;
  min-width: 0 !important;
  border-top: 0 !important;
  padding-top: 8px !important;
}

.site-footer .footer-origin,
.site-footer .footer-origin-separator {
  display: none !important;
}

.site-footer .footer-flag {
  grid-area: origin !important;
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  color: rgba(16, 42, 46, 0.66) !important;
  font-size: 0.72rem !important;
  font-weight: 640 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-footer .footer-flag img {
  display: block !important;
  width: 29px !important;
  height: auto !important;
  border: 1px solid rgba(16, 42, 46, 0.1) !important;
  box-shadow: 0 6px 14px rgba(16, 42, 46, 0.08) !important;
}

.site-footer .footer-logo {
  grid-area: logo !important;
  display: block !important;
  justify-self: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-decoration: none !important;
}

.site-footer .footer-logo::before,
.site-footer .footer-logo::after {
  display: none !important;
}

.site-footer .footer-logo img {
  display: block !important;
  width: clamp(118px, 13vw, 142px) !important;
  height: auto !important;
}

.site-footer .footer-legal {
  grid-area: legal !important;
  justify-self: end !important;
  max-width: 42ch !important;
  min-width: 0 !important;
  color: rgba(16, 42, 46, 0.52) !important;
  font-size: 0.68rem !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

@media (max-width: 760px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    gap: 12px !important;
  }

  .site-footer .footer-base {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "logo"
      "origin"
      "legal" !important;
    justify-items: center !important;
    gap: 8px !important;
    padding-top: 11px !important;
  }

  .site-footer .footer-flag,
  .site-footer .footer-logo,
  .site-footer .footer-legal {
    justify-self: center !important;
  }

  .site-footer .footer-legal {
    max-width: 32ch !important;
    text-align: center !important;
  }
}

/* Customer tool shippability pass: make the outcome-changing controls obvious and easy to operate. */
body[data-step="factors"] .factor-token {
  grid-template-columns: 46px minmax(0, 1fr) minmax(76px, auto) !important;
  align-items: center !important;
}

body[data-step="factors"] .factor-token:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 48%, rgba(198, 162, 75, 0.42)) !important;
  outline-offset: 3px !important;
}

body[data-step="factors"] .mini-action {
  display: grid !important;
  place-items: center !important;
  min-width: 76px !important;
  min-height: 40px !important;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 42%, rgba(16, 42, 46, 0.14)) !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  color: color-mix(in srgb, var(--accent, var(--dv-teal)) 86%, #102a2e) !important;
  background: rgba(255, 250, 240, 0.9) !important;
  font-size: 0.74rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

body[data-step="factors"] .factor-token.is-selected .mini-action {
  color: #ffffff !important;
  background: var(--accent, var(--dv-red)) !important;
}

body[data-step="factors"] .factor-token:hover .mini-action,
body[data-step="factors"] .factor-token:focus-within .mini-action {
  color: #ffffff !important;
  background: var(--accent, var(--dv-teal)) !important;
}

.order-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(48px, 1fr)) !important;
  gap: 8px !important;
}

.order-actions button,
.icon-button {
  min-width: 48px !important;
  min-height: 44px !important;
  border-width: 1px !important;
  border-radius: 10px !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
}

.order-actions button:disabled,
.icon-button:disabled {
  opacity: 0.48 !important;
}

.stage-actions .next-button,
.stage-actions .ghost-button {
  min-height: 58px !important;
  padding-inline: clamp(20px, 2.4vw, 30px) !important;
  font-size: 0.98rem !important;
}

.result-tuner {
  gap: 14px !important;
}

.result-tuner-head {
  gap: 6px !important;
}

.result-tuner-head .kicker {
  color: var(--dv-red, var(--red)) !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.result-tuner-head h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

.result-tuner-head span {
  max-width: 44ch !important;
  color: rgba(16, 42, 46, 0.66) !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
}

.result-control-deck {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: start !important;
}

.result-volume-panel {
  min-width: 0 !important;
}

.result-radar-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  border: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 229, 0.78)) !important;
}

.result-radar-map {
  position: relative !important;
  aspect-ratio: 1 !important;
  width: min(192px, 58vw) !important;
  min-height: 0 !important;
  justify-self: center !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 16%, rgba(255, 255, 255, 0) 17%),
    conic-gradient(from -90deg, rgba(7, 84, 93, 0.08), rgba(177, 42, 51, 0.08), rgba(198, 162, 75, 0.12), rgba(7, 84, 93, 0.08)) !important;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 46, 0.08), 0 16px 36px rgba(16, 42, 46, 0.08) !important;
  overflow: hidden !important;
}

.result-radar-ring,
.result-radar-axis,
.result-radar-spoke,
.result-radar-center {
  position: absolute !important;
  pointer-events: none !important;
}

.result-radar-ring {
  inset: var(--ring-inset, 18%) !important;
  border: 1px solid rgba(16, 42, 46, 0.11) !important;
  border-radius: 50% !important;
}

.result-radar-ring-1 { --ring-inset: 18%; }
.result-radar-ring-2 { --ring-inset: 32%; }
.result-radar-ring-3 { --ring-inset: 45%; }

.result-radar-axis {
  left: 50% !important;
  top: 50% !important;
  width: 44% !important;
  height: 1px !important;
  background: rgba(16, 42, 46, 0.1) !important;
  transform-origin: 0 50% !important;
}

.result-radar-axis-1 { transform: rotate(0deg); }
.result-radar-axis-2 { transform: rotate(45deg); }
.result-radar-axis-3 { transform: rotate(90deg); }
.result-radar-axis-4 { transform: rotate(135deg); }

.result-radar-spoke {
  left: 50% !important;
  top: 50% !important;
  width: var(--spoke-length, 28%) !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--accent, var(--dv-teal)), color-mix(in srgb, var(--accent, var(--dv-teal)) 54%, #ffffff)) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 16px color-mix(in srgb, var(--accent, var(--dv-teal)) 22%, rgba(16, 42, 46, 0.12)) !important;
  transform: rotate(var(--angle, 0deg)) translateY(-50%) !important;
  transform-origin: 0 50% !important;
}

.result-radar-spoke::after {
  content: "" !important;
  position: absolute !important;
  right: -5px !important;
  top: 50% !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: var(--accent, var(--dv-teal)) !important;
  border: 2px solid #ffffff !important;
  transform: translateY(-50%) !important;
}

.result-radar-center {
  left: 50% !important;
  top: 50% !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #ffffff url("assets/dv-compass-mark-square.png") center / 114% 114% no-repeat !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(16, 42, 46, 0.1),
    0 8px 18px rgba(16, 42, 46, 0.12) !important;
  transform: translate(-50%, -50%) !important;
}

.result-radar-center::after {
  content: none !important;
}

.result-radar-controls {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.result-radar-control {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
}

.result-radar-main,
.result-radar-step {
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.12)) !important;
  background: #ffffff !important;
  color: var(--accent, var(--dv-teal)) !important;
}

.result-radar-step {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.result-radar-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.result-radar-main span {
  overflow: hidden !important;
  color: var(--dv-ink, var(--ink)) !important;
  font-size: 0.82rem !important;
  font-weight: 720 !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.result-radar-main b {
  color: var(--accent, var(--dv-teal)) !important;
  font-size: 0.76rem !important;
  font-weight: 820 !important;
}

.result-radar-step:hover,
.result-radar-step:focus-visible {
  color: #ffffff !important;
  background: var(--accent, var(--dv-teal)) !important;
}

.result-radar-control.is-tuning .result-radar-main,
.result-tune-card.is-tuning {
  outline: 2px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 44%, #ffffff) !important;
  outline-offset: 2px !important;
}

.result-tuner-grid {
  grid-template-columns: 1fr !important;
  gap: 9px !important;
}

.result-tune-card,
.result-tuner.is-many .result-tune-card {
  display: grid !important;
  grid-template-columns: minmax(118px, 0.72fr) minmax(214px, 1.28fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 76px !important;
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 24%, rgba(16, 42, 46, 0.1)) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  box-shadow: 0 14px 30px rgba(16, 42, 46, 0.065) !important;
}

.result-tune-card::after {
  height: 4px !important;
}

.result-tune-card::before {
  display: none !important;
}

.result-tune-copy,
.result-tuner.is-many .result-tune-copy {
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  min-height: 0 !important;
  text-align: left !important;
}

.result-tune-copy strong,
.result-tuner.is-many .result-tune-copy strong {
  font-size: 0.92rem !important;
  font-weight: 720 !important;
  line-height: 1.1 !important;
}

.result-tune-copy span {
  color: color-mix(in srgb, var(--accent, var(--dv-teal)) 72%, rgba(16, 42, 46, 0.58)) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.result-tune-control,
.result-tuner.is-many .result-tune-control {
  display: grid !important;
  grid-template-columns: 40px minmax(92px, 1fr) 40px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 46px !important;
}

.result-tune-step {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 42px !important;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.14)) !important;
  border-radius: 10px !important;
  color: var(--accent, var(--dv-teal)) !important;
  background: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

.result-tune-step:hover,
.result-tune-step:focus-visible {
  color: #ffffff !important;
  background: var(--accent, var(--dv-teal)) !important;
}

.result-tune-range,
.result-tuner.is-many .result-tune-range {
  width: 100% !important;
  height: 42px !important;
  margin: 0 !important;
  accent-color: var(--accent, var(--dv-teal)) !important;
  cursor: default !important;
  direction: ltr !important;
  writing-mode: horizontal-tb !important;
}

.result-tune-meter {
  position: relative !important;
  display: grid !important;
  grid-auto-columns: 1fr !important;
  grid-auto-flow: column !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 24%, rgba(16, 42, 46, 0.1)) !important;
  border-radius: 10px !important;
  padding: 6px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 240, 0.84)),
    color-mix(in srgb, var(--accent, var(--dv-teal)) 8%, #ffffff) !important;
  box-shadow: inset 0 1px 2px rgba(16, 42, 46, 0.08) !important;
}

.result-tune-meter i {
  position: relative !important;
  display: block !important;
  inset: auto !important;
  min-width: 0 !important;
  min-height: 28px !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--accent, var(--dv-teal)) 12%, #ffffff) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--dv-teal)) 14%, transparent) !important;
  content: "" !important;
  transition: background 120ms ease, box-shadow 120ms ease !important;
}

.result-tune-meter i.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 86%, #ffffff), var(--accent, var(--dv-teal))) !important;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent, var(--dv-teal)) 18%, transparent) !important;
}

.result-tune-step:disabled {
  cursor: default !important;
  opacity: 0.38 !important;
  color: rgba(16, 42, 46, 0.48) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
}

.result-tune-step:disabled:hover,
.result-tune-step:disabled:focus-visible {
  color: rgba(16, 42, 46, 0.48) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  transform: none !important;
}

.result-tuner-actions {
  gap: 10px !important;
}

.result-tuner-reset,
.result-tuner-refine {
  min-height: 44px !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-size: 0.86rem !important;
  font-weight: 720 !important;
}

@media (max-width: 700px) {
  body[data-step="results"] .stage.is-active {
    padding-bottom: 148px !important;
  }

  body[data-step="factors"] .factor-token {
    grid-template-columns: 38px minmax(0, 1fr) minmax(68px, auto) !important;
  }

  body[data-step="factors"] .mini-action {
    min-width: 68px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.68rem !important;
  }

  .result-tuner-grid {
    grid-auto-columns: unset !important;
    grid-auto-flow: row !important;
    grid-template-columns: 1fr !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }

  .result-control-deck {
    grid-template-columns: 1fr !important;
  }

  .result-radar-panel {
    grid-template-columns: 1fr !important;
  }

  .result-radar-map {
    justify-self: center !important;
    width: min(220px, 70vw) !important;
    min-height: 0 !important;
  }

  .result-tune-card {
    scroll-snap-align: unset !important;
    grid-template-columns: 1fr !important;
  }

  body[data-step="results"] .result-tuner-actions {
    margin-bottom: 92px !important;
  }

  .result-tune-control,
  .result-tuner.is-many .result-tune-control {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  }
}

@media (max-width: 380px) {
  body[data-step="factors"] .factor-token {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }

  body[data-step="factors"] .mini-action {
    grid-column: 2 !important;
    width: max-content !important;
    min-width: 78px !important;
  }

  .result-tune-control,
  .result-tuner.is-many .result-tune-control {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  }

  .result-tune-control em {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
}

/* Result reveal shippability pass: give the winner photo and controls room to breathe. */
body[data-step="results"] [data-stage="results"] .winner-spotlight {
  width: min(1320px, 100%) !important;
  grid-template-columns: minmax(280px, 360px) minmax(320px, 1fr) minmax(390px, 470px) !important;
  grid-template-areas: "winner-photo winner-copy winner-controls" !important;
  align-items: start !important;
  gap: clamp(24px, 3vw, 40px) !important;
  padding: clamp(24px, 3.4vw, 42px) !important;
}

body[data-step="results"] .winner-medal {
  grid-area: winner-photo !important;
}

body[data-step="results"] .winner-copy {
  grid-area: winner-copy !important;
}

body[data-step="results"] .result-tuner {
  grid-area: winner-controls !important;
  align-self: stretch !important;
  min-width: 0 !important;
}

body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  width: min(100%, clamp(320px, 34vw, 400px)) !important;
  height: clamp(240px, 26vw, 310px) !important;
  border-radius: 22px !important;
}

body[data-step="results"] .winner-name {
  max-width: 11ch !important;
  font-size: clamp(2.9rem, 5.2vw, 5.6rem) !important;
}

body[data-step="results"] .winner-description {
  max-width: 54ch !important;
}

body[data-step="results"] .winner-share-card {
  max-width: 560px !important;
}

@media (min-width: 761px) {
  body[data-step="results"][data-category="demleaders"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="gopleaders"] [data-stage="results"] .winner-spotlight {
    width: min(1240px, calc(100% - 64px)) !important;
    grid-template-columns: minmax(150px, 220px) minmax(360px, 1fr) minmax(350px, 430px) !important;
    gap: clamp(20px, 2.4vw, 34px) !important;
  }

  body[data-step="results"][data-category="demleaders"] .winner-medal,
  body[data-step="results"][data-category="gopleaders"] .winner-medal {
    justify-self: center !important;
    width: clamp(138px, 13vw, 174px) !important;
    height: clamp(138px, 13vw, 174px) !important;
    margin-top: 6px !important;
  }
}

@media (max-width: 1180px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-controls winner-controls" !important;
  }

  body[data-step="results"] .result-tuner {
    border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
    border-left: 0 !important;
    padding-top: clamp(18px, 2.4vw, 26px) !important;
    padding-left: 0 !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card {
    grid-template-columns: minmax(170px, 0.7fr) minmax(320px, 1.3fr) !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] [data-stage="results"] > .confetti-piece {
    display: none !important;
  }

  body[data-step="results"] .stage.is-active {
    padding-bottom: clamp(24px, 6vw, 36px) !important;
  }

  body[data-step="results"] .stage-actions {
    position: static !important;
    z-index: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 18px auto 0 !important;
    border-top: 1px solid rgba(16, 42, 46, 0.08) !important;
    padding: 12px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-step="results"] .stage-actions .next-button {
    grid-column: 1 / -1 !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "winner-photo"
      "winner-copy"
      "winner-controls" !important;
    gap: 18px !important;
    padding: 18px !important;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    justify-self: stretch !important;
    width: 100% !important;
    height: clamp(190px, 58vw, 270px) !important;
    margin-bottom: 0 !important;
  }

  body[data-step="results"] .winner-name {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 12vw, 4.1rem) !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card {
    grid-template-columns: 1fr !important;
  }
}

/* Result reveal arrangement: keep the live volume controls near the changing result. */
@media (min-width: 901px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(280px, 330px) minmax(250px, 1fr) minmax(252px, 292px) !important;
    grid-template-areas: "winner-photo winner-copy winner-controls" !important;
    gap: clamp(18px, 2.2vw, 28px) !important;
    padding: clamp(22px, 2.6vw, 34px) !important;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    width: 100% !important;
    height: clamp(224px, 24vw, 286px) !important;
  }

  body[data-step="results"] .result-tuner {
    border-top: 0 !important;
    border-left: 1px solid rgba(16, 42, 46, 0.1) !important;
    padding-top: 0 !important;
    padding-left: clamp(14px, 1.8vw, 20px) !important;
    gap: 9px !important;
  }

  body[data-step="results"] .result-tuner-head {
    gap: 3px !important;
  }

  body[data-step="results"] .result-tuner-head .kicker {
    font-size: 0.64rem !important;
  }

  body[data-step="results"] .result-tuner-head h3 {
    font-size: clamp(1.08rem, 1.3vw, 1.28rem) !important;
    line-height: 1.05 !important;
  }

  body[data-step="results"] .result-tuner-head span {
    max-width: 30ch !important;
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
  }

  body[data-step="results"] .result-tuner-grid {
    gap: 7px !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    min-height: 66px !important;
    border-radius: 9px !important;
    padding: 8px !important;
  }

  body[data-step="results"] .result-tune-copy,
  body[data-step="results"] .result-tuner.is-many .result-tune-copy {
    width: 100% !important;
    justify-items: start !important;
  }

  body[data-step="results"] .result-tune-copy strong,
  body[data-step="results"] .result-tuner.is-many .result-tune-copy strong {
    display: block !important;
    overflow: visible !important;
    width: 100% !important;
    font-size: 0.78rem !important;
    line-height: 1.08 !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
  }

  body[data-step="results"] .result-tune-control,
  body[data-step="results"] .result-tuner.is-many .result-tune-control {
    grid-template-columns: 34px minmax(86px, 1fr) 34px !important;
    gap: 4px !important;
    min-height: 36px !important;
  }

  body[data-step="results"] .result-tune-step {
    width: 34px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 1.04rem !important;
  }

  body[data-step="results"] .result-tune-meter {
    height: 36px !important;
    gap: 3px !important;
    border-radius: 8px !important;
    padding: 5px !important;
  }

  body[data-step="results"] .result-tune-meter i {
    min-height: 24px !important;
    border-radius: 5px !important;
  }

  body[data-step="results"] .result-tuner-actions {
    gap: 7px !important;
  }

  body[data-step="results"] .result-tuner-reset,
  body[data-step="results"] .result-tuner-refine {
    min-height: 38px !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(260px, 292px) minmax(292px, 1fr) minmax(232px, 254px) !important;
    gap: 16px !important;
    padding: 22px !important;
  }

  body[data-step="results"] .winner-name {
    font-size: clamp(2.5rem, 4.9vw, 4.1rem) !important;
  }

  body[data-step="results"] .winner-description {
    font-size: 0.92rem !important;
    line-height: 1.34 !important;
  }

}

/* Mobile result readiness: keep the answer, photo, and live controls in the first scroll. */
@media (max-width: 760px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    gap: 14px !important;
    padding: 14px !important;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    height: clamp(188px, 56vw, 236px) !important;
  }

  body[data-step="results"] .winner-main {
    gap: 8px !important;
  }

  body[data-step="results"] .winner-name {
    font-size: clamp(2.15rem, 10.5vw, 3.35rem) !important;
    line-height: 0.96 !important;
  }

  body[data-step="results"] .winner-copy > .winner-main > p:not(.kicker):not(.winner-description) {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  body[data-step="results"] .winner-description {
    display: -webkit-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 0.88rem !important;
    line-height: 1.38 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
  }

  body[data-step="results"] .winner-actions {
    display: none !important;
  }

  body[data-step="results"] .winner-share-card {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    margin: 12px 0 0 !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body[data-step="results"] .winner-share-card > span {
    gap: 2px !important;
  }

  body[data-step="results"] .winner-share-card strong {
    font-size: 0.82rem !important;
    line-height: 1.08 !important;
  }

  body[data-step="results"] .winner-share-card em {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
  }

  body[data-step="results"] .winner-share-card .result-share-button {
    width: 100% !important;
    min-height: 42px !important;
  }

  body[data-step="results"] .result-tuner {
    gap: 10px !important;
    padding-top: 14px !important;
  }

  body[data-step="results"] .result-tuner-head {
    gap: 4px !important;
  }

  body[data-step="results"] .result-tuner-head h3 {
    font-size: 1.35rem !important;
    line-height: 1.08 !important;
  }

  body[data-step="results"] .result-tuner-head span {
    max-width: 34ch !important;
    font-size: 0.82rem !important;
    line-height: 1.28 !important;
  }

  body[data-step="results"] .result-tuner-grid {
    gap: 9px !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card {
    min-height: 82px !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  body[data-step="results"] .result-tune-copy strong,
  body[data-step="results"] .result-tuner.is-many .result-tune-copy strong {
    font-size: 0.84rem !important;
    line-height: 1.1 !important;
  }

  body[data-step="results"] .result-tune-control,
  body[data-step="results"] .result-tuner.is-many .result-tune-control {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 5px !important;
  }

  body[data-step="results"] .result-tune-step {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-step="results"] .result-tune-meter {
    height: 42px !important;
    padding: 5px !important;
  }

  body[data-step="results"] .result-tuner-actions {
    margin-bottom: 12px !important;
  }
}

/* Launch readiness result polish: premium photo emphasis, compact proof copy, and confident controls. */
@media (min-width: 1181px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(410px, 500px) minmax(320px, 0.95fr) minmax(300px, 360px) !important;
    gap: clamp(22px, 2.4vw, 34px) !important;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    width: min(100%, clamp(410px, 33vw, 500px)) !important;
    height: clamp(315px, 29vw, 390px) !important;
  }

  body[data-step="results"] .winner-copy {
    align-self: start !important;
  }

  body[data-step="results"] .winner-description {
    max-width: 48ch !important;
  }

  body[data-step="results"] .winner-share-card {
    width: 100% !important;
    max-width: 48ch !important;
  }
}

@media (min-width: 761px) {
  body[data-step="results"] .result-tune-control,
  body[data-step="results"] .result-tuner.is-many .result-tune-control {
    grid-template-columns: 44px minmax(96px, 1fr) 44px !important;
    gap: 8px !important;
    min-height: 50px !important;
  }

  body[data-step="results"] .result-tune-step {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 11px !important;
  }

  body[data-step="results"] .result-tune-meter {
    height: 44px !important;
    min-height: 44px !important;
  }

  body[data-step="results"] .winner-share-card {
    margin-top: 12px !important;
    border-color: rgba(7, 84, 93, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 10px 10px 12px !important;
    background:
      linear-gradient(90deg, rgba(232, 248, 241, 0.46), rgba(255, 250, 240, 0.72)),
      rgba(255, 255, 255, 0.78) !important;
    box-shadow: none !important;
  }

  body[data-step="results"] .winner-share-card strong {
    font-size: 0.86rem !important;
  }

  body[data-step="results"] .winner-share-card em {
    font-size: 0.72rem !important;
  }

  body[data-step="results"] .result-share-button {
    min-height: 44px !important;
    border-radius: 9px !important;
  }

  body[data-step="results"] .result-tuner-reset,
  body[data-step="results"] .result-tuner-refine,
  body[data-step="results"] .winner-actions .info-link,
  body[data-step="results"] .winner-actions .case-link {
    min-height: 44px !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: min(680px, calc(100% - 32px)) !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "winner-photo"
      "winner-copy"
      "winner-controls" !important;
    gap: 18px !important;
    padding: 22px !important;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    width: 100% !important;
    height: clamp(300px, 48vw, 380px) !important;
  }

  body[data-step="results"] .winner-name {
    max-width: 13ch !important;
    font-size: clamp(3.25rem, 8vw, 4.75rem) !important;
  }

  body[data-step="results"] .winner-description {
    max-width: 58ch !important;
  }

  body[data-step="results"] .result-tuner {
    width: 100% !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card {
    grid-template-columns: minmax(170px, 0.62fr) minmax(280px, 1.38fr) !important;
  }
}

/* Political two-person comparison results: explain the matchup without a generic top-10 list. */
.candidate-duel {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  width: min(1180px, calc(100% - 24px));
  margin: clamp(18px, 3vw, 34px) auto 0;
  padding: clamp(16px, 2.3vw, 26px);
  border: 1px solid rgba(16, 42, 46, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 238, 0.94));
  box-shadow: 0 18px 44px rgba(16, 42, 46, 0.08);
}

.candidate-duel-head {
  display: grid;
  gap: 7px;
  max-width: 820px;
}

.candidate-duel-head .kicker {
  margin: 0;
  color: var(--red);
}

.candidate-duel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 520;
  letter-spacing: 0;
}

.candidate-duel-head span {
  color: rgba(16, 42, 46, 0.68);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.45;
}

.candidate-duel-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(198, 162, 75, 0.28);
  border-radius: 16px;
  padding: 10px 13px;
  background: rgba(255, 250, 238, 0.88);
}

.candidate-duel-summary strong {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 720;
}

.candidate-duel-summary span {
  color: rgba(126, 29, 39, 0.82);
  font-size: 0.82rem;
  font-weight: 680;
}

.candidate-duel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.candidate-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(16, 42, 46, 0.12);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 42, 46, 0.07);
}

.candidate-panel.is-leading {
  border-color: rgba(198, 162, 75, 0.44);
  box-shadow:
    inset 0 4px 0 rgba(198, 162, 75, 0.82),
    0 16px 34px rgba(16, 42, 46, 0.08);
}

.candidate-panel-top {
  display: grid;
  gap: 4px;
}

.candidate-panel-top small {
  color: rgba(126, 29, 39, 0.78);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.candidate-panel-top strong {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.8vw, 1.75rem);
  font-weight: 680;
  line-height: 1.08;
}

.candidate-panel-top em {
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 560;
}

.candidate-score-meter {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 42, 46, 0.08);
}

.candidate-score-meter span {
  display: block;
  width: var(--candidate-score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.candidate-score-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.candidate-score-line b {
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 760;
}

.candidate-score-line span {
  color: rgba(16, 42, 46, 0.58);
  font-size: 0.78rem;
  font-weight: 620;
}

.candidate-edge-list {
  display: grid;
  gap: 8px;
}

.candidate-edge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(7, 84, 93, 0.055);
}

.candidate-edge-row b {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-edge-row strong,
.candidate-edge-row em {
  color: rgba(16, 42, 46, 0.66);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 660;
  text-align: right;
}

.candidate-edge-row.is-neutral {
  grid-template-columns: 1fr;
}

.candidate-edge-row.is-neutral em {
  text-align: left;
}

.candidate-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate-panel-actions .case-link,
.candidate-panel-actions .profile-toggle {
  min-height: 42px;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .candidate-duel {
    width: calc(100% - 20px);
    border-radius: 18px;
    padding: 14px;
  }

  .candidate-duel-grid {
    grid-template-columns: 1fr;
  }

  .candidate-duel-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-edge-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .candidate-edge-row b {
    white-space: normal;
  }

  .candidate-edge-row strong,
  .candidate-edge-row em {
    text-align: left;
  }
}

/* Factor-selection interaction pass: preserve card integrity and make open drop slots obvious. */
body[data-step="factors"] .selected-rack {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
}

body[data-step="factors"] .selected-rack.is-empty-formula {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-step="factors"] .factor-drop-slot {
  display: grid;
  grid-template-columns: 22px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 66px;
  border: 1.5px dashed rgba(7, 84, 93, 0.32);
  border-radius: var(--dv-radius-md, 14px);
  padding: 10px 12px;
  color: rgba(16, 42, 46, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(240, 247, 244, 0.46)),
    repeating-linear-gradient(-45deg, rgba(7, 84, 93, 0.035) 0 8px, transparent 8px 16px);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

body[data-step="factors"] .factor-drop-slot.is-core-slot {
  border-color: rgba(177, 42, 51, 0.36);
  color: rgba(16, 42, 46, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 246, 223, 0.54)),
    repeating-linear-gradient(-45deg, rgba(177, 42, 51, 0.035) 0 8px, transparent 8px 16px);
  font-weight: 920;
}

body[data-step="factors"] .factor-drop-slot .slot-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(7, 84, 93, 0.52);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.9);
  color: rgba(7, 84, 93, 0.86);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 4px rgba(198, 162, 75, 0.18);
}

body[data-step="factors"] .factor-drop-slot.is-core-slot .slot-dot {
  border-color: rgba(177, 42, 51, 0.56);
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 6px 14px rgba(16, 42, 46, 0.12);
}

body[data-step="factors"] .endzone-empty {
  min-height: 88px !important;
  border-color: rgba(7, 84, 93, 0.24);
  color: rgba(16, 42, 46, 0.54);
  background: rgba(255, 255, 255, 0.54);
}

body.is-factor-dragging [data-factor-zone] {
  outline: 2px solid rgba(198, 162, 75, 0.24);
  outline-offset: 4px;
}

body.is-factor-dragging [data-factor-zone].is-drop-target {
  outline-color: rgba(198, 162, 75, 0.78);
  box-shadow:
    inset 0 0 0 2px rgba(198, 162, 75, 0.16),
    0 18px 34px rgba(16, 42, 46, 0.12);
}

body.is-factor-dragging [data-factor-zone].is-drop-target .factor-drop-slot {
  border-color: rgba(198, 162, 75, 0.86);
  color: rgba(16, 42, 46, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(250, 243, 222, 0.62)),
    repeating-linear-gradient(-45deg, rgba(198, 162, 75, 0.08) 0 8px, transparent 8px 16px);
  transform: translateY(-1px);
}

.drag-ghost,
.order-drag-ghost {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  margin: 0;
  max-width: calc(100vw - 24px);
  border-radius: var(--dv-radius-md, 14px);
  opacity: 0.98;
  pointer-events: none;
  cursor: grabbing;
  overflow: hidden;
  transform-origin: top left;
  box-shadow: 0 30px 56px rgba(16, 42, 46, 0.24);
}

.drag-ghost {
  width: auto;
  transition: none !important;
  transform: rotate(-1deg);
  will-change: left, top;
}

.factor-token.is-dragging,
.order-card.is-pointer-placeholder {
  opacity: 0.32;
}

@media (max-width: 700px) {
  body[data-step="factors"] .selected-rack.is-empty-formula {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-step="factors"] .factor-drop-slot {
    min-height: 58px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  body[data-step="factors"] .endzone-empty {
    min-height: 64px !important;
  }
}

/* Result space-utilization pass: turn the winner visual into a real media panel across boards. */
body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
  width: min(1440px, calc(100vw - clamp(28px, 4vw, 72px))) !important;
  grid-template-columns:
    minmax(260px, 0.98fr)
    minmax(300px, 0.9fr)
    minmax(278px, 0.62fr) !important;
  grid-template-areas: "winner-photo winner-copy winner-controls" !important;
  align-items: stretch !important;
  gap: clamp(18px, 2.2vw, 32px) !important;
  min-height: clamp(500px, calc(100dvh - 180px), 680px) !important;
  margin-inline: auto !important;
  padding: clamp(18px, 2.2vw, 32px) !important;
}

body[data-step="results"] .winner-medal {
  grid-area: winner-photo !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: clamp(320px, 46vh, 560px) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

body[data-step="results"] .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  width: 100% !important;
  height: auto !important;
  min-height: clamp(320px, 46vh, 560px) !important;
  border: 8px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 18px !important;
  background-color: #edf2ef !important;
  background-position: center, var(--photo-position, 50% 36%) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100%, cover !important;
  box-shadow:
    0 22px 46px rgba(16, 42, 46, 0.14),
    inset 0 -34px 58px rgba(1, 58, 71, 0.07) !important;
}

body[data-step="results"][data-category="aiassistant"] .winner-medal.photo-token.has-photo,
body[data-step="results"][data-category="aicompany"] .winner-medal.photo-token.has-photo,
body[data-step="results"][data-category="aiimage"] .winner-medal.photo-token.has-photo,
body[data-step="results"][data-category="aicoding"] .winner-medal.photo-token.has-photo {
  background-color: #f4faf8 !important;
  background-position: center, center !important;
  background-size: 100% 100%, contain !important;
}

body[data-step="results"][data-category="aiassistant"] .winner-medal.photo-token.has-board-photo {
  background-position: center, center !important;
  background-size: 100% 100%, cover !important;
}

body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="college"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="college-value-index"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="public-university"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="gradschool"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="trade-school"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="mba"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="bootcamp"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="coding-bootcamp"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="certification"] {
  background-color: #f7faf8 !important;
  background-position: center, center !important;
  background-size: 100% 100%, contain !important;
}

body[data-step="results"] .winner-medal:not(.has-photo) {
  min-height: clamp(320px, 46vh, 560px) !important;
  border: 1px solid rgba(7, 84, 93, 0.14) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 240, 0.88) 0 24%, transparent 25%),
    radial-gradient(circle at 22% 18%, rgba(198, 162, 75, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(126, 29, 39, 0.88)) !important;
  color: #ffffff !important;
  font-size: clamp(3.2rem, 8vw, 7rem) !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
  grid-template-columns:
    minmax(360px, 1fr)
    minmax(278px, 0.52fr) !important;
  grid-template-areas: "winner-copy winner-controls" !important;
}

body[data-step="results"] .winner-spotlight.has-unavailable-winner-photo .winner-medal.photo-unavailable {
  display: none !important;
}

body[data-step="results"] .winner-copy {
  align-self: start !important;
}

body[data-step="results"] .winner-main {
  display: grid !important;
  gap: 10px !important;
}

body[data-step="results"] .winner-name {
  max-width: min(100%, 12.5ch) !important;
  margin-bottom: 0 !important;
  font-size: clamp(2.7rem, 4.45vw, 5.35rem) !important;
  line-height: 0.96 !important;
}

body[data-step="results"] .winner-description {
  max-width: 56ch !important;
  font-size: clamp(0.92rem, 1vw, 1.02rem) !important;
  line-height: 1.43 !important;
}

body[data-step="results"] .winner-share-card,
body[data-step="results"] .winner-actions {
  width: min(100%, 560px) !important;
}

body[data-step="results"] .result-tuner {
  align-self: stretch !important;
  display: grid !important;
  align-content: start !important;
  min-width: 0 !important;
}

@media (min-width: 1181px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns:
      minmax(430px, 1.05fr)
      minmax(340px, 0.86fr)
      minmax(330px, 0.58fr) !important;
  }
}

/* Geometry cleanup: restrained corners and quieter proof text. */
:root {
  --dv-corner-tight: 4px;
  --dv-corner-soft: 6px;
  --dv-corner-panel: 8px;
}

.site-footer .footer-proof,
body[data-step="debate"] .site-footer .footer-proof,
[data-stage="results"] .site-footer .footer-proof {
  grid-column: auto !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-self: center !important;
  justify-self: start !important;
  gap: 7px 15px !important;
  min-width: 0 !important;
}

.site-footer .footer-proof span,
body[data-step="debate"] .site-footer .footer-proof span,
[data-stage="results"] .site-footer .footer-proof span {
  position: relative !important;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: baseline !important;
  align-content: initial !important;
  gap: 5px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(16, 42, 46, 0.64) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.site-footer .footer-proof span::before {
  display: none !important;
}

.site-footer .footer-proof span:not(:last-child)::after {
  content: "" !important;
  width: 3px !important;
  height: 3px !important;
  margin-left: 8px !important;
  border-radius: 50% !important;
  background: rgba(157, 23, 50, 0.42) !important;
}

.site-footer .footer-proof b,
body[data-step="debate"] .site-footer .footer-proof b,
[data-stage="results"] .site-footer .footer-proof b {
  color: rgba(7, 84, 93, 0.9) !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

.site-footer .footer-proof em,
body[data-step="debate"] .site-footer .footer-proof em,
[data-stage="results"] .site-footer .footer-proof em {
  margin: 0 !important;
  color: rgba(16, 42, 46, 0.52) !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 520 !important;
  line-height: 1 !important;
}

.result-card {
  border-radius: var(--dv-corner-panel) !important;
}

.result-card .profile-photo,
.profile-photo {
  border-radius: var(--dv-corner-panel) !important;
}

.profile-head .profile-photo {
  border-radius: var(--dv-corner-panel) !important;
}

.profile-photo.has-photo {
  background-size: cover !important;
}

.result-card-actions .info-link,
.result-card-actions .case-link,
.result-card-actions .official-site-link,
.ghost-button,
.next-button,
.info-close,
.footer-nav button:last-child {
  border-radius: var(--dv-corner-soft) !important;
}

.factor-zone,
.rank-stack,
.order-lane,
.winner-spotlight,
.info-card,
.media-card {
  border-radius: var(--dv-corner-panel) !important;
}

@media (max-width: 560px) {
  .site-footer .footer-proof,
  body[data-step="debate"] .site-footer .footer-proof,
  [data-stage="results"] .site-footer .footer-proof {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .site-footer .footer-proof span:not(:last-child)::after {
    display: none !important;
  }
}

/* Footer cleanup: remove the redundant brand blurb and align proof badges with the links. */
.site-footer,
body[data-step="debate"] .site-footer,
[data-stage="results"] .site-footer {
  grid-template-columns: minmax(0, auto) minmax(320px, 1fr) !important;
  align-items: center !important;
  gap: 12px clamp(18px, 2.6vw, 34px) !important;
  padding: 16px 20px 15px !important;
}

.site-footer .footer-brand {
  display: none !important;
}

.site-footer .footer-proof {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.site-footer .footer-proof span {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  min-height: 30px !important;
  border: 1px solid rgba(7, 84, 93, 0.12) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  background: rgba(232, 248, 241, 0.42) !important;
  box-shadow: none !important;
}

.site-footer .footer-proof span::before {
  display: none !important;
}

.site-footer .footer-proof b {
  color: rgba(16, 42, 46, 0.92) !important;
  font-size: 0.66rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-footer .footer-proof em {
  margin: 0 !important;
  color: rgba(16, 42, 46, 0.56) !important;
  font-size: 0.61rem !important;
  font-style: normal !important;
  font-weight: 520 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-footer .footer-nav {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px 12px !important;
  width: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-base {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  padding-top: 13px !important;
}

@media (max-width: 900px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-columns: 1fr !important;
    gap: 11px !important;
  }

  .site-footer .footer-proof,
  .site-footer .footer-nav,
  .site-footer .footer-base {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .site-footer .footer-proof,
  .site-footer .footer-nav {
    justify-content: flex-start !important;
  }
}

@media (max-width: 560px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    width: min(100% - 24px, 380px) !important;
    padding: 13px 14px 12px !important;
  }

  .site-footer .footer-proof {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .site-footer .footer-proof span {
    justify-content: space-between !important;
    min-height: 34px !important;
  }

  .site-footer .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 2px 0 0 !important;
  }

  .site-footer .footer-nav button:nth-child(even) {
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .site-footer .footer-nav button:last-child {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: min(100%, calc(100vw - 28px)) !important;
    grid-template-columns: minmax(250px, 0.9fr) minmax(288px, 1fr) minmax(258px, 0.72fr) !important;
    gap: 16px !important;
    min-height: auto !important;
    padding: 18px !important;
  }

  body[data-step="results"] .winner-medal,
  body[data-step="results"] .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
  body[data-step="results"] .winner-medal:not(.has-photo) {
    min-height: clamp(330px, 50vh, 470px) !important;
  }

  body[data-step="results"] .winner-name {
    font-size: clamp(2.45rem, 4.8vw, 4.25rem) !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: min(760px, calc(100vw - 32px)) !important;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-controls winner-controls" !important;
    min-height: 0 !important;
    gap: 18px !important;
    padding: 20px !important;
  }

  body[data-step="results"] .winner-medal,
  body[data-step="results"] .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
  body[data-step="results"] .winner-medal:not(.has-photo) {
    min-height: clamp(290px, 42vw, 390px) !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: min(100%, calc(100vw - 24px)) !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "winner-photo"
      "winner-copy"
      "winner-controls" !important;
    min-height: 0 !important;
    padding: 14px !important;
  }

  body[data-step="results"] .winner-medal,
  body[data-step="results"] .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
  body[data-step="results"] .winner-medal:not(.has-photo) {
    min-height: clamp(210px, 60vw, 300px) !important;
    border-radius: 15px !important;
  }

  body[data-step="results"] .winner-name {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

@media (max-width: 420px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] .winner-medal,
  body[data-step="results"] .winner-copy,
  body[data-step="results"] .winner-main,
  body[data-step="results"] .result-tuner,
  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tune-control {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body[data-step="results"] .winner-name {
    max-width: 100% !important;
    font-size: clamp(1.8rem, 9vw, 2.55rem) !important;
    line-height: 1 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-step="results"] .winner-description,
  body[data-step="results"] .winner-copy p,
  body[data-step="results"] .method-basis {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body[data-step="results"] .result-tune-control,
  body[data-step="results"] .result-tuner.is-many .result-tune-control {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  }

  body[data-step="results"] .result-tuner-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile shell containment: keep every decision stage inside the visible phone width. */
@media (max-width: 700px) {
  html,
  body {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body[data-step="debate"],
  body[data-step="factors"],
  body[data-step="rank"],
  body[data-step="results"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body[data-step="debate"] .app-shell,
  body[data-step="factors"] .app-shell,
  body[data-step="rank"] .app-shell,
  body[data-step="results"] .app-shell {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 8px !important;
    overflow-x: hidden !important;
  }

  body[data-step="debate"] .app-header,
  body[data-step="factors"] .app-header,
  body[data-step="rank"] .app-header,
  body[data-step="results"] .app-header,
  body[data-step="debate"] .goat-console,
  body[data-step="factors"] .goat-console,
  body[data-step="rank"] .goat-console,
  body[data-step="results"] .goat-console,
  body[data-step="debate"] .stage.is-active,
  body[data-step="factors"] .stage.is-active,
  body[data-step="rank"] .stage.is-active,
  body[data-step="results"] .stage.is-active {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    overflow-x: hidden !important;
  }

  body[data-step="factors"] .stage.is-active,
  body[data-step="rank"] .stage.is-active,
  body[data-step="results"] .stage.is-active {
    padding-inline: clamp(10px, 3vw, 18px) !important;
  }
}

@media (max-width: 420px) {
  body[data-step="results"] .app-shell {
    padding-inline: 6px !important;
  }

  body[data-step="results"] .stage.is-active {
    padding-inline: 8px !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] .results-list,
  body[data-step="results"] .feedback-cta,
  body[data-step="results"] .site-footer,
  body[data-step="results"] .stage-actions {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
}

/* Shared decision shell guard: prevent header/content min-width from creating tablet sideways scroll. */
body[data-step="debate"] .app-shell,
body[data-step="factors"] .app-shell,
body[data-step="rank"] .app-shell,
body[data-step="results"] .app-shell {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-step="debate"] .app-header,
body[data-step="factors"] .app-header,
body[data-step="rank"] .app-header,
body[data-step="results"] .app-header,
body[data-step="debate"] .goat-console,
body[data-step="factors"] .goat-console,
body[data-step="rank"] .goat-console,
body[data-step="results"] .goat-console,
body[data-step="debate"] .stage.is-active,
body[data-step="factors"] .stage.is-active,
body[data-step="rank"] .stage.is-active,
body[data-step="results"] .stage.is-active {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

body[data-step="debate"] .goat-console,
body[data-step="factors"] .goat-console,
body[data-step="rank"] .goat-console,
body[data-step="results"] .goat-console,
body[data-step="debate"] .stage.is-active,
body[data-step="factors"] .stage.is-active,
body[data-step="rank"] .stage.is-active,
body[data-step="results"] .stage.is-active {
  overflow-x: clip !important;
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: 100% !important;
    max-width: 760px !important;
  }
}

/* Final result-avatar layer: keep AI model visuals from inheriting generic result-card span rules. */
.result-card.is-ai-model-result {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 14px;
  min-height: 88px;
  padding: 13px 15px;
}

.result-card.is-ai-model-result .result-rank.ai-model-avatar {
  width: 62px;
  height: 62px;
}

.result-card.is-ai-model-result .ai-model-picture,
.result-card.is-ai-model-result .ai-model-rank {
  color: #ffffff;
  font-weight: 950;
  text-overflow: initial;
  white-space: normal;
}

.result-card.is-ai-model-result .ai-model-picture {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.result-card.is-ai-model-result .ai-model-picture b {
  color: var(--ai-model-color);
  font-weight: 900;
}

.result-card.is-ai-model-result .ai-model-rank {
  display: grid;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.7rem;
}

.result-card.is-ai-model-result.is-winner .ai-model-rank {
  background: var(--red);
}

@media (max-width: 760px) {
  .result-card.is-ai-model-result {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    min-height: 80px;
    padding: 11px;
  }

  .result-card.is-ai-model-result .result-rank.ai-model-avatar {
    width: 54px;
    height: 54px;
  }
}

/* Final brand sharpness guard: the top logo should render as one clean artwork layer. */
.app-header .brand-lockup {
  --dv-header-logo-width: 164px;
  --dv-header-logo-height: 68px;
  --brand-vision-size: 0px;
  position: relative !important;
  display: block !important;
  inline-size: var(--dv-header-logo-width) !important;
  block-size: var(--dv-header-logo-height) !important;
  min-inline-size: var(--dv-header-logo-width) !important;
  min-block-size: var(--dv-header-logo-height) !important;
  max-inline-size: var(--dv-header-logo-width) !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-header .brand-lockup::before,
.app-header .brand-lockup::after,
.app-header .brand-vision-compass {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
  animation: none !important;
}

.app-header .brand-lockup img {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  inline-size: 100% !important;
  block-size: 100% !important;
  max-inline-size: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  image-rendering: auto !important;
  transform: none !important;
  transform-origin: center !important;
}

@media (max-width: 700px) {
  .app-header .brand-lockup,
  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    --dv-header-logo-width: 148px;
    --dv-header-logo-height: 62px;
  }
}

@media (max-width: 360px) {
  .app-header .brand-lockup,
  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup {
    --dv-header-logo-width: 140px;
    --dv-header-logo-height: 58px;
  }
}

.app-header .brand-lockup,
body[data-step="debate"] .app-header .brand-lockup,
body[data-step="factors"] .app-header .brand-lockup,
body[data-step="rank"] .app-header .brand-lockup,
body[data-step="results"] .app-header .brand-lockup {
  width: var(--dv-header-logo-width) !important;
  height: var(--dv-header-logo-height) !important;
  aspect-ratio: auto !important;
}

.app-header .brand-lockup::before,
.app-header .brand-lockup::after,
.app-header .brand-vision-compass,
body[data-step="debate"] .app-header .brand-lockup::before,
body[data-step="debate"] .app-header .brand-lockup::after,
body[data-step="debate"] .app-header .brand-vision-compass,
body[data-step="factors"] .app-header .brand-lockup::before,
body[data-step="factors"] .app-header .brand-lockup::after,
body[data-step="factors"] .app-header .brand-vision-compass,
body[data-step="rank"] .app-header .brand-lockup::before,
body[data-step="rank"] .app-header .brand-lockup::after,
body[data-step="rank"] .app-header .brand-vision-compass,
body[data-step="results"] .app-header .brand-lockup::before,
body[data-step="results"] .app-header .brand-lockup::after,
body[data-step="results"] .app-header .brand-vision-compass {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
  animation: none !important;
}

.app-header .brand-lockup img,
body[data-step="debate"] .app-header .brand-lockup img,
body[data-step="factors"] .app-header .brand-lockup img,
body[data-step="rank"] .app-header .brand-lockup img,
body[data-step="results"] .app-header .brand-lockup img {
  width: 100% !important;
  height: 100% !important;
  filter: none !important;
  transform: none !important;
}

/* AI model visuals: never let model names fall back to literal stock photos. */
body[data-step="results"] .winner-medal.ai-model-hero-visual,
body[data-step="results"] .winner-medal.ai-model-hero-visual:not(.has-photo) {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: clamp(14px, 2vw, 22px) !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--ai-model-accent) 52%, #ffffff) !important;
  border-radius: 18px !important;
  padding: clamp(18px, 3vw, 34px) !important;
  color: #fffaf0 !important;
  background:
    radial-gradient(circle at 22% 16%, color-mix(in srgb, var(--ai-model-accent) 34%, transparent), transparent 34%),
    radial-gradient(circle at 78% 22%, color-mix(in srgb, #ffffff 20%, transparent), transparent 28%),
    linear-gradient(135deg, var(--ai-model-color), color-mix(in srgb, var(--ai-model-accent) 36%, #102a2e) 58%, #071b20) !important;
  box-shadow:
    0 22px 46px rgba(16, 42, 46, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

body[data-step="results"][data-category="aiassistant"] .winner-medal.ai-model-hero-visual,
body[data-step="results"][data-category="ai"] .winner-medal.ai-model-hero-visual {
  align-self: start !important;
  min-height: clamp(360px, 50vh, 560px) !important;
  max-height: 560px !important;
}

.ai-model-hero-visual .ai-hero-grid,
.ai-model-hero-visual .ai-hero-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ai-model-hero-visual .ai-hero-grid {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 76%);
  opacity: 0.5;
}

.ai-model-hero-visual .ai-hero-orbit {
  inset: 13%;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 18px rgba(255, 250, 240, 0.025),
    0 0 58px color-mix(in srgb, var(--ai-model-accent) 36%, transparent);
}

.ai-model-hero-visual .ai-hero-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(112px, 30%, 178px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: clamp(24px, 4vw, 34px);
  background:
    radial-gradient(circle at 30% 22%, #ffffff, #fffaf0 48%, #edf4f0);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.ai-model-hero-visual .ai-hero-mark img,
.ai-model-profile-visual .ai-model-picture img,
.photo-token.has-ai-model-visual .ai-model-picture img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.ai-model-hero-visual .ai-hero-mark b {
  color: var(--ai-model-color);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 950;
  line-height: 1;
}

.ai-model-hero-visual .ai-hero-copy,
.ai-model-hero-visual .ai-hero-model,
.ai-model-hero-visual .ai-hero-signal {
  position: absolute;
  z-index: 3;
}

.ai-model-hero-visual .ai-hero-copy {
  top: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 24px);
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(2, 22, 27, 0.32);
  backdrop-filter: blur(10px);
}

.ai-model-hero-visual .ai-hero-copy b {
  color: #fffaf0;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
}

.ai-model-hero-visual .ai-hero-copy em {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
}

.ai-model-hero-visual .ai-hero-model {
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 24px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 250, 240, 0.22);
  padding-top: 12px;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(1.35rem, 3vw, 2.85rem);
  font-weight: 920;
  line-height: 0.98;
  text-align: left;
  text-overflow: ellipsis;
}

.ai-model-hero-visual .ai-hero-signal {
  top: clamp(18px, 2vw, 26px);
  right: clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, 10px);
  gap: 5px;
  align-items: end;
  height: 42px;
}

.ai-model-hero-visual .ai-hero-signal i {
  display: block;
  min-height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ai-model-accent) 78%, #fffaf0);
  box-shadow: 0 0 16px color-mix(in srgb, var(--ai-model-accent) 42%, transparent);
}

.ai-model-hero-visual .ai-hero-signal i:nth-child(2) {
  height: 24px;
}

.ai-model-hero-visual .ai-hero-signal i:nth-child(3) {
  height: 34px;
}

.ai-model-hero-visual .ai-hero-signal i:nth-child(4) {
  height: 18px;
}

.profile-head-ai-model {
  grid-template-columns: 86px minmax(0, 1fr);
}

.profile-photo.ai-model-profile-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ai-model-accent) 48%, #ffffff);
  border-radius: 22px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(135deg, var(--ai-model-accent), var(--ai-model-color) 62%, #102a2e);
  box-shadow:
    0 14px 28px rgba(16, 38, 45, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.profile-photo.ai-model-profile-visual::before,
.photo-token.has-ai-model-visual::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
}

.profile-photo.ai-model-profile-visual .ai-model-picture,
.photo-token.has-ai-model-visual .ai-model-picture {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 8px 18px rgba(16, 38, 45, 0.2);
}

.profile-photo.ai-model-profile-visual .ai-model-picture b,
.photo-token.has-ai-model-visual .ai-model-picture b {
  color: var(--ai-model-color);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.photo-token.has-ai-model-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fffaf0;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, var(--ai-model-accent), var(--ai-model-color) 62%, #102a2e);
}

.photo-token.has-ai-model-visual .ai-model-token-label {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  border: 1px solid rgba(255, 250, 240, 0.52);
  border-radius: 999px;
  padding: 3px 6px;
  color: #fffaf0;
  background: rgba(2, 22, 27, 0.48);
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 760px) {
  body[data-step="results"] .winner-medal.ai-model-hero-visual,
  body[data-step="results"] .winner-medal.ai-model-hero-visual:not(.has-photo) {
    min-height: clamp(220px, 58vw, 300px) !important;
    max-height: 320px !important;
    padding: 16px !important;
  }

  .ai-model-hero-visual .ai-hero-mark {
    width: clamp(92px, 30vw, 128px);
    border-radius: 24px;
  }

  .ai-model-hero-visual .ai-hero-copy {
    padding: 7px 9px;
  }

  .ai-model-hero-visual .ai-hero-signal {
    grid-template-columns: repeat(4, 8px);
    height: 34px;
  }
}

/* AI result media should read like a model card, not a vertical photo. */
body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight,
body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight,
body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
  grid-template-columns:
    minmax(280px, 0.42fr)
    minmax(340px, 1fr)
    minmax(278px, 0.58fr) !important;
  align-items: start !important;
  min-height: 0 !important;
}

body[data-step="results"][data-category="aiassistant"] .winner-medal.ai-model-hero-visual,
body[data-step="results"][data-category="aiassistant"] .winner-medal.ai-model-hero-visual:not(.has-photo),
body[data-step="results"][data-category="ai"] .winner-medal.ai-model-hero-visual,
body[data-step="results"][data-category="ai"] .winner-medal.ai-model-hero-visual:not(.has-photo) {
  align-self: start !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  padding: clamp(16px, 2vw, 24px) !important;
}

body[data-step="results"][data-category="aiassistant"] .ai-model-hero-visual .ai-hero-mark,
body[data-step="results"][data-category="ai"] .ai-model-hero-visual .ai-hero-mark {
  width: clamp(86px, 35%, 132px);
  border-radius: 24px;
}

body[data-step="results"][data-category="aiassistant"] .ai-model-hero-visual .ai-hero-copy,
body[data-step="results"][data-category="ai"] .ai-model-hero-visual .ai-hero-copy {
  top: 14px;
  left: 14px;
}

body[data-step="results"][data-category="aiassistant"] .ai-model-hero-visual .ai-hero-signal,
body[data-step="results"][data-category="ai"] .ai-model-hero-visual .ai-hero-signal {
  top: 16px;
  right: 16px;
  grid-template-columns: repeat(4, 8px);
  height: 34px;
}

body[data-step="results"][data-category="aiassistant"] .ai-model-hero-visual .ai-hero-model,
body[data-step="results"][data-category="ai"] .ai-model-hero-visual .ai-hero-model {
  display: none !important;
}

@media (min-width: 901px) and (max-width: 1080px) {
  body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(252px, 0.36fr) minmax(320px, 1fr) minmax(252px, 0.66fr) !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="aiassistant"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="ai"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(0, 1fr) minmax(288px, 0.78fr) !important;
    grid-template-areas:
      "winner-copy winner-controls"
      "winner-photo winner-controls" !important;
  }

  body[data-step="results"][data-category="aiassistant"] .winner-medal.ai-model-hero-visual,
  body[data-step="results"][data-category="ai"] .winner-medal.ai-model-hero-visual {
    max-width: 520px !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"][data-category="aiassistant"] .winner-medal.ai-model-hero-visual,
  body[data-step="results"][data-category="aiassistant"] .winner-medal.ai-model-hero-visual:not(.has-photo),
  body[data-step="results"][data-category="ai"] .winner-medal.ai-model-hero-visual,
  body[data-step="results"][data-category="ai"] .winner-medal.ai-model-hero-visual:not(.has-photo) {
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Result media pass: larger square visuals across result lists. */
[data-stage="results"] .result-card,
body[data-step="results"] [data-stage="results"] .result-card,
body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 112px !important;
  padding: 14px 16px !important;
}

[data-stage="results"] .result-card .result-rank,
body[data-step="results"] [data-stage="results"] .result-card .result-rank,
body[data-step="results"] [data-stage="results"] .result-card .result-rank.ai-model-avatar {
  position: relative !important;
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  min-height: 78px !important;
  overflow: hidden !important;
  border: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 24px rgba(16, 42, 46, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

[data-stage="results"] .result-card .result-rank:not(.has-photo):not(.ai-model-avatar),
body[data-step="results"] [data-stage="results"] .result-card .result-rank:not(.has-photo):not(.ai-model-avatar) {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(135deg, rgba(7, 84, 93, 0.94), rgba(126, 29, 39, 0.86)) !important;
}

[data-stage="results"] .result-card .result-rank.photo-token.has-photo,
body[data-step="results"] [data-stage="results"] .result-card .result-rank.photo-token.has-photo {
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 18px !important;
  background-size: cover !important;
  background-position: var(--photo-position, 50% 34%) !important;
}

[data-stage="results"] .result-card .result-rank.photo-token.has-photo,
body[data-step="results"] [data-stage="results"] .result-card .result-rank.photo-token.has-photo,
body[data-step="results"] [data-stage="results"] .result-card .result-rank.ai-model-avatar {
  overflow: visible !important;
}

[data-stage="results"] .result-card .result-rank > span,
body[data-step="results"] [data-stage="results"] .result-card .result-rank > span {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

[data-stage="results"] .result-card .result-rank.photo-token.has-photo > span,
body[data-step="results"] [data-stage="results"] .result-card .result-rank.photo-token.has-photo > span,
body[data-step="results"] [data-stage="results"] .result-card .result-rank.ai-model-avatar .ai-model-rank {
  position: absolute !important;
  right: -6px !important;
  bottom: -6px !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: var(--teal) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 12px rgba(16, 42, 46, 0.22) !important;
}

body[data-step="results"] [data-stage="results"] .result-card.is-winner .result-rank.photo-token.has-photo > span,
body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result.is-winner .ai-model-rank {
  background: var(--red) !important;
}

body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result .result-rank.ai-model-avatar {
  border-color: color-mix(in srgb, var(--ai-model-accent) 50%, #ffffff) !important;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, var(--ai-model-accent), var(--ai-model-color) 58%, #102a2e) !important;
}

body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result .result-rank.ai-model-avatar::before {
  inset: 9px !important;
  border-radius: 14px !important;
}

body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result .ai-model-picture {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
}

body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result .ai-model-picture b {
  font-size: 1.04rem !important;
}

body[data-step="results"] [data-stage="results"] .result-card > .result-card-copy > strong {
  font-size: clamp(1rem, 1.3vw, 1.18rem) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

body[data-step="results"] [data-stage="results"] .result-card > .result-card-copy > span {
  margin-top: 4px !important;
  font-size: 0.8rem !important;
  line-height: 1.24 !important;
  white-space: normal !important;
}

@media (max-width: 760px) {
  [data-stage="results"] .results-list,
  body[data-step="results"] [data-stage="results"] .results-list {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  [data-stage="results"] .result-card,
  body[data-step="results"] [data-stage="results"] .result-card,
  body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result {
    box-sizing: border-box !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 98px !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  [data-stage="results"] .result-card .profile-drawer,
  body[data-step="results"] [data-stage="results"] .result-card .profile-drawer {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  [data-stage="results"] .result-card .result-rank,
  body[data-step="results"] [data-stage="results"] .result-card .result-rank,
  body[data-step="results"] [data-stage="results"] .result-card .result-rank.ai-model-avatar {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    border-radius: 16px !important;
  }

  body[data-step="results"] [data-stage="results"] .result-card.is-ai-model-result .ai-model-picture {
    width: 47px !important;
    height: 47px !important;
  }
}

/* Restore the animated Vision O without reintroducing the blurry logo layer. */
.app-header .brand-lockup,
body[data-step="debate"] .app-header .brand-lockup,
body[data-step="factors"] .app-header .brand-lockup,
body[data-step="rank"] .app-header .brand-lockup,
body[data-step="results"] .app-header .brand-lockup {
  --brand-vision-x: 64.2%;
  --brand-vision-y: 75.4%;
  --brand-vision-size: 31.2px;
}

.app-header .brand-lockup::before,
.app-header .brand-lockup::after {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
  animation: none !important;
}

html body .app-header .brand-lockup .brand-vision-compass,
html body[data-step="debate"] .app-header .brand-lockup .brand-vision-compass,
html body[data-step="factors"] .app-header .brand-lockup .brand-vision-compass,
html body[data-step="rank"] .app-header .brand-lockup .brand-vision-compass,
html body[data-step="results"] .app-header .brand-lockup .brand-vision-compass {
  position: absolute !important;
  top: var(--brand-vision-y) !important;
  left: var(--brand-vision-x) !important;
  z-index: 4 !important;
  display: block !important;
  visibility: visible !important;
  width: var(--brand-vision-size) !important;
  height: var(--brand-vision-size) !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  shape-rendering: geometricPrecision !important;
}

html body .app-header .brand-lockup .brand-vision-spinner,
html body[data-step="debate"] .app-header .brand-lockup .brand-vision-spinner,
html body[data-step="factors"] .app-header .brand-lockup .brand-vision-spinner,
html body[data-step="rank"] .app-header .brand-lockup .brand-vision-spinner,
html body[data-step="results"] .app-header .brand-lockup .brand-vision-spinner {
  transform-origin: center !important;
  transform-box: view-box !important;
  animation: dv-vision-o-spin-clean 10s cubic-bezier(0.66, 0, 0.18, 1) infinite !important;
  will-change: transform;
}

@media (max-width: 700px) {
  .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup,
  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup {
    --brand-vision-size: 28.2px;
  }
}

@media (max-width: 360px) {
  .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup,
  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup {
    --brand-vision-size: 26.7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-header .brand-lockup .brand-vision-spinner,
  html body[data-step="debate"] .app-header .brand-lockup .brand-vision-spinner,
  html body[data-step="factors"] .app-header .brand-lockup .brand-vision-spinner,
  html body[data-step="rank"] .app-header .brand-lockup .brand-vision-spinner,
  html body[data-step="results"] .app-header .brand-lockup .brand-vision-spinner {
    animation: none !important;
  }
}

/* Launch QA: keep small navigation controls comfortably tappable on mobile. */
.footer-nav button,
.footer-nav a,
.app-menu-button,
.nav-toggle {
  min-height: 44px;
}

.app-menu-button,
.nav-toggle {
  min-width: 44px;
}

/* Desktop factor sizing pass: compact available cards, larger formula slots. */
@media (min-width: 900px) {
  body[data-step="factors"] .bench-zone .factor-rack {
    gap: 10px !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] {
    grid-template-columns: 48px minmax(0, 1fr) 92px !important;
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] .factor-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] h3 {
    display: -webkit-box !important;
    min-height: 1.15em !important;
    max-height: 2.35em !important;
    overflow: hidden !important;
    padding-right: 0 !important;
    font-size: 0.96rem !important;
    line-height: 1.14 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] p {
    display: -webkit-box !important;
    max-height: 3.45em !important;
    overflow: hidden !important;
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] .source-chip-row {
    min-height: 20px !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] .source-chip {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-step="factors"] .bench-zone .factor-token[data-source="available"] .mini-action {
    position: static !important;
    align-self: center !important;
    min-width: 82px !important;
    min-height: 44px !important;
    padding-inline: 12px !important;
  }

  body[data-step="factors"] .selected-rack {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 96px !important;
    gap: 12px !important;
  }

  body[data-step="factors"] .selected-rack.is-empty-formula {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"],
  body[data-step="factors"] .selected-rack .factor-drop-slot {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }

  body[data-step="factors"] .selected-rack .factor-drop-slot {
    grid-template-columns: 28px minmax(0, auto) !important;
    gap: 10px !important;
    padding: 16px !important;
    font-size: 0.84rem !important;
  }

  body[data-step="factors"] .selected-rack .factor-drop-slot .slot-dot {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.76rem !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    overflow: hidden !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .factor-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] h3 {
    display: -webkit-box !important;
    max-height: 2.35em !important;
    overflow: hidden !important;
    padding-right: 0 !important;
    font-size: 0.82rem !important;
    line-height: 1.14 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] p {
    display: none !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .mini-action {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 10px !important;
    bottom: 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    color: color-mix(in srgb, var(--accent, var(--dv-red)) 86%, #102a2e) !important;
    background: transparent !important;
    font-size: 0.66rem !important;
    font-weight: 820 !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .source-chip-row {
    min-height: 18px !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .source-chip {
    max-width: 54px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.52rem !important;
  }
}

/* Formula continuity pass: selected factors should not change shape after moving. */
@media (min-width: 900px) {
  body[data-step="factors"] .selected-rack,
  body[data-step="factors"] .selected-rack.is-empty-formula {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 122px !important;
    gap: 10px !important;
    align-content: start !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"],
  body[data-step="factors"] .selected-rack .factor-drop-slot {
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] {
    grid-template-columns: 48px minmax(0, 1fr) 92px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .factor-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] h3 {
    display: -webkit-box !important;
    max-height: 2.35em !important;
    overflow: hidden !important;
    padding-right: 0 !important;
    font-size: 0.96rem !important;
    line-height: 1.14 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] p {
    display: -webkit-box !important;
    max-height: 2.4em !important;
    overflow: hidden !important;
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .source-chip-row {
    min-height: 20px !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .source-chip {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.58rem !important;
  }

  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .mini-action {
    position: static !important;
    align-self: center !important;
    min-width: 82px !important;
    min-height: 44px !important;
    border: 1px solid color-mix(in srgb, var(--accent, var(--dv-red)) 42%, rgba(16, 42, 46, 0.14)) !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    color: #ffffff !important;
    background: var(--accent, var(--dv-red)) !important;
    font-size: 0.74rem !important;
    font-weight: 760 !important;
    line-height: 1 !important;
  }

  body[data-step="factors"] .selected-rack .factor-drop-slot {
    grid-template-columns: 32px minmax(0, auto) !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 18px !important;
    font-size: 0.9rem !important;
  }

  body[data-step="factors"] .selected-rack .factor-drop-slot .slot-dot {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.78rem !important;
  }
}

/* Factor icon simplification pass: remove generic badges from calculator cards. */
body[data-step="factors"] .factor-token .factor-icon {
  display: none !important;
}

body[data-step="factors"] .factor-token .factor-copy {
  gap: 4px !important;
}

@media (min-width: 900px) {
  body[data-step="factors"] .bench-zone .factor-token[data-source="available"],
  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] {
    grid-template-columns: minmax(0, 1fr) 92px !important;
    gap: 16px !important;
    padding-left: 18px !important;
  }
}

@media (max-width: 899px) {
  body[data-step="factors"] .factor-token {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto) !important;
  }

  body[data-step="factors"] .factor-token .mini-action {
    min-width: 82px !important;
    min-height: 44px !important;
  }
}

/* Factor material pass: make calculator controls feel tactile and premium. */
body[data-step="factors"] .factor-zone {
  border: 1px solid rgba(203, 191, 167, 0.7) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(250, 247, 239, 0.9)),
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.8), transparent 30%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 22px 44px rgba(16, 42, 46, 0.075) !important;
}

body[data-step="factors"] .factor-progress {
  border: 1px solid rgba(203, 191, 167, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 243, 234, 0.82)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 18px rgba(16, 42, 46, 0.028) !important;
}

body[data-step="factors"] .factor-progress-track {
  background: rgba(16, 42, 46, 0.08) !important;
  box-shadow:
    inset 0 1px 2px rgba(16, 42, 46, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.74) !important;
}

body[data-step="factors"] .factor-progress-track i {
  background:
    linear-gradient(90deg, var(--red), var(--teal)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 1px 6px rgba(7, 84, 93, 0.24) !important;
}

body[data-step="factors"] .factor-token {
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.18)) !important;
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--accent, var(--dv-teal)) 7%, #fffdfa) 58%, rgba(255, 255, 255, 0.94) 100%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.88), transparent 32%),
    repeating-linear-gradient(90deg, rgba(16, 42, 46, 0.014) 0 1px, transparent 1px 8px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -18px 34px rgba(16, 42, 46, 0.026),
    0 11px 22px rgba(16, 42, 46, 0.06) !important;
  transform: none !important;
}

body[data-step="factors"] .factor-token:hover,
body[data-step="factors"] .factor-token:focus-within {
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 52%, rgba(16, 42, 46, 0.16)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -18px 34px rgba(16, 42, 46, 0.028),
    0 14px 28px rgba(16, 42, 46, 0.08) !important;
  transform: none !important;
}

body[data-step="factors"] .factor-token.is-selected {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 5px 0 0 color-mix(in srgb, var(--accent, var(--dv-teal)) 92%, #102a2e 8%),
    inset 0 -18px 34px rgba(16, 42, 46, 0.028),
    0 13px 26px rgba(16, 42, 46, 0.075) !important;
}

body[data-step="factors"] .source-chip {
  border: 1px solid rgba(203, 191, 167, 0.56) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 237, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 1px 2px rgba(16, 42, 46, 0.045) !important;
}

body[data-step="factors"] .factor-token .mini-action {
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 36%, rgba(16, 42, 46, 0.2)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent, var(--dv-teal)) 7%, #f7f1e8)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -9px 16px rgba(16, 42, 46, 0.035),
    0 6px 12px rgba(16, 42, 46, 0.07) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

body[data-step="factors"] .selected-rack .factor-token[data-source="selected"] .mini-action {
  color: #ffffff !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--dv-red)) 88%, #ffffff 12%), color-mix(in srgb, var(--accent, var(--dv-red)) 84%, #06272d 16%)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08),
    0 9px 16px color-mix(in srgb, var(--accent, var(--dv-red)) 22%, rgba(16, 42, 46, 0.08)) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18) !important;
}

body[data-step="factors"] .factor-token .mini-action:active {
  box-shadow:
    inset 0 2px 7px rgba(16, 42, 46, 0.12),
    0 2px 5px rgba(16, 42, 46, 0.06) !important;
  transform: translateY(1px) !important;
}

body[data-step="factors"] .factor-drop-slot {
  border: 1.5px dashed rgba(7, 84, 93, 0.3) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 245, 237, 0.76)),
    repeating-linear-gradient(-45deg, rgba(16, 42, 46, 0.012) 0 1px, transparent 1px 10px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -15px 30px rgba(16, 42, 46, 0.024),
    0 9px 18px rgba(16, 42, 46, 0.035) !important;
  transform: none !important;
}

body[data-step="factors"] .factor-drop-slot.is-core-slot {
  border-color: rgba(177, 42, 51, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(251, 245, 231, 0.78)),
    repeating-linear-gradient(-45deg, rgba(177, 42, 51, 0.012) 0 1px, transparent 1px 10px) !important;
}

body[data-step="factors"] .factor-drop-slot .slot-dot {
  border-width: 1.5px !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.72) 42%, rgba(238, 231, 212, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -4px 8px rgba(16, 42, 46, 0.08),
    0 3px 8px rgba(16, 42, 46, 0.08) !important;
}

body[data-step="factors"] .factor-drop-slot.is-core-slot .slot-dot {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(145deg, var(--red), color-mix(in srgb, var(--red) 64%, var(--teal))) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -4px 8px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(16, 42, 46, 0.12) !important;
}

body.is-factor-dragging [data-factor-zone].is-drop-target .factor-drop-slot {
  border-color: rgba(198, 162, 75, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.92), rgba(250, 243, 222, 0.72)),
    repeating-linear-gradient(-45deg, rgba(198, 162, 75, 0.025) 0 1px, transparent 1px 10px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(198, 162, 75, 0.12),
    0 12px 24px rgba(16, 42, 46, 0.07) !important;
  transform: none !important;
}

/* Result portrait-fit pass: keep vertical pet photos authentic inside a square-ish media frame. */
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  align-self: start !important;
  justify-self: stretch !important;
  aspect-ratio: 1 / 1.06 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(520px, calc(100dvh - 190px)) !important;
  border: 8px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.52), transparent 42%),
    linear-gradient(145deg, rgba(246, 241, 228, 0.94), rgba(226, 234, 230, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 42px rgba(16, 42, 46, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"]::before,
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"]::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
}

body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"]::before {
  inset: -18px;
  z-index: -1;
  background-image: var(--photo-url);
  background-position: var(--photo-position, 50% 42%);
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(18px) saturate(1.08);
  opacity: 0.22;
  transform: scale(1.04);
}

body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"]::after {
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(1, 58, 71, 0.01), rgba(1, 58, 71, 0.12)),
    var(--photo-url);
  background-position: center, var(--photo-position, 50% 48%);
  background-repeat: no-repeat;
  background-size: 100% 100%, contain;
  box-shadow:
    inset 0 0 0 1px rgba(16, 42, 46, 0.08),
    inset 0 -30px 46px rgba(16, 42, 46, 0.05);
}

body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] > span {
  display: none !important;
}

@media (min-width: 1181px) {
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(350px, 430px) minmax(390px, 1fr) minmax(300px, 340px) !important;
    align-items: start !important;
    gap: clamp(22px, 2.3vw, 34px) !important;
  }

  body[data-step="results"][data-category="dogbreed"] .winner-copy,
  body[data-step="results"][data-category="catbreed"] .winner-copy {
    padding-top: clamp(4px, 0.7vw, 10px) !important;
  }

  body[data-step="results"][data-category="dogbreed"] .winner-name,
  body[data-step="results"][data-category="catbreed"] .winner-name {
    max-width: 12.5ch !important;
    font-size: clamp(3.25rem, 4.55vw, 5.15rem) !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    align-self: start !important;
    aspect-ratio: 1.06 / 1 !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    aspect-ratio: 1.18 / 1 !important;
    height: auto !important;
    max-height: none !important;
    border-width: 6px !important;
    border-radius: 18px !important;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"]::before {
    inset: -12px;
    filter: blur(13px) saturate(1.04);
    opacity: 0.18;
  }

  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"]::after {
    border-radius: 12px;
  }
}

/* Result media-title pass: use the left-side space for a larger, integrated pet result photo. */
body[data-step="results"] .winner-media-panel {
  grid-area: winner-photo !important;
  align-self: start !important;
  justify-self: stretch !important;
  display: grid !important;
  align-content: start !important;
  gap: clamp(12px, 1.4vw, 18px) !important;
  min-width: 0 !important;
}

body[data-step="results"] .winner-media-panel .winner-medal {
  grid-area: auto !important;
}

body[data-step="results"] .winner-media-title {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body[data-step="results"] .winner-media-title .kicker {
  margin: 0 !important;
  color: rgba(126, 29, 39, 0.78) !important;
}

body[data-step="results"] .winner-media-title h2 {
  max-width: 12.5ch !important;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: clamp(2.65rem, 4.25vw, 4.9rem) !important;
  font-weight: 520 !important;
  letter-spacing: 0 !important;
  line-height: 0.94 !important;
}

body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

body[data-step="results"][data-category="dogbreed"] .winner-copy,
body[data-step="results"][data-category="catbreed"] .winner-copy,
body[data-step="results"][data-category="dogbreed"] .result-tuner,
body[data-step="results"][data-category="catbreed"] .result-tuner {
  align-self: start !important;
}

body[data-step="results"][data-category="dogbreed"] .winner-share-card,
body[data-step="results"][data-category="catbreed"] .winner-share-card {
  grid-template-columns: minmax(0, 1fr) minmax(126px, auto) !important;
}

body[data-step="results"][data-category="dogbreed"] .result-share-button,
body[data-step="results"][data-category="catbreed"] .result-share-button {
  min-width: 126px !important;
  white-space: nowrap !important;
}

@media (min-width: 1181px) {
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(480px, 560px) minmax(330px, 1fr) minmax(300px, 340px) !important;
    align-items: start !important;
  }

  body[data-step="results"] .winner-media-title h2 {
    font-size: clamp(3.1rem, 4.05vw, 4.85rem) !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="dogbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="catbreed"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(370px, 390px) minmax(300px, 1fr) minmax(238px, 256px) !important;
    align-items: start !important;
    gap: clamp(16px, 2vw, 24px) !important;
  }

  body[data-step="results"] .winner-media-title h2 {
    font-size: clamp(2.65rem, 4.1vw, 3.85rem) !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-step="results"] .winner-media-title h2 {
    max-width: 13ch !important;
    font-size: clamp(3rem, 7.4vw, 4.45rem) !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] .winner-media-panel {
    gap: 10px !important;
  }

  body[data-step="results"] .winner-media-title h2 {
    max-width: 100% !important;
    font-size: clamp(2rem, 9vw, 3.1rem) !important;
    line-height: 0.98 !important;
  }

body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    aspect-ratio: 1.18 / 1 !important;
  }
}

/* Factor flow pass: equal columns with a clear left-to-right transfer cue. */
@media (min-width: 900px) {
  body[data-step="factors"] .factor-board {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) !important;
    gap: clamp(12px, 1.8vw, 18px) !important;
    width: min(1180px, calc(100% - 24px)) !important;
    align-items: stretch !important;
  }

  body[data-step="factors"] .bench-zone {
    grid-column: 1 !important;
  }

  body[data-step="factors"] .field-arrow {
    grid-column: 2 !important;
    position: sticky !important;
    top: 96px !important;
    align-self: start !important;
    display: grid !important;
    grid-template-rows: 84px 50px minmax(120px, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    height: clamp(340px, calc(100dvh - 170px), 560px) !important;
    min-width: 0 !important;
    pointer-events: none !important;
  }

  body[data-step="factors"] .scoring-zone {
    grid-column: 3 !important;
  }

  body[data-step="factors"] .field-arrow span {
    display: block !important;
    width: 1px !important;
    height: 100% !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(7, 84, 93, 0), rgba(7, 84, 93, 0.2), rgba(7, 84, 93, 0)) !important;
  }

  body[data-step="factors"] .field-arrow strong {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(7, 84, 93, 0.2) !important;
    border-radius: 999px !important;
    color: transparent !important;
    background:
      radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 32%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(235, 244, 241, 0.88)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -8px 14px rgba(16, 42, 46, 0.045),
      0 10px 20px rgba(16, 42, 46, 0.09) !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body[data-step="factors"] .field-arrow strong::before {
    color: var(--teal) !important;
    content: "→" !important;
    font-size: 1.55rem !important;
    font-weight: 820 !important;
    line-height: 1 !important;
    transform: translateX(1px) !important;
  }
}

@media (max-width: 899px) {
  body[data-step="factors"] .field-arrow {
    display: none !important;
  }
}

/* Decision journey pass: make the calculator feel like a guided multi-step product. */
body[data-step="debate"] .decision-journey,
.decision-journey[hidden] {
  display: none !important;
}

body:not([data-step="debate"]) .decision-journey {
  position: sticky !important;
  top: 76px !important;
  z-index: 35 !important;
  display: grid !important;
  grid-template-columns: minmax(170px, 0.9fr) repeat(3, minmax(92px, 0.58fr)) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: min(1180px, calc(100% - 24px)) !important;
  margin: 12px auto 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 239, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 30px rgba(16, 42, 46, 0.075) !important;
  backdrop-filter: blur(14px) !important;
}

body:not([data-step="debate"]) .decision-journey::before,
body:not([data-step="debate"]) .decision-journey::after {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 3px !important;
  content: "" !important;
  pointer-events: none !important;
}

body:not([data-step="debate"]) .decision-journey::before {
  background: rgba(16, 42, 46, 0.08) !important;
}

body:not([data-step="debate"]) .decision-journey::after {
  width: var(--journey-progress, 0%) !important;
  background: linear-gradient(90deg, var(--red), var(--teal)) !important;
  box-shadow: 0 0 14px rgba(7, 84, 93, 0.2) !important;
}

body:not([data-step="debate"]) .journey-status {
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  border-right: 1px solid rgba(16, 42, 46, 0.08) !important;
  padding: 10px 14px !important;
}

body:not([data-step="debate"]) .journey-status b {
  overflow: hidden !important;
  color: var(--ink) !important;
  font-size: 0.92rem !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:not([data-step="debate"]) .journey-status em {
  color: rgba(126, 29, 39, 0.78) !important;
  font-size: 0.64rem !important;
  font-style: normal !important;
  font-weight: 820 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step {
  position: relative !important;
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 2px !important;
  min-width: 0 !important;
  min-height: 54px !important;
  border: 0 !important;
  border-right: 1px solid rgba(16, 42, 46, 0.08) !important;
  border-radius: 0 !important;
  padding: 9px 12px !important;
  color: rgba(16, 42, 46, 0.58) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step:last-child {
  border-right: 0 !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step span {
  color: rgba(126, 29, 39, 0.68) !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step strong {
  color: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1.04 !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step.is-active {
  color: var(--teal) !important;
  background:
    linear-gradient(180deg, rgba(232, 248, 241, 0.72), rgba(255, 255, 255, 0.45)) !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step.is-complete {
  color: rgba(16, 42, 46, 0.82) !important;
  background: rgba(7, 84, 93, 0.04) !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step.is-complete span {
  color: var(--teal) !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step.is-locked {
  cursor: default !important;
  opacity: 0.48 !important;
}

@media (max-width: 760px) {
  body:not([data-step="debate"]) .decision-journey {
    top: 70px !important;
    grid-template-columns: 1fr !important;
    width: min(100%, calc(100vw - 24px)) !important;
    margin-top: 8px !important;
    border-radius: 12px !important;
  }

  body:not([data-step="debate"]) .journey-status {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(16, 42, 46, 0.08) !important;
    padding: 9px 11px !important;
  }

  body:not([data-step="debate"]) .journey-status b {
    font-size: 0.82rem !important;
  }

  body:not([data-step="debate"]) .journey-status em {
    font-size: 0.58rem !important;
  }

  body:not([data-step="debate"]) .decision-journey .journey-step {
    display: none !important;
  }
}

/* Photo integrity guard: do not present unresolved image placeholders as finished result art. */
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
  grid-template-columns:
    minmax(360px, 1fr)
    minmax(278px, 0.52fr) !important;
  grid-template-areas: "winner-copy winner-controls" !important;
}

body[data-step="results"] .winner-spotlight.has-unavailable-winner-photo .winner-medal.photo-unavailable {
  display: none !important;
}

@media (max-width: 900px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "winner-copy"
      "winner-controls" !important;
  }
}

/* Small-pet result guard: keep dense outcome controls from clipping in the right rail. */
@media (min-width: 901px) {
  body[data-step="results"][data-category="pet-type"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="small-exotic-pet-type"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="small-exotic-pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="small-exotic-pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) !important;
    grid-template-areas:
      "winner-copy winner-photo"
      "winner-controls winner-controls" !important;
    gap: clamp(18px, 2.4vw, 28px) !important;
  }

  body[data-step="results"][data-category="pet-type"] .result-tuner,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tuner {
    border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
    border-left: 0 !important;
    padding-top: clamp(16px, 2vw, 22px) !important;
    padding-left: 0 !important;
  }

  body[data-step="results"][data-category="pet-type"] .result-tuner-grid,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tuner-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
    align-items: stretch !important;
  }

  body[data-step="results"][data-category="pet-type"] .result-tune-card,
  body[data-step="results"][data-category="pet-type"] .result-tuner.is-many .result-tune-card,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tune-card,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tuner.is-many .result-tune-card {
    grid-template-columns: minmax(112px, 0.62fr) minmax(190px, 1.38fr) !important;
  }

  body[data-step="results"][data-category="pet-type"] .result-tune-copy,
  body[data-step="results"][data-category="pet-type"] .result-tune-control,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tune-copy,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tune-control {
    min-width: 0 !important;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  body[data-step="results"][data-category="pet-type"] .result-tuner-grid,
  body[data-step="results"][data-category="small-exotic-pet-type"] .result-tuner-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile small-pet QA: finish the copy and make rank controls thumb-friendly. */
@media (max-width: 760px) {
  body[data-step="factors"] .app-header,
  body[data-step="rank"] .app-header,
  body[data-step="results"] .app-header,
  body[data-step="debate"] .app-header {
    grid-template-columns: 44px minmax(138px, 148px) minmax(0, 1fr) !important;
  }

  .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body[data-step="factors"] .menu-toggle,
  body[data-step="rank"] .menu-toggle,
  body[data-step="results"] .menu-toggle,
  body[data-step="debate"] .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body[data-step="factors"] [data-stage="factors"] {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body[data-step="factors"] .factor-zone,
  body[data-step="factors"] .factor-rack {
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body[data-step="rank"] [data-stage="rank"] {
    padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body[data-step="rank"] [data-stage="rank"] .stage-copy {
    gap: 7px !important;
    padding-block: 8px 6px !important;
  }

  body[data-step="rank"] [data-stage="rank"] .stage-copy h1 {
    margin-bottom: 0 !important;
    font-size: clamp(1.68rem, 7.1vw, 2.08rem) !important;
    line-height: 1 !important;
  }

  body[data-step="rank"] [data-stage="rank"] .stage-copy p {
    font-size: 0.86rem !important;
    line-height: 1.26 !important;
  }

  body[data-step="rank"] [data-stage="rank"] .kicker {
    margin-bottom: 2px !important;
  }

  body[data-step="rank"] .order-workbench {
    padding-top: 7px !important;
  }

  body[data-step="rank"] .order-instructions {
    gap: 3px !important;
    margin-bottom: 6px !important;
  }

  body[data-step="rank"] .order-instructions h2 {
    font-size: 0.94rem !important;
    line-height: 1.08 !important;
  }

  body[data-step="rank"] .order-instructions p {
    font-size: 0.74rem !important;
    line-height: 1.18 !important;
  }

  body[data-step="rank"] .order-list {
    gap: 6px !important;
  }

  body[data-step="rank"] .order-card {
    grid-template-columns: 34px minmax(0, 1fr) 92px !important;
    min-height: 58px !important;
  }

  body[data-step="rank"] .order-actions {
    grid-template-columns: repeat(2, 40px) !important;
    gap: 8px !important;
  }

  body[data-step="rank"] .order-actions button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
  }

  body[data-step="results"][data-category="pet-type"] .winner-description,
  body[data-step="results"][data-category="small-exotic-pet-type"] .winner-description {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }

  body[data-step="results"][data-category="pet-type"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"][data-category="small-exotic-pet-type"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"][data-category="small-exotic-pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"][data-category="small-exotic-pet-type"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-copy"
      "winner-photo"
      "winner-proof"
      "winner-controls" !important;
  }

  body[data-step="results"][data-category="pet-type"] .winner-copy,
  body[data-step="results"][data-category="pet-type"] .winner-main,
  body[data-step="results"][data-category="small-exotic-pet-type"] .winner-copy,
  body[data-step="results"][data-category="small-exotic-pet-type"] .winner-main {
    display: contents !important;
  }

  body[data-step="results"][data-category="pet-type"] .winner-identity,
  body[data-step="results"][data-category="small-exotic-pet-type"] .winner-identity {
    grid-area: winner-copy !important;
    display: grid !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  body[data-step="results"][data-category="pet-type"] .winner-proof,
  body[data-step="results"][data-category="small-exotic-pet-type"] .winner-proof {
    grid-area: winner-proof !important;
    display: grid !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  body[data-step="results"] .winner-media-title {
    order: 1 !important;
  }

  body[data-step="results"] .winner-media-panel .winner-medal {
    order: 2 !important;
  }
}

@media (max-width: 380px), (max-width: 760px) and (max-height: 800px) {
  body[data-step="rank"] [data-stage="rank"] {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body[data-step="rank"] [data-stage="rank"] .stage-actions {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  body[data-step="rank"] .order-list {
    gap: 4px !important;
  }

  body[data-step="rank"] .order-card {
    grid-template-columns: 30px minmax(0, 1fr) 88px !important;
    height: 52px !important;
    min-height: 52px !important;
    gap: 6px !important;
    padding: 5px 7px !important;
  }

  body[data-step="rank"] .order-rank {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.78rem !important;
  }

  body[data-step="rank"] .order-copy strong {
    font-size: 0.82rem !important;
    line-height: 1.05 !important;
  }

  body[data-step="rank"] .order-actions {
    grid-template-columns: repeat(2, 40px) !important;
    gap: 6px !important;
  }
}

/* Rank responsive guard: short desktop/tablet windows should not use the compact phone layout. */
@media (min-width: 761px) {
  body[data-step="rank"] [data-stage="rank"] {
    padding-bottom: clamp(24px, 5vw, 56px) !important;
  }

  body[data-step="rank"] [data-stage="rank"] .stage-actions {
    position: static !important;
    inset: auto !important;
    width: min(1120px, calc(100% - 48px)) !important;
    margin: 18px auto 0 !important;
  }

  body[data-step="rank"] .order-card {
    height: auto !important;
    min-height: 86px !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }

  body[data-step="rank"] .order-rank {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.9rem !important;
  }

  body[data-step="rank"] .order-copy strong {
    font-size: 0.95rem !important;
    line-height: 1.14 !important;
  }
}

/* Result media height guard: keep winner art from becoming a tall poster on wider screens. */
@media (min-width: 761px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    align-items: start !important;
    min-height: 0 !important;
  }

  body[data-step="results"] .winner-medal,
  body[data-step="results"] .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
  body[data-step="results"] .winner-medal:not(.has-photo) {
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(340px, calc(100dvh - 220px)) !important;
  }

  body[data-step="results"][data-category="dogbreed"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
  body[data-step="results"][data-category="catbreed"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    aspect-ratio: 4 / 3 !important;
    max-height: min(360px, calc(100dvh - 220px)) !important;
  }
}

/* Desktop factor containment: keep long factor lists from stretching the whole page. */
@media (min-width: 900px) {
  body[data-step="factors"] [data-stage="factors"] .factor-board {
    align-items: stretch !important;
    height: clamp(460px, calc(100dvh - 238px), 620px) !important;
    max-height: clamp(460px, calc(100dvh - 238px), 620px) !important;
    min-height: 0 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .factor-zone,
  body[data-step="factors"] [data-stage="factors"] .bench-zone,
  body[data-step="factors"] [data-stage="factors"] .scoring-zone {
    align-self: stretch !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body[data-step="factors"] [data-stage="factors"] .factor-rack {
    align-content: start !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-rack {
    padding-right: 6px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] {
    grid-template-columns: minmax(0, 1fr) 78px !important;
    height: auto !important;
    min-height: 82px !important;
    max-height: 98px !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] h3 {
    max-height: 1.18em !important;
    font-size: 0.9rem !important;
    line-height: 1.16 !important;
    -webkit-line-clamp: 1 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] p {
    max-height: 2.5em !important;
    font-size: 0.7rem !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] .mini-action {
    min-width: 74px !important;
    min-height: 38px !important;
    padding-inline: 10px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .selected-rack {
    grid-auto-rows: 82px !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  body[data-step="factors"] [data-stage="factors"] .selected-rack .factor-token[data-source="selected"],
  body[data-step="factors"] [data-stage="factors"] .selected-rack .factor-drop-slot {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
  }
}

/* Tablet factor guard: use the mobile-first stack before the desktop columns have room. */
@media (min-width: 761px) and (max-width: 899px) {
  body[data-step="factors"] [data-stage="factors"] {
    padding-bottom: clamp(28px, 5vw, 56px) !important;
  }

  body[data-step="factors"] [data-stage="factors"] .factor-board {
    display: flex !important;
    flex-direction: column !important;
    width: min(760px, calc(100% - 48px)) !important;
    gap: 14px !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .field-arrow {
    display: none !important;
  }

  body[data-step="factors"] [data-stage="factors"] .factor-zone,
  body[data-step="factors"] [data-stage="factors"] .bench-zone,
  body[data-step="factors"] [data-stage="factors"] .scoring-zone {
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-step="factors"] [data-stage="factors"] .factor-rack {
    max-height: none !important;
    overflow: visible !important;
    scrollbar-gutter: auto !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] {
    grid-template-columns: minmax(0, 1fr) 86px !important;
    min-height: 86px !important;
    max-height: none !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] h3 {
    font-size: 0.94rem !important;
    line-height: 1.16 !important;
    -webkit-line-clamp: 1 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] p {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] .mini-action {
    min-width: 76px !important;
    min-height: 40px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .selected-rack {
    grid-auto-rows: minmax(82px, auto) !important;
    overflow: visible !important;
  }

body[data-step="factors"] [data-stage="factors"] .selected-rack .factor-token[data-source="selected"],
  body[data-step="factors"] [data-stage="factors"] .selected-rack .factor-drop-slot {
    min-height: 82px !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* Result photo fit guard: preserve whole subject photos across desktop, tablet, and mobile. */
body[data-step="results"] .winner-media-panel {
  width: 100% !important;
}

body[data-step="results"] .winner-medal,
body[data-step="results"] .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
body[data-step="results"] .winner-media-panel .winner-medal,
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  align-self: start !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  box-sizing: border-box !important;
}

body[data-step="results"] .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
  background-color: #edf3f0 !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(1, 58, 71, 0.12)),
    var(--photo-url) !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, contain !important;
}

@media (max-width: 760px) {
  body[data-step="results"] .winner-medal,
  body[data-step="results"] .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
  body[data-step="results"] .winner-media-panel .winner-medal,
  body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-shape="pet"] {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Photo framing guard: board photos should show the subject, not accidental slices. */
body[data-step="factors"] [data-stage="factors"] .stage-copy::before {
  background-color: #eaf2ef !important;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94) 0%, rgba(255, 250, 240, 0.44) 35%, rgba(255, 250, 240, 0.08) 100%),
    var(--dv-board-photo, linear-gradient(135deg, rgba(7, 84, 93, 0.18), rgba(198, 162, 75, 0.2))) !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, contain !important;
}

body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
body[data-category="catbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
  background-size: 100% 100%, contain !important;
}

body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-context="dog-breed"],
body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-context="cat-breed"],
body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-shape="pet"] {
  background-color: #e8f0ed !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(1, 58, 71, 0.14)),
    var(--photo-url) !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, contain !important;
}

@media (min-width: 701px) {
  body[data-step="factors"] .board-photo-preview-strip:has(.board-preview-photo[data-photo-context="dog-breed"]),
  body[data-step="factors"] .board-photo-preview-strip:has(.board-preview-photo[data-photo-context="cat-breed"]),
  body[data-step="factors"] .board-photo-preview-strip:has(.board-preview-photo[data-photo-shape="pet"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 190px !important;
  }

  body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-context="dog-breed"],
  body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-context="cat-breed"],
  body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-shape="pet"] {
    min-height: 92px !important;
  }
}

@media (max-width: 700px) {
  body[data-step="factors"] [data-stage="factors"] .stage-copy {
    padding-bottom: 178px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .stage-copy::before {
    height: 156px !important;
    background-image:
      linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(7, 84, 93, 0.1)),
      var(--dv-board-photo, linear-gradient(135deg, rgba(7, 84, 93, 0.18), rgba(198, 162, 75, 0.2))) !important;
    background-position: center, center !important;
    background-size: 100% 100%, contain !important;
  }

  body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-context="dog-breed"],
  body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-context="cat-breed"],
  body[data-step="factors"] .board-preview-photo.photo-token.has-photo[data-photo-shape="pet"] {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 700px) {
  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy,
  body[data-category="catbreed"][data-step="factors"] [data-stage="factors"] .stage-copy {
    padding: 18px 15px 190px !important;
  }

  body[data-category="dogbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="catbreed"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 170px !important;
    background-image:
      linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(7, 84, 93, 0.1)),
      var(--dv-board-photo, linear-gradient(135deg, rgba(7, 84, 93, 0.18), rgba(198, 162, 75, 0.2))) !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: 100% 100%, contain !important;
  }
}

@media (max-width: 700px) {
  body[data-category="smartphone"][data-step="factors"] [data-stage="factors"] .stage-copy,
  body[data-category="laptop"][data-step="factors"] [data-stage="factors"] .stage-copy,
  body[data-category="tv"][data-step="factors"] [data-stage="factors"] .stage-copy,
  body[data-category="tablet"][data-step="factors"] [data-stage="factors"] .stage-copy,
  body[data-category="console"][data-step="factors"] [data-stage="factors"] .stage-copy,
  body[data-category="gamingpc"][data-step="factors"] [data-stage="factors"] .stage-copy {
    padding: 18px 15px 190px !important;
  }

  body[data-category="smartphone"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="laptop"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="tv"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="tablet"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="console"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="gamingpc"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 170px !important;
    background-image:
      linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(7, 84, 93, 0.1)),
      var(--dv-board-photo, linear-gradient(135deg, rgba(7, 84, 93, 0.18), rgba(198, 162, 75, 0.2))) !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: 100% 100%, contain !important;
  }
}

/* Result summary consolidation: one clear proof + share module across boards. */
body[data-step="results"] .result-summary-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(100%, 640px) !important;
  max-width: 100% !important;
  gap: 14px !important;
}

body[data-step="results"] .result-summary-copy .winner-description {
  display: block !important;
  max-width: none !important;
  overflow: visible !important;
  margin: 0 !important;
  -webkit-line-clamp: initial !important;
}

body[data-step="results"] .result-summary-facts span {
  max-width: 100% !important;
  white-space: normal !important;
}

body[data-step="results"] .result-summary-panel .winner-share-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px !important;
}

body[data-step="results"] .result-summary-panel .winner-share-card > span {
  gap: 4px !important;
}

body[data-step="results"] .result-summary-panel .winner-share-card strong {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem) !important;
  line-height: 1.08 !important;
}

body[data-step="results"] .result-summary-panel .winner-share-card em {
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

body[data-step="results"] .result-summary-panel .result-share-button {
  width: 100% !important;
  min-height: 62px !important;
  padding: 0 24px !important;
  font-size: 0.98rem !important;
  line-height: 1.05 !important;
}

body[data-step="results"] .result-summary-panel .result-share-button span {
  color: #ffffff !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  body[data-step="results"] .result-summary-panel {
    width: 100% !important;
    gap: 12px !important;
    margin-top: 12px !important;
    padding: 12px !important;
  }

  body[data-step="results"] .result-summary-panel .winner-share-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  body[data-step="results"] .result-summary-panel .result-share-button {
    min-height: 58px !important;
  }
}

/* Factor choice focus: keep the available/selected workflow as the only main task. */
body[data-step="factors"] .board-readiness-note,
body[data-step="factors"] .board-readiness-card,
body[data-step="factors"] .board-photo-preview {
  display: none !important;
}

/* Responsive result QA guard: mobile first, no clipped sidebars at in-between widths. */
body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "winner-photo"
    "winner-copy"
    "winner-controls" !important;
  width: min(1180px, calc(100vw - 28px)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: clamp(14px, 3vw, 22px) !important;
  overflow: visible !important;
}

body[data-step="results"] .winner-media-panel,
body[data-step="results"] .winner-medal,
body[data-step="results"] .winner-copy,
body[data-step="results"] .winner-main,
body[data-step="results"] .winner-proof,
body[data-step="results"] .result-tuner {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body[data-step="results"] .winner-media-panel,
body[data-step="results"] .winner-medal {
  grid-area: winner-photo !important;
}

body[data-step="results"] .winner-copy {
  grid-area: winner-copy !important;
}

body[data-step="results"] .result-tuner {
  grid-area: winner-controls !important;
  width: 100% !important;
  border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-left: 0 !important;
  padding-top: clamp(14px, 3vw, 22px) !important;
  padding-left: 0 !important;
}

@media (max-width: 760px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-title"
      "winner-photo"
      "winner-proof"
      "winner-controls" !important;
    width: min(100%, calc(100vw - 20px)) !important;
    padding: 12px !important;
  }

  body[data-step="results"] .winner-copy,
  body[data-step="results"] .winner-main {
    display: contents !important;
  }

  body[data-step="results"] .winner-identity {
    grid-area: winner-title !important;
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  body[data-step="results"] .winner-proof {
    grid-area: winner-proof !important;
    display: grid !important;
    gap: 10px !important;
  }

  body[data-step="results"] .result-tuner-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 761px) and (max-width: 1239px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-controls winner-controls" !important;
    width: min(1080px, calc(100vw - 32px)) !important;
    gap: clamp(18px, 2.8vw, 28px) !important;
  }

  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 1000px) and (max-width: 1239px) {
  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1240px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) minmax(280px, 360px) !important;
    grid-template-areas: "winner-photo winner-copy winner-controls" !important;
    width: min(1280px, calc(100vw - 48px)) !important;
    gap: clamp(22px, 2.5vw, 34px) !important;
  }

  body[data-step="results"] .result-tuner {
    border-top: 0 !important;
    border-left: 1px solid rgba(16, 42, 46, 0.1) !important;
    padding-top: 0 !important;
    padding-left: clamp(14px, 1.8vw, 22px) !important;
  }

  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Footer reset: quiet utility links and a restrained brand close across every view. */
.site-footer,
body[data-step="debate"] .site-footer,
[data-stage="results"] .site-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "footer-nav footer-base" !important;
  align-items: center !important;
  gap: 16px clamp(20px, 3vw, 36px) !important;
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: clamp(30px, 5vw, 54px) auto clamp(28px, 6vw, 64px) !important;
  border: 0 !important;
  border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-radius: 0 !important;
  padding: 18px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer::before,
body[data-step="debate"] .site-footer::before,
[data-stage="results"] .site-footer::before {
  display: none !important;
}

.site-footer .footer-proof,
body[data-step="debate"] .site-footer .footer-proof,
[data-stage="results"] .site-footer .footer-proof {
  display: none !important;
}

.site-footer .footer-nav {
  grid-area: footer-nav !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px 16px !important;
  width: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-nav :is(button, a) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(7, 84, 93, 0.86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.site-footer .footer-nav :is(button, a)::after {
  display: none !important;
}

.site-footer .footer-nav :is(button, a):hover {
  color: var(--dv-red) !important;
  transform: none !important;
}

.site-footer .footer-nav :is(button, a):last-child {
  min-height: 32px !important;
  border: 1px solid rgba(157, 23, 50, 0.2) !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  color: var(--dv-red) !important;
  background: rgba(157, 23, 50, 0.045) !important;
}

.site-footer .footer-base {
  grid-area: footer-base !important;
  display: grid !important;
  grid-template-columns: auto auto auto !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 9px 12px !important;
  min-width: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  order: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .footer-logo::before,
.site-footer .footer-logo::after {
  display: none !important;
}

.site-footer .footer-logo img {
  display: block !important;
  width: clamp(92px, 9vw, 124px) !important;
  max-width: 124px !important;
  height: auto !important;
  filter: none !important;
}

.site-footer .footer-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  order: 2 !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  color: rgba(16, 42, 46, 0.6) !important;
  font-size: 0.68rem !important;
  font-weight: 640 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.site-footer .footer-flag img {
  display: block !important;
  width: 24px !important;
  height: auto !important;
  border: 1px solid rgba(16, 42, 46, 0.1) !important;
  box-shadow: none !important;
}

.site-footer .footer-legal {
  display: block !important;
  order: 3 !important;
  max-width: 28ch !important;
  margin: 0 !important;
  color: rgba(16, 42, 46, 0.48) !important;
  font-size: 0.62rem !important;
  font-weight: 520 !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

@media (max-width: 760px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "footer-nav"
      "footer-base" !important;
    gap: 14px !important;
    width: min(100% - 28px, 420px) !important;
    margin-top: 28px !important;
    padding-top: 16px !important;
  }

  .site-footer .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
    width: 100% !important;
  }

  .site-footer .footer-nav :is(button, a) {
    justify-content: flex-start !important;
    min-height: 28px !important;
    font-size: 0.72rem !important;
    white-space: normal !important;
  }

  .site-footer .footer-nav :is(button, a):last-child {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    min-height: 30px !important;
    padding: 0 11px !important;
  }

  .site-footer .footer-base {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "footer-logo"
      "footer-flag"
      "footer-legal" !important;
    justify-content: stretch !important;
    justify-items: start !important;
    gap: 6px !important;
  }

  .site-footer .footer-logo {
    grid-area: footer-logo !important;
    justify-self: start !important;
  }

  .site-footer .footer-logo img {
    width: 108px !important;
  }

  .site-footer .footer-flag {
    grid-area: footer-flag !important;
    justify-self: start !important;
    font-size: 0.66rem !important;
  }

  .site-footer .footer-legal {
    grid-area: footer-legal !important;
    max-width: none !important;
    text-align: left !important;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-nav {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Keep result reveal confetti inside the winner section, never over footer links. */
body[data-step="results"] .winner-spotlight {
  position: relative !important;
  isolation: isolate !important;
}

body[data-step="results"] .winner-spotlight > .result-celebration-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Modern finish pass: calmer typography, buttons, menu icons, and photo framing. */
:root {
  --dv-font-sans: "Aptos", "Segoe UI Variable", "Inter", "Helvetica Neue", Arial, sans-serif;
  --dv-font-display: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI Variable", "Inter", "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input {
  font-family: var(--dv-font-sans) !important;
  letter-spacing: 0 !important;
}

h1,
h2,
h3,
.winner-name,
.winner-media-title h2,
.result-summary-copy h3,
.portal-menu-copy strong {
  font-family: var(--dv-font-display) !important;
  letter-spacing: 0 !important;
}

.winner-identity:empty {
  display: none !important;
}

.next-button,
.result-share-button,
.stage-actions .next-button,
.winner-share-card .result-share-button {
  border: 1px solid rgba(7, 84, 93, 0.22) !important;
  color: #ffffff !important;
  background: var(--dv-teal, #07545d) !important;
  background-image: none !important;
  box-shadow: 0 12px 26px rgba(7, 84, 93, 0.16) !important;
}

.result-share-button,
.winner-share-card .result-share-button {
  border-color: rgba(157, 23, 50, 0.28) !important;
  background: var(--dv-red, #b12a33) !important;
  box-shadow: 0 14px 28px rgba(157, 23, 50, 0.16) !important;
}

.next-button:hover:not(:disabled),
.result-share-button:hover:not(:disabled),
.stage-actions .next-button:hover:not(:disabled) {
  background: #093f47 !important;
  background-image: none !important;
  transform: translateY(-1px) !important;
}

.result-share-button:hover:not(:disabled) {
  background: #991f2d !important;
}

.site-footer,
body[data-step="debate"] .site-footer,
[data-stage="results"] .site-footer {
  margin-bottom: 16px !important;
}

.site-footer .footer-nav :is(button, a):last-child {
  min-height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(7, 84, 93, 0.86) !important;
  background: transparent !important;
}

.site-footer .footer-nav :is(button, a):last-child:hover {
  color: var(--dv-red, #b12a33) !important;
}

.portal-menu .portal-menu-icon {
  flex: 0 0 auto !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  align-self: center !important;
  border-radius: 8px !important;
  padding: 0 !important;
  background:
    repeating-linear-gradient(135deg, rgba(255, 246, 223, 0.2) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, rgba(7, 84, 93, 0.96), rgba(16, 42, 46, 0.92)) !important;
  box-shadow: inset 0 -14px 26px rgba(0, 0, 0, 0.1) !important;
}

.portal-menu .portal-menu-icon::before {
  transform: scale(0.34) !important;
  transform-origin: center !important;
}

.portal-menu .portal-menu-icon::after {
  transform: translateY(12px) scale(0.38) !important;
  transform-origin: center !important;
}

.portal-menu .portal-menu-icon .picture-orbit,
.portal-menu .portal-menu-icon .picture-bars {
  display: none !important;
}

.portal-menu .portal-menu-icon[data-art="compass"]::before,
.portal-menu .portal-menu-icon[data-art="leaf"]::before,
.portal-menu .portal-menu-icon[data-art="spark"]::before {
  transform: rotate(45deg) scale(0.34) !important;
}

.portal-menu .portal-menu-icon[data-art="compass"]::after {
  transform: rotate(38deg) scale(0.34) !important;
}

body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="qb"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="nfl-quarterback"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="nba"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="nba-player"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="rap"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="rapper"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="singer"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="band-artist"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="soccer"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="tennis"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="presidents"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="u-s-presidents"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="demleaders"],
body[data-step="results"] .photo-token.has-photo:not(.winner-medal)[data-photo-context="gopleaders"] {
  background-size: 100% 100%, cover !important;
  background-position: center, var(--photo-position, 50% 30%) !important;
}

/* Result polish follow-up: keep global menu and celebration usable on every step. */
.app-header,
body[data-step="results"] .app-header,
body[data-step="factors"] .app-header,
body[data-step="rank"] .app-header,
body[data-step="debate"] .app-header {
  position: relative !important;
  z-index: 1200 !important;
  overflow: visible !important;
}

.app-header.is-menu-open .portal-menu,
body[data-step="results"] .app-header.is-menu-open .portal-menu,
body[data-step="factors"] .app-header.is-menu-open .portal-menu,
body[data-step="rank"] .app-header.is-menu-open .portal-menu,
body[data-step="debate"] .app-header.is-menu-open .portal-menu {
  display: grid !important;
  z-index: 1300 !important;
}

body[data-step="results"] .winner-spotlight > .result-celebration-layer {
  z-index: 1 !important;
  opacity: 0.72 !important;
}

body[data-step="results"] .winner-spotlight > :not(.result-celebration-layer) {
  position: relative !important;
  z-index: 3 !important;
}

body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="qb"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="nfl-quarterback"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="nba"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="nba-player"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="rap"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="rapper"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="singer"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="band-artist"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="soccer"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="tennis"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="presidents"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="u-s-presidents"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="demleaders"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-context="gopleaders"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="qb"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="nfl-quarterback"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="nba"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="nba-player"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="rap"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="rapper"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="singer"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="band-artist"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="soccer"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="tennis"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="presidents"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="u-s-presidents"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="demleaders"],
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-context="gopleaders"] {
  background-position: center, center !important;
  background-size: 100% 100%, contain !important;
}

body[data-step="results"] .feedback-cta {
  margin: 20px auto 16px !important;
  padding-top: 14px !important;
}

body[data-step="results"] .stage-actions {
  margin: 16px auto 22px !important;
  padding-top: 10px !important;
}

body[data-step="results"] .site-footer,
body[data-step="results"] [data-stage="results"] .site-footer {
  margin-top: 18px !important;
  margin-bottom: 18px !important;
  padding-top: 14px !important;
}

@media (max-width: 760px) {
  body[data-step="results"] .feedback-cta {
    margin: 14px auto 12px !important;
  }

  body[data-step="results"] .stage-actions {
    margin: 12px auto 14px !important;
  }

  body[data-step="results"] .site-footer,
  body[data-step="results"] [data-stage="results"] .site-footer {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
}

/* Live-scroll QA fix: the step rail must never float over page content. */
body:not([data-step="debate"]) .decision-journey {
  position: relative !important;
  top: auto !important;
  z-index: 8 !important;
  margin-top: 12px !important;
  margin-bottom: clamp(14px, 2vw, 22px) !important;
}

body:not([data-step="debate"]) .decision-journey,
body:not([data-step="debate"]) .decision-journey * {
  transform: none !important;
}

@media (max-width: 760px) {
  body:not([data-step="debate"]) .decision-journey {
    top: auto !important;
    margin-bottom: 12px !important;
  }
}

/* Live-scroll QA fix: mobile action bars belong in the document, not over it. */
@media (max-width: 760px) {
  body[data-step="factors"] .stage-actions,
  body[data-step="rank"] .stage-actions,
  body[data-step="results"] .stage-actions,
  body[data-step="rank"] [data-stage="rank"] .stage-actions {
    position: static !important;
    inset: auto !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px auto 0 !important;
    border-top: 1px solid rgba(16, 42, 46, 0.08) !important;
    padding: 12px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-step="rank"] [data-stage="rank"] {
    padding-bottom: clamp(24px, 6vw, 38px) !important;
  }

  body[data-step="results"] .stage-actions .next-button {
    grid-column: 1 / -1 !important;
  }
}

/* Menu icon polish: reuse the same category art shown on the home cards. */
.portal-menu a,
.portal-menu button,
body[data-step="debate"] .portal-menu a,
body[data-step="debate"] .portal-menu button,
body[data-step="debate"] .app-header .portal-menu a,
body[data-step="debate"] .app-header .portal-menu button {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-height: 56px !important;
}

.portal-menu .portal-menu-image-mark,
body[data-step="debate"] .portal-menu .portal-menu-image-mark,
body[data-step="debate"] .app-header .portal-menu .portal-menu-image-mark {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 1px solid rgba(7, 84, 93, 0.12) !important;
  border-radius: 10px !important;
  padding: 2px !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.96), rgba(235, 248, 243, 0.7) 54%, rgba(255, 250, 240, 0.78)) !important;
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.08) !important;
}

.portal-menu .portal-menu-image,
body[data-step="debate"] .portal-menu .portal-menu-image,
body[data-step="debate"] .app-header .portal-menu .portal-menu-image {
  display: block !important;
  width: 46px !important;
  height: 46px !important;
  max-width: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 10px rgba(16, 42, 46, 0.1)) !important;
}

.portal-menu a:hover .portal-menu-image,
.portal-menu a:focus-visible .portal-menu-image,
.portal-menu button:hover .portal-menu-image,
.portal-menu button:focus-visible .portal-menu-image,
body[data-step="debate"] .portal-menu a:hover .portal-menu-image,
body[data-step="debate"] .portal-menu a:focus-visible .portal-menu-image,
body[data-step="debate"] .portal-menu button:hover .portal-menu-image,
body[data-step="debate"] .portal-menu button:focus-visible .portal-menu-image {
  filter: drop-shadow(0 10px 13px rgba(16, 42, 46, 0.13)) !important;
  transform: translateY(-1px) scale(1.03);
}

@media (max-width: 580px) {
  .portal-menu a,
  .portal-menu button,
  body[data-step="debate"] .portal-menu a,
  body[data-step="debate"] .portal-menu button,
  body[data-step="debate"] .app-header .portal-menu a,
  body[data-step="debate"] .app-header .portal-menu button {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 56px !important;
    padding: 8px 9px !important;
  }

  .portal-menu .portal-menu-image-mark,
  body[data-step="debate"] .portal-menu .portal-menu-image-mark,
  body[data-step="debate"] .app-header .portal-menu .portal-menu-image-mark {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .portal-menu .portal-menu-image,
  body[data-step="debate"] .portal-menu .portal-menu-image,
  body[data-step="debate"] .app-header .portal-menu .portal-menu-image {
    width: 44px !important;
  height: 44px !important;
  }
}

.portal-menu,
body[data-step="debate"] .portal-menu,
body[data-step="debate"] .app-header .portal-menu {
  max-height: min(720px, calc(100vh - 104px)) !important;
}

/* Result profile polish: detail buttons belong in the proof card, and expanded profiles use the full result row. */
body[data-step="results"] .result-summary-panel .winner-detail-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding-top: 2px !important;
}

body[data-step="results"] .result-summary-panel .winner-detail-actions .info-link,
body[data-step="results"] .result-summary-panel .winner-detail-actions .case-link {
  display: inline-grid !important;
  place-items: center !important;
  min-height: 36px !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  font-size: 0.72rem !important;
  font-weight: 780 !important;
}

body[data-step="results"] .result-summary-panel .winner-detail-actions .profile-toggle[aria-expanded="true"] {
  color: #fffaf0 !important;
  border-color: var(--dv-teal, var(--teal)) !important;
  background: var(--dv-teal, var(--teal)) !important;
  box-shadow: 0 8px 18px rgba(7, 84, 93, 0.16) !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
  grid-template-areas:
    "winner-photo"
    "winner-copy"
    "winner-profile"
    "winner-controls" !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
  grid-area: winner-profile !important;
  width: min(980px, 100%) !important;
  max-width: 100% !important;
  justify-self: center !important;
  margin: 0 !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) > .profile-drawer-winner {
  display: none !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open > .profile-drawer-winner {
  display: grid !important;
}

@media (min-width: 761px) and (max-width: 1239px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-profile winner-profile"
      "winner-controls winner-controls" !important;
  }
}

@media (min-width: 1240px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy winner-controls"
      "winner-profile winner-profile winner-profile" !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] .result-summary-panel .winner-detail-actions {
    order: 3;
    padding-top: 0 !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-title"
      "winner-photo"
      "winner-proof"
      "winner-profile"
      "winner-controls" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
    width: 100% !important;
  }
}

/* Profile row refinement: do not reserve space until the user opens Profile. */
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
  grid-template-areas:
    "winner-photo"
    "winner-copy"
    "winner-controls" !important;
}

@media (min-width: 761px) and (max-width: 1239px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-controls winner-controls" !important;
  }
}

@media (min-width: 1240px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas: "winner-photo winner-copy winner-controls" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy winner-controls"
      "winner-profile winner-profile winner-controls" !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-title"
      "winner-photo"
      "winner-proof"
      "winner-controls" !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] .result-summary-panel .winner-detail-actions {
    order: 0 !important;
  }
}

body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

/* Footer QA pass: one stable footer system across home, results, phone, tablet, and desktop. */
.site-footer,
body[data-step="debate"] .site-footer,
body[data-step="results"] .site-footer,
[data-stage="results"] .site-footer {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "footer-nav footer-base" !important;
  align-items: center !important;
  gap: 18px clamp(22px, 3vw, 40px) !important;
  width: min(1180px, calc(100vw - 48px)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: clamp(24px, 4vw, 44px) auto clamp(24px, 5vw, 54px) !important;
  border: 0 !important;
  border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
  border-radius: 0 !important;
  padding: 16px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer::before,
body[data-step="debate"] .site-footer::before,
body[data-step="results"] .site-footer::before,
[data-stage="results"] .site-footer::before {
  display: none !important;
}

.site-footer .footer-proof,
body[data-step="debate"] .site-footer .footer-proof,
body[data-step="results"] .site-footer .footer-proof,
[data-stage="results"] .site-footer .footer-proof {
  display: none !important;
}

.site-footer .footer-nav {
  grid-area: footer-nav !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-nav :is(button, a),
.site-footer .footer-nav :is(button, a):last-child {
  appearance: none !important;
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(7, 84, 93, 0.86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: Inter, Aptos, "Segoe UI", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.site-footer .footer-nav :is(button, a)::after,
.site-footer .footer-nav :is(button, a):last-child::after {
  display: none !important;
}

.site-footer .footer-nav :is(button, a):hover,
.site-footer .footer-nav :is(button, a):focus-visible {
  color: var(--dv-red, #b12a33) !important;
  background: transparent !important;
  transform: none !important;
}

.site-footer .footer-base {
  grid-area: footer-base !important;
  display: grid !important;
  grid-template-columns: auto auto auto !important;
  grid-template-areas: "footer-logo footer-flag footer-legal" !important;
  align-items: center !important;
  justify-content: end !important;
  justify-items: end !important;
  gap: 8px 12px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-logo {
  grid-area: footer-logo !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .footer-logo::before,
.site-footer .footer-logo::after {
  display: none !important;
}

.site-footer .footer-logo img {
  display: block !important;
  width: clamp(94px, 8.8vw, 124px) !important;
  max-width: 124px !important;
  height: auto !important;
  filter: none !important;
}

.site-footer .footer-flag {
  grid-area: footer-flag !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  color: rgba(16, 42, 46, 0.62) !important;
  font-size: 0.67rem !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.site-footer .footer-flag img {
  display: block !important;
  width: 24px !important;
  height: auto !important;
  border: 1px solid rgba(16, 42, 46, 0.1) !important;
  box-shadow: none !important;
}

.site-footer .footer-legal {
  grid-area: footer-legal !important;
  display: block !important;
  max-width: 30ch !important;
  margin: 0 !important;
  color: rgba(16, 42, 46, 0.5) !important;
  font-size: 0.61rem !important;
  font-weight: 500 !important;
  line-height: 1.22 !important;
  text-align: right !important;
}

@media (max-width: 860px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  body[data-step="results"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "footer-nav"
      "footer-base" !important;
    justify-items: center !important;
    gap: 14px !important;
    width: min(420px, calc(100vw - 28px)) !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    padding-top: 16px !important;
  }

  .site-footer .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: center !important;
    justify-items: stretch !important;
    justify-self: center !important;
    gap: 8px 14px !important;
    width: min(100%, 300px) !important;
  }

  .site-footer .footer-nav :is(button, a),
  .site-footer .footer-nav :is(button, a):last-child {
    width: 100% !important;
    justify-self: stretch !important;
    justify-content: center !important;
    min-height: 30px !important;
    white-space: nowrap !important;
  }

  .site-footer .footer-base {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "footer-logo"
      "footer-flag"
      "footer-legal" !important;
    justify-content: center !important;
    justify-items: center !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .site-footer .footer-logo img {
    width: 112px !important;
  }

  .site-footer .footer-logo,
  .site-footer .footer-flag {
    justify-self: center !important;
  }

  .site-footer .footer-legal {
    justify-self: center !important;
    max-width: 34ch !important;
    text-align: center !important;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-nav {
    width: min(100%, 286px) !important;
    gap: 6px 10px !important;
  }

  .site-footer .footer-nav :is(button, a),
  .site-footer .footer-nav :is(button, a):last-child {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] .stage-actions,
  body[data-step="results"] [data-stage="results"] .stage-actions {
    width: min(420px, calc(100vw - 28px)) !important;
    max-width: 100% !important;
    margin: 12px auto 14px !important;
  }
}

/* Journey clarity pass: make add, reorder, and reveal actions unmistakable. */
body[data-step="factors"] [data-stage="factors"] {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

.factor-journey-coach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(1240px, 100%);
  margin: 0 auto clamp(8px, 1vw, 12px);
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-radius: var(--dv-radius-md);
  padding: 9px 12px;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.07), rgba(255, 255, 255, 0.74), rgba(198, 162, 75, 0.1)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(16, 42, 46, 0.055);
}

.journey-coach-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "badge title"
    "badge note";
  column-gap: 8px;
  align-items: center;
  min-width: 0;
}

.journey-coach-step b {
  grid-area: badge;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: rgba(16, 42, 46, 0.68);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 850;
}

.journey-coach-step.is-active b {
  color: #ffffff;
  background: var(--dv-teal);
  box-shadow: 0 8px 18px rgba(7, 84, 93, 0.18);
}

.journey-coach-step strong {
  grid-area: title;
  overflow: hidden;
  color: var(--dv-ink);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-coach-step em {
  grid-area: note;
  overflow: hidden;
  color: rgba(16, 42, 46, 0.62);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 520;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-coach-arrow {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(7, 84, 93, 0.28);
  overflow: visible;
}

.journey-coach-arrow::before {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(7, 84, 93, 0.52);
  border-right: 2px solid rgba(7, 84, 93, 0.52);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.journey-coach-arrow::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--dv-gold);
  content: "";
  animation: journey-arrow-flow 1.8s ease-in-out infinite;
}

body[data-step="rank"] .order-instructions {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  align-items: center;
  gap: clamp(12px, 1.7vw, 20px) !important;
  padding: clamp(13px, 1.5vw, 18px) !important;
}

.order-instructions-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-motion-coach {
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 102px;
  border: 1px solid rgba(7, 84, 93, 0.13);
  border-radius: var(--dv-radius-md);
  padding: 11px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 242, 0.82)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.order-motion-coach::before {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 26px;
  height: 50px;
  border-right: 2px dashed rgba(7, 84, 93, 0.34);
  content: "";
  transform: translateY(-50%);
}

.coach-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-left: 4px solid var(--dv-teal);
  border-radius: var(--dv-radius-sm);
  padding: 5px 8px 5px 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(16, 42, 46, 0.08);
}

.coach-card b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dv-teal);
  font-size: 0.68rem;
  font-weight: 850;
}

.coach-card em {
  overflow: hidden;
  color: var(--dv-ink);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-card.is-first {
  border-left-color: var(--dv-gold);
}

.coach-card.is-first b {
  color: var(--dv-ink);
  background: var(--dv-gold);
}

.coach-card.is-moving {
  animation: coach-card-move-up 1.9s cubic-bezier(0.2, 0.82, 0.2, 1) infinite;
}

.coach-arrow {
  position: absolute;
  right: 7px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(177, 42, 51, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: var(--dv-red);
  font-size: 1.2rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(177, 42, 51, 0.2);
  animation: coach-arrow-pulse 1.9s ease-in-out infinite;
}

body[data-step="rank"] .tap-hint {
  min-height: 42px !important;
  border: 1px solid rgba(7, 84, 93, 0.16) !important;
  border-radius: var(--dv-radius-md) !important;
  padding: 0 14px !important;
  color: var(--dv-ink) !important;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.08), rgba(255, 255, 255, 0.9), rgba(177, 42, 51, 0.06)),
    #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 780 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 10px 26px rgba(16, 42, 46, 0.055);
}

body[data-step="rank"] .tap-hint::before {
  content: "";
  display: none;
  margin-right: 8px;
  color: var(--dv-red);
  font-size: 0.66rem;
  font-weight: 850;
}

body[data-step="rank"] .order-actions {
  grid-template-columns: repeat(2, minmax(70px, auto));
  gap: 8px;
}

body[data-step="rank"] .order-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  min-height: 38px;
  border-radius: var(--dv-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(16, 42, 46, 0.06);
}

body[data-step="rank"] .order-actions button:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent, var(--dv-teal)) 36%, rgba(16, 42, 46, 0.14));
}

body[data-step="rank"] .order-actions button:not(:disabled):hover,
body[data-step="rank"] .order-actions button:not(:disabled):focus-visible {
  background: var(--accent, var(--dv-teal));
}

.order-action-icon {
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1;
}

.order-action-label {
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.result-tune-step {
  font-size: 1rem !important;
  font-weight: 850 !important;
}

@keyframes journey-arrow-flow {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-18%);
  }
  48% {
    opacity: 1;
    transform: translateX(115%);
  }
}

@keyframes coach-card-move-up {
  0%,
  100% {
    transform: translateY(0);
  }
  38%,
  58% {
    transform: translateY(-43px);
  }
}

@keyframes coach-arrow-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  48% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-coach-arrow::after,
  .coach-card.is-moving,
  .coach-arrow {
    animation: none !important;
  }
}

@media (max-width: 940px) {
  body[data-step="rank"] .order-instructions {
    grid-template-columns: 1fr;
  }

  .order-motion-coach {
    grid-template-columns: 1fr 1fr;
    min-height: 78px;
  }

  .order-motion-coach::before,
  .coach-arrow {
    display: none;
  }

  .coach-card.is-moving {
    animation: coach-card-nudge-side 1.8s ease-in-out infinite;
  }

  @keyframes coach-card-nudge-side {
    0%,
    100% {
      transform: translateX(0);
    }
    48% {
      transform: translateX(-10px);
    }
  }
}

@media (max-width: 760px) {
  .factor-journey-coach {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
  }

  .journey-coach-arrow {
    display: none;
  }

  .journey-coach-step:not(.is-active) {
    opacity: 0.78;
  }

  body[data-step="rank"] .order-actions {
    grid-template-columns: repeat(2, 40px) !important;
  }

  body[data-step="rank"] .order-actions button {
    width: 40px !important;
    min-width: 40px !important;
  }

  .order-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  body[data-step="rank"] .tap-hint {
    display: grid;
    justify-items: start;
    min-height: 48px !important;
    padding: 8px 10px !important;
    line-height: 1.2 !important;
  }

  body[data-step="rank"] .tap-hint::before {
    margin-right: 0;
  }
}

/* Desktop refinement for the reorder coach: compact, attached, and readable. */
body[data-step="rank"] .order-motion-coach {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  justify-self: end;
  width: min(100%, 390px);
  min-height: 62px;
  gap: 8px;
}

body[data-step="rank"] .order-instructions {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
}

body[data-step="rank"] .order-motion-coach::before {
  display: none;
}

body[data-step="rank"] .coach-card.is-first {
  grid-column: 1;
  grid-row: 1;
}

body[data-step="rank"] .coach-card.is-moving {
  grid-column: 3;
  grid-row: 1;
  animation: coach-card-nudge-side 1.9s ease-in-out infinite;
}

body[data-step="rank"] .coach-arrow {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

@keyframes coach-card-nudge-side {
  0%,
  100% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(-10px);
  }
}

@media (max-width: 940px) {
  body[data-step="rank"] .order-motion-coach {
    justify-self: stretch;
    width: 100%;
    grid-template-columns: 1fr 1fr !important;
    min-height: 78px;
  }

  body[data-step="rank"] .coach-card.is-first,
  body[data-step="rank"] .coach-card.is-moving {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-step="rank"] .order-instructions {
    grid-template-columns: 1fr !important;
  }

  body[data-step="rank"] .coach-arrow {
    display: none !important;
  }
}

/* Final source-backed journey override: these rules must win over earlier responsive passes. */
body[data-step="factors"] .factor-journey-coach {
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) !important;
  max-width: min(1040px, calc(100% - 24px));
  padding: 7px 10px !important;
}

body[data-step="factors"] .journey-coach-step {
  grid-template-columns: 24px minmax(0, 1fr) !important;
}

body[data-step="factors"] .journey-coach-step b {
  width: 24px !important;
  height: 24px !important;
}

body[data-step="factors"] .journey-coach-step strong {
  font-size: 0.78rem !important;
}

body[data-step="factors"] .journey-coach-step em {
  font-size: 0.62rem !important;
}

body[data-step="factors"] .source-chip-row,
body[data-step="factors"] .source-chip,
body[data-step="rank"] .order-evidence:empty {
  display: none !important;
}

body[data-step="factors"] .factor-token .factor-copy p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body[data-step="rank"] [data-stage="rank"] .order-rank-layout {
  grid-template-columns: minmax(0, 920px) !important;
  justify-content: center !important;
}

body[data-step="rank"] [data-stage="rank"] .order-lane {
  width: 100% !important;
  max-height: min(62vh, 620px) !important;
}

body[data-step="rank"] .order-card {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  min-height: 84px !important;
  border: 0 !important;
  border-radius: var(--dv-radius-md) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-step="rank"] .order-card::before {
  position: absolute;
  inset: 0 0 0 56px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.14));
  border-left: 5px solid var(--accent, var(--dv-teal));
  border-radius: var(--dv-radius-sm);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 9%, transparent), rgba(255, 255, 255, 0.97)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(16, 42, 46, 0.08);
  content: "";
}

body[data-step="rank"] .order-card:first-child::before {
  border-color: rgba(198, 162, 75, 0.58);
  border-left-color: var(--dv-gold);
  background:
    linear-gradient(90deg, rgba(198, 162, 75, 0.16), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

body[data-step="rank"] .order-rank {
  grid-column: 1 !important;
  align-self: center !important;
  width: 36px !important;
  height: 36px !important;
  color: #ffffff !important;
  background: var(--accent, var(--dv-teal)) !important;
}

body[data-step="rank"] .order-card:first-child .order-rank {
  color: var(--dv-ink) !important;
  background: var(--dv-gold) !important;
}

body[data-step="rank"] .order-factor-shell {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 84px !important;
  padding: 10px 0 10px 16px !important;
}

body[data-step="rank"] .order-actions {
  grid-column: 3 !important;
  align-self: center !important;
  padding-right: 14px !important;
}

body[data-step="rank"] .order-copy span:not(.order-evidence) {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body[data-step="rank"] .order-shuffle-demo {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  grid-template-rows: repeat(2, 34px) !important;
  width: min(100%, 330px) !important;
  min-height: 86px !important;
  gap: 7px 10px !important;
  padding: 9px 11px !important;
  overflow: hidden !important;
}

body[data-step="rank"] .order-shuffle-demo::before,
body[data-step="rank"] .order-shuffle-demo .coach-arrow {
  display: none !important;
}

.shuffle-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dv-teal);
  font-size: 0.72rem;
  font-weight: 850;
}

.shuffle-rank.is-one {
  grid-column: 1;
  grid-row: 1;
  color: var(--dv-ink);
  background: var(--dv-gold);
}

.shuffle-rank.is-two {
  grid-column: 1;
  grid-row: 2;
}

.shuffle-factor {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 93, 0.12);
  border-left: 4px solid var(--dv-teal);
  border-radius: var(--dv-radius-sm);
  padding: 0 10px;
  color: var(--dv-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(16, 42, 46, 0.06);
  font-size: 0.68rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shuffle-factor.is-first {
  grid-column: 2;
  grid-row: 1;
  border-left-color: var(--dv-gold);
  animation: shuffle-factor-down 2.1s cubic-bezier(0.2, 0.82, 0.2, 1) infinite;
}

.shuffle-factor.is-second {
  grid-column: 2;
  grid-row: 2;
  animation: shuffle-factor-up 2.1s cubic-bezier(0.2, 0.82, 0.2, 1) infinite;
}

@keyframes shuffle-factor-down {
  0%,
  100% {
    transform: translateY(0);
  }
  42%,
  60% {
    transform: translateY(41px);
  }
}

@keyframes shuffle-factor-up {
  0%,
  100% {
    transform: translateY(0);
  }
  42%,
  60% {
    transform: translateY(-41px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shuffle-factor.is-first,
  .shuffle-factor.is-second {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  body[data-step="factors"] .factor-journey-coach {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body[data-step="factors"] .journey-coach-arrow {
    display: none !important;
  }

  body[data-step="rank"] .order-card {
    grid-template-columns: 34px minmax(0, 1fr) 88px !important;
    min-height: 72px !important;
    gap: 8px !important;
  }

  body[data-step="rank"] .order-card::before {
    inset: 0 0 0 44px !important;
  }

  body[data-step="rank"] .order-factor-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 64px !important;
    padding: 8px 0 8px 12px !important;
  }

  body[data-step="rank"] .order-copy span:not(.order-evidence) {
    display: none !important;
  }

  body[data-step="rank"] .order-art.measure-picture {
    display: none !important;
  }

  body[data-step="rank"] .order-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 40px) !important;
    gap: 8px !important;
    padding-right: 8px !important;
  }
}
/* Final creator-about modal overrides. Kept at the end so the large stylesheet cannot override the panel polish. */
.info-panel[data-active-info-view="about"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  align-items: start !important;
  justify-items: center !important;
  padding: 92px clamp(12px, 2vw, 24px) 16px !important;
}

.info-panel[data-active-info-view="about"] .info-card {
  max-height: calc(100vh - 110px) !important;
}

.info-panel[data-active-info-view="about"] .about-founder-copy h2 {
  max-width: 13ch !important;
  margin: 0 0 16px !important;
  font-size: clamp(2.7rem, 5.4vw, 5.7rem) !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 520px) {
  .info-panel[data-active-info-view="about"] {
    padding: 76px 8px 8px !important;
  }

  .info-panel[data-active-info-view="about"] .info-card {
    max-height: calc(100vh - 84px) !important;
  }

  .info-panel[data-active-info-view="about"] .about-founder-copy h2 {
    max-width: 12ch !important;
    margin-bottom: 12px !important;
    font-size: clamp(1.95rem, 10.5vw, 3rem) !important;
  }
}

/* Final rank-order polish: fixed slots, moving cards, cleaner arrow controls. */
body[data-step="rank"] .order-shuffle-demo {
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, 34px) !important;
  width: min(100%, 360px) !important;
  min-height: 132px !important;
  gap: 8px 10px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(236, 247, 246, 0.94), rgba(255, 255, 255, 0.9)),
    #ffffff !important;
}

body[data-step="rank"] .shuffle-rank {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
}

body[data-step="rank"] .shuffle-rank.is-one {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body[data-step="rank"] .shuffle-rank.is-two {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

body[data-step="rank"] .shuffle-rank.is-three {
  grid-column: 1 !important;
  grid-row: 3 !important;
  background: var(--dv-red) !important;
}

body[data-step="rank"] .shuffle-factor {
  position: relative !important;
  top: 0;
  grid-column: 2 !important;
  min-height: 34px !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  will-change: top;
}

body[data-step="rank"] .shuffle-factor.is-first {
  grid-row: 1 !important;
  border-left-color: var(--dv-gold) !important;
  animation: shuffle-card-one-top 5.4s cubic-bezier(0.2, 0.82, 0.2, 1) infinite !important;
}

body[data-step="rank"] .shuffle-factor.is-second {
  grid-row: 2 !important;
  border-left-color: var(--dv-teal) !important;
  animation: shuffle-card-two-top 5.4s cubic-bezier(0.2, 0.82, 0.2, 1) infinite !important;
}

body[data-step="rank"] .shuffle-factor.is-third {
  grid-row: 3 !important;
  border-left-color: var(--dv-red) !important;
  animation: shuffle-card-three-top 5.4s cubic-bezier(0.2, 0.82, 0.2, 1) infinite !important;
}

body[data-step="rank"] .order-actions {
  grid-template-columns: repeat(2, 44px) !important;
  gap: 8px !important;
}

body[data-step="rank"] .order-actions button {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 38%, rgba(16, 42, 46, 0.16)) !important;
  border-radius: 8px !important;
  padding: 0 !important;
  color: var(--accent, var(--dv-teal)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent, var(--dv-teal)) 7%, #ffffff)),
    #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(16, 42, 46, 0.08) !important;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease !important;
}

body[data-step="rank"] .order-actions button:not(:disabled):hover,
body[data-step="rank"] .order-actions button:not(:disabled):focus-visible {
  color: #ffffff !important;
  background: var(--accent, var(--dv-teal)) !important;
  box-shadow: 0 12px 22px rgba(16, 42, 46, 0.16) !important;
  transform: translateY(-1px) !important;
}

body[data-step="rank"] .order-actions button:disabled {
  border-color: rgba(16, 42, 46, 0.11) !important;
  color: rgba(16, 42, 46, 0.22) !important;
  background: rgba(255, 255, 255, 0.54) !important;
  box-shadow: none !important;
}

body[data-step="rank"] .order-action-icon {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

body[data-step="rank"] .order-action-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@keyframes shuffle-card-one-top {
  0%,
  14% {
    top: 0;
  }
  25%,
  39% {
    top: 42px;
  }
  50%,
  64% {
    top: 84px;
  }
  78%,
  100% {
    top: 0;
  }
}

@keyframes shuffle-card-two-top {
  0%,
  14% {
    top: 0;
  }
  25%,
  39% {
    top: -42px;
  }
  50%,
  64% {
    top: -42px;
  }
  78%,
  100% {
    top: 0;
  }
}

@keyframes shuffle-card-three-top {
  0%,
  39% {
    top: 0;
  }
  50%,
  64% {
    top: -42px;
  }
  78%,
  100% {
    top: 0;
  }
}

@media (max-width: 760px) {
  body[data-step="rank"] .order-shuffle-demo {
    grid-template-rows: repeat(3, 32px) !important;
    min-height: 124px !important;
  }

  body[data-step="rank"] .shuffle-factor {
    min-height: 32px !important;
    font-size: 0.66rem !important;
  }

  body[data-step="rank"] .order-actions {
    grid-template-columns: repeat(2, 40px) !important;
    gap: 7px !important;
  }

  body[data-step="rank"] .order-actions button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* Final stepper polish: make the board journey feel like a premium product control. */
.factor-journey-coach {
  position: relative !important;
  isolation: isolate !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1.4vw, 14px) !important;
  width: min(1140px, calc(100% - 12px)) !important;
  margin: 0 auto clamp(12px, 1.8vw, 18px) !important;
  border: 1px solid rgba(7, 84, 93, 0.14) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 246, 0.88) 42%, rgba(255, 250, 240, 0.94)),
    #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(16, 42, 46, 0.1) !important;
}

.factor-journey-coach::before {
  position: absolute;
  top: 50%;
  left: 11%;
  right: 11%;
  z-index: -1;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(7, 84, 93, 0.34), rgba(198, 162, 75, 0.42), rgba(177, 42, 51, 0.32));
  content: "";
  transform: translateY(-50%);
}

.factor-journey-coach::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(7, 84, 93, 0.11), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(198, 162, 75, 0.14), transparent 28%);
  content: "";
  pointer-events: none;
}

.journey-coach-step {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-areas:
    "badge title"
    "badge note" !important;
  column-gap: 10px !important;
  align-items: center !important;
  min-height: 58px !important;
  border: 1px solid rgba(16, 42, 46, 0.08) !important;
  border-radius: 7px !important;
  padding: 9px 12px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 249, 0.9)),
    #ffffff !important;
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.065) !important;
}

.journey-coach-step::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(7, 84, 93, 0.16);
  content: "";
}

.journey-coach-step.is-active {
  border-color: rgba(7, 84, 93, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(238, 249, 247, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(7, 84, 93, 0.13) !important;
}

.journey-coach-step.is-active::after {
  background: linear-gradient(90deg, var(--dv-red), var(--dv-teal)) !important;
}

.journey-coach-step b {
  grid-area: badge !important;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), transparent 32%),
    var(--dv-teal) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 18px rgba(7, 84, 93, 0.17) !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
}

.journey-coach-step:nth-of-type(3) b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 32%),
    var(--dv-gold) !important;
}

.journey-coach-step:nth-of-type(5) b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 32%),
    var(--dv-red) !important;
}

.journey-coach-step strong {
  grid-area: title !important;
  color: var(--dv-ink) !important;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.journey-coach-step em {
  grid-area: note !important;
  margin-top: 2px !important;
  color: rgba(16, 42, 46, 0.62) !important;
  font-size: 0.67rem !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

.journey-coach-arrow {
  display: none !important;
}

body[data-step="rank"] .factor-journey-coach .journey-coach-step:nth-of-type(1),
body[data-step="results"] .factor-journey-coach .journey-coach-step:nth-of-type(1) {
  border-color: rgba(7, 84, 93, 0.18) !important;
}

body[data-step="rank"] .factor-journey-coach .journey-coach-step:nth-of-type(1)::after,
body[data-step="results"] .factor-journey-coach .journey-coach-step:nth-of-type(1)::after {
  background: var(--dv-teal) !important;
}

body[data-step="rank"] .factor-journey-coach .journey-coach-step:nth-of-type(3),
body[data-step="results"] .factor-journey-coach .journey-coach-step:nth-of-type(3) {
  border-color: rgba(198, 162, 75, 0.32) !important;
}

body[data-step="rank"] .factor-journey-coach .journey-coach-step:nth-of-type(3)::after,
body[data-step="results"] .factor-journey-coach .journey-coach-step:nth-of-type(3)::after {
  background: var(--dv-gold) !important;
}

body[data-step="results"] .factor-journey-coach .journey-coach-step:nth-of-type(5) {
  border-color: rgba(177, 42, 51, 0.32) !important;
}

body[data-step="results"] .factor-journey-coach .journey-coach-step:nth-of-type(5)::after {
  background: var(--dv-red) !important;
}

@media (max-width: 760px) {
  .factor-journey-coach {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: min(100%, calc(100vw - 18px)) !important;
    padding: 6px !important;
  }

  .factor-journey-coach::before {
    left: 16%;
    right: 16%;
  }

  .journey-coach-step {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badge"
      "title"
      "note" !important;
    justify-items: center !important;
    min-height: 84px !important;
    row-gap: 4px !important;
    padding: 8px 6px !important;
    text-align: center !important;
  }

  .journey-coach-step b {
    width: 30px !important;
    height: 30px !important;
  }

  .journey-coach-step strong {
    max-width: 100% !important;
    font-size: 0.74rem !important;
  }

  .journey-coach-step em {
    max-width: 100% !important;
    font-size: 0.58rem !important;
  }
}

/* Rap factor-screen cleanup: the main progress rail already shows the three steps. */
body[data-step="factors"] [data-stage="factors"] {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

body[data-category="rap"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
body[data-category="rapper"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
  background-color: #e6eeea !important;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.72) 34%, rgba(255, 250, 240, 0.16) 78%),
    var(--dv-board-photo) !important;
  background-position: center, 58% center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, cover !important;
}

@media (max-width: 700px) {
  body[data-category="rap"][data-step="factors"] [data-stage="factors"] .stage-copy::before,
  body[data-category="rapper"][data-step="factors"] [data-stage="factors"] .stage-copy::before {
    background-image:
      linear-gradient(180deg, rgba(255, 250, 240, 0.02), rgba(7, 84, 93, 0.1)),
      var(--dv-board-photo) !important;
    background-position: center, center !important;
    background-size: 100% 100%, cover !important;
  }

  body[data-step="factors"] .factor-token {
    grid-template-columns: minmax(0, 1fr) minmax(52px, max-content) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
  }

  body[data-step="factors"] .factor-token .factor-icon {
    display: none !important;
  }

  body[data-step="factors"] .factor-token .factor-copy h3 {
    padding-right: 0 !important;
  }

  body[data-step="factors"] .factor-token .mini-action {
    position: static !important;
    align-self: center !important;
    justify-self: end !important;
    display: grid !important;
    place-items: center !important;
    min-width: 52px !important;
    min-height: 40px !important;
    border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.12)) !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    color: var(--accent, var(--dv-teal)) !important;
    background: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    text-transform: none !important;
  }

  body[data-step="factors"] [data-stage="factors"].stage.is-active,
  body[data-step="factors"] .stage.is-active {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding-inline: 14px !important;
  }

  body[data-step="factors"] .factor-board,
  body[data-step="factors"] .factor-zone,
  body[data-step="factors"] .factor-rack {
    width: 100% !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-step="factors"] .factor-zone {
    overflow: hidden !important;
  }

  body[data-step="factors"] [data-stage="factors"] .factor-board {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    padding: 10px !important;
  }

  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"] .mini-action {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 34px !important;
    padding-inline: 10px !important;
  }
}

/* Core slots are the required three choices, so match the blue Choose step instead of warning red. */
body[data-step="factors"] .factor-drop-slot.is-core-slot {
  border-color: color-mix(in srgb, var(--dv-teal, var(--teal)) 34%, rgba(7, 84, 93, 0.12)) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--dv-teal, var(--teal)) 5%, #ffffff), rgba(255, 255, 255, 0.88)),
    #ffffff !important;
}

body[data-step="factors"] .factor-drop-slot.is-core-slot .slot-dot {
  border-color: rgba(255, 255, 255, 0.68) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), transparent 32%),
    var(--dv-teal, var(--teal)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 18px rgba(7, 84, 93, 0.17) !important;
}

body[data-step="factors"] .factor-journey-coach {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1.4vw, 14px) !important;
  width: min(1140px, calc(100% - 12px)) !important;
  max-width: min(1140px, calc(100% - 12px)) !important;
  min-height: 74px !important;
  padding: 8px !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-arrow {
  display: none !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step:nth-of-type(1) {
  grid-column: 1 !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step:nth-of-type(3) {
  grid-column: 2 !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step:nth-of-type(5) {
  grid-column: 3 !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  min-height: 58px !important;
  padding: 9px 12px !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step b {
  width: 34px !important;
  height: 34px !important;
  font-size: 0.78rem !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step strong {
  font-size: clamp(0.82rem, 1.05vw, 0.98rem) !important;
}

body[data-step="factors"] .factor-journey-coach .journey-coach-step em {
  font-size: 0.67rem !important;
}

@media (max-width: 760px) {
  body[data-step="factors"] .factor-journey-coach {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(100%, calc(100vw - 18px)) !important;
    min-height: 0 !important;
    padding: 6px !important;
  }

  body[data-step="factors"] .factor-journey-coach .journey-coach-step {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badge"
      "title"
      "note" !important;
    justify-items: center !important;
    min-height: 84px !important;
    row-gap: 4px !important;
    padding: 8px 6px !important;
  }

  body[data-step="factors"] .factor-journey-coach .journey-coach-step b {
    width: 30px !important;
    height: 30px !important;
  }

  body[data-step="factors"] .factor-journey-coach .journey-coach-step strong {
    font-size: 0.74rem !important;
  }

  body[data-step="factors"] .factor-journey-coach .journey-coach-step em {
    font-size: 0.58rem !important;
  }
}

/* Final live QA pass: simpler transitions, fixed rank slots, image fallback, and tighter results. */
.transition-track,
.transition-step-label {
  display: none !important;
}

.transition-card {
  width: min(300px, calc(100vw - 44px)) !important;
  gap: 10px !important;
}

#transitionText {
  font-size: 0.88rem !important;
  letter-spacing: 0.06em !important;
}

.transition-subtext {
  max-width: 24ch !important;
  font-size: 0.74rem !important;
  line-height: 1.28 !important;
}

html[data-startup-transition="board"] body:not(.is-transitioning)::after {
  content: "Opening board" !important;
}

body[data-step="rank"] .order-workbench > .tap-hint {
  display: none !important;
}

body[data-step="rank"] .order-demo-shell {
  display: grid !important;
  justify-self: end !important;
  width: min(100%, 382px) !important;
  gap: 6px !important;
}

body[data-step="rank"] .order-demo-label {
  margin: 0 !important;
  color: rgba(16, 42, 46, 0.68) !important;
  font-size: 0.68rem !important;
  font-weight: 780 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.1 !important;
  text-align: left !important;
  text-transform: uppercase !important;
}

body[data-step="rank"] .order-demo-shell .order-shuffle-demo {
  width: 100% !important;
}

body[data-step="rank"] .order-card.is-pointer-placeholder {
  opacity: 1 !important;
  transform: none !important;
}

body[data-step="rank"] .order-card.is-pointer-placeholder > * {
  visibility: visible !important;
}

body[data-step="rank"] .order-card.is-pointer-placeholder .order-factor-shell {
  visibility: hidden !important;
}

body[data-step="rank"] .order-card.is-pointer-placeholder .order-rank {
  visibility: visible !important;
  opacity: 0.72 !important;
}

body[data-step="rank"] .order-card.is-pointer-placeholder .order-actions {
  visibility: visible !important;
  opacity: 0.34 !important;
  pointer-events: none !important;
}

.order-drag-ghost.order-factor-ghost {
  display: grid !important;
  align-items: center !important;
  border: 1px solid color-mix(in srgb, var(--accent, var(--dv-teal)) 34%, rgba(16, 42, 46, 0.14)) !important;
  border-left: 5px solid var(--accent, var(--dv-teal)) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--dv-teal)) 9%, transparent), rgba(255, 255, 255, 0.98)),
    #ffffff !important;
}

.order-drag-ghost.order-factor-ghost .order-factor-shell {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 100% !important;
  padding: 10px 14px !important;
}

.order-drag-ghost.order-factor-ghost .order-copy span:not(.order-evidence) {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body .photo-token.has-generated-item-visual {
  background-color: #f4faf8 !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, contain !important;
}

body .photo-token.has-generated-item-visual > span {
  opacity: 0 !important;
}

body[data-step="results"] .winner-copy,
body[data-step="results"] .winner-main,
body[data-step="results"] .winner-proof,
body[data-step="results"] .result-summary-panel {
  justify-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-step="results"] .winner-media-panel {
  min-width: 0 !important;
}

@media (min-width: 901px) and (max-width: 1180px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-columns: minmax(330px, 400px) minmax(360px, 1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-controls winner-controls" !important;
    width: min(980px, calc(100vw - 32px)) !important;
    min-height: 0 !important;
    align-items: start !important;
    gap: clamp(16px, 2.4vw, 24px) !important;
    padding: clamp(18px, 2.2vw, 24px) !important;
  }

  body[data-step="results"] .result-tuner {
    border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
    border-left: 0 !important;
    padding-top: clamp(16px, 2.4vw, 24px) !important;
    padding-left: 0 !important;
  }
}

@media (min-width: 1181px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-columns: minmax(360px, 440px) minmax(360px, 1fr) minmax(280px, 320px) !important;
    grid-template-areas: "winner-photo winner-copy winner-controls" !important;
    width: min(1180px, calc(100vw - 48px)) !important;
    min-height: 0 !important;
    align-items: start !important;
    gap: clamp(20px, 2.4vw, 30px) !important;
  }
}

@media (max-width: 940px) {
  body[data-step="rank"] .order-demo-shell {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Phone viewport guard: keep shared choose/rank controls inside the screen edge. */
@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body[data-step="factors"] [data-stage="factors"].stage.is-active,
  body[data-step="factors"] .stage.is-active {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: clamp(10px, 3.6vw, 14px) !important;
  }

  body[data-step="factors"] .factor-board,
  body[data-step="factors"] [data-stage="factors"] .factor-board,
  body[data-step="factors"] .factor-zone,
  body[data-step="factors"] .factor-rack,
  body[data-step="factors"] .factor-progress,
  body[data-step="rank"] .order-rank-layout,
  body[data-step="rank"] .order-lane,
  body[data-step="rank"] .order-demo-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-step="factors"] .factor-token,
  body[data-step="factors"] [data-stage="factors"] .bench-zone .factor-token[data-source="available"],
  body[data-step="factors"] .selected-rack .factor-token[data-source="selected"],
  body[data-step="rank"] .order-card,
  body[data-step="rank"] .order-factor-shell {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body[data-step="factors"] .factor-token .factor-copy,
  body[data-step="rank"] .order-copy {
    min-width: 0 !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-step="results"] .winner-media-title,
  body[data-step="results"] .winner-identity {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-step="results"] .winner-media-panel,
  body[data-step="results"] .winner-copy,
  body[data-step="results"] .winner-main,
  body[data-step="results"] .winner-proof,
  body[data-step="results"] .winner-media-panel .winner-medal,
  body[data-step="results"] .winner-share-card,
  body[data-step="results"] .result-summary-panel,
  body[data-step="results"] .result-tuner {
    width: min(100%, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-self: start !important;
  }

  body[data-step="results"] .winner-media-title h2,
  body[data-step="results"] .winner-name {
    width: auto !important;
    inline-size: min(100%, 10.8ch) !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important;
    white-space: normal !important;
    word-break: normal !important;
    font-size: clamp(1.8rem, 7.2vw, 2.35rem) !important;
    line-height: 1.03 !important;
  }
}

/* Featured-board carousel polish: taller cards and board-promo art that is not face-cropped. */
body[data-step="debate"] .home-spotlight-section {
  width: min(1180px, calc(100% - 32px)) !important;
}

body[data-step="debate"] .home-spotlight-stage {
  height: clamp(450px, 44vw, 560px) !important;
}

body[data-step="debate"] .home-spotlight-card,
body[data-step="debate"] .home-spotlight-card.is-active {
  grid-template-rows: minmax(285px, 1.34fr) auto !important;
  width: min(780px, 82vw) !important;
  height: clamp(392px, 39vw, 506px) !important;
}

body[data-step="debate"] .home-spotlight-media {
  min-height: clamp(270px, 27vw, 365px) !important;
  background:
    radial-gradient(circle at 72% 22%, rgba(198, 162, 75, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(7, 84, 93, 0.92), rgba(16, 42, 46, 0.72)) !important;
}

body[data-step="debate"] .home-spotlight-media > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  filter: saturate(1.04) contrast(1.02) !important;
}

body[data-step="debate"] .home-spotlight-card.is-active .home-spotlight-media > img {
  animation: none !important;
}

body[data-step="debate"] .home-spotlight-card[data-home-spotlight-id="nba"] .home-spotlight-media > img,
body[data-step="debate"] .home-spotlight-card[data-home-spotlight-id="mortgage"] .home-spotlight-media > img {
  object-position: center center !important;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) {
  opacity: max(var(--spotlight-opacity, 0.42), 0.5) !important;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) {
  grid-template-rows: minmax(0, 1fr) !important;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-media {
  min-height: 100% !important;
}

body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-title,
body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-board-mark,
body[data-step="debate"] .home-spotlight-card:not(.is-active) .home-spotlight-copy {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-step="debate"] .home-spotlight-stage {
    height: 420px !important;
  }

  body[data-step="debate"] .home-spotlight-card,
  body[data-step="debate"] .home-spotlight-card.is-active {
    grid-template-rows: minmax(210px, 1fr) auto !important;
    width: min(91vw, 430px) !important;
    height: 366px !important;
  }

  body[data-step="debate"] .home-spotlight-media {
    min-height: 210px !important;
  }

  body[data-step="debate"] .home-spotlight-board-mark {
    right: 58px !important;
    bottom: 16px !important;
    max-width: 98px !important;
  }

  body[data-step="debate"] .home-spotlight-board-mark b {
    font-size: 0.62rem !important;
  }

  body[data-step="debate"] .home-spotlight-board-mark i {
    font-size: 0.68rem !important;
  }
}

/* Launch quality: answer first, media second, live formula third. */
@media (min-width: 901px) and (max-width: 1059px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.72fr) !important;
    grid-template-areas:
      "winner-copy winner-photo"
      "winner-controls winner-controls" !important;
    align-items: start !important;
  }
}

@media (min-width: 1060px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-columns:
      minmax(330px, 0.95fr)
      minmax(240px, 0.74fr)
      minmax(260px, 0.58fr) !important;
    grid-template-areas: "winner-copy winner-photo winner-controls" !important;
    align-items: stretch !important;
  }
}

body[data-step="results"] .winner-copy {
  grid-area: winner-copy !important;
}

body[data-step="results"] .winner-medal,
body[data-step="results"] .winner-media-panel {
  grid-area: winner-photo !important;
}

body[data-step="results"] .result-tuner {
  grid-area: winner-controls !important;
}

/* Missing media guard: no stranded titles or broken blank hero layouts. */
@media (min-width: 901px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
    grid-template-columns: minmax(420px, 1fr) minmax(280px, 0.58fr) !important;
    grid-template-areas: "winner-copy winner-controls" !important;
    min-height: auto !important;
  }
}

body[data-step="results"] .winner-spotlight.has-unavailable-winner-photo .winner-medal.photo-unavailable,
body[data-step="results"] .winner-spotlight.has-unavailable-winner-photo .winner-media-panel {
  display: none !important;
}

body[data-step="results"] .winner-spotlight.has-unavailable-winner-photo .winner-copy {
  align-self: start !important;
}

@media (max-width: 760px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "winner-copy"
      "winner-controls" !important;
  }
}

/* Journey readability: make step numbers visible enough to carry the component. */
body:not([data-step="debate"]) .decision-journey .journey-step span {
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step strong {
  font-size: 0.92rem !important;
}

body:not([data-step="debate"]) .decision-journey .journey-step {
  gap: 4px !important;
}

/* Feedback row: keep prompt and action visually connected with tappable controls. */
body[data-step="results"] .feedback-cta {
  display: inline-flex !important;
  width: auto !important;
  max-width: min(100%, 740px) !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 14px 16px !important;
}

body[data-step="results"] .feedback-cta button {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 0 10px !important;
}

.site-footer .footer-nav button {
  min-height: 36px !important;
  padding: 6px 10px !important;
}

.site-footer .footer-nav button:last-child {
  min-height: 36px !important;
  padding: 6px 13px !important;
}

@media (max-width: 620px) {
  body[data-step="results"] .feedback-cta {
    display: grid !important;
    width: 100% !important;
    gap: 10px !important;
  }
}

/* Unified result layout: same structure across boards, with controls as a real panel. */
body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "winner-copy"
    "winner-photo"
    "winner-controls"
    "winner-profile" !important;
  align-items: start !important;
  width: min(1120px, calc(100vw - 32px)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: clamp(16px, 2.4vw, 28px) !important;
  padding: clamp(14px, 2vw, 24px) !important;
  overflow: visible !important;
}

body[data-step="results"] .winner-copy {
  grid-area: winner-copy !important;
}

body[data-step="results"] .winner-media-panel,
body[data-step="results"] .winner-spotlight > .winner-medal {
  grid-area: winner-photo !important;
}

body[data-step="results"] .result-tuner {
  grid-area: winner-controls !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
  grid-area: winner-profile !important;
  width: 100% !important;
  max-width: 100% !important;
}

body[data-step="results"] .winner-media-panel,
body[data-step="results"] .winner-copy,
body[data-step="results"] .winner-main,
body[data-step="results"] .winner-proof,
body[data-step="results"] .result-summary-panel,
body[data-step="results"] .result-tuner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body[data-step="results"] .winner-media-panel {
  align-self: start !important;
  justify-self: stretch !important;
  gap: 12px !important;
}

body[data-step="results"] .winner-media-panel .winner-medal,
body[data-step="results"] .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
body[data-step="results"] .winner-medal:not(.has-photo) {
  width: min(100%, 420px) !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1.28 / 1 !important;
  justify-self: center !important;
  border-radius: 18px !important;
}

body[data-step="results"] .winner-media-title h2,
body[data-step="results"] .winner-name {
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

body[data-step="results"] .result-tuner {
  display: grid !important;
  gap: 14px !important;
  border-top: 1px solid rgba(16, 42, 46, 0.12) !important;
  border-left: 0 !important;
  padding-top: 18px !important;
  padding-left: 0 !important;
}

body[data-step="results"] .result-tuner-head {
  display: grid !important;
  max-width: 720px !important;
  gap: 4px !important;
}

body[data-step="results"] .result-tuner-grid,
body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body[data-step="results"] .result-tune-card,
body[data-step="results"] .result-tuner.is-many .result-tune-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
  align-items: stretch !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 108px !important;
  height: auto !important;
  padding: 12px !important;
  overflow: visible !important;
}

body[data-step="results"] .result-tune-copy,
body[data-step="results"] .result-tuner.is-many .result-tune-copy {
  min-width: 0 !important;
  text-align: left !important;
}

body[data-step="results"] .result-tune-copy strong,
body[data-step="results"] .result-tuner.is-many .result-tune-copy strong {
  display: block !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  font-size: 0.9rem !important;
  line-height: 1.15 !important;
}

body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-control {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 48px !important;
}

body[data-step="results"] .result-tune-step {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  font-size: 1.35rem !important;
}

body[data-step="results"] .result-tune-meter {
  min-width: 0 !important;
  height: 48px !important;
}

body[data-step="results"] .result-tuner-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

body[data-step="results"] .result-tuner-reset,
body[data-step="results"] .result-tuner-refine {
  min-height: 48px !important;
  white-space: nowrap !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "winner-copy"
    "winner-controls"
    "winner-profile" !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) !important;
    grid-template-areas:
      "winner-copy winner-photo"
      "winner-controls winner-controls"
      "winner-profile winner-profile" !important;
    width: min(1120px, calc(100vw - 36px)) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-copy"
      "winner-controls"
      "winner-profile" !important;
  }
}

/* Final real-photo framing: approved photos fill their frames without letterbox bands. */
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo:not(.has-ai-model-visual):not(.has-generated-item-visual),
body[data-step="results"] .winner-medal.photo-token.has-photo:not(.has-ai-model-visual):not(.has-generated-item-visual),
body .photo-token.has-photo:not(.has-ai-model-visual):not(.has-generated-item-visual) {
  background-size: 100% 100%, cover !important;
  background-position: center, var(--photo-position, 50% 34%) !important;
  background-repeat: no-repeat !important;
}

body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo:is(
  [data-photo-context="qb"],
  [data-photo-context="nfl-quarterback"],
  [data-photo-context="nba"],
  [data-photo-context="nba-player"],
  [data-photo-context="rap"],
  [data-photo-context="rapper"],
  [data-photo-context="singer"],
  [data-photo-context="band-artist"],
  [data-photo-context="soccer"],
  [data-photo-context="tennis"],
  [data-photo-context="golf"],
  [data-photo-context="boxing"],
  [data-photo-context="presidents"],
  [data-photo-context="u-s-presidents"],
  [data-photo-context="demleaders"],
  [data-photo-context="gopleaders"],
  [data-photo-context="gavin-newsom-vs-kamala-harris"],
  [data-photo-context="jd-vance-vs-marco-rubio"]
) {
  aspect-ratio: 4 / 5 !important;
  background-size: 100% 100%, cover !important;
  background-position: center, var(--photo-position, 50% 32%) !important;
}

@media (max-width: 620px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
    width: min(100%, calc(100vw - 20px)) !important;
    padding: 12px !important;
  }

body[data-step="results"] .result-tune-card,
body[data-step="results"] .result-tuner.is-many .result-tune-card {
    min-height: 100px !important;
  }
}

/* Final result identity layout: winner/photo/field context left, written result right. */
body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "winner-photo"
    "winner-copy"
    "winner-profile"
    "winner-controls" !important;
  align-items: start !important;
  gap: clamp(16px, 2.4vw, 28px) !important;
}

body[data-step="results"] .winner-media-panel,
body[data-step="results"] .winner-media-panel.winner-media-panel-ai {
  display: grid !important;
  grid-area: winner-photo !important;
  align-content: start !important;
  gap: 13px !important;
  min-width: 0 !important;
  width: 100% !important;
}

body[data-step="results"] .winner-media-title {
  display: grid !important;
  gap: 4px !important;
  width: min(100%, 420px) !important;
  justify-self: center !important;
}

body[data-step="results"] .winner-media-title h2 {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: clamp(2.35rem, 5vw, 4.2rem) !important;
  font-weight: 760 !important;
  line-height: 0.94 !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance !important;
}

body[data-step="results"] .winner-media-title.is-long-title h2 {
  font-size: clamp(1.9rem, 3.35vw, 3.15rem) !important;
  line-height: 1 !important;
  overflow-wrap: normal !important;
}

body[data-step="results"] .winner-media-title.is-extra-long-title h2 {
  font-size: clamp(1.55rem, 2.75vw, 2.65rem) !important;
  line-height: 1.04 !important;
  overflow-wrap: anywhere !important;
}

body[data-step="results"] .winner-media-panel .winner-medal,
body[data-step="results"] .winner-media-panel .ai-model-hero-visual {
  width: min(100%, 420px) !important;
  max-width: 100% !important;
  justify-self: center !important;
}

body[data-step="results"] .winner-media-panel .result-field-note {
  width: min(100%, 420px) !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-self: center !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 241, 0.74)),
    #ffffff !important;
}

body[data-step="results"] .winner-copy {
  grid-area: winner-copy !important;
  align-self: stretch !important;
}

body[data-step="results"] .winner-main {
  display: grid !important;
  height: 100% !important;
}

body[data-step="results"] .winner-identity:empty {
  display: none !important;
}

body[data-step="results"] .winner-proof {
  align-content: start !important;
}

body[data-step="results"] .result-summary-panel {
  width: 100% !important;
  margin-top: 0 !important;
}

body[data-step="results"] .result-tuner {
  grid-area: winner-controls !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
  grid-area: winner-profile !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "winner-copy"
    "winner-profile"
    "winner-controls" !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-profile winner-profile"
      "winner-controls winner-controls" !important;
    width: min(1120px, calc(100vw - 36px)) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-copy"
      "winner-profile"
      "winner-controls" !important;
  }
}

/* Final result tuck: keep the photo/name on the left and tuck the dials beside it. */
body[data-step="results"] .result-tuner {
  gap: 10px !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
}

body[data-step="results"] .result-tuner-head {
  max-width: 100% !important;
}

body[data-step="results"] .result-tuner-grid,
body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(172px, 100%), 1fr)) !important;
  gap: 8px !important;
}

body[data-step="results"] .result-tune-card,
body[data-step="results"] .result-tuner.is-many .result-tune-card {
  min-height: 98px !important;
  height: 100% !important;
  gap: 8px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  padding: 11px !important;
  outline: 0 !important;
  outline-offset: 0 !important;
}

body[data-step="results"] .result-tune-card.is-tuning,
body[data-step="results"] .result-radar-control.is-tuning .result-radar-main {
  outline: 0 !important;
  outline-offset: 0 !important;
}

body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-control {
  grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  gap: 7px !important;
  min-height: 42px !important;
}

body[data-step="results"] .result-tune-step {
  width: 40px !important;
  min-width: 40px !important;
  height: 42px !important;
  min-height: 42px !important;
}

body[data-step="results"] .result-tune-meter {
  height: 42px !important;
}

body[data-step="results"] .result-tuner-actions {
  gap: 10px !important;
}

body[data-step="results"] .result-tuner-reset,
body[data-step="results"] .result-tuner-refine {
  min-height: 44px !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) > .profile-drawer-winner {
  display: none !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-photo winner-controls" !important;
    align-items: stretch !important;
    gap: clamp(14px, 2vw, 22px) !important;
    width: min(1120px, calc(100vw - 36px)) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-profile winner-profile"
      "winner-controls winner-controls" !important;
    align-items: start !important;
    gap: clamp(16px, 2.4vw, 28px) !important;
    width: min(1120px, calc(100vw - 36px)) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-media-panel {
    align-self: stretch !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-media-panel .winner-medal {
    height: 100% !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-copy,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-main,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-proof {
    align-self: start !important;
    align-content: start !important;
    height: auto !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .result-tuner {
    align-self: end !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:has(.result-tuner.is-many) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-copy"
      "winner-profile"
      "winner-controls" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.has-unavailable-winner-photo:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-copy"
      "winner-controls" !important;
  }
}

/* Final aligned result frame: photo bottom lines up with the controls without forcing a square. */
body[data-step="results"] .result-tuner {
  gap: 8px !important;
}

body[data-step="results"] .result-tuner-head {
  display: none !important;
}

body[data-step="results"] .winner-media-panel .winner-medal,
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo,
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo[data-photo-shape="pet"],
body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo:is(
  [data-photo-context="qb"],
  [data-photo-context="nfl-quarterback"],
  [data-photo-context="nba"],
  [data-photo-context="nba-player"],
  [data-photo-context="rap"],
  [data-photo-context="rapper"],
  [data-photo-context="singer"],
  [data-photo-context="band-artist"],
  [data-photo-context="soccer"],
  [data-photo-context="tennis"],
  [data-photo-context="golf"],
  [data-photo-context="boxing"],
  [data-photo-context="presidents"],
  [data-photo-context="u-s-presidents"],
  [data-photo-context="demleaders"],
  [data-photo-context="gopleaders"],
  [data-photo-context="gavin-newsom-vs-kamala-harris"],
  [data-photo-context="jd-vance-vs-marco-rubio"]
) {
  width: min(100%, 420px) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 5 / 6 !important;
  background-size: 100% 100%, cover !important;
  background-position: center, var(--photo-position, 50% 34%) !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-media-panel {
    align-self: stretch !important;
    height: 100% !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-media-panel .winner-medal,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-media-panel .winner-medal.photo-token.has-photo {
    align-self: stretch !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .result-tuner {
    align-self: start !important;
  }
}

/* Final high-factor result capacity: share below, actions compact, 5-8 dials fit cleanly. */
body[data-step="results"] .winner-spotlight > .winner-share-card {
  grid-area: winner-share !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 10px !important;
  padding: 12px !important;
}

body[data-step="results"] .winner-spotlight > .winner-share-card .result-share-button {
  width: 100% !important;
  min-height: 48px !important;
}

body[data-step="results"] .result-summary-panel {
  gap: 10px !important;
}

body[data-step="results"] .result-tuner-grid,
body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)) !important;
  gap: 8px !important;
}

body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
  height: 100px !important;
  min-height: 100px !important;
  padding: 9px !important;
}

body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-copy strong {
  font-size: 0.78rem !important;
  line-height: 1.08 !important;
}

body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-control {
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  gap: 5px !important;
  min-height: 36px !important;
}

body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-step {
  width: 34px !important;
  min-width: 34px !important;
  height: 36px !important;
  min-height: 36px !important;
}

body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-meter {
  height: 36px !important;
}

body[data-step="results"] .result-tuner-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

body[data-step="results"] .result-tuner-actions .profile-toggle,
body[data-step="results"] .result-tuner-reset,
body[data-step="results"] .result-tuner-refine {
  min-height: 40px !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-photo winner-controls"
      "winner-share winner-share" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-profile winner-profile"
      "winner-controls winner-controls"
      "winner-share winner-share" !important;
  }

  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-step="results"] .winner-spotlight > .winner-share-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Final share slot placement for every result layout. */
body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
  grid-template-areas:
    "winner-photo"
    "winner-copy"
    "winner-profile"
    "winner-controls"
    "winner-share" !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-photo winner-controls"
      "winner-share winner-share" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-profile winner-profile"
      "winner-controls winner-controls"
      "winner-share winner-share" !important;
  }
}

/* Final baseline guard: the media frame and control deck close on one shared edge. */
@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .winner-media-panel {
    place-self: stretch !important;
    min-height: 100% !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .result-tuner {
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .result-control-deck,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open) .result-volume-panel {
    min-height: 0 !important;
  }
}

/* Final mobile result system: one clean column, compact dials, no collapsed tracks. */
@media (max-width: 819px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "winner-photo"
      "winner-copy"
      "winner-controls"
      "winner-profile"
      "winner-share" !important;
    gap: 14px !important;
    padding: 12px !important;
    align-items: start !important;
  }

  body[data-step="results"] .winner-media-panel,
  body[data-step="results"] .winner-copy,
  body[data-step="results"] .result-tuner,
  body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner,
  body[data-step="results"] .winner-spotlight > .winner-share-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  body[data-step="results"] .winner-media-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
  }

  body[data-step="results"] .winner-media-title {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
  }

  body[data-step="results"] .winner-media-title h2 {
    font-size: 2.55rem !important;
    line-height: 0.98 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-step="results"] .winner-media-title.is-long-title h2 {
    font-size: 2rem !important;
    line-height: 1.02 !important;
  }

  body[data-step="results"] .winner-media-title.is-extra-long-title h2 {
    font-size: 1.62rem !important;
    line-height: 1.06 !important;
  }

  body[data-step="results"] .winner-media-panel .winner-medal,
  body[data-step="results"] .winner-media-panel .winner-medal.photo-token.has-photo,
  body[data-step="results"] .winner-media-panel .ai-model-hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 10px !important;
  }

  body[data-step="results"] .winner-copy,
  body[data-step="results"] .winner-main,
  body[data-step="results"] .winner-proof {
    height: auto !important;
    align-self: start !important;
    align-content: start !important;
  }

  body[data-step="results"] .result-summary-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    gap: 8px !important;
  }

  body[data-step="results"] .result-tuner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  body[data-step="results"] .result-control-deck,
  body[data-step="results"] .result-volume-panel,
  body[data-step="results"] .result-tuner-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 36px !important;
    height: 104px !important;
    min-height: 104px !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  body[data-step="results"] .result-tune-copy,
  body[data-step="results"] .result-tuner.is-many .result-tune-copy {
    min-height: 28px !important;
    align-content: center !important;
  }

  body[data-step="results"] .result-tune-copy strong,
  body[data-step="results"] .result-tuner.is-many .result-tune-copy strong,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-copy strong,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-copy strong,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-copy strong,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-copy strong {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-step="results"] .result-tune-control,
  body[data-step="results"] .result-tuner.is-many .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-control {
    grid-template-columns: 32px minmax(0, 1fr) 32px !important;
    gap: 5px !important;
    min-height: 36px !important;
  }

  body[data-step="results"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-step {
    width: 32px !important;
    min-width: 32px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
  }

  body[data-step="results"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-meter {
    height: 36px !important;
    gap: 3px !important;
    border-radius: 8px !important;
    padding: 5px !important;
  }

  body[data-step="results"] .result-tune-meter i {
    min-height: 24px !important;
    border-radius: 5px !important;
  }

  body[data-step="results"] .result-tuner-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  body[data-step="results"] .result-tuner-actions .profile-toggle,
  body[data-step="results"] .result-tuner-reset,
  body[data-step="results"] .result-tuner-refine {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
  }

  body[data-step="results"] .winner-spotlight > .winner-share-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body[data-step="results"] .winner-spotlight > .winner-share-card .result-share-button {
    width: 100% !important;
    min-height: 48px !important;
  }
}

@media (max-width: 360px) {
  body[data-step="results"] .winner-media-title h2 {
    font-size: 2.28rem !important;
  }

  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid {
    gap: 7px !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card {
    padding: 7px !important;
  }
}

/* Final balanced desktop dial rows: center incomplete 3-column rows. */
@media (min-width: 820px) {
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
    grid-column: auto / span 2 !important;
  }

  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card:nth-child(4),
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card:nth-child(7) {
    grid-column: 2 / span 2 !important;
  }

  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card:nth-child(5),
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card:nth-child(8) {
    grid-column: 4 / span 2 !important;
  }

  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card:nth-child(7) {
    grid-column: 3 / span 2 !important;
  }
}

/* Final compact share action: keep sharing in the control row, with no reserved share card slot. */
body[data-step="results"] .winner-spotlight > .winner-share-card {
  display: none !important;
}

body[data-step="results"] [data-stage="results"] .winner-spotlight,
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many) {
  grid-template-areas:
    "winner-photo"
    "winner-copy"
    "winner-controls"
    "winner-profile" !important;
}

body[data-step="results"] .result-tuner-actions .result-share-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  flex: 0 1 auto !important;
  box-shadow: 0 8px 18px rgba(177, 42, 51, 0.16) !important;
}

body[data-step="results"] .result-tuner-actions .profile-toggle,
body[data-step="results"] .result-tuner-actions .result-tuner-reset,
body[data-step="results"] .result-tuner-actions .result-tuner-refine,
body[data-step="results"] .result-tuner-actions .result-share-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

body[data-step="results"] .result-tuner-actions .result-share-button small {
  display: none !important;
}

/* Final result action row: one shared button system with clear intent color. */
body[data-step="results"] .result-tuner-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 10px !important;
  margin: 0 !important;
}

body[data-step="results"] .result-tuner-actions .profile-toggle,
body[data-step="results"] .result-tuner-actions .result-tuner-reset,
body[data-step="results"] .result-tuner-actions .result-tuner-refine,
body[data-step="results"] .result-tuner-actions .result-share-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  box-shadow: 0 10px 22px rgba(16, 42, 46, 0.08) !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body[data-step="results"] .result-tuner-actions .profile-toggle,
body[data-step="results"] .result-tuner-actions .result-tuner-reset {
  color: var(--dv-teal, var(--teal)) !important;
  border-color: rgba(7, 84, 93, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 244, 0.9)),
    #ffffff !important;
}

body[data-step="results"] .result-tuner-actions .profile-toggle[aria-expanded="true"],
body[data-step="results"] .result-tuner-actions .profile-toggle:hover,
body[data-step="results"] .result-tuner-actions .profile-toggle:focus-visible,
body[data-step="results"] .result-tuner-actions .result-tuner-reset:hover,
body[data-step="results"] .result-tuner-actions .result-tuner-reset:focus-visible {
  color: #ffffff !important;
  border-color: var(--dv-teal, var(--teal)) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dv-teal, var(--teal)) 88%, #ffffff), var(--dv-teal, var(--teal))),
    var(--dv-teal, var(--teal)) !important;
}

body[data-step="results"] .result-tuner-actions .result-tuner-refine,
body[data-step="results"] .result-tuner-actions .result-share-button {
  color: #ffffff !important;
  border-color: rgba(177, 42, 51, 0.72) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--red) 88%, #ffffff), var(--red-dark)),
    var(--red) !important;
  box-shadow: 0 12px 24px rgba(177, 42, 51, 0.18) !important;
}

body[data-step="results"] .result-tuner-actions .result-share-button {
  border-color: rgba(126, 29, 39, 0.84) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--red-dark) 84%, #ffffff), #891924),
    var(--red-dark) !important;
}

body[data-step="results"] .result-tuner-actions .result-tuner-refine:hover,
body[data-step="results"] .result-tuner-actions .result-tuner-refine:focus-visible,
body[data-step="results"] .result-tuner-actions .result-share-button:hover,
body[data-step="results"] .result-tuner-actions .result-share-button:focus-visible {
  border-color: var(--red-dark) !important;
  background:
    linear-gradient(180deg, var(--red), var(--red-dark)),
    var(--red-dark) !important;
}

/* Final reveal celebration layer: confetti flies over the result surface, never behind it. */
body[data-step="results"] .result-celebration-layer,
body[data-step="results"] .winner-spotlight > .result-celebration-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1150 !important;
  overflow: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
}

body[data-step="results"] .result-celebration-layer .confetti-piece,
body[data-step="results"] .confetti-piece {
  z-index: 1 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 2px 4px rgba(16, 42, 46, 0.16)) !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-photo winner-controls" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-profile winner-profile"
      "winner-controls winner-controls" !important;
  }
}

@media (max-width: 819px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo"
      "winner-copy"
      "winner-controls"
      "winner-profile" !important;
  }

  body[data-step="results"] .result-tuner-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-step="results"] .result-tuner-actions .profile-toggle,
  body[data-step="results"] .result-tuner-actions .result-tuner-reset,
  body[data-step="results"] .result-tuner-actions .result-tuner-refine,
  body[data-step="results"] .result-tuner-actions .result-share-button {
    width: 100% !important;
    flex: unset !important;
  }
}

/* Final profile drawer behavior: opening Profile must not rearrange the established result header. */
body[data-step="results"],
body[data-step="results"] *,
body[data-step="results"] *::before,
body[data-step="results"] *::after {
  overflow-anchor: none !important;
}

@media (min-width: 820px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    grid-template-areas:
      "winner-photo winner-copy"
      "winner-photo winner-controls"
      "winner-profile winner-profile" !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open .winner-media-panel {
    place-self: stretch !important;
    min-height: 100% !important;
    height: 100% !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open .winner-media-panel .winner-medal,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open .winner-media-panel .winner-medal.photo-token.has-photo {
    align-self: stretch !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open .result-tuner {
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }
}

/* Final dial containment guard: plus/minus controls must stay inside every card. */
body[data-step="results"] .result-tune-card,
body[data-step="results"] .result-tuner.is-many .result-tune-card,
body[data-step="results"][data-category] .result-tuner .result-tune-card,
body[data-step="results"][data-category="pet-type"] .result-tuner[data-factor-count] .result-tune-card,
body[data-step="results"][data-category="pet-type"] .result-tuner.is-many[data-factor-count] .result-tune-card,
body[data-step="results"][data-category="small-exotic-pet-type"] .result-tuner[data-factor-count] .result-tune-card,
body[data-step="results"][data-category="small-exotic-pet-type"] .result-tuner.is-many[data-factor-count] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
  box-sizing: border-box !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(28px, auto) 38px !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 108px !important;
  min-height: 108px !important;
  overflow: hidden !important;
}

body[data-step="results"] .result-tune-copy,
body[data-step="results"] .result-tuner.is-many .result-tune-copy,
body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-control,
body[data-step="results"][data-category] .result-tuner .result-tune-copy,
body[data-step="results"][data-category] .result-tuner .result-tune-control {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

body[data-step="results"] .result-tune-copy,
body[data-step="results"] .result-tuner.is-many .result-tune-copy {
  grid-row: 1 !important;
  min-height: 28px !important;
}

body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-control,
body[data-step="results"][data-category] .result-tuner .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-control {
  box-sizing: border-box !important;
  grid-row: 2 !important;
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
}

body[data-step="results"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-step {
  box-sizing: border-box !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  justify-self: stretch !important;
}

body[data-step="results"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-meter {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
}

@media (max-width: 819px) {
  body[data-step="results"] [data-stage="results"] .winner-spotlight,
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight:not(.is-profile-open):has(.result-tuner.is-many),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open,
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner),
  body[data-step="results"] [data-stage="results"] .winner-spotlight.is-profile-open:has(.result-tuner.is-many) {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 12px !important;
  }

  body[data-step="results"] .result-tuner,
  body[data-step="results"] .result-control-deck,
  body[data-step="results"] .result-volume-panel,
  body[data-step="results"] .result-tuner-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-media-panel,
  body[data-step="results"] [data-stage="results"] .winner-copy,
  body[data-step="results"] [data-stage="results"] .result-tuner,
  body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
    margin: 0 0 14px !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight > :last-child {
    margin-bottom: 0 !important;
  }

  body[data-step="results"] .result-tuner {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-media-panel,
  body[data-step="results"] [data-stage="results"] .winner-copy,
  body[data-step="results"] [data-stage="results"] .result-tuner,
  body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-media-panel {
    grid-row: 1 !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-copy {
    grid-row: 2 !important;
  }

  body[data-step="results"] [data-stage="results"] .result-tuner {
    grid-row: 3 !important;
  }

  body[data-step="results"] [data-stage="results"] .winner-spotlight > .profile-drawer-winner {
    grid-row: 4 !important;
  }

  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card,
  body[data-step="results"][data-category] .result-tuner .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
    grid-template-rows: minmax(27px, auto) 36px !important;
    height: 104px !important;
    min-height: 104px !important;
  }

  body[data-step="results"] .result-tune-control,
  body[data-step="results"] .result-tuner.is-many .result-tune-control,
  body[data-step="results"][data-category] .result-tuner .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-control,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-control {
    grid-template-columns: 32px minmax(0, 1fr) 32px !important;
    min-height: 36px !important;
  }

  body[data-step="results"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-step,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-step {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  body[data-step="results"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-meter,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-meter {
    height: 36px !important;
  }
}

/* Dial hard stop: never let plus/minus controls clip inside result cards. */
body[data-step="results"] .result-tuner,
body[data-step="results"] .result-control-deck,
body[data-step="results"] .result-volume-panel,
body[data-step="results"] .result-tuner-grid {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-step="results"] .result-tuner-grid,
body[data-step="results"] .result-tuner.is-many .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(206px, 100%), 1fr)) !important;
  align-items: stretch !important;
  justify-content: center !important;
}

body[data-step="results"] .result-tune-card,
body[data-step="results"] .result-tuner.is-many .result-tune-card,
body[data-step="results"][data-category] .result-tuner .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(30px, auto) 38px !important;
  align-content: start !important;
  justify-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 112px !important;
  min-height: 112px !important;
  padding: 9px !important;
  overflow: hidden !important;
}

body[data-step="results"] .result-tune-copy,
body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-copy,
body[data-step="results"] .result-tuner.is-many .result-tune-control {
  grid-column: 1 !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-step="results"] .result-tune-copy,
body[data-step="results"] .result-tuner.is-many .result-tune-copy {
  grid-row: 1 !important;
  align-content: start !important;
  justify-items: start !important;
  min-height: 30px !important;
  text-align: left !important;
}

body[data-step="results"] .result-tune-copy strong,
body[data-step="results"] .result-tuner.is-many .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-copy strong,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-copy strong {
  max-width: 100% !important;
  overflow: hidden !important;
  color: var(--ink) !important;
  font-size: 0.76rem !important;
  font-weight: 780 !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
  text-align: left !important;
  -webkit-line-clamp: 2 !important;
}

body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-control,
body[data-step="results"][data-category] .result-tuner .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-control {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: 34px minmax(72px, 1fr) 34px !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 38px !important;
  overflow: visible !important;
}

body[data-step="results"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-step {
  justify-self: stretch !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  flex: 0 0 34px !important;
}

body[data-step="results"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-meter {
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 72px !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  overflow: hidden !important;
}

body[data-step="results"] .result-tune-meter i {
  min-width: 0 !important;
}

@media (min-width: 820px) {
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: repeat(2, minmax(min(206px, 100%), 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-step="results"] .result-tune-card,
  body[data-step="results"] .result-tuner.is-many .result-tune-card,
  body[data-step="results"][data-category] .result-tuner .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
    height: 104px !important;
    min-height: 104px !important;
  }
}

/* Social launch links: compact icon row in the shared footer. */
.site-footer,
body[data-step="debate"] .site-footer,
body[data-step="results"] .site-footer,
[data-stage="results"] .site-footer {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "footer-nav footer-social footer-base" !important;
}

.site-footer .footer-social {
  grid-area: footer-social !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-social a {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border: 1px solid rgba(7, 84, 93, 0.16) !important;
  border-radius: 999px !important;
  color: rgba(7, 84, 93, 0.9) !important;
  background: rgba(255, 250, 240, 0.74) !important;
  box-shadow: 0 8px 18px rgba(16, 42, 46, 0.06) !important;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease !important;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  color: var(--dv-red, #b12a33) !important;
  border-color: rgba(177, 42, 51, 0.34) !important;
  background: rgba(255, 246, 223, 0.98) !important;
  transform: translateY(-1px) !important;
}

.site-footer .footer-social svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
}

@media (max-width: 860px) {
  .site-footer,
  body[data-step="debate"] .site-footer,
  body[data-step="results"] .site-footer,
  [data-stage="results"] .site-footer {
    grid-template-areas:
      "footer-nav"
      "footer-social"
      "footer-base" !important;
  }

  .site-footer .footer-social {
    justify-self: center !important;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-social {
    gap: 7px !important;
  }

  .site-footer .footer-social a {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
}

/* Last-pass dial containment: fixed minimum tracks, no skinny overflow columns. */
body[data-step="results"] .result-tuner-grid,
body[data-step="results"] .result-tuner.is-many .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)) !important;
  gap: 8px !important;
}

body[data-step="results"] .result-tune-card,
body[data-step="results"] .result-tuner.is-many .result-tune-card,
body[data-step="results"][data-category] .result-tuner .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(30px, auto) 38px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 112px !important;
  min-height: 112px !important;
  padding: 9px !important;
}

body[data-step="results"] .result-tune-control,
body[data-step="results"] .result-tuner.is-many .result-tune-control,
body[data-step="results"][data-category] .result-tuner .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-control,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-control {
  grid-template-columns: 34px minmax(72px, 1fr) 34px !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body[data-step="results"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-step,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-step {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
}

body[data-step="results"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-meter,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-meter {
  min-width: 72px !important;
}

@media (min-width: 820px) {
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body[data-step="results"] .result-tuner-grid,
  body[data-step="results"] .result-tuner.is-many .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tuner-grid,
  body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tuner-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body[data-step="results"] .result-tuner .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card,
body[data-step="results"] .result-tuner[data-factor-count="5"] .result-tune-card:nth-child(n),
body[data-step="results"] .result-tuner[data-factor-count="6"] .result-tune-card:nth-child(n),
body[data-step="results"] .result-tuner[data-factor-count="7"] .result-tune-card:nth-child(n),
body[data-step="results"] .result-tuner[data-factor-count="8"] .result-tune-card:nth-child(n) {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Final information panel guard: branded, closable, and viewport-safe. */
body.is-info-panel-open {
  overflow: hidden !important;
}

.info-view[hidden] {
  display: none !important;
}

.info-panel,
.info-panel[data-active-info-view="about"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 420 !important;
  display: grid !important;
  align-items: center !important;
  justify-items: center !important;
  padding: clamp(10px, 2vw, 22px) !important;
  border-radius: 0 !important;
  background: rgba(16, 42, 46, 0.44) !important;
  backdrop-filter: blur(14px) !important;
}

.info-panel[hidden] {
  display: none !important;
}

.info-card,
.info-panel[data-active-info-view="about"] .info-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  width: min(880px, calc(100vw - 28px)) !important;
  max-height: min(760px, calc(100dvh - 28px)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.99), rgba(241, 248, 245, 0.98) 58%, rgba(232, 238, 226, 0.96)),
    #ffffff !important;
  box-shadow: 0 30px 82px rgba(16, 42, 46, 0.28) !important;
}

.info-card-top {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 68px !important;
  border-bottom: 1px solid rgba(7, 84, 93, 0.12) !important;
  padding: 10px clamp(14px, 2.3vw, 24px) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 246, 0.92)),
    #ffffff !important;
}

.info-brand-lockup {
  display: block !important;
  width: clamp(136px, 20vw, 188px) !important;
  min-width: 0 !important;
}

.info-brand-lockup img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.info-card-body {
  min-height: 0 !important;
  overflow: auto !important;
  padding: clamp(18px, 3vw, 30px) !important;
  overscroll-behavior: contain !important;
}

.info-close,
.info-panel[data-active-info-view="about"] .info-close {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 44px !important;
  min-height: 42px !important;
  border: 1px solid rgba(7, 84, 93, 0.22) !important;
  border-radius: 8px !important;
  padding: 0 13px !important;
  color: var(--dv-teal) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 246, 0.92)),
    #ffffff !important;
  box-shadow: 0 10px 20px rgba(16, 42, 46, 0.09) !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.info-close span[aria-hidden="true"] {
  font-size: 1.28rem !important;
  line-height: 0.8 !important;
}

.info-close:hover,
.info-close:focus-visible {
  color: #ffffff !important;
  background: var(--dv-teal) !important;
  box-shadow: 0 12px 24px rgba(7, 84, 93, 0.2) !important;
}

.info-panel .info-view h2 {
  max-width: 16ch !important;
  margin-bottom: 14px !important;
  font-size: clamp(2rem, 4.2vw, 4rem) !important;
  line-height: 0.98 !important;
}

.info-panel .info-copy {
  margin-bottom: 16px !important;
  font-size: clamp(0.94rem, 1.15vw, 1.02rem) !important;
}

.info-panel .process-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(160px, 210px) !important;
  gap: clamp(16px, 3vw, 28px) !important;
  margin-bottom: 18px !important;
}

.info-panel .process-orbit {
  min-height: 172px !important;
  border-radius: 8px !important;
}

.info-panel .process-view .process-grid {
  gap: 10px !important;
}

.info-panel .process-view .process-grid article {
  min-height: 92px !important;
  border-radius: 8px !important;
  padding: 14px !important;
}

.info-panel .methodology-grid article {
  min-height: 132px !important;
  border-radius: 8px !important;
}

.info-panel .about-view {
  gap: clamp(16px, 2vw, 24px) !important;
  padding-top: 0 !important;
}

.info-panel .about-creator-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.88fr) !important;
  gap: clamp(18px, 3vw, 34px) !important;
  align-items: start !important;
}

.info-panel .about-founder-copy h2,
.info-panel[data-active-info-view="about"] .about-founder-copy h2 {
  max-width: 15ch !important;
  margin-bottom: 12px !important;
  font-size: clamp(2.05rem, 4.2vw, 3.7rem) !important;
  line-height: 0.96 !important;
}

@media (max-height: 760px) and (min-width: 720px) {
  .info-card,
  .info-panel[data-active-info-view="about"] .info-card {
    max-height: calc(100dvh - 20px) !important;
  }

  .info-card-top {
    min-height: 60px !important;
  }

  .info-panel .process-orbit {
    min-height: 148px !important;
  }

  .info-panel .process-view .process-grid article {
    min-height: 82px !important;
  }
}

@media (max-width: 720px) {
  .info-panel,
  .info-panel[data-active-info-view="about"] {
    padding: 8px !important;
  }

  .info-card,
  .info-panel[data-active-info-view="about"] .info-card {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .info-card-top {
    min-height: 58px !important;
    padding: 9px 11px !important;
  }

  .info-brand-lockup {
    width: clamp(122px, 43vw, 158px) !important;
  }

  .info-close {
    gap: 0 !important;
    min-width: 42px !important;
    padding: 0 10px !important;
  }

  .info-close span:last-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  .info-card-body {
    padding: 14px !important;
  }

  .info-panel .info-view h2 {
    font-size: clamp(1.9rem, 9vw, 3rem) !important;
  }

  .info-panel .process-hero,
  .info-panel .process-view .process-grid,
  .info-panel .methodology-grid,
  .info-panel .about-creator-hero,
  .info-panel .about-proof-grid,
  .info-panel .about-origin-card {
    grid-template-columns: 1fr !important;
  }

  .info-panel .process-orbit {
    min-height: 132px !important;
  }
}

@media (max-width: 460px) {
  .info-panel .process-orbit {
    display: none !important;
  }

  .info-panel .process-view .process-grid article {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    padding: 12px !important;
  }
}

/* Mobile launch QA: keep the top action visible and every decision flow finishable. */
@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body[data-step] .app-shell,
  body[data-step] .goat-console,
  body[data-step] .stage,
  body[data-step] .stage.is-active {
    box-sizing: border-box !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  body[data-step] .stage,
  body[data-step] .stage.is-active,
  body[data-step="factors"] [data-stage="factors"],
  body[data-step="rank"] [data-stage="rank"],
  body[data-step="results"] [data-stage="results"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-step] .app-header,
  body[data-step="debate"] .app-header,
  body[data-step="factors"] .app-header,
  body[data-step="rank"] .app-header,
  body[data-step="results"] .app-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 130 !important;
    grid-template-columns: 34px minmax(118px, 148px) minmax(88px, 1fr) !important;
    gap: 8px !important;
    min-height: 66px !important;
    max-width: 100vw !important;
    overflow: visible !important;
    padding: 7px 10px !important;
  }

  body[data-step] .app-header .brand-lockup,
  body[data-step="debate"] .app-header .brand-lockup,
  body[data-step="factors"] .app-header .brand-lockup,
  body[data-step="rank"] .app-header .brand-lockup,
  body[data-step="results"] .app-header .brand-lockup {
    --dv-header-logo-width: clamp(118px, 37vw, 146px) !important;
    --dv-header-logo-height: clamp(48px, 15vw, 60px) !important;
    --brand-vision-size: clamp(22px, 7vw, 27px) !important;
    grid-column: 2 !important;
    width: var(--dv-header-logo-width) !important;
    min-width: var(--dv-header-logo-width) !important;
    max-width: var(--dv-header-logo-width) !important;
    height: var(--dv-header-logo-height) !important;
  }

  body[data-step] .header-actions,
  body[data-step="debate"] .header-actions,
  body[data-step="factors"] .header-actions,
  body[data-step="rank"] .header-actions,
  body[data-step="results"] .header-actions,
  body[data-step="debate"] .app-header .header-actions {
    display: block !important;
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body[data-step] .site-nav,
  body[data-step="debate"] .site-nav,
  body[data-step="factors"] .site-nav,
  body[data-step="rank"] .site-nav,
  body[data-step="results"] .site-nav {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body[data-step] .site-nav button,
  body[data-step="debate"] .site-nav button,
  body[data-step="factors"] .site-nav button,
  body[data-step="rank"] .site-nav button,
  body[data-step="results"] .site-nav button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 38px !important;
    max-width: 116px !important;
    border-radius: 8px !important;
    padding: 0 9px !important;
    font-size: clamp(0.64rem, 2.6vw, 0.72rem) !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body[data-step] .portal-menu,
  body[data-step="debate"] .portal-menu,
  body[data-step="factors"] .portal-menu,
  body[data-step="rank"] .portal-menu,
  body[data-step="results"] .portal-menu {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - 82px) !important;
  }

  body[data-step="factors"] .stage.is-active,
  body[data-step="rank"] .stage.is-active,
  body[data-step="results"] .stage.is-active {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body[data-step="factors"] .factor-board,
  body[data-step="rank"] .rank-stack,
  body[data-step="results"] [data-stage="results"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-step="factors"] .factor-token,
  body[data-step="rank"] .rank-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-step="factors"] .stage-actions,
  body[data-step="rank"] .stage-actions,
  body[data-step="results"] .stage-actions {
    box-sizing: border-box !important;
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 160 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
    background:
      linear-gradient(180deg, rgba(251, 248, 239, 0), rgba(251, 248, 239, 0.96) 18%, rgba(251, 248, 239, 1)) !important;
    box-shadow: 0 -14px 34px rgba(16, 42, 46, 0.08) !important;
  }

  body[data-step="factors"] .stage-actions > *,
  body[data-step="rank"] .stage-actions > *,
  body[data-step="results"] .stage-actions > * {
    min-width: 0 !important;
    overflow: visible !important;
  }

  body[data-step="results"] .result-tuner-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-step="results"] .result-tuner-actions .profile-toggle,
  body[data-step="results"] .result-tuner-actions .result-tuner-reset,
  body[data-step="results"] .result-tuner-actions .result-tuner-refine,
  body[data-step="results"] .result-tuner-actions .result-share-button {
    min-width: 0 !important;
    min-height: 44px !important;
    padding-inline: 8px !important;
    font-size: clamp(0.68rem, 2.9vw, 0.76rem) !important;
    white-space: normal !important;
  }
}

@media (max-width: 370px) {
  body[data-step] .app-header,
  body[data-step="debate"] .app-header,
  body[data-step="factors"] .app-header,
  body[data-step="rank"] .app-header,
  body[data-step="results"] .app-header {
    grid-template-columns: 32px minmax(108px, 132px) minmax(78px, 1fr) !important;
    gap: 6px !important;
    padding-inline: 8px !important;
  }

  body[data-step] .site-nav button,
  body[data-step="debate"] .site-nav button,
  body[data-step="factors"] .site-nav button,
  body[data-step="rank"] .site-nav button,
  body[data-step="results"] .site-nav button {
    max-width: 94px !important;
    min-height: 36px !important;
    padding-inline: 7px !important;
    font-size: 0.62rem !important;
  }
}

/* Home directory crowding guard: keep the suggestion CTA balanced instead of squeezed. */
body[data-step="debate"] .home-category-directory .home-map-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, max-content) !important;
  align-items: center !important;
  gap: clamp(14px, 2vw, 24px) !important;
  width: 100% !important;
}

body[data-step="debate"] .home-category-directory .home-map-actions span {
  max-width: 62ch !important;
}

body[data-step="debate"] .home-category-directory .home-map-actions button {
  justify-self: end !important;
  min-width: min(260px, 100%) !important;
  white-space: normal !important;
}

@media (max-width: 820px) {
  body[data-step="debate"] .home-category-directory .home-map-actions {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  body[data-step="debate"] .home-category-directory .home-map-actions button {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

@media (max-width: 700px) {
  body[data-step="rank"] [data-stage="rank"] .stage-actions {
    box-sizing: border-box !important;
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 160 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-top: 1px solid rgba(16, 42, 46, 0.1) !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(180deg, rgba(251, 248, 239, 0), rgba(251, 248, 239, 0.96) 18%, rgba(251, 248, 239, 1)) !important;
    box-shadow: 0 -14px 34px rgba(16, 42, 46, 0.08) !important;
  }
}
