:root {
  --bg: #09090b;
  --bg-soft: #121216;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --muted: #9a958b;
  --gold: #e4c27a;
  --win: #7dcea0;
  --lose: #c0392b;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  overflow-x: clip;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(228, 194, 122, 0.14), transparent 55%),
    radial-gradient(700px 420px at 12% 88%, rgba(125, 206, 160, 0.06), transparent 60%),
    radial-gradient(640px 380px at 88% 70%, rgba(192, 57, 43, 0.05), transparent 55%),
    var(--bg);
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.72);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(228, 194, 122, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 194, 122, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(228, 194, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 194, 122, 0);
  }
}

.hero {
  flex: 1 0 auto;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px max(20px, env(safe-area-inset-left)) 48px;
  padding-right: max(20px, env(safe-area-inset-right));
  text-align: center;
}

.kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.05s;
}

.question {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 9vw, 72px);
  letter-spacing: 0.06em;
  line-height: 0.92;
  margin-bottom: 14px;
  opacity: 0;
  animation: rise 0.75s ease forwards 0.12s;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.55;
  font-weight: 400;
  opacity: 0;
  animation: rise 0.75s ease forwards 0.2s;
}

.arena {
  opacity: 0;
  animation: rise 0.8s ease forwards 0.32s;
}

.duel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 4vw, 28px);
}

.poster-btn {
  width: min(210px, 38vw);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
}

.poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    border-color 0.25s ease;
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%),
    var(--poster-gradient, linear-gradient(160deg, #2a2a32, #121216));
}

.poster-btn:hover .poster,
.poster-btn:focus-visible .poster {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  border-color: rgba(228, 194, 122, 0.28);
  outline: none;
}

.poster-btn:focus-visible {
  outline: none;
}

.poster.is-picked {
  border-color: rgba(125, 206, 160, 0.55);
  box-shadow:
    0 0 0 1px rgba(125, 206, 160, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.45);
}

.poster.is-lost {
  filter: grayscale(0.85) brightness(0.55);
  transform: scale(0.97);
}

.poster-year {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.poster-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-align: left;
}

.poster-title {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.vs-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vs-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(228, 194, 122, 0.28);
  background: rgba(228, 194, 122, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vs-glow 3s ease-in-out infinite;
}

.vs-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

@keyframes vs-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(228, 194, 122, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(228, 194, 122, 0.18);
  }
}

.duel-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.result {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.65);
  animation: rise 0.35s ease;
}

.result[hidden] {
  display: none;
}

.result-line {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.05em;
  color: var(--win);
}

.result-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.cta-row {
  margin-top: 36px;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.48s;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #1a1408;
  background: linear-gradient(180deg, #f0d08a 0%, #d4aa58 100%);
  box-shadow: 0 12px 30px rgba(212, 170, 88, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(212, 170, 88, 0.3);
}

.cta-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.foot {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.72);
}

.foot-brand,
.foot-meta {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.foot-brand {
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.foot-meta {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  color: #5d5a54;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .duel {
    gap: 10px;
  }

  .vs-mark {
    width: 42px;
    height: 42px;
  }

  .vs-label {
    font-size: 22px;
  }

  .poster {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .kicker,
  .question,
  .lede,
  .arena,
  .cta-row {
    opacity: 1;
  }
}
