/* smooshdoku.com: same tokens as smooshvalley.com (one world) */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #5a3a28;
  --muted: #7a5a4c;
  --cream: #fff4e2;
  --cream-2: #fbe9d0;
  --orange: #b5541f;
  --orange-text: #9c4518;
  --orange-lip: #8f4219;
  --white: #ffffff;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 clamp(17px, 1.2vw, 19px)/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.sr { 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(--white); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* Buttons: 48px tall at least, roomy padding */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 999px; font: 700 18px/1.15 var(--display); text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn:active { transform: translateY(3px); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 4px 0 var(--orange-lip); }
.btn-orange:active { box-shadow: 0 1px 0 var(--orange-lip); }
.btn-soft { background: var(--white); color: var(--ink); box-shadow: 0 4px 0 #e8d4b8, inset 0 0 0 2px #f0dcc0; }
.btn-lg { min-height: 60px; padding: 16px 36px; font-size: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; }

/* Nav: always on top, from the first frame to the footer */
.nav { position: fixed; z-index: 60; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 22px;
  background: rgba(255, 244, 226, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 28px rgba(90, 58, 40, .14); }
.nav-logo { display: flex; align-items: center; min-height: 48px; margin-right: auto; }
.nav-logo img { width: 128px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 16px; }
.nav-links a:hover { background: rgba(255, 255, 255, .7); }
.nav-cta { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.nav-menu { display: none; }
@media (max-width: 760px) {
  .nav-logo img { width: 104px; }
  .nav-cta { padding: 10px 18px; }
  .nav-menu { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .8); cursor: pointer; }
  .nav-menu span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
  .nav-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--cream); box-shadow: 0 14px 30px rgba(90, 58, 40, .18); }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 54px; font-size: 18px; }
}


/* Fly-in: same sky, shorter dive, lands on the picnic board */
.fly { position: relative; height: 320vh; background: #f7e6f0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; will-change: transform, opacity; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.l3, .whiteout, .picnic { opacity: 0; }
.picnic { transform-origin: 50% 62%; }
.whiteout { background: radial-gradient(ellipse at 50% 50%, #fffaf6 30%, #fbeaf2 100%); }
.beat { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); width: min(92vw, 900px); text-align: center; pointer-events: none; }
.b1 { top: 16svh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-logo { width: min(560px, 84vw); filter: drop-shadow(0 12px 24px rgba(90, 58, 40, .22)); animation: bob 4s ease-in-out infinite; }
.hero-tag { font: 700 clamp(20px, 2vw, 24px)/1.3 var(--body); background: rgba(255, 244, 226, .82); padding: 10px 22px; border-radius: 999px; }
.hero-hint { position: absolute; z-index: 6; bottom: max(30px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--muted); background: rgba(255, 244, 226, .8); padding: 8px 16px; border-radius: 999px; }
.line { font: 700 clamp(24px, 2.6vw, 34px)/1.25 var(--display); background: rgba(255, 244, 226, .85); padding: 14px 26px; border-radius: 26px; display: inline-block; }
.b2, .b3 { top: 40svh; opacity: 0; }
.b4 { top: 13svh; opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(90, 58, 40, .82); color: var(--cream); font-weight: 700; font-size: 15px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 699px) { .fly { height: 260vh; } .l1 img { object-position: 74% 50%; } .picnic img { object-position: 50% 50%; } }

/* How to play, live: pinned while the board fills */
.how { position: relative; height: 340vh; background: var(--cream); }
.how-stage { position: sticky; top: 0; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 96px var(--gutter) 40px; }
.h2 { font: 700 clamp(40px, 4.6vw, 56px)/1.05 var(--display); }
.h2-small { font: 700 clamp(32px, 3.4vw, 44px)/1.1 var(--display); }
.h3 { font: 700 clamp(28px, 2.6vw, 36px)/1.1 var(--display); }
.sub { margin-top: 12px; font-size: clamp(19px, 1.6vw, 22px); color: var(--muted); }
.rules { list-style: none; counter-reset: r; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .55); opacity: .5; transition: opacity .3s, background-color .3s, transform .3s var(--spring); }
.rules li::before { content: counter(r); grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 22px/1 var(--display); background: #f0dcc0; }
.rules li b { font: 700 21px/1.2 var(--display); }
.rules li span { color: var(--muted); }
.rules li.on { opacity: 1; background: var(--white); box-shadow: 0 5px 0 #ead6bd; transform: scale(1.02); }
.rules li.on::before { background: var(--orange); color: var(--white); }
.rules li.done { opacity: .85; }
.board-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.board { --n: 5; width: min(460px, 86vw); aspect-ratio: 1; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; padding: 10px; background: var(--white); border-radius: 26px; box-shadow: 0 8px 0 #ead6bd, 0 26px 50px rgba(90, 58, 40, .14); }
.cell { position: relative; border-radius: 22%; background: var(--c); box-shadow: inset 0 -4px 0 rgba(90, 58, 40, .14), inset 0 3px 0 rgba(255, 255, 255, .45); transition: filter .3s, transform .3s; }
.cell.dim { filter: saturate(.4) brightness(1.08); opacity: .55; }
.cell.lit { transform: scale(1.04); filter: brightness(1.04); }
.cell img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; transform: scale(0); transition: transform .45s var(--spring); }
.cell.has img { transform: scale(1); }
.cell .x { position: absolute; inset: 22%; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: transform .3s var(--spring), opacity .2s; }
.cell.wrong .x { opacity: 1; transform: scale(1); }
.cell .x::before, .cell .x::after { content: ""; position: absolute; width: 100%; height: 18%; border-radius: 99px; background: #e2504c; box-shadow: 0 2px 0 #b8322e; }
.cell .x::before { transform: rotate(45deg); } .cell .x::after { transform: rotate(-45deg); }
.cell.ring::after { content: ""; position: absolute; inset: -3px; border-radius: 26%; border: 4px solid #f6b21b; box-shadow: 0 0 0 4px rgba(246, 178, 27, .25); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(246, 178, 27, .12); } }
.board-note { min-height: 2.6em; text-align: center; font: 700 20px/1.3 var(--display); color: var(--orange-text); max-width: 24em; }
@media (max-width: 860px) {
  .how { height: 360vh; }
  .how-stage { grid-template-columns: 1fr; align-content: start; gap: 14px; padding-top: 84px; }
  .how-copy .sub { display: none; }
  .rules { margin-top: 10px; gap: 6px; }
  .rules li { padding: 8px 12px; grid-template-columns: 36px 1fr; }
  .rules li::before { width: 36px; height: 36px; font-size: 18px; border-radius: 12px; }
  .rules li span { display: none; }
  .rules li b { align-self: center; font-size: 18px; }
  .board { width: min(360px, 82vw, 46svh); }
  .board-note { font-size: 17px; }
}

/* Sections */
.section { padding: var(--section-y) 0; position: relative; }
.aside { margin-top: 20px; color: var(--muted); font-size: 19px; }
.starters { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.starter { background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: 0 6px 0 #ead6bd, 0 20px 40px rgba(90, 58, 40, .1); }
.starter-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.starter-body { padding: 22px clamp(20px, 2.2vw, 28px) 26px; display: flex; flex-direction: column; gap: 8px; }
.trait { font-weight: 700; color: var(--orange-text); font-size: 15px; }
.starter h3 { font: 700 34px/1.05 var(--display); }
.quote { font-style: italic; color: var(--muted); }
details summary { display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; font: 700 18px/1.2 var(--display); color: var(--orange-text); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " →"; white-space: pre; transition: transform .2s; }
details[open] summary::after { content: " ↓"; }
details p { margin-top: 4px; }
@media (max-width: 900px) { .starters { grid-template-columns: 1fr; max-width: 560px; } }
.more-friends { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
.more-friends li { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 18px/1 var(--display); }
.more-friends img { width: 88px; }

.seasons { background: var(--cream-2); }
.season-grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.season { background: var(--white); border-radius: 26px; overflow: hidden; box-shadow: 0 6px 0 #ead6bd; }
.season img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.season p { padding: 18px 24px 22px; font-size: 19px; }
.season b { font: 700 24px/1.1 var(--display); }
@media (max-width: 700px) { .season-grid { grid-template-columns: 1fr; } }
.crown { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--white); border-radius: 30px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 6px 0 #ead6bd; }
.crown img { width: 100%; }
.crown p { margin-top: 10px; font-size: clamp(18px, 1.4vw, 20px); max-width: 34em; }
@media (max-width: 640px) { .crown { grid-template-columns: 1fr; text-align: center; } .crown img { width: 150px; margin: 0 auto; } }

.soon-card { text-align: center; background: var(--white); border-radius: 36px; padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 96px); box-shadow: 0 8px 0 #ead6bd, 0 30px 60px rgba(90, 58, 40, .12); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.soon-icon { width: 96px; border-radius: 22px; box-shadow: 0 8px 20px rgba(90, 58, 40, .18); }
.center-row { justify-content: center; }
.store.dark { background: var(--cream-2); color: var(--ink); }

.footer { background: var(--ink); color: var(--cream); padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-logo { width: 260px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 40px; font-size: 15px; opacity: .9; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fly { height: auto; } .stage { position: relative; height: 100svh; }
  .b2, .b3, .b4, .hero-hint { display: none; }
  .how { height: auto; } .how-stage { position: relative; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Privacy and support pages */
.legal-top{position:sticky;top:0;z-index:5;box-shadow:0 1px 0 rgba(0,0,0,.08)}
.legal-top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px}
.legal-top a{display:inline-flex;align-items:center;min-height:48px}
.legal-back{font-weight:700;text-decoration:none}
.legal{max-width:calc(720px + 2 * var(--gutter));margin:0 auto;padding:clamp(40px,7vw,88px) var(--gutter) clamp(56px,8vw,104px)}
.legal h1{margin:0 0 12px}
.legal .updated{margin:0 0 40px;opacity:.85;font-size:15px}
.legal h2{margin:48px 0 12px}
.legal p,.legal li{font-size:clamp(17px,1.2vw,19px);line-height:1.65;margin:0 0 14px}
.legal ul{padding-left:1.2em;margin:0 0 14px}
.legal a{text-underline-offset:3px}
.legal-foot{padding:32px 0;font-size:14px}
.legal-foot .wrap{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;justify-content:space-between}
.legal-foot a{display:inline-flex;align-items:center;min-height:44px;color:inherit}
.legal-top{background:var(--white)}.legal h1,.legal h2{font-family:var(--display);font-weight:700}.legal h1{font-size:clamp(38px,5vw,56px);line-height:1.1}.legal h2{font-size:clamp(24px,2.6vw,30px)}.legal a{color:var(--orange-text)}.legal-foot{background:var(--cream-2);color:var(--ink)}
