
:root{
  --bg:#0a0b10;
  --text:#f2f4ff;
  --muted:#c6cbe6;

  --red:#b10000;
  --red2:#ff2a2a;
  --gold:#f7c94a;
  --gold2:#ffec9a;

  --line:rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 35px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 700px at 50% -10%, rgba(255,60,0,.14), transparent 55%),
    radial-gradient(1000px 800px at 30% 120%, rgba(247,201,74,.10), transparent 60%),
    linear-gradient(180deg, #05060a 0%, var(--bg) 55%, #05060a 100%);
  color:var(--text);
  padding-bottom:78px;
}
a{color:inherit; text-decoration:none}

.wrap{max-width:420px; margin:0 auto; padding:14px}

/* TOPBAR layout fix */
.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.topbar__right{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  min-width:104px;
}
.mark{display:flex; align-items:center; gap:10px; min-width:0}
.mark__coin{
  width:36px;height:36px;border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, rgba(247,201,74,.95), rgba(255,42,42,.70));
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(247,201,74,.12);
  flex:0 0 auto;
}
.mark__text{min-width:0}
.mark__brand{font-weight:950; letter-spacing:.6px; font-size:15px}
.mark__sub{font-size:12px; color:var(--muted); font-weight:700; letter-spacing:.2px; line-height:1.25}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  font-weight:900;
  letter-spacing:.35px;
  user-select:none;
  transition: transform .08s ease, background .2s ease, filter .2s ease;
  white-space:nowrap;
}
.btn--small{padding:9px 12px; border-radius:12px; font-size:13px}
.btn:hover{background: rgba(255,255,255,.10)}
.btn:active{transform: translateY(1px)}
.btn--primary{
  color:#120b00;
  background: linear-gradient(135deg, rgba(247,201,74,.98), rgba(255,236,154,.90));
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 18px 55px rgba(247,201,74,.12);
}
.btn--ghost{background: rgba(255,255,255,.04)}
.btn--danger{
  background: linear-gradient(180deg, rgba(255,42,42,.95), rgba(133,0,0,.96));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 55px rgba(255,42,42,.12);
}
.btn--dark{
  background: linear-gradient(180deg, rgba(20,22,30,.95), rgba(8,10,14,.96));
  border-color: rgba(255,255,255,.12);
}

.ico{display:inline-flex; width:16px; height:16px}
.ico svg{width:16px; height:16px; fill: currentColor}

/* Poster */
.poster{
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  background:
    radial-gradient(900px 520px at 50% 40%, rgba(255,80,0,.55), rgba(120,0,0,.55) 55%, rgba(0,0,0,.95) 100%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.70));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.poster::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 260px at 20% 55%, rgba(255,140,0,.30), transparent 60%),
    radial-gradient(420px 260px at 80% 55%, rgba(255,140,0,.28), transparent 60%),
    radial-gradient(650px 240px at 50% 95%, rgba(247,201,74,.18), transparent 70%);
  mix-blend-mode: screen;
  opacity:.9;
  animation: glow 3.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes glow{
  0%,100%{transform:translateY(0); filter: brightness(1)}
  50%{transform:translateY(-3px); filter: brightness(1.08)}
}
.poster__fx{position:absolute; inset:0; width:100%; height:100%; pointer-events:none; opacity:.75}
.poster__header{
  position:relative;
  display:flex; gap:8px; flex-wrap:wrap;
  padding:12px 12px 0;
}
.poster__badge{
  font-size:11px;
  font-weight:950;
  letter-spacing:.45px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.14);
  color: var(--gold2);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.poster__body{position:relative; padding:18px 16px 16px; text-align:center}
.poster__title{font-weight:950; letter-spacing:.7px; color: var(--gold2); text-transform:uppercase; font-size:13px}
.poster__brand{
  margin-top:6px;
  font-weight:1000;
  letter-spacing:1.2px;
  font-size:28px;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 20px rgba(247,201,74,.22);
}
.poster__tag{margin-top:8px; font-weight:950; letter-spacing:.55px; font-size:12px; color:#ffecc7}
.poster__desc{margin-top:10px; font-size:12px; color: rgba(255,255,255,.88); line-height:1.55; padding:10px 10px 0}
.poster__actions{position:relative; display:flex; gap:10px; padding:12px 12px 14px}
.poster__actions .btn{flex:1; border-radius:12px}

/* Categories */
.cats{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  background: rgba(0,0,0,.50);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding:10px 12px;
  box-shadow: var(--shadow2);
}
.cat{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-weight:950;
  font-size:11px;
  letter-spacing:.35px;
  color: rgba(255,255,255,.92);
  user-select:none;
  transition: transform .12s ease;
}
.cat__ico{width:22px;height:22px; opacity:.95}
.cat__ico svg{width:22px;height:22px; fill: rgba(255,255,255,.92)}
.cat:hover{transform: translateY(-1px)}

/* Jackpot */
.jackpot{
  margin-top:14px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow2);
}
.jackpot__title{
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-weight:1000;
  letter-spacing:.8px;
  color:#ffecc7;
  text-transform:uppercase;
  font-size:13px;
}
.jackpot__frame{
  position:relative;
  margin-top:12px;
  border-radius:16px;
  border:2px solid rgba(255,42,42,.65);
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(10,10,10,.75));
  padding:14px 12px;
  overflow:hidden;
}
.jackpot__frame::before{
  content:"";
  position:absolute; inset:-1px;
  background: linear-gradient(90deg, rgba(247,201,74,.0), rgba(247,201,74,.22), rgba(247,201,74,.0));
  transform: translateX(-120%);
  animation: sweep 2.6s ease-in-out infinite;
  opacity:.65;
  pointer-events:none;
}
@keyframes sweep{
  0%{transform: translateX(-120%)}
  55%{transform: translateX(120%)}
  100%{transform: translateX(120%)}
}
.bulbs{
  position:absolute; inset:0;
  background: radial-gradient(circle, rgba(255,255,255,.80) 0 2px, transparent 3px) 10px 10px / 22px 22px;
  opacity:.28;
  pointer-events:none;
}
.odometer{
  position:relative;
  display:flex;
  gap:4px;
  justify-content:center;
  align-items:center;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight:1000;
  font-size:24px;
  letter-spacing:1px;
  text-shadow: 0 10px 26px rgba(0,0,0,.65);
}
.digit,.sep{height:34px; display:flex; align-items:center; justify-content:center}
.sep{padding:0 2px; opacity:.95; color: rgba(247,201,74,.95)}
.digit{
  width:18px;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.digit__strip{will-change:transform; transform: translateY(0)}
.digit__strip div{height:34px; display:flex; align-items:center; justify-content:center; color: rgba(255,236,154,.98)}
.digit__strip .n9{color: rgba(255,140,140,.98)}


/* ticker */
.ticker{margin-top:12px; overflow:hidden; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04)}
.ticker__track{display:flex; gap:28px; padding:10px 12px; width:max-content; animation: marquee 14s linear infinite; color: rgba(255,255,255,.84); font-weight:800; font-size:12px; letter-spacing:.3px}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-33.333%)}}

.foot{margin:12px 0 0; text-align:center; color: rgba(255,255,255,.68); font-size:12px; padding:10px 0 2px}

/* bottom nav */
.bottom{
  position:fixed; bottom:0; left:0; right:0;
  display:flex; justify-content:space-around;
  background: linear-gradient(180deg, rgba(140,0,0,.98), rgba(70,0,0,.98));
  border-top:1px solid rgba(255,255,255,.12);
  padding:10px 6px 12px;
  z-index:60;
}
.bottom__item{
  width:20%;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  font-weight:950; font-size:11px; letter-spacing:.25px;
  color: rgba(255,255,255,.90);
  opacity:.92;
  transition: transform .12s ease, opacity .2s ease;
  user-select:none;
}
.bottom__ico{width:20px;height:20px}
.bottom__ico svg{width:20px;height:20px; fill: rgba(255,255,255,.92)}
.bottom__item:hover{transform: translateY(-1px); opacity:1}
.bottom__item.is-active{opacity:1; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35))}




/* FIXED JACKPOT LAYOUT */
.jackpot__frame{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:90px;
}

.odometer{
  font-size:28px;
  gap:6px;
}

.digit{
  width:20px;
  height:38px;
}

.digit__strip div{
  height:38px;
}


/* ===== Live Panel (replacement feature) ===== */
.livepanel{
  margin-top:14px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.livepanel__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.livepanel__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:1000;
  letter-spacing:.8px;
  color:#ffecc7;
  text-transform:uppercase;
  font-size:13px;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  background: rgba(255,42,42,.95);
  box-shadow: 0 0 0 4px rgba(255,42,42,.18), 0 0 18px rgba(255,42,42,.35);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{transform:scale(1); opacity:1}
  50%{transform:scale(1.12); opacity:.85}
}
.livepanel__countdown{
  display:flex; flex-direction:column; align-items:flex-end; gap:2px;
  font-weight:900;
}
.cd__label{font-size:11px; color: rgba(255,255,255,.70); font-weight:850}
.cd__time{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:13px;
  letter-spacing:.8px;
  padding:6px 10px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.livepanel__hero{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:12px;
}
@media (max-width: 420px){
  .livepanel__hero{grid-template-columns:1fr}
}
.kicker{
  color: var(--gold2);
  font-weight:1000;
  letter-spacing:.4px;
  font-size:12px;
  text-transform:uppercase;
}
.headline{
  margin-top:6px;
  font-weight:1000;
  letter-spacing:.2px;
  font-size:16px;
}
.subcopy{
  margin-top:6px;
  color: rgba(255,255,255,.78);
  font-weight:750;
  line-height:1.4;
  font-size:12px;
}
.livepanel__cta{margin-top:12px; display:flex; gap:10px}
.livepanel__cta .btn{flex:1; border-radius:12px}

.livepanel__stats{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.stat{
  padding:12px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.stat__label{
  font-size:11px;
  color: rgba(255,255,255,.70);
  font-weight:850;
  letter-spacing:.3px;
  text-transform:uppercase;
}
.stat__value{
  margin-top:6px;
  display:flex;
  align-items:baseline;
  gap:10px;
  font-weight:1000;
  letter-spacing:.3px;
}
.ping{color: rgba(255,236,154,.95)}
.ok{
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  background: rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.22);
  color: rgba(190,255,214,.92);
}
.bar{
  margin-top:10px;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.bar__fill{
  height:100%;
  width:50%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,236,154,.95), rgba(255,42,42,.75));
  box-shadow: 0 10px 24px rgba(255,42,42,.18);
  transition: width .35s ease;
}
.mini{
  margin-top:6px;
  font-size:11px;
  color: rgba(255,255,255,.62);
  font-weight:750;
}

.livepanel__feed{margin-top:12px}
.feed__title{
  font-weight:1000;
  letter-spacing:.35px;
  color: rgba(255,255,255,.86);
  font-size:12px;
  text-transform:uppercase;
}
.feed__box{
  margin-top:10px;
  border-radius:16px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.10);
  padding:12px 12px;
  overflow:hidden;
}
.feed__row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  font-weight:950;
  letter-spacing:.2px;
  font-size:12px;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}
.feed__row.is-show{opacity:1; transform: translateY(0)}
.feed__name{color: rgba(255,236,154,.95)}
.feed__msg{color: rgba(255,255,255,.82); font-weight:850; flex:1}
.feed__amt{
  color: rgba(255,140,140,.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space:nowrap;
}
.feed__sep{opacity:.55}


/* ===== Carousel ===== */
.carousel{
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.22));
  overflow:hidden;
}
.carousel__track{
  display:flex;
  transition: transform .55s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}
.slide{
  min-width:100%;
  padding:14px 14px 16px;
  position:relative;
  background:
    radial-gradient(520px 200px at 20% 0%, rgba(247,201,74,.18), transparent 62%),
    radial-gradient(520px 200px at 80% 0%, rgba(255,42,42,.16), transparent 62%);
}
.slide__badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.45px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.50);
  border:1px solid rgba(255,255,255,.14);
  color: var(--gold2);
}
.slide__title{
  margin-top:10px;
  font-weight:1000;
  font-size:15px;
  letter-spacing:.2px;
}
.slide__desc{
  margin-top:6px;
  font-size:12px;
  color: rgba(255,255,255,.78);
  font-weight:750;
  line-height:1.4;
}
.carousel__dots{
  display:flex;
  gap:8px;
  justify-content:center;
  padding:10px 10px 12px;
  background: rgba(0,0,0,.35);
  border-top:1px solid rgba(255,255,255,.08);
}
.dotbtn{
  width:9px;height:9px;border-radius:999px;
  background: rgba(255,255,255,.26);
  border:1px solid rgba(255,255,255,.18);
}
.dotbtn.is-on{
  background: rgba(247,201,74,.92);
  box-shadow: 0 0 0 4px rgba(247,201,74,.14);
}

/* ===== Claim button glow ===== */
.btn--claim{
  position:relative;
  overflow:hidden;
  box-shadow: 0 18px 55px rgba(247,201,74,.14);
}
.btn--claim::before{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(90deg, rgba(247,201,74,0), rgba(247,201,74,.55), rgba(247,201,74,0));
  transform: translateX(-120%);
  animation: claimSweep 2.2s ease-in-out infinite;
  opacity:.75;
}
@keyframes claimSweep{
  0%{transform: translateX(-120%)}
  55%{transform: translateX(120%)}
  100%{transform: translateX(120%)}
}
.livepanel__cta{flex-wrap:wrap}
.livepanel__cta .btn--claim{flex-basis:100%}
@media (min-width: 380px){
  .livepanel__cta .btn--claim{flex-basis:auto; flex:1}
}

/* ===== Modal (popup 1x) ===== */
.modal{position:fixed; inset:0; display:none; z-index:90}
.modal.is-open{display:block}
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}
.modal__card{
  position:relative;
  width:min(420px, calc(100% - 28px));
  margin: 14vh auto 0;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(255,80,0,.35), rgba(120,0,0,.30) 55%, rgba(0,0,0,.92) 100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px 14px 16px;
}
.modal__top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.modal__pill{
  font-size:11px;
  font-weight:1000;
  letter-spacing:.45px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.50);
  border:1px solid rgba(255,255,255,.14);
  color: var(--gold2);
}
.modal__close{
  width:34px;height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  font-weight:1000;
  cursor:pointer;
}
.modal__title{margin-top:12px; font-weight:1000; font-size:16px}
.modal__desc{margin-top:8px; color: rgba(255,255,255,.78); font-weight:750; line-height:1.45; font-size:12px}
.modal__cta{margin-top:12px; display:flex; gap:10px}
.modal__cta .btn{flex:1; border-radius:12px}
.modal__hint{margin-top:10px; color: rgba(255,255,255,.62); font-size:11px; line-height:1.4}

/* ===== Confetti canvas ===== */
.confetti{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:95;
  display:none;
}
.confetti.is-on{display:block}
