:root {
  --bg: #f3efe6;
  --panel: #fffaf0;
  --ink: #1f1a17;
  --muted: #625a52;
  --accent: #c65d2e;
  --accent-dark: #8a3918;
  --line: #d8c8b6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 93, 46, 0.16), transparent 28%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.site-header nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
}

.language-switch-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.language-switch-link.is-active {
  background: var(--accent);
  color: #fff;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
}

.page-shell {
  padding: 16px 0 64px;
}

.hero {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 20px 50px rgba(76, 46, 23, 0.08);
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 0.75rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.card h2 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.public-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.public-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.public-form label,
.public-form-block {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.public-form input,
.public-form select,
.public-form textarea,
.button {
  font: inherit;
}

.public-form input,
.public-form select,
.public-form textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.form-note {
  color: var(--muted);
  max-width: 38rem;
}

.status-banner {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff8e8;
}

.status-banner.success {
  background: #f3ffef;
}

.bot-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

.site-footer {
  padding: 24px 0 48px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .site-header nav {
    width: 100%;
  }

  .hero {
    padding: 32px 24px;
  }
}

.battle-topbar {
  --battle-blue: #0038a8;
  --battle-red: #ce1126;
  --battle-yellow: #fcd116;
  --battle-black: #111111;
  --battle-ink: #1f2933;
  --battle-white: #ffffff;
  --battle-shell: #f4f7ff;
  --battle-line: rgba(17, 17, 17, 0.12);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 56, 168, 0.18), rgba(252, 209, 22, 0.24), rgba(206, 17, 38, 0.18));
  color: var(--battle-black);
  font-size: 0.95rem;
  font-weight: 700;
}

.battle-page {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(252, 209, 22, 0.22), transparent 18%),
    radial-gradient(circle at bottom right, rgba(206, 17, 38, 0.18), transparent 22%),
    linear-gradient(160deg, rgba(0, 56, 168, 0.96) 0%, rgba(10, 17, 38, 0.98) 54%, rgba(98, 13, 24, 0.98) 100%);
  box-shadow: 0 30px 90px rgba(8, 17, 40, 0.3);
  overflow: hidden;
}

.battle-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.battle-page > * {
  position: relative;
  z-index: 1;
}

.battle-topbar span {
  color: #0f2b68;
}

.battle-stage {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
}

.battle-stage::before {
  content: "";
  position: absolute;
  top: 8px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(0, 56, 168, 0.18);
  filter: blur(24px);
  pointer-events: none;
}

.battle-hero {
  padding: 48px;
  border: 1px solid rgba(252, 209, 22, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(252, 209, 22, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(206, 17, 38, 0.26), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(0, 56, 168, 0.99), rgba(8, 20, 50, 0.99) 58%, rgba(120, 11, 24, 0.98));
  box-shadow: 0 28px 70px rgba(16, 10, 23, 0.36);
  color: var(--battle-white);
  text-align: center;
}

.battle-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.battle-meta-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(252, 209, 22, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--battle-white);
}

.battle-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.battle-page .battle-hero-start.button.primary {
  background: #fcd116;
  border-color: #fcd116;
  color: #111111;
}

.battle-page .battle-hero-more.button.secondary {
  background: #ce1126;
  border-color: #ce1126;
  color: #ffffff;
}

.battle-board {
  margin-top: 28px;
}

.battle-status-card {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 240, 255, 0.99));
  border: 1px solid rgba(0, 56, 168, 0.16);
  box-shadow: 0 18px 46px rgba(0, 56, 168, 0.08);
}

.battle-hook {
  color: #9b0f1f;
  font-weight: 600;
}

.battle-vote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.battle-step-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(252, 209, 22, 0.18);
}

.battle-step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fcd116, #ce1126);
  color: var(--battle-black);
  font-weight: 800;
}

.battle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.battle-card,
.battle-vote-panel {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(0, 56, 168, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 248, 255, 0.98));
  box-shadow: 0 22px 52px rgba(0, 32, 96, 0.14);
}

.battle-card {
  border-top: 6px solid var(--battle-blue);
}

.battle-card:nth-child(3n + 1) {
  border-top-color: var(--battle-blue);
}

.battle-card:nth-child(3n + 2) {
  border-top-color: var(--battle-red);
}

.battle-card-header h2 {
  margin-bottom: 8px;
  font-size: 1.9rem;
  color: var(--battle-black);
}

.battle-card-header p:last-child {
  margin-top: 0;
  color: #b00f23;
}

.battle-description {
  color: #163976;
}

.battle-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  margin: 18px 0;
  border: 1px solid rgba(0, 56, 168, 0.14);
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.08), rgba(252, 209, 22, 0.14));
}

.battle-cover-video {
  aspect-ratio: auto;
  height: clamp(320px, 42vw, 520px);
  object-fit: contain;
  object-position: center top;
  background: #0d1220;
}

.battle-audio {
  width: 100%;
  margin: 18px 0;
}

.battle-results {
  margin-bottom: 18px;
}

.battle-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.battle-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 56, 168, 0.08);
  overflow: hidden;
}

.battle-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0038a8, #fcd116 42%, #ce1126 78%, #111111);
}

.battle-vote-button {
  width: 100%;
  background: linear-gradient(135deg, #ce1126, #8f0f1c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(206, 17, 38, 0.22);
}

.battle-vote-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border-color: rgba(252, 209, 22, 0.22);
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.98), rgba(10, 22, 58, 0.98) 52%, rgba(92, 12, 23, 0.98));
  color: var(--battle-white);
}

.battle-page .button.secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 56, 168, 0.2);
  color: var(--battle-blue);
}

.battle-vote-panel .button.secondary,
.battle-opportunity .button.secondary,
.battle-after-vote .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 209, 22, 0.24);
  color: var(--battle-white);
}

.battle-versus {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fcd116, #ce1126 68%, #0038a8);
  color: var(--battle-black);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  box-shadow: 0 18px 44px rgba(0, 56, 168, 0.2), 0 10px 28px rgba(206, 17, 38, 0.22);
}

.battle-email-field {
  max-width: 30rem;
}

.battle-more-section,
.battle-community-section,
.battle-opportunity,
.battle-after-vote {
  margin-top: 24px;
}

.battle-section-heading {
  margin-bottom: 20px;
}

.battle-more-grid,
.battle-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.battle-more-card,
.battle-community-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 56, 168, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 0.98));
  box-shadow: 0 18px 46px rgba(0, 32, 96, 0.1);
}

.battle-more-card {
  border-top: 4px solid var(--battle-yellow);
}

.battle-community-card {
  border-top: 4px solid var(--battle-blue);
}

.battle-more-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.battle-more-preview,
.battle-more-preview-fallback,
.battle-more-preview-media {
  display: block;
  min-height: 92px;
  border-radius: 16px;
}

.battle-more-preview {
  overflow: hidden;
  border: 1px solid rgba(0, 56, 168, 0.14);
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.26), rgba(252, 209, 22, 0.22), rgba(206, 17, 38, 0.18));
}

.battle-more-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.battle-more-preview-video {
  background: #0d1220;
}

.battle-more-preview-fallback {
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--battle-blue);
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.26), rgba(252, 209, 22, 0.22), rgba(206, 17, 38, 0.18));
}

.battle-opportunity,
.battle-after-vote {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(252, 209, 22, 0.18);
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.98), rgba(12, 18, 38, 0.98) 54%, rgba(92, 12, 23, 0.96));
  color: var(--battle-white);
  box-shadow: 0 24px 58px rgba(16, 10, 23, 0.28);
}

.battle-opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: center;
}

.battle-opportunity-ph {
  background:
    radial-gradient(circle at top right, rgba(252, 209, 22, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(0, 56, 168, 0.98), rgba(9, 17, 36, 0.98) 52%, rgba(102, 14, 25, 0.97));
}

.battle-opportunity-copy h2,
.battle-after-vote-copy h2 {
  margin-bottom: 10px;
}

.battle-opportunity-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.battle-after-vote {
  background:
    radial-gradient(circle at top left, rgba(252, 209, 22, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(0, 56, 168, 0.94) 44%, rgba(92, 14, 24, 0.96));
}

.battle-modal-open {
  overflow: hidden;
}

.battle-modal[hidden] {
  display: none;
}

.battle-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.battle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(4px);
}

.battle-modal-card {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 10vh auto 0;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(252, 209, 22, 0.22);
  background: linear-gradient(135deg, #ffffff, #eef4ff 62%, #fff7dc);
  box-shadow: 0 30px 70px rgba(16, 10, 23, 0.36);
  z-index: 1;
}

.battle-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, var(--battle-blue), var(--battle-yellow), var(--battle-red));
}

.battle-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.battle-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .battle-cover-video {
    height: clamp(280px, 78vw, 460px);
  }

  .battle-page {
    padding: 14px;
    border-radius: 28px;
  }

  .battle-topbar,
  .battle-hero-actions {
    justify-content: flex-start;
  }

  .battle-hero {
    text-align: left;
  }

  .battle-meta-row {
    justify-content: flex-start;
  }

  .battle-opportunity {
    grid-template-columns: 1fr;
  }

  .battle-vote-steps,
  .battle-more-grid,
  .battle-community-grid,
  .battle-grid {
    grid-template-columns: 1fr;
  }

  .battle-versus {
    margin: 0 auto;
  }
}
