﻿@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=Audiowide&display=swap');

:root {
  --bg: #061421;
  --bg-deep: #04101a;
  --bg-soft: #0d2233;
  --surface: #10283c;
  --surface-alt: #17334b;
  --surface-light: #edf5fb;
  --text: #ebf4fa;
  --text-muted: #9fb6c7;
  --text-dark: #162b3c;
  --accent: #1fb9a6;
  --accent-strong: #12d5bf;
  --accent-warm: #ff8e42;
  --accent-warm-strong: #ff6d4a;
  --success: #5dd39e;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --checker-a: #10324a;
  --checker-b: #1a4562;
  --checker-c: #f2f8fc;
  --checker-d: #ddeaf4;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 24px rgba(2, 12, 18, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Oxanium', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(31, 185, 166, 0.2), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(255, 142, 66, 0.1), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

body.light-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 185, 166, 0.16), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 142, 66, 0.12), transparent 45%),
    #f8fcff;
  color: var(--text-dark);
}

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

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
}

.top-age-banner {
  text-align: center;
  padding: 0.42rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff5f5;
  background: linear-gradient(145deg, #b22b4a, #8c1f46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

body.light-page .top-age-banner {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 20, 33, 0.86);
  backdrop-filter: blur(12px);
}

body.light-page .site-header {
  background: rgba(248, 252, 255, 0.88);
  border-bottom: 1px solid rgba(16, 40, 60, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: 'Audiowide', 'Oxanium', sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-warm));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-size: 1.08rem;
  font-family: 'Audiowide', 'Oxanium', sans-serif;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

body.light-page .main-nav a {
  color: #385166;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--text);
  background: rgba(31, 185, 166, 0.14);
}

body.light-page .main-nav a:hover,
body.light-page .main-nav a[aria-current='page'] {
  color: #0d2c40;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.coins-pill,
.age-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.coins-pill {
  background: rgba(255, 255, 255, 0.08);
}

body.light-page .coins-pill {
  background: rgba(13, 44, 64, 0.1);
}

.age-pill {
  background: rgba(255, 107, 107, 0.18);
  color: #ffdede;
}

body.light-page .age-pill {
  color: #7f1d1d;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.82rem 1.15rem;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-warm-strong));
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.light-page .btn-secondary {
  color: #163247;
  background: #e9f3fb;
  border-color: #c8dce9;
}

.btn-outline {
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-page .btn-outline {
  border-color: rgba(22, 43, 60, 0.3);
}

.hero {
  padding: 4rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(31, 185, 166, 0.2);
  color: #a8fff5;
  margin-bottom: 1.25rem;
}

body.light-page .badge {
  background: #d8f6f1;
  color: #0d6158;
}

h1,
h2,
h3,
h4 {
  font-family: 'Audiowide', 'Oxanium', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

body.light-page .hero p {
  color: #4a6375;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats-inline .stat {
  min-width: 140px;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
}

body.light-page .stats-inline .stat {
  background: rgba(13, 44, 64, 0.08);
}

.stats-inline strong {
  display: block;
  font-size: 1.28rem;
  color: #fff;
}

body.light-page .stats-inline strong {
  color: #10283c;
}

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

.visual-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.visual-board {
  padding: 1.3rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  min-height: 390px;
  background:
    linear-gradient(135deg, rgba(31, 185, 166, 0.16), rgba(255, 142, 66, 0.14)),
    var(--bg-soft);
}

.visual-board div {
  border-radius: 12px;
  min-height: 62px;
  background: rgba(255, 255, 255, 0.12);
  animation: popIn 0.6s ease both;
}

.visual-board div:nth-child(odd) {
  background: rgba(31, 185, 166, 0.32);
}

.visual-board div:nth-child(3n) {
  background: rgba(255, 142, 66, 0.3);
}

.visual-board-art {
  position: relative;
  display: block;
  padding: 0;
  min-height: 390px;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 185, 166, 0.3), transparent 35%),
    radial-gradient(circle at 82% 16%, rgba(255, 142, 66, 0.2), transparent 38%),
    #0d2233;
}

.visual-hero-image {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
}

.visual-float-chip {
  position: absolute;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ecfbff;
  background: rgba(7, 26, 41, 0.72);
  border: 1px solid rgba(170, 221, 247, 0.42);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.visual-float-chip-a {
  top: 18px;
  left: 18px;
}

.visual-float-chip-b {
  right: 18px;
  top: 18px;
}

.visual-float-chip-c {
  left: 24px;
  bottom: 20px;
}

@keyframes popIn {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.section {
  padding: 2.2rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

body.light-page .section-head p {
  color: #4e687a;
}

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

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

.checker-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.checker-grid.dark .checker-card:nth-child(odd) {
  background: var(--checker-a);
}

.checker-grid.dark .checker-card:nth-child(even) {
  background: var(--checker-b);
}

.checker-grid.light .checker-card:nth-child(odd) {
  background: var(--checker-c);
}

.checker-grid.light .checker-card:nth-child(even) {
  background: var(--checker-d);
}

.checker-grid.light .checker-card {
  border-color: rgba(12, 35, 49, 0.08);
  color: #153146;
}

/* Keep strong contrast on dark pages (e.g. homepage game cards). */
body:not(.light-page):not(.game-universe) .checker-grid.light .checker-card:nth-child(odd) {
  background: #123650;
}

body:not(.light-page):not(.game-universe) .checker-grid.light .checker-card:nth-child(even) {
  background: #1a4562;
}

body:not(.light-page):not(.game-universe) .checker-grid.light .checker-card {
  border-color: rgba(163, 196, 232, 0.28);
  color: #e7f3ff;
}

body:not(.light-page):not(.game-universe) .checker-grid.light .checker-card .btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #f1f9ff;
}

.checker-card h3,
.checker-card h4 {
  margin-bottom: 0.55rem;
}

.checker-card p {
  margin: 0;
  color: inherit;
  opacity: 0.9;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

body.light-page .pill {
  background: rgba(21, 49, 70, 0.08);
}

.cta-band {
  margin-top: 2rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(31, 185, 166, 0.18), rgba(255, 142, 66, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.light-page .cta-band {
  border-color: rgba(17, 44, 64, 0.12);
}

.timeline {
  position: relative;
  margin: 1.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 1.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
}

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

body.light-page .timeline-item p {
  color: #4f697b;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.9rem;
}

body.light-page .faq-list details {
  border-color: rgba(15, 45, 65, 0.12);
  background: rgba(15, 45, 65, 0.05);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.8rem 0;
}

.faq-list p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

body.light-page .faq-list p {
  color: #506a7c;
}

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

label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.35rem;
}

.field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
}

body.light-page .field {
  border-color: rgba(16, 40, 60, 0.16);
  background: #fff;
}

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

.check-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.form-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

body.light-page .form-note {
  color: #4f687a;
}

.game-page-intro {
  padding: 2.8rem 0 1.8rem;
}

.game-grid {
  display: grid;
  gap: 1.1rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.game-card h2 {
  margin-bottom: 0.45rem;
}

.game-card p {
  margin-top: 0;
  color: var(--text-muted);
}

.machine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.reel-wrap {
  display: flex;
  gap: 0.55rem;
}

.reel {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.game-side {
  flex: 1;
  min-width: 230px;
}

.score-box {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}

#wheel-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.wheel-shell {
  position: relative;
  width: 230px;
  height: 230px;
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  background:
    conic-gradient(
      #ff9966 0deg 45deg,
      #ffd166 45deg 90deg,
      #73e2a7 90deg 135deg,
      #61dafb 135deg 180deg,
      #b28dff 180deg 225deg,
      #ff8fab 225deg 270deg,
      #7be0c3 270deg 315deg,
      #f4a261 315deg 360deg
    );
  transition: transform 4.2s cubic-bezier(0.17, 0.93, 0.2, 1);
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: calc(50% - 10px);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #fff;
}

.segment-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  font-size: 0.84rem;
  margin-top: 0.6rem;
}

.segment-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.segment-legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 3px;
}

#memory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 72px));
  gap: 0.55rem;
}

.memory-card {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #1f3f57, #2a5b7b);
  color: transparent;
  font-size: 1.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.memory-card:hover {
  transform: translateY(-1px);
}

.memory-card.flipped,
.memory-card.matched {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.memory-card.matched {
  border-color: rgba(93, 211, 158, 0.7);
}

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

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

.achievement.locked {
  opacity: 0.68;
}

.achievement.unlocked {
  border-color: rgba(93, 211, 158, 0.55);
  background: rgba(93, 211, 158, 0.14);
}

.achievement h3 {
  margin-bottom: 0.45rem;
  font-size: 1.14rem;
}

.achievement time {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

body.light-page .achievement {
  border-color: rgba(17, 44, 64, 0.14);
  background: rgba(17, 44, 64, 0.05);
}

body.light-page .achievement.unlocked {
  background: rgba(93, 211, 158, 0.18);
}

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

.kpi {
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.07);
}

.kpi strong {
  font-size: 1.35rem;
  display: block;
}

.kpi span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(17, 44, 64, 0.14);
  background: rgba(17, 44, 64, 0.05);
}

.legal-box h2,
.legal-box h3 {
  margin-bottom: 0.5rem;
}

.legal-box p,
.legal-box li {
  color: #5f7f93;
}

.legal-box ul {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: 2.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.7rem 0 2.2rem;
  background: rgba(0, 0, 0, 0.2);
}

body.light-page .site-footer {
  border-top-color: rgba(17, 44, 64, 0.12);
  background: rgba(17, 44, 64, 0.04);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-grid h4 {
  margin: 0 0 0.6rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-grid p,
.footer-grid li {
  color: var(--text-muted);
}

body.light-page .footer-grid p,
body.light-page .footer-grid li {
  color: #526d80;
}

.footer-grid ul {
  margin: 0;
  padding-left: 1rem;
}

.footer-bottom {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--text-muted);
}

body.light-page .footer-bottom {
  border-top-color: rgba(17, 44, 64, 0.12);
  color: #5f7888;
}

.footer-contact-line {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #eaf6ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-line a {
  color: #baf4ec;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact-line a:hover {
  color: #e8fffa;
}

body.light-page .footer-contact-line {
  color: #1f3b50;
  background: rgba(17, 44, 64, 0.07);
  border-color: rgba(17, 44, 64, 0.16);
}

body.light-page .footer-contact-line a {
  color: #127972;
}

#age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 10, 16, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#age-gate.active {
  display: flex;
}

.gate-card {
  max-width: 540px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0d2d3f, #102a3a);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.gate-card p {
  color: #bfd2e0;
}

.gate-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1800;
  width: min(860px, 94vw);
  background: rgba(6, 20, 33, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.9rem;
  display: none;
}

body.light-page #cookie-banner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 44, 64, 0.2);
}

#cookie-banner.active {
  display: block;
}

.cookie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
}

.cookie-row p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  min-width: 260px;
}

body.light-page .cookie-row p {
  color: #496376;
}

#toast-area {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2100;
  display: grid;
  gap: 0.5rem;
}

.toast {
  min-width: 200px;
  max-width: 320px;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(8, 25, 39, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f2f9ff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
}

.toast.good {
  border-color: rgba(93, 211, 158, 0.68);
}

.toast.warn {
  border-color: rgba(255, 209, 102, 0.68);
}

.toast.bad {
  border-color: rgba(255, 107, 107, 0.68);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 4vw 0.95rem;
    background: rgba(6, 20, 33, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.light-page .main-nav {
    background: rgba(248, 252, 255, 0.98);
    border-bottom-color: rgba(17, 44, 64, 0.14);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 70px;
    flex-wrap: wrap;
    padding: 0.4rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .checker-grid,
  .checker-grid.cols-3,
  .form-grid,
  .footer-grid,
  .kpi-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

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

  .memory-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  #wheel-area {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Enhanced Game Universe
   ========================= */
body.game-universe {
  background:
    radial-gradient(circle at 15% -10%, rgba(255, 166, 87, 0.2), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(98, 208, 255, 0.24), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(143, 111, 255, 0.16), transparent 45%),
    #070f25;
  color: #eff7ff;
}

body.game-universe .site-header {
  background: rgba(7, 15, 37, 0.9);
  border-bottom: 1px solid rgba(148, 178, 215, 0.2);
}

.arcade-wrap {
  width: min(1260px, 94vw);
  margin: 0 auto;
}

.arcade-hero {
  padding: 2.6rem 0 1.1rem;
}

.arcade-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 0.55rem;
}

.arcade-hero p {
  color: #adc7df;
  max-width: 940px;
  margin: 0;
}

.arcade-topbar {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.balance-chip,
.status-chip,
.live-chip {
  border-radius: 999px;
  padding: 0.48rem 0.88rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.balance-chip strong,
.status-chip strong,
.live-chip strong {
  color: #fff;
}

.live-chip {
  background: linear-gradient(145deg, rgba(255, 139, 92, 0.26), rgba(255, 202, 124, 0.15));
}

.glass-panel {
  border-radius: 24px;
  border: 1px solid rgba(161, 195, 237, 0.22);
  background:
    linear-gradient(145deg, rgba(12, 30, 59, 0.88), rgba(8, 23, 44, 0.9));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.slot-stage {
  margin-top: 1rem;
  padding: 1rem;
}

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

.slot-cell {
  min-height: 135px;
  border-radius: 18px;
  border: 1px solid rgba(158, 193, 235, 0.24);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(145deg, rgba(13, 38, 74, 0.82), rgba(10, 27, 52, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.slot-cell .symbol {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.35));
}

.slot-cell .symbol-name {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8d2ec;
  font-weight: 700;
}

.slot-cell.spin-flash {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 18px rgba(86, 187, 255, 0.45);
}

.slot-cell.win {
  border-color: rgba(255, 202, 112, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 202, 112, 0.48),
    0 0 22px rgba(255, 202, 112, 0.35);
}

.slot-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.bet-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.bet-cluster strong {
  font-size: 1.35rem;
  color: #ffcd7e;
  min-width: 52px;
  text-align: center;
}

.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 199, 109, 0.75);
  background: rgba(8, 29, 57, 0.85);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.round-btn:hover {
  filter: brightness(1.08);
}

.spin-main-btn {
  min-width: 190px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, #f4b34f, #d48f2d);
  border: 0;
  border-radius: 16px;
  padding: 0.92rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(203, 136, 33, 0.4);
}

.spin-main-btn:hover {
  transform: translateY(-1px);
}

.spin-main-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.aux-buttons {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.aux-buttons button {
  border-radius: 10px;
  border: 1px solid rgba(177, 209, 249, 0.4);
  background: rgba(8, 29, 57, 0.8);
  color: #d6e9fa;
  font-weight: 700;
  padding: 0.52rem 0.8rem;
  cursor: pointer;
}

.aux-buttons button:hover {
  filter: brightness(1.1);
}

.game-line {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.game-line .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #d2e7fb;
}

.game-log {
  margin-top: 0.9rem;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(167, 198, 237, 0.24);
  background: rgba(5, 20, 37, 0.6);
  padding: 0.75rem 0.85rem;
  color: #b9d2e7;
}

.payout-board {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.payout-board article {
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(167, 198, 237, 0.2);
}

.payout-board h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.payout-board p {
  margin: 0;
  color: #b8d2e8;
  font-size: 0.9rem;
}

.payline-list {
  margin-top: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(157, 190, 231, 0.2);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}

.payline-list ol {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: #b9d2e8;
}

.game-meta-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.game-meta-grid .kpi {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(163, 198, 235, 0.2);
}

.game-meta-grid .kpi strong {
  color: #fff;
}

/* Wheel arena */
.wheel-stage {
  margin-top: 1rem;
  padding: 1rem;
}

.wheel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.wheel-box {
  display: flex;
  justify-content: center;
}

.wheel-shell-xl {
  position: relative;
  width: min(440px, 82vw);
  aspect-ratio: 1 / 1;
}

.wheel-rotor {
  position: absolute;
  inset: 0;
  transition: transform 5s cubic-bezier(0.15, 0.92, 0.14, 1);
}

#wheel-xl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 12px solid rgba(179, 214, 250, 0.32);
  background: conic-gradient(
    #ffb56b 0deg 30deg,
    #ff8fa4 30deg 60deg,
    #89f0c2 60deg 90deg,
    #74d8ff 90deg 120deg,
    #b399ff 120deg 150deg,
    #ffd166 150deg 180deg,
    #73e2a7 180deg 210deg,
    #61dafb 210deg 240deg,
    #ff9966 240deg 270deg,
    #7be0c3 270deg 300deg,
    #f4a261 300deg 330deg,
    #c8a2ff 330deg 360deg
  );
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.12),
    0 24px 45px rgba(0, 0, 0, 0.4);
}

.wheel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.38rem;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  color: #10243a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 38, 61, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.wheel-pointer-xl {
  position: absolute;
  top: -10px;
  left: calc(50% - 16px);
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.48));
}

.wheel-center-hub {
  position: absolute;
  inset: 50%;
  z-index: 3;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7, 22, 41, 0.92);
  border: 3px solid rgba(255, 214, 141, 0.8);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffe0ae;
}

.wheel-panel {
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(161, 195, 237, 0.2);
}

.wheel-panel h3 {
  margin-bottom: 0.5rem;
}

.wheel-result-box {
  margin-top: 0.8rem;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(167, 198, 237, 0.2);
  background: rgba(5, 20, 37, 0.58);
  padding: 0.7rem 0.8rem;
  color: #b8d1e7;
}

.segment-chip-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}

.segment-chip {
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(165, 198, 239, 0.2);
}

.wheel-controls {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.toggle-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 206, 120, 0.62);
  background: rgba(255, 198, 102, 0.15);
  color: #ffe1b2;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.toggle-btn.active {
  background: rgba(255, 198, 102, 0.34);
}

/* Memory quest */
.memory-stage-enhanced {
  margin-top: 1rem;
  padding: 1rem;
}

.memory-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.mode-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(163, 199, 239, 0.26);
  overflow: hidden;
}

.mode-switch button {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #d7ebff;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-switch button.active {
  background: linear-gradient(145deg, #1fb9a6, #17a8df);
  color: #fff;
}

.memory-board-enhanced {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.58rem;
}

.memory-tile {
  position: relative;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
  aspect-ratio: 1 / 1;
}

.memory-tile-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.44s ease;
}

.memory-tile.flipped .memory-tile-inner,
.memory-tile.matched .memory-tile-inner {
  transform: rotateY(180deg);
}

.memory-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-face.front {
  border: 1px solid rgba(160, 197, 237, 0.26);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.17), transparent 50%),
    linear-gradient(145deg, #17395b, #0f2b46);
}

.memory-face.back {
  transform: rotateY(180deg);
  border: 1px solid rgba(255, 210, 120, 0.56);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(145deg, #294f77, #13365a);
  font-size: clamp(1.4rem, 3.6vw, 2.05rem);
}

.memory-tile.matched .memory-face.back {
  box-shadow: 0 0 0 1px rgba(131, 238, 181, 0.55), 0 0 18px rgba(131, 238, 181, 0.35);
}

.memory-front-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  color: #f6fcff;
  text-shadow: 0 0 12px rgba(167, 240, 255, 0.65);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.34), transparent 55%),
    linear-gradient(145deg, #32d6c3, #2b7cff);
  border: 1px solid rgba(232, 249, 255, 0.78);
  box-shadow:
    0 0 0 2px rgba(17, 45, 72, 0.45),
    0 10px 22px rgba(8, 20, 36, 0.48),
    0 0 16px rgba(89, 201, 255, 0.5);
}

.memory-front-mark::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  right: 8px;
  top: 9px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

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

.memory-metrics .kpi {
  border: 1px solid rgba(163, 199, 239, 0.2);
}

/* Overview page with rules + gallery */
.game-guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.rule-stack {
  display: grid;
  gap: 0.75rem;
}

.rule-card {
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid rgba(161, 195, 237, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.rule-card h3 {
  margin-bottom: 0.45rem;
}

.rule-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: #bad4e9;
}

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

.gallery-game {
  border-radius: 18px;
  padding: 0.85rem;
  border: 1px solid rgba(161, 195, 237, 0.22);
  background:
    linear-gradient(145deg, rgba(13, 33, 63, 0.9), rgba(10, 24, 43, 0.9));
}
.gallery-game img {
  border-radius: 5px;
}
.gallery-preview {
  min-height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(174, 204, 241, 0.2);
  background: rgba(5, 20, 37, 0.66);
  padding: 0.5rem;
  overflow: hidden;
}

.preview-slot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  height: 100%;
}

.preview-slot span,
.preview-memory span {
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.preview-wheel {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-wheel .mini-wheel {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.16);
  background: conic-gradient(#ff9966, #ffd166, #73e2a7, #61dafb, #b28dff, #ff8fab, #7be0c3, #f4a261);
}

.preview-memory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  height: 100%;
}

.gallery-game h3 {
  margin: 0.65rem 0 0.35rem;
}

.gallery-game p {
  margin: 0;
  color: #b5cfe6;
  font-size: 0.9rem;
}

.launch-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.launch-row .btn {
  min-width: 186px;
}

@media (max-width: 1100px) {
  .slot-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wheel-layout,
  .game-guide-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-cell {
    min-height: 112px;
  }

  .payout-board {
    grid-template-columns: 1fr;
  }

  .segment-chip-grid,
  .gallery-grid-enhanced,
  .game-meta-grid,
  .memory-metrics {
    grid-template-columns: 1fr;
  }

  .launch-row .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .slot-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .bet-cluster {
    justify-content: center;
  }
}
