@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,500&display=swap");

:root {
  --bg0: #0f0e12;
  --bg1: #16141c;
  --surface: rgba(22, 20, 28, 0.92);
  --line: rgba(232, 165, 75, 0.18);
  --text: #f4f0e8;
  --muted: #a39e96;
  --accent: #e8a54b;
  --accent-soft: #f4d19b;
  --lav: #9b8cff;
  --lav-dim: rgba(155, 140, 255, 0.35);
  --card-dark: rgba(18, 16, 22, 0.88);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --hero-glow: radial-gradient(ellipse 70% 55% at 80% 20%, rgba(155, 140, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 60%, rgba(232, 165, 75, 0.12), transparent 45%);
  --light-section: #f4f0e8;
  --light-text: #1c1814;
  --light-muted: #5c564c;
  --radius: 18px;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

html:not(.captcha-done) body:has(#captcha-overlay) {
  overflow: hidden;
}

html.captcha-done #captcha-overlay {
  display: none !important;
}

a {
  color: var(--lav);
  text-decoration: none;
}
a:hover {
  color: var(--accent-soft);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(15, 14, 18, 0.97), rgba(15, 14, 18, 0.9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header .logo-link img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--accent);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--lav-dim);
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 0 24px rgba(232, 165, 75, 0.08);
}

.pill strong {
  color: var(--accent);
  font-weight: 700;
}

/* Hero split */
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 40px;
  min-height: min(72vh, 640px);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.hero-split::before {
  content: "";
  position: absolute;
  inset: -20px -24px 40%;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 26px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.15s;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, #e8a54b, #c77d2a);
  color: #1a1208;
  border: 2px solid rgba(244, 209, 155, 0.5);
  box-shadow: 0 8px 32px rgba(232, 165, 75, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--lav);
  border: 1px solid var(--lav-dim);
}

.btn-ghost:hover {
  background: rgba(155, 140, 255, 0.08);
}

/* Floating preview stack */
.hero-float {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 900px) {
  .hero-float {
    max-width: 420px;
  }
}

.float-card {
  background: var(--card-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.float-card:nth-child(2) {
  transform: rotate(1deg) translateX(12px);
  border-color: rgba(155, 140, 255, 0.25);
}
.float-card:nth-child(3) {
  transform: rotate(-0.6deg) translateX(-8px);
}

@media (max-width: 900px) {
  .float-card,
  .float-card:nth-child(2),
  .float-card:nth-child(3) {
    transform: none;
  }
}

.float-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.float-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.clip-divider {
  height: 72px;
  margin: 0 -24px;
  background: var(--light-section);
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%);
}

/* Bento value section */
.bento-band {
  background: var(--light-section);
  color: var(--light-text);
  padding: 56px 24px 64px;
  margin: 0 -24px;
}

.bento-band .section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  max-width: 20ch;
  margin-bottom: 14px;
  color: var(--light-text);
}

.bento-band .intro {
  color: var(--light-muted);
  max-width: 40rem;
  margin-bottom: 28px;
  font-size: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.bento-large {
  grid-row: span 2;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(28, 24, 20, 0.12);
  border: 1px solid rgba(28, 24, 20, 0.06);
}

@media (max-width: 800px) {
  .bento-large {
    grid-row: auto;
  }
}

.bento-large h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.bento-large p {
  color: var(--light-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.bento-small {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(28, 24, 20, 0.1);
  border: 1px solid rgba(28, 24, 20, 0.06);
}

.bento-small h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.bento-small p {
  color: var(--light-muted);
  font-size: 0.92rem;
}

/* Games section */
.section-games {
  padding: 56px 0 40px;
  position: relative;
}

.section-games::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-games h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 8px;
}

.section-games .sub {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 36rem;
}

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

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

.game-card {
  background: var(--card-dark);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--lav-dim);
}

.game-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: var(--bg1);
}

.game-card .body {
  padding: 22px;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.game-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 48px 24px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10, 9, 12, 0.65));
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto 32px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--lav-dim);
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer-col a:hover {
  color: var(--accent);
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.support-strip p {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.support-strip a {
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.support-strip a:hover {
  opacity: 1;
}

.support-strip img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(1.02);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  font-size: 0.88rem;
}

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

.disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
}

.page-inner {
  padding-top: 36px;
  padding-bottom: 56px;
}

.page-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 20px;
}

.page-inner h2 {
  font-size: 1.12rem;
  margin: 28px 0 12px;
  color: var(--accent);
  font-family: var(--font-display);
}

.page-inner p,
.page-inner li {
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 720px;
}

.page-inner ul {
  margin-left: 1.25rem;
  margin-bottom: 16px;
}

/* Captcha */
.captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 7, 10, 0.94);
  backdrop-filter: blur(10px);
}

.captcha-overlay[hidden] {
  display: none !important;
}

.captcha-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.captcha-modal h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 8px;
  text-align: center;
}

.captcha-modal > p {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

.slider-captcha {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
}

.slider-captcha-panel {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--bg0);
}

.slider-captcha-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
}

.slider-captcha-track {
  position: relative;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--lav-dim);
  background: rgba(0, 0, 0, 0.35);
  touch-action: none;
}

.slider-captcha-track-bg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 165, 75, 0.2), rgba(155, 140, 255, 0.12));
  pointer-events: none;
  transition: width 0.05s linear;
}

.slider-captcha-handle {
  position: absolute;
  left: 0;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(232, 165, 75, 0.85);
  box-shadow: 0 0 18px rgba(232, 165, 75, 0.25);
  cursor: grab;
  user-select: none;
  touch-action: none;
  background-color: #1a1520;
}

.slider-captcha-handle:active {
  cursor: grabbing;
}

.slider-captcha-handle.is-ok {
  border-color: #7dcea0;
  box-shadow: 0 0 18px rgba(125, 206, 160, 0.4);
}

#captcha-continue {
  width: 100%;
}

#captcha-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Game shell */
.game-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.game-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.game-page .site-header {
  position: relative;
  z-index: 2;
}

.game-shell {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 22px 80px;
}

.game-panel {
  background: rgba(18, 16, 24, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
}

.game-hint {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.reels-frame {
  --reel-cell: 60px;
  --reel-gap: 6px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(8, 7, 12, 0.65);
  border: 1px solid var(--lav-dim);
  margin-bottom: 8px;
}

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

.reel-col {
  display: flex;
  flex-direction: column;
  gap: var(--reel-gap, 6px);
  height: 192px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
}

.reel-strip {
  display: flex;
  flex-direction: column;
  gap: var(--reel-gap, 6px);
  will-change: transform;
}

.cell {
  flex-shrink: 0;
  height: var(--reel-cell, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(40, 32, 58, 0.45);
  border: 1px solid rgba(232, 165, 75, 0.12);
  font-size: 1.75rem;
}

.payline-mask {
  position: absolute;
  left: 4px;
  right: 4px;
  top: calc(var(--reel-cell, 60px) + var(--reel-gap, 6px));
  height: var(--reel-cell, 60px);
  border: 2px solid rgba(232, 165, 75, 0.55);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(232, 165, 75, 0.12);
}

.controls-bar {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 700px) {
  .controls-bar {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.stat-box label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-box .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.round-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.round-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.round-btn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(30, 24, 40, 0.85);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.round-btn.active {
  border-color: var(--accent);
  background: rgba(232, 165, 75, 0.15);
  color: var(--accent-soft);
}

.spin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spin-wrap .current-round {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-spin {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  background: radial-gradient(circle at 30% 30%, #c8f0a8, #4a9a5c);
  color: #0c120e;
  box-shadow: 0 8px 32px rgba(74, 154, 92, 0.4);
}

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

.legal-strip {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
}

/* Wheel */
.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#aurora-canvas {
  max-width: min(420px, 100%);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(155, 140, 255, 0.22));
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid var(--accent);
  filter: drop-shadow(0 0 10px rgba(232, 165, 75, 0.45));
  margin-bottom: -8px;
  position: relative;
  z-index: 2;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mode-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(30, 24, 40, 0.65);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.mode-btn.active {
  border-color: var(--lav);
  color: var(--lav);
  background: rgba(155, 140, 255, 0.12);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

@media (max-width: 500px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.stat-mini {
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-size: 0.8rem;
}
.stat-mini span {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 4px;
}
