/* Wen Moon? website
   One deliberate look, taken from the game: mint table, ink outlines, chunky keycap
   buttons, a night-sky band for the story, typewriter for the diary. */

@font-face { font-family: 'Bowlby One'; src: url('../fonts/bowlby-one-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Yellowtail'; src: url('../fonts/yellowtail-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('../fonts/special-elite-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --mint: #8FDAA9;
  --mint-light: #B4E8C5;
  --mint-deep: #5FBF86;
  --ink: #10241A;
  --ink-soft: #3D5247;
  --paper: #FBFDF8;
  --paper-2: #EDF4EA;
  --rule: #CFE0CD;
  --buy: #1FB34A; --buy-edge: #117A2E;
  --sell: #EC1C35; --sell-edge: #9E0F1E;
  --gold: #F5B82E; --gold-edge: #B9800F;
  --dia: #3FB5EE;
  --night: #0B140F; --night-2: #16362A; --phosphor: #7DF0A3;
  --graphite: #3A3E3C; --graphite-text: #DADDD6;
  --f-display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  --f-script: 'Yellowtail', 'Brush Script MT', cursive;
  --f-type: 'Special Elite', 'Courier New', monospace;
  --f-mono: 'Plex Mono', ui-monospace, Menlo, monospace;
  --f-body: 'Rubik', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mint); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--dia); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(143, 218, 169, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid rgba(16,36,26,.12); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 20px; letter-spacing: .01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 99px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------ keycap buttons */
.key {
  --edge: var(--buy-edge);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 10px 24px 12px; border-radius: 16px; border: 0;
  background: var(--buy); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-size: 21px; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0,0,0,.25);
  box-shadow: 0 6px 0 var(--edge), 0 10px 18px rgba(16,36,26,.2);
  transition: transform .06s, box-shadow .06s;
}
.key:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 2px 4px rgba(16,36,26,.2); }
.key.ink { background: var(--ink); --edge: #000; }
.key.paper { background: var(--paper); color: var(--ink); text-shadow: none; --edge: #A9C7AF; }
.key small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 600; text-shadow: none; opacity: .85; letter-spacing: 0; }
.key .apple { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) 0; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shapes svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.logo { line-height: .9; }
.logo-mark { font-family: var(--f-display); font-size: clamp(60px, 10vw, 118px); color: #fff; text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 rgba(16,36,26,.2); display: inline-flex; flex-direction: column; }
.logo-line { display: inline-flex; align-items: center; gap: .12em; }
.moon { width: .78em; height: .78em; border-radius: 50%; box-shadow: inset -.2em -.06em 0 0 #fff; filter: drop-shadow(4px 4px 0 var(--ink)); transform: rotate(-18deg); display: inline-block; }
.logo-script { font-family: var(--f-script); color: #fff; font-size: clamp(42px, 6.4vw, 72px); transform: rotate(-7deg); margin: 6px 0 0 4px; text-shadow: 3px 3px 0 var(--ink); }
.hero h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: clamp(30px, 4vw, 44px) 0 10px; font-weight: 800; text-wrap: balance; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { font-family: var(--f-mono); font-size: 13px; font-weight: 700; background: var(--paper); border-radius: 99px; padding: 6px 12px; box-shadow: inset 0 0 0 2px var(--ink); }
.phones { position: relative; height: clamp(440px, 52vw, 640px); }
.phone { position: absolute; width: clamp(190px, 21vw, 270px); aspect-ratio: 1320 / 2868; border-radius: 30px; border: 7px solid var(--ink); overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(16,36,26,.3); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.p1 { left: 2%; top: 8%; transform: rotate(-7deg); }
.phone.p2 { left: 30%; top: 0; z-index: 2; }
.phone.p3 { right: 0; top: 10%; transform: rotate(7deg); }
.squiggle { display: block; width: 100%; height: clamp(70px, 10vw, 130px); margin-top: -40px; position: relative; z-index: 3; }

/* ------------------------------------------------ sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section.tight { padding-block: clamp(24px, 4vw, 48px); }
.kicker { font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 8px; }
h2 { font-family: var(--f-display); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; margin: 0 0 16px; text-wrap: balance; letter-spacing: -.005em; }
.section-lede { max-width: 38em; color: var(--ink-soft); margin: 0 0 34px; font-size: 18px; }

/* story band (night) */
.story { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #E6F2EA; position: relative; }
.story .kicker, .story .section-lede { color: #9FB8AA; }
.story h2 { color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; counter-reset: ch; }
.timeline li { counter-increment: ch; background: rgba(255,255,255,.05); border-radius: 16px; padding: 16px 16px 14px; box-shadow: inset 0 0 0 1.5px rgba(125,240,163,.15); display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.timeline li::before { content: counter(ch); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-family: var(--f-display); font-size: 20px; }
.timeline li.fiction::before { background: var(--sell); color: #fff; }
.timeline b { display: block; font-size: 17px; color: #fff; }
.timeline span { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--phosphor); margin: 2px 0 4px; }
.timeline p { margin: 0; font-size: 14px; color: #B9CFC2; line-height: 1.45; }
.diary { margin: 40px auto 0; max-width: 760px; background: var(--graphite); color: var(--graphite-text); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.diary p { font-family: var(--f-type); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45; letter-spacing: .03em; margin: 0; }
.diary cite { display: block; margin-top: 14px; font-family: var(--f-mono); font-style: normal; font-size: 12px; color: rgba(218,221,214,.6); }

/* controls */
.controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 26px; }
.control { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.cap { display: grid; place-items: center; height: 54px; border-radius: 14px; font-family: var(--f-display); font-size: 19px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); box-shadow: 0 5px 0 var(--e, rgba(0,0,0,.3)); }
.cap.buy { background: var(--buy); --e: var(--buy-edge); }
.cap.hodl { background: #1B2B22; --e: #000; }
.cap.soft { background: #E9F6EC; --e: #9CC8A8; color: var(--ink); text-shadow: none; }
.cap.sell { background: var(--sell); --e: var(--sell-edge); }
.cap.drs { background: var(--dia); --e: #1E7FB0; color: var(--ink); text-shadow: none; }
.cap.fud { background: #2B2E2C; --e: #000; color: var(--dia); }
.control h3 { margin: 2px 0 2px; font-size: 18px; }
.control p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* gallery */
.gallery-band { background: var(--paper); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 24vw, 260px); gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .shot { border-radius: 26px; border: 6px solid var(--ink); overflow: hidden; aspect-ratio: 1320 / 2868; background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.mode .tag { display: inline-block; margin-top: 14px; font-family: var(--f-mono); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.14); }
.mode.gold .tag { background: rgba(16,36,26,.1); }
.mode { border-radius: 20px; padding: 24px; box-shadow: 0 6px 0 var(--e); }
.mode h3 { font-family: var(--f-display); font-size: 24px; margin: 0 0 8px; }
.mode p { margin: 0; }
.mode.dark { background: var(--night); color: #E6F2EA; --e: #000; }
.mode.dark p { color: #B9CFC2; }
.mode.blue { background: #2F66F5; color: #fff; --e: #1A3FA8; }
.mode.gold { background: var(--gold); --e: var(--gold-edge); }
.medals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.medals img { width: 52px; height: 52px; border-radius: 50%; }
.medals .secret { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #2B2140; color: #B9A5FF; font-family: var(--f-display); font-size: 20px; box-shadow: inset 0 0 0 4px #8E6CFF; }

/* parody note */
.parody { background: var(--paper); border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 6px 0 #6AB98A; max-width: 860px; }
.parody h2 { font-size: clamp(26px, 3.4vw, 36px); }
.parody p { color: var(--ink-soft); margin: 0 0 12px; }

/* final CTA */
.final { text-align: center; }
.final h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.final .cta { justify-content: center; }

/* footer */
footer.site { background: var(--ink); color: #CFE0D5; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
footer.site a { color: #fff; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site p { margin: 0; }
footer.site .fine { width: 100%; font-size: 13px; color: #8FA79A; max-width: 60em; }

/* ------------------------------------------------ document pages (FAQ, privacy, terms) */
.doc-head { padding-block: clamp(40px, 6vw, 72px) 24px; }
.doc-head h1 { font-family: var(--f-display); font-size: clamp(38px, 6vw, 64px); line-height: 1; margin: 0 0 10px; color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.doc-head p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.doc { padding-block: 0 72px; }
.doc .card { background: var(--paper); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 6px 0 #6AB98A; max-width: 820px; }
.doc .card + .card { margin-top: 18px; }
.doc h2 { font-family: var(--f-body); font-weight: 800; font-size: 22px; margin: 28px 0 8px; letter-spacing: 0; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: #1A3FA8; font-weight: 600; }
.summary { background: var(--paper-2); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; }
.summary p { margin: 0; color: var(--ink); }
details { border-bottom: 1.5px solid var(--rule); }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-family: var(--f-display); font-size: 24px; transition: transform .15s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 16px; }
details > div p { margin: 0 0 10px; }
.faq-group + .faq-group { margin-top: 18px; }
.faq-group h2 { font-family: var(--f-display); font-size: 24px; margin: 0 0 4px; }
.contact-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.email { font-family: var(--f-mono); font-weight: 700; background: var(--paper-2); padding: 10px 14px; border-radius: 12px; user-select: all; overflow-wrap: anywhere; }
.copy { border: 0; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 12px; cursor: pointer; }

/* ------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: clamp(380px, 95vw, 560px); max-width: 560px; margin: 0 auto; width: 100%; }
  .phone { width: clamp(150px, 38vw, 230px); }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-links a { padding: 6px 9px; font-size: 14px; }
  .brand span { display: none; }
  .control { grid-template-columns: 92px 1fr; }
  .cap { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .key { transition: none; } }
