:root {
  --deep: #04161F;
  --deep-2: #082633;
  --line: rgba(232, 255, 250, .14);
  --text: #E8FFFA;
  --mute: #7FA3A8;
  --acid: #D4FF3A;
  --orange: #FF7A1A;
  --water: #0E6E86;
  --flood: 0; /* 0..1, set from scroll */
  font-family: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; color: var(--text); background: var(--deep); min-height: 100vh;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, #0E3A4A 0%, transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.hidden { display: none !important; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
h1, h2, h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: lowercase; letter-spacing: -.01em; margin: 0; line-height: .9; }
h2 { font-size: clamp(3rem, 10vw, 8rem); }
::selection { background: var(--acid); color: var(--deep); }

/* rain */
#rain { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.drop {
  position: absolute; top: -40px; width: 1.5px; height: 34px;
  background: linear-gradient(transparent, rgba(232, 255, 250, .45));
  transform: rotate(12deg); animation: fall linear forwards;
}
@keyframes fall { to { transform: translate(-22vh, 112vh) rotate(12deg); } }

/* the flood */
#flood {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  height: calc(var(--flood) * 78vh + 46px);
  transition: height .25s ease-out;
}
#flood .water { position: absolute; inset: 40px 0 0; background: linear-gradient(180deg, rgba(14, 110, 134, .55), rgba(4, 40, 52, .9)); }
#flood .wave { position: absolute; top: 0; left: -10%; width: 220%; height: 44px; fill: rgba(14, 110, 134, .55); animation: wave 7s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }
#flood .rider { position: absolute; right: 6vw; top: -92px; width: 120px; animation: ride 3.2s ease-in-out infinite; }
@keyframes ride { 50% { transform: translateY(-8px) rotate(-4deg); } }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(4, 22, 31, .78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font: 1.6rem "Anton", sans-serif; color: var(--acid); }
.level { margin-left: auto; font-size: .8rem; color: var(--mute); }
.level b { color: var(--acid); }

/* pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--acid);
  background: var(--acid); color: var(--deep); font: 700 .95rem "JetBrains Mono", monospace;
  text-decoration: none; cursor: pointer; text-transform: lowercase; transition: transform .15s, background .15s, color .15s;
}
.pill:hover { transform: translateY(-2px) rotate(-1deg); }
.pill.big { padding: 15px 26px; font-size: 1.05rem; }
.pill.ghost { background: transparent; color: var(--acid); }
.pill.ghost:hover { background: var(--acid); color: var(--deep); }
.pill.disabled, .pill:disabled { opacity: .45; cursor: default; transform: none; }

main { position: relative; z-index: 1; }
section { padding: clamp(64px, 10vw, 140px) clamp(16px, 5vw, 56px); max-width: 1280px; margin: 0 auto; position: relative; }
.tag { color: var(--acid); font-size: .9rem; margin: 0 0 18px; }

/* hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
h1 { font-size: clamp(3.2rem, 9.6vw, 9.6rem); }
h1 span { display: block; }
h1 .l2 { color: transparent; -webkit-text-stroke: 2px var(--acid); }
.hero-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 36px; }
.hero-row > * { min-width: 0; }
.hero-art { border: 0; background: none; padding: 0; cursor: pointer; width: clamp(200px, 26vw, 360px); border-radius: 50%; animation: bob 3.4s ease-in-out infinite; }
.hero-art.boop { animation: boop .5s ease; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes boop { 30% { transform: scale(.9, 1.08) rotate(4deg); } 60% { transform: scale(1.08, .92) rotate(-4deg); } }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.45; max-width: 40ch; margin: 0 0 26px; }
.lede b { color: var(--acid); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ca-mini { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: .85rem; color: var(--mute); flex-wrap: wrap; }
.ca-mini code { color: var(--text); word-break: break-all; }
.ca-mini button { background: none; border: 1px solid var(--line); color: var(--acid); border-radius: 6px; padding: 3px 10px; font: inherit; cursor: pointer; }
.ca-mini button:disabled { display: none; }

.sticker {
  position: absolute; z-index: 2; padding: 8px 14px; border-radius: 10px;
  font: 700 .85rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: none;
}
.s1 { top: 14%; right: 6%; background: var(--orange); color: var(--deep); transform: rotate(8deg); }
.s2 { top: 44%; right: 3%; background: var(--acid); color: var(--deep); transform: rotate(-6deg); }
.s3 { bottom: 10%; left: 24%; background: var(--text); color: var(--deep); transform: rotate(-3deg); }
.s4 { top: 6%; left: 46%; background: var(--deep); color: var(--acid); border: 1.5px solid var(--acid); transform: rotate(-10deg); font-size: 1.2rem; }

/* marquee */
.marquee { background: var(--acid); color: var(--deep); overflow: hidden; padding: 12px 0; transform: rotate(-2deg); margin: 20px -20px; position: relative; z-index: 3; }
.track { display: flex; align-items: center; width: max-content; animation: scroll 24s linear infinite; }
.track span { font: 2.2rem "Anton", sans-serif; text-transform: uppercase; padding: 0 22px; white-space: nowrap; }
.track i { font-style: normal; font-size: 1.6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* numbered rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 24px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.rows li:hover h2, .rows li:hover h3 { color: var(--acid); }
.rows .n { color: var(--acid); font-size: .95rem; }
.rows h2 { font-size: clamp(2.4rem, 6vw, 5rem); transition: color .2s; }
.rows h3 { font-size: clamp(1.8rem, 3.6vw, 3rem); transition: color .2s; }
.rows p { margin: 0; color: var(--mute); font-size: 1.15rem; line-height: 1.5; max-width: 42ch; }
.board h2, .token h2, .kit h2 { margin-bottom: 36px; }

/* boarding pass */
.pass-section { max-width: none; background: var(--acid); color: var(--deep); }
.pass-section .tag { color: var(--deep); opacity: .7; }
.pass-head { max-width: 1280px; margin: 0 auto 40px; }
.pass-head p:last-child { font-size: 1.25rem; max-width: 46ch; margin: 18px 0 0; }
.pass-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.pass-grid > * { min-width: 0; }
.pass-form { display: grid; gap: 16px; }
.pass-form label, .pass-form legend { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.pass-form input {
  font: 700 1.15rem "Space Grotesk", sans-serif; padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--deep); background: transparent; color: var(--deep);
}
.pass-form input::placeholder { color: rgba(4, 22, 31, .45); }
.pass-form input:focus { outline: none; background: rgba(4, 22, 31, .08); }
.pass-form fieldset { border: 0; padding: 0; margin: 0; }
.pass-form legend { margin-bottom: 6px; }
.animals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.animals button { font-size: 1.6rem; padding: 8px 0; border-radius: 12px; cursor: pointer; border: 2px solid transparent; background: rgba(4, 22, 31, .1); }
.animals button[aria-pressed="true"] { border-color: var(--deep); background: var(--deep); }
.pass-form .pill { background: var(--deep); color: var(--acid); border-color: var(--deep); }
.pass-out canvas { width: 100%; height: auto; border-radius: 16px; transform: rotate(-1.5deg); box-shadow: 0 24px 50px rgba(4, 22, 31, .4); }
.pass-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pass-actions .pill { background: var(--deep); color: var(--acid); border-color: var(--deep); }
.pass-actions .pill.ghost { background: transparent; color: var(--deep); }
.pass-actions .pill.ghost:hover { background: var(--deep); color: var(--acid); }
.hint { font-size: .8rem; opacity: .65; margin: 12px 0 0; }

/* token */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats div { padding: 22px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats span { display: block; color: var(--mute); font-size: .8rem; margin-bottom: 8px; }
.stats b { font: 2rem "Anton", sans-serif; color: var(--acid); }
.ca-box { margin: 16px 0 28px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--acid); border-radius: 16px; padding: 16px 20px; font-size: .9rem; }
.ca-box > span { color: var(--acid); }
.ca-box code { flex: 1; min-width: 0; word-break: break-all; }

/* kit */
.kit > p { color: var(--mute); font-size: 1.15rem; margin: -18px 0 30px; max-width: 50ch; }
.kit-row { display: flex; gap: 16px; flex-wrap: wrap; }
.kit-row a { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-size: .85rem; color: var(--mute); background: rgba(4, 22, 31, .6); transition: border-color .2s, transform .2s; }
.kit-row a:hover { border-color: var(--acid); color: var(--acid); transform: rotate(-1.5deg); }
.kit-row img { width: 120px; height: 120px; object-fit: contain; }
.kit-row .wide img { width: 360px; max-width: 100%; object-fit: cover; border-radius: 8px; }

footer { position: relative; z-index: 1; padding: 40px 16px 160px; text-align: center; color: var(--mute); font-size: .8rem; }
footer p { max-width: 70ch; margin: 0 auto; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-art { width: min(260px, 70%); }
  .sticker { font-size: .7rem; }
  .s1 { top: auto; bottom: 46%; right: 4%; }
  .s2 { top: auto; bottom: 40%; right: 30%; }
  .s3 { bottom: 4%; }
  .s4 { top: 2%; left: auto; right: 6%; }
  .rows li { grid-template-columns: 44px 1fr; }
  .rows p { grid-column: 2; }
  .pass-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .level { display: none; }
  .top .pill { margin-left: auto; }
  #flood .rider { width: 80px; top: -62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* holder classes */
.class-box { display: grid; gap: 10px; padding: 16px; border: 2px solid var(--deep); border-radius: 14px; }
.class-box .legend { font-size: .85rem; font-weight: 700; }
.class-box .pill { justify-self: start; background: transparent; color: var(--deep); border-color: var(--deep); }
.class-box .pill:hover { background: var(--deep); color: var(--acid); }
.class-status { margin: 0; font-size: .8rem; line-height: 1.5; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; }
.ladder li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: rgba(4, 22, 31, .08); }
.ladder li.on { background: var(--deep); color: var(--acid); font-weight: 700; }

.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--acid); box-shadow: 0 0 0 8px rgba(212, 255, 58, .12), 0 24px 60px rgba(0, 0, 0, .45); }
footer .credit { opacity: .7; font-size: .75rem; }
footer .credit a { color: inherit; }
