:root {
  --bg: #0d1021;
  --panel: rgba(15, 24, 48, 0.78);
  --panel-strong: #172447;
  --text: #f7f4ed;
  --muted: #b2bdd7;
  --line: rgba(255, 255, 255, 0.1);
  --hot: #ff8a00;
  --cyan: #51e5ff;
  --lime: #d9ff57;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(81, 229, 255, 0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 138, 0, 0.22), transparent 28%),
    linear-gradient(160deg, #0d1021 0%, #11162d 40%, #1d1037 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.video-feature,
.toolbar,
.game-card,
.loadout-panel,
.note-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  border-radius: 28px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sticker-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 24px;
  transition: transform 140ms ease, filter 140ms ease;
}

.sticker-button:hover,
.sticker-button:focus-visible {
  transform: translateY(-2px) rotate(-2deg);
}

.sticker-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

.sticker-button:active {
  transform: translateY(1px) scale(0.98);
}

.title-sticker {
  width: clamp(110px, 17vw, 180px);
  height: auto;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.35));
}

.hero-panel {
  padding: 26px;
  border-radius: 24px;
}

.eyebrow,
.kicker,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--cyan);
}

h1,
h2 {
  margin: 0 0 12px;
}

h1 {
  font-family: "Bungee", cursive;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
  max-width: 9ch;
}

h2 {
  font-size: 1.45rem;
}

.lede {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(90deg, var(--hot), #ffbb33);
  color: #1a1322;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
}

.button.audio-toggle {
  color: var(--text);
  border: 1px solid rgba(81, 229, 255, 0.35);
  background: rgba(81, 229, 255, 0.08);
  cursor: pointer;
}

.button.audio-toggle.is-on {
  background: linear-gradient(90deg, #51e5ff, #d9ff57);
  color: #071019;
  border-color: transparent;
}

.status-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 255, 87, 0.14);
  color: var(--lime);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-panel ul,
.game-card ul,
.loadout-panel ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--muted);
}

.toolbar {
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
}

.video-feature {
  margin-top: 26px;
  padding: 22px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.video-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(6, 10, 24, 0.85);
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.search {
  display: block;
  margin-bottom: 16px;
}

.search span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.search input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 24, 0.8);
  color: var(--text);
  font: inherit;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.filter.active {
  background: var(--cyan);
  color: #071019;
  border-color: transparent;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.game-card {
  padding: 22px;
  border-radius: 24px;
  transform: translateY(12px);
  opacity: 0;
  animation: rise 0.55s ease forwards;
}

.game-card:nth-child(2) { animation-delay: 0.08s; }
.game-card:nth-child(3) { animation-delay: 0.16s; }
.game-card:nth-child(4) { animation-delay: 0.24s; }
.game-card:nth-child(5) { animation-delay: 0.32s; }
.game-card:nth-child(6) { animation-delay: 0.40s; }

.game-card.hidden {
  display: none;
}

.card-top {
  margin-bottom: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.loadout-panel,
.note-panel {
  padding: 26px;
  border-radius: 24px;
}

.note-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.mini-board {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-board div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.mini-board strong {
  display: block;
  margin-top: 6px;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .video-feature,
  .split-section,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .title-row {
    align-items: flex-start;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-panel,
  .toolbar,
  .game-card,
  .loadout-panel,
  .note-panel {
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .title-row {
    flex-direction: column;
  }

  .title-sticker {
    width: 120px;
  }
}
