/* Bouncie 官网 · shared styles
   Visual DNA from the app: periwinkle home, lime tennis balls with doodle faces,
   grass-green friends, white 30px cards, dark + lime Pro, Poppins hero numbers. */

:root {
  --peri: #8FA1FF;
  --peri-hi: #A6B4FF;
  --peri-deep: #6B77E5;
  --lime: #CDFF37;
  --lime-2: #D9F35F;
  --lime-ink: #1A2408;
  --grass: #92BF62;
  --grass-ink: #2F4A12;
  --ink: #111114;
  --dark: #17181B;
  --dark-2: #222328;
  --text: #242529;
  --text-2: #55565C;
  --text-3: #6E6E73;
  --inset: #F5F6FA;
  --line: #ECECEE;
  --border: #E5E6EB;
  --blush: #FC8B9E;
  --purple: #8C77EC;
  --z1: #3BBDF8; --z2: #A3E635; --z3: #FACC15; --z4: #FB923C; --z5: #F87171;
  --r-card: 30px;
  --r-lg: 24px;
  --r-md: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --disp: "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1180px;
  --gut: 24px;
  --nav-h: 64px;
}
@media (max-width: 640px) { :root { --gut: 16px; } }

/* ---------- language switch: both languages live in the markup ---------- */
html[data-lang="en"] body [lang="zh-CN"],
html[data-lang="zh"] body [lang="en"] { display: none !important; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sec-dark :focus-visible, .hero-dark :focus-visible { outline-color: var(--lime); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p, li, dd { text-wrap: pretty; }

/* ---------- type ---------- */
.disp { font-family: var(--disp); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; text-wrap: balance; }
.disp:lang(zh-CN), .disp :lang(zh-CN) { letter-spacing: 0; line-height: 1.18; }
.h-xl { font-size: clamp(42px, 6.4vw, 84px); }
.h-l  { font-size: clamp(34px, 4.6vw, 58px); }
.h-m  { font-size: clamp(26px, 2.8vw, 36px); }
.h-s  { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; max-width: 34em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.num { font-family: var(--disp); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.label { font-size: 13px; color: var(--text-3); letter-spacing: -0.08px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); color: var(--ink); padding: 7px 14px 7px 7px; background: #fff; border-radius: 999px; }
.eyebrow .ball { width: 22px; height: 22px; }
.eyebrow { justify-self: start; max-width: 100%; }
.sec-dark .eyebrow, .hero-dark .eyebrow { background: rgba(255,255,255,0.08); color: #EDEEE8; }
.kicker { font: 700 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.kicker:lang(zh-CN) { letter-spacing: 0.04em; }
.updated { font-size: 13px; color: var(--text-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap; transition: transform .16s cubic-bezier(.3,1.6,.5,1), background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(0.96); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2B2B; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #D8FF5C; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 6px 18px rgba(17,17,20,.12); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn .ball { width: 22px; height: 22px; }
.btn-store .store-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.btn-store .store-text small { font-size: 11px; font-weight: 600; opacity: .72; }
.btn-store .store-text b { font-size: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- nav (floating island, like iOS) ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; padding: 0 var(--gut); pointer-events: none; }
.nav-in { pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; display: flex; align-items: center; gap: 12px; height: var(--nav-h); padding: 0 10px 0 14px; background: rgba(255,255,255,0.88); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-radius: 999px; box-shadow: 0 10px 30px rgba(17,17,20,0.08), 0 0 0 1px rgba(17,17,20,0.05); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo .ball { width: 32px; height: 32px; transform: rotate(-14deg); }
.logo-word { font: 800 22px/1 var(--disp); letter-spacing: -0.04em; }
.logo-tag { font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; background: var(--lime); color: var(--lime-ink); padding: 4px 7px; border-radius: 999px; }
.nav-links { display: flex; gap: 2px; margin-left: 12px; list-style: none; }
.nav-links a { display: block; padding: 10px 13px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--font); color: var(--text-2); }
.nav-links a:hover { color: var(--ink); background: var(--inset); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--inset); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; background: var(--inset); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; cursor: pointer; min-height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px; font: 700 13px/1 var(--font); color: var(--text-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; background: var(--inset); font: 700 14px/1 var(--font); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 2 * var(--gut))); background: #fff; border-radius: 26px; padding: 10px; box-shadow: 0 20px 50px rgba(17,17,20,.16), 0 0 0 1px rgba(17,17,20,.05); display: grid; gap: 2px; }
.menu-panel a { display: block; padding: 14px 16px; border-radius: 16px; text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--inset); }
.menu-panel .btn { margin-top: 6px; }
@media (max-width: 1040px) { .nav-links, .nav-end .btn { display: none; } .menu { display: block; } }
@media (max-width: 420px) { .logo-tag { display: none; } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec-peri { background: var(--peri); }
.sec-inset { background: var(--inset); }
.sec-dark { background: var(--dark); color: #EDEEE8; }
.sec-grass { background: var(--grass); }
.sec-lime { background: var(--lime); color: var(--lime-ink); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.stack { display: grid; gap: 18px; }
.stack-s { display: grid; gap: 10px; }

/* background swoosh (the big seam loop behind the app home) */
.swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.swoosh path { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 96; stroke-linecap: round; }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--r-card); padding: 28px; }
.card-line { border: 1px solid var(--line); }
.card-inset { background: var(--inset); }
.card-dark { background: var(--dark-2); color: #EDEEE8; }

/* ---------- tennis balls ---------- */
.ball { width: 100%; height: auto; color: var(--lime); overflow: visible; }
.ball-peri { color: var(--peri); }
.ball-pink { color: #FFA9B8; }
.ball-orange { color: #FFC27D; }
.ball-mint { color: #A9F0CE; }
.plus-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.plus-btn::before, .plus-btn::after { content: ""; grid-area: 1 / 1; width: 26px; height: 6px; border-radius: 3px; background: #fff; }
.plus-btn::after { transform: rotate(90deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 0; }
.hero-peri { background: var(--peri); }
.hero-dark { background: var(--dark); color: #EDEEE8; }
.hero-grass { background: var(--grass); }
.hero-inset { background: var(--inset); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 24px; padding-bottom: 96px; align-content: center; }
.hero-copy .lede { color: var(--ink); }
.hero-dark .hero-copy .lede { color: rgba(237,238,232,.82); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { font: 600 14px/1 var(--font); padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.55); color: var(--ink); }
.hero-dark .hero-facts li { background: rgba(255,255,255,.08); color: #EDEEE8; }
.hero-art { position: relative; align-self: stretch; min-height: 560px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-art { min-height: 440px; }
}

/* home hero art: the app's home screen, blown up */
.home-count { position: absolute; left: 4%; top: 0; z-index: 3; color: var(--ink); }
.home-count .num { font-size: clamp(120px, 15vw, 196px); display: inline-block; }
.home-count .unit { font: 700 22px/1 var(--font); margin-left: 6px; }
.home-count p { font-weight: 700; font-size: 18px; margin-top: 4px; }
.pile { position: absolute; inset: 0; }
.pile .pb { position: absolute; width: 36%; aspect-ratio: 1; animation: drop .9s cubic-bezier(.3,1.35,.45,1) both; animation-delay: var(--d, 0s); }
.pile .pb .ball { transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.pile .pb:hover .ball { transform: rotate(var(--r, 0deg)) scale(1.06, .94); }
.pile .plus-btn { position: absolute; z-index: 4; left: 50%; top: 66%; transform: translate(-50%, -50%); }
@keyframes drop { from { transform: translateY(-140%); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pile .pb { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font: 600 14px/1.2 var(--font); color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-dark .crumbs { color: rgba(237,238,232,.7); }

/* ---------- GEO answer + facts ---------- */
.answer { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink); }
.answer strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(205,255,55,.85) 62%); }
.facts { border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 26px; background: #fff; }
.facts h3 { font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 20px 0 6px; }
.facts h3:lang(zh-CN) { letter-spacing: .04em; }
.facts dl { display: grid; }
.facts .row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts .row:first-child { border-top: 0; }
.facts dt { font-size: 14px; color: var(--text-3); }
.facts dd { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.45; }

/* ---------- feature cards (home) ---------- */
.fcard { border-radius: var(--r-card); padding: 26px; display: grid; grid-template-rows: auto 1fr; gap: 26px; text-decoration: none; color: inherit; min-height: 540px; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.fcard:hover { transform: translateY(-4px); }
.fcard-dark { background: var(--dark); color: #EDEEE8; }
.fcard-white { background: #fff; border: 1px solid var(--line); }
.fcard-grass { background: var(--grass); color: var(--ink); }
.fcard .vis { border-radius: 22px; min-height: 270px; display: grid; place-items: center; position: relative; overflow: hidden; }
.fcard .txt { display: grid; gap: 10px; align-content: end; }
.fcard p { opacity: .86; }
.fcard .link-arrow { margin-top: 8px; justify-self: start; }

/* mini watch (static) */
.mini-watch { width: 196px; height: 236px; border-radius: 54px; background: #000; box-shadow: 0 0 0 8px #2A2B30, 0 0 0 9px #3D3E44, 0 24px 50px rgba(0,0,0,.45); padding: 20px 16px 16px; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.mw-top { display: flex; justify-content: space-between; font: 600 12px/1 var(--font); color: rgba(255,255,255,.6); }
.mw-score { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mw-score .num { font-size: 52px; }
.mw-score .me { color: var(--lime); }
.mw-score .op { color: #A5B4FF; }
.mw-score .sep { color: rgba(255,255,255,.35); font-size: 30px; }
.mw-pill { justify-self: center; font: 800 11px/1 var(--font); letter-spacing: .04em; color: #1A1206; background: #FFC061; padding: 5px 9px; border-radius: 999px; margin-bottom: 8px; }
.mw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mw-btns span { height: 46px; border-radius: 18px; display: grid; place-items: center; font: 800 15px/1 var(--font); }
.mw-btns .me { background: var(--lime); color: var(--lime-ink); }
.mw-btns .op { background: var(--peri); color: var(--ink); }

/* zone bars */
.zones { width: 100%; display: grid; gap: 10px; padding: 26px; }
.zone { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; font: 600 13px/1.2 var(--font); }
.zone .bar { height: 14px; border-radius: 7px; background: var(--inset); position: relative; overflow: hidden; }
.zone .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--c); width: var(--w); }
.zone .pct { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.zone-rail { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--z1), var(--z2), var(--z3), var(--z4), var(--z5)); }

/* head-to-head */
.h2h { text-align: center; display: grid; gap: 14px; justify-items: center; width: 100%; padding: 22px; }
.h2h .score { display: flex; align-items: baseline; gap: 14px; }
.h2h .score .num { font-size: 96px; }
.h2h .score .you { color: var(--peri-deep); }
.h2h .score .colon { font-size: 40px; color: var(--text-3); }
.h2h .split { width: 100%; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.h2h .split i { height: 10px; border-radius: 5px; background: #84C052; }
.h2h .split i + i { background: var(--purple); }
.wl { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font: 800 15px/1 var(--font); background: var(--lime); color: var(--lime-ink); }
.wl.l { background: var(--inset); color: var(--text-3); }

/* ---------- how it works ---------- */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.steps > li { background: #fff; border-radius: var(--r-card); padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start; }
.steps > li::before { counter-increment: s; content: counter(s); font: 800 88px/0.9 var(--disp); letter-spacing: -0.05em; color: var(--ink); }
.steps h3 { font-size: 22px; line-height: 1.25; }

/* ordered how-to list (feature pages) */
.howto { list-style: none; counter-reset: h; display: grid; gap: 4px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.howto li:first-child { border-top: 0; }
.howto li::before { content: counter(h); width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font: 800 16px/1 var(--disp); }
.howto strong { color: var(--ink); }

/* ---------- avatar maker ---------- */
.court { border-radius: var(--r-card); position: relative; overflow: hidden; aspect-ratio: 1 / 0.86; display: grid; place-items: center; background: var(--court, #7FB24A); transition: background-color .3s; }
.court .lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.court .lines rect, .court .lines line { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3; }
.court .me-ball { width: min(62%, 300px); position: relative; z-index: 1; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); }
.court .me-ball.pop { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.9, 1.08); } 60% { transform: scale(1.05, .95); } 100% { transform: none; } }
.maker { display: grid; gap: 18px; }
.maker fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.maker legend { font: 700 13px/1 var(--font); color: var(--text-3); margin-bottom: 10px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 2px solid transparent; background: var(--inset); border-radius: 18px; min-width: 52px; min-height: 52px; padding: 6px; cursor: pointer; display: grid; place-items: center; font: 700 14px/1 var(--font); color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.opt .ball { width: 38px; height: 38px; }
.opt .sw { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.opt.text { padding: 0 16px; }

/* ---------- Pro ---------- */
.pro-glow { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 760px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(205,255,55,.16), transparent 66%); pointer-events: none; }
.pro-word { font: 800 clamp(44px, 6vw, 72px)/1 var(--disp); letter-spacing: -0.04em; color: #fff; }
.pro-word .pro { color: var(--lime); }
.benefits { list-style: none; display: grid; gap: 14px; }
.benefits li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-weight: 600; color: #EDEEE8; }
.benefits li svg { margin-top: 3px; }
.benefits small { display: block; font-weight: 500; color: rgba(237,238,232,.62); font-size: 14px; margin-top: 2px; }
.insight { background: #fff; color: var(--text); border-radius: var(--r-card); padding: 26px; display: grid; gap: 14px; }
.insight .tag { justify-self: start; font: 800 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; background: var(--dark); color: var(--lime); padding: 6px 10px; border-radius: 999px; }
.insight blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.insight .meta { font-size: 13px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px/1.2 var(--font); padding: 10px 14px; border-radius: 999px; background: var(--inset); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 22px; border: 1px solid var(--line); }
.sec-inset .faq details { border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center; padding: 22px 24px; font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; background: var(--inset); display: grid; place-items: center; font: 600 20px/1 var(--font); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq .a { padding: 0 24px 24px; color: var(--text-2); display: grid; gap: 10px; }
.faq-group { display: grid; gap: 16px; margin-top: 48px; }
.faq-group:first-of-type { margin-top: 0; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.tbl caption { text-align: left; padding: 20px 24px 4px; font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tbl caption:lang(zh-CN) { letter-spacing: .04em; }
.tbl th, .tbl td { text-align: left; padding: 16px 24px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.tbl thead th { border-top: 0; font-size: 13px; font-weight: 700; color: var(--text-3); background: #fff; }
.tbl tbody th { font-weight: 700; color: var(--ink); }
.tbl td { color: var(--text-2); }
.tbl .yes { color: var(--ink); font-weight: 700; }
.tbl .yes::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #84C052; margin-right: 8px; vertical-align: 1px; }
.tbl .no { color: var(--text-3); }
.tbl .pro-col { background: #FBFFEE; }
.zdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: -1px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 128px) 0 clamp(150px, 16vw, 210px); text-align: center; }
.cta-band .inner { display: grid; justify-items: center; gap: 22px; position: relative; z-index: 2; }
.cta-band .row-balls { position: absolute; left: 0; right: 0; bottom: -60px; display: flex; justify-content: center; gap: 0; }
.cta-band .row-balls .ball { width: clamp(110px, 14vw, 170px); margin: 0 -10px; }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: rgba(237,238,232,.78); padding: 64px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; }
.foot .logo { color: #fff; }
.foot h2 { font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(237,238,232,.55); margin-bottom: 14px; }
.foot h2:lang(zh-CN) { letter-spacing: .04em; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .lang { background: rgba(255,255,255,.08); }
.foot .lang button { color: rgba(237,238,232,.82); }
.foot .lang button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: rgba(237,238,232,.55); }
.ph { display: inline-block; border: 1.5px dashed currentColor; border-radius: 6px; padding: 0 6px; font-weight: 600; opacity: .8; }

/* ---------- feature-page bits ---------- */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.icard { background: var(--inset); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 8px; align-content: start; }
.sec-inset .icard { background: #fff; }
.icard h3 { font-size: 19px; line-height: 1.3; color: var(--ink); }
.icard p { color: var(--text-2); font-size: 16px; }
.icard .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--lime); display: grid; place-items: center; margin-bottom: 6px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.related a { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: #fff; text-decoration: none; border: 1px solid var(--line); transition: transform .2s; }
.related a:hover { transform: translateY(-3px); }
.related a b { font-size: 18px; color: var(--ink); }
.related a span { color: var(--text-2); font-size: 15px; }
.prose { display: grid; gap: 16px; max-width: 720px; }
.prose p { color: var(--text-2); }
.prose h2 { margin-top: 8px; }

/* interactive watch (score page) */
.watch-stage { display: grid; justify-items: center; gap: 22px; padding: 10px 0 80px; }
.watch { width: 250px; height: 302px; border-radius: 68px; background: #000; position: relative; box-shadow: 0 0 0 11px #26272C, 0 0 0 12px #3B3C42, 0 40px 80px rgba(0,0,0,.55); padding: 22px 18px 18px; display: grid; grid-template-rows: auto 1fr auto auto; color: #fff; }
.watch::after { content: ""; position: absolute; right: -20px; top: 74px; width: 8px; height: 48px; border-radius: 4px; background: #3B3C42; }
.w-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 12.5px/1 var(--font); color: rgba(255,255,255,.62); padding: 0 6px; font-variant-numeric: tabular-nums; }
.w-undo { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.w-undo:disabled { opacity: .35; cursor: default; }
.w-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; }
.w-score .num { font-size: 60px; }
.w-score .cell { display: grid; justify-items: center; gap: 6px; }
.w-score .me { color: var(--lime); }
.w-score .op { color: #A5B4FF; }
.w-score .sep { color: rgba(255,255,255,.3); font: 700 28px/1 var(--disp); }
.w-serve { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; margin: 0 4px; visibility: hidden; }
.w-serve.on { visibility: visible; }
.w-key { justify-self: center; min-height: 22px; margin-bottom: 8px; }
.w-key span.k { font: 800 11px/1 var(--font); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; background: #fff; color: #111; display: inline-block; }
.w-key span.k.set { background: #FFC061; }
.w-key span.k.match { background: #FF7A7A; }
.w-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-btns button { min-height: 54px; border: 0; border-radius: 20px; cursor: pointer; font: 800 15px/1.1 var(--font); transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.w-btns button:active { transform: scale(.94); }
.w-btns .me { background: var(--lime); color: var(--lime-ink); }
.w-btns .op { background: var(--peri); color: var(--ink); }
.w-sets { display: flex; gap: 10px; align-items: center; color: rgba(237,238,232,.75); font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.w-sets b { color: #fff; font-family: var(--disp); font-size: 20px; letter-spacing: -.02em; }
.w-reset { border: 0; background: rgba(255,255,255,.1); color: #EDEEE8; border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; font: 700 14px/1 var(--font); }
.w-note { font-size: 14px; color: rgba(237,238,232,.62); text-align: center; max-width: 280px; }

/* phone-scoring card (deep court green) */
.phone-court { border-radius: var(--r-card); padding: 26px; background: linear-gradient(160deg, #2E5A22, #183313); color: #EEF5E6; display: grid; gap: 18px; }
.phone-court .big-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-court .big-btns span { min-height: 110px; border-radius: 24px; display: grid; place-items: center; font: 800 18px/1.2 var(--font); text-align: center; padding: 10px; }
.phone-court .big-btns .me { background: var(--lime); color: var(--lime-ink); }
.phone-court .big-btns .op { background: var(--peri); color: var(--ink); }
.phone-court .sets { display: flex; gap: 16px; font: 700 15px/1 var(--font); color: rgba(238,245,230,.8); font-variant-numeric: tabular-nums; }

/* app-like white cards on colored grounds (friends / stats) */
.app-card { background: #fff; border-radius: var(--r-card); padding: 24px 26px; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.app-card .label { margin-bottom: 8px; }
.app-stack { display: grid; gap: 16px; max-width: 440px; margin-left: auto; width: 100%; padding-bottom: 72px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-list { list-style: none; display: grid; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font: 700 16px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.mini-list li:first-child { border-top: 0; }
.toggle { width: 51px; height: 31px; border-radius: 16px; background: #E5E6EB; position: relative; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.toggle.on { background: #84C052; }
.toggle.on::after { left: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.stat-row .v { font: 700 24px/1.1 var(--font); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-row .v small { font-size: 14px; margin-left: 2px; }
.hr-chart { width: 100%; height: auto; }
.reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.reactions .chip { background: #fff; border: 1px solid var(--line); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.plan { position: relative; border-radius: var(--r-card); padding: 28px; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); display: grid; gap: 8px; }
.plan.on { border-color: var(--lime); background: rgba(205,255,55,.07); }
.plan .badge { position: absolute; top: -13px; right: 20px; background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding: 6px 12px; font: 800 12px/1 var(--font); }
.plan .name { font: 700 15px/1 var(--font); color: rgba(237,238,232,.7); }
.plan.on .name { color: var(--lime); }
.plan .price { font: 800 48px/1 var(--disp); letter-spacing: -.03em; color: #fff; }
.plan .price small { font: 600 16px/1 var(--font); color: rgba(237,238,232,.55); margin-left: 4px; letter-spacing: 0; }
.plan .sub { font-size: 14px; color: rgba(237,238,232,.62); }
.fine { font-size: 13px; color: rgba(237,238,232,.55); line-height: 1.6; }

/* spec doc page */
.doc { max-width: 980px; }
.doc h2 { margin: 56px 0 16px; }
.doc h3 { margin: 28px 0 10px; font-size: 19px; color: var(--ink); }
.doc p, .doc li { color: var(--text-2); }
.doc ul.dots { padding-left: 20px; display: grid; gap: 8px; }
.doc code, .doc pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; }
.doc :not(pre) > code { background: var(--inset); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.doc pre { background: var(--dark); color: #EDEEE8; border-radius: 20px; padding: 20px 22px; overflow-x: auto; line-height: 1.6; }
.callout { border-radius: var(--r-lg); padding: 22px 24px; background: #FFF4E5; color: #5A3A00; display: grid; gap: 8px; }
.callout b { color: #3D2700; }

/* =====================================================================
   MOTION — the app's vocabulary: drop + bounce, jelly squash, spring pop,
   sparkle bursts, balls colliding. Everything is off under reduced motion.
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes jelly { 0% { transform: scale(1,1); } 25% { transform: scale(1.16,.84); } 45% { transform: scale(.9,1.1); } 65% { transform: scale(1.05,.96); } 85% { transform: scale(.98,1.02); } 100% { transform: scale(1,1); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18,.9); } 65% { transform: scale(.96,1.05); } 100% { transform: scale(1); } }
@keyframes press { 0% { transform: scale(1); } 30% { transform: scale(.9); } 70% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes spark { 0% { transform: translate(-50%,-50%) scale(.2); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--ss)) rotate(90deg); opacity: 0; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes springUp { 0% { transform: translateY(130%); } 60% { transform: translateY(-14%); } 80% { transform: translateY(5%); } 100% { transform: none; } }
@keyframes drift { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-30px,18px) rotate(2deg); } }
@keyframes hop { 0% { transform: rotate(-14deg) translateY(0); } 30% { transform: rotate(40deg) translateY(-8px) scale(1.05,.95); } 60% { transform: rotate(160deg) translateY(0) scale(.95,1.05); } 100% { transform: rotate(346deg); } }
@keyframes pillPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(.985); } 100% { transform: scale(1); } }

.spark { position: absolute; width: 20px; height: 20px; pointer-events: none; z-index: 8; animation: spark .8s cubic-bezier(.2,.8,.3,1) both; }
.spark svg { width: 100%; height: 100%; fill: currentColor; }
.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); display: inline-block; }
.pressed { animation: press .35s cubic-bezier(.3,1.6,.5,1); }
.jelly { animation: jelly .6s cubic-bezier(.3,1.4,.5,1); }

/* load-in for hero copy */
html.motion .hero-copy > *, html.motion .hero .app-stack > *, html.motion .hero .watch-stage { animation: rise .8s cubic-bezier(.25,1.25,.4,1) both; }
html.motion .hero-copy > *:nth-child(2) { animation-delay: .07s; }
html.motion .hero-copy > *:nth-child(3) { animation-delay: .14s; }
html.motion .hero-copy > *:nth-child(4) { animation-delay: .21s; }
html.motion .hero-copy > *:nth-child(5) { animation-delay: .28s; }
html.motion .hero .app-stack > *:nth-child(1), html.motion .hero .watch-stage { animation-delay: .2s; }
html.motion .hero .app-stack > *:nth-child(2) { animation-delay: .32s; }

/* scroll reveal with a springy settle */
html.motion .rv { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .55s ease var(--rd, 0s), transform .8s cubic-bezier(.25,1.4,.4,1) var(--rd, 0s); }
html.motion .rv.in { opacity: 1; transform: none; }
html.motion .fcard.rv.in:hover { transform: translateY(-6px) rotate(-.4deg); transition-delay: 0s; }

/* bars and lines */
.zones .bar i, .h2h .split i { transform-origin: left center; transition: transform 1s cubic-bezier(.25,1.2,.4,1); }
.zones .zone:nth-child(3) .bar i { transition-delay: .08s; } .zones .zone:nth-child(4) .bar i { transition-delay: .16s; }
.zones .zone:nth-child(5) .bar i { transition-delay: .24s; } .zones .zone:nth-child(6) .bar i { transition-delay: .32s; }
.h2h .split i + i { transform-origin: right center; transition-delay: .15s; }
html.motion .zones:not(.in) .bar i, html.motion .h2h:not(.in) .split i { transform: scaleX(0); }
.zone-rail { transform-origin: left; transition: transform 1.1s cubic-bezier(.25,1,.4,1); }
html.motion .zone-rail:not(.in) { transform: scaleX(0); }
.hr-chart .line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1); }
.hr-chart .line + .line { transition-delay: .2s; }
.hr-chart .area { transition: opacity 1s ease .9s; }
.hr-chart .mark { transition: opacity .4s ease 1.7s, transform .5s cubic-bezier(.3,1.6,.5,1) 1.7s; transform-box: fill-box; transform-origin: center; }
html.motion .hr-chart:not(.in) .line { stroke-dashoffset: 1; }
html.motion .hr-chart:not(.in) .area, html.motion .hr-chart:not(.in) .mark { opacity: 0; }
html.motion .hr-chart:not(.in) .mark { transform: scale(0); }
.toggle, .toggle::after { transition: background-color .25s ease, left .35s cubic-bezier(.3,1.5,.5,1); }

/* the home pile becomes physical */
.pile { touch-action: pan-y; }
.pile.phys .pb { animation: none; left: 0; top: 0; will-change: transform; cursor: grab; touch-action: none; }
.pile.phys .pb.held { cursor: grabbing; z-index: 5; }
.pile.phys .pb.held .ball { filter: drop-shadow(0 14px 16px rgba(17,17,20,.22)); }
.pile.phys .pb .ball { transform: none; transition: none; }
.pile .pr { width: 100%; height: 100%; }
.pile .pr.jelly { animation: none; }
.pile .pr .ball { transform-origin: 50% 70%; }
.pile .pr.jelly > .ball { animation: jelly .6s cubic-bezier(.3,1.4,.5,1); }
.pile .pb.gone { opacity: 0; transition: opacity .35s; }
.pile .plus-btn { border: 0; cursor: pointer; z-index: 6; box-shadow: 0 8px 22px rgba(17,17,20,.28); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.pile .plus-btn:hover { transform: translate(-50%,-50%) scale(1.08); }
.pile .plus-btn.pressed { animation: none; transform: translate(-50%,-50%) scale(.9); }
.pile .plus-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 50%; }
.home-count .num.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); transform-origin: left bottom; }
@media (max-width: 900px) { .hero-art { min-height: 470px; } .home-count .num { font-size: 104px; } }

/* logo hops on hover */
html.motion .logo:hover .ball { animation: hop .7s cubic-bezier(.3,1.3,.5,1); }

/* swoosh drifts slowly */
html.motion .swoosh path { animation: drift 16s ease-in-out infinite alternate; transform-box: fill-box; }

/* CTA band: balls spring up, then bob */
.cta-band .row-balls .rb { display: block; margin: 0 -10px; }
.cta-band .row-balls .rb .ball { margin: 0; }
html.motion .cta-band:not(.in) .rb { transform: translateY(130%); }
html.motion .cta-band.in .rb { animation: springUp .9s cubic-bezier(.3,1.2,.5,1) both var(--d, 0s), bob 3.2s ease-in-out infinite calc(var(--d, 0s) + 1s); }
.cta-band .rb .ball { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }

/* friends: collision stage */
.collide { position: relative; height: 150px; overflow: visible; }
.collide .cl { position: absolute; top: 50%; left: 50%; width: 104px; margin: -52px 0 0 -52px; }
.collide .cl-a { transform: translateX(-50px) rotate(-8deg); }
.collide .cl-b { transform: translateX(50px) rotate(12deg); }
.collide .cl-text { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font: 800 20px/1 var(--disp); letter-spacing: -.02em; white-space: nowrap; background: var(--ink); color: var(--lime); padding: 8px 14px; border-radius: 999px; }
@keyframes clA { 0% { transform: translateX(-260px) rotate(-260deg); } 55% { transform: translateX(-46px) rotate(-8deg) scale(1); } 63% { transform: translateX(-40px) rotate(-8deg) scale(.82,1.14); } 78% { transform: translateX(-62px) rotate(-10deg) scale(1.06,.95); } 100% { transform: translateX(-50px) rotate(-8deg) scale(1); } }
@keyframes clB { 0% { transform: translateX(260px) rotate(260deg); } 55% { transform: translateX(46px) rotate(12deg) scale(1); } 63% { transform: translateX(40px) rotate(12deg) scale(.82,1.14); } 78% { transform: translateX(62px) rotate(14deg) scale(1.06,.95); } 100% { transform: translateX(50px) rotate(12deg) scale(1); } }
@keyframes clText { 0%, 55% { transform: translateX(-50%) scale(0); opacity: 0; } 75% { transform: translateX(-50%) scale(1.15); opacity: 1; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
html.motion .collide:not(.go):not(.done) .cl-a { transform: translateX(-260px); opacity: 0; }
html.motion .collide:not(.go):not(.done) .cl-b { transform: translateX(260px); opacity: 0; }
html.motion .collide:not(.go):not(.done) .cl-text { opacity: 0; }
.collide.go .cl-a { animation: clA 1.1s cubic-bezier(.4,.1,.3,1) both; }
.collide.go .cl-b { animation: clB 1.1s cubic-bezier(.4,.1,.3,1) both; }
.collide.go .cl-text { animation: clText 1.1s cubic-bezier(.3,1.5,.5,1) both; }
.again { border: 0; background: var(--inset); border-radius: 999px; min-height: 36px; padding: 0 14px; font: 700 13px/1 var(--font); cursor: pointer; color: var(--ink); }

/* avatar */
.court .me-ball { cursor: pointer; }
.opt { transition: transform .2s cubic-bezier(.3,1.6,.5,1), border-color .15s, background-color .15s; }
.opt:hover { transform: translateY(-2px); }

/* watch scorer */
.watch.tap { animation: tap .25s ease; }
.w-score .num { display: inline-block; }
.w-key .k { animation: pillPop .45s cubic-bezier(.3,1.6,.5,1) both; }
.watch-stage { position: relative; }

/* pricing plans as real buttons */
button.plan { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
button.plan:hover { transform: translateY(-3px); }

/* exported site: language switch is a pair of links */
.lang a { display: inline-grid; place-items: center; min-height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px; font: 700 13px/1 var(--font); color: var(--text-2); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.foot .lang a { color: rgba(237,238,232,.82); }
.foot .lang a[aria-current="true"] { background: var(--lime); color: var(--lime-ink); }

@media (prefers-reduced-motion: reduce) {
  .spark, .bump, .pressed, .jelly, .pile .pr.jelly > .ball, .w-key .k, .watch.tap { animation: none !important; }
}

/* ---------- ja / ko ---------- */
/* CJK fallbacks must follow the page language: with PingFang SC first, Japanese kanji render in Chinese glyph forms. */
html:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Helvetica Neue", Arial, sans-serif;
  --disp: "Poppins", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
html:lang(ko) {
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --disp: "Poppins", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
.disp:lang(ja), .disp:lang(ko) { letter-spacing: 0; line-height: 1.2; }
:lang(ja) .disp, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; overflow-wrap: anywhere; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }

/* four languages: nav pill moves into the menu panel on small screens */
.menu-panel .lang { display: none; justify-content: space-between; margin-top: 6px; }
.menu-panel .lang a { padding: 0 10px; font-weight: 700; border-radius: 999px; }
@media (max-width: 640px) {
  .nav-end > .lang { display: none; }
  .menu-panel .lang { display: flex; }
}
