/* ==========================================================================
   LIMIN — marketing site
   Mirrors the app's "Limin Lime" theme: lime field, near-black ink, Jersey 10
   display type, Nunito body, EB Garamond italic for place names, and the
   Y2K / Win98 "QUEST.EXE" window chrome used on the quest hero card.
   ========================================================================== */

:root {
  --lime: #CBEC3F;
  --lime-hi: #E4F78C;
  --lime-deep: #A9CF1E;
  --paper: #F7FCE6;
  --cream: #F6FBE8;
  --ink: #20241F;
  --ink-2: #2C3326;
  --muted: rgba(32, 36, 31, 0.66);
  --hair: rgba(32, 36, 31, 0.14);
  --token: #7A6E0A;
  --success: #3A6B2E;
  --night: #0F1512;
  --night-2: #182019;
  --night-card: #1E2820;

  --bevel-hi: rgba(255, 255, 255, 0.95);
  --bevel-lo: rgba(0, 0, 0, 0.38);

  --f-display: "Jersey 10", ui-monospace, monospace;
  --f-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-place: "EB Garamond", Georgia, serif;
  --f-mono: ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--ink); color: var(--lime); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--lime); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--lime); }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin: 0;
}
h1.display { font-size: clamp(64px, 8.2vw, 118px); }
h2.display { font-size: clamp(48px, 7.2vw, 96px); }
h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; margin: 0 0 8px; letter-spacing: 0.01em; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 20px 0 0; }
.place { font-family: var(--f-place); font-style: italic; font-weight: 400; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; box-shadow: 8px 0 0 transparent; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 14px;
  font-family: var(--f-body); font-weight: 800; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --bg: rgba(255, 255, 255, 0.72); --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 rgba(0, 0, 0, 0.2); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: 0.72; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }

/* ---------- Retro window (QUEST.EXE chrome) ---------- */
.win {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid;
  border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi);
  border-radius: 5px;
  box-shadow: 6px 6px 0 rgba(32, 36, 31, 0.9);
  overflow: hidden;
  color: var(--ink);
}
.win__bar {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 5px 0 9px;
  background: linear-gradient(90deg, #20241F 0%, #4B5A1C 60%, #8DB024 100%);
  color: #fff;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  white-space: nowrap;
}
.win__bar .coin { width: 15px; height: 15px; flex: none; }
.win__title { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.win__btns { display: flex; gap: 3px; }
.win__btns span {
  display: grid; place-items: center;
  width: 20px; height: 18px;
  background: var(--lime);
  color: var(--ink);
  border: 1px solid; border-color: #F2FFC0 #5E7512 #5E7512 #F2FFC0;
  font-size: 11px; line-height: 1;
}
.win__body { padding: 20px; }

/* ---------- Pixel sparkles ---------- */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute; width: 14px; height: 14px; color: #fff; opacity: 0.9;
  background:
    linear-gradient(currentColor, currentColor) center / 4px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 4px no-repeat;
  animation: twinkle 3.2s steps(4) infinite;
}
.spark--lg { width: 22px; height: 22px; }
.spark--lime { color: var(--lime); }
@keyframes twinkle { 0%, 100% { opacity: 0.95; transform: scale(1); } 50% { opacity: 0.25; transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .spark { animation: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 252, 230, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav__row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__lemon { width: 38px; height: auto; filter: drop-shadow(0 1px 0 rgba(32, 36, 31, 0.35)); }
.brand__word { height: 22px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 10px;
}
.nav__links a:hover { background: rgba(32, 36, 31, 0.08); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 3px; background: var(--ink); margin: 4px auto; transition: transform 0.2s ease, opacity 0.2s ease; }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--hair);
    display: none;
  }
  .nav__links a { padding: 14px 8px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--hair); }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--lime) url("../themes/theme-limin-lime.jpg") center / cover no-repeat;
  overflow: hidden;
  margin-top: -68px; padding-top: 68px;
}
.hero::after { /* ground grid, like the app's perspective floor */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 40px);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
}
.hero__grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--lime);
  padding: 7px 14px 7px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero__badge b { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 2px 9px; font-family: var(--f-display); font-weight: 400; font-size: 17px; letter-spacing: 0.04em; }
.hero h1 { color: var(--ink); text-shadow: 0 3px 0 rgba(255, 255, 255, 0.45); }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl { display: inline-block; background: var(--ink); color: var(--lime); padding: 0.02em 0.14em 0.08em; margin-left: -0.04em; box-shadow: 0.06em 0.06em 0 #fff; text-shadow: none; transform: rotate(-1.5deg); }
.hero .lede { color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta i { width: 8px; height: 8px; background: var(--ink); display: inline-block; }

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(340px, 86vw); aspect-ratio: 9 / 19.2;
  border-radius: 48px; padding: 11px;
  background: var(--ink);
  box-shadow: 0 0 0 2px #3a4034, 0 40px 80px -30px rgba(32, 36, 31, 0.6), 14px 14px 0 rgba(32, 36, 31, 0.18);
  transform: rotate(2.5deg);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--lime) url("../themes/theme-limin-lime.jpg") 20% center / cover;
  display: flex; flex-direction: column;
  font-size: 13px;
}
.phone__island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #000; border-radius: 20px; z-index: 3; }
.phone__status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-weight: 800; font-size: 13px; height: 44px; }
.phone__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; }
.phone__top .display { font-size: 34px; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px 3px 4px; font-family: var(--f-display); font-size: 19px; line-height: 1.1; }
.pill .coin { width: 20px; height: 20px; }
.pill--fire { padding-left: 8px; }
.phone__pills { display: flex; gap: 6px; }
.phone__card { margin: 2px 12px 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.phone__card .win { flex: 1; display: flex; flex-direction: column; box-shadow: 4px 4px 0 rgba(32, 36, 31, 0.85); }
.phone__card .win__bar { height: 26px; font-size: 10px; }
.phone__card .win__btns span { width: 17px; height: 15px; font-size: 9px; }
.phone__card .win__body { flex: 1; padding: 16px 16px 14px; display: flex; flex-direction: column; }
.qtag { display: inline-flex; align-self: flex-start; gap: 6px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: var(--ink); color: var(--lime); padding: 4px 9px; border-radius: 6px; }
.phone__card h4 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 0.9; margin: 10px 0 5px; }
.qhead { display: flex; align-items: center; justify-content: space-between; }
.qreward { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-display); font-size: 20px; line-height: 1; }
.qreward .coin { width: 18px; height: 18px; }
.qchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.qchips span { background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.mini-board { margin-top: 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); }
.mini-board__head { display: flex; justify-content: space-between; padding: 4px 8px; background: var(--ink); color: var(--lime); font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.mini-board__row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; font-size: 11.5px; font-weight: 800; }
.mini-board__row + .mini-board__row { border-top: 1px dashed var(--hair); }
.mini-board__row i { flex: none; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 2px; display: grid; place-items: center; font-style: normal; font-size: 9px; line-height: 1; background: #fff; }
.mini-board__row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-board__row em { font-style: normal; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mini-board__row.is-done i { background: var(--lime); }
.mini-board__row.is-done span { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.phone__card p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.phone__loc { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 15px; color: var(--ink); }
.phone__loc svg { width: 14px; height: 14px; }
.meter { margin-top: auto; padding-top: 12px; }
.meter__row { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meter__track { height: 12px; border: 2px solid var(--ink); border-radius: 3px; padding: 1px; background: #fff; }
.meter__fill { height: 100%; width: 68%; background: repeating-linear-gradient(90deg, var(--lime-deep) 0 8px, var(--lime) 8px 10px); animation: meter 4s steps(12) infinite alternate; }
@keyframes meter { from { width: 34%; } to { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .meter__fill { animation: none; } }
.phone__action { margin-top: 12px; display: grid; place-items: center; height: 42px; background: var(--ink); color: #fff; border-radius: 11px; font-weight: 800; font-size: 14px; }
.phone__dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 8px; }
.phone__dots i { width: 7px; height: 7px; background: rgba(32, 36, 31, 0.28); }
.phone__dots i:first-child { background: var(--ink); width: 18px; }
.phone__tabs { display: flex; justify-content: space-around; margin: 0 10px 10px; padding: 8px 4px; background: rgba(247, 252, 230, 0.92); border: 1px solid var(--hair); border-radius: 22px; }
.phone__tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: rgba(32, 36, 31, 0.45); }
.phone__tabs span.on { color: var(--ink); }
.phone__tabs svg { width: 20px; height: 20px; }

.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  padding: 9px 14px 9px 10px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800; font-size: 14px; line-height: 1.15;
  animation: bob 5s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 700; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.float-chip .big { font-family: var(--f-display); font-size: 30px; font-weight: 400; line-height: 0.8; }
.float-chip .coin { width: 34px; height: 34px; }
.float-chip--a { left: -20%; bottom: 13%; }
.float-chip--b { right: -20%; top: 34%; animation-delay: -2.5s; }
.float-chip--b .emoji { font-size: 28px; line-height: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .float-chip--a { left: 0; top: auto; bottom: -26px; }
  .float-chip--b { right: 0; top: -22px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--lime); overflow: hidden; border-block: 3px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: 34px; line-height: 1; padding: 14px 0; white-space: nowrap; display: flex; align-items: center; }
.marquee__track span::after { content: ""; width: 12px; height: 12px; margin: 0 28px; background: currentColor; transform: rotate(45deg); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Live stats ---------- */
.live { padding: clamp(40px, 6vw, 64px) 0 0; }
.live[hidden] { display: none; }
.live__dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: 0.14em; color: var(--lime); margin-right: 6px;
}
.live__dot::before { content: ""; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 0 rgba(203, 236, 63, 0.7); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(203, 236, 63, 0.7); } 100% { box-shadow: 0 0 0 8px rgba(203, 236, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .live__dot::before { animation: none; } }
.live__grid { display: grid; grid-template-columns: repeat(var(--live-cols, 4), 1fr); padding: 0 !important; }
.live__stat { padding: 26px 22px 24px; text-align: center; border-left: 2px dashed var(--hair); }
.live__stat:first-child { border-left: 0; }
.live__stat[hidden] { display: none; }
.live__num { display: block; font-family: var(--f-display); font-size: clamp(52px, 6.4vw, 80px); line-height: 0.85; font-variant-numeric: tabular-nums; }
.live__label { display: block; margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .live__grid { grid-template-columns: 1fr 1fr; }
  .live__stat:nth-child(odd) { border-left: 0; }
  .live__stat:nth-child(n + 3) { border-top: 2px dashed var(--hair); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step .win__body { padding: 26px 24px 28px; }
.step__icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--ink); border-radius: 14px; margin-bottom: 20px; box-shadow: 3px 3px 0 var(--ink); }
.step__icon img, .step__icon svg { width: 44px; height: 44px; image-rendering: pixelated; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Quest types */
.board { background: var(--lime); overflow: hidden; }
.board .sparkles .spark { color: #fff; }
.board__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qcard {
  position: relative;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qcard:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.qcard__type { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.qcard__type .qtag { font-size: 11px; }
.qcard__reward { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-display); font-size: 24px; line-height: 1; }
.qcard__reward .coin { width: 22px; height: 22px; }
.qcard h3 { font-size: 40px; line-height: 0.92; }
.qcard p { color: var(--ink-2); margin: 6px 0 18px; }
.qcard__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 2px dashed var(--hair); font-size: 17px; }
.qcard__foot svg { width: 16px; height: 16px; flex: none; }
.qcard--explore .qtag { background: var(--ink); color: var(--lime); }
.qcard--food .qtag { background: #D27F51; color: #fff; }
.qcard--explore { background: var(--cream); }
.qcard--wild .qtag { background: #4D949A; color: #fff; }
.qcard--food { transform: rotate(-0.8deg); }
.qcard--wild { transform: rotate(0.8deg); }
.qcard--food:hover { transform: rotate(-0.8deg) translate(-3px, -3px); }
.qcard--wild:hover { transform: rotate(0.8deg) translate(-3px, -3px); }
.board__note { margin: 40px auto 0; text-align: center; font-weight: 800; color: var(--ink-2); max-width: 40em; }
@media (max-width: 960px) { .board__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Passport */
.passport { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pp-card { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fff; display: flex; flex-direction: column; }
.pp-card__art { aspect-ratio: 960 / 384; image-rendering: pixelated; width: 100%; object-fit: cover; border-bottom: 2px solid var(--ink); }
.pp-card__body { padding: 26px 26px 28px; }
.pp-card__body p { margin: 0; color: var(--ink-2); }
.pp-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-list li { background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 800; }
@media (max-width: 860px) { .passport { grid-template-columns: 1fr; } }

/* Dark / midnight section */
.dark { background: var(--night); color: #EAF2DC; }
.dark .kicker { color: rgba(203, 236, 63, 0.8); }
.dark .lede { color: rgba(234, 242, 220, 0.78); }
.dark h2 .lime { color: var(--lime); }
.dark--stars {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(203, 236, 63, 0.12), transparent 60%),
    linear-gradient(rgba(15, 21, 18, 0.35), rgba(15, 21, 18, 0.7)),
    url("../themes/theme-limin-midnight.jpg") center / cover no-repeat,
    var(--night);
}
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2;
  background: #172019;
  border: 1px solid rgba(203, 236, 63, 0.22);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.tile--wide { grid-column: span 3; }
.tile--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tile--lime p { color: var(--ink-2) !important; }
.tile h3 { font-size: 36px; }
.tile p { margin: 0; color: rgba(234, 242, 220, 0.76); font-size: 16px; }
.tile__stat { font-family: var(--f-display); font-size: clamp(64px, 8vw, 96px); line-height: 0.8; color: var(--lime); margin-bottom: 14px; display: flex; align-items: flex-end; gap: 10px; }
.tile--lime .tile__stat { color: var(--ink); }
.tile__stat .coin { width: 60px; height: 60px; }
.tile__icon { font-size: 40px; line-height: 1; margin-bottom: 16px; display: block; }
.tile__px { width: 72px; height: 72px; image-rendering: pixelated; margin-bottom: 16px; }
.streak { display: flex; gap: 6px; margin-bottom: 18px; }
.streak i { width: 26px; height: 26px; border-radius: 6px; background: rgba(203, 236, 63, 0.14); border: 1px solid rgba(203, 236, 63, 0.3); }
.streak i.on { background: var(--lime); border-color: var(--lime); }
.crown { position: absolute; right: -14px; top: -18px; font-size: 110px; opacity: 0.1; transform: rotate(14deg); pointer-events: none; }
@media (max-width: 960px) { .tile, .tile--wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile--wide { grid-column: auto; } }

/* Themes gallery */
.gallery { position: relative; }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 460px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
@media (min-width: 1240px) { .gallery__track { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.gallery__track::-webkit-scrollbar { height: 8px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; }
.theme { scroll-snap-align: start; margin: 0; }
.theme .win { box-shadow: 6px 6px 0 var(--ink); }
.theme .win__body { padding: 0; }
.theme img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; image-rendering: pixelated; }
.theme figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.theme figcaption .place { font-size: 24px; line-height: 1.1; }
.theme figcaption small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gallery__ctrl { display: flex; gap: 10px; }
.gallery__ctrl button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; }
.gallery__ctrl button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.gallery__ctrl svg { width: 20px; height: 20px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Secret theme: pixel fog that dissolves while hovered / held */
.secret { position: relative; overflow: hidden; touch-action: pan-y; cursor: crosshair; }
.secret__fog { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 16), 1fr); grid-template-rows: repeat(var(--rows, 10), 1fr); }
.secret__fog i { background: var(--c, #20241F); transition: opacity 0.5s steps(4), transform 0.5s steps(4); }
.secret__fog i.off { opacity: 0; transform: scale(0.4); }
.secret__hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--lime); text-align: center; pointer-events: none;
  transition: opacity 0.4s ease;
}
.secret__hint svg { width: 40px; height: 40px; }
.secret__verb { font-family: var(--f-display); font-size: 28px; line-height: 1; color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.secret__verb--touch { display: none; }
@media (hover: none) { .secret__verb--hover { display: none; } .secret__verb--touch { display: block; } }
.secret__pct { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; background: var(--ink); color: var(--lime); padding: 2px 8px; border-radius: 4px; }
.secret.is-going .secret__hint { opacity: 0.35; }
.secret.is-revealed { cursor: default; }
.secret.is-revealed .secret__hint, .secret.is-revealed .secret__fog { opacity: 0; transition: opacity 0.6s ease; }
.theme--secret figcaption .place { transition: color 0.3s ease; }
.theme--secret.is-revealed figcaption .place { color: #C2457A; }
.theme--secret.is-revealed .win { animation: pop 0.5s steps(5); }
@keyframes pop { 50% { transform: scale(1.03) rotate(-1deg); } }
.no-js .secret__fog, .no-js .secret__hint { display: none; }

/* Social / more features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--hair); border-radius: 18px; padding: 24px 22px; }
.feat__ico { width: 52px; height: 52px; border-radius: 12px; background: var(--paper); border: 1px solid var(--hair); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.feat__ico img { width: 36px; height: 36px; image-rendering: pixelated; }
.feat h3 { font-size: 30px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Campuses */
.campuses { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 22px; }
.campus {
  position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; text-decoration: none;
}
.campus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: -1; transition: transform 0.6s ease; }
.campus:hover img { transform: scale(1.04); }
.campus { isolation: isolate; }
.campus::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 12, 10, 0.85), rgba(10, 12, 10, 0.1) 60%); }
.campus__body { padding: 24px; }
.campus .display { font-size: 58px; }
.campus p { margin: 6px 0 0; font-size: 15px; opacity: 0.9; }
.campus__live { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.campus__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(58, 107, 46, 0.25); }
.campus--next { background: var(--lime); color: var(--ink); justify-content: space-between; padding: 24px; }
.campus--next::before { display: none; }
.campus--next .display { font-size: 50px; }
.campus--next .btn { align-self: flex-start; margin-top: 16px; }
.campus--next .big-plus { font-family: var(--f-display); font-size: 120px; line-height: 0.7; }
@media (max-width: 960px) { .campuses { grid-template-columns: 1fr 1fr; } .campus--next { grid-column: span 2; min-height: 260px; } }
@media (max-width: 600px) { .campuses { grid-template-columns: 1fr; } .campus--next { grid-column: auto; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 36px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* Final CTA */
.cta { background: var(--lime); overflow: hidden; text-align: center; }
.cta__lemon { width: clamp(150px, 20vw, 230px); margin: 0 auto 28px; filter: drop-shadow(6px 8px 0 rgba(32, 36, 31, 0.2)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .cta__lemon { animation: none; } }
.cta .hero__ctas { justify-content: center; }
.cta .lede { margin-inline: auto; }

/* Footer */
.footer { background: var(--ink); color: rgba(234, 242, 220, 0.72); padding: 56px 0 40px; font-size: 15px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer .brand__word { height: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer a { color: #EAF2DC; text-decoration: none; font-weight: 800; }
.footer a:hover { color: var(--lime); }
.footer__fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(234, 242, 220, 0.14); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }

/* ---------- Doc pages (privacy / support) ---------- */
.doc-hero { background: var(--lime) url("../themes/theme-limin-lime.jpg") center / cover; margin-top: -68px; padding: calc(68px + clamp(48px, 7vw, 88px)) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.doc-hero h1.display { font-size: clamp(56px, 9vw, 112px); }
.doc-hero .lede { margin-top: 14px; }
.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 0 clamp(80px, 10vw, 120px); }
.doc h2 { font-family: var(--f-display); font-weight: 400; font-size: 42px; line-height: 1; margin: 48px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-family: var(--f-body); font-weight: 800; font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc .callout { background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 16px; padding: 20px 22px; margin: 24px 0; }
.doc .callout p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.doc th { background: var(--ink); color: var(--lime); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 40px; }
.help-grid .feat { display: flex; flex-direction: column; }
.help-grid .feat a { margin-top: auto; padding-top: 14px; }
@media (max-width: 760px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- Section bands: clear breaks between similar-colored sections ---------- */
.band { --band: var(--paper); }
.band--lime { --band: #DCF285; background: var(--band); border-block: 3px solid var(--ink); }
.band--dots {
  --band: #fff;
  background: radial-gradient(rgba(32, 36, 31, 0.13) 1.5px, transparent 1.6px) 0 0 / 22px 22px, #fff;
  border-bottom: 3px solid var(--ink);
}
.band--lime .kicker { color: var(--ink-2); }
.band--lime .feat { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.band--lime .feat__ico { background: var(--lime); border-color: var(--ink); }
.band--lime .feat:hover { box-shadow: 8px 8px 0 var(--ink); }
/* pixel "teeth" edge on top of a band */
.band--lime::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 12px; z-index: 1; pointer-events: none;
  background: conic-gradient(from 45deg at 50% 100%, var(--band) 270deg, transparent 0) 0 0 / 24px 12px;
}
.faq-wrap, #faq { border-top: 0; }

/* ---------- Motion ---------- */
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* Reveal on scroll (uses the individual translate/scale props so it never fights a card's own transform) */
.reveal {
  opacity: 0; translate: 0 32px;
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.8s var(--ease) var(--d, 0s), scale 0.8s var(--ease) var(--d, 0s), filter 0.8s var(--ease) var(--d, 0s), transform 0.2s ease, box-shadow 0.2s ease;
}
.reveal[data-r="left"] { translate: -48px 0; }
.reveal[data-r="right"] { translate: 48px 0; }
.reveal[data-r="zoom"] { translate: 0 16px; scale: 0.9; }
.section__head.reveal, .head-row > .reveal { filter: blur(6px); }
.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; filter: none; }

/* Hero intro */
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(70px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes hl-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero__grid > div:first-child > * { animation: rise 0.9s var(--ease) both; }
.hero__grid > div:first-child > :nth-child(1) { animation-delay: 0.05s; }
.hero__grid > div:first-child > :nth-child(2) { animation-delay: 0.15s; }
.hero__grid > div:first-child > :nth-child(3) { animation-delay: 0.3s; }
.hero__grid > div:first-child > :nth-child(4) { animation-delay: 0.42s; }
.hero__grid > div:first-child > :nth-child(5) { animation-delay: 0.54s; }
.hero h1 .hl { animation: hl-in 0.7s steps(14) 0.55s both; }
.phone-stage { animation: phone-in 1.1s var(--ease) 0.25s both; translate: 0 calc(var(--py, 0) * 1px); }
.float-chip--a, .float-chip--b { opacity: 0; animation: bob 5s ease-in-out infinite, chip-in 0.6s var(--ease) 1.1s forwards; }
.float-chip--b { animation-delay: -2.5s, 1.3s; }
@keyframes chip-in { to { opacity: 1; } }

/* Scroll progress + active nav link */
.progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 60; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
.progress::after { content: ""; position: absolute; right: 0; top: 0; width: 10px; height: 4px; background: var(--lime); }
.nav__links a { transition: background 0.2s ease, color 0.2s ease; position: relative; }
.nav__links a.is-active { background: var(--ink); color: var(--lime); }
@media (max-width: 860px) { .nav__links a.is-active { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; } }

/* Kicker square pops in */
.kicker::before { transition: transform 0.5s var(--ease) 0.2s; transform: scale(0) rotate(-90deg); }
.is-in .kicker::before, .kicker.is-in::before { transform: none; }
.no-js .kicker::before { transform: none; }

/* Lift on hover */
.feat, .tile, .pp-card, .step, .campus, .theme .win { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.8s var(--ease) var(--d, 0s), translate 0.8s var(--ease) var(--d, 0s), scale 0.8s var(--ease) var(--d, 0s), filter 0.8s var(--ease) var(--d, 0s); }
.feat:hover { transform: translateY(-6px); }
.tile:hover { transform: translateY(-6px); border-color: rgba(203, 236, 63, 0.6); }
.pp-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.step:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(32, 36, 31, 0.9); }
.campus:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.theme .win:hover { transform: translate(-3px, -3px) rotate(-0.4deg); box-shadow: 9px 9px 0 var(--ink); }
.pp-card__art { transition: transform 0.6s var(--ease); }
.pp-card:hover .pp-card__art { transform: scale(1.04); }
.pp-card { overflow: hidden; }
.step__icon { transition: transform 0.3s var(--ease); }
.step:hover .step__icon { transform: rotate(-8deg) scale(1.1); }
.faq details { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.faq details:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.faq details[open] { background: var(--cream); }
.faq details[open] > div { animation: rise 0.4s var(--ease); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Button shine */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }

/* Streak squares light up in order; tokens pop */
@keyframes lightup { from { background: rgba(203, 236, 63, 0.14); transform: scale(0.6); } 60% { transform: scale(1.25); } to { transform: none; } }
.streak i.on { animation-fill-mode: both; }
.tile:not(.is-in) .streak i.on { opacity: 0; }
.tile.is-in .streak i.on { animation: lightup 0.4s var(--ease) both; }
.tile.is-in .streak i:nth-child(1) { animation-delay: 0.3s; } .tile.is-in .streak i:nth-child(2) { animation-delay: 0.42s; }
.tile.is-in .streak i:nth-child(3) { animation-delay: 0.54s; } .tile.is-in .streak i:nth-child(4) { animation-delay: 0.66s; }
.tile.is-in .streak i:nth-child(5) { animation-delay: 0.78s; }
.tile__stat .coin { animation: spin-coin 5s ease-in-out infinite; }
@keyframes spin-coin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.crown { animation: sway 6s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(6deg) translateY(-6px); } }

/* Slow drifting sheen on lime sections */
.board, .cta { background-image: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%); background-size: 260% 100%; background-color: var(--lime); animation: sheen 14s linear infinite; }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* Page fade-in for doc pages */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.doc-hero .wrap > * { animation: rise 0.8s var(--ease) both; }
.doc-hero .wrap > :nth-child(2) { animation-delay: 0.1s; }
.doc-hero .wrap > :nth-child(3) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; scale: none; filter: none; transition: none; }
  .hero__grid > div:first-child > *, .hero h1 .hl, .phone-stage, .doc-hero .wrap > *, .tile__stat .coin, .crown, .board, .cta { animation: none; }
  .float-chip--a, .float-chip--b { opacity: 1; animation: none; }
  .kicker::before { transform: none; transition: none; }
  .tile:not(.is-in) .streak i.on { opacity: 1; }
  .tile.is-in .streak i.on { animation: none; }
  .progress { display: none; }
}
.no-js .reveal { opacity: 1; translate: none; scale: none; filter: none; }
