:root {
  --bg-1: #060911;
  --bg-2: #101b33;
  --bg-3: #1d355f;
  --surface: rgba(14, 23, 42, 0.78);
  --surface-strong: rgba(12, 20, 36, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #eff5ff;
  --text-muted: #adc0df;
  --accent: #2ff5d3;
  --accent-2: #f9ce43;
  --accent-3: #ff6f91;
  --danger: #ff5f7d;
  --ok: #42e88d;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-xl: 0 26px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 15% 18%, #20386a 0%, transparent 40%),
    radial-gradient(circle at 80% 2%, #1f4b76 0%, transparent 32%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2) 46%, var(--bg-3));
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(70px);
}

body::before {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(47, 245, 211, 0.17);
  top: -60px;
  left: -70px;
}

body::after {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(249, 206, 67, 0.11);
  right: -140px;
  bottom: -140px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.starfield {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
  opacity: 0.2;
  animation: twinkleStar 6.4s ease-in-out infinite;
}

@keyframes twinkleStar {
  0%,
  100% {
    opacity: 0.08;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.25);
  }
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.72);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(47, 245, 211, 0.18);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.main-nav a,
.main-nav summary {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.35rem 0.22rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav summary:hover {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown summary::after {
  content: '▾';
  font-size: 0.7rem;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 230px;
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 28, 0.98);
  box-shadow: var(--shadow-md);
  padding: 0.45rem;
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu a {
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown.is-active summary {
  color: var(--text);
}

.nav-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.66rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  font-size: 0.78rem;
}

main {
  padding-bottom: 3.5rem;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 5.5rem 0 4rem;
}

.hero-shell {
  width: min(1060px, 100%);
  padding: 3.4rem clamp(1.2rem, 3.3vw, 3rem);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(130deg, rgba(8, 16, 32, 0.86), rgba(8, 14, 28, 0.82)),
    radial-gradient(circle at 18% 24%, rgba(47, 245, 211, 0.22), transparent 42%),
    url('../img/bg.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-shell::before {
  width: 210px;
  height: 210px;
  background: rgba(47, 245, 211, 0.18);
  left: -70px;
  bottom: -70px;
}

.hero-shell::after {
  width: 180px;
  height: 180px;
  background: rgba(249, 206, 67, 0.2);
  right: -60px;
  top: -50px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: #c6d7f3;
  background: rgba(7, 14, 27, 0.46);
  backdrop-filter: blur(3px);
  margin-bottom: 1.3rem;
}

.hero h1 {
  margin: 0;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: clamp(2.2rem, 5.3vw, 4.7rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-sub {
  margin: 1.2rem auto 0;
  max-width: 760px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.is-selected {
  border: 1px solid rgba(47, 245, 211, 0.72);
  background: rgba(47, 245, 211, 0.14);
  color: var(--text);
}

.btn-primary {
  color: #04171d;
  background: linear-gradient(130deg, var(--accent), #56ffe1);
  box-shadow: 0 14px 26px rgba(47, 245, 211, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 18px 35px rgba(47, 245, 211, 0.32);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

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

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(9, 16, 31, 0.72);
  padding: 0.9rem;
}

.stat-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.section {
  padding: 4.3rem 0;
}

.section h2,
.page-hero h1 {
  margin: 0;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
  font-size: clamp(1.75rem, 3.3vw, 2.7rem);
}

.section-intro {
  margin-top: 0.8rem;
  color: var(--text-muted);
  max-width: 760px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

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

.game-card::before {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(249, 206, 67, 0.13);
  filter: blur(15px);
}

.game-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.game-card-media {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

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

.showcase-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 300px;
  box-shadow: var(--shadow-md);
}

.showcase-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(7, 14, 26, 0.65), rgba(7, 13, 24, 0.75));
}

.showcase-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.2rem, 3.2vw, 2.2rem);
  max-width: 640px;
}

.showcase-copy p {
  color: #d5e6ff;
}

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

.badge {
  border: 1px solid var(--line-strong);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.notice {
  margin-top: 1.2rem;
  border: 1px solid rgba(255, 111, 145, 0.33);
  background: rgba(255, 111, 145, 0.1);
  color: #ffd5df;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  padding-left: 1.7rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.48rem;
  top: 4px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.2rem 1.08rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(47, 245, 211, 0.22);
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.02rem;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 14, 27, 0.72);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 0.8rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem;
  font-weight: 600;
  position: relative;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.faq-item[open] summary::after {
  content: '-';
}

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

.page-hero {
  padding: 3.2rem 0 2.6rem;
}

.page-hero-shell {
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(15, 24, 46, 0.92), rgba(9, 14, 28, 0.92));
  border-radius: 26px;
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.page-hero-shell-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(8, 16, 31, 0.45), rgba(7, 12, 24, 0.5));
}

.page-hero-shell-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, url('../img/games.jpg'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.02);
}

.page-hero-shell-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(6, 12, 24, 0.5), rgba(6, 11, 20, 0.58)),
    radial-gradient(circle at 80% 20%, rgba(47, 245, 211, 0.08), transparent 44%);
}

.page-hero-shell-image > * {
  position: relative;
  z-index: 1;
}

.page-hero-image-games {
  --hero-image: url('../img/games.jpg');
}

.page-hero-image-spin {
  --hero-image: url('../img/neon-spin-vault.jpg');
}

.page-hero-image-card {
  --hero-image: url('../img/card-clash-arena.jpg');
}

.page-hero-image-wheel {
  --hero-image: url('../img/sky-wheel-rush.jpg');
}

.page-hero p {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  max-width: 760px;
}

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

.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 18, 34, 0.84);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar p,
.sidebar li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 17, 0.82);
  padding: 2.2rem 0;
}

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

.footer-links {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-heading {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-disclaimer {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 460px;
}

.footer-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.legal-strip {
  margin-top: 1rem;
  border: 1px solid rgba(255, 95, 125, 0.32);
  background: rgba(255, 95, 125, 0.09);
  border-radius: var(--radius-xs);
  padding: 0.75rem 0.9rem;
  font-size: 0.84rem;
  color: #ffd4de;
}

.form-wrap {
  display: grid;
  gap: 0.8rem;
}

.form-wrap label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(8, 15, 27, 0.86);
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

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

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

.success-box,
.error-box {
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
}

.success-box {
  border: 1px solid rgba(66, 232, 141, 0.45);
  background: rgba(66, 232, 141, 0.12);
  color: #d5ffe8;
}

.error-box {
  border: 1px solid rgba(255, 95, 125, 0.38);
  background: rgba(255, 95, 125, 0.12);
  color: #ffd3dc;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

.table th,
.table td {
  border: 1px solid var(--line);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.table th {
  background: rgba(255, 255, 255, 0.06);
}

.review-media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

.list {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.small {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.center {
  text-align: center;
}

.glow {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(47, 245, 211, 0.12);
  }

  50% {
    box-shadow: 0 0 30px rgba(47, 245, 211, 0.26);
  }
}

/* Shared game layout */
.game-layout {
  display: grid;
  gap: 1rem;
}

.game-panel {
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(8, 14, 27, 0.95), rgba(11, 19, 35, 0.95));
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.game-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.balance-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.balance-chip strong {
  color: var(--accent);
  margin-left: 0.25rem;
}

.result-bar {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 58px;
  display: grid;
  align-content: center;
}

.result-title {
  margin: 0;
  font-weight: 700;
}

.result-sub {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

/* Slot game */
.slot-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(155deg, rgba(17, 26, 46, 0.9), rgba(8, 14, 26, 0.86));
}

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

.reel-window {
  height: 124px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 9, 17, 0.82);
  position: relative;
}

.reel-window::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(7, 11, 20, 0.8),
    transparent 28%,
    transparent 72%,
    rgba(7, 11, 20, 0.8)
  );
}

.reel-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition-timing-function: cubic-bezier(0.16, 0.79, 0.17, 1);
}

.slot-symbol {
  height: 124px;
  display: grid;
  place-items: center;
  padding: 0.45rem;
}

.slot-symbol img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}

.win-highlight {
  animation: winFlash 0.5s ease 0s 4 alternate;
}

@keyframes winFlash {
  from {
    box-shadow: 0 0 0 rgba(249, 206, 67, 0.2);
  }

  to {
    box-shadow: 0 0 26px rgba(249, 206, 67, 0.6);
  }
}

/* Card game */
.card-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: radial-gradient(circle at top right, rgba(47, 245, 211, 0.08), transparent 35%),
    radial-gradient(circle at bottom left, rgba(249, 206, 67, 0.08), transparent 38%),
    rgba(8, 14, 26, 0.88);
}

.hands {
  display: grid;
  gap: 1rem;
}

.hand {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.hand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.hand-title {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hand-score {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hand-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 94px;
}

.playing-card {
  width: 62px;
  height: 88px;
  border-radius: 11px;
  perspective: 750px;
  position: relative;
  transform: translate(-20px, -14px) rotate(-14deg) scale(0.84);
  opacity: 0;
  transition: transform 0.38s ease, opacity 0.34s ease;
}

.playing-card.is-dealt {
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
}

.playing-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.56s ease;
}

.playing-card.is-flipped .playing-card-inner {
  transform: rotateY(180deg);
}

.playing-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.22);
  font-weight: 700;
}

.playing-face.back {
  background: linear-gradient(145deg, #17315c, #0e2344);
  color: #d3e6ff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.playing-face.front {
  background: linear-gradient(140deg, #f8fbff, #deebff);
  color: #101727;
  transform: rotateY(180deg);
}

.playing-face.front.red {
  color: #b11438;
}

/* Wheel game */
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 1rem;
}

.wheel-zone {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(140deg, rgba(12, 21, 40, 0.92), rgba(9, 15, 27, 0.92));
}

.wheel-wrap {
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 1rem;
}

.wheel {
  width: min(400px, 84vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.16);
  background: conic-gradient(
    #f9ce43 0deg 45deg,
    #38e0b5 45deg 90deg,
    #ff8ca6 90deg 135deg,
    #5cc4ff 135deg 180deg,
    #ab86ff 180deg 225deg,
    #4ce7d7 225deg 270deg,
    #ffb469 270deg 315deg,
    #7ce184 315deg 360deg
  );
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.38);
  transform: rotate(0deg);
  transition: transform 4.8s cubic-bezier(0.11, 0.78, 0, 1);
  position: relative;
  z-index: 2;
}

.wheel::before {
  content: '';
  position: absolute;
  inset: 34% 34%;
  border-radius: 50%;
  background: rgba(10, 18, 34, 0.92);
  border: 2px solid var(--line-strong);
}

.pointer {
  position: absolute;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid var(--accent-2);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
  z-index: 5;
}

.wheel-labels {
  position: absolute;
  width: min(400px, 84vw);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  transform: rotate(0deg);
  transition: transform 4.8s cubic-bezier(0.11, 0.78, 0, 1);
  z-index: 3;
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 0.84rem;
  font-weight: 700;
  color: #06121d;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 18, 29, 0.2);
  transition: transform 4.8s cubic-bezier(0.11, 0.78, 0, 1);
}

.bet-options {
  display: grid;
  gap: 0.45rem;
}

.bet-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 11px;
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
}

.bet-btn.is-selected {
  border-color: rgba(47, 245, 211, 0.75);
  background: rgba(47, 245, 211, 0.14);
}

/* Achievements */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.achievement {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(13, 21, 38, 0.85);
  position: relative;
  overflow: hidden;
}

.achievement::before {
  content: '';
  position: absolute;
  inset: auto -25% -50% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(47, 245, 211, 0.15);
  filter: blur(15px);
}

.achievement h3 {
  margin: 0;
  font-size: 1.06rem;
}

.achievement p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.achievement-status {
  margin-top: 0.8rem;
  display: inline-flex;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.achievement-status.is-locked {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-muted);
}

.achievement-status.is-unlocked {
  border: 1px solid rgba(66, 232, 141, 0.55);
  background: rgba(66, 232, 141, 0.13);
  color: #d8ffe9;
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  z-index: 120;
  display: none;
  place-items: center;
  padding: 1rem;
}

.age-gate.is-visible {
  display: grid;
}

.age-gate-panel {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(12, 21, 39, 0.97), rgba(9, 15, 27, 0.97));
  padding: 1.4rem;
  box-shadow: var(--shadow-xl);
}

.age-gate-panel h2 {
  margin: 0;
  text-transform: uppercase;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
}

.age-gate-panel p {
  color: var(--text-muted);
}

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

/* Utility */
.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

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

  .sidebar {
    position: static;
  }

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

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

@media (max-width: 820px) {
  .hero-stats,
  .grid-3,
  .achievement-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .header-row {
    position: relative;
  }

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

  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    min-width: min(92vw, 460px);
    border: 1px solid var(--line);
    background: rgba(9, 15, 29, 0.96);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 0.85rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

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

  .main-nav a,
  .main-nav summary {
    padding: 0.45rem 0.35rem;
  }

  .main-nav .nav-dropdown {
    width: 100%;
  }

  .main-nav .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.28rem;
    border-radius: 10px;
    box-shadow: none;
  }

  .main-nav .nav-chip {
    width: fit-content;
    margin-top: 0.2rem;
  }

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

  .hero {
    min-height: auto;
    padding-top: 3.8rem;
  }

  .hero-shell {
    padding-top: 2.8rem;
  }

  .slot-symbol img {
    width: 62px;
    height: 62px;
  }
}

@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;
  }
}
