:root{
  --bg:#070A12;
  --panel:rgba(255,255,255,.05);
  --panel2:rgba(255,255,255,.08);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --line:rgba(255,255,255,.12);
  --glow:rgba(121, 255, 214, .22);
  --glow2:rgba(125, 99, 255, .22);
  --accent:#79FFD6;
  --accent2:#7D63FF;
  --danger:#FF5F7A;
  --radius:18px;
  --shadow:0 16px 48px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 500px at 85% 0%, var(--glow2), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.95}
.container{width:min(1100px, 92vw); margin:0 auto}

.site-header{padding:16px 0}
.header-row{display:flex; align-items:center; justify-content:flex-start}
.brand{display:flex; align-items:center; gap:12px}
.brand-mark{
  width:40px;height:40px;border-radius:14px;
  background:linear-gradient(135deg, rgba(121,255,214,.22), rgba(125,99,255,.22));
  border:1px solid rgba(255,255,255,.16);
  display:grid; place-items:center;
  font-weight:800; letter-spacing:.5px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.brand-name{font-weight:700; font-size:18px}

.badge-18{
  width:30px;height:30px;border-radius:999px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
}
.top-disclaimer-text{font-size:13px;color:var(--muted); line-height:1.3}

main{padding:34px 0 54px}
.hero{
  display:grid;
  gap:18px;
  align-items:start;
}
.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-1px;
  background:radial-gradient(700px 220px at 25% 0%, rgba(121,255,214,.18), transparent 60%),
             radial-gradient(600px 240px at 85% 10%, rgba(125,99,255,.16), transparent 60%);
  pointer-events:none;
}
.hero-card > *{position:relative}
.kicker{color:var(--muted); font-weight:600; font-size:13px; letter-spacing:.2px}
.h1{font-size:38px; line-height:1.08; margin:10px 0 10px; font-weight:800}
.sub{color:var(--muted); font-size:15px; line-height:1.6; margin:0}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}
@media (max-width: 920px){
  .hero-grid{grid-template-columns: 1fr; }
  .h1{font-size:34px}
}

.featured-media{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  padding:14px;
  box-shadow:var(--shadow);
}
.featured-img{
  width:100%;
  aspect-ratio:1/1;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  object-fit:cover;
  display:block;
}
.media-caption{margin-top:12px}
.media-title{font-weight:800; font-size:18px; margin:0 0 6px}
.media-meta{color:var(--muted); font-size:13px; margin:0}

.cta-row{
  margin-top:16px;
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn.primary{
  background:linear-gradient(135deg, rgba(121,255,214,.22), rgba(125,99,255,.22));
  border-color:rgba(255,255,255,.18);
  box-shadow:0 18px 48px rgba(0,0,0,.35);
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0px)}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none}

.benefits{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
@media (max-width: 920px){
  .benefits{grid-template-columns: 1fr; }
}
.card{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:16px;
}
.card h3{margin:0 0 8px; font-size:15px}
.card p{margin:0; color:var(--muted); font-size:13px; line-height:1.55}

.section{
  margin-top:22px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
}
.section-title{margin:0 0 10px; font-size:18px; font-weight:800}
.section-sub{margin:0 0 14px; color:var(--muted); font-size:13px; line-height:1.55}

.slot-wrap{
  display:grid;
  grid-template-columns: 1fr .9fr;
  gap:16px;
}
@media (max-width: 920px){
  .slot-wrap{grid-template-columns: 1fr}
}

.slot-board{
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  position:relative;
  overflow:hidden;
}
.slot-board:before{
  content:"";
  position:absolute; inset:-1px;
  background:radial-gradient(650px 220px at 30% 0%, rgba(121,255,214,.14), transparent 62%),
             radial-gradient(600px 240px at 90% 10%, rgba(125,99,255,.12), transparent 62%);
  pointer-events:none;
}
.slot-board > *{position:relative}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:8px;
}
.cell{
  aspect-ratio:1/1;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  display:grid; place-items:center;
  font-size:28px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.cell.spin{
  transform:scale(0.98);
  background:rgba(255,255,255,.065);
  border-color:rgba(255,255,255,.18);
}
.cell.win{
  background:rgba(121,255,214,.10);
  border-color:rgba(121,255,214,.32);
}

.slot-side{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.stat{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.stat b{font-size:14px}
.stat span{color:var(--muted); font-size:13px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  color:var(--muted);
  font-size:13px;
  width:fit-content;
}
.msg{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
  line-height:1.5;
  min-height:48px;
}

.page{
  padding:16px 0 54px;
}
.page h1{
  margin:0 0 10px;
  font-size:28px;
  font-weight:800;
}
.page p, .page li{
  color:var(--muted);
  line-height:1.75;
  font-size:14px;
}
.page a{ text-decoration:underline; text-underline-offset:3px; }
.page .panel{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 14px 36px rgba(0,0,0,.22);
}

.site-footer{
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.30);
  padding:26px 0 18px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr .8fr 1.1fr;
  gap:18px;
}
@media (max-width: 920px){
  .footer-grid{grid-template-columns: 1fr; }
}
.footer-title{margin:0 0 10px; font-size:14px}
.footer-links, .footer-contact{list-style:none; padding:0; margin:0; display:grid; gap:8px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}
.footer-contact li{color:var(--muted)}
.footer-note{margin:10px 0 0}
.footer-bottom{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.muted{color:var(--muted)}


.rp-grid{
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 920px){
  .rp-grid{
    grid-template-columns: 1fr;
  }
}
.rp-grid .card p{display:none;}


.header-one-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 0;
}
.header-disclaimer{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  white-space:nowrap;
}
.header-disclaimer .top-disclaimer-text{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: min(720px, 52vw);
}
@media (max-width: 920px){
  .header-one-line{
    flex-wrap:nowrap;
  }
  .header-disclaimer .top-disclaimer-text{
    max-width: 52vw;
  }
}
@media (max-width: 520px){
  .header-disclaimer .top-disclaimer-text{
    max-width: 48vw;
  }
}


/* --- Polish layer --- */
:focus-visible{
  outline:2px solid rgba(121,255,214,.65);
  outline-offset:3px;
  border-radius:14px;
}

.btn{
  will-change: transform;
}
.btn.primary{
  position:relative;
  overflow:hidden;
}
.btn.primary::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(180px 60px at 20% 20%, rgba(121,255,214,.22), transparent 60%),
              radial-gradient(220px 70px at 80% 0%, rgba(125,99,255,.22), transparent 62%);
  opacity:.0;
  transition: opacity .18s ease;
  pointer-events:none;
}
.btn.primary:hover::after{opacity:1}
.btn.primary:active{filter:saturate(1.05)}

.card{
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.card a{
  display:inline-block;
}

.cell{
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.cell.win{
  box-shadow: 0 0 0 1px rgba(121,255,214,.22), 0 18px 42px rgba(0,0,0,.22);
}

.msg{
  backdrop-filter: blur(6px);
}

.header-disclaimer{
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.header-disclaimer::-webkit-scrollbar{display:none;}

@media (max-width: 920px){
  .h1{font-size:32px}
  .featured-media{padding:12px}
  .btn{min-height:44px}
  .slot-side .btn{width:100%}
  .slot-side{gap:10px}
}
@media (max-width: 520px){
  .header-one-line{gap:10px}
  .brand-name{font-size:16px}
  .brand-mark{width:36px;height:36px;border-radius:13px}
  .badge-18{width:28px;height:28px}
  .header-disclaimer{max-width: 58vw}
  .header-disclaimer .top-disclaimer-text{max-width: 9999px}
}

/* Reveal animation */
.reveal{
  opacity:0;
  transform: translateY(10px);
  filter: saturate(.98);
}
.reveal.is-in{
  opacity:1;
  transform:none;
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .btn, .card, .cell, .reveal{transition:none !important; animation:none !important}
}


/* --- Visual Boost layer --- */
body::before{
  content:"";
  position:fixed;
  inset:-20%;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(121,255,214,.10), transparent 60%),
    radial-gradient(820px 480px at 88% 22%, rgba(125,99,255,.11), transparent 60%),
    radial-gradient(760px 520px at 50% 88%, rgba(255,255,255,.06), transparent 62%);
  filter: blur(10px);
  animation: bgFloat 10s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:-1;
}
@keyframes bgFloat{
  0%{transform: translate3d(0,0,0) scale(1)}
  100%{transform: translate3d(2.2%, -1.8%, 0) scale(1.03)}
}

/* Hero glow ring */
.hero-card{
  isolation:isolate;
}
.hero-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from 180deg,
    rgba(121,255,214,.0),
    rgba(121,255,214,.22),
    rgba(125,99,255,.22),
    rgba(121,255,214,.0)
  );
  filter: blur(16px);
  opacity:.55;
  z-index:-1;
  animation: ringSpin 8s linear infinite;
}
@keyframes ringSpin{
  to{transform: rotate(360deg)}
}

/* Featured image shimmer frame */
.featured-media{
  position:relative;
  overflow:hidden;
}
.featured-media::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg,
    rgba(121,255,214,.0) 0%,
    rgba(121,255,214,.14) 20%,
    rgba(125,99,255,.16) 50%,
    rgba(121,255,214,.0) 80%,
    rgba(121,255,214,.0) 100%
  );
  transform: translateX(-55%);
  animation: shimmer 4.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shimmer{
  0%{transform: translateX(-65%)}
  55%{transform: translateX(65%)}
  100%{transform: translateX(65%)}
}

/* Demo board premium border */
.slot-board{
  position:relative;
}
.slot-board::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:18px;
  padding:1px;
  background: linear-gradient(135deg,
    rgba(121,255,214,.35),
    rgba(125,99,255,.30),
    rgba(255,255,255,.10)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:.55;
  pointer-events:none;
}
#demo-slot.is-spinning .cell{
  filter: blur(.2px) saturate(1.05);
}
#demo-slot.is-spinning .slot-board::after{
  opacity:.9;
  animation: borderPulse .6s ease-in-out infinite alternate;
}
@keyframes borderPulse{
  from{filter: brightness(1) blur(0px)}
  to{filter: brightness(1.12) blur(.2px)}
}

/* Spin button progress ring */
#spinBtn.primary{
  position:relative;
}
#spinBtn.primary .ring{
  position:absolute;
  inset:-3px;
  border-radius:16px;
  padding:3px;
  background: conic-gradient(from 0deg,
    rgba(121,255,214,.0),
    rgba(121,255,214,.55),
    rgba(125,99,255,.55),
    rgba(121,255,214,.0)
  );
  opacity:0;
  transition: opacity .16s ease;
  pointer-events:none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
#demo-slot.is-spinning #spinBtn.primary .ring{
  opacity:.95;
  animation: ringRotate .8s linear infinite;
}
@keyframes ringRotate{
  to{transform: rotate(360deg)}
}

/* Particles (safe, no money language) */
.particles{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
.particle{
  position:absolute;
  font-size:18px;
  opacity:0;
  transform: translate3d(0,0,0) scale(.9);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.particle.pop{
  opacity:1;
  animation: popFloat 720ms ease-out forwards;
}
@keyframes popFloat{
  0%{transform: translate3d(0,0,0) scale(.85); opacity:0}
  18%{opacity:1}
  100%{transform: translate3d(var(--dx), var(--dy), 0) scale(1.25); opacity:0}
}

/* Make demo message a bit more "gamey" */
.msg{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}


/* --- Achievements + Stats + Dynamic BG --- */

.achievements{
  position:fixed;
  right:18px;
  bottom:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:50;
  pointer-events:none;
}
.ach{
  background:linear-gradient(180deg, rgba(20,24,40,.92), rgba(10,12,22,.92));
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  padding:12px 14px;
  min-width:220px;
  box-shadow:0 18px 48px rgba(0,0,0,.45);
  transform: translateY(14px) scale(.96);
  opacity:0;
  animation: achIn .42s ease forwards;
}
.ach-title{
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
}
.ach-sub{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}
@keyframes achIn{
  to{transform:none; opacity:1}
}
@keyframes achOut{
  to{transform: translateY(10px) scale(.96); opacity:0}
}

.demo-stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top:14px;
}
.demo-stat{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px;
}
.demo-stat b{
  display:block;
  font-size:16px;
}
.demo-stat span{
  font-size:12px;
  color:var(--muted);
}

/* dynamic background states */
body.bg-idle::before{ opacity:1 }
body.bg-spin::before{
  opacity:1;
  filter: blur(12px) brightness(1.15);
}
body.bg-win::before{
  opacity:1;
  filter: blur(14px) brightness(1.25);
  animation-duration: 4s;
}

@media (max-width: 920px){
  .demo-stats{
    grid-template-columns: repeat(2, 1fr);
  }
  .achievements{
    right:10px;
    bottom:10px;
  }
}
