:root {
  --bg: #0d0820;
  --bg2: #150d30;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f0ff;
  --muted: #a99fc9;
  --gold: #ffcf5a;
  --pink: #ff5e8a;
  --violet: #8b6cff;
  --grad: linear-gradient(120deg, var(--gold), var(--pink) 55%, var(--violet));
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 94, 138, 0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(139, 108, 255, 0.2), transparent 60%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand, .cd span, .strip b { font-family: "Space Grotesk", sans-serif; }
a { color: var(--gold); text-decoration: none; }
code { font-family: ui-monospace, Menlo, monospace; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.8rem; margin-top: 18px; }

/* buttons */
.btn {
  border: 0; cursor: pointer; border-radius: 999px; padding: 11px 20px;
  font: 600 0.95rem Inter, sans-serif; color: var(--text); display: inline-flex;
  align-items: center; gap: 8px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn small { font-weight: 400; opacity: 0.75; font-size: 0.75rem; }
.btn-primary { background: var(--grad); color: #1a1033; box-shadow: 0 8px 30px rgba(255, 94, 138, 0.35); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw; backdrop-filter: blur(14px); background: rgba(13, 8, 32, 0.7); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--text); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding: 80px 5vw 60px; max-width: 1240px; margin: 0 auto;
}
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.82rem; color: var(--muted); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin: 22px 0; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }

.countdown-card {
  background: linear-gradient(160deg, rgba(255, 207, 90, 0.08), rgba(139, 108, 255, 0.08)), var(--bg2);
  border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.cd-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; color: var(--muted); }
.cd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 10px; }
.cd div { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 14px; padding: 16px 6px; text-align: center; }
.cd span { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; }
.cd small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cd-sub { color: var(--muted); font-size: 0.85rem; }
.today-gift { display: flex; gap: 18px; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.tg-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.tg-name { font: 700 1.35rem "Space Grotesk", sans-serif; }
.tg-meta { color: var(--muted); font-size: 0.85rem; }

/* gift box */
.gift-box { position: relative; width: 64px; height: 56px; flex: none; margin-top: 10px; animation: bob 3s ease-in-out infinite; }
.gift-box::before { content: ""; position: absolute; inset: 14px 4px 0; border-radius: 6px; background: var(--grad); }
.gift-box .lid { position: absolute; left: 0; right: 0; top: 4px; height: 14px; border-radius: 4px; background: var(--gold); animation: lid 3s ease-in-out infinite; }
.gift-box .ribbon { position: absolute; left: 28px; width: 8px; top: 4px; bottom: 0; background: #1a1033; opacity: 0.8; }
.gift-box.small { transform: scale(0.8); }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes lid { 50% { transform: translateY(-5px) rotate(-6deg); } }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: 0 auto; padding: 0 5vw; gap: 14px; }
.strip div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-align: center; }
.strip b { display: block; font-size: 1.9rem; }
.strip span { color: var(--muted); font-size: 0.85rem; }

/* sections */
.section { max-width: 1240px; margin: 0 auto; padding: 90px 5vw 0; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
.section-lead { color: var(--muted); margin: 8px 0 30px; max-width: 680px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step-n { font: 700 0.9rem "Space Grotesk"; color: var(--gold); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* check */
.check-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 36px; border-radius: 26px;
  background: var(--bg2); border: 1px solid var(--line);
}
.wallet-buttons, .wallet-connected { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.wallet-connected code { background: rgba(0, 0, 0, 0.3); padding: 8px 12px; border-radius: 10px; font-size: 0.8rem; word-break: break-all; }
.balances { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.bal-total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bal-total span { color: var(--muted); }
.bal-total b { font: 700 1.8rem "Space Grotesk"; }
.balances ul { list-style: none; }
.balances li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.balances li:last-child { border: 0; }

/* brands */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-tile {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 14px; text-align: center; font: 600 1rem "Space Grotesk"; transition: border-color 0.2s, transform 0.2s;
}
.brand-tile:hover { transform: translateY(-3px); border-color: rgba(255, 207, 90, 0.4); }
.brand-tile.active { background: linear-gradient(140deg, rgba(255, 207, 90, 0.18), rgba(255, 94, 138, 0.18)); border-color: var(--gold); box-shadow: 0 0 30px rgba(255, 207, 90, 0.25); }
.brand-tile em { position: absolute; top: -9px; right: 10px; font: 700 0.65rem Inter; font-style: normal; background: var(--gold); color: #1a1033; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }

/* board */
.board { background: var(--bg2); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.board-empty { display: flex; gap: 22px; align-items: center; color: var(--muted); }
.board-empty b { color: var(--text); }
.board-list { list-style: none; }
.board-list li { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.board-list li.me { background: rgba(255, 207, 90, 0.1); border-radius: 12px; }
.rank { font: 700 1.2rem "Space Grotesk"; color: var(--gold); }
.tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.board-foot { color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

/* chains */
.chains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chain { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; border-top: 3px solid; }
.chain h4 { margin-bottom: 12px; font-size: 1.1rem; }
.chain-base { border-top-color: #3d7bff; }
.chain-robinhood { border-top-color: #c8ff3d; }
.chain-bsc { border-top-color: #f3ba2f; }
.chain-solana { border-top-color: #14f195; }
.ca { cursor: pointer; display: block; font-size: 0.85rem; margin-bottom: 8px; }
.link { font-size: 0.85rem; }
.soon { color: var(--muted); font-size: 0.88rem; }

/* rules + faq */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.rules div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.rules h4 { margin-bottom: 6px; }
.rules p { color: var(--muted); font-size: 0.92rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 10px; }

.cta { text-align: center; padding: 110px 5vw 90px; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: var(--muted); margin-top: 8px; }

.footer { border-top: 1px solid var(--line); padding: 36px 5vw; text-align: center; color: var(--muted); font-size: 0.82rem; display: grid; gap: 12px; justify-items: center; }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(5, 3, 15, 0.7); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 24px; width: 100%; max-width: 400px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.x { background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 8px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: 600 0.95rem Inter;
}
.wallet-opt:hover { border-color: var(--gold); }
.wallet-opt img { width: 28px; height: 28px; border-radius: 8px; }
.wallet-opt .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); }
.wallet-opt em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px; z-index: 60; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .check-card { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .strip, .chains { grid-template-columns: repeat(2, 1fr); }
  .steps, .rules { grid-template-columns: 1fr; }
  .board-list li { grid-template-columns: 44px 1fr auto; }
  .board-list .tag { display: none; }
}
