:root {
  --sky: #bceff0;
  --sky-deep: #8edee6;
  --paper: #fff7dc;
  --paper-2: #f4e8c8;
  --ink: #26212a;
  --red: #ef3f43;
  --green: #39a94a;
  --blue: #2879d8;
  --purple: #7048b8;
  --pink: #ed5f97;
  --orange: #e68a2d;
  --yellow: #f1b928;
  --brown: #7a4d30;
  --shadow: rgba(46, 34, 36, .19);
  --max: 1240px;
  --header-h: 76px;
  --scribble: 2px solid rgba(55, 41, 49, .86);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

::selection { background: #ffda57; color: #1d1720; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 9999;
  background: var(--paper);
  border: var(--scribble);
  padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 247, 220, .95);
  border-bottom: 3px solid rgba(55,41,49,.82);
  box-shadow: 0 3px 0 rgba(255,255,255,.5), 0 8px 24px rgba(42,30,36,.10);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 22px;
}
.brand img {
  width: 205px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.desktop-nav {
  justify-self: center;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}
.desktop-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .045em;
  transform: rotate(-.5deg);
}
.desktop-nav a:nth-child(even) { transform: rotate(.8deg); }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -7px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  transform: scaleX(0) rotate(-1deg);
  transition: transform .18s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { transform: scaleX(1) rotate(-1deg); }

.social-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-link {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 10px 14px 9px 13px;
  transition: transform .15s ease, background .15s ease;
}
.social-link img { width: 31px; height: 31px; object-fit: contain; }
.social-link[data-link="telegram"] img { width: 31px; height: 31px; }
.social-link:hover { transform: translateY(-2px) rotate(-3deg); background: rgba(255,255,255,.55); }
.is-disabled { opacity: .4; filter: grayscale(.2); cursor: not-allowed !important; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  background: var(--paper);
  border: var(--scribble);
  border-radius: 11px 8px 12px 9px;
  box-shadow: 2px 3px 0 var(--ink);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 23px;
  height: 3px;
  background: var(--ink);
  display: block;
  margin: 4px auto;
  border-radius: 999px;
}
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(188,239,240,.98);
  padding: 28px 24px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 12px; }
.mobile-menu nav a {
  display: block;
  padding: 13px 16px;
  background: var(--paper);
  border: var(--scribble);
  box-shadow: 4px 5px 0 var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}
.mobile-socials { margin-top: 24px; display: flex; gap: 10px; }

.hero {
  min-height: calc(100svh - var(--header-h));
  position: relative;
  background: url("assets/web/asset-02-hero-bg-desktop.webp") center / cover no-repeat;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(188,239,240,.10), rgba(188,239,240,0));
  z-index: -1;
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding: 42px 0 24px;
}
.hero-copy { align-self: center; padding: 28px 0; }
.hero-wordmark {
  width: min(580px, 94%);
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
  margin: -8px 0 10px;
}
.ticker-stamp {
  display: inline-block;
  background: var(--paper);
  border: var(--scribble);
  padding: 7px 13px 6px;
  font: 900 21px/1 "Comic Sans MS", "Trebuchet MS", sans-serif;
  color: var(--purple);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-2deg);
}
.hero-kicker {
  margin: 24px 0 6px;
  font: 900 clamp(30px, 4.1vw, 64px)/.95 "Comic Sans MS", "Trebuchet MS", sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
  max-width: 760px;
}
.hero-sub {
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 800;
  max-width: 620px;
  margin: 18px 0 0;
}
.hero-sub strong { color: #2d226b; }
.hero-note {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  opacity: .72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

.crayon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  background: var(--paper);
  color: var(--ink);
  border: var(--scribble);
  border-radius: 12px 9px 14px 8px;
  box-shadow: 5px 6px 0 var(--ink);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .02em;
  transform: rotate(-.7deg);
  transition: transform .12s ease, box-shadow .12s ease;
}
.crayon-btn.alt {
  background: #f7b5cb;
  transform: rotate(.7deg);
}
.crayon-btn:hover { transform: translateY(-2px) rotate(.7deg); }
.crayon-btn:active { transform: translateY(4px); box-shadow: 2px 2px 0 var(--ink); }
.crayon-btn:focus-visible, .social-link:focus-visible, .desktop-nav a:focus-visible {
  outline: 4px solid #ffdb55;
  outline-offset: 3px;
}

.hero-art-wrap {
  align-self: end;
  display: flex;
  align-items: end;
  justify-content: end;
  min-height: 0;
}
.hero-art {
  width: min(720px, 100%);
  max-height: calc(100svh - var(--header-h) - 28px);
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 10px 0 rgba(255,255,255,.25));
}

.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.section-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-heading {
  margin: 0 0 26px;
  font: 900 clamp(36px, 5vw, 72px)/.96 "Comic Sans MS", "Trebuchet MS", sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.section-heading .underline {
  position: relative;
  display: inline-block;
}
.section-heading .underline::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -2%;
  bottom: -10px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  transform: rotate(-1.2deg);
}
.paper {
  background: var(--paper);
  border: var(--scribble);
  box-shadow: 8px 10px 0 rgba(38,33,42,.9);
  border-radius: 11px 8px 15px 9px;
}
.tape {
  position: relative;
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 78px;
  height: 24px;
  background: rgba(237, 201, 116, .86);
  border: 1px solid rgba(86, 61, 36, .22);
  top: -13px;
}
.tape::before { left: 8%; transform: rotate(-6deg); }
.tape::after { right: 8%; transform: rotate(5deg); }

.about { background: #c4eff0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr .88fr;
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
}
.about-art {
  transform: rotate(-1.1deg);
  overflow: hidden;
}
.about-art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy {
  padding: clamp(25px, 4vw, 48px);
  transform: rotate(.4deg);
}
.about-copy p { margin: 0 0 15px; font-size: clamp(18px, 1.6vw, 23px); font-weight: 750; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .big { font-size: clamp(22px, 2vw, 30px); font-weight: 950; }

.boys { background: #aee7ec; overflow: hidden; }
.boys::before, .boys::after {
  content: "★  ♥  ↯";
  position: absolute;
  font: 900 44px "Comic Sans MS";
  letter-spacing: 16px;
  opacity: .18;
  transform: rotate(-8deg);
}
.boys::before { top: 34px; left: 2%; color: var(--red); }
.boys::after { bottom: 30px; right: 2%; color: var(--purple); transform: rotate(7deg); }
.sheet-wrap {
  overflow: hidden;
  transform: rotate(.3deg);
}
.sheet-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.boy-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.boy-note {
  min-height: 118px;
  padding: 16px 16px 13px;
  background: var(--paper);
  border: var(--scribble);
  box-shadow: 5px 6px 0 rgba(38,33,42,.86);
  transition: transform .15s ease;
}
.boy-note:nth-child(1) { transform: rotate(-1.2deg); }
.boy-note:nth-child(2) { transform: rotate(.8deg); }
.boy-note:nth-child(3) { transform: rotate(-.5deg); }
.boy-note:nth-child(4) { transform: rotate(1.1deg); }
.boy-note:hover { transform: translateY(-5px) rotate(1.5deg); }
.boy-note h3 { margin: 0 0 5px; font: 900 25px "Comic Sans MS"; }
.boy-note p { margin: 0; font-weight: 800; }

.rules { background: #d1f2ef; }
.rules-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}
.rules-art { overflow: hidden; transform: rotate(.6deg); }
.rules-art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.rule-list { display: grid; gap: 15px; }
.rule {
  padding: 14px 17px;
  background: var(--paper);
  border: var(--scribble);
  box-shadow: 4px 5px 0 rgba(38,33,42,.86);
}
.rule:nth-child(odd) { transform: rotate(-.7deg); }
.rule:nth-child(even) { transform: rotate(.6deg); }
.rule b {
  display: block;
  font: 900 14px "Comic Sans MS";
  color: var(--purple);
  margin-bottom: 3px;
}
.rule span { font-size: clamp(17px, 1.6vw, 22px); font-weight: 900; }
.rule:last-child {
  background: #f7b5cb;
  transform: rotate(-1.2deg) scale(1.025);
}
.rule:last-child span { font-size: clamp(22px, 2.2vw, 33px); }

.clubhouse { background: #b5e9e9; }
.clubhouse-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.clubhouse-copy .text { max-width: 570px; font-size: clamp(17px, 1.4vw, 22px); font-weight: 800; }
.clubhouse-copy .text p { margin: 5px 0; }
.clubhouse-image {
  overflow: hidden;
  transform: rotate(-.25deg);
}
.clubhouse-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.chart-section {
  background: url("assets/web/asset-09-chart-community-bg.webp") center / cover no-repeat;
  min-height: 900px;
}
.chart-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(188,239,240,.18);
  pointer-events: none;
}
.chart-section .section-inner { position: relative; z-index: 1; }
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: 26px;
  align-items: stretch;
}
.chart-card, .info-card { padding: 17px; }
.card-label {
  margin: 0 0 10px;
  font: 900 18px "Comic Sans MS";
  text-transform: uppercase;
}
.chart-frame {
  position: relative;
  min-height: 590px;
  background: #fff;
  border: var(--scribble);
  overflow: hidden;
}
.chart-frame iframe {
  width: 100%;
  height: 590px;
  display: block;
  border: 0;
}
.chart-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(30,80,110,.08) 42px 44px),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(30,80,110,.08) 62px 64px);
}
.chart-fallback[hidden] { display: none; }
.chart-fallback strong {
  font: 900 30px "Comic Sans MS";
  display: block;
}
.chart-fallback p { max-width: 410px; font-weight: 750; }
.open-dex {
  margin-top: 13px;
  display: inline-flex;
}
.open-dex[hidden] { display: none; }

.info-stack { display: grid; gap: 18px; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  padding: 13px 12px;
  background: rgba(255,255,255,.46);
  border: 2px dashed rgba(38,33,42,.75);
  min-height: 80px;
}
.stat small { display: block; font-weight: 900; font-size: 12px; letter-spacing: .05em; }
.stat strong { display: block; margin-top: 3px; font: 900 23px "Comic Sans MS"; overflow-wrap: anywhere; }
.ca-box {
  margin-top: 13px;
  border: 2px dashed rgba(38,33,42,.75);
  padding: 11px;
}
.ca-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.ca-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}
.copy-btn {
  border: var(--scribble);
  background: #f7b5cb;
  padding: 8px 10px;
  font-weight: 950;
  box-shadow: 2px 3px 0 var(--ink);
  cursor: pointer;
}
.copy-btn:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }
.community-title { margin: 0; font: 900 28px "Comic Sans MS"; }
.community-copy { margin: 8px 0 15px; font-weight: 850; }
.community-links { display: flex; gap: 6px; flex-wrap: wrap; }
.community-links .social-link {
  width: 48px; height: 48px;
  border: 2px solid rgba(38,33,42,.8);
  background: rgba(255,255,255,.55);
}

.final-cta {
  position: relative;
  min-height: 68svh;
  padding: 0;
  background: #b9ecef;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.final-cta-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 68svh;
  display: flex;
  align-items: center;
}
.cta-paper {
  width: min(560px, 48%);
  padding: clamp(24px, 4vw, 46px);
  background: rgba(255,247,220,.94);
  border: var(--scribble);
  box-shadow: 8px 10px 0 var(--ink);
  transform: rotate(-1deg);
}
.cta-paper h2 {
  margin: 0;
  font: 900 clamp(42px, 5vw, 74px)/.94 "Comic Sans MS";
  letter-spacing: -.045em;
}
.cta-paper p { font-weight: 950; font-size: clamp(20px, 2vw, 29px); margin: 14px 0 20px; }
.cta-socials { display: flex; gap: 5px; margin-top: 18px; }

.site-footer {
  background: #f3e6bd;
  border-top: 3px solid var(--ink);
  padding: 48px 0 35px;
}
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-logo { width: min(430px, 100%); }
.footer-meta { font-weight: 850; margin-top: 9px; }
.footer-meta strong { color: var(--purple); }
.footer-heads { display: flex; align-items: end; }
.footer-heads img {
  width: clamp(58px, 6vw, 82px);
  aspect-ratio: 1;
  object-fit: contain;
  margin-left: -9px;
}
.footer-heads img:nth-child(odd) { transform: rotate(-3deg); }
.footer-heads img:nth-child(even) { transform: rotate(3deg); }
.footer-links { margin-top: 15px; display: flex; gap: 5px; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 190px 1fr auto; gap: 12px; }
  .brand img { width: 180px; }
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: 12px; }
  .hero-inner { grid-template-columns: .9fr 1.1fr; }
  .boy-labels { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-section { min-height: 0; }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: 1fr auto; width: calc(100% - 24px); }
  .brand img { width: 170px; height: 46px; }
  .desktop-nav, .site-header > .header-inner > .social-row { display: none; }
  .menu-toggle { display: block; }

  .hero {
    background-image: url("assets/web/asset-03-hero-bg-mobile.webp");
    background-position: center top;
    min-height: calc(100svh - var(--header-h));
  }
  .hero-inner {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 4px;
    align-content: start;
    padding: 28px 0 0;
    text-align: center;
  }
  .hero-copy { padding: 0; }
  .hero-wordmark { margin: 0 auto 5px; width: min(520px, 94%); max-height: 105px; object-position: center; }
  .hero-kicker { font-size: clamp(34px, 9vw, 56px); max-width: none; margin-top: 17px; }
  .hero-sub { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-actions { justify-content: center; margin-top: 18px; }
  .hero-art-wrap { justify-content: center; align-self: end; margin-top: 2px; }
  .hero-art {
    width: min(620px, 100%);
    max-height: 47svh;
    object-position: center bottom;
  }

  .section-inner { width: calc(100% - 28px); }
  .about-grid, .rules-grid { grid-template-columns: 1fr; }
  .about-art { order: 2; }
  .about-copy { order: 1; }
  .rules-art { order: 2; }
  .rule-list { order: 1; }
  .clubhouse-copy { display: block; }
  .clubhouse-copy .text { margin-top: 20px; }

  .chart-grid { grid-template-columns: 1fr; }
  .chart-card, .info-card { padding: 12px; }
  .chart-frame, .chart-frame iframe { min-height: 500px; height: 500px; }

  .final-cta { min-height: auto; padding-bottom: 0; }
  .final-cta-bg {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center;
  }
  .final-cta-inner {
    min-height: 0;
    padding: 34px 0 48px;
    margin-top: -1px;
  }
  .cta-paper { width: 100%; transform: rotate(-.4deg); }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-heads { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .section { padding: 70px 0; }
  .section-heading { font-size: clamp(34px, 11vw, 50px); }
  .boy-labels { grid-template-columns: 1fr; }
  .boy-note { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chart-frame, .chart-frame iframe { min-height: 430px; height: 430px; }
  .hero-actions .crayon-btn { flex: 1 1 155px; }
  .hero-note { font-size: 12px; }
  .hero-art { max-height: 44svh; }
}

@media (max-width: 390px) {
  .stats { grid-template-columns: 1fr; }
  .hero-kicker { font-size: 31px; }
  .crayon-btn { padding-inline: 13px; font-size: 14px; }
  .footer-heads img { width: 60px; }
}

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