:root{
  --bg0:#070608;
  --bg1:#0c0a10;
  --panel:#121018;
  --gold1:#f7e7a6;
  --gold2:#f1c75b;
  --gold3:#c9972a;
  --ink:#f7f3e8;
  --muted:#d7cfae;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(241,199,91,.18), transparent 60%),
    linear-gradient(180deg,var(--bg0),var(--bg1));
  color:var(--ink);
}

.wrap{
  max-width:900px;
  margin:auto;
  padding:28px 16px 52px;
  display:grid;
  gap:18px;
}

.header{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.kicker{
  letter-spacing:.28em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--gold2);
}

.title{
  margin:6px 0;
  font-size:40px;
  background:linear-gradient(90deg,var(--gold1),var(--gold2));
  -webkit-background-clip:text;
  color:transparent;
}

.subtitle{
  color:var(--muted);
  max-width:56ch;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(241,199,91,.28);
  background:rgba(18,16,24,.85);
  color:rgba(247,231,166,.92);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}

.dot{
  width:8px;height:8px;border-radius:50%;
  background:radial-gradient(circle,var(--gold1),var(--gold3));
}

.panel{
  background:var(--panel);
  border:1px solid rgba(241,199,91,.18);
  border-radius:18px;
  padding:18px;
  display:grid;
  gap:12px;
  position:relative;
}

h2{
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:13px;
  color:var(--gold2);
}

.fortune{
  border:1px solid rgba(241,199,91,.22);
  border-radius:16px;
  padding:16px;
  font-size:18px;
  position:relative;
  overflow:hidden;
}

.numbers{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.number-line{
  display:flex;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(241,199,91,.26);
  background:linear-gradient(180deg,rgba(241,199,91,.12),rgba(201,151,42,.08));
}

.number-line.is-infinity{
  box-shadow:0 0 18px rgba(241,199,91,.35);
}

.number-label{
  width:120px;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:12px;
  color:var(--gold1);
}

.number-value{
  font-size:15px;
}

.number-line.is-infinity .number-value{
  font-size:18px;
  text-shadow:0 0 12px rgba(241,199,91,.4);
}

.actions{
  display:flex;
  justify-content:center;
}

button{
  border-radius:14px;
  border:1px solid rgba(241,199,91,.35);
  padding:10px 18px;
  background:linear-gradient(180deg,rgba(241,199,91,.25),rgba(201,151,42,.15));
  color:var(--ink);
  font-weight:700;
  cursor:pointer;
}

.toggles{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  border-top:1px solid rgba(241,199,91,.14);
  padding-top:10px;
}

label{
  font-size:12px;
  border:1px solid rgba(241,199,91,.18);
  padding:8px 10px;
  border-radius:12px;
}

.footer{
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

/* Cookie crack glow (no resize) */
@keyframes cookieCrackGlow{
  0%{filter:brightness(1);box-shadow:none}
  40%{filter:brightness(1.1);box-shadow:0 0 0 2px rgba(241,199,91,.2),0 0 22px rgba(241,199,91,.18)}
  100%{filter:brightness(1);box-shadow:none}
}

.panel.cookie-crack{
  animation:cookieCrackGlow 520ms ease-out;
}

/* Particle burst */
.spark-burst{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.spark{
  position:absolute;
  width:6px;height:6px;
  border-radius:999px;
  background:radial-gradient(circle,var(--gold1),var(--gold2));
  box-shadow:0 0 10px rgba(241,199,91,.35);
  opacity:0;
  transform:translate(-50%,-50%);
  animation:sparkFly 650ms ease-out forwards;
}

@keyframes sparkFly{
  0%{opacity:0;transform:translate(-50%,-50%) translate(0,0)}
  15%{opacity:1}
  100%{opacity:0;transform:translate(-50%,-50%) translate(var(--dx),var(--dy))}
}
