:root {
  --bg: #050505;
  --card: rgba(14, 14, 17, 0.88);
  --text: #f8f8f8;
  --muted: #aaaeb6;
  --red: #ef1f23;
  --red-soft: rgba(239,31,35,.18);
  --blue: #1986ff;
  --blue-soft: rgba(25,134,255,.18);
  --line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 25%, rgba(214, 22, 27, 0.12), transparent 32%),
    radial-gradient(circle at 84% 28%, rgba(24, 118, 255, 0.13), transparent 33%),
    linear-gradient(180deg, #020202 0%, #08090c 65%, #020202 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

.arena-glow {
  position: fixed;
  width: 45vw;
  height: 45vw;
  min-width: 400px;
  min-height: 400px;
  border-radius: 999px;
  filter: blur(110px);
  opacity: .16;
  pointer-events: none;
}
.arena-glow--red { left: -22vw; top: 14vh; background: var(--red); }
.arena-glow--blue { right: -22vw; top: 18vh; background: var(--blue); }

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 50px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(430px, 1.12fr);
  gap: clamp(28px, 4.5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero__poster-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  box-shadow: 0 35px 90px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.035) inset;
  transform: perspective(1200px) rotateY(2deg);
}

.hero__poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
}

.hero__poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.14) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: posterShine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes posterShine {
  0%, 68%, 100% { transform: translateX(-120%); }
  82% { transform: translateX(125%); }
}

.hero__content { padding: 10px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #d6d7db;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 850;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .88;
  letter-spacing: -.06em;
  font-weight: 1000;
  font-style: italic;
  text-transform: uppercase;
}
h1 span {
  display: block;
  color: var(--red);
  text-shadow: 0 0 24px rgba(239,31,35,.22);
}

.hero__lede {
  max-width: 760px;
  margin: 0 0 22px;
  color: #c9cbd1;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
}

.status-strip {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #c6c7cc;
  font-size: 13px;
  margin-bottom: 18px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52e270;
  box-shadow: 0 0 16px rgba(82,226,112,.75);
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse { 50% { opacity: .35; transform: scale(.74); } }

.fighters {
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  gap: 14px;
  align-items: stretch;
}

.fighter-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24,24,29,.95), rgba(10,10,13,.92));
  box-shadow: 0 22px 55px rgba(0,0,0,.26);
}
.fighter-card::after {
  content: "";
  position: absolute;
  inset: auto -35% -55% -35%;
  height: 75%;
  border-radius: 50%;
  opacity: .26;
  filter: blur(30px);
}
.fighter-card--red::after { background: var(--red); }
.fighter-card--blue::after { background: var(--blue); }

.fighter-card__topline {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
  color: #a8abb3;
}
.fighter-card h2 {
  position: relative;
  z-index: 1;
  margin: 7px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .95;
  font-weight: 1000;
  letter-spacing: -.04em;
  font-style: italic;
}
.fighter-card--red h2 { color: #ff3b3f; }
.fighter-card--blue h2 { color: #4aa3ff; }
.vote-number {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}
.vote-label {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  color: #9498a1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.meter {
  position: relative;
  z-index: 1;
  height: 9px;
  margin: 20px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width .75s cubic-bezier(.2,.8,.2,1);
}
.fighter-card--red .meter span { background: linear-gradient(90deg, #a50f14, #ff353a); }
.fighter-card--blue .meter span { background: linear-gradient(90deg, #0758a8, #2995ff); }
.percentage {
  position: relative;
  z-index: 1;
  color: #e9e9ec;
  font-size: 13px;
  font-weight: 900;
}

.vote-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 18px;
  padding: 15px 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: .05em;
  transform: translateY(0);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  overflow: hidden;
}
.vote-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.23) 48%, transparent 74%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}
.vote-btn:hover::before { transform: translateX(120%); }
.vote-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.vote-btn:active { transform: translateY(1px) scale(.99); }
.vote-btn:disabled { cursor: not-allowed; opacity: .48; transform: none; filter: none; }
.vote-btn span { position: relative; z-index: 1; }
.vote-btn--red { background: linear-gradient(135deg, #b50f14, #ef1f23); box-shadow: 0 13px 32px rgba(239,31,35,.2); }
.vote-btn--blue { background: linear-gradient(135deg, #075bb7, #1986ff); box-shadow: 0 13px 32px rgba(25,134,255,.2); }

.versus {
  display: grid;
  place-items: center;
  color: #f2f2f3;
  font-weight: 1000;
  font-style: italic;
  font-size: 26px;
  text-shadow: 0 0 16px rgba(255,255,255,.24);
}

.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.total-box span {
  color: #a8abb2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.total-box strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.fine-print {
  color: #7f838c;
  font-size: 12px;
  line-height: 1.55;
  margin: 12px 3px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  max-width: min(520px, calc(100% - 30px));
  padding: 13px 16px;
  transform: translate(-50%, 30px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(14,14,16,.94);
  box-shadow: 0 18px 45px rgba(0,0,0,.36);
  color: #f4f4f5;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(239,31,35,.42); }
.toast.is-success { border-color: rgba(82,226,112,.34); }

.flash-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.35), transparent 34%);
}
.flash-layer.flash { animation: cameraFlash .48s ease-out; }
@keyframes cameraFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.fighter-card.winner-pop { animation: winnerPop .65s cubic-bezier(.2,.8,.2,1); }
@keyframes winnerPop { 0% { transform: scale(1); } 30% { transform: scale(1.035); } 100% { transform: scale(1); } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__poster-wrap { width: min(620px, 100%); margin: 0 auto; transform: none; }
  .hero__content { padding-bottom: 28px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 18px, 1220px); padding-top: 10px; }
  .hero { gap: 28px; }
  .hero__poster-wrap { border-radius: 18px; }
  h1 { font-size: clamp(45px, 15vw, 70px); }
  .fighters { grid-template-columns: 1fr; gap: 10px; }
  .versus { min-height: 34px; }
  .fighter-card { padding: 19px; border-radius: 18px; }
  .fighter-card h2 { font-size: 44px; }
  .vote-number { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
