:root {
  --bg: #090712;
  --bg-soft: #130f24;
  --panel: rgba(21, 16, 39, 0.78);
  --panel-strong: rgba(17, 11, 34, 0.92);
  --text: #eef3ff;
  --muted: #a8b2d9;
  --border: rgba(113, 89, 255, 0.34);
  --purple: #7c4dff;
  --blue: #17c8ff;
  --gold: #f7d27a;
  --good: #8be7c8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,77,255,0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(23,200,255,0.18), transparent 28%),
    linear-gradient(180deg, #080610 0%, #0b0916 35%, #080712 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.page-shell { flex: 1; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.neon-panel {
  background: linear-gradient(180deg, rgba(22,16,40,0.95), rgba(15,11,29,0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 0 38px rgba(23, 200, 255, 0.08);
  backdrop-filter: blur(18px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 5, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: center;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 28px rgba(124,77,255,0.45);
}
.brand-text { font-size: 0.95rem; }
.age-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247,210,122,0.45);
  color: var(--gold);
  font-weight: 800;
  background: rgba(247,210,122,0.08);
}
.header-disclaimer { margin: 0; font-size: 0.92rem; color: var(--muted); }
.hero-section { padding: 34px 0 18px; }
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 42px;
  min-height: 300px;
}
.hero-glow {
  position: absolute; inset: auto auto -80px -40px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,77,255,0.42), transparent 70%);
  filter: blur(18px);
}
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-copy h1, .section-heading h2, .game-topbar h2, .stats-card h2, .legal-card h1 { margin: 12px 0 14px; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 0.95; }
.hero-copy p { max-width: 560px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.primary-btn, .ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.primary-btn {
  color: #09111a;
  background: linear-gradient(135deg, var(--gold), #ffe39f);
  box-shadow: 0 12px 30px rgba(247, 210, 122, 0.24), 0 0 24px rgba(23, 200, 255, 0.12);
}
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px); }
.primary-btn:active, .ghost-btn:active { transform: translateY(1px) scale(0.99); }
.ghost-btn {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-btn { display: inline-flex; margin-top: 10px; }
.featured-art-section { padding: 10px 0 28px; }
.featured-frame {
  max-width: 650px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 34px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247,210,122,0.15), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(22,16,40,0.95), rgba(15,11,29,0.96));
  border: 1px solid rgba(247,210,122,0.34);
  box-shadow: 0 0 30px rgba(247,210,122,0.12), 0 0 50px rgba(23,200,255,0.08), inset 0 0 0 2px rgba(247,210,122,0.35), inset 0 0 0 8px rgba(247,210,122,0.06);
}
.featured-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(247,210,122,0.38);
  pointer-events: none;
}
.featured-frame::after {
  content: '';
  position: absolute;
  top: -20%; left: -45%;
  width: 38%; height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer 6s linear infinite;
}
.featured-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 22px;
}
@keyframes shimmer { 0% { left: -45%; } 100% { left: 120%; } }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr); gap: 24px; }
.demo-section, .trust-section, .info-section, .responsible-section { padding: 0 0 28px; }
.game-card, .stats-card, .legal-card { border-radius: 30px; padding: 28px; }
.game-topbar {
  display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px;
}
.small-label { color: var(--blue); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.balance-pill {
  white-space: nowrap; padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid rgba(255,255,255,0.08);
}
.slot-shell {
  position: relative;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot-cell {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(19, 15, 36, 0.94), rgba(14, 11, 26, 1));
  border: 1px solid rgba(124,77,255,0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 20px rgba(124,77,255,0.08);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, opacity .18s ease;
}
.slot-cell span { display: inline-block; transition: transform .18s ease, opacity .18s ease, filter .25s ease; }
.slot-cell.spinning span { animation: spinPulse .45s linear infinite; opacity: 0.7; }
.slot-cell.win {
  border-color: rgba(247,210,122,0.56);
  box-shadow: 0 0 26px rgba(247,210,122,0.25), 0 0 42px rgba(23,200,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.slot-cell.win span { filter: drop-shadow(0 0 14px rgba(247,210,122,0.45)); }
.slot-cell.sparkle::after {
  content: '✦';
  position: absolute;
  top: 10px; right: 12px;
  color: rgba(247,210,122,0.95);
  animation: popSpark .8s ease forwards;
}
@keyframes spinPulse { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(0.94); } 100% { transform: translateY(0) scale(1); } }
@keyframes popSpark { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1.2); } }
.line-overlay { position: absolute; inset: 18px; pointer-events: none; }
.win-line {
  position: absolute;
  left: 4%; right: 4%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247,210,122,0), rgba(247,210,122,0.92), rgba(23,200,255,0.92), rgba(247,210,122,0));
  box-shadow: 0 0 16px rgba(247,210,122,0.5);
  animation: lineFlash 1s ease forwards;
}
@keyframes lineFlash { 0% { opacity: 0; transform: scaleX(0.4); } 30% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.02); } }
.game-controls { display: flex; gap: 14px; margin-top: 18px; }
.pulse-btn { animation: softPulse 2.3s ease-in-out infinite; }
@keyframes softPulse { 0%,100% { box-shadow: 0 12px 30px rgba(247,210,122,0.24), 0 0 0 rgba(23,200,255,0.0); } 50% { box-shadow: 0 12px 30px rgba(247,210,122,0.30), 0 0 20px rgba(23,200,255,0.14); } }
.game-meta {
  display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-top: 16px; font-size: 0.95rem;
}
.stat-list { display: grid; gap: 14px; }
.stat-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.stat-item span { color: var(--muted); }
.stat-item strong { font-size: 1.1rem; }
.trust-grid, .responsible-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.trust-card, .resource-card, .info-card { border-radius: 24px; padding: 22px; }
.resource-link { display: block; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.resource-link:hover { transform: translateY(-3px); border-color: rgba(247,210,122,0.42); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 0 38px rgba(247,210,122,0.12); }
.resource-link:focus-visible { outline: 2px solid rgba(23,200,255,0.9); outline-offset: 4px; }
.trust-card h3, .resource-card h3, .info-card h3 { margin-top: 0; }
.trust-card p, .resource-card p, .info-card p, .legal-card p, .legal-card li { color: var(--muted); line-height: 1.7; }
.section-heading { margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.legal-shell { padding: 28px 0; }
.legal-card ul { padding-left: 20px; }
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(6, 5, 12, 0.86);
}
.footer-grid {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
}
.footer-brand { font-size: 1.1rem; font-weight: 800; }
.footer-copy, .footer-contact { color: var(--muted); line-height: 1.8; }
.footer-links { display: grid; gap: 12px; align-content: start; }
.footer-links a { color: var(--text); opacity: 0.88; }
.age-gate, .cookie-banner {
  position: fixed; z-index: 30;
}
.age-gate {
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,12,0.76);
  backdrop-filter: blur(10px);
  padding: 20px;
}
.age-gate.active { display: flex; }
.modal-card {
  width: min(460px, 100%);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(22,16,40,0.98), rgba(14,11,26,0.98));
  border: 1px solid rgba(124,77,255,0.26);
  box-shadow: var(--shadow);
}
.check-row { display: flex; gap: 10px; margin: 18px 0; color: var(--muted); }
.cookie-banner {
  left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: 22px;
  background: rgba(14, 11, 26, 0.96); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow);
}
.cookie-banner p { margin: 6px 0 0; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; }
@media (max-width: 980px) {
  .grid-two, .footer-grid, .info-grid, .trust-grid, .responsible-grid { grid-template-columns: 1fr 1fr; }
  .header-row { grid-template-columns: 1fr; align-items: start; padding: 16px 0; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1000px); }
  .hero-card, .game-card, .stats-card, .legal-card { padding: 22px; border-radius: 24px; }
  .grid-two, .info-grid, .trust-grid, .responsible-grid, .footer-grid { grid-template-columns: 1fr; }
  .game-topbar, .game-meta, .game-controls, .cookie-banner { flex-direction: column; align-items: stretch; }
  .slot-grid { gap: 8px; }
  .slot-cell { border-radius: 18px; }
  .featured-frame { padding: 12px; border-radius: 26px; }
}


.primary-btn:disabled, .ghost-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.slot-cell.stop-pop { animation: cellStop .28s ease; }
@keyframes cellStop {
  0% { transform: scale(0.92); }
  65% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.cookie-banner[hidden] { display: none !important; }
