:root {
  --plum: #34192c;
  --plum-2: #4a2340;
  --pink: #ff4f9a;
  --coral: #ff9c8a;
  --mint: #6ff0c3;
  --lilac: #b9a3f0;
  --paper: #f7f0ff;
  --star: #ffd23f;
  --ink: #2a1324;
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --body: "Zen Maru Gothic", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--plum); color: var(--paper); font-family: var(--body); font-weight: 500; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h3 { font-family: var(--display); font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px;
  font-family: var(--display); font-size: 1rem; text-decoration: none; border: 3px solid var(--paper);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-pink { background: var(--pink); color: #fff; box-shadow: 4px 4px 0 var(--paper); }
.btn-pink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--paper); }
.btn-pink:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); }
.btn-ghost:hover { background: rgba(247, 240, 255, 0.1); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); background: rgba(52, 25, 44, 0.86); backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(247, 240, 255, 0.12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--paper); }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; }
.nav nav a { text-decoration: none; opacity: 0.85; }
.nav nav a:hover { opacity: 1; color: var(--mint); }
.nav .btn { padding: 8px 16px; font-size: 0.9rem; white-space: nowrap; }

/* hero */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end;
  min-height: calc(100vh - 66px); padding: 0 var(--gutter);
}
.hero-copy { padding: 64px 0 88px; position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mint); margin-bottom: 18px; }
.star { width: 18px; height: 18px; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
/* the one loud thing: a sticker-cut wordmark */
.wordmark { font-family: var(--display); font-size: clamp(3.2rem, 10.5vw, 9.5rem); line-height: 0.92; letter-spacing: -0.02em; }
.wordmark span { display: block; }
.wordmark span:first-child { color: var(--paper); }
.wordmark span:last-child {
  color: var(--pink); -webkit-text-stroke: 3px var(--paper); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--coral), 12px 12px 0 rgba(0, 0, 0, 0.25);
}
.hero-line { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.ca {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 14px; border-radius: 12px;
  background: var(--plum-2); border: 2px dashed rgba(247, 240, 255, 0.35); color: var(--paper); font: inherit; cursor: pointer;
}
.ca:hover { border-color: var(--mint); }
.ca-k { font-family: var(--display); color: var(--mint); }
.ca-v { font-weight: 700; }
.ca-do { font-size: 0.85rem; opacity: 0.7; }
.hero-art { margin: 0; align-self: end; position: relative; }
.hero-art img {
  width: 100%; height: auto; max-height: calc(100vh - 66px); object-fit: contain; object-position: bottom;
  /* the art's background is the page's plum: fade the edges so she stands in the page, not in a box */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-composite: intersect;
}

/* ticker */
.ticker { overflow: hidden; background: var(--pink); color: #fff; border-block: 3px solid var(--paper); transform: rotate(-1.5deg); margin: -10px -20px 0; position: relative; z-index: 3; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 12px 0; font-family: var(--display); font-size: 1.15rem; animation: slide 32s linear infinite; }
.ticker i { width: 14px; height: 14px; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* live chart + mood */
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.live-status { font-weight: 700; color: var(--mint); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: stretch; }
.chart-box { position: relative; min-height: 460px; border-radius: 22px; overflow: hidden; background: var(--plum-2); border: 2px solid rgba(247, 240, 255, 0.14); }
.chart-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; opacity: 0.7; }
.live.is-live .chart-wait { display: none; }
.live:not(.is-live) .chart-box iframe { display: none; }
.mood-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--plum-2); border: 3px solid var(--paper); box-shadow: 8px 8px 0 var(--pink); }
.mood-card[data-mood="ath"] { box-shadow: 8px 8px 0 var(--star); }
.mood-card[data-mood="pump"] { box-shadow: 8px 8px 0 var(--mint); }
.mood-card[data-mood="dip"], .mood-card[data-mood="dump"] { box-shadow: 8px 8px 0 var(--coral); }
.mood-art { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.mood-art img { width: 100%; height: 100%; object-fit: cover; }
.mood-art img.pop { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { transform: scale(0.88) rotate(-3deg); } to { transform: none; } }
.bubble { position: relative; background: var(--paper); color: var(--ink); font-weight: 900; padding: 12px 16px; border-radius: 16px; }
.bubble::before { content: ""; position: absolute; top: -10px; left: 28px; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--paper); }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.live-stats dt { font-size: 0.78rem; opacity: 0.7; }
.live-stats dd { margin: 0; font-family: var(--display); font-size: 0.92rem; white-space: nowrap; }
.chips { display: flex; gap: 14px; font-size: 0.85rem; font-weight: 700; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(247, 240, 255, 0.12); font-weight: 900; }
.chip.up { background: var(--mint); color: var(--ink); }
.chip.down { background: var(--coral); color: var(--ink); }

/* light sections */
.lore, .token, .road { background: var(--paper); color: var(--ink); }
section { padding: clamp(64px, 10vw, 120px) var(--gutter); }

.lore { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lore-frame { background: #fff; padding: 14px 14px 56px; border-radius: 10px; transform: rotate(-3deg); box-shadow: 10px 10px 0 var(--lilac); max-width: 420px; justify-self: center; }
.lore-frame img { border-radius: 4px; }
.lore-copy { max-width: 60ch; }
.lore-copy h2 { margin-bottom: 22px; }
.lead { font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; color: #8a1f55; }
.lore-copy p + p { margin-top: 14px; }

.booth h2, .token h2, .buy h2, .road h2, .memes h2 { margin-bottom: 40px; max-width: 18ch; }
.booth-steps, .buy-steps, .road-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.booth-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booth-steps li { padding: 28px; border-radius: 22px; background: var(--plum-2); border: 2px solid rgba(247, 240, 255, 0.14); }
.booth-steps .n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mint); color: var(--ink); font-family: var(--display); font-size: 1.3rem; margin-bottom: 18px; }
.booth-steps h3 { margin-bottom: 8px; font-size: 1.6rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.stats div { padding: 26px; border: 3px solid var(--ink); border-radius: 22px; background: #fff; }
.stats div:nth-child(odd) { box-shadow: 6px 6px 0 var(--pink); }
.stats div:nth-child(even) { box-shadow: 6px 6px 0 var(--mint); }
.stats dt { font-weight: 900; color: #6e4a63; }
.stats dd { margin: 6px 0 10px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stats p { font-size: 0.95rem; }

.buy-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.buy-steps li { position: relative; padding: 28px 24px 24px; border-top: 4px solid var(--pink); counter-increment: s; }
.buy-steps li::before { content: counter(s); font-family: var(--display); font-size: 3rem; color: var(--coral); line-height: 1; display: block; margin-bottom: 10px; }
.buy-steps h3 { margin-bottom: 8px; }
.inline-ca { font: inherit; font-weight: 900; color: var(--mint); background: none; border: 0; border-bottom: 2px dashed var(--mint); padding: 0; cursor: pointer; }

.road-list { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: r; }
.road-list li { padding: 26px; border-radius: 22px; background: #fff; border: 3px solid var(--ink); counter-increment: r; }
.road-list li::before { content: "Chapter " counter(r); display: block; font-weight: 900; color: #8a1f55; margin-bottom: 10px; }
.road-list h3 { margin-bottom: 8px; }

.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.wall figure { margin: 0; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.wall figure:nth-child(4n + 1) { transform: rotate(-2deg); }
.wall figure:nth-child(4n + 2) { transform: rotate(1.5deg); }
.wall figure:nth-child(4n + 3) { transform: rotate(-1deg); }
.wall figure:nth-child(4n) { transform: rotate(2deg); }
.wall figure:hover { transform: rotate(0) scale(1.03); }
.wall img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.strip-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: linear-gradient(160deg, var(--plum-2), var(--plum)); }
.strip { display: grid; gap: 10px; width: clamp(150px, 18vw, 220px); background: #fff; padding: 12px 12px 40px; border-radius: 8px; transform: rotate(4deg); box-shadow: 10px 10px 0 var(--pink); }
.strip img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.cta-copy h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); margin-bottom: 16px; }
.cta-copy p { font-size: 1.2rem; font-weight: 700; margin-bottom: 28px; }

.foot { padding: 56px var(--gutter) 40px; border-top: 2px solid rgba(247, 240, 255, 0.12); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--paper); }
.foot-cols { display: flex; gap: 56px; }
.foot-cols div { display: flex; flex-direction: column; gap: 6px; }
.foot-cols h3 { font-size: 1rem; color: var(--mint); margin-bottom: 4px; }
.foot-cols a, .linkish { text-decoration: none; opacity: 0.85; font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.foot-cols a:hover, .linkish:hover { opacity: 1; text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: 0.85rem; opacity: 0.65; max-width: 90ch; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--mint); color: var(--ink); font-weight: 900; padding: 10px 18px; border-radius: 999px; transition: opacity 0.2s, transform 0.2s; z-index: 40;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .live-grid { grid-template-columns: 1fr; }
  .mood-card { max-width: 420px; }
  .booth-steps { grid-template-columns: 1fr; }
  .stats, .buy-steps, .road-list, .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 40px 0 0; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .lore, .strip-cta { grid-template-columns: 1fr; }
  .strip { justify-self: center; }
  .stats, .buy-steps, .road-list { grid-template-columns: 1fr; }
  .wall { gap: 14px; }
  .foot { grid-template-columns: 1fr; }
  .foot-cols { gap: 32px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .mood-art img.pop { animation: none; }
  .btn, .wall figure, .toast { transition: none; }
}
