/* Mochai Games, mochai.games
   One stylesheet, no build step. Fonts and tokens up top; the rest is sections in page order. */

@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FBF8F4;
  --paper-2: #F3EEE7;
  --ink: #1A2130;
  --ink-2: #4B5563;
  --muted: #6B7280;          /* 4.6:1 on paper */
  --line: rgba(26, 33, 48, .08);

  --mochi: #FFD5C8;
  --mochi-deep: #FFB9A6;
  --coral: #FF7A59;
  --coral-deep: #E75E3C;     /* 3.3:1 on paper: large text, and the button fill under 19px bold white */
  --coral-ink: #C2451F;      /* 4.8:1 on paper: small coral text */
  --teal: #17B2A6;
  --violet: #6E7BE0;
  --orchid: #B06CD9;
  --mango: #FFB23A;

  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 28px;
  --r-btn: 999px;
  --shadow-card: 0 24px 60px -24px rgba(26, 33, 48, .28), 0 2px 6px rgba(26, 33, 48, .06);

  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --fast: 160ms;
  --base: 260ms;
  --slow: 520ms;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ───────────── Nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(251, 248, 244, .9);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; }
.brand-mark { transition: transform var(--slow) var(--spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.1); }
.brand-name { white-space: nowrap; }
.brand-name span { color: var(--ink-2); font-weight: 500; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  white-space: nowrap; padding: 8px 14px; border-radius: var(--r-btn); font-weight: 700; font-size: .95rem; color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }

/* ───────────── Shared ───────────── */
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: 14px;
}
.section-head { max-width: var(--max); margin: 0 auto 40px; padding: 0 var(--gutter); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-btn);
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1;
  transition: transform var(--base) var(--spring), box-shadow var(--base) var(--ease), background var(--fast) var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 122, 89, .8), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { background: #D9532F; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 122, 89, .9), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn-primary svg { transition: transform var(--base) var(--spring); }
.btn-primary:hover svg { transform: translateY(3px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--paper-2); transform: translateY(-2px); }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }

/* Scroll reveal */
/* Scroll reveal: content only starts hidden when JS is running to reveal it. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* The hero animates in with CSS alone, so it paints on the first frame (good for LCP). */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(14px); } to { transform: none; } }
.hero-mochi { animation: rise .8s var(--ease) both; }
.hero h1 .eyebrow { animation: rise .7s var(--ease) .08s both; }
.lead { animation: lift .8s var(--ease) .06s both; }   /* transform only: visible on the first frame */
.hero-cta { animation: rise .8s var(--ease) .28s both; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: grid; place-items: center;
  padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(72px, 10vh, 120px);
  text-align: center; overflow: hidden;
}
.hero-inner { max-width: 820px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.9rem, 8.4vw, 6.4rem); font-weight: 800; }
.hero h1 .eyebrow { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; line-height: 1.4; margin-bottom: 14px; }
.hero h1 .headline { display: block; animation: lift .8s var(--ease) both; }
.hero h1 em { font-style: normal; color: var(--coral-deep); position: relative; display: inline-block; }
.hero h1 em::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .16em; z-index: -1;
  background: var(--mochi); border-radius: 999px;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .5s;
}
.hero h1 em::after { animation: underline .9s var(--ease) .5s forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 54ch; margin: 24px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* The mochi, front and centre */
.hero-mochi {
  position: relative; display: block; margin: 0 auto 26px; padding: 0; border: 0; background: none; cursor: pointer;
  width: clamp(120px, 16vw, 176px); -webkit-tap-highlight-color: transparent;
}
.hero-mochi-idle { display: block; transform-origin: 50% 100%; animation: mochi-idle 4.2s ease-in-out infinite; }
.hero-mochi-body { width: 100%; transform-origin: 50% 100%; will-change: transform; }
.hero-mochi-shadow { display: block; width: 62%; margin: 2px auto 0; }
.hero-mochi-shadow > span {
  display: block; height: 10px; border-radius: 50%; background: rgba(26, 33, 48, .12); filter: blur(1px);
  transform-origin: 50% 50%; animation: mochi-shadow 4.2s ease-in-out infinite; will-change: transform, opacity;
}
.hero-mochi:focus-visible { outline: 3px solid var(--coral); outline-offset: 10px; border-radius: 40%; }
@keyframes mochi-idle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .975); } }
@keyframes mochi-shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.05); } }

/* Its friends drift around the hero */
.hero-friends { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.friend { position: absolute; width: clamp(80px, 11vw, 150px); height: auto; opacity: .95; animation: float 9s ease-in-out infinite; will-change: transform; filter: drop-shadow(0 14px 18px rgba(26,33,48,.08)); }
.f1 { left: 9%; top: 24%; animation-delay: -1s; }
.f2 { right: 10%; top: 18%; animation-delay: -4s; animation-duration: 11s; }
.f3 { right: 16%; bottom: 10%; animation-delay: -6s; animation-duration: 10s; width: clamp(96px, 13vw, 180px); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* ───────────── Games ───────────── */
.games { padding: clamp(40px, 8vh, 96px) 0 clamp(48px, 9vh, 120px); }
.game-card {
  position: relative; max-width: var(--max); margin: 0 auto; border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(180deg, var(--violet), var(--orchid)); color: #fff;
  box-shadow: var(--shadow-card);
}
.game-art { position: absolute; inset: 0; z-index: 0; }
.game-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.game-card:hover .game-art img { transform: scale(1.0); }
.game-art-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 22, 60, .86) 0%, rgba(28, 22, 60, .72) 42%, rgba(28, 22, 60, .18) 100%),
    linear-gradient(180deg, rgba(28, 22, 60, .35), transparent 30%, transparent 70%, rgba(28, 22, 60, .45));
}
.game-body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
}
.game-wordmark { width: min(360px, 80%); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.game-tag { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-top: 22px; letter-spacing: -.01em; }
.game-desc { margin-top: 10px; color: rgba(255, 255, 255, .78); max-width: 40ch; }
.game-feats { margin-top: 20px; display: grid; gap: 8px; font-weight: 600; font-size: .98rem; }
.game-feats li { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.dot-coral { background: var(--coral); } .dot-teal { background: var(--teal); } .dot-violet { background: #C9A6F2; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 14px; min-height: 54px;
  background: #0E0F14; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 24px -12px rgba(0,0,0,.6);
  transition: transform var(--base) var(--spring), box-shadow var(--base) var(--ease);
}
.store:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 18px 30px -14px rgba(0,0,0,.7); }
.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-text small { font-size: .68rem; opacity: .8; font-weight: 600; letter-spacing: .02em; }
.store-text strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.store.is-placeholder { cursor: default; }
.store.is-placeholder::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px);
  white-space: nowrap; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; padding: 7px 11px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity var(--fast) var(--ease), transform var(--base) var(--spring);
}
.store.is-placeholder:hover::after, .store.is-placeholder:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.store-note { margin-top: 14px; font-size: .9rem; color: rgba(255,255,255,.72); }
.store-note a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.store-note a:hover { text-decoration-color: #fff; }

/* Phone */
.phone-wrap { position: relative; display: grid; place-items: center; perspective: 1400px; padding: 10px 0; }
.phone {
  position: relative; width: min(290px, 70vw); aspect-ratio: 9 / 19.2;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2A2D3A, #0E0F14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.08), inset 0 0 0 4px #0B0C10;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  animation: hover-float 6s ease-in-out infinite;
  will-change: transform;
}
.phone.is-tilting { animation: none; transition: transform .12s linear; }
@keyframes hover-float { 0%, 100% { transform: translateY(0) rotateX(0) rotateY(-6deg); } 50% { transform: translateY(-10px) rotateX(1.5deg) rotateY(-4deg); } }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #2E2A63; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #0B0C10; z-index: 3; }
.phone-shine { position: absolute; inset: 0; border-radius: 44px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 35%, transparent 65%, rgba(255,255,255,.06)); z-index: 4; }
.phone-icon {
  position: absolute; right: -8px; bottom: 26px; width: 72px; height: 72px; border-radius: 18px;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6), 0 0 0 3px rgba(255,255,255,.16);
  animation: icon-float 6s ease-in-out infinite; animation-delay: -1.5s;
  transition: transform var(--base) var(--spring);
}
.phone-icon:hover { transform: scale(1.08) rotate(-4deg); }
@keyframes icon-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Splash screen (plays when the phone scrolls into view) */
.splash { position: absolute; inset: 0; overflow: hidden; }
.splash-bg { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.splash.play .splash-bg { transform: scale(1); }
.splash-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,50,.28), transparent 38%, transparent 76%, rgba(20,16,50,.45)); }
.splash-logo {
  position: absolute; left: 50%; top: 12%; width: 76%; transform: translate(-50%, -20px) scale(.6); opacity: 0;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.4));
  transition: transform .8s var(--spring) .35s, opacity .4s var(--ease) .35s;
}
.splash.play .splash-logo { transform: translate(-50%, 0) scale(1); opacity: 1; animation: logo-bob 4s ease-in-out 1.2s infinite; }
@keyframes logo-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.splash-foot { position: absolute; left: 0; right: 0; bottom: 26px; display: grid; justify-items: center; }
.splash-by { font-family: var(--display); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); opacity: 0; transition: opacity .6s var(--ease) 1.2s; }
.splash.play .splash-by { opacity: 1; }

/* ───────────── Studio ───────────── */
.story { padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(64px, 11vh, 130px); }
.story-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.story-team { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.6vw, 16px); margin-bottom: 30px; }
.story-team img { width: clamp(48px, 7vw, 68px); height: auto; transform-origin: 50% 100%; }
.story-team.in img { animation: team-hop 1s cubic-bezier(.3, 0, .2, 1) both, team-bob 5s ease-in-out 1.2s infinite; }
.story-team.in img:nth-child(2) { animation-delay: .1s, 1.5s; }
.story-team.in img:nth-child(3) { animation-delay: .2s, 1.8s; }
.story-team.in img:nth-child(4) { animation-delay: .3s, 2.1s; }
@keyframes team-hop {
  0% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(0) scale(1.1, .88); }
  40% { transform: translateY(-18px) scale(.95, 1.06); }
  66% { transform: translateY(0) scale(1.06, .93); }
  82% { transform: translateY(0) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes team-bob { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
.story h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.story-body { margin-top: 30px; display: grid; gap: 18px; text-align: left; }
.story-body p { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.75; }
.story-close {
  margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
.story-close span { display: block; color: var(--coral-ink); margin-top: 4px; }

/* ───────────── Contact ───────────── */
.contact { padding: 0 var(--gutter) clamp(64px, 10vh, 120px); }
.contact-card {
  position: relative; max-width: var(--max); margin: 0 auto; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 24px;
  background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-card);
}
.contact-card::before {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,89,.35), transparent 65%); pointer-events: none;
}
.contact-copy .eyebrow { color: var(--coral); }
.contact-copy h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.contact-copy p { color: rgba(255,255,255,.75); margin: 14px 0 26px; max-width: 46ch; }
.contact-card .btn-primary { box-shadow: 0 14px 30px -12px rgba(255,122,89,.9), inset 0 -3px 0 rgba(0,0,0,.14); }
.contact-mochi {
  width: min(260px, 100%); justify-self: center; position: relative; z-index: 1;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.45));
  animation: float 6s ease-in-out infinite; transform-origin: 50% 100%;
}

/* ───────────── Footer ───────────── */
.footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) 44px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; }
.brand-sm { font-size: 1.1875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.footer-links a { transition: color var(--fast) var(--ease); }
.footer-links a:hover { color: var(--coral-ink); }
.footer-address { font-style: normal; color: var(--ink-2); font-size: .88rem; }
.footer-copy { color: var(--muted); font-size: .82rem; max-width: 70ch; }

.game-title { margin: 0; }

/* ───────────── 404 ───────────── */
.notfound { min-height: 64vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; padding: 64px var(--gutter); }
.notfound-mochi { width: 120px; animation: float 6s ease-in-out infinite; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 18ch; }
.notfound p { color: var(--ink-2); max-width: 44ch; margin-bottom: 10px; }

/* ───────────── Legal pages ───────────── */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(64px, 10vh, 120px); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc .doc-meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.doc h2 { font-size: 1.45rem; margin-top: 44px; }
.doc h3 { font-size: 1.1rem; margin-top: 26px; }
.doc p, .doc li { color: var(--ink-2); margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc a { color: var(--coral-ink); font-weight: 700; }
.doc .callout { background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: 0 1px 0 var(--line); margin-top: 24px; }
.doc .callout p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--ink); font-family: var(--display); font-weight: 600; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .game-body { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .game-art img { object-position: center 20%; }
  .contact-card { grid-template-columns: 1fr; text-align: center; }
  .contact-copy p { margin-inline: auto; }
  .contact-mochi { width: min(200px, 55%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding-inline: 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: .9rem; }
  .game-wordmark { width: min(260px, 70%); }
  .brand-name { font-size: 1rem; }
  .friend { opacity: .8; }
  .f1 { left: -4%; top: 12%; }
  .f2 { right: -4%; top: 8%; }
  .f3 { display: none; }
  .stores { flex-direction: column; }
  .store { justify-content: center; }
  .store.is-placeholder::after { display: none; }
  .phone-icon { right: 6px; }
}

@media (max-width: 420px) {
  .brand { gap: 7px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-links a { padding: 8px 6px; font-size: .85rem; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 em::after { transform: scaleX(1); }
  .splash .splash-logo { opacity: 1; transform: translate(-50%, 0) scale(1); }
  .splash .splash-by { opacity: 1; }
  .phone { animation: none; }
  .hero-mochi-idle, .hero-mochi-shadow > span, .friend, .contact-mochi, .story-team img, .notfound-mochi { animation: none; }
}
