/*
  Design tokens
  -------------
  A warm, metallic palette grounded in the brand name itself — bronze,
  not a generic neon-on-black. Rajdhani (an angular, technical face used
  a lot in esports HUDs) carries the CTA and brand-adjacent text; Inter
  handles anything that needs to just be read comfortably.
*/
:root {
  --bg: #100c09;
  --bg-soft: #17110c;
  --bronze-shadow: #5a3418;
  --bronze: #cd7f32;
  --bronze-bright: #eab06a;
  --text: #f5efe6;
  --text-muted: #a99781;
  --border: rgba(245, 239, 230, 0.09);
  --focus: #eab06a;

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 3.5rem);
  padding: 3rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(205, 127, 50, 0.28), rgba(205, 127, 50, 0) 70%),
    radial-gradient(closest-side, rgba(90, 52, 24, 0.35), rgba(90, 52, 24, 0) 65%) bottom right / 70% 70% no-repeat;
  background-position: center, bottom right;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.hero__mark {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.hero__mark:hover,
.hero__mark:focus-visible {
  transform: translateY(-4px);
}

.hero__logo {
  width: clamp(140px, 24vw, 220px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}

.hero__tagline {
  max-width: 32ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bronze) 0%, var(--bronze-bright) 100%);
  color: #1a1006;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(205, 127, 50, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(205, 127, 50, 0.35);
}

.hero__cta-icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Live stats ticker ---------- */

.hero__ticker {
  width: 100%;
  max-width: 700px;
}

.hero__ticker-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  -webkit-overflow-scrolling: touch;
}

.hero__ticker-scroll iframe {
  display: block;
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- Error pages ---------- */

.error-page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding: 3rem 1.5rem;
}

.error-page__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--bronze-bright);
  line-height: 1;
}

.error-page__message {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Motion & small screens ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__glow {
    animation: none;
  }
}

@media (max-width: 480px) {
  .hero__ticker-scroll {
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  }
}
