/* Noodle Putt Party: marketing site. "Toy Box" look: a sunny playroom of felt mats, toy-block buttons and taped
   paper cards. Fonts self-hosted from @fontsource 5.3.0 (SIL OFL 1.1, see /fonts/OFL-*.txt). */

@font-face { font-family: 'Paytone One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/paytone-one-latin-400-normal.woff2?v=07b1f40d) 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: 'Paytone One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/paytone-one-latin-ext-400-normal.woff2?v=72f4f655) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Sniglet'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/sniglet-latin-400-normal.woff2?v=24fcce3b) 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: 'Sniglet'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/sniglet-latin-ext-400-normal.woff2?v=a2b40794) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Sniglet'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/sniglet-latin-800-normal.woff2?v=102c5b5d) 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: 'Sniglet'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/sniglet-latin-ext-800-normal.woff2?v=af004209) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --cream: #FFF6EA; --peach: #FFD9C2; --ink: #2B2140; --ink-2: #54496B;
  --coral: #FF6F59; --coral-d: #D84A37; --sand: #F2D0A4; --sand-d: #C99A62;
  --mint: #3CC6A0; --mint-d: #23977A; --sky: #5AB8F0; --sky-d: #2F86C4;
  --sun: #FFC845; --sun-d: #D99A12; --grape: #8C5CD6; --grape-d: #6538AE;
  --display: 'Paytone One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Sniglet', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --r: 22px;
  /* soft felt fibres (inline SVG noise, no request) */
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .32 0 0 0 0 .25 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--cream); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.08rem/1.6 var(--body); color: var(--ink); background: var(--felt), var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
img.gone { visibility: hidden; }
/* CSS fallbacks sit right after their image and hide once it is there (img.gone = failed to load) */
.portrait img:not(.gone) + .ball, .brand-ic img:not(.gone) + .ball, .studio-logo img:not(.gone) + .wd { display: none; }
a { color: var(--coral-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--grape-d); }
:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 800; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Toy-block buttons: rounded face on a darker 5 px lip; pressing sinks the face into the lip ---------- */
.btn { --face: var(--coral); --lip: var(--coral-d); --on: var(--ink);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .62em 1.35em calc(.62em + 5px); border: 3px solid var(--ink); border-radius: 18px;
  font: 400 1.14rem/1.05 var(--display); color: var(--on); text-decoration: none; text-align: center; cursor: pointer;
  background: var(--lip); box-shadow: 0 10px 16px -8px rgba(43, 33, 64, .55);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.btn::before { content: ""; position: absolute; z-index: -1; inset: 0 0 5px; border-radius: 15px 15px 11px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), var(--face);
  box-shadow: 0 2.5px 0 rgba(43, 33, 64, .55); transition: inset .07s ease-out; }
.btn::after { content: ""; position: absolute; z-index: -1; left: 12px; top: 5px; width: 26%; max-width: 46px; height: 6px;
  border-radius: 6px; background: rgba(255, 255, 255, .6); transition: top .07s ease-out; }
.btn:hover { color: var(--on); filter: saturate(1.08) brightness(1.03); }
.btn:active, .btn.is-down { padding-top: calc(.62em + 4px); padding-bottom: calc(.62em + 1px); }
.btn:active::before, .btn.is-down::before { inset: 4px 0 1px; }
.btn:active::after, .btn.is-down::after { top: 9px; }
.btn small { display: block; font: 800 .74rem/1.1 var(--body); opacity: .85; margin-top: 2px; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-lg { min-height: 64px; font-size: 1.42rem; padding-inline: 1.6em; border-radius: 20px; }
.btn-sm { min-height: 44px; font-size: 1rem; padding: .48em 1em calc(.48em + 5px); border-radius: 15px; }
.btn-sm::before { border-radius: 12px 12px 9px 9px; }
.btn-sm:active, .btn-sm.is-down { padding-top: calc(.48em + 4px); padding-bottom: calc(.48em + 1px); }
.t-mint { --face: var(--mint); --lip: var(--mint-d); }
.t-sky { --face: var(--sky); --lip: var(--sky-d); }
.t-sand { --face: var(--sand); --lip: var(--sand-d); }
.t-sun { --face: var(--sun); --lip: var(--sun-d); }
.t-grape { --face: var(--grape); --lip: var(--grape-d); --on: #fff; }
.t-ghost { --face: var(--cream); --lip: #E7D3BD; }
.btn[aria-disabled="true"], .btn:disabled { cursor: default; filter: grayscale(.4); opacity: .75; }
.btn[aria-disabled="true"]:active, .btn:disabled:active { padding-top: .62em; padding-bottom: calc(.62em + 5px); }
.btn[aria-disabled="true"]:active::before, .btn:disabled:active::before { inset: 0 0 5px; }
.btn-ic { min-width: 52px; padding-inline: .7em; }
.btn-ic .ic { width: 1.35em; height: 1.35em; stroke-width: 2.8; }

/* App Store "coming soon" (no official badge until the app is live) */
.store { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .45em 1.1em .45em .8em; border-radius: 16px;
  border: 3px dashed rgba(43, 33, 64, .45); color: var(--ink); background: rgba(255, 246, 234, .7); font: 800 .95rem/1.15 var(--body); }
.store .ic { width: 1.7em; height: 1.7em; }
.store b { display: block; font: 400 1.08rem/1.1 var(--display); }
.store small { display: block; color: var(--ink-2); font-size: .8rem; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--felt), rgba(255, 246, 234, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; border-bottom: 2px dashed rgba(255, 111, 89, .55); pointer-events: none; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding-block: 8px 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.35rem/1 var(--display); }
.brand:hover { color: var(--ink); }
.brand-ic { position: relative; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; border: 3px solid var(--ink); background: var(--cream); flex: none; }
.brand-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-ic .ball { position: absolute; inset: 5px; border-width: 2px; }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a:not(.btn) { padding: 8px 11px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: .98rem; }
.bar nav a:not(.btn):hover { background: var(--peach); }
.bar nav .btn { margin-left: 8px; }
@media (max-width: 880px) { .bar nav a:not(.btn) { display: none; } }

/* ---------- A curled-up ball in two colours (CSS fallback for any character art) ---------- */
.ball { --c1: var(--coral); --c2: var(--sand); display: block; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 9%, rgba(255, 255, 255, 0) 10%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(43, 33, 64, .18) 72%),
    repeating-linear-gradient(105deg, var(--c1) 0 15%, var(--c2) 15% 21%);
  box-shadow: inset -6px -8px 0 rgba(43, 33, 64, .14); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(70% 60% at 78% 30%, rgba(255, 200, 69, .35), rgba(255, 200, 69, 0) 70%), var(--felt),
    linear-gradient(180deg, #FFEBD9 0%, var(--cream) 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.logo { margin: 0 0 .1em; font-size: clamp(3.4rem, 10.5vw, 7rem); line-height: .88; color: var(--coral);
  -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--ink); transform: rotate(-2deg); transform-origin: left bottom; }
.logo span { display: block; }
.logo .l1 { font-size: .5em; color: var(--sand); margin-bottom: .1em; letter-spacing: .02em; }
.logo .l2 { color: var(--coral); }
.logo .l3 { color: var(--sun); margin-left: .5em; }
.tagline { display: inline-block; margin: .6em 0 .7em; padding: .32em .9em .28em; font: 400 clamp(1.3rem, 3.2vw, 1.8rem)/1.15 var(--display); color: var(--ink);
  background: var(--mint); border: 3px solid var(--ink); border-radius: 999px; transform: rotate(1.5deg); box-shadow: 0 5px 0 var(--ink); }
.lead { max-width: 34em; font-size: 1.16rem; color: var(--ink-2); }
.lead b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 1.2em 0 1.1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .4em; padding: .28em .8em .26em; border-radius: 999px; font-weight: 800; font-size: .92rem;
  background: var(--cream); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(43, 33, 64, .8); }
.chips .ic { width: 1em; height: 1em; color: var(--mint-d); stroke-width: 3; }

.hero-art { position: relative; justify-self: center; width: min(360px, 82vw); }
.toybox { position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; border: 4px solid var(--ink);
  background: linear-gradient(180deg, #BFE5FB 0%, #E9F6FD 46%, var(--peach) 46.2%, #F7C7A9 100%);
  box-shadow: 0 8px 0 var(--ink), 0 30px 50px -18px rgba(43, 33, 64, .55); transform: rotate(2.5deg); }
.toybox > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art .sticker { position: absolute; z-index: 2; left: -18px; bottom: 54px; padding: .4em .9em .34em; transform: rotate(-7deg);
  font: 400 1.1rem/1.1 var(--display); background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
/* CSS-drawn fallback scene (behind the key art; visible only while hero.webp is missing) */
.scene { position: absolute; inset: 0; }
.scene .block { position: absolute; left: 10%; right: 10%; top: 50%; height: 26%; border-radius: 26px; border: 4px solid var(--ink);
  background: radial-gradient(60% 70% at 50% 40%, #FFE08C, #F4C95C); box-shadow: 0 16px 0 #E0A85A, 0 16px 0 4px var(--ink), 0 40px 30px -10px rgba(43, 33, 64, .4); }
.scene .cup { position: absolute; left: 62%; top: 57%; width: 15%; aspect-ratio: 2 / 1; border-radius: 50%; background: var(--ink); }
.scene .pole { position: absolute; left: 68.6%; top: 27%; width: 1.6%; height: 33%; border-radius: 4px; background: var(--ink); }
.scene .flag { position: absolute; left: 70%; top: 27.5%; width: 22%; height: 10%; background: var(--coral); border: 3px solid var(--ink); border-left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%); }
.scene .flag-b { position: absolute; left: 70%; top: 27.5%; width: 22%; height: 10%; }
.scene .ball { position: absolute; left: 20%; top: 41%; width: 34%; border-width: 4px; }
.scene .ball::before, .scene .ball::after { content: ""; position: absolute; top: 40%; width: 11%; height: 15%; border-radius: 50%; background: var(--ink); }
.scene .ball::before { left: 56%; } .scene .ball::after { left: 72%; }
.scene .toy { position: absolute; border: 3px solid var(--ink); border-radius: 8px; }
.scene .t1 { left: 8%; top: 82%; width: 16%; aspect-ratio: 1; background: var(--sky); transform: rotate(-8deg); }
.scene .t2 { left: 70%; top: 84%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--grape); }
.scene .t3 { left: 40%; top: 86%; width: 20%; height: 7%; background: var(--sun); transform: rotate(4deg); }
.scene .cloud { position: absolute; height: 5%; border-radius: 99px; background: #fff; opacity: .9; }
.scene .c1 { left: 10%; top: 9%; width: 36%; } .scene .c2 { left: 56%; top: 16%; width: 28%; }

/* toy confetti scattered over the hero */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.confetti i { position: absolute; display: block; width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 7px; opacity: .9; }
.confetti i:nth-child(1) { left: 2%; top: 3%; background: var(--sky); transform: rotate(14deg); }
.confetti i:nth-child(2) { left: 46%; top: 6%; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); }
.confetti i:nth-child(3) { left: 92%; top: 8%; background: var(--grape); transform: rotate(-10deg); width: 20px; height: 20px; }
.confetti i:nth-child(4) { left: 3%; top: 82%; width: 34px; height: 16px; border-radius: 99px; background: var(--mint); transform: rotate(-14deg); }
.confetti i:nth-child(5) { left: 52%; top: 92%; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); }
.confetti i:nth-child(6) { left: 95%; top: 74%; background: var(--sand); transform: rotate(22deg); }
@media (prefers-reduced-motion: no-preference) {
  .confetti i { animation: bob 5s ease-in-out infinite alternate; }
  .confetti i:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
  .confetti i:nth-child(3n) { animation-duration: 4.2s; animation-delay: -1s; }
  .scene .ball { animation: roll 6s ease-in-out infinite; }
}
@keyframes bob { from { translate: 0 -6px; } to { translate: 0 7px; } }
@keyframes roll { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(14%) rotate(40deg); } }

/* ---------- Sections: felt mats with stitched edges ---------- */
.sec { position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.sec::before, .sec::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(43, 33, 64, .22); pointer-events: none; }
.sec::before { top: 10px; } .sec::after { bottom: 10px; }
.mat-peach { background: var(--felt), var(--peach); }
.mat-sand { background: var(--felt), #F9E3C4; }
.sec-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.sec-head p { color: var(--ink-2); font-size: 1.12rem; }
.kicker { display: inline-block; margin: 0 0 .9em; padding: .32em 1.1em .26em; transform: rotate(-2deg);
  font: 400 .95rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 7px, rgba(255, 255, 255, 0) 7px 14px), var(--coral);
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 50%, 100% 100%, 96% 94%, 3% 100%, 0 92%, 1.5% 50%); }

/* ---------- Paper cards: cream paper, coral tape title, dashed stitching ---------- */
.card { position: relative; padding: 30px 22px 22px; background: var(--paper), var(--cream); border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: 0 6px 0 rgba(43, 33, 64, .85), 0 22px 30px -18px rgba(43, 33, 64, .5); }
.card::before { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(255, 111, 89, .6); border-radius: 15px; pointer-events: none; }
.tape { position: absolute; z-index: 2; top: -17px; left: 50%; transform: translateX(-50%) rotate(-2deg); max-width: calc(100% - 30px);
  padding: .38em 1.3em .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 400 1.06rem/1.15 var(--display); color: var(--ink);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 7px, rgba(255, 255, 255, 0) 7px 14px), var(--coral);
  clip-path: polygon(0 10%, 3% 0, 97% 5%, 100% 0, 98.5% 50%, 100% 100%, 96% 92%, 3% 100%, 0 90%, 1.5% 50%);
  box-shadow: 0 2px 0 rgba(43, 33, 64, .2); }
.tape.t-l { left: 22px; transform: rotate(-2.5deg); }

/* ---------- Demo: drag, release, then steer the roll ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.steps { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 .9em 58px; min-height: 64px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; display: grid; place-items: center;
  font: 400 1.25rem/1 var(--display); background: var(--sun); border: 3px solid var(--ink); border-radius: 13px; box-shadow: 0 4px 0 var(--ink); }
.steps li:nth-child(2)::before { background: var(--sky); } .steps li:nth-child(3)::before { background: var(--mint); } .steps li:nth-child(4)::before { background: var(--coral); }
.steps b { font-family: var(--display); font-weight: 400; font-size: 1.12rem; }
.demo { margin: 0; padding: 30px 18px 18px; width: min(420px, 100%); justify-self: center; }
.demo-stage { position: relative; width: 100%; aspect-ratio: 360 / 470; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink);
  background: #F2E3D2; touch-action: none; -webkit-user-select: none; user-select: none; }
.demo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.demo-stage canvas:active { cursor: grabbing; }
.demo-msg { min-height: 3.1em; margin: 12px 4px 10px; text-align: center; font-weight: 800; color: var(--ink); }
.demo-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; }
.demo-keys .btn { min-width: 52px; }
.demo-score { position: absolute; z-index: 1; right: 10px; top: 10px; padding: .2em .7em .16em; font: 400 .95rem/1.2 var(--display); background: var(--cream);
  border: 2px solid var(--ink); border-radius: 10px; pointer-events: none; }
.demo-note { margin: 10px 0 0; text-align: center; font-size: .9rem; color: var(--ink-2); }

/* ---------- Worlds ---------- */
.grid { display: grid; gap: 34px 22px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.world { padding: 0; overflow: visible; }
.world .pic { position: relative; aspect-ratio: 16 / 9; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; border: 3px solid var(--ink); background: var(--wf, var(--sand)); }
.world .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world .num { position: absolute; z-index: 2; top: -14px; left: 16px; display: grid; place-items: center; width: 46px; height: 46px; transform: rotate(-6deg);
  font: 400 1.4rem/1 var(--display); background: var(--sun); border: 3px solid var(--ink); border-radius: 13px; box-shadow: 0 4px 0 var(--ink); }
.world .txt { padding: 16px 20px 20px; }
.world h3 { margin-bottom: .3em; }
.world p { margin: 0 0 .7em; color: var(--ink-2); }
.rival-chip { display: inline-flex; align-items: center; gap: 8px; padding: .2em .8em .18em .3em; border-radius: 999px; font-weight: 800; font-size: .92rem;
  background: rgba(255, 217, 194, .7); border: 2px solid rgba(43, 33, 64, .25); }
.rival-chip .ball { width: 24px; border-width: 2px; }
/* felt fallbacks, one per world (seen only while the world art is missing) */
.w-kitchen { --wf: repeating-linear-gradient(0deg, rgba(229, 56, 59, .5) 0 18px, rgba(0, 0, 0, 0) 18px 36px), repeating-linear-gradient(90deg, rgba(229, 56, 59, .5) 0 18px, rgba(0, 0, 0, 0) 18px 36px), #FFF3DD; }
.w-bathtub { --wf: linear-gradient(rgba(255, 255, 255, .9) 0 3px, rgba(0, 0, 0, 0) 3px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(255, 255, 255, .9) 0 3px, rgba(0, 0, 0, 0) 3px) 0 0 / 34px 34px, radial-gradient(circle at 30% 60%, #8FE3EC, #49C2D4); }
.w-train { --wf: repeating-linear-gradient(90deg, #8B5A3C 0 10px, #B07A50 10px 30px), #A0522D; }
.w-garden { --wf: radial-gradient(circle at 20% 30%, #9BC86A 0 8%, rgba(0, 0, 0, 0) 9%), radial-gradient(circle at 70% 60%, #9BC86A 0 10%, rgba(0, 0, 0, 0) 11%), radial-gradient(circle at 45% 85%, #6F4E37 0 12%, rgba(0, 0, 0, 0) 13%), #7FAE4E; }
.w-books { --wf: repeating-linear-gradient(90deg, #2C3E78 0 22px, #8E3B46 22px 38px, #E6B655 38px 46px, #3E6E5A 46px 70px, #24305E 70px 88px); }
.w-arcade { --wf: linear-gradient(rgba(255, 79, 216, .55) 0 2px, rgba(0, 0, 0, 0) 2px) 0 0 / 30px 30px, linear-gradient(90deg, rgba(90, 184, 240, .55) 0 2px, rgba(0, 0, 0, 0) 2px) 0 0 / 30px 30px, radial-gradient(circle at 50% 40%, #6B3FC4, #2A1658); }

/* ---------- Cast ---------- */
.lead-card { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; max-width: 880px; margin: 0 auto 44px; padding: 30px 30px 26px; }
.portrait { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--cream) 0 55%, rgba(255, 255, 255, 0) 56%),
  conic-gradient(var(--c1) 0 25%, var(--c2) 0 50%, var(--c1) 0 75%, var(--c2) 0); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.portrait .ball { position: absolute; inset: 22%; border-width: 3px; }
.portrait img { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: contain; }
.lead-card h3 { font-size: 2rem; margin-bottom: .2em; }
.meta { margin: 0 0 .8em; font-weight: 800; color: var(--ink-2); }
.cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 22px; grid-template-columns: repeat(3, 1fr); }
.cast .card { padding: 22px 18px 18px; text-align: center; }
.cast .portrait { width: min(150px, 70%); margin: 0 auto 14px; }
.cast h3 { margin-bottom: .15em; }
.cast .meta { font-size: .92rem; margin-bottom: .5em; }
.cast p { font-size: .98rem; margin: 0; color: var(--ink-2); }
.swatch { display: inline-flex; gap: 4px; vertical-align: -2px; margin-left: 4px; }
.swatch i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.cameo .tape { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 7px, rgba(255, 255, 255, 0) 7px 14px), var(--mint); }

/* ---------- Ways to play ---------- */
.modes { display: grid; gap: 36px 22px; grid-template-columns: repeat(6, 1fr); }
.modes .card { grid-column: span 2; padding-top: 30px; min-width: 0; }
.modes .card.wide { grid-column: span 3; }
.mode-ic { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; border: 3px solid var(--ink); border-radius: 16px;
  background: var(--mc, var(--sky)); box-shadow: 0 4px 0 var(--ink); transform: rotate(-4deg); }
.mode-ic .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.modes h3 { margin-bottom: .35em; }
.modes p { margin: 0 0 .7em; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: .16em .7em .14em; font-weight: 800; font-size: .86rem; border-radius: 999px; background: var(--peach); border: 2px solid rgba(43, 33, 64, .3); }
.code { display: flex; gap: 6px; margin: .2em 0 .9em; }
.code span { display: grid; place-items: center; width: 38px; height: 44px; font: 400 1.4rem/1 var(--display); background: var(--cream);
  border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.code span:nth-child(odd) { background: var(--sand); }

/* ---------- Cosmetics ---------- */
.tokens { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); margin-bottom: 26px; }
.token { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.token .disc { position: relative; flex: none; width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; background: var(--tc); }
.token .disc .ic { width: 32px; height: 32px; }
.token h3 { margin: 0 0 .1em; font-size: 1.2rem; }
.token p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.center { text-align: center; }

/* ---------- Free and fair ---------- */
.fair { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.fair li { padding: 20px 16px 18px; text-align: center; border-radius: 20px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.fair .no { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--ink); background: var(--mint); }
.fair .no .ic { width: 30px; height: 30px; }
.fair .no.x::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--coral-d); transform: rotate(-40deg); box-shadow: 0 0 0 2px var(--cream); }
.fair b { display: block; font: 400 1.15rem/1.2 var(--display); margin-bottom: .2em; }
.fair span { font-size: .95rem; color: var(--ink-2); line-height: 1.4; display: block; }

/* ---------- Studio + more games ---------- */
.studio-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; max-width: 900px; margin: 0 auto 56px; padding: 34px 30px 28px; }
.studio-logo { position: relative; width: 150px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; background: #fff; border: 3px solid var(--ink); overflow: hidden; }
.studio-logo img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.studio-logo .wd { font: 400 2.6rem/1 var(--display); color: var(--coral); }
.studio-card h3 { font-size: 1.6rem; }
.studio-links { display: flex; flex-wrap: wrap; gap: 12px; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.mg { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: var(--cream); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .08s; }
.mg:hover { color: var(--ink); background: #FFFDF8; transform: translateY(-2px); }
.mg:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.mg-ic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); background: var(--sand); display: grid; place-items: center; }
.mg-ic::before { content: attr(data-l); font: 400 1.5rem/1 var(--display); color: var(--ink); opacity: .55; }
.mg-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg b { display: block; font-weight: 800; line-height: 1.2; }
.mg small { display: block; color: var(--ink-2); font-size: .88rem; }
.mg.new { background: #FFF1D0; }
.mg.new small::after { content: "New"; margin-left: 6px; padding: 0 .5em; border-radius: 6px; font: 400 .74rem/1.5 var(--display); color: var(--ink); background: var(--sun); }

/* ---------- Footer ---------- */
.foot { position: relative; padding: 44px 0 36px; color: var(--cream); background: var(--ink); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 2px dashed rgba(255, 217, 194, .35); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--peach); font-weight: 800; }
.foot a:hover { color: var(--sun); }
.foot p { margin: 0; color: rgba(255, 246, 234, .78); font-size: .95rem; }

/* ---------- Simple pages (privacy, support, 404, join) ---------- */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.doc { max-width: 820px; margin: 0 auto; padding: 44px clamp(22px, 5vw, 48px) 34px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: .3em; }
.doc h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .eff { color: var(--ink-2); font-weight: 800; }
.faq details { margin: 0 0 12px; border: 2px solid var(--ink); border-radius: 16px; background: #FFFCF6; box-shadow: 0 3px 0 var(--ink); }
.faq summary { cursor: pointer; padding: 14px 18px; font: 400 1.12rem/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sun); border: 2px solid var(--ink); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--mint); }
.faq details > div { padding: 0 18px 8px; }

.join { max-width: 560px; margin: 0 auto; text-align: center; padding: 44px clamp(18px, 5vw, 40px) 30px; }
.join h1 { font-size: clamp(2rem, 6vw, 2.7rem); margin-bottom: .25em; }
.join .portrait { width: 120px; margin: 0 auto 16px; }
.join-code { display: flex; justify-content: center; gap: clamp(5px, 1.6vw, 10px); margin: 10px 0 8px; }
.join-code span { display: grid; place-items: center; width: clamp(42px, 12vw, 64px); height: clamp(52px, 15vw, 78px); font: 400 clamp(1.8rem, 8vw, 2.9rem)/1 var(--display);
  background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink); }
.join-code span:nth-child(3n+1) { background: var(--sand); } .join-code span:nth-child(3n+2) { background: #FFE6B0; }
.join .label { margin: 0 0 4px; font-weight: 800; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; font-size: .86rem; }
.join-actions { display: grid; gap: 14px; margin: 24px auto 10px; max-width: 360px; }
.join-actions .btn { width: 100%; }
.join .hint { font-size: .92rem; color: var(--ink-2); margin: 6px 0 0; }
.join form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.join input { width: 12ch; min-height: 52px; padding: 0 14px; font: 400 1.5rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; text-align: center;
  color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .logo { transform: rotate(-2deg); transform-origin: center; }
  .lead { margin-inline: auto; }
  .cta, .chips { justify-content: center; }
  .modes { grid-template-columns: 1fr 1fr; }
  .modes .card, .modes .card.wide { grid-column: span 1; }
  .modes .card.full { grid-column: 1 / -1; }
  .cast, .fair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .code span { width: 34px; height: 40px; font-size: 1.2rem; }
  .cast .card { padding-inline: 12px; }
  .lead-card, .studio-card { grid-template-columns: 1fr; text-align: center; }
  .lead-card .portrait { width: 190px; margin: 0 auto; }
  .studio-logo { margin: 0 auto; width: 120px; }
  .studio-links { justify-content: center; }
  .hero-art .sticker { left: -6px; }
  .foot-in { flex-direction: column; text-align: center; }
  .foot nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .btn::before, .btn::after, .mg { transition: none; } }
