/* MomoVerse website: the game's own colours (cream, warm brown ink, one pink for buttons, gold for
   rewards), the game's Nunito for reading and a rounded Japanese-feel face for headings. One column
   on phones; the pup card sits beside the headline on wide screens. Light only, like the game. */
:root {
  --cream: #FFF4EA;
  --paper: #FFFBF6;
  --ink: #4A2E22;
  --soft: #8A6A58;
  --line: #EAD7C8;
  --pink: #E8798A;
  --pink-deep: #D35F72;
  --gold: #F2C14E;
  --sky: #CFE8F5;
  --leaf: #CDEBC9;
  --display: "M PLUS Rounded 1c", "Nunito", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-deep); }
.lede { font-size: 19px; color: var(--soft); max-width: 34em; }
.small { font-size: 14px; color: var(--soft); }
.section-lede { color: var(--soft); max-width: 40em; }

#sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(8px);
}
.brand img { width: 120px; }
.top nav { display: flex; gap: 18px; align-items: center; font-weight: 800; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a.nav-cta { background: var(--pink); color: #fff; padding: 8px 16px; border-radius: 999px; }
@media (max-width: 520px) { .top nav a:not(.nav-cta) { display: none; } }

main > section {
  max-width: 1100px; margin: 0 auto; padding-block: 56px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: grid; gap: 24px;
}

/* Hero */
.hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-top: 24px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 800 17px var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-bottom-width: 5px; transition: transform 0.12s;
}
.btn:active { transform: translateY(2px); border-bottom-width: 3px; }
.btn.primary { background: var(--pink); color: #fff; border-color: var(--pink-deep); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, .pup-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.hero-booth { display: grid; gap: 8px; justify-items: center; min-width: 0; }
#booth { width: min(400px, 100%); height: 640px; border: 0; border-radius: 30px; background: var(--paper); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--pink), 0 24px 50px rgba(74, 46, 34, 0.22); }
@media (max-width: 860px) { #booth { height: 600px; } }
.booth-note { font-size: 14px; font-weight: 800; color: var(--soft); text-align: center; }

/* Pup card: our own frame. Cream bento box, petal foil, cozy stats. */
.pup-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; width: 300px; max-width: 100%; border-radius: 22px; padding: 14px;
  background: linear-gradient(170deg, #FFFBF6, #FFEFE3); border: 3px solid var(--ink);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--pink), 0 24px 50px rgba(74, 46, 34, 0.28);
  display: grid; gap: 7px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out; overflow: hidden; outline: none;
}
.foil {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; mix-blend-mode: soft-light; opacity: 0.85;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.9), transparent 38%),
    conic-gradient(from 210deg at var(--mx) var(--my), #ffd1dc, #fff3c4, #d4f2ff, #e4d6ff, #ffd1dc);
}
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pc-name { font-family: var(--display); font-weight: 800; font-size: 26px; }
.pc-no { font-size: 12px; font-weight: 800; color: var(--soft); font-variant-numeric: tabular-nums; }
.pc-art {
  border-radius: 14px; border: 2px solid var(--ink); background: var(--art) center 60% / cover no-repeat, linear-gradient(#FBE4CF, #F1D0B2);
  aspect-ratio: 1 / 1.05; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55);
}
.pc-breed { font-size: 12px; font-weight: 800; color: var(--soft); text-align: center; }
.pc-move { font-size: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.pc-move b { display: block; color: var(--pink-deep); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.pc-stats { margin: 0; display: grid; gap: 3px; }
.pc-stats div { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.pc-stats dt { color: var(--soft); }
.pc-stats dd { margin: 0; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pc-stats i { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 99px; }
.pc-foot { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--soft); border-top: 2px dashed var(--line); padding-top: 5px; }
.emblem { color: var(--pink); font-size: 14px; line-height: 1; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font: 800 19px var(--display); }
.steps p { color: var(--soft); }

/* Card gallery: a fanned hand */
.gallery { justify-items: center; text-align: center; }
.fan { display: flex; justify-content: center; align-items: flex-end; padding-block: 20px 10px; width: 100%; }
.pup-card.small { width: 230px; flex: none; }
.pup-card.small .pc-name { font-size: 21px; }
#yourCard .pc-name, #yourCard .pc-breed, #yourCard .pc-art { transition: opacity 0.2s; }
#yourCard.changing .pc-art { opacity: 0.4; }
.pup-card.small .pc-stats div { grid-template-columns: 80px 1fr; }
.fan .pup-card:first-child { transform: perspective(900px) rotate(-8deg) translateX(30px) translateY(14px); }
.fan .pup-card:last-child { transform: perspective(900px) rotate(8deg) translateX(-30px) translateY(14px); }
.fan .pup-card.mid { z-index: 2; }
.fan .pup-card:hover, .fan .pup-card:focus-visible { z-index: 3; }
@media (max-width: 720px) {
  .fan { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; gap: 16px; padding-inline: 4px; }
  .fan .pup-card, .fan .pup-card:first-child, .fan .pup-card:last-child { transform: none; scroll-snap-align: center; }
}

/* A day in Momo Town */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.day li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-block: 12px; border-top: 2px dashed var(--line); }
.day b { font-family: var(--display); color: var(--pink-deep); font-variant-numeric: tabular-nums; }

/* Beta form */
.beta { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
@media (max-width: 820px) { .beta { grid-template-columns: 1fr; } }
.beta-copy { display: grid; gap: 14px; }
.beta-copy p { color: var(--soft); }
.join { background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; padding: 24px; display: grid; gap: 10px; box-shadow: 0 0 0 6px var(--sky); }
.join > label, .join legend { font-weight: 800; font-size: 15px; }
.join input[type=email], .join input[type=text] { font: 600 17px var(--body); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); min-height: 48px; width: 100%; }
.join fieldset { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.join legend { margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; min-height: 44px; }
.chip:has(input:checked) { border-color: var(--pink); background: #FDE7EB; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 800; min-height: 44px; }
.check input, .chip input { width: 20px; height: 20px; accent-color: var(--pink); }
.form-note { font-size: 14px; color: var(--soft); }
.form-note.ok { color: #2E7D4F; font-weight: 800; }
.form-note.err { color: #B23A48; font-weight: 800; }

/* FAQ */
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 18px; }
.faq details p { margin-top: 8px; color: var(--soft); max-width: 60ch; }

.foot { text-align: center; display: grid; gap: 8px; justify-items: center; padding-block: 40px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); color: var(--soft); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pup-card { transition: none; }
}
