:root {
  --bg: #040814;
  --bg-soft: #0a1125;
  --panel: rgba(12, 20, 42, 0.8);
  --panel-2: rgba(17, 29, 58, 0.92);
  --panel-border: rgba(110, 188, 255, 0.28);
  --text: #eff6ff;
  --muted: #a8b7d8;
  --brand: #34d1ff;
  --brand-2: #5effb2;
  --accent: #ffb347;
  --danger: #ff7ea8;
  --glow: 0 0 18px rgba(52, 209, 255, 0.35);
  --glow-strong: 0 0 34px rgba(94, 255, 178, 0.3);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 3rem);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 5, 12, 0.74), rgba(4, 7, 15, 0.86)),
    radial-gradient(circle at 20% 10%, rgba(52, 209, 255, 0.15), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(94, 255, 178, 0.12), transparent 42%),
    radial-gradient(circle at 70% 90%, rgba(255, 179, 71, 0.11), transparent 36%),
    url("../img/background.jpg") center top / cover fixed no-repeat,
    linear-gradient(180deg, #030712 0%, #050a1a 55%, #04060f 100%);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #8de9ff;
}

a:focus-visible,
button:focus-visible,
.memory-card:focus-visible,
.target:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(94, 255, 178, 0.85);
  outline-offset: 2px;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(5, 11, 28, 0.72);
  border-bottom: 1px solid rgba(90, 150, 255, 0.15);
}

.site-purpose-bar {
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(90deg, rgba(52,209,255,0.08), rgba(94,255,178,0.06), rgba(255,179,71,0.05));
}

.site-purpose-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.45rem 0;
  color: #dff6ff;
  font-size: 0.83rem;
  line-height: 1.35;
}

.site-purpose-bar__inner strong {
  color: #f5fcff;
  margin-right: 0.4rem;
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand__logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 18px rgba(52, 209, 255, 0.14);
  padding: 0.15rem 0.35rem;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(94,255,178,0.2));
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 35%, #c2f6ff 0%, #62dcff 35%, #2457ff 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.35),
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 22px rgba(52, 209, 255, 0.35);
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
}

.brand__meta small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__meta strong {
  display: block;
  font-size: 1.02rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: var(--text);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(52, 209, 255, 0.09);
  border-color: rgba(52, 209, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), var(--glow);
}

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

.chip {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.03);
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.chip strong {
  color: var(--text);
  margin-left: 0.3rem;
}

main {
  flex: 1;
  padding: 1.2rem 0 2.4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(118, 199, 255, 0.2);
  background:
    radial-gradient(circle at 18% 15%, rgba(52, 209, 255, 0.2), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(94, 255, 178, 0.17), transparent 38%),
    linear-gradient(180deg, rgba(12, 20, 42, 0.9), rgba(7, 11, 22, 0.95));
  box-shadow: var(--shadow);
  padding: 2rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
}

.hero::before {
  width: 160px;
  height: 160px;
  background: #34d1ff;
  top: -20px;
  right: 12%;
  animation: drift 7s ease-in-out infinite;
}

.hero::after {
  width: 120px;
  height: 120px;
  background: #5effb2;
  bottom: -10px;
  left: 9%;
  animation: drift 9s ease-in-out infinite reverse;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d0f6ff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 255, 178, 0.25);
  background: rgba(94, 255, 178, 0.06);
  margin-bottom: 0.8rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 16px rgba(94,255,178,0.7);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 1rem;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 209, 255, 0.28);
  box-shadow: var(--glow);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(52, 209, 255, 0.2), rgba(94, 255, 178, 0.14));
  border-color: rgba(52, 209, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(52, 209, 255, 0.1), var(--glow);
}

.btn--accent {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.25), rgba(255, 126, 168, 0.14));
  border-color: rgba(255, 179, 71, 0.3);
}

.btn--ghost {
  background: transparent;
}

.hero-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.hero-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.hero-card + .hero-card {
  margin-top: 0.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.stat {
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem;
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  color: #ddf8ff;
}

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

.section {
  margin-top: 1.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 17, 38, 0.84), rgba(8, 13, 28, 0.9));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section__header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -20% 70% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(52, 209, 255, 0.1);
  filter: blur(18px);
}

.card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-showcase {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  min-height: 210px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 36px rgba(0,0,0,0.22);
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0.05), rgba(5, 9, 18, 0.56)),
    radial-gradient(circle at 12% 16%, rgba(94,255,178,0.12), transparent 46%);
  pointer-events: none;
}

.hero-showcase__caption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6, 11, 22, 0.72);
  backdrop-filter: blur(6px);
}

.hero-showcase__caption strong {
  display: block;
  color: #f6fbff;
  margin-bottom: 0.15rem;
}

.hero-showcase__caption span {
  color: #d6e3fb;
  font-size: 0.84rem;
}

.card-media {
  position: relative;
  margin: -1rem -1rem 0.85rem;
  border-radius: 17px 17px 12px 12px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 14, 0.05) 0%, rgba(4, 7, 14, 0.55) 100%),
    linear-gradient(120deg, rgba(52,209,255,0.12), transparent 55%, rgba(94,255,178,0.08));
  pointer-events: none;
}

.card:hover .card-media img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.card-media__label {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e7f4ff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.tag {
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d6e1fb;
}

.notice {
  border-radius: 16px;
  border: 1px solid rgba(255, 179, 71, 0.25);
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.08), rgba(255, 126, 168, 0.06));
  padding: 0.9rem;
  color: #ffe8c9;
}

.notice strong {
  color: #fff4dc;
}

.disclosure-box {
  border-radius: 16px;
  border: 1px solid rgba(94, 255, 178, 0.2);
  background: rgba(94, 255, 178, 0.05);
  padding: 0.85rem;
  color: #dafef0;
}

.disclosure-box p {
  margin: 0.3rem 0;
}

.list-clean {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.list-clean li {
  margin: 0.25rem 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.kicker {
  color: #d4f8ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.mini-steps {
  counter-reset: step;
  display: grid;
  gap: 0.7rem;
}

.mini-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.mini-step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(52, 209, 255, 0.25);
  background: rgba(52, 209, 255, 0.08);
  color: #d7f8ff;
  font-weight: 700;
}

.mini-step h4 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.mini-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-title {
  margin-bottom: 0.85rem;
}

.page-title p {
  margin: 0;
  color: var(--muted);
}

.prose {
  color: var(--text);
}

.prose p {
  margin: 0.65rem 0;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  margin-top: 1rem;
}

.prose strong {
  color: #eef8ff;
}

.prose .callout {
  border-left: 3px solid rgba(52,209,255,0.5);
  padding: 0.65rem 0.85rem;
  border-radius: 0 12px 12px 0;
  background: rgba(52,209,255,0.05);
  color: #d9f5ff;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  padding: 0.85rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

th {
  color: #d7f8ff;
  background: rgba(52,209,255,0.05);
  font-weight: 600;
}

td {
  color: var(--muted);
}

.review {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 1rem;
}

.review__header {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rating {
  color: #ffe08a;
  font-weight: 700;
}

.review p {
  margin: 0;
  color: var(--muted);
}

.review-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 0 0 0.75rem;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,0.02);
}

.review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.review-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,8,16,0.04), rgba(4,8,16,0.48));
  pointer-events: none;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.badge {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 209, 255, 0.24);
  box-shadow: var(--glow);
}

.badge.is-unlocked {
  border-color: rgba(94,255,178,0.24);
  box-shadow: var(--glow-strong);
}

.badge__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
}

.badge h3 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.badge p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.badge small {
  color: #b8f8d8;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(52,209,255,0.9), rgba(94,255,178,0.9));
  box-shadow: 0 0 12px rgba(52,209,255,0.45);
  transition: width 0.25s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

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

label {
  color: #d9eeff;
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  color: #eef6ff;
  background: #091227;
}

.chip select {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 14, 30, 0.92);
  color: var(--text);
  font-size: 0.82rem;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(52, 209, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(52, 209, 255, 0.12);
}

.form-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: 340px;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(94,255,178,0.22);
  background: rgba(10, 18, 36, 0.92);
  color: #e8fff5;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(3, 7, 18, 0.7);
  margin-top: 2rem;
}

.site-footer__inner {
  padding: 1.2rem 0 1.6rem;
  display: grid;
  gap: 1rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer-col p,
.footer-col li,
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.footer-brand__logo {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.footer-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand__text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.8rem;
}

.legal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-strip .tag {
  color: #cae4ff;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  place-items: center;
  background: rgba(1, 3, 8, 0.72);
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.overlay.is-visible {
  display: grid;
}

.modal {
  width: min(520px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 85% 12%, rgba(52,209,255,0.13), transparent 50%),
    linear-gradient(180deg, rgba(10, 17, 37, 0.96), rgba(7, 11, 24, 0.98));
  padding: 1.05rem;
  box-shadow: var(--shadow);
}

.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.modal p {
  color: var(--muted);
  margin: 0.4rem 0;
}

.modal .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(7, 12, 25, 0.92);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  border-radius: 999px;
  padding: 0.38rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d7e8ff;
  font-size: 0.8rem;
}

.game-shell {
  display: grid;
  gap: 1rem;
}

.game-header {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(12, 20, 42, 0.86), rgba(8, 12, 24, 0.92));
  padding: 1rem;
  box-shadow: var(--shadow);
}

.game-header__row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.game-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.game-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.game-cover {
  position: relative;
  margin-top: 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  aspect-ratio: 16 / 5.7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

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

.game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 18, 0.06) 0%, rgba(6, 9, 18, 0.5) 100%),
    radial-gradient(circle at 20% 12%, rgba(52,209,255,0.18), transparent 42%);
  pointer-events: none;
}

.game-cover__caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  max-width: min(560px, calc(100% - 1.8rem));
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6, 10, 20, 0.7);
  backdrop-filter: blur(6px);
}

.game-cover__caption strong {
  display: block;
  color: #fbfeff;
}

.game-cover__caption span {
  color: #d4e5ff;
  font-size: 0.86rem;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.game-panel {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.game-panel h2 {
  font-size: 1.05rem;
}

.game-sidebar {
  display: grid;
  gap: 1rem;
}

.game-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.metric {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 0.65rem;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.02rem;
  color: #eaf8ff;
}

/* Reels game */
.reels-stage {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(52,209,255,0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(52,209,255,0.1), transparent 55%),
    linear-gradient(180deg, rgba(7, 13, 27, 0.95), rgba(5, 8, 17, 0.95));
  padding: 0.9rem;
  overflow: hidden;
}

.reels-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%, transparent 82%, rgba(255,255,255,0.03));
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.reel-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  padding: 0.25rem;
  overflow: hidden;
}

.reel-frame::before,
.reel-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 2;
  pointer-events: none;
}

.reel-frame::before {
  top: 0;
  background: linear-gradient(180deg, rgba(5, 9, 18, 0.9), transparent);
}

.reel-frame::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(5, 9, 18, 0.9), transparent);
}

.reel-column {
  display: grid;
  gap: 0.6rem;
  will-change: transform, filter;
  transform: translateY(0);
}

.reel-column.is-spinning {
  animation: reelColumnRoll 0.14s linear infinite alternate;
}

.reel-column.is-stopping {
  animation: reelColumnSettle 0.22s ease-out 1;
}

.reel-column.is-spinning .reel-cell {
  filter: blur(1.25px) brightness(1.08);
}

.reel-cell {
  border-radius: 14px;
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.06), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  font-size: 1.9rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
  position: relative;
  overflow: hidden;
}

.reel-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 35%, transparent 70%, rgba(255,255,255,0.05));
  opacity: 0.55;
  pointer-events: none;
}

.reel-cell.is-spinning {
  animation: pulseSpin 0.22s linear infinite alternate;
}

.reel-cell.is-win {
  border-color: rgba(94,255,178,0.35);
  box-shadow: 0 0 22px rgba(94,255,178,0.22);
  transform: translateY(-2px) scale(1.02);
}

.reel-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.range-wrap {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.range-wrap input[type="range"] {
  padding: 0;
}

.spin-log {
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 0.65rem;
  min-height: 58px;
  color: var(--muted);
  font-size: 0.88rem;
}

.payline-hint {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.payline-hint .pill {
  text-align: center;
}

/* Card memory game */
.memory-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.memory-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.memory-card {
  position: relative;
  aspect-ratio: 3 / 4;
  perspective: 1000px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.memory-card:disabled {
  cursor: default;
}

.memory-card__inner {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transition: transform 0.42s cubic-bezier(.2,.7,.15,1);
  transform-style: preserve-3d;
}

.memory-card.is-flipped .memory-card__inner,
.memory-card.is-matched .memory-card__inner {
  transform: rotateY(180deg);
}

.memory-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  display: grid;
  place-items: center;
}

.memory-face--back {
  background:
    radial-gradient(circle at 20% 20%, rgba(52,209,255,0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(94,255,178,0.18), transparent 48%),
    linear-gradient(180deg, rgba(13, 21, 43, 0.96), rgba(8, 13, 27, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.memory-face--front {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.memory-glyph {
  font-size: 2rem;
}

.memory-card.is-matched .memory-face--front {
  border-color: rgba(94,255,178,0.35);
  box-shadow: 0 0 18px rgba(94,255,178,0.22);
}

/* Reaction game */
.arena-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(52,209,255,0.06), transparent 70%),
    linear-gradient(180deg, rgba(7, 12, 25, 0.95), rgba(5, 8, 17, 0.95));
  padding: 0.8rem;
}

.arena {
  position: relative;
  width: 100%;
  height: 430px;
  border-radius: 14px;
  border: 1px solid rgba(52,209,255,0.14);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(52,209,255,0.08), transparent 65%),
    #060b16;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.arena__hud {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.7rem;
  color: var(--muted);
}

.target {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.7);
  animation: targetIn 0.18s ease forwards;
  box-shadow: 0 0 18px rgba(52,209,255,0.22);
  user-select: none;
}

.target::before,
.target::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.target::before {
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.36);
}

.target::after {
  inset: 22px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.target--common {
  background: radial-gradient(circle at 35% 35%, rgba(52,209,255,0.35), rgba(52,209,255,0.1));
}

.target--rare {
  background: radial-gradient(circle at 35% 35%, rgba(94,255,178,0.4), rgba(94,255,178,0.12));
  box-shadow: 0 0 22px rgba(94,255,178,0.28);
}

.target--hazard {
  background: radial-gradient(circle at 35% 35%, rgba(255,126,168,0.45), rgba(255,126,168,0.15));
  box-shadow: 0 0 22px rgba(255,126,168,0.3);
}

.target.is-hit {
  animation: targetHit 0.22s ease forwards;
}

.target.is-missed {
  animation: targetMiss 0.25s ease forwards;
}

.floating-score {
  position: absolute;
  color: #e9fbff;
  text-shadow: 0 0 12px rgba(52,209,255,0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: floatUp 0.7s ease forwards;
  font-weight: 700;
}

.crosshair {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  opacity: 0.7;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.28);
}

.crosshair::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.crosshair::after {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Animated accents */
.sparkline {
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(52,209,255,0.08), rgba(94,255,178,0.16), rgba(255,179,71,0.1));
  position: relative;
  overflow: hidden;
}

.sparkline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  animation: sweep 2.4s linear infinite;
}

.stagger-in {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.45s ease forwards;
}

.stagger-in:nth-child(2) { animation-delay: 0.04s; }
.stagger-in:nth-child(3) { animation-delay: 0.08s; }
.stagger-in:nth-child(4) { animation-delay: 0.12s; }
.stagger-in:nth-child(5) { animation-delay: 0.16s; }
.stagger-in:nth-child(6) { animation-delay: 0.2s; }

.hidden {
  display: none !important;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -12px) scale(1.05); }
}

@keyframes pulseSpin {
  from { transform: translateY(0); filter: brightness(0.9); }
  to { transform: translateY(-3px); filter: brightness(1.15); }
}

@keyframes reelColumnRoll {
  from { transform: translateY(-14px); }
  to { transform: translateY(14px); }
}

@keyframes reelColumnSettle {
  0% { transform: translateY(-10px); }
  70% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

@keyframes sweep {
  from { left: -32%; }
  to { left: 112%; }
}

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

@keyframes targetIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes targetHit {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

@keyframes targetMiss {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.65); }
}

@keyframes floatUp {
  from { opacity: 0; transform: translate(-50%, -40%); }
  12% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -115%); }
}

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

@media (max-width: 1400px) {
  .brand__meta small {
    display: none;
  }

  .site-nav a {
    padding: 0.48rem 0.62rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 1260px) {
  .site-header__inner {
    height: auto;
    min-height: var(--header-height);
    padding: 0.65rem 0;
    align-items: start;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-profile {
    display: none;
  }

  .brand__meta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    padding: 0.7rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8, 14, 30, 0.96);
    box-shadow: var(--shadow);
    display: none;
    overflow: visible;
    justify-content: initial;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .site-nav a {
    border-radius: 12px;
  }
}

@media (max-width: 1040px) {
  .hero__grid,
  .split,
  .game-layout,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .game-sidebar {
    order: -1;
  }

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

@media (max-width: 820px) {
  .hero {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .stats-grid,
  .game-metrics {
    grid-template-columns: 1fr;
  }

  .grid--3,
  .grid--2,
  .badge-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner__inner,
  .footer-bottom,
  .game-header__row {
    flex-direction: column;
    align-items: stretch;
  }

  .arena {
    height: 340px;
  }

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

  .game-cover {
    aspect-ratio: 16 / 7.5;
  }

  .site-purpose-bar__inner {
    justify-content: flex-start;
    text-align: left;
    font-size: 0.78rem;
  }
}

@media (max-width: 620px) {
  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .brand__logo {
    width: 92px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(var(--max), calc(100% - 1rem));
  }

  .hero__actions .btn,
  .button-row .btn {
    flex: 1 1 100%;
  }

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

  .reel-cell {
    min-height: 70px;
    font-size: 1.55rem;
  }

  .hero-showcase {
    min-height: 180px;
  }

  .card-media {
    aspect-ratio: 16 / 11;
  }
}
