:root {
  --bg: #0d0d0d;
  --bg-alt: #151513;
  --panel: rgba(27, 30, 22, 0.86);
  --panel-strong: #1c2117;
  --text: #f4f2ed;
  --muted: #cbbfa9;
  --beige: #e6ddcc;
  --olive: #6c8f3e;
  --olive-dark: #4d6b2d;
  --wood: #88795e;
  --border: rgba(230, 221, 204, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --hero-size: clamp(4rem, 11vw, 9rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(108, 143, 62, 0.14), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(230, 221, 204, 0.08), transparent 18%),
    linear-gradient(180deg, #111111 0%, #0d0d0d 45%, #12150f 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

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

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

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow-left {
  top: 12%;
  left: -10rem;
  background: var(--olive);
}

.page-glow-right {
  top: 48%;
  right: -12rem;
  background: var(--wood);
}

.site-header,
.section,
.site-footer,
.hero-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem max(1rem, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, #212719 0%, #171c13 44%, #000000 100%);
  border-bottom: 1px solid rgba(230, 221, 204, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "League Spartan", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.08em;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(230, 221, 204, 0.1);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(230, 221, 204, 0.14);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.lang-button {
  border: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: linear-gradient(180deg, rgba(108, 143, 62, 0.92), rgba(77, 107, 45, 0.92));
  color: #10110f;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.section {
  padding: 4.5rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - 5rem);
  isolation: isolate;
  padding: 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.96) 0%, rgba(13, 13, 13, 0.84) 34%, rgba(13, 13, 13, 0.52) 60%, rgba(13, 13, 13, 0.85) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.18), rgba(13, 13, 13, 0.6));
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  opacity: 0.38;
  animation: backdrop-pan 18s ease-in-out infinite alternate;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-inner {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 2rem;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--olive);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.info-card h3,
.game-card h3 {
  font-family: "League Spartan", sans-serif;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: var(--hero-size);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--beige);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--olive);
}

.hero-subtitle {
  margin: 1.5rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 600;
  max-width: 35rem;
}

.hero-text,
.story-card p,
.game-card p,
.info-card p,
.quote-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 34rem;
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin: 2rem 0 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: scale(1.05);
}

.button-primary {
  background: linear-gradient(180deg, #7ba348 0%, var(--olive) 100%);
  color: #111;
  box-shadow: 0 14px 28px rgba(108, 143, 62, 0.28);
}

.button-secondary {
  background: rgba(244, 242, 237, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-tags li,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(108, 143, 62, 0.28);
  border-radius: 999px;
  background: rgba(108, 143, 62, 0.08);
  color: var(--beige);
  font-size: 0.92rem;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 15% 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(108, 143, 62, 0.22), rgba(136, 121, 94, 0.06) 52%, rgba(20, 20, 20, 0.18) 70%),
    rgba(20, 20, 20, 0.24);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-art-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(19, 20, 18, 0.9), rgba(28, 33, 23, 0.8));
  border: 1px solid rgba(230, 221, 204, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.hero-art img {
  width: 100%;
  border-radius: 22px;
  transform: translateY(0);
  animation: mascot-float 6s ease-in-out infinite;
}

.question {
  position: absolute;
  z-index: 2;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--beige);
  animation: question-float 5s ease-in-out infinite;
}

.question-one {
  top: 12%;
  left: 20%;
}

.question-two {
  top: 4%;
  right: 18%;
  color: var(--olive);
  animation-delay: 0.8s;
}

.question-three {
  top: 20%;
  right: 6%;
  animation-delay: 1.6s;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  color: var(--beige);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
}

.story-card,
.quote-card,
.info-card,
.game-card {
  background: linear-gradient(180deg, rgba(29, 33, 23, 0.95), rgba(17, 17, 17, 0.95));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.story-card,
.quote-card {
  padding: 2rem;
}

.quote-card {
  display: grid;
  align-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(108, 143, 62, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(36, 42, 29, 0.95), rgba(18, 20, 17, 0.95));
}

.quote-card p {
  margin: 0;
  font-size: 1.35rem;
}

.quote-card span {
  color: var(--olive);
  font-weight: 700;
}

.card-grid,
.game-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 1.8rem;
}

.card-number {
  color: var(--olive);
  font-family: "League Spartan", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.info-card h3,
.game-card h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 2rem;
  color: var(--beige);
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-game {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
}

.game-visual {
  background: radial-gradient(circle at top, rgba(108, 143, 62, 0.18), transparent 48%), #10110f;
  min-height: 100%;
}

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

.game-content,
.game-card:not(.featured-game) {
  padding: 1.8rem;
}

.muted {
  background: rgba(136, 121, 94, 0.08);
  border-color: rgba(136, 121, 94, 0.22);
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 1.25rem 1rem 1.25rem 1rem;
  min-height: 9rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(244, 242, 237, 0.04), rgba(108, 143, 62, 0.08));
  border: 1px solid var(--border);
  font-family: "League Spartan", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.timeline li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  color: var(--olive);
  font-size: 0.9rem;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.8rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: -0.55rem;
  border-top: 2px solid rgba(230, 221, 204, 0.28);
  border-right: 2px solid rgba(230, 221, 204, 0.28);
  transform: rotate(45deg);
  animation: arrow-sway 3.8s ease-in-out infinite;
}

.timeline li:last-child::after {
  display: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--beige);
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes question-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-8deg);
  }
}

@keyframes arrow-sway {
  0%,
  100% {
    transform: rotate(45deg) translateX(0);
  }
  50% {
    transform: rotate(45deg) translateX(4px);
  }
}

@keyframes backdrop-pan {
  0% {
    transform: scale(1.05) translateX(-1.5%) translateY(0);
  }
  100% {
    transform: scale(1.12) translateX(1.5%) translateY(-1%);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    flex-direction: column;
    gap: 1rem;
    width: min(100%, 100%);
    padding: 1rem;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-inner,
  .story-layout,
  .featured-game {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .card-grid,
  .game-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .featured-game {
    grid-column: auto;
  }

  .hero-art {
    order: -1;
  }

  .hero-art-frame {
    width: min(100%, 320px);
  }

  .timeline li::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer,
  .hero-inner {
    width: min(100% - 1.25rem, 1180px);
  }

  .section {
    padding: 3.5rem 0;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-tools {
    gap: 0.8rem;
  }

  .language-switcher {
    align-self: center;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.66) 44%, rgba(13, 13, 13, 0.9) 100%);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-tags {
    gap: 0.6rem;
  }
}
