:root {
  --bg: #0d0d0c;
  --bg2: #151513;
  --card: #1b1b18;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3efe6;
  --muted: #a7a196;
  --gold: #f5c542;
  --gold2: #ff9f1c;
  --green: #79d36b;
  --blue: #5cc8ff;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }

h1, h2, .brand span { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; letter-spacing: 0.5px; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: 0.98; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
h3 { font-size: 24px; font-weight: 800; }
.accent { color: var(--gold); }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 19px; max-width: 640px; margin-top: 14px; }
.center { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  color: #1a1306; font-weight: 800; font-size: 17px;
  padding: 15px 26px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(245, 197, 66, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245, 197, 66, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 15px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(13, 13, 12, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.brand img { border-radius: 50%; }
.links { display: flex; gap: 28px; font-weight: 600; color: var(--muted); }
.links a:hover { color: var(--text); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: clamp(40px, 7vw, 100px) clamp(16px, 4vw, 56px) 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto auto; width: 900px; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 197, 66, 0.16), transparent);
}
.lede { font-size: 21px; color: #d8d2c6; margin-top: 22px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips li { border: 1px solid var(--line); background: var(--bg2); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.seal { width: 80%; height: auto; margin: 10% auto 0; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.float {
  position: absolute; width: 34%; border-radius: 22px; border: 4px solid var(--bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: bob 6s ease-in-out infinite;
}
.f1 { left: -4%; bottom: 2%; transform: rotate(-8deg); }
.f2 { right: -4%; top: 0; transform: rotate(7deg); animation-delay: -2s; }
.f3 { right: 2%; bottom: -4%; transform: rotate(-4deg); animation-delay: -4s; width: 28%; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: 18px 0; }
.track { display: flex; gap: 16px; width: max-content; animation: slide 70s linear infinite; }
.track img { width: 150px; height: 150px; border-radius: 16px; object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track, .float { animation: none; } }

/* sections */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 56px); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.col:hover { transform: translateY(-4px); }
.col-og:hover { border-color: var(--gold); }
.col-immortal:hover { border-color: var(--green); }
.col-mecha:hover { border-color: var(--blue); }
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--bg); }
.col-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.col-body { padding: 24px; }
.col-body p { color: var(--muted); margin-top: 8px; }
.more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--gold); }

/* token */
.token { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.facts { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.facts li { display: flex; gap: 16px; align-items: flex-start; }
.facts span { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 22px; }
.facts b { display: block; font-size: 18px; }
.facts small { color: var(--muted); font-size: 16px; }
.token-card {
  background: linear-gradient(160deg, #241f12, var(--card) 55%);
  border: 1px solid rgba(245, 197, 66, 0.35); border-radius: 28px; padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.coin { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.35), 0 0 60px rgba(245, 197, 66, 0.35); margin-bottom: 24px; }
.coin img { border-radius: 50%; }
.label { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 18px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 18px; margin-top: 6px; }
.copy {
  width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  color: var(--text); cursor: pointer; font: inherit; text-align: left;
}
.copy code { font-size: 14px; overflow-wrap: anywhere; }
.copy span { flex-shrink: 0; font-weight: 800; color: var(--gold); font-size: 14px; }
.copy:hover { border-color: var(--gold); }
.note { color: var(--muted); font-size: 14px; margin: 18px 0 20px; }

/* royale */
.royale { text-align: center; }
.royale .sub { margin-inline: auto; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; text-align: left; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: #1a1306; font-weight: 900; margin-bottom: 14px; }
.steps b { display: block; font-size: 19px; }
.steps span { color: var(--muted); font-size: 15px; display: block; margin-top: 6px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; text-align: left; }
.rules div { border: 1px dashed rgba(245, 197, 66, 0.4); border-radius: var(--radius); padding: 18px 22px; }
.rules b { display: block; font-size: 17px; }
.rules span { color: var(--muted); font-size: 15px; }

/* raffles */
.raffles { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.wallets { display: grid; gap: 14px; }
.wallet { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.wallet b { display: block; font-size: 18px; }
.wallet small { color: var(--muted); font-size: 15px; }
.wlogo { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.wlogo.xaman { background: #0f62fe; color: #fff; }
.wlogo.joey { background: #1f2a44; }
.wlogo.any { background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }

/* join */
.join { text-align: center; }
.join img { margin: 0 auto 24px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.25); }
.join .sub { margin-inline: auto; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 56px); text-align: center; color: var(--muted); font-size: 14px; }
.foot .fine { max-width: 720px; margin: 10px auto 0; font-size: 13px; opacity: 0.8; }

/* responsive */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .links { display: none; }
  .hero, .token, .raffles { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .cols { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: auto; }
  .btn { padding: 13px 20px; font-size: 16px; }
  .nav .btn-small { padding: 8px 14px; font-size: 14px; }
  .track img { width: 110px; height: 110px; }
}

/* keep decorations from widening the page */
html, body { overflow-x: clip; }
main { overflow-x: clip; }
@media (max-width: 560px) {
  .f1 { left: 0; }
  .f2 { right: 0; }
  .f3 { right: 4%; }
}

.col-links { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.col-links .more { margin-top: 0; }
.ledger { font-size: 14px; color: var(--muted); }
.ledger:hover { color: var(--text); }

/* live */
.live-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 40px; align-items: start; }
.royale-card {
  background: radial-gradient(120% 90% at 0% 0%, rgba(245, 197, 66, 0.18), transparent 60%), var(--card);
  border: 1px solid rgba(245, 197, 66, 0.35); border-radius: 28px; padding: 30px;
}
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); background: rgba(245, 197, 66, 0.14); padding: 6px 12px; border-radius: 999px; }
.pill.on { color: #0d1a0b; background: var(--green); }
.pill.fight { color: #fff; background: #e5484d; }
.rc-sub { color: var(--muted); font-size: 14px; font-weight: 600; }
.royale-card h3 { margin-top: 22px; font-size: 20px; color: #d8d2c6; font-weight: 700; }
.clock { font-family: "Alfa Slab One", Georgia, serif; font-size: clamp(44px, 6vw, 68px); line-height: 1.1; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.rc-note { color: var(--muted); margin-bottom: 22px; }

.raffle-list { display: grid; gap: 16px; }
.raffle-empty { display: grid; gap: 8px; justify-items: start; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; }
.raffle-empty span { color: var(--muted); }
.raffle-empty .btn { margin-top: 8px; }
.raffle { display: grid; grid-template-columns: 132px 1fr; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-items: center; }
.raffle img, .raffle .noimg { width: 132px; height: 132px; border-radius: 16px; object-fit: cover; background: var(--bg2); display: grid; place-items: center; font-size: 40px; }
.raffle h4 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 14px; color: var(--muted); font-size: 15px; }
.stats b { color: var(--text); }
.raffle .btn { padding: 10px 18px; font-size: 15px; }

@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .raffle { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; }
  .raffle img, .raffle .noimg { width: 96px; height: 96px; }
  .raffle h4 { font-size: 17px; }
}

/* $BAPES stats */
.tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.tstats[hidden] { display: none; }
.tstats > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tstats small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.tstats b { display: block; font-size: 24px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
#ts-burn-box { border-color: rgba(255, 120, 60, 0.45); }
.ts-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .tstats { grid-template-columns: 1fr 1fr; } .tstats b { font-size: 20px; } }

img.wlogo { object-fit: cover; }

/* the bot's host */
.host { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid rgba(245, 197, 66, 0.35); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); margin-bottom: 6px; }
.host img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.host figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(8, 8, 20, 0.92)); }
.host b { display: block; font-size: 20px; }
.host span { color: #d8d2c6; font-size: 15px; }
.empty-host { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 6px; }
