/* ============= base ============= */
:root {
  --bg: #0a0608;
  --bg-2: #14080c;
  --panel: rgba(28, 14, 18, 0.72);
  --panel-line: rgba(212, 175, 55, 0.14);
  --ink: #f5e9d0;
  --ink-dim: #a59880;
  --ink-mute: #6a5e4a;

  --gold: #ffc24a;
  --gold-2: #ffd97a;
  --gold-deep: #c98a14;
  --red: #ff3b6b;
  --red-deep: #b41a3d;
  --green: #5be08a;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 30px 80px -30px rgba(255, 60, 100, 0.25),
                 0 10px 40px -20px rgba(255, 194, 74, 0.18);

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Bruno Ace SC', 'Space Grotesk', sans-serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

img { display: block; }
button { font: inherit; cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
em { font-style: normal; color: var(--gold); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }

.dim { color: var(--ink-dim); }
.center { text-align: center; }
.text-gold { color: var(--gold); }
.small { font-size: 13px; }

/* ============= bg ============= */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 194, 74, 0.10), transparent 60%),
    radial-gradient(ellipse at 80% 110%, rgba(255, 59, 107, 0.10), transparent 55%),
    linear-gradient(180deg, #0a0608 0%, #100509 60%, #0a0608 100%);
}
.bg-grid::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  opacity: 0.6;
}
.bg-glow {
  position: fixed; z-index: -1;
  width: 800px; height: 800px;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.55;
  border-radius: 50%;
}
.bg-glow--gold { top: -200px; left: 30%; background: radial-gradient(circle, rgba(255, 194, 74, 0.35), transparent 60%); }
.bg-glow--red  { bottom: -300px; right: -100px; background: radial-gradient(circle, rgba(255, 59, 107, 0.30), transparent 60%); }

/* ============= nav ============= */
.nav {
  position: sticky; top: 12px;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 32px));
  padding: 12px 18px;
  background: rgba(20, 8, 12, 0.66);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.6);
}
.nav__links { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-dim); }
.nav__links a:hover { color: var(--ink); }
.nav--app { width: min(1320px, calc(100% - 32px)); border-radius: 16px; }
.nav__app-mid { font-size: 13px; color: var(--ink-dim); }
.nav__app-right { display: flex; align-items: center; gap: 12px; }
.wallet {
  padding: 8px 12px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(255,194,74,0.05);
  font-size: 13px;
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: 0.06em; font-size: 18px; }
.brand img { filter: drop-shadow(0 0 12px rgba(255, 194, 74, 0.45)); }
.brand__name em { color: var(--gold); font-weight: 500; }

/* ============= buttons ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-transform: none;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a0a06;
  box-shadow:
    0 14px 30px -10px rgba(255, 194, 74, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { transform: translateY(-1px); color: #1a0a06; box-shadow: 0 22px 40px -12px rgba(255, 194, 74, 0.7); }
.btn--ghost { color: var(--ink); border-color: var(--panel-line); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { color: var(--gold); border-color: rgba(255,194,74,0.4); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ============= chips ============= */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  background: rgba(255, 194, 74, 0.05);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip--live { color: var(--gold); border-color: rgba(255, 194, 74, 0.3); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============= eyebrow ============= */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.8;
}

/* ============= hero ============= */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}
.hero__chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__title { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.title__small {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.title__big {
  font-family: var(--display);
  font-size: clamp(70px, 13vw, 168px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 80px rgba(255, 194, 74, 0.35);
}
.cursor { animation: blink 1.1s steps(2) infinite; color: var(--gold); -webkit-text-fill-color: var(--gold); }
@keyframes blink { 50% { opacity: 0; } }

.hero__lead {
  margin: 28px auto 36px;
  max-width: 620px;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.6;
}
.hero__lead b { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 70px auto 40px;
  max-width: 720px;
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--gold);
  letter-spacing: 0.04em;
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* ============= jackpot widget (hero) ============= */
.hero__jackpot {
  margin: 30px auto 0;
  padding: 24px;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.jp__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.jp__value {
  font-family: var(--display);
  font-size: 38px;
  color: var(--gold);
  margin: 8px 0 6px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255, 194, 74, 0.4);
}
.jp__value--xl { font-size: clamp(48px, 7vw, 78px); }
.jp__sub { color: var(--ink-dim); font-size: 13.5px; }
.jp__sub b { color: var(--ink); }

/* ============= sections ============= */
.section {
  max-width: 1180px;
  margin: 80px auto;
  padding: 0 24px;
}
.section--alt {
  padding: 60px 24px;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(255,194,74,0.02), rgba(255,59,107,0.02));
}
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head h2 em { color: var(--gold); }
.section__lead { color: var(--ink-dim); font-size: 17px; margin-top: 12px; max-width: 580px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
}

.bullets { list-style: none; padding: 0; margin: 24px 0 0; }
.bullets li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--panel-line);
  color: var(--ink-dim);
}
.bullets li:last-child { border-bottom: 1px solid var(--panel-line); }
.bullets li::before {
  content: "7";
  position: absolute; left: 0; top: 8px;
  font-family: var(--display);
  color: var(--gold);
  font-size: 14px;
}
.bullets li b { color: var(--ink); }

/* ============= steps ============= */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.step::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}
.step h3 { font-family: var(--display); font-size: 16px; text-transform: none; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 14.5px; margin: 0; }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 18px;
}

/* ============= card (jackpot) ============= */
.card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card--jackpot .btn { margin-top: 22px; }

.meter {
  height: 8px;
  background: rgba(255,194,74,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 8px;
  position: relative;
}
.meter__fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--red));
  border-radius: 999px;
  transition: width 1s linear;
  box-shadow: 0 0 14px rgba(255, 194, 74, 0.5);
}
.meter__legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.12em; }

/* ============= tokenomics ============= */
.tokenomics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .tokenomics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tokenomics { grid-template-columns: 1fr; } }
.tok {
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  text-align: left;
}
.tok__value {
  font-family: var(--display);
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.tok__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* ============= faq ============= */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(255,194,74,0.35); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--display); font-size: 22px; }
.faq details[open] summary::after { content: "—"; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-dim); font-size: 15px; margin: 12px 0 0; }
.faq code { background: rgba(255,194,74,0.1); padding: 2px 6px; border-radius: 6px; color: var(--gold); }

/* ============= cta ============= */
.cta {
  text-align: center;
  margin: 100px auto 60px;
  padding: 60px 24px;
  max-width: 1180px;
  border-top: 1px solid var(--panel-line);
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--ink-dim); margin-bottom: 28px; font-size: 17px; }

/* ============= footer ============= */
.foot {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--panel-line);
}
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 14px; }
.foot__h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-mute); margin-bottom: 12px; }
.foot a { display: block; color: var(--ink-dim); padding: 4px 0; }
.foot a:hover { color: var(--gold); }

/* ============= APP page ============= */
.app { width: min(1320px, calc(100% - 32px)); margin: 22px auto 60px; }

.app__hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 30px;
  align-items: center;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.app__hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,194,74,0.10), transparent 70%);
  pointer-events: none;
}
.app__hero > * { position: relative; }
@media (max-width: 880px) { .app__hero { grid-template-columns: 1fr; } }
.app__hero-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-top: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.countdown {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1;
}
.big-jackpot {
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 96px);
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 50px rgba(255, 194, 74, 0.45);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
@media (max-width: 880px) { .cards-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
}
.kpi__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-mute); }
.kpi__value { font-family: var(--display); font-size: 28px; color: var(--ink); margin: 8px 0 4px; }
.kpi__sub { font-size: 12.5px; color: var(--ink-dim); }

.grid-app {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
@media (max-width: 980px) { .grid-app { grid-template-columns: 1fr; } }
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(12px);
}
.panel--side { grid-row: span 2; }
@media (max-width: 980px) { .panel--side { grid-row: auto; } }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--panel-line); }
.tbl th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.mono { font-family: var(--mono); }
.tbl td b { color: var(--gold); }
.tbl tr.fresh { animation: flash 1.6s ease-out; }
@keyframes flash {
  0% { background: rgba(255, 194, 74, 0.18); }
  100% { background: transparent; }
}

/* sidebar form */
.field { display: block; margin: 16px 0; }
.field span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); display: block; margin-bottom: 8px; }
.field__input {
  display: flex; align-items: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field__input input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-family: var(--display); font-size: 22px;
}
.field__input .suffix { color: var(--ink-mute); font-family: var(--mono); font-size: 13px; }

.row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--ink-dim); }
.row b { color: var(--ink); font-weight: 600; }
.hr { border: 0; border-top: 1px dashed var(--panel-line); margin: 18px 0; }

/* tickets */
.tickets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .tickets { grid-template-columns: repeat(2, 1fr); } }
.ticket {
  background: linear-gradient(160deg, rgba(255, 194, 74, 0.08), rgba(255, 59, 107, 0.05));
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: transform .15s ease, border-color .2s ease;
}
.ticket:hover { transform: translateY(-2px); border-color: rgba(255,194,74,0.4); }
.ticket--ghost {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px);
  opacity: 0.65;
}
.ticket__no { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.12em; }
.ticket__face { display: flex; gap: 6px; }
.seven {
  flex: 1;
  text-align: center;
  font-family: var(--display);
  font-size: 36px;
  color: var(--gold);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  text-shadow: 0 0 16px rgba(255, 194, 74, 0.5);
}
.seven.dim { color: var(--ink-mute); text-shadow: none; }
.ticket__meta { display: flex; justify-content: space-between; align-items: center; }
.rare {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--ink-dim);
}
.rare--gold { background: rgba(255,194,74,0.15); color: var(--gold); }

/* lever spin overlay */
.reel-wrap {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 0, 2, 0.78);
  z-index: 100;
  backdrop-filter: blur(8px);
}
.reel-wrap[hidden] { display: none !important; }
.reel-card {
  background: var(--panel);
  border: 1px solid rgba(255,194,74,0.4);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: 0 30px 80px -10px rgba(255, 194, 74, 0.4);
}
.reel-row { display: flex; gap: 12px; justify-content: center; }
.reel {
  width: 88px; height: 110px;
  background: #0a0608;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.reel__inner {
  font-family: var(--display);
  font-size: 64px;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  text-shadow: 0 0 20px rgba(255, 194, 74, 0.6);
}
.reel-msg {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.reel-msg.win { color: var(--gold); }

/* ============= particles canvas ============= */
.bg-particles {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  width: 100%; height: 100%;
  opacity: 0.85;
}

/* ============= live ticker ============= */
.ticker {
  position: relative;
  z-index: 5;
  width: 100%;
  border-bottom: 1px solid var(--panel-line);
  background: rgba(255, 194, 74, 0.04);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: tickerSlide 60s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item { padding: 0 28px; display: inline-flex; align-items: center; gap: 8px; }
.ticker__item.win { color: var(--gold); }
.ticker__item.buy b { color: var(--ink); }
.ticker__sep { color: var(--ink-mute); margin: 0 4px; }
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============= tiers ============= */
.tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  backdrop-filter: blur(10px);
}
.tier::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 0%, rgba(255,194,74,0) 50%, rgba(255,194,74,0.18) 100%);
  border-radius: var(--radius);
  pointer-events: none; opacity: 0; transition: opacity .25s ease;
}
.tier:hover { transform: translateY(-3px); border-color: rgba(255,194,74,0.45); box-shadow: 0 18px 50px -20px rgba(255,194,74,0.35); }
.tier:hover::before { opacity: 1; }
.tier__rarity {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); display: inline-block; margin-bottom: 14px;
}
.tier--3 .tier__rarity { color: var(--gold); background: rgba(255,194,74,0.15); }
.tier--4 .tier__rarity { color: #b3e8ff; background: rgba(120,200,255,0.15); }
.tier--5 .tier__rarity {
  background: linear-gradient(90deg, rgba(255,194,74,0.2), rgba(255,59,107,0.2));
  color: #ffd97a;
}
.tier__face { display: flex; gap: 5px; justify-content: center; margin-bottom: 14px; min-height: 44px; align-items: center; }
.seven.sm {
  font-size: 22px; padding: 6px 4px; min-width: 32px;
  flex: 0 0 auto;
}
.seven.gem { color: #b3e8ff; text-shadow: 0 0 14px rgba(180,240,255,0.55); }
.seven.star { color: #ffd97a; text-shadow: 0 0 18px rgba(255,194,74,0.7); }
.tier__name { font-family: var(--display); font-size: 17px; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.02em; }
.tier__odds { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-bottom: 4px; letter-spacing: 0.04em; }
.tier__rate { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.16em; }

/* ============= code block ============= */
.codeblock {
  background: #07050a;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  font-family: var(--mono);
}
.codeblock__head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--panel-line);
}
.cb-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.cb-dot--r { background: #ff5f56; }
.cb-dot--y { background: #ffbd2e; }
.cb-dot--g { background: #27c93f; }
.codeblock__file {
  margin-left: 14px;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.codeblock__body {
  margin: 0; padding: 22px 24px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #d8d2c6;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(255,194,74,0.02), transparent 40%);
}
.codeblock__body code { font-family: var(--mono); white-space: pre; }
.cb-c { color: #6a5e4a; font-style: italic; }
.cb-k { color: #ff8aa6; }
.cb-f { color: #ffc24a; }
.cb-n { color: #b3e8ff; }

/* ============= roadmap ============= */
.rmap {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.rmap::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 18px;
  height: 1px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--red), transparent);
  opacity: 0.35;
}
@media (max-width: 980px) { .rmap { grid-template-columns: 1fr 1fr; } .rmap::before { display:none; } }
@media (max-width: 600px) { .rmap { grid-template-columns: 1fr; } }
.rmap__item {
  position: relative;
  padding-top: 40px;
}
.rmap__dot {
  position: absolute; top: 12px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-mute);
}
.rmap__item--done .rmap__dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 12px var(--green); }
.rmap__item--active .rmap__dot {
  border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  animation: pulse 1.6s infinite;
}
.rmap__phase {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.rmap__item h4 {
  font-family: var(--display); font-size: 18px; letter-spacing: 0.02em;
  color: var(--ink); margin: 0 0 6px;
}
.rmap__item p { color: var(--ink-dim); font-size: 14px; margin: 0; line-height: 1.55; }

/* ============= big numbers ============= */
.bignums {
  margin: 60px 0 0;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(255,194,74,0.04), rgba(255,59,107,0.04));
  padding: 50px 24px;
}
.bignums__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) { .bignums__inner { grid-template-columns: repeat(2, 1fr); } }
.bn__v {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  background: linear-gradient(180deg, var(--gold-2), var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.02em;
}
.bn__l {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 10px;
}

/* ============= app: trio of new panels ============= */
.grid-trio {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 1080px) { .grid-trio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-trio { grid-template-columns: 1fr; } }

/* recent buys */
.buys { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; gap: 8px; padding-right: 4px; }
.buys::-webkit-scrollbar { width: 6px; }
.buys::-webkit-scrollbar-track { background: transparent; }
.buys::-webkit-scrollbar-thumb { background: rgba(255,194,74,0.2); border-radius: 999px; }
.buy-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  animation: buyIn .35s ease-out;
}
@keyframes buyIn {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.buy-row__ico {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 14px; color: #1a0a06;
}
.buy-row__addr { font-family: var(--mono); color: var(--ink-dim); font-size: 12.5px; }
.buy-row__addr b { color: var(--ink); }
.buy-row__amt { font-family: var(--mono); color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.buy-row__tier {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.buy-row__tier.t-common  { background: rgba(255,255,255,0.05); color: var(--ink-dim); }
.buy-row__tier.t-silver  { background: rgba(180,200,220,0.14); color: #c8d6e4; }
.buy-row__tier.t-gold    { background: rgba(255,194,74,0.18); color: var(--gold); }
.buy-row__tier.t-diamond { background: rgba(120,200,255,0.18); color: #b3e8ff; }
.buy-row__tier.t-lucky   { background: linear-gradient(90deg, rgba(255,194,74,0.25), rgba(255,59,107,0.25)); color: #ffd97a; }

/* leaderboard */
.board { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.board li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: rgba(255,255,255,0.015);
}
.board li:nth-child(1) { background: linear-gradient(90deg, rgba(255,194,74,0.12), transparent); border-color: rgba(255,194,74,0.3); }
.board li:nth-child(2) { background: linear-gradient(90deg, rgba(192,192,192,0.10), transparent); }
.board li:nth-child(3) { background: linear-gradient(90deg, rgba(205,127,50,0.10), transparent); }
.board__rank { font-family: var(--display); color: var(--ink-mute); font-size: 16px; }
.board li:nth-child(1) .board__rank { color: var(--gold); }
.board li:nth-child(2) .board__rank { color: #c8d6e4; }
.board li:nth-child(3) .board__rank { color: #cd7f32; }
.board__addr { color: var(--ink-dim); }
.board__amt { font-family: var(--mono); color: var(--gold); white-space: nowrap; font-weight: 600; }

/* calculator */
.calc { display: flex; flex-direction: column; gap: 14px; }
.calc__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.calc__row span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
.calc__row output { font-family: var(--mono); font-size: 13px; color: var(--gold); white-space: nowrap; min-width: 78px; text-align: right; }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  background: transparent; width: 100%;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: rgba(255,194,74,0.15); border-radius: 999px;
}
.calc input[type="range"]::-moz-range-track {
  height: 4px; background: rgba(255,194,74,0.15); border-radius: 999px;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 12px rgba(255,194,74,0.6);
  margin-top: -6px;
  cursor: pointer;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 12px rgba(255,194,74,0.6);
  cursor: pointer;
}
.calc__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 14px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-line); border-radius: var(--radius-sm);
}
.calc__lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-mute); margin-bottom: 4px; }
.calc__val { font-family: var(--display); font-size: 20px; color: var(--ink); }
.calc__bar {
  height: 6px; background: rgba(255,194,74,0.1); border-radius: 999px; overflow: hidden;
  margin-top: 4px;
}
.calc__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--red));
  border-radius: 999px;
  transition: width .3s ease;
  box-shadow: 0 0 10px rgba(255,194,74,0.5);
}
.calc__hint { margin-top: 4px; }

/* ============= wallet button + modal ============= */
button.wallet { background: rgba(255,194,74,0.05); cursor: pointer; transition: border-color .2s; display: inline-flex; align-items: center; gap: 8px; }
button.wallet:hover { border-color: rgba(255,194,74,0.5); color: var(--gold); }
.dot--on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hide-sm { display: inline-flex; }
@media (max-width: 720px) { .hide-sm { display: none; } }

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none !important; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 0, 2, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal__card {
  position: relative;
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid rgba(255,194,74,0.3);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -10px rgba(255, 194, 74, 0.3);
  animation: modalIn .25s cubic-bezier(.2,.8,.3,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal__x {
  background: none; border: 0; color: var(--ink-mute);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.modal__x:hover { color: var(--gold); }

.wallets { display: grid; gap: 8px; margin-top: 18px; }
.wallet-opt {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.wallet-opt:hover { border-color: rgba(255,194,74,0.45); background: rgba(255,194,74,0.04); transform: translateX(2px); }
.wallet-opt__ico { width: 32px; height: 32px; border-radius: 8px; display: block; }

.wallet-loading {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--panel-line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 14px;
}
.wallet-loading[hidden] { display: none; }
.loader {
  width: 22px; height: 22px;
  border: 2px solid rgba(255,194,74,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============= reveal-on-scroll ============= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============= jackpot value flash ============= */
.flash-up {
  animation: flashUp .9s ease-out;
}
@keyframes flashUp {
  0%   { color: var(--gold-2); text-shadow: 0 0 30px rgba(255,217,122,0.9); }
  100% { color: var(--gold);   text-shadow: 0 0 30px rgba(255,194,74,0.4); }
}
