:root {
  --arena-dark: #080403;
  --arena-deep: #120806;
  --iron-red: #8b1a1a;
  --iron-red-light: #b52020;
  --steel: #9ca3af;
  --bronze: #a07840;
  --bronze-light: #c8a060;
  --text-light: #f0ebe6;
  --text-muted: #c9b8a8;
  --card-bg: #1a0c08;
  --card-border: #3d1a0a;
}

* { box-sizing: border-box; }

body {
  background-color: var(--arena-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes parallaxFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes ironGlow {
  0%, 100% { box-shadow: 0 0 8px var(--iron-red), 0 0 20px rgba(139,26,26,0.4); }
  50% { box-shadow: 0 0 20px var(--iron-red), 0 0 40px rgba(139,26,26,0.7); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.sparkle { animation: sparkle 2s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.7s ease forwards; }
.float-anim { animation: parallaxFloat 4s ease-in-out infinite; }
.iron-glow { animation: ironGlow 2.5s ease-in-out infinite; }

.arena-bg {
  background: radial-gradient(ellipse at center top, #2a0a06 0%, #0a0403 60%, #080302 100%);
  position: relative;
  /* Full-page vertical scroll; clip horizontal bleed from marquee/gradients */
  overflow-x: hidden;
  overflow-y: auto;
}

.arena-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(139,26,26,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(160,120,64,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.iron-card {
  background: linear-gradient(135deg, #1e0d08 0%, #150806 100%);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.iron-card:hover {
  transform: translateY(-4px);
  border-color: var(--iron-red);
}

.btn-primary {
  background: linear-gradient(135deg, var(--iron-red) 0%, #6b1212 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--bronze-light);
  font-weight: 600;
  padding: 0.8em 1.8em;
  border-radius: 0.5rem;
  border: 2px solid var(--bronze);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bronze);
  color: var(--arena-dark);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(139,26,26,0.5);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.divider-iron {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--iron-red), var(--bronze), var(--iron-red), transparent);
  margin: 1.5rem 0;
  border: none;
}

.prose {
  color: var(--text-light);
  max-width: 100%;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
}

.prose h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--bronze-light);
  margin-top: 1em;
  margin-bottom: 0.6em;
  border-left: 4px solid var(--iron-red);
  padding-left: 0.75em;
}

.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-light);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.2em;
  color: var(--text-muted);
}

.prose a {
  color: var(--bronze-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: #e0b870; }

.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2em;
}

.prose ul li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--iron-red);
  border-radius: 50%;
}

.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.prose ol li {
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

.prose blockquote {
  border-left: 4px solid var(--bronze);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: rgba(160,120,64,0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  display: block;
  margin: 1.5em auto;
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.prose table th {
  background: var(--iron-red);
  color: #fff;
  padding: 0.65em 1em;
  text-align: left;
  font-weight: 700;
}

.prose table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-muted);
  background: var(--card-bg);
}

.prose table tr:hover td { background: #200e08; }

.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.badge-bonus {
  background: linear-gradient(135deg, #3d0f0f 0%, #1a0806 100%);
  border: 2px solid var(--iron-red);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: inline-block;
  text-align: center;
}

.step-badge {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--iron-red), #5a1010);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(139,26,26,0.5);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  padding: 0.4em 0.8em;
  border-radius: 0.375rem;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--bronze-light);
  background: rgba(160,120,64,0.1);
}

.mobile-menu {
  background: #120806;
  border-top: 1px solid var(--card-border);
}

.word-cloud span {
  display: inline-block;
  margin: 0.35em 0.5em;
  padding: 0.4em 0.9em;
  border-radius: 2rem;
  font-weight: 700;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  cursor: default;
}

.word-cloud span:hover {
  color: var(--bronze-light);
  border-color: var(--bronze);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-light);
  padding: 1em 1.25em;
  background: var(--card-bg);
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item[open] summary {
  border-color: var(--iron-red);
  border-radius: 0.5rem 0.5rem 0 0;
}

.faq-item .faq-body {
  padding: 1em 1.25em;
  color: var(--text-muted);
  border: 1px solid var(--iron-red);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  background: #1a0806;
  line-height: 1.75;
}

.hero-section {
  min-height: 90vh;
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,4,3,0.65) 0%, rgba(8,4,3,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .badge-bonus { padding: 1rem 1.25rem; }
}
