:root {
  --bg: #07070c;
  --panel: rgba(18, 18, 30, .72);
  --panel-solid: #12121e;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f3f1ff;
  --muted: #9b98b5;
  --violet: #8b5cf6;
  --ice: #7dd3fc;
  --gold: #f5c76b;
  --gold-dk: #b8862f;
  --cash: #3ddc84;
  --red: #ff5a6a;
  --display: "Playfair Display", Georgia, serif;
  --ui: "Unbounded", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.55 "Inter", system-ui, sans-serif;
  min-height: 100vh; overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
.aura-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% 22%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(50vw 40vh at 10% 80%, rgba(125, 211, 252, .14), transparent 70%),
    radial-gradient(40vw 30vh at 50% 105%, rgba(245, 199, 107, .12), transparent 70%);
}

/* ---------- $FAUCET strip ---------- */
.strip {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; font: 600 12.5px var(--ui); letter-spacing: .3px;
  background: linear-gradient(90deg, rgba(139, 92, 246, .28), rgba(245, 199, 107, .22), rgba(139, 92, 246, .28));
  border-bottom: 1px solid var(--line);
}
.strip a { color: var(--gold); text-decoration: none; }
.strip a:hover { text-decoration: underline; }
.strip-tag { font-weight: 800; color: #fff; }
.strip-ca {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 7, 12, .55); color: var(--text);
  padding: 3px 4px 3px 10px; font: 700 12px var(--mono);
}
.strip-ca .lbl { color: var(--muted); }
.strip-ca .full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-ca .short { display: none; }
.strip-ca .cp { background: var(--gold); color: #000; border-radius: 999px; padding: 1px 8px; font: 800 10px var(--ui); text-transform: uppercase; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: rgba(7, 7, 12, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.brand span { font: 800 16px var(--ui); letter-spacing: 1px; }
.brand b { color: var(--gold); font-weight: 800; }
.btn {
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: linear-gradient(135deg, #a78bfa, var(--violet) 50%, #6d28d9); color: #fff;
  font: 700 12px var(--ui); letter-spacing: .5px; text-decoration: none; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 6px 24px rgba(139, 92, 246, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 8px 30px rgba(139, 92, 246, .5); }
.btn.ghost { background: transparent; box-shadow: 0 0 0 1px var(--gold) inset; color: var(--gold); }
.btn.on { background: var(--panel-solid); box-shadow: 0 0 0 1px var(--line-2) inset; }
.ca {
  display: flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); padding: 7px 12px 7px 7px;
  font: 700 12px var(--mono);
}
.xbtn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text); flex: none;
}
.xbtn svg { width: 16px; height: 16px; }
.xbtn:hover { border-color: var(--text); }
.ca-tag { background: var(--gold); color: #000; border-radius: 999px; padding: 1px 7px; font: 800 10px var(--ui); }

/* ---------- hero ---------- */
main { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 60px 0 44px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; border-radius: 999px;
  border: 1px solid var(--line-2); padding: 6px 14px; font: 700 11px var(--ui); letter-spacing: 1px; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #777; }
.dot.live { background: var(--cash); box-shadow: 0 0 10px var(--cash); animation: pulse 1.6s infinite; }
.dot.practice { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dot.closed { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; } }
h1 { margin: 22px 0 20px; line-height: .9; }
h1 .free { display: block; font: 800 clamp(22px, 2.6vw, 30px) var(--ui); letter-spacing: 10px; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
h1 .diamond {
  display: block; position: relative;
  font: 900 clamp(76px, 11.5vw, 148px)/1 var(--display); letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6f5 30%, #8e98ad 48%, #f7f9ff 55%, #b7c0d4 75%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, .55)) drop-shadow(0 4px 0 #2b2547);
}
h1 .diamond::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3.8s ease-in-out infinite;
}
@keyframes shine { 0%, 40% { background-position: -200% 0; } 80%, 100% { background-position: 200% 0; } }
h1 .script { display: block; font: 700 clamp(40px, 5vw, 62px) "Caveat", cursive; color: var(--ice); text-shadow: 0 0 18px rgba(125, 211, 252, .7); margin: -6px 0 0 40%; transform: rotate(-4deg); }
.lede { font-size: 18px; max-width: 480px; color: var(--muted); }
.lede strong { color: var(--gold); font-weight: 600; }
.price { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.price div { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); padding: 12px 18px; min-width: 180px; }
.price span { display: block; font: 700 10px var(--ui); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.price b { font: 700 20px var(--mono); }
.mystery b {
  background: linear-gradient(90deg, var(--gold), #fff3c8, var(--ice), var(--violet), var(--gold)) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ---------- the machine ---------- */
.machine {
  position: relative; border-radius: 28px; padding: 26px 28px 28px;
  background: linear-gradient(180deg, rgba(30, 26, 52, .85), rgba(14, 14, 24, .9));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 199, 107, .08) inset;
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.machine::before {
  content: ""; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(245, 199, 107, .7), transparent 35%, transparent 65%, rgba(139, 92, 246, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tap { width: 240px; align-self: flex-start; margin: 0 0 0 calc(50% - 177px); overflow: visible; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.handle { transform-origin: 83px 20px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.machine.pouring .handle { transform: rotate(-28deg); }
.stream { position: relative; width: 26px; height: 64px; margin-top: -6px; }
.stream i {
  position: absolute; left: 0; width: 26px; height: 26px; border-radius: 50%;
  background: url(/kimchi.png) center / cover; border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(245, 199, 107, .6);
  animation: drop .6s cubic-bezier(.5, 0, 1, 1) forwards;
}
@keyframes drop { from { top: -14px; transform: rotateY(0); } to { top: 80px; transform: rotateY(540deg); } }
.drip { position: absolute; left: 9px; width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: idle-drip 2.4s ease-in infinite; }
@keyframes idle-drip { 0%, 55% { top: -6px; opacity: 0; transform: scale(.4); } 62% { opacity: 1; transform: scale(1); } 100% { top: 64px; opacity: 1; } }
.boss { position: relative; width: 210px; height: 210px; margin-top: -4px; }
.ring {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--ice), var(--gold), var(--violet));
  filter: blur(10px); opacity: .85; animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.coin-hero {
  position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, #fff1c4, var(--gold), var(--gold-dk), #ffe39a) border-box;
}
.machine.served .coin-hero { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.07); } }
.spark { position: absolute; color: #fff; text-shadow: 0 0 10px #fff, 0 0 20px var(--ice); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 4px; right: 8px; font-size: 26px; }
.s2 { bottom: 26px; left: -10px; font-size: 18px; animation-delay: .8s; }
.s3 { top: 46%; right: -18px; font-size: 14px; animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
.claim { width: 100%; margin-top: 26px; text-align: center; }
.pull {
  width: 100%; border: 0; border-radius: 18px; padding: 19px 16px;
  background: linear-gradient(180deg, #ffe39a, var(--gold) 45%, var(--gold-dk)); color: #1a1205;
  font: 800 17px var(--ui); letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 10px 40px rgba(245, 199, 107, .35);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.pull:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 14px 50px rgba(245, 199, 107, .5); }
.pull:active:not(:disabled) { transform: translateY(1px); }
.pull:disabled { background: #2a2838; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; cursor: not-allowed; }
.pull.done { background: linear-gradient(180deg, #7ff0b0, var(--cash) 50%, #1f9e5a); color: #04140a; }
.claim-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- result ---------- */
.result { display: flex; justify-content: center; padding-bottom: 34px; }
.ticket {
  text-align: center; padding: 22px 54px; border-radius: 22px;
  background: radial-gradient(120% 140% at 50% 0, rgba(245, 199, 107, .2), transparent 60%), var(--panel-solid);
  border: 1px solid rgba(245, 199, 107, .5); box-shadow: 0 0 60px rgba(245, 199, 107, .2);
  animation: rise .6s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes rise { from { transform: translateY(20px) scale(.95); opacity: 0; } }
.t-head { font: 800 11px var(--ui); letter-spacing: 4px; color: var(--gold); }
.t-amt { font: 900 48px var(--display); margin-top: 4px; }
.t-usd { font: 600 14px var(--ui); letter-spacing: 1px; color: var(--muted); }
.t-link { display: inline-block; margin-top: 10px; font: 700 12px var(--ui); color: var(--ice); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats > div { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.stats span { display: block; font: 700 10px var(--ui); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stats b { font: 700 22px var(--mono); }
.tank i { display: block; height: 8px; border-radius: 99px; margin-top: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tank u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width .8s; }

/* ---------- feed + how ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 44px 0 64px; }
h2 { font: 900 34px var(--display); margin-bottom: 14px; }
h3 { font: 800 12px var(--ui); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin: 24px 0 10px; }
.feed ol { list-style: none; padding: 6px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); max-height: 430px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; font: 13px var(--mono); }
.feed li + li { border-top: 1px solid var(--line); }
.feed li.new { animation: flash 1.6s; }
@keyframes flash { 0% { background: rgba(245, 199, 107, .2); } }
.feed .ico { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }
.feed .w { font-weight: 700; }
.feed .ago { color: var(--muted); font-size: 11px; display: block; }
.feed .amt { text-align: right; font-weight: 700; color: var(--gold); }
.feed .amt small { display: block; color: var(--cash); font-weight: 400; }
.feed .amt a { text-decoration: none; }
.feed .empty { display: block; color: var(--muted); font-family: inherit; }
.feed .tag { font: 800 9px var(--ui); background: var(--gold); color: #000; border-radius: 4px; padding: 0 4px; margin-left: 6px; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 11px 0 11px 54px; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 7px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 800 15px var(--ui); color: #1a1205;
  background: linear-gradient(180deg, #ffe39a, var(--gold) 50%, var(--gold-dk));
}
.rules { padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.rules li { margin: 7px 0; }
.rules li::marker { content: "✦  "; color: var(--ice); }

footer { border-top: 1px solid var(--line); text-align: center; padding: 30px 24px 36px; font-size: 14px; color: var(--muted); }
footer img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
footer p { margin-top: 6px; }
footer .mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.ca-inline { background: none; border: 0; color: var(--gold); font: inherit; padding: 0; text-decoration: underline dotted; word-break: break-all; }
footer .links a { color: var(--text); }
footer .dim { opacity: .7; font-size: 12px; }
footer b { color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%);
  background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 12px 18px; font-size: 14px; max-width: calc(100vw - 32px); z-index: 50;
  transition: transform .25s; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); color: #ffd3d8; }

.confetti { position: fixed; width: 22px; height: 22px; border-radius: 50%; pointer-events: none; z-index: 40; animation: fly 1.2s cubic-bezier(.2, .6, .4, 1) forwards; }
.confetti.coin { background: url(/kimchi.png) center / cover; border: 2px solid var(--gold); }
.confetti.bill { width: 26px; height: 13px; border-radius: 2px; background: linear-gradient(90deg, #2f8f55, #7fd49c, #2f8f55); }
.confetti.gem { width: 10px; height: 10px; border-radius: 1px; background: #e8f6ff; box-shadow: 0 0 8px var(--ice); }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar { padding: 10px 16px; gap: 8px; }
  .brand span { font-size: 13px; }
  .brand img { width: 32px; height: 32px; }
  .buy, .ca { display: none; }
  .xbtn { width: 34px; height: 34px; }
  .strip { gap: 8px 12px; font-size: 11.5px; }
  .strip-ca .full { display: none; }
  .strip-ca .short { display: inline; }
  .btn { padding: 8px 12px; font-size: 10px; }
  main { padding: 0 16px; }
  .lede { font-size: 16px; }
  .price div { flex: 1; min-width: 140px; }
  .machine { padding: 22px 16px 20px; }
  .tap { width: 200px; margin-left: calc(50% - 147px); }
  .boss { width: 170px; height: 170px; }
  .pull { font-size: 14px; }
  .stats b { font-size: 18px; }
  .ticket { padding: 20px 28px; }
}
