﻿:root {
  --bg-1: #070913;
  --bg-2: #10172b;
  --bg-3: #1a0f2f;
  --panel: rgba(16, 22, 40, 0.78);
  --panel-strong: rgba(9, 13, 24, 0.92);
  --line: rgba(132, 164, 255, 0.28);
  --text: #edf2ff;
  --muted: #afbddf;
  --accent: #31e0ff;
  --accent-2: #ff5da8;
  --accent-3: #8affb4;
  --danger: #ff6c7a;
  --ok: #62ffb6;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1180px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(165deg, rgba(7, 9, 19, 0.86), rgba(16, 23, 43, 0.88) 52%, rgba(17, 14, 30, 0.9)),
    radial-gradient(circle at 20% 15%, rgba(60, 100, 210, 0.28), transparent 36%),
    radial-gradient(circle at 80% 10%, rgba(219, 80, 168, 0.25), transparent 34%),
    radial-gradient(circle at 70% 75%, rgba(91, 176, 255, 0.18), transparent 39%),
    url("../img/background.jpg") center / cover fixed no-repeat;
  line-height: 1.45;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.35;
  pointer-events: none;
}

body::before {
  top: -130px;
  left: -140px;
  background: linear-gradient(45deg, rgba(86, 122, 255, 0.8), rgba(48, 232, 255, 0.25));
  animation: pulseFloat 14s ease-in-out infinite;
}

body::after {
  right: -140px;
  bottom: -160px;
  background: linear-gradient(45deg, rgba(255, 72, 167, 0.64), rgba(130, 72, 255, 0.26));
  animation: pulseFloat 16s ease-in-out infinite reverse;
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.05);
  }
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(112, 226, 255, 0.85);
  outline-offset: 2px;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 157, 214, 0.18);
  background: rgba(5, 7, 14, 0.82);
}

.nav {
  width: var(--container);
  margin-inline: auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(94, 199, 255, 0.42));
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: conic-gradient(from 180deg, #2ee7ff, #5b8eff, #cf4fff, #2ee7ff);
  box-shadow: 0 0 20px rgba(58, 182, 255, 0.45);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: rgba(6, 12, 18, 0.9);
  border-radius: 7px;
}

.nav-links {
  position: static;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.nav-links a {
  font-weight: 600;
  color: #d5e3ff;
  padding: 6px 9px;
  border-radius: 9px;
  transition: 0.25s ease;
  border: 1px solid transparent;
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(94, 155, 255, 0.18);
  border-color: rgba(117, 177, 255, 0.28);
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.72);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
}

.nav-links.open {
  opacity: 1;
}

.age-pill {
  border: 1px solid rgba(255, 120, 130, 0.6);
  color: #ffd4d9;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 95, 128, 0.1);
  font-weight: 700;
  white-space: nowrap;
}

.age-alert {
  width: var(--container);
  margin: 12px auto 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 116, 126, 0.56);
  background: linear-gradient(145deg, rgba(70, 14, 26, 0.9), rgba(40, 9, 18, 0.94));
  color: #ffdbe0;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  animation: ageDrop 0.45s ease;
}

.age-alert strong {
  letter-spacing: 0.04em;
}

.age-alert button {
  border: 1px solid rgba(255, 154, 169, 0.62);
  background: rgba(255, 105, 139, 0.14);
  color: #ffe9ed;
  border-radius: 9px;
  padding: 5px 9px;
  cursor: pointer;
}

@keyframes ageDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin: 0;
}

.hero h1 .focus {
  background: linear-gradient(90deg, var(--accent), #7c9fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 65ch;
}

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

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #f5f7ff;
  background: linear-gradient(145deg, #2e85ff, #7e4dff);
  box-shadow: 0 12px 25px rgba(73, 107, 255, 0.35);
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(93, 130, 255, 0.42);
}

.btn.alt {
  background: linear-gradient(145deg, #ff4f94, #ff6f5d);
  box-shadow: 0 12px 25px rgba(255, 88, 140, 0.3);
}

.btn.ghost {
  background: rgba(18, 26, 46, 0.72);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-showcase {
  border-radius: 28px;
  padding: 24px;
  position: relative;
  border: 1px solid rgba(127, 176, 255, 0.28);
  background:
    radial-gradient(circle at 20% 20%, rgba(66, 204, 255, 0.22), transparent 36%),
    radial-gradient(circle at 80% 72%, rgba(255, 98, 160, 0.23), transparent 34%),
    var(--panel-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(157, 194, 255, 0.2);
  pointer-events: none;
}

.showcase-item {
  border: 1px solid rgba(158, 177, 255, 0.25);
  border-radius: 16px;
  padding: 14px;
  background: rgba(11, 16, 28, 0.7);
  margin-bottom: 12px;
  animation: riseIn 0.7s ease both;
}

.showcase-item:nth-child(2) {
  animation-delay: 0.12s;
}

.showcase-item:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 42px 0;
}

.section h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.game-card {
  position: relative;
  overflow: hidden;
}

.game-card-media {
  margin: -18px -18px 12px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(122, 175, 255, 0.28);
}

.game-card-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.04);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: -45% 20% auto;
  height: 200px;
  background: radial-gradient(circle, rgba(64, 193, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d7f5ff;
  padding: 4px 10px;
  border: 1px solid rgba(74, 205, 255, 0.42);
  border-radius: 999px;
  background: rgba(47, 169, 255, 0.14);
}

.game-card h3 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
}

.game-card p {
  color: var(--muted);
  min-height: 70px;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #bbceff;
}

.info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.timeline-item,
.faq-item,
.review-item,
.legal-block,
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.timeline-item h3,
.review-item h3,
.legal-block h3 {
  margin-top: 0;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.faq-a {
  color: var(--muted);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-item.open .faq-a {
  max-height: 180px;
}

.cta-band {
  margin: 28px auto 12px;
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(26, 182, 255, 0.2), rgba(255, 87, 151, 0.2)),
    rgba(8, 12, 25, 0.86);
  border: 1px solid rgba(132, 163, 255, 0.32);
}

.notice {
  border-left: 3px solid var(--accent-2);
  padding-left: 12px;
  color: #e4c7da;
}

.footer {
  margin-top: 40px;
  padding: 22px 0 42px;
  border-top: 1px solid rgba(130, 156, 224, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(81, 176, 255, 0.35));
}

.footer a {
  color: #cde2ff;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer p {
  color: var(--muted);
}

.small {
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.88rem;
  color: #dff4ff;
  background: rgba(40, 176, 255, 0.12);
  border: 1px solid rgba(90, 174, 255, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
}

/* Game: Aurora Reels */
.game-hero {
  padding: 54px 0 20px;
}

.game-cover {
  margin: 16px 0 0;
  border-radius: 18px;
  border: 1px solid rgba(120, 181, 255, 0.34);
  background: rgba(8, 13, 24, 0.74);
  overflow: hidden;
  max-width: 860px;
  box-shadow: var(--shadow);
}

.game-cover img {
  width: 100%;
  height: clamp(190px, 34vw, 300px);
  object-fit: cover;
  display: block;
}

.stats-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-pill {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(25, 35, 63, 0.82);
  border: 1px solid var(--line);
  font-weight: 700;
}

.reels-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.reels-stage {
  background: rgba(8, 12, 23, 0.82);
  border: 1px solid rgba(127, 166, 255, 0.35);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.reel {
  border-radius: 14px;
  border: 1px solid rgba(126, 182, 255, 0.36);
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 42, 74, 0.72), rgba(10, 16, 31, 0.92));
  position: relative;
}

.reel-track {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-rows: 63px;
  transition: transform 0.9s cubic-bezier(0.12, 0.83, 0.24, 1);
  will-change: transform, filter;
}

.reel.spinning .reel-track {
  animation: reelSpin 0.18s linear infinite;
  filter: blur(1.2px) saturate(1.15);
}

.reel.stopping .reel-track {
  filter: blur(0);
}

@keyframes reelSpin {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-63px);
  }
}

.symbol {
  display: grid;
  place-items: center;
  font-size: 2rem;
  text-shadow: 0 0 20px rgba(92, 200, 255, 0.45);
  transform: scale(0.98);
  transition: transform 0.3s ease;
}

.reel-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(142, 235, 255, 0.17), transparent);
  transform: translateX(-130%);
  animation: scanLight 1.8s ease-in-out infinite;
}

@keyframes scanLight {
  0%,
  35%,
  100% {
    transform: translateX(-130%);
  }
  55% {
    transform: translateX(130%);
  }
}

.reel-window {
  position: absolute;
  inset: 63px 0 auto;
  height: 63px;
  border-block: 1px solid rgba(157, 219, 255, 0.34);
  background: rgba(153, 190, 255, 0.08);
  pointer-events: none;
  overflow: hidden;
}

.controls-grid {
  display: grid;
  gap: 10px;
}

.bet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bet-btn {
  border: 1px solid var(--line);
  background: rgba(12, 19, 35, 0.75);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  font-weight: 700;
}

.bet-btn.active {
  background: rgba(61, 172, 255, 0.26);
  border-color: rgba(98, 208, 255, 0.72);
}

.log {
  min-height: 120px;
  max-height: 210px;
  overflow: auto;
  font-size: 0.97rem;
  color: #d4e0ff;
  display: grid;
  gap: 8px;
}

.log-item {
  border-left: 2px solid rgba(131, 207, 255, 0.5);
  padding-left: 8px;
  overflow-wrap: anywhere;
}

.win-glow {
  animation: winPulse 0.65s ease 3;
}

@keyframes winPulse {
  0% {
    box-shadow: 0 0 0 rgba(122, 255, 206, 0);
  }
  50% {
    box-shadow: 0 0 26px rgba(111, 255, 198, 0.58);
  }
  100% {
    box-shadow: 0 0 0 rgba(122, 255, 206, 0);
  }
}

/* Game: Rune Duel */
.duel-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-top: 20px;
}

.health-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(120, 148, 214, 0.2);
  overflow: hidden;
  border: 1px solid rgba(120, 154, 255, 0.34);
}

.health-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #5effb6, #30d3ff);
  transition: width 0.35s ease;
}

.opponent .health-fill {
  background: linear-gradient(90deg, #ff9d76, #ff5e88);
}

.cards-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rune-card {
  border: 1px solid rgba(133, 172, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(30, 43, 78, 0.86), rgba(10, 16, 31, 0.9));
  padding: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.rune-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 223, 255, 0.8);
}

.rune-card.played {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(126, 250, 255, 0.92);
  box-shadow: 0 0 24px rgba(106, 232, 255, 0.24);
}

.rune-card.locked {
  pointer-events: none;
  opacity: 0.65;
}

.rune-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.battle-log {
  max-height: 270px;
  overflow: auto;
  display: grid;
  gap: 8px;
  color: #d8e8ff;
}

.round-badge {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(65, 166, 255, 0.18);
  border: 1px solid rgba(95, 178, 255, 0.45);
  padding: 6px 10px;
  font-weight: 700;
}

.duel-impact {
  animation: duelImpact 0.42s ease;
}

@keyframes duelImpact {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.015);
    filter: brightness(1.25);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* Game: Ember Quest */
.quest-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.grid-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  gap: 10px;
}

.tile {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(126, 171, 255, 0.45);
  background: linear-gradient(160deg, rgba(31, 45, 84, 0.9), rgba(11, 16, 28, 0.96));
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.35rem;
  color: #eaf3ff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(90, 190, 255, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 222, 255, 0.75);
}

.tile.revealed {
  cursor: default;
  transform: none;
  animation: tileSettle 0.3s ease;
}

.tile:disabled {
  color: inherit;
  opacity: 1;
}

.tile.revealing {
  animation: tileFlip 0.22s ease;
}

.tile.treasure {
  background: linear-gradient(180deg, rgba(65, 169, 255, 0.35), rgba(22, 42, 80, 0.9));
  color: #def4ff;
}

.tile.trap {
  background: linear-gradient(180deg, rgba(255, 110, 139, 0.34), rgba(53, 21, 40, 0.92));
  color: #ffe4ed;
}

.tile.boost {
  background: linear-gradient(180deg, rgba(110, 255, 196, 0.28), rgba(18, 46, 42, 0.92));
  color: #ddffef;
}

.result-banner {
  min-height: 60px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: rgba(10, 15, 29, 0.8);
  font-size: 1.1rem;
}

.result-banner.success {
  border-color: rgba(88, 255, 184, 0.65);
  color: #baffdf;
}

.result-banner.fail {
  border-color: rgba(255, 115, 141, 0.72);
  color: #ffd2dd;
}

.result-banner.pulse {
  animation: bannerPulse 0.45s ease;
}

@keyframes tileFlip {
  0% {
    transform: scale(1) rotateY(0deg);
  }
  45% {
    transform: scale(0.92) rotateY(72deg);
  }
  100% {
    transform: scale(1) rotateY(0deg);
  }
}

@keyframes tileSettle {
  from {
    transform: scale(0.93);
  }
  to {
    transform: scale(1);
  }
}

@keyframes bannerPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
select {
  font: inherit;
  border-radius: 10px;
  border: 1px solid rgba(124, 157, 235, 0.44);
  background: rgba(9, 15, 28, 0.88);
  color: var(--text);
  padding: 10px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.alert {
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  display: none;
  font-weight: 600;
}

.alert.ok {
  display: block;
  background: rgba(84, 255, 192, 0.12);
  border: 1px solid rgba(84, 255, 192, 0.42);
}

.alert.error {
  display: block;
  background: rgba(255, 101, 132, 0.12);
  border: 1px solid rgba(255, 101, 132, 0.44);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.ach-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(9, 14, 28, 0.84);
}

.ach-card.unlocked {
  border-color: rgba(100, 255, 187, 0.62);
  box-shadow: 0 0 24px rgba(94, 255, 180, 0.22);
}

.legal-wrap {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.page-title {
  padding-top: 46px;
}

.page-title h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.page-title p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 70ch;
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: auto 1fr;
    min-height: 90px;
  }

  .age-pill {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-links {
    justify-content: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-grid,
  .reels-layout,
  .duel-layout,
  .quest-layout,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav {
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding-block: 0;
    gap: 10px;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 4vw;
    left: 4vw;
    width: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    background: rgba(5, 8, 17, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    max-height: 70vh;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.99);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 120;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    width: 100%;
    font-size: 1rem;
    border-color: rgba(123, 164, 255, 0.16);
    background: rgba(20, 30, 54, 0.2);
  }

  .age-alert {
    width: 92vw;
    padding: 9px 11px;
    gap: 8px;
    font-size: 0.95rem;
  }

  .card-grid,
  .cards-row,
  .ach-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
  }

  .section {
    padding: 34px 0;
  }

  .reel {
    min-height: 170px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 10px;
  }

  .brand {
    font-size: 1.7rem;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-menu-btn {
    min-width: 82px;
    padding: 7px 10px;
  }

  .age-pill {
    font-size: 0.82rem;
    padding: 6px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
