/* Gummy Screws 3D site. The frame (colours, type, nav, language menu, cards, marquee, dark panel, footer)
   follows scintlabs.com; the hero, buttons and gummy bits are the game's own candy palette. */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: 'Bricolage Grotesque Variable'; src: url('../fonts/bricolage-grotesque-latin-wght.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Space Grotesk Variable'; src: url('../fonts/space-grotesk-latin-wght.woff2') format('woff2-variations'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Lilita One'; src: url('../fonts/lilita-one-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122; }
/* Cyrillic: none of the three has it, so Russian falls back to Nunito (the game's text font), self-hosted too.
   "Lilita One" Cyrillic glyphs come from Nunito Black, the closest rounded heavy face. */
@font-face { font-family: 'Lilita One'; src: url('../fonts/nunito-900-cyrillic.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito Cyrillic'; src: url('../fonts/nunito-400-cyrillic.woff2') format('woff2'); font-weight: 300 500; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito Cyrillic'; src: url('../fonts/nunito-700-cyrillic.woff2') format('woff2'); font-weight: 600 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito Cyrillic'; src: url('../fonts/nunito-900-cyrillic.woff2') format('woff2'); font-weight: 800 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* scintlabs.com */
  --bg: #fbf8f3;
  --paper: #ffffff;
  --ink: #121019;
  --muted: #5d5a68;
  --line: rgba(18, 16, 25, 0.1);
  --pink: #ff2e88;
  --violet: #7b3bff;
  --cyan: #00c2ff;
  --lime: #c8ff2e;
  --yellow: #ffd21f;
  --orange: #ff7a1a;
  --spring: cubic-bezier(0.2, 1.5, 0.35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --cjk: ;
  --display: 'Bricolage Grotesque Variable', 'Nunito Cyrillic', var(--cjk) 'Arial Black', system-ui, sans-serif;
  --body: 'Space Grotesk Variable', 'Nunito Cyrillic', var(--cjk) system-ui, sans-serif;
  --game: 'Lilita One', var(--cjk) 'Arial Rounded MT Bold', system-ui, sans-serif;
  /* the game (src/ui/theme.ts) */
  --navy: #1e3a5f;
  --sky-top: #6fc0ff;
  --sky-mid: #a8dbff;
  --sky-low: #e2f4ff;
  --green-t: #9df06e; --green-b: #1f9a28; --green-e: #135e1a;
  --blue-t: #a6ebff; --blue-b: #2c8bea; --blue-e: #134a8a;
  --coral-t: #ff9a7a; --coral-b: #e2453a; --coral-e: #8a1e1a;
  --violet-t: #d9b8ff; --violet-b: #8b52e8; --violet-e: #4a22a8;
  --orange-t: #ffe08a; --orange-b: #ff9a2e; --orange-e: #b4520e;
  color-scheme: light;
}

/* Chinese, Japanese, Korean: no webfont, good system fonts (as on scintlabs.com). */
:lang(zh) { --cjk: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', ; }
:lang(ja) { --cjk: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans CJK JP', 'Noto Sans JP', ; }
:lang(ko) { --cjk: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', 'Noto Sans KR', ; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
p, li, td { overflow-wrap: break-word; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; 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(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
code { font-size: .88em; background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- top bar (scintlabs.com .nav) ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.brand b { font-weight: 800; }
.brand img { flex: none; width: 36px; height: 36px; border-radius: 11px; transition: transform .45s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-space { margin-left: auto; }
.nav-links a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 1080px) { .nav-links { display: none; } .nav-space, .lang { margin-left: auto; } }
/* "Scint Labs" back to the studio: the mark, plus the word when there is room */
.studio { display: flex; align-items: center; gap: 4px; flex: none; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.03em; transition: background .2s, color .2s; }
.studio b { font-weight: 800; }
.studio .mark { width: 30px; height: 30px; margin-top: -4px; overflow: visible; }
.studio:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 560px) { .studio-word { display: none; } .studio { padding: 4px; } .top { gap: 10px; } }
@media (max-width: 380px) { .brand { font-size: 1.04rem; gap: 7px; } .brand img { width: 32px; height: 32px; } .lang-btn > svg:first-child { display: none; } .lang-btn { padding: 7px 10px; } }

/* Language menu: a pill opening a paper panel with a rainbow edge (scintlabs.com LangMenu). */
.lang { position: relative; flex: none; }
.lang-btn { display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .82rem; font-weight: 700; letter-spacing: .04em; transition: background .2s, color .2s, border-color .2s; }
.lang-btn:hover { border-color: var(--ink); }
.lang.is-open .lang-btn { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lang-chevron { transition: transform .35s var(--spring); }
.lang.is-open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 220px; max-height: calc(100vh - 90px); overflow-y: auto;
  margin: 0; padding: 10px 8px 8px; list-style: none; border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 28px 60px -24px rgba(18, 16, 25, .35), 0 10px 24px -12px rgba(123, 59, 255, .25);
  transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.94);
  transition: opacity .15s ease, transform .3s ease, visibility 0s .3s;
}
.lang-menu::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--lime), var(--cyan), var(--violet)); }
.lang.is-open .lang-menu, html:not(.js) .lang:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .4s var(--spring); }
.lang.is-open .lang-menu li { animation: lang-item .4s var(--spring) both; animation-delay: calc(var(--i) * 24ms + 40ms); }
@keyframes lang-item { from { opacity: 0; transform: translateX(10px); } }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.lang-tag { padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; font-family: 'Space Grotesk Variable', system-ui, sans-serif; }
.lang-menu a:hover .lang-tag, .lang-menu a:focus-visible .lang-tag { background: rgba(251, 248, 243, .14); color: var(--bg); }
.lang-menu a[aria-current='page'] .lang-tag { background: var(--lime); color: var(--ink); }
.lang-menu a[aria-current='page'] { font-weight: 800; }

/* ---------- gummy buttons (the game's GummyButton skins) ---------- */
.btn {
  --t: var(--orange-t); --b: var(--orange-b); --e: var(--orange-e);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 24px 14px; border: 0; border-radius: 22px; cursor: pointer;
  font: 400 1.22rem/1.1 var(--game); letter-spacing: .02em; text-decoration: none; color: #fff; text-align: center;
  background: linear-gradient(var(--t), var(--b) 70%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 6px 0 var(--e), 0 14px 22px -10px rgba(18, 16, 25, .45);
  text-shadow: 0 2px 0 var(--e), 0 0 2px var(--e);
  transition: transform .35s var(--spring), box-shadow .18s, filter .2s; -webkit-tap-highlight-color: transparent;
}
.btn::before { content: ''; position: absolute; left: 14px; right: 30%; top: 6px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .5); pointer-events: none; }
.btn::after { content: ''; position: absolute; right: 16px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.btn:hover { transform: translateY(-3px) rotate(-2deg); filter: saturate(1.1) brightness(1.04); color: #fff; }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 2px 0 var(--e), 0 6px 12px -8px rgba(18, 16, 25, .5); }
.btn-green { --t: var(--green-t); --b: var(--green-b); --e: var(--green-e); }
.btn-blue { --t: var(--blue-t); --b: var(--blue-b); --e: var(--blue-e); }
.btn svg { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 2px 0 var(--e)); }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.btn small { display: block; font: 700 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-shadow: none; opacity: .9; }
.store { --t: #3a3546; --b: var(--ink); --e: #000; padding-top: 15px; text-shadow: none; }
.store::before { height: 5px; top: 5px; opacity: .35; }
.store svg { color: var(--lime); filter: none; }
.store:hover { color: #fff; }

/* scintlabs.com pill buttons (for plain links) */
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; text-decoration: none; transition: transform .35s var(--spring), background .2s, color .2s; }
.pill-btn:hover { background: var(--lime); transform: translateY(-2px) rotate(2deg); }

/* ---------- hero: the game's sky ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px var(--gutter) 110px;
  background: radial-gradient(120% 70% at 50% 110%, #fff 0, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 100%);
}
.hero-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { display: contents; }
.hero .kicker { order: 1; } .logo-game { order: 2; } .bear-stage { order: 3; } .tagline { order: 4; } .lead { order: 5; } .ctas { order: 6; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; letter-spacing: .02em; animation: fade-up .7s ease both; }
.spark-cluster { position: relative; display: inline-block; width: 26px; height: 20px; flex: none; }
.spark-cluster svg { position: absolute; animation: cluster-twinkle 2.2s ease-in-out infinite; }
.spark-cluster .c1 { left: 0; top: 4px; } .spark-cluster .c2 { left: 14px; top: -1px; animation-delay: -.55s; } .spark-cluster .c3 { left: 17px; top: 12px; animation-delay: -1.1s; } .spark-cluster .c4 { left: 6px; top: -4px; animation-delay: -1.65s; }
@keyframes cluster-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.65) rotate(45deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.logo-game { margin: 0 0 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'Lilita One', 'Arial Rounded MT Bold', sans-serif; font-weight: 400; }
.wm { display: block; font-size: clamp(2.9rem, 12.6vw, 6.4rem); line-height: .92; white-space: nowrap; letter-spacing: .005em; }
.wm .ch {
  display: inline-block; background: linear-gradient(180deg, #fff07a 0%, #ffd23a 38%, #ffaa1e 78%, #ff8a1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .06em 0 #8b3e12) drop-shadow(0 .1em .08em rgba(30, 58, 95, .25));
  animation: rise .9s var(--spring) both, jelly-letter 5s cubic-bezier(.34, 1.56, .64, 1) infinite;
  animation-delay: calc(var(--i, 0) * 38ms + 120ms), calc(var(--i, 0) * 70ms + 1.6s);
  transform-origin: 50% 90%;
}
.wm .sp { display: inline-block; width: .28em; }
@keyframes rise { from { opacity: 0; transform: translateY(.7em) rotate(12deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes jelly-letter { 0%, 14%, 100% { transform: none; } 4% { transform: translateY(-.14em) scale(.94, 1.1); } 8% { transform: scale(1.1, .9); } 11% { transform: scale(.97, 1.03); } }
.badge3d { display: inline-block; font-size: clamp(1.9rem, 8vw, 2.9rem); line-height: 1; color: #fff; padding: .14em .62em .18em; border-radius: 999px; background: linear-gradient(#5db4ff, #1f78e0); border: .1em solid #fff; box-shadow: 0 5px 0 #134a8a, 0 12px 20px -8px rgba(19, 74, 138, .6); text-shadow: 0 3px 0 #134a8a; animation: badge 3.2s ease-in-out infinite; }
@keyframes badge { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(3deg) scale(1.06); } }
.tagline { font-family: var(--game); font-size: clamp(1.25rem, 5vw, 1.8rem); line-height: 1.2; color: var(--ink); margin: 6px 0 8px; }
.lead { font-size: 1.06rem; max-width: 34em; margin: 0 auto 22px; color: #253047; font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 18px 14px; justify-content: center; }

.bear-stage { position: relative; width: min(58vw, 250px); margin: 4px auto 6px; aspect-ratio: 26 / 31; }
.bear-btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; border-radius: 40%; -webkit-tap-highlight-color: transparent; }
.bear-btn:focus-visible { outline: 3px dashed var(--violet); outline-offset: 6px; }
.bear-shadow { position: absolute; left: 22%; right: 22%; bottom: 0; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 58, 95, .35), rgba(30, 58, 95, 0)); animation: shadow 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.bear-hop { position: absolute; inset: 0 0 3% 0; transform-origin: 50% 100%; animation: hop 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.bear-squish { width: 100%; height: 100%; transform-origin: 50% 100%; }
.bear-squish.boing { animation: boing .8s cubic-bezier(.3, 1.6, .5, 1); }
.bear { width: 100%; height: 100%; overflow: visible; }
.bear .head { transform-box: view-box; transform-origin: 130px 175px; animation: wobble 3.4s ease-in-out infinite; }
.bear .arm-r { transform-box: view-box; transform-origin: 192px 194px; animation: wave 1.3s ease-in-out infinite alternate; }
.bear .arm-l { transform-box: view-box; transform-origin: 76px 184px; animation: wave-l 2.6s ease-in-out infinite alternate; }
.bear .look { transition: transform .25s ease-out; transform: translate(var(--ex, 0px), var(--ey, 0px)); }
.bear .eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.6s infinite; }
@keyframes hop { 0% { transform: translateY(0) scale(1.08, .92); } 12% { transform: translateY(-3%) scale(.94, 1.07); } 40% { transform: translateY(-11%) scale(.99, 1.02); } 62% { transform: translateY(0) scale(1.12, .88); } 72% { transform: scale(.96, 1.05); } 84% { transform: scale(1.03, .97); } 100% { transform: translateY(0) scale(1.08, .92); } }
@keyframes shadow { 0%, 62%, 100% { transform: scale(1); opacity: 1; } 40% { transform: scale(.68); opacity: .55; } }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes wave { from { transform: rotate(6deg); } to { transform: rotate(-22deg); } }
@keyframes wave-l { from { transform: rotate(4deg); } to { transform: rotate(-6deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes boing { 0% { transform: scale(1); } 20% { transform: scale(1.22, .78); } 40% { transform: scale(.86, 1.16); } 60% { transform: scale(1.08, .93); } 80% { transform: scale(.97, 1.03); } 100% { transform: scale(1); } }
.bear-hint { position: absolute; right: -4%; top: 8%; z-index: 3; pointer-events: none; font: 400 .95rem/1.1 var(--game); color: var(--ink); background: #fff; padding: 8px 12px; border-radius: 16px 16px 16px 4px; box-shadow: 0 4px 0 rgba(18, 16, 25, .12); animation: hint 2.6s ease-in-out infinite; white-space: nowrap; }
@keyframes hint { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
.burst { position: absolute; width: 34px; height: 34px; left: 50%; top: 45%; margin: -17px; pointer-events: none; z-index: 4; }

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); width: var(--s, 40px); height: var(--s, 40px); color: var(--c); transform: translate3d(calc(var(--px, 0) * var(--d, 1) * 1px), calc(var(--py, 0) * var(--d, 1) * 1px), 0); transition: transform .4s ease-out; }
.fl > svg { width: 100%; height: 100%; animation: drift var(--t, 7s) ease-in-out var(--dl, 0s) infinite alternate; }
.fl.spin > svg { animation: drift var(--t, 7s) ease-in-out var(--dl, 0s) infinite alternate, spin calc(var(--t, 7s) * 2.5) linear infinite; }
.fl.spark > svg { animation: twinkle var(--t, 2.6s) ease-in-out var(--dl, 0s) infinite; }
@keyframes drift { from { translate: 0 0; rotate: -12deg; } to { translate: 0 -26px; rotate: 16deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 45%, 55% { transform: scale(1) rotate(90deg); opacity: 1; } }
@media (max-width: 959px) { .fl.wide { display: none; } }
.cloud { position: absolute; z-index: 0; width: var(--w, 220px); color: #fff; opacity: .95; top: var(--y); left: 0; animation: cloud var(--t, 80s) linear var(--dl, 0s) infinite; filter: drop-shadow(0 10px 0 rgba(160, 200, 235, .45)); }
@keyframes cloud { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: 80px; color: var(--bg); }

@media (min-width: 960px) {
  .hero { padding: 64px var(--gutter) 140px; min-height: min(88vh, 900px); display: flex; align-items: center; }
  .hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; text-align: left; width: 100%; }
  .hero-copy { display: block; }
  .logo-game { display: inline-flex; align-items: center; }
  .lead { margin-left: 0; }
  .ctas { justify-content: flex-start; }
  .bear-stage { width: min(100%, 460px); margin: 0 auto; }
}

/* ---------- marquee (scintlabs.com) ---------- */
.marquee { overflow: hidden; background: var(--violet); color: var(--lime); rotate: -2deg; margin: -10px -2vw 0; padding: 14px 0; box-shadow: 0 10px 0 var(--ink); position: relative; z-index: 4; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.marquee-item:nth-child(even) { color: var(--bg); font-weight: 300; }
.marquee-item svg { width: .7em; height: .7em; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; margin-bottom: 36px; }
.section-title { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 6.4vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; max-width: 20ch; }
.section-sub { margin: 0; max-width: 36em; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s var(--spring); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* bouncy letters for section titles (site.js splits them, as scintlabs.com does) */
.bouncy-word { display: inline-block; white-space: nowrap; }
.bouncy-letter { display: inline-block; animation: rise .9s var(--spring) both; animation-delay: calc(var(--i) * 38ms + 120ms); }
.bouncy-glyph { display: inline-block; transition: transform .45s var(--spring); }
.bouncy-letter:hover .bouncy-glyph { transform: translateY(-.16em) rotate(-6deg) scale(.92, 1.1); color: var(--pink); }
.js [data-reveal]:not(.in) .bouncy-letter { animation: none; opacity: 0; }

/* cards (scintlabs.com .card) */
.card { position: relative; background: var(--paper); border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--spring), box-shadow .4s ease, opacity .7s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c1, #ff2e88) 60%, transparent), 0 14px 30px -18px color-mix(in srgb, var(--c2, #00c2ff) 60%, transparent); }
.js .card[data-reveal].in:hover { transform: translateY(-8px); }
.card h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 26px 0 0; margin: 0; display: grid; gap: 34px 22px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 30px 24px 24px; --c1: var(--orange); }
.step:nth-child(2) { --c1: var(--cyan); } .step:nth-child(3) { --c1: #2bc96b; }
.step-num { position: absolute; top: -26px; left: 22px; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font: 400 1.7rem/1 var(--game); color: #fff; text-shadow: 0 2px 0 var(--e); background: linear-gradient(var(--t), var(--b) 70%); box-shadow: 0 5px 0 var(--e); }
.step-num::before { content: ''; position: absolute; left: 9px; right: 22px; top: 5px; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .55); }
.step:nth-child(1) .step-num { --t: var(--orange-t); --b: var(--orange-b); --e: var(--orange-e); }
.step:nth-child(2) .step-num { --t: var(--blue-t); --b: var(--blue-b); --e: var(--blue-e); }
.step:nth-child(3) .step-num { --t: var(--green-t); --b: var(--green-b); --e: var(--green-e); }
.step h3 { margin-top: 8px; }

/* ---------- mini game ---------- */
.demo { margin-top: 30px; padding: 26px 16px 26px; text-align: center; overflow: hidden; --c1: var(--pink); --c2: var(--yellow); }
@media (min-width: 720px) { .demo { padding: 34px; } }
.demo .demo-note { margin: 0 auto 18px; max-width: 34em; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
@media (min-width: 860px) { .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.board {
  position: relative; width: min(100%, 330px); aspect-ratio: 33 / 22; border-radius: 36px; padding: 16px;
  background: radial-gradient(90% 80% at 35% 25%, #ffc6db 0, #ff7aa8 55%, #d64c86 100%);
  box-shadow: inset 0 -10px 18px rgba(150, 30, 80, .35), inset 0 8px 14px rgba(255, 255, 255, .6), 0 10px 0 #a8346a, 0 22px 30px -14px rgba(120, 20, 60, .55);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center;
}
.board::before { content: ''; position: absolute; left: 12%; top: 7%; width: 34%; height: 11%; border-radius: 99px; background: rgba(255, 255, 255, .65); transform: rotate(-6deg); }
.board.cleared { animation: board-pop .9s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes board-pop { 0% { transform: scale(1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.7) rotate(8deg); opacity: .8; } 100% { transform: scale(0) rotate(-20deg); opacity: 0; } }
.hole { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #7a1f48 0 40%, rgba(122, 31, 72, .5) 41%, rgba(122, 31, 72, 0) 70%); display: grid; place-items: center; position: relative; z-index: 1; }
.scr { all: unset; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; transition: transform .2s cubic-bezier(.34, 1.8, .5, 1); -webkit-tap-highlight-color: transparent; }
.scr svg { width: 100%; height: 100%; }
.scr:hover { transform: scale(1.15) rotate(20deg); }
.scr:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.scr.wiggle { animation: wiggle .4s; }
@keyframes wiggle { 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
.dock { width: min(100%, 360px); display: grid; gap: 14px; }
.tray-wrap, .boxes-wrap { display: grid; gap: 6px; justify-items: center; }
.dock-label { font: 700 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tray { display: flex; gap: 10px; padding: 8px 12px; border-radius: 999px; background: #e9eef6; box-shadow: inset 0 3px 6px rgba(30, 58, 95, .18); }
.slot { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #c7d3e2, #9fb0c6); box-shadow: inset 0 3px 4px rgba(30, 58, 95, .35), 0 2px 0 #fff; display: grid; place-items: center; }
.slot svg { width: 36px; height: 36px; }
.tray.danger { animation: danger .5s; }
@keyframes danger { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.boxes { display: flex; gap: 8px; align-items: flex-end; min-height: 70px; }
.box { --bc: var(--pink); position: relative; display: flex; gap: 4px; padding: 8px 8px 10px; border-radius: 14px; background: linear-gradient(color-mix(in srgb, var(--bc) 70%, #fff), var(--bc)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15), 0 5px 0 color-mix(in srgb, var(--bc) 60%, #000), 0 10px 16px -8px rgba(18, 16, 25, .45); transition: opacity .35s; }
.box.next { opacity: .6; filter: saturate(.7); padding: 6px 6px 8px; }
.box.done { animation: box-done .7s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes box-done { 0% { transform: scale(1); } 30% { transform: scale(1.15, .85) translateY(4px); } 60% { transform: scale(.95, 1.1) translateY(-18px); } 100% { transform: translateY(-80px) scale(.4); opacity: 0; } }
.box.arrive { animation: box-arrive .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes box-arrive { from { transform: translateX(60px) scale(.6); opacity: 0; } }
.bhole { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .18); box-shadow: inset 0 3px 4px rgba(0, 0, 0, .25); display: grid; place-items: center; transition: width .35s, height .35s; }
.box.next .bhole { width: 20px; height: 20px; }
.bhole svg { width: 90%; height: 90%; }
.demo-status { min-height: 1.6em; margin: 8px 0 0; font: 400 1.2rem/1.3 var(--game); color: var(--ink); }
.demo-end { display: none; flex-direction: column; align-items: center; gap: 12px; }
.demo.won .demo-end { display: flex; }
.demo.won .demo-grid, .demo.won .demo-note { display: none; }
.stars { display: flex; gap: 6px; }
.stars svg { width: 44px; height: 44px; color: var(--yellow); filter: drop-shadow(0 3px 0 #d49500); animation: star-in .6s cubic-bezier(.3, 1.8, .5, 1) backwards; }
.stars svg:nth-child(2) { animation-delay: .15s; width: 56px; height: 56px; margin-top: -10px; }
.stars svg:nth-child(3) { animation-delay: .3s; }
@keyframes star-in { from { transform: scale(0) rotate(-90deg); } }
.flyer { position: fixed; left: 0; top: 0; width: 44px; height: 44px; z-index: 60; pointer-events: none; }

/* ---------- worlds: the dark lab panel of scintlabs.com ---------- */
.worlds-wrap { padding: clamp(72px, 10vw, 120px) var(--gutter) 0; }
.worlds { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(20px, 6vw, 80px); border-radius: 36px; background: var(--ink); color: var(--bg); overflow: hidden; }
.worlds::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: conic-gradient(from 90deg, var(--pink), var(--violet), var(--cyan), var(--lime), var(--pink)); filter: blur(60px); opacity: .55; animation: spin-r 16s linear infinite; pointer-events: none; }
@keyframes spin-r { to { transform: rotate(360deg); } }
.worlds > * { position: relative; z-index: 1; }
.worlds .section-sub { color: rgba(251, 248, 243, .75); }
.worlds .bouncy-letter:hover .bouncy-glyph { color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0 0 28px; padding-top: 28px; border-top: 1px solid rgba(251, 248, 243, .15); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; perspective: 500px; }
.stats dt { margin-top: 6px; color: rgba(251, 248, 243, .75); font-weight: 500; }
.stats div:nth-child(1) dd { color: var(--lime); } .stats div:nth-child(2) dd { color: var(--cyan); } .stats div:nth-child(3) dd { color: var(--pink); } .stats div:nth-child(4) dd { color: var(--yellow); }
.spin-num { display: inline-block; animation: num-sway 5s ease-in-out infinite; animation-delay: var(--sway-delay); font-variant-numeric: tabular-nums; }
@keyframes num-sway { 0%, 100% { transform: rotate3d(1, 1, 0, 0deg); } 25% { transform: rotate3d(1, 1, 0, 12deg); } 75% { transform: rotate3d(1, -1, 0, -12deg); } }
.map { max-width: 900px; margin: 0 auto 24px; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .node { transform-box: fill-box; transform-origin: 50% 50%; animation: node 3s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes node { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chips-marquee { overflow: hidden; padding: 6px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chips-marquee .track { display: flex; gap: 10px; width: max-content; animation: chips var(--t, 50s) linear infinite; }
.chips-marquee.rev .track { animation-direction: reverse; }
.chips-marquee:hover .track { animation-play-state: paused; }
@keyframes chips { to { transform: translateX(calc(-50% - 5px)); } }
.set { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 9px; border-radius: 999px; white-space: nowrap; background: rgba(251, 248, 243, .08); border: 1px solid rgba(251, 248, 243, .16); color: var(--bg); font-weight: 600; }
.chip i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000) 100%); flex: none; }
.chip.hl { border-color: var(--lime); }

/* ---------- features ---------- */
.features { display: grid; gap: clamp(18px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.feature { padding: 24px; --c1: var(--orange); --c2: var(--yellow); }
.feature:nth-child(2) { --c1: var(--cyan); --c2: var(--violet); } .feature:nth-child(3) { --c1: #2bc96b; --c2: var(--lime); }
.feature:nth-child(4) { --c1: var(--violet); --c2: var(--pink); } .feature:nth-child(5) { --c1: var(--pink); --c2: var(--orange); }
.feature:hover .icon { animation: boing .8s cubic-bezier(.3, 1.6, .5, 1); }
.feature h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.icon { --t: var(--orange-t); --b: var(--orange-b); --e: var(--orange-e); position: relative; width: 60px; height: 60px; border-radius: 19px; margin-bottom: 16px; display: grid; place-items: center; background: linear-gradient(var(--t), var(--b) 72%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 5px 0 var(--e); }
.icon::before { content: ''; position: absolute; left: 9px; right: 22px; top: 6px; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .55); }
.icon svg { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 2px 0 var(--e)); position: relative; }
.icon.blue { --t: var(--blue-t); --b: var(--blue-b); --e: var(--blue-e); }
.icon.violet { --t: var(--violet-t); --b: var(--violet-b); --e: var(--violet-e); }
.icon.coral { --t: var(--coral-t); --b: var(--coral-b); --e: var(--coral-e); }
.icon.green { --t: var(--green-t); --b: var(--green-b); --e: var(--green-e); }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 .74rem/1.2 var(--body); letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--bg); font-size: .82rem; font-weight: 600; }

/* ---------- screenshots ---------- */
.shots-nav { display: none; gap: 10px; }
@media (min-width: 720px) { .shots-nav { display: flex; } }
.round { all: unset; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--ink); background: var(--paper); transition: transform .35s var(--spring), background .2s; }
.round:hover { background: var(--lime); transform: translateY(-2px) rotate(-4deg); }
.round:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.round svg { width: 22px; height: 22px; }
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px var(--gutter) 34px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.shots:focus-visible { outline-offset: -4px; }
.shot { flex: 0 0 auto; width: min(62vw, 240px); scroll-snap-align: center; margin: 0; }
.phone { position: relative; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #3a3546, var(--ink)); box-shadow: 0 24px 40px -20px rgba(18, 16, 25, .6); transition: transform .5s var(--spring); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--sky-mid); }
.shot:nth-child(odd) .phone { transform: rotate(-2deg); }
.shot:nth-child(even) .phone { transform: rotate(2deg) translateY(10px); }
.shot:hover .phone { transform: translateY(-10px) rotate(0) scale(1.03); }

/* ---------- trailer ---------- */
.video-frame { position: relative; margin: 0 auto; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 90% at 50% 30%, #e2f4ff, #8ccbff 70%, #5da9e8); box-shadow: 0 0 0 4px var(--violet), 0 0 80px -10px var(--pink); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) { .video-frame { width: 100%; aspect-ratio: 16 / 9; } }
.vbtn { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; transition: transform .35s var(--spring); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.vbtn:hover { transform: scale(1.1); }
.vbtn svg { width: 22px; height: 22px; }
.vbtn .i-play { display: none; margin-left: 3px; }
.vbtn.paused .i-play { display: block; }
.vbtn.paused .i-pause { display: none; }

/* ---------- closing call (scintlabs.com contact) ---------- */
.cta { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta .section-title { max-width: 18ch; }
.cta p { margin: 16px 0 26px; color: var(--muted); font-size: 1.1rem; max-width: 32em; }
.cta-bear { width: 120px; height: 120px; margin-bottom: 18px; border-radius: 32px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 24px 40px -14px rgba(0, 0, 0, .4); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

/* ---------- footer (scintlabs.com) ---------- */
.footer { padding: 0 var(--gutter) 32px; overflow: hidden; color: var(--muted); font-size: .92rem; }
.footer-word {
  text-align: center; font-family: var(--game); font-size: clamp(3rem, 11.5vw, 11rem); line-height: .9; white-space: nowrap; letter-spacing: -.01em;
  -webkit-text-fill-color: transparent; user-select: none;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--lime), var(--cyan), var(--violet), var(--pink)) 0 100% / 200% 0% no-repeat, linear-gradient(#ebe4d8, #ebe4d8);
  -webkit-background-clip: text; background-clip: text; transition: background-size .7s cubic-bezier(.2, .8, .2, 1); animation: slide 6s linear infinite;
}
.footer-word:hover { background-size: 200% 100%, auto; }
@keyframes slide { to { background-position: 200% 100%, 0 0; } }
.footer { border-top: 1px solid var(--line); padding-top: 40px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr 1.6fr; align-items: start; } }
.foot-langs { display: flex !important; flex-wrap: wrap; gap: 6px 14px !important; }
.footer a[aria-current] { font-weight: 700; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink); text-decoration-color: rgba(18, 16, 25, .25); text-underline-offset: 3px; }
.footer a:hover { text-decoration-color: var(--pink); }
.foot-h { font: 700 .78rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.byline { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.byline small { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.logo b { font-weight: 800; }
.logo .mark { margin-top: -6px; overflow: visible; }
.fine { max-width: var(--max); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.fine .tm { flex-basis: 100%; }
.mark-bubble { opacity: 0; animation: bubble 2.6s ease-in infinite; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: .8; } 100% { transform: translateY(-11px); opacity: 0; } }
.mark-fizz, .mark-fizz-star, .mark-fizz-ring { animation-duration: 3.5s; animation-iteration-count: infinite; animation-delay: var(--delay); }
.mark-fizz { transform: translate(32px, 24px); animation-name: fizz-rise; animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
@keyframes fizz-rise { 0% { transform: translate(32px, 24px); } 40%, 100% { transform: translate(calc(32px + var(--dx)), var(--dy)); } }
.mark-fizz-star, .mark-fizz-ring { transform-box: fill-box; transform-origin: center; }
.mark-fizz-star { opacity: 0; animation-name: fizz-star; animation-timing-function: ease-out; }
@keyframes fizz-star { 0% { transform: scale(.2) rotate(0); opacity: 0; } 8% { opacity: 1; } 38% { transform: scale(1) rotate(90deg); opacity: 1; } 44% { transform: scale(1.6) rotate(110deg); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }
.mark-fizz-ring { opacity: 0; animation-name: fizz-ring; animation-timing-function: ease-out; }
@keyframes fizz-ring { 0%, 38% { transform: scale(.2); opacity: 0; } 40% { opacity: 1; } 56% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(.2); opacity: 0; } }
.mark-liquid { animation: slosh 2.4s linear infinite; }
@keyframes slosh { to { transform: translateX(20px); } }

/* ---------- privacy, delete account ---------- */
.doc-hero { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 9vw, 110px) var(--gutter) 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.doc-hero .section-title { max-width: 18ch; }
.doc-hero p { margin: 18px auto 0; max-width: 34em; color: var(--muted); font-size: 1.1rem; }
.mini-bear { width: 92px; margin: 0 auto 14px; animation: hop 2.6s cubic-bezier(.45, 0, .55, 1) infinite; transform-origin: 50% 100%; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; animation: blob 18s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { width: 34vw; height: 34vw; max-width: 420px; max-height: 420px; right: 4%; top: 0; background: var(--pink); }
.blobs span:nth-child(2) { width: 28vw; height: 28vw; max-width: 360px; max-height: 360px; left: 6%; bottom: 0; background: var(--cyan); animation-duration: 22s; animation-delay: -6s; }
.blobs span:nth-child(3) { width: 20vw; height: 20vw; max-width: 260px; max-height: 260px; left: 40%; top: 10%; background: var(--lime); animation-duration: 26s; animation-delay: -12s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vw, 4vh) scale(1.15); } 100% { transform: translate(3vw, -5vh) scale(.92); } }
.doc { max-width: 880px; margin: 0 auto; padding: 10px var(--gutter) clamp(60px, 9vw, 110px); }
.doc-card { padding: clamp(22px, 4vw, 44px); }
.doc-card:hover { transform: none; box-shadow: 0 1px 0 var(--line); }
.doc-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; margin: 1.6em 0 .5em; }
.doc-card p, .doc-card li { color: #34313d; }
.doc-card ul, .doc-card ol { padding-left: 1.3em; }
.doc-card li { margin-bottom: .45em; }
.doc-card li::marker { color: var(--pink); }
.doc-card a { text-decoration-color: var(--pink); text-underline-offset: 3px; }
.updated { font-weight: 700; color: var(--muted) !important; font-size: .92rem; margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0 !important; list-style: none; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s, border-color .2s, transform .35s var(--spring); }
.toc a:hover { background: var(--lime); border-color: var(--ink); transform: translateY(-2px); }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); margin: 0 0 1em; }
.callout svg { width: 28px; height: 28px; flex: none; color: var(--violet); }
.callout p { margin: 0 0 .4em; }
.callout ul { margin: 0; }
.kbd { display: inline-block; padding: 0 9px; border-radius: 8px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font-weight: 700; font-size: .92em; white-space: nowrap; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.doc-card table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .96rem; }
.doc-card th, .doc-card td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-card th { font-weight: 700; background: var(--bg); }
.doc-card th:first-child { border-top-left-radius: 12px; } .doc-card th:last-child { border-top-right-radius: 12px; }
@media (max-width: 640px) {
  .doc-card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-card table, .doc-card tbody, .doc-card tr, .doc-card td { display: block; }
  .doc-card tr { margin: 0 0 12px; padding: 10px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
  .doc-card td { border: 0; padding: 3px 0; }
  .doc-card td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
.steps-doc { counter-reset: d; list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 0 0 1.4em; }
.steps-doc li { counter-increment: d; position: relative; padding: 14px 16px 14px 62px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); margin: 0; }
.steps-doc li::before { content: counter(d); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 400 1.15rem/1 var(--game); color: #fff; background: linear-gradient(var(--orange-t), var(--orange-b) 70%); box-shadow: 0 3px 0 var(--orange-e); text-shadow: 0 2px 0 var(--orange-e); }
.mailbox { text-align: center; padding: 20px; border-radius: 20px; border: 1.5px dashed rgba(18, 16, 25, .25); margin: 0 0 1.2em; }
.mailbox .btn { margin-top: 6px; max-width: 100%; overflow-wrap: anywhere; font-size: 1.1rem; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 24px; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - 70px); display: grid; place-items: center; text-align: center; padding: 60px var(--gutter) 70px; }
.nf h1 { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 18vw, 8rem); line-height: 1; letter-spacing: -.05em; color: var(--ink); margin: 0; text-shadow: 0 6px 0 #fff; }
.nf p { font-weight: 600; font-size: 1.15rem; color: var(--ink); max-width: 26em; margin: 6px auto 22px; }
.nf .bear-stage { width: min(56vw, 230px); }
.nf .lost-screw { position: absolute; width: 46px; height: 46px; color: var(--violet); animation: roll 6s ease-in-out infinite; bottom: 4%; left: 0; }
@keyframes roll { 0% { transform: translateX(-60px) rotate(0); } 50% { transform: translateX(240px) rotate(720deg); } 100% { transform: translateX(-60px) rotate(0); } }

/* ---------- CJK: full-width glyphs, no squeezed tracking, breaks inside words ---------- */
:lang(zh) .section-title, :lang(ja) .section-title, :lang(ko) .section-title, :lang(zh) .card h3, :lang(ja) .card h3, :lang(ko) .card h3, :lang(zh) .doc-card h2, :lang(ja) .doc-card h2, :lang(ko) .doc-card h2 { letter-spacing: 0; line-height: 1.15; }
:lang(zh) .section-title, :lang(ja) .section-title, :lang(ko) .section-title { font-size: clamp(2rem, 5.4vw, 3.8rem); }
:lang(zh) .bouncy-word, :lang(ja) .bouncy-word { white-space: normal; }
:lang(zh) .marquee-item, :lang(ja) .marquee-item, :lang(ko) .marquee-item { letter-spacing: .02em; }
:lang(ja) .tagline, :lang(zh) .tagline, :lang(ko) .tagline, :lang(ja) .btn, :lang(zh) .btn, :lang(ko) .btn, :lang(ja) .demo-status, :lang(zh) .demo-status, :lang(ko) .demo-status { font-weight: 800; }
:lang(ja) p, :lang(zh) p { line-break: strict; }
:lang(ko) p, :lang(ko) li, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
/* Russian and German: long words; titles a touch smaller */
:lang(ru) .section-title, :lang(de) .section-title { font-size: clamp(2.05rem, 5.8vw, 4.2rem); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal]:not(.in) .bouncy-letter { opacity: 1; }
  .chips-marquee { -webkit-mask: none; mask: none; }
  .chips-marquee .track { width: auto; }
  .chips-marquee .set { flex-wrap: wrap; justify-content: center; }
  .chips-marquee .set[aria-hidden='true'], .cloud { display: none; }
  .marquee-track { width: auto; overflow: hidden; }
}
