/* ---------- tokens ---------- */
:root {
  --cream: #FBF4E6;
  --cream-2: #F4E8D2;
  --white: #FFFDF8;
  --ink: #2B2118;
  --ink-soft: #6B5B4C;
  --gold: #F2B441;
  --gold-deep: #D8981C;
  --olive: #8C8768;
  --red: #E4572E;
  --green: #3CA55C;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --container: 1120px;
  --ratio: 0.4636; /* character image width / height */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream) radial-gradient(rgba(43, 33, 24, .08) 1.2px, transparent 1.3px) 0 0 / 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.crown-icon { width: 30px; height: 30px; flex: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--gold); padding: .6rem 1rem; border-radius: 10px;
  font-weight: 800; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem;
  border: var(--border); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--gold); }
.btn--primary:hover { background: #F6C158; }
.btn--ghost { background: transparent; }
.btn--sm { padding: .6rem 1.1rem; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn--sm:active { box-shadow: 1px 1px 0 var(--ink); }

/* ---------- socials ---------- */
.socials { display: flex; gap: .5rem; margin-left: auto; }
.social {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--gold); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.social:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--icon svg { width: 20px; height: 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 230, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-decoration: none;
}
.nav__links { display: none; gap: 1.6rem; margin-left: auto; font-weight: 800; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.nav .btn { margin-left: 0; }
@media (min-width: 760px) {
  .nav__links { display: flex; }
  .socials { margin-left: 0; }
}
@media (max-width: 400px) { .socials { gap: .35rem; } .social { width: 36px; height: 36px; } }

/* ---------- hero ---------- */
.hero { padding: 2.25rem 0 2.5rem; }
.hero__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "art" "actions";
}
.hero__copy { grid-area: copy; min-width: 0; }
.hero__art { grid-area: art; min-width: 0; }
.hero__actions { grid-area: actions; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.chip--gold { background: var(--gold); }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 165, 92, .6); }
  70% { box-shadow: 0 0 0 9px rgba(60, 165, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 165, 92, 0); }
}
.eyebrow {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  color: var(--olive); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .4rem;
}
h1 { font-size: clamp(2.7rem, 10vw, 5.2rem); }
.hl { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.hl::after {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.06em; bottom: .04em; height: .34em;
  background: var(--gold); border-radius: .18em; transform: rotate(-1.4deg);
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); max-width: 34rem; margin-top: 1.1rem; color: var(--ink-soft); }

.cta { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 480px) { .cta .btn { flex: 1 1 100%; } .cta .btn--icon { flex: 1 1 calc(50% - .4rem); } }

.ca {
  margin-top: 1.1rem; max-width: 40rem;
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .45rem .45rem .9rem;
  border: var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow);
}
.ca__label { font-family: var(--font-display); font-weight: 700; color: var(--olive); }
.ca__addr {
  flex: 1; min-width: 0; display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; cursor: copy;
}
.ca__head { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca__tail { flex: none; white-space: nowrap; }
.ca__copy {
  flex: none; border: 2px solid var(--ink); border-radius: 10px; background: var(--gold);
  padding: .5rem .8rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--ink); cursor: pointer; transition: background .15s, color .15s;
}
.ca__copy:hover { background: #F6C158; }
.ca__copy.is-copied { background: var(--green); color: #fff; }
.live { margin-top: .9rem; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.live .up { color: var(--green); }
.live .down { color: var(--red); }

/* hero art */
.hero__art {
  --kh: min(60vh, 500px);
  display: flex; justify-content: center;
  padding-top: calc(var(--kh) * .2);
  padding-bottom: 1.6rem;
}
.king {
  position: relative;
  width: min(100%, calc(var(--kh) * var(--ratio)));
  aspect-ratio: var(--ratio);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.king picture { display: block; position: relative; z-index: 1; width: 100%; height: 100%; }
.king img { width: 100%; height: 100%; filter: drop-shadow(0 18px 22px rgba(43, 33, 24, .25)); }
.king__sun {
  position: absolute; z-index: 0; left: 50%; top: 9%;
  width: 150%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: var(--gold); border: var(--border);
}
.king__crown {
  position: absolute; z-index: 2; left: 50%; top: -19%;
  width: 34%; height: auto; aspect-ratio: 1;
  transform: translateX(-50%) rotate(-8deg);
  animation: bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(43, 33, 24, .12));
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) rotate(-8deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-5deg) translateY(-8px); }
}
.king.is-pop img { animation: hop .45s cubic-bezier(.3, 1.6, .5, 1); }
.king.is-pop .king__crown { animation: crown-pop .5s ease-out; }
@keyframes hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-16px) rotate(-2deg); }
  100% { transform: translateY(0); }
}
@keyframes crown-pop {
  0% { transform: translateX(-50%) rotate(-8deg) scale(1); }
  40% { transform: translateX(-50%) rotate(8deg) scale(1.3) translateY(-10px); }
  100% { transform: translateX(-50%) rotate(-8deg) scale(1); }
}
.bubble {
  position: absolute; z-index: 3; top: 3%; left: 55%;
  width: max-content; max-width: min(220px, 42vw);
  padding: .6rem .9rem;
  background: var(--white); border: var(--border); border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: bottom left;
  transition: opacity .18s, transform .18s; pointer-events: none;
}
.bubble.is-on { opacity: 1; transform: none; }
.king__hint {
  position: absolute; left: 50%; bottom: -1.7rem; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--olive); white-space: nowrap;
  transition: opacity .3s;
}
.king__hint.is-hidden { opacity: 0; }

@media (min-width: 900px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "copy art" "actions art";
    align-items: center; column-gap: 3rem; row-gap: 1.75rem;
  }
  .hero__copy { align-self: end; }
  .hero__actions { align-self: start; }
  .hero__art { --kh: min(70vh, 600px); padding-bottom: 2rem; }
  .chips { margin-bottom: 1.4rem; }
}

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 1.4rem 0 1.6rem; }
.marquee {
  width: 106%; margin-left: -3%;
  background: var(--gold); border-top: var(--border); border-bottom: var(--border);
  transform: rotate(-1.5deg);
}
.marquee__track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.marquee__group {
  display: flex; align-items: center; padding: .65rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em;
}
.marquee__group span { margin-right: 1.4rem; }
.marquee__group .crown-icon { width: 24px; height: 24px; margin-right: 1.4rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-wrap:hover .marquee__track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding: 3rem 0; }
.section h2 { font-size: clamp(2.1rem, 6.5vw, 3.2rem); }
.section__sub { color: var(--ink-soft); margin: .5rem 0 1.8rem; font-size: 1.1rem; }
@media (min-width: 900px) { .section { padding: 4rem 0; } }

.cards { display: grid; gap: 1.2rem; }
.card {
  background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; transition: transform .15s ease;
}
.card:nth-child(2) { background: var(--cream-2); }
.card:hover { transform: rotate(-1deg) translateY(-4px); }
.card:nth-child(2):hover { transform: rotate(1deg) translateY(-4px); }
.card__icon {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--gold); border: var(--border);
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
}
.card h3 { font-size: 1.5rem; margin-bottom: .45rem; }
.card p { color: var(--ink-soft); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.fact { background: var(--cream-2); border: var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; }
.fact__k { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--olive); }
.fact__v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 4.5vw, 1.55rem); margin-top: .2rem; overflow-wrap: anywhere; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.steps { display: grid; gap: 1.2rem; }
.step { background: var(--white); border: var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: .9rem;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.step h3 { font-size: 1.4rem; margin-bottom: .45rem; }
.step p { color: var(--ink-soft); }
.step a { font-weight: 800; color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.steps__cta { margin-top: 1.6rem; display: flex; }
@media (max-width: 480px) { .steps__cta .btn { flex: 1; } }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- merch ---------- */
.merch {
  position: relative; overflow: hidden; text-align: center;
  background: var(--gold); border: var(--border); border-radius: 28px; box-shadow: var(--shadow);
  padding: 2.4rem 1.25rem 2.2rem;
}
.merch h2 { font-size: clamp(2.2rem, 8vw, 4.2rem); }
.merch p { max-width: 36rem; margin: .9rem auto 1.5rem; font-size: 1.1rem; }
.merch__items { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 1.7rem; }
.merch__item {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: .45rem .9rem; font-weight: 800;
}
.merch__item small {
  background: var(--ink); color: var(--gold); border-radius: 999px; padding: .15rem .5rem;
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.sticker {
  position: absolute; top: 14px; right: -22px; transform: rotate(14deg);
  background: var(--red); color: #fff; border: var(--border); border-radius: 999px;
  padding: .5rem 2.2rem .5rem 1.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
}
@media (min-width: 760px) { .merch { padding: 3.2rem 2rem 3rem; } .sticker { top: 22px; right: -18px; font-size: 1.1rem; } }

/* ---------- footer ---------- */
.footer { margin-top: 1.5rem; padding: 2.5rem 0 2rem; background: var(--ink); color: var(--cream); border-top: var(--border); }
.footer__top { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: space-between; align-items: center; }
.brand--light { color: var(--cream); flex-wrap: wrap; }
.brand__url { font-weight: 500; color: var(--gold); font-size: 1rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-weight: 800; }
.footer__links a { color: var(--gold); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credit { margin-top: 1.6rem; font-family: var(--font-display); font-size: 1.05rem; }
.credit a { color: var(--gold); text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.disclaimer {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(251, 244, 230, .2);
  max-width: 62rem; font-size: .82rem; line-height: 1.65; color: rgba(251, 244, 230, .78);
}
.disclaimer + .disclaimer { margin-top: .9rem; padding-top: 0; border-top: 0; }
.disclaimer strong { color: var(--gold); }
.copy { margin-top: 1rem; font-size: .8rem; color: rgba(251, 244, 230, .6); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
