:root {
  --bg: #5b0a0d;
  --bg-deep: #3a060a;
  --panel: #1a0306;
  --panel-2: #240509;
  --line: #4a0a10;
  --text: #ffffff;
  --muted: #c9a8ab;
  --muted-2: #8c7174;
  --primary: #e10c1a;
  --primary-2: #ff2233;
  --primary-shadow: rgba(225, 12, 26, 0.45);
  --accent: #f7c948;
  --gold-2: #ffd86b;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max: 1200px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #6c0e12 0%, #3d060a 70%, #2a0306 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 2, 4, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { height: 20px; width: auto; }
@media (min-width: 900px) {
  .brand img { height: 28px; }
}
.nav-desktop {
  display: none; gap: 22px; margin-inline: auto;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.nav-desktop a { color: #efe3e4; transition: color .2s; }
.nav-desktop a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
  font-size: 14px; line-height: 1; letter-spacing: 0.02em;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(180deg, #ff2230 0%, #c80717 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--primary-shadow); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.burger {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: #fff;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 12px clamp(16px, 4vw, 32px) 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600; font-size: 15px;
}
.mobile-nav a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  margin-block: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(120% 100% at 0% 0%, #ff2435 0%, #b80714 45%, #5d040a 100%);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../images/hero.avif");
  background-size: cover;
  background-position: right center;
  opacity: 0.35;
  z-index: -1;
}
.hero-inner {
  display: grid; gap: 18px;
  padding: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-2);
}
.hero-title {
  font-size: clamp(28px, 5vw, 54px); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.01em; margin: 0;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 18px); color: #ffd9dc; max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-bullets {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 13px; color: #ffe6e8; margin-top: 8px; padding: 0; list-style: none;
}
.hero-bullets li::before { content: "✦ "; color: var(--accent); }

/* ---------------- Category tabs ---------------- */
.tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0; margin-bottom: 8px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffe1e3;
}
.tabs a.active, .tabs a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------------- Lobby strip ---------------- */
.strip { margin-block: 24px; }
.strip-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.strip-title {
  font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.strip-more {
  font-size: 13px; color: var(--accent); font-weight: 600;
}
.slot-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 520px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .slot-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }

.slot {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm); overflow: hidden;
  background: #2a0407;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: transform .18s, box-shadow .18s;
}
.slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.slot::after {
  content: "PLAY";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; letter-spacing: 0.16em; color: #fff;
  background: linear-gradient(0deg, rgba(225,12,26,0.85), rgba(225,12,26,0.45));
  opacity: 0; transition: opacity .2s;
}
.slot:hover { transform: translateY(-2px); }
.slot:hover img { transform: scale(1.06); }
.slot:hover::after { opacity: 1; }

/* ---------------- Tournament banner ---------------- */
.tournament {
  margin-block: 28px; border-radius: var(--radius-lg); overflow: hidden;
  background: #1c0407 url("../images/tournament.jpg") center / cover no-repeat;
  min-height: 180px;
  display: flex; align-items: center;
  position: relative;
}
.tournament::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,3,5,0.85) 0%, rgba(20,3,5,0.2) 60%, transparent 100%);
}
.tournament-inner {
  position: relative; padding: clamp(20px, 4vw, 36px); max-width: 560px;
}
.tournament-title {
  font-size: clamp(20px, 3vw, 30px); font-weight: 900; margin: 0 0 8px;
}
.tournament-text { color: #ffd9dc; margin: 0 0 16px; font-size: 14px; }

/* ---------------- Steps (badge banners) ---------------- */
.steps { margin-block: 28px; }
.steps-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.step { display: block; }
.step img {
  display: block;
  width: 100%; height: auto;
  max-width: 480px; margin-inline: auto;
}

/* ---------------- SEO content ---------------- */
.seo-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  margin-block: 36px;
  font-size: 16px;
  line-height: 1.7;
  color: #ece1e3;
}
.seo-content h1 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 900;
  margin: 0 0 18px; line-height: 1.15; color: #fff;
}
.seo-content h2 {
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 800;
  margin: 32px 0 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #fff;
}
.seo-content h3 {
  font-size: clamp(17px, 2vw, 20px); font-weight: 700;
  margin: 24px 0 8px; color: var(--accent);
}
.seo-content h4 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; color: #ffd9dc; }
.seo-content p { margin: 0 0 14px; }
.seo-content strong { color: #fff; font-weight: 700; }
.seo-content em { color: var(--gold-2); }
.seo-content ul, .seo-content ol { margin: 0 0 16px; padding-left: 22px; }
.seo-content li { margin-bottom: 6px; }
.seo-content ul li::marker { color: var(--primary-2); }
.seo-content ol li::marker { color: var(--accent); font-weight: 700; }

.seo-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.seo-content a:hover { color: var(--gold-2); }

.seo-content blockquote {
  border-left: 3px solid var(--primary); padding: 8px 14px;
  background: rgba(225,12,26,0.08); border-radius: 6px; margin: 14px 0;
  color: #ffd9dc;
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 14px 0 22px; border-radius: 10px; border: 1px solid var(--line); }
.seo-content table {
  width: 100%; border-collapse: collapse; min-width: 480px;
  background: var(--panel-2); font-size: 14px;
}
.seo-content th, .seo-content td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.seo-content th {
  background: rgba(225,12,26,0.18);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; color: #fff;
}
.seo-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.seo-content tr:last-child td { border-bottom: 0; }

/* FAQ details */
.seo-content details {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin: 8px 0;
  background: var(--panel-2);
}
.seo-content details + details { margin-top: 8px; }
.seo-content summary {
  cursor: pointer; font-weight: 700; font-size: 16px; color: #fff;
  list-style: none; position: relative; padding-right: 28px;
}
.seo-content summary::-webkit-details-marker { display: none; }
.seo-content summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent); transition: transform .2s;
}
.seo-content details[open] summary::after { content: "−"; }
.seo-content details > *:not(summary) { margin-top: 10px; }

.seo-cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------------- 404 ---------------- */
.notfound {
  display: grid; place-items: center; padding: 80px 20px; text-align: center;
}
.notfound h1 { font-size: clamp(48px, 12vw, 120px); margin: 0; color: var(--accent); }
.notfound p { color: var(--muted); max-width: 480px; margin: 8px auto 24px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #0e0203; border-top: 1px solid var(--line);
  padding-block: 36px 24px; margin-top: 40px;
  color: #c9a8ab;
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 26px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }

.footer-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding-top: 20px; margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}
.providers {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.provider-chip {
  padding: 6px 12px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: #ddc6c8;
}
.disclaimer {
  background: rgba(225,12,26,0.08); border: 1px solid rgba(225,12,26,0.2);
  border-radius: 10px; padding: 12px 14px; font-size: 12px;
  color: #ffd9dc; margin-top: 18px;
}
.copy { font-size: 12px; color: #8c7174; }

/* ---------------- Auth pages (login / sign-up) ---------------- */
.auth-card {
  max-width: 480px; margin: 24px auto; padding: 28px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.auth-card[data-redirect] { cursor: pointer; }
.auth-card[data-redirect] input { cursor: pointer; caret-color: transparent; }
.auth-card h2 {
  margin: 0 0 6px; font-size: 22px;
}
.auth-card p.lead { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px;
  background: #0e0203; border: 1px solid var(--line);
  border-radius: 10px; color: #fff; font-size: 15px;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--primary); }
.auth-card .btn-primary { width: 100%; padding: 14px; }
.auth-card .small { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.auth-card .small a { color: var(--accent); }

/* ---------------- Misc ---------------- */
.section-heading-visual {
  font-size: clamp(20px, 3vw, 28px); font-weight: 800;
  margin: 28px 0 14px;
}
.subtle { color: var(--muted); }

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