:root {
  --bow-teal: #03242d;
  --bow-teal-deep: #021a21;
  --bow-teal-mid: #0a3d47;
  --accent-gold: #d4af37;
  --accent-gold-light: #f0d78c;
  --accent-magenta: #c94b7c;
  --accent-cyan: #3dd6c3;
  --text: #f2f6f7;
  --text-muted: #a8bdc2;
  --surface: #0d2f38;
  --surface-card: #0a2830;
  --border: rgba(212, 175, 55, 0.22);
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bow-teal-deep);
  line-height: 1.55;
  overflow-x: clip;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.game-card-visual img,
.live-game-visual img {
  height: 100%;
}

a {
  color: var(--accent-gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--accent-gold);
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--bow-teal) 0%, var(--bow-teal-deep) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem max(1rem, env(safe-area-inset-right, 0px)) 0.65rem max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-link img {
  height: 36px;
  width: auto;
  max-height: 36px;
  object-fit: contain;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}

.nav-main a {
  color: var(--text);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-main a:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold-light);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: #1a1508;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  text-decoration: none;
  color: #1a1508;
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold-light);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(61, 214, 195, 0.15), 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.12);
  text-decoration: none;
  color: #fff8e0;
  box-shadow: 0 0 24px rgba(61, 214, 195, 0.2), 0 8px 28px rgba(0, 0, 0, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 0;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-gold-light), var(--accent-cyan));
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
    flex-shrink: 0;
    order: 2;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo-link {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-actions {
    order: 3;
    flex-shrink: 0;
  }

  .header-actions .btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .nav-main {
    display: none;
    order: 4;
    flex-basis: 100%;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: column;
    background: var(--bow-teal);
    padding: 0.75rem 0 0;
    margin: 0;
    border-bottom: none;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    padding: 0.75rem 1rem;
    white-space: normal;
  }
}

.hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% -30%, rgba(201, 75, 124, 0.14), transparent),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(61, 214, 195, 0.1), transparent),
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(212, 175, 55, 0.14), transparent),
    linear-gradient(180deg, var(--bow-teal-mid) 0%, var(--bow-teal-deep) 55%);
  padding: 3rem max(1rem, env(safe-area-inset-right, 0px)) 3.5rem max(1rem, env(safe-area-inset-left, 0px));
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(1.45rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold-light) 45%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}

.hero-badge {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.45rem 1.1rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, rgba(201, 75, 124, 0.2), rgba(61, 214, 195, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--accent-gold-light);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero .btn-primary,
.hero .btn-outline {
  padding: 0.85rem 1.25rem;
  font-size: clamp(0.9rem, 2.8vw, 1.02rem);
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) 3rem max(1.25rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.section {
  padding: 2.85rem 0;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 47, 56, 0.95) 0%, var(--surface) 50%, rgba(10, 40, 48, 0.98) 100%);
  margin-left: calc(-1 * max(1.25rem, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(1.25rem, env(safe-area-inset-right, 0px)));
  padding: 2.85rem max(1.25rem, env(safe-area-inset-left, 0px)) 2.85rem max(1.25rem, env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(61, 214, 195, 0.06);
}

.section h2 {
  font-size: clamp(1.35rem, 3.4vw, 2.05rem);
  margin: 0 auto 1.15rem;
  max-width: min(28rem, 100%);
  color: var(--accent-gold-light);
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  padding-bottom: 0.65rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.section h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-gold), var(--accent-cyan));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.section h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  margin: 1.65rem auto 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.section p {
  margin: 0 auto 1.1rem;
  color: var(--text-muted);
  max-width: min(68ch, 100%);
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  min-width: 0;
}

.game-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}

.game-card-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bow-teal-mid), var(--bow-teal-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 1rem;
  text-align: center;
}

.game-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.game-card-body p {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.live-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.35rem;
  margin: 1.75rem auto 0;
  max-width: 1100px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.live-game-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .live-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(61, 214, 195, 0.12);
  }
}

.live-game-visual {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bow-teal-deep);
}

.live-game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-game-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.live-game-body h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.live-game-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
  overflow-wrap: break-word;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 1rem;
  margin: 2.25rem auto 0;
  max-width: 900px;
  width: 100%;
  min-width: 0;
}

.stat {
  text-align: center;
  padding: 1.35rem min(1rem, 4vw);
  min-width: 0;
  background: linear-gradient(165deg, var(--surface-card), rgba(10, 40, 48, 0.6));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--accent-gold-light), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  text-align: left;
}

.two-col > div {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(10, 40, 48, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.12);
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.cta-banner {
  margin: 2.25rem 0;
  padding: 2.35rem max(1rem, env(safe-area-inset-right, 0px)) 2.35rem max(1rem, env(safe-area-inset-left, 0px));
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, rgba(201, 75, 124, 0.18) 0%, var(--bow-teal-mid) 40%, var(--bow-teal) 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cta-banner h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.cta-banner p {
  font-size: 1.08rem;
  max-width: min(42ch, 100%);
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  max-width: min(52rem, 100%);
  text-align: left;
  box-sizing: border-box;
}

.list-check li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 0;
  max-width: min(28rem, 100%);
  text-align: left;
  box-sizing: border-box;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.05rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.65rem;
  height: 1.65rem;
  line-height: 1.65rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--accent-gold);
  color: #1a1508;
  border-radius: 50%;
}

.site-footer {
  background: #010f12;
  border-top: 1px solid var(--border);
  padding: 2.5rem max(1.25rem, env(safe-area-inset-right, 0px)) max(2.5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  margin-top: 2rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: min(65ch, 100%);
  overflow-wrap: break-word;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
  text-align: left;
}

@media (max-width: 768px) {
  main.legal-page {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.legal-page h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.form-card {
  max-width: 440px;
  width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-card input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bow-teal-deep);
  color: var(--text);
  font-size: 1rem;
}

.form-card input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-card .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-primary,
  .hero .btn-outline {
    width: 100%;
  }

  .form-card {
    padding: 1.35rem max(1rem, env(safe-area-inset-right, 0px)) 1.35rem max(1rem, env(safe-area-inset-left, 0px));
  }

  .two-col > div {
    padding: 1rem;
  }

  .cta-banner {
    padding: 1.75rem max(1rem, env(safe-area-inset-right, 0px)) 1.75rem max(1rem, env(safe-area-inset-left, 0px));
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
