/* NinjaLit website: the app's "Night court" look. Dark green-black pages, pod green, Barlow Condensed
   heavy italic headings, system fonts for text (Chinese falls back to the phone's own font). */
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url(/assets/barlow-900i.ttf) format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url(/assets/barlow-800i.ttf) format('truetype'); }

:root {
  --page: #07130e;
  --page2: #0b1a13;
  --card: #0f2219;
  --line: #21392d;
  --text: #f1f7f3;
  --muted: #9db3a8;
  --acc: #22c55e;
  --acc2: #4ade80;
  --ink: #04130a;
  --sky: #38bdf8;
  --teal: #2dd4bf;
  --gold: #f2c14e;
  --head: 'Barlow Condensed', 'Arial Narrow', 'PingFang TC', 'PingFang SC', 'Noto Sans TC', 'Noto Sans SC', 'Microsoft JhengHei', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang TC', 'PingFang SC', 'Noto Sans TC', 'Noto Sans SC', 'Microsoft JhengHei', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 { font: italic 900 clamp(34px, 5vw, 54px)/1.02 var(--head); text-transform: uppercase; letter-spacing: 0.2px; margin-bottom: 18px; }
h3 { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
p { margin: 0 0 12px; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 { font-style: normal; font-weight: 900; line-height: 1.25; letter-spacing: 1px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font: italic 800 15px/1 var(--head); letter-spacing: 2.4px; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }
:lang(zh-Hant) .kicker, :lang(zh-Hans) .kicker { font-style: normal; font-weight: 800; letter-spacing: 3px; }
.lead { font-size: 19px; color: #cfe0d6; max-width: 640px; }
.narrow { max-width: 680px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 19, 14, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(33, 57, 45, 0.7); }
.bar { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: italic 900 25px/1 var(--head); text-transform: uppercase; letter-spacing: 0.5px; }
.brand:hover { text-decoration: none; }
.mark { width: 32px; height: 32px; flex: none; }
.links { display: flex; gap: 20px; margin-left: auto; }
.links a { color: #cfe0d6; font-size: 15px; font-weight: 600; }
.links a:hover { color: var(--text); text-decoration: none; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { padding: 4px 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; }
.langs a[aria-current] { background: var(--acc); color: var(--ink); }
.langs a:hover { text-decoration: none; color: var(--text); }
.langs a[aria-current]:hover { color: var(--ink); }
@media (max-width: 860px) { .links { display: none; } .langs { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.banner { position: absolute; inset: 0 0 auto 0; height: 420px; background-size: cover; background-position: 70% 40%; opacity: 0.32; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.herogrid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font: italic 900 clamp(52px, 8.4vw, 104px)/0.92 var(--head); text-transform: uppercase; margin: 6px 0 22px; }
.hero h1 span { display: block; }
.hero h1 .l1 { color: var(--acc); text-shadow: 0 0 34px rgba(34, 197, 94, 0.45); }
:lang(zh-Hant) .hero h1, :lang(zh-Hans) .hero h1 { font-style: normal; font-size: clamp(44px, 7vw, 84px); line-height: 1.15; }
:lang(zh-Hant) .hero h1 .l1, :lang(zh-Hans) .hero h1 .l1 { font-style: normal; }
.heroart > img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.cta.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 14px; background: var(--acc); color: var(--ink); font-weight: 800; font-size: 16px; box-shadow: 0 10px 34px rgba(34, 197, 94, 0.35); cursor: default; }
.store svg { width: 22px; height: 22px; }
.ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 34, 25, 0.6); color: var(--text); font-weight: 700; }
.ghost:hover { text-decoration: none; border-color: var(--acc); }
.ghost.small { min-height: 42px; font-size: 15px; margin-top: auto; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .herogrid { grid-template-columns: 1fr; gap: 28px; }
  .heroart { order: -1; }
  .heroart > img { border-radius: 20px; }
}

/* ---------- facts ---------- */
.facts { padding: 18px 0 30px; }
.factgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.fact .num { font: italic 900 30px/1 var(--head); color: var(--acc); display: block; margin-bottom: 10px; }
.fact p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .factgrid { grid-template-columns: 1fr; } }

/* ---------- blocks ---------- */
.block { padding: 84px 0; }
.block.alt { background: linear-gradient(180deg, var(--page2), var(--page)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .block { padding: 60px 0; } }

/* Phones: the real screens in a thin frame. */
.phone { margin: 0; border-radius: 34px; padding: 7px; background: #030806; border: 1.5px solid #3b4d44; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); overflow: hidden; }
.phone img { border-radius: 27px; width: 100%; height: auto; }
.phone.pod img { aspect-ratio: 390 / 770; object-fit: cover; object-position: top; }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step .phone { margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: var(--ink); font: italic 900 18px/1 var(--head); margin-bottom: 10px; }
.stepcopy p { color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step .phone { max-width: 300px; }
}

.kinds { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kinds li { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.kinds p { color: var(--muted); margin: 0; font-size: 15.5px; }
.dot { display: block; width: 26px; height: 9px; border-radius: 5px; margin-bottom: 12px; }
.d0 { background: var(--acc); box-shadow: 0 0 14px rgba(34, 197, 94, 0.6); }
.d1 { background: var(--sky); box-shadow: 0 0 14px rgba(56, 189, 248, 0.5); }
.d2 { background: var(--teal); box-shadow: 0 0 14px rgba(45, 212, 191, 0.5); }
.d3 { background: var(--gold); box-shadow: 0 0 14px rgba(242, 193, 78, 0.45); }
.sports { color: var(--muted); max-width: 820px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.card { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kinds, .pair { grid-template-columns: 1fr; } }

.resultsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.points li { padding-left: 18px; border-left: 3px solid var(--acc); }
.points p { color: var(--muted); margin: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo .lower { margin-top: 64px; }
@media (max-width: 900px) { .resultsgrid { grid-template-columns: 1fr; gap: 36px; } .duo { max-width: 560px; } }

.whogrid, .safegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 1000px) { .whogrid, .safegrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .whogrid, .safegrid { grid-template-columns: 1fr; } }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.plan.pick { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 18px 50px rgba(34, 197, 94, 0.18); }
.pickTag { position: absolute; top: -12px; left: 20px; padding: 3px 10px; border-radius: 999px; background: var(--acc); color: var(--ink); font-size: 12px; font-weight: 800; }
.plan h3 { font: italic 900 30px/1 var(--head); text-transform: uppercase; margin-bottom: 6px; }
:lang(zh-Hant) .plan h3, :lang(zh-Hans) .plan h3 { font-style: normal; font-size: 26px; }
.plan .muted { font-size: 15px; min-height: 48px; }
.price { margin: 8px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.price b { font: italic 900 40px/1 var(--head); }
.price b.text { font-size: 28px; }
:lang(zh-Hant) .price b.text, :lang(zh-Hans) .price b.text { font-style: normal; font-size: 24px; }
.price span { color: var(--muted); }
.price small { width: 100%; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; font-size: 15.5px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--acc); border-bottom: 2.5px solid var(--acc); transform: rotate(-45deg); }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .plan .muted { min-height: 0; } }

/* ---------- privacy ---------- */
.safe { background: radial-gradient(120% 90% at 80% 0%, rgba(34, 197, 94, 0.16), transparent 60%), var(--page); }

/* ---------- need + faq ---------- */
.needgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.need { padding: 0; margin: 20px 0 0; list-style: none; counter-reset: n; display: grid; gap: 18px; }
.need li { counter-increment: n; position: relative; padding-left: 50px; }
.need li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--acc); font: italic 900 20px/34px var(--head); text-align: center; }
.need p { color: var(--muted); margin: 0; }
.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--acc); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }
@media (max-width: 900px) { .needgrid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- closing + footer ---------- */
.closing { padding: 90px 0; text-align: center; background: radial-gradient(60% 120% at 50% 100%, rgba(34, 197, 94, 0.22), transparent 70%); }
.closing h2 { font-size: clamp(36px, 6vw, 68px); }
.foot { border-top: 1px solid var(--line); padding: 40px 0 30px; background: #050e0a; }
.footgrid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.footgrid .muted { margin-top: 10px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footlinks a { color: #cfe0d6; font-size: 15px; }

/* ---------- text pages ---------- */
.doc { padding: 56px 0 80px; }
.narrowdoc { max-width: 760px; }
.doc h1 { font: italic 900 clamp(42px, 7vw, 68px)/1 var(--head); text-transform: uppercase; margin-bottom: 14px; }
.doc h2 { font-size: 28px; margin: 38px 0 12px; }
:lang(zh-Hant) .doc h2, :lang(zh-Hans) .doc h2 { font-size: 24px; }
.doc p, .doc li { color: #d3e2d9; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.mailbox { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.safegrid + p { margin-top: 22px; }
:lang(zh-Hant) .doc h1, :lang(zh-Hans) .doc h1 { font-style: normal; line-height: 1.2; }

/* The wordmark (a picture cut from the brand image). */
.wordmark { height: 30px; width: auto; }
.foot .wordmark { height: 34px; }
.heroLogo { width: min(440px, 80%); height: auto; margin: 0 0 6px -4px; }
.tagline { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: #dcebe2; margin: 0 0 22px; letter-spacing: 0.2px; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); }
:lang(zh-Hant) .hero h1, :lang(zh-Hans) .hero h1 { font-size: clamp(36px, 5.4vw, 64px); }

/* ================= motion and sport (site.js) ================= */
/* Fade in as a section scrolls into view; --d staggers cards in a row. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero stage: the welcome film's ninja run between two pods. */
.stage { position: relative; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 80% at 72% 70%, rgba(34, 197, 94, 0.32), transparent 65%), linear-gradient(180deg, #0c2418 0%, #07130e 75%); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.stagebg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.14; filter: blur(2px) saturate(1.2); }
.air { position: absolute; inset: 0; width: 100%; height: 100%; }
.air path { fill: none; stroke: #4ade80; stroke-width: 1.2; opacity: 0.25; stroke-dasharray: 6 10; animation: air 2.4s linear infinite; }
@keyframes air { to { stroke-dashoffset: -64; } }
.floor { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.7) 30%, rgba(34, 197, 94, 0.7) 80%, transparent); box-shadow: 0 0 18px rgba(34, 197, 94, 0.6); }
.rpod { position: absolute; border-radius: 22%; background: #10161b; border: 2px solid #000; box-shadow: 0 0 0 1.5px #3b4d44; display: flex; align-items: center; justify-content: center; }
.rpod i { position: absolute; inset: 6% 9%; border-radius: 16%; background: #1b3a2a; transition: background 0.08s, box-shadow 0.08s; }
.rpod b { position: relative; font: italic 900 22px/1 var(--head); color: #6ee7a0; }
.rpod.lit i { background: linear-gradient(180deg, #86efac, #22c55e 45%); box-shadow: 0 0 34px 10px rgba(34, 197, 94, 0.55); }
.rpod.lit b { color: #052e16; }
.rpod.hit::after { content: ''; position: absolute; inset: -10px; border-radius: 30%; border: 2px solid #4ade80; animation: hit 0.45s ease-out forwards; }
@keyframes hit { from { opacity: 0.9; transform: scale(0.8); } to { opacity: 0; transform: scale(1.7); } }
.rt { position: absolute; transform: translateX(-50%); font: italic 900 26px/1 var(--head); color: var(--acc); text-shadow: 0 0 14px rgba(34, 197, 94, 0.7); opacity: 0; pointer-events: none; white-space: nowrap; }
.ninja { position: absolute; left: 0; will-change: transform; }
.ninja img { width: 100%; height: 100%; display: block; }
.stagecap { margin: 12px 4px 0; font: italic 800 18px/1.2 var(--head); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
:lang(zh-Hant) .stagecap, :lang(zh-Hans) .stagecap { font-style: normal; font-size: 16px; letter-spacing: 1px; }
@media (max-width: 860px) { .stage { border-radius: 20px; } .rt { font-size: 20px; } }

/* Line icons on cards. */
.licon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--acc2); margin-bottom: 14px; }
.licon svg { width: 24px; height: 24px; }
.facthead { display: flex; align-items: center; justify-content: space-between; }
.facthead .num { margin: 0 0 14px; }

/* What athletes train. */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.skill { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.skill p { color: var(--muted); font-size: 15.5px; }
.skill .try { margin: 10px 0 0; font-size: 14px; color: #cfe0d6; }
.skill .try span { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(34, 197, 94, 0.15); color: var(--acc2); font-weight: 700; font-size: 12px; }
.skart { width: 64px; height: 64px; margin-bottom: 12px; }
.skart svg { width: 64px; height: 64px; overflow: visible; }
.skart * { stroke-linecap: round; stroke-linejoin: round; }
.sk-pod, .sk-pad { fill: #10161b; stroke: #3b4d44; stroke-width: 1.5; }
.sk-screen { fill: #1b3a2a; }
.sk-screen.flash { animation: flash 1.6s infinite; }
@keyframes flash { 0%, 40% { fill: #1b3a2a; } 45%, 80% { fill: #22c55e; } 100% { fill: #1b3a2a; } }
.sk-ray { stroke: #4ade80; stroke-width: 2.5; opacity: 0; animation: ray 1.6s infinite; }
@keyframes ray { 0%, 44% { opacity: 0; } 50%, 75% { opacity: 1; } 100% { opacity: 0; } }
.sk-time { fill: #4ade80; font: italic 900 12px var(--head); opacity: 0; animation: ray 1.6s infinite 0.1s; }
.sk-foot ellipse { fill: #4ade80; }
.sk-foot.f1 { animation: step 1.2s infinite; }
.sk-foot.f2 { animation: step 1.2s infinite 0.6s; }
@keyframes step { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.sk-dot { fill: #38bdf8; animation: ray 2.4s infinite; }
.sk-dot.d2 { animation-delay: 0.6s; } .sk-dot.d3 { animation-delay: 1.2s; } .sk-dot.d4 { animation-delay: 1.8s; }
.sk-path { fill: none; stroke: #3b6d52; stroke-width: 2.5; stroke-dasharray: 5 6; }
.sk-run { fill: #4ade80; filter: drop-shadow(0 0 4px #22c55e); }
.sk-line { stroke: #38bdf8; stroke-width: 3; animation: dash 0.9s infinite; }
.sk-line.l2 { animation-delay: 0.2s; stroke: #2dd4bf; } .sk-line.l3 { animation-delay: 0.4s; stroke: #22c55e; }
@keyframes dash { 0% { transform: translateX(-6px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(8px); opacity: 0; } }
.sk-arrow { fill: none; stroke: #4ade80; stroke-width: 4; animation: push 0.9s infinite; }
@keyframes push { 50% { transform: translateX(5px); } }
.sk-head { fill: none; stroke: #4ade80; stroke-width: 2.5; }
.sk-court { fill: none; stroke: #3b6d52; stroke-width: 1.5; }
.sk-base { fill: #38bdf8; }
.sk-screen.go { animation: go 2s infinite; }
.sk-screen.stop { animation: stop 2s infinite; }
@keyframes go { 0%, 45% { fill: #22c55e; } 50%, 100% { fill: #1b3a2a; } }
@keyframes stop { 0%, 45% { fill: #1b3a2a; } 50%, 100% { fill: #ef4444; } }
.sk-word { fill: var(--muted); font: italic 800 10px var(--head); letter-spacing: 1px; }
.sk-pad { animation: padlit 1.2s infinite; }
@keyframes padlit { 0%, 40% { fill: #10161b; } 45%, 70% { fill: #22c55e; } 100% { fill: #10161b; } }
.sk-fist { fill: #d9f99d; animation: punch 1.2s infinite; }
.sk-fist path { stroke: #d9f99d; stroke-width: 4; }
@keyframes punch { 0%, 30% { transform: translateX(0); } 45% { transform: translateX(12px); } 70%, 100% { transform: translateX(0); } }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .skart *, .air path { animation: none !important; } }

/* Drill kinds: each card runs its pattern on a small court. */
.mini { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; border-radius: 12px; margin-bottom: 14px; background: #0b1a13; }
.kinds li { padding: 14px 14px 18px; }

/* Sport drills on their real courts. */
.sportgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.sport { margin: 0; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.sport .court { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; }
.sport figcaption { padding: 14px 16px 18px; display: grid; gap: 3px; }
.sport .sname { font: italic 800 13px/1 var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: var(--acc); }
:lang(zh-Hant) .sport .sname, :lang(zh-Hans) .sport .sname { font-style: normal; letter-spacing: 1px; }
.sport b { font-size: 17px; }
.sport figcaption span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .sportgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sportgrid { grid-template-columns: 1fr; } }

/* Build your own: the four steps acted out. */
.builder { position: relative; margin-top: 18px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.bcourt { width: 100%; height: auto; aspect-ratio: 400 / 260; border-radius: 12px; background: #0b1a13; grid-row: span 2; }
.bcourt.swap { animation: swap 0.45s ease; }
@keyframes swap { from { opacity: 0.2; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.bpod { transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.bpod .glow { fill: transparent; }
.bpod .scr { fill: #05080a; transition: fill 0.1s; }
.bpod text { fill: #fff; font: 10px 'Barlow Condensed', sans-serif; stroke: #000; stroke-width: 2.5; paint-order: stroke; }
.bpod.lit .scr { fill: #22c55e; }
.bpod.lit .glow { fill: rgba(34, 197, 94, 0.45); }
.bsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bsteps li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; font-weight: 600; transition: all 0.3s; }
.bsteps li span { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font: italic 900 13px/1 var(--head); }
.bsteps li.on { color: var(--text); border-color: var(--acc); background: rgba(34, 197, 94, 0.12); }
.bsteps li.on span { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.bsteps li.done { color: #cfe0d6; }
.bsteps li.done span { color: var(--acc); }
.bchips { display: flex; flex-wrap: wrap; gap: 6px; align-self: end; opacity: 0.35; transition: opacity 0.3s; }
.builder[data-step="2"] .bchips, .builder[data-step="3"] .bchips { opacity: 1; }
.bchips span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: all 0.2s; }
.bchips span.on { border-color: var(--acc); color: var(--ink); background: var(--acc); font-weight: 700; }
.bsaved { justify-self: start; padding: 6px 12px; border-radius: 10px; background: var(--acc); color: var(--ink); font-weight: 800; font-size: 14px; opacity: 0; transform: translateY(-6px); transition: all 0.3s; }
.bsaved.on { opacity: 1; transform: none; }
@media (max-width: 560px) { .builder { grid-template-columns: 1fr; } .bcourt { grid-row: auto; } }

/* Touch or wave: the app's icons, gently moving. */
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ansTile { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 10px; border-radius: 14px; border: 1px solid var(--line); background: #0b1a13; }
.ansTile b { font-size: 17px; }
.ansTile small { color: var(--muted); font-size: 13.5px; }
.ans { width: 64px; height: 60px; margin-bottom: 6px; overflow: visible; }
.ans .hand { stroke: var(--text); }
.ans .mark { stroke: var(--acc); }
.ans-touch .hand { animation: tap 1.4s infinite; }
.ans-touch .mark { animation: ray 1.4s infinite; }
@keyframes tap { 0%, 100% { transform: translateY(-2px); } 45% { transform: translateY(1.5px); } }
.ans-wave .hand { animation: wave 1.6s infinite ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
.ans-wave .mark { animation: ray 1.6s infinite; }
@keyframes wave { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .ans * { animation: none !important; } }

/* ================= round 2: ribbons, results, real-court skills ================= */
/* Hero stage: the court floor from the app and flowing light ribbons (no dashed air lines). */
.stage { background: #07130e; }
.stagefloor { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 74% 78%, rgba(34, 197, 94, 0.28), transparent 70%), linear-gradient(180deg, rgba(7, 19, 14, 0.45), transparent 40%); }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.rib { fill: none; stroke-linecap: round; animation: flow 7s linear infinite; }
.rib.r1 { animation-duration: 9s; }
.rib.r2 { animation-duration: 5.6s; }
@keyframes flow { to { transform: translateX(-400px); } }
.spark { fill: none; stroke: #e7fff1; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 60 1940; animation: spark 2.8s linear infinite; opacity: 0.85; }
.spark.s1 { animation-delay: 0.9s; animation-duration: 3.4s; }
.spark.s2 { animation-delay: 1.7s; animation-duration: 3s; }
@keyframes spark { from { stroke-dashoffset: 400; } to { stroke-dashoffset: -1600; } }
.stage .rpod, .stage .ninja, .stage .rt, .stage .floor { z-index: 1; }
.air { display: none; }
@media (prefers-reduced-motion: reduce) { .rib, .spark { animation: none !important; } }

/* The result: the athlete picture beside what they gain. */
.gain { background: radial-gradient(70% 60% at 20% 40%, rgba(34, 197, 94, 0.14), transparent 70%), var(--page); }
.gaingrid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.gainart { position: relative; }
.gainart img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(34, 197, 94, 0.18); }
.gains { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.gains li { display: flex; gap: 14px; align-items: flex-start; }
.gains .licon { flex: none; margin: 0; }
.gains h3 { margin-bottom: 4px; }
.gains p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .gaingrid { grid-template-columns: 1fr; gap: 32px; } .gainart { max-width: 520px; } }
@media (max-width: 560px) { .gains { grid-template-columns: 1fr; } }

/* Athlete band: the clone run from the app banner, full width, at the top of the skills section. */
.train { padding-top: 84px; }
.athleteband { height: clamp(150px, 22vw, 300px); background-size: cover; background-position: 62% 46%; margin-bottom: 56px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent); }

/* Skills: real library drills on their courts; footwork (squash six-point) large. */
.skillgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.skill { margin: 0; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.skill .court { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; background: #0b1a13; }
.skill.feature { grid-row: span 2; }
.skill.feature .court { aspect-ratio: auto; flex: 1; min-height: 360px; height: 100%; background: #26333a; }
.skill figcaption { padding: 14px 16px 18px; display: grid; gap: 3px; }
.skill .sname { font: italic 800 14px/1 var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: var(--acc); }
:lang(zh-Hant) .skill .sname, :lang(zh-Hans) .skill .sname { font-style: normal; letter-spacing: 1px; font-size: 15px; }
.skill b { font-size: 17px; }
.skill figcaption span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .skillgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skillgrid { grid-template-columns: 1fr; } .skill.feature { grid-row: auto; } .skill.feature .court { min-height: 0; aspect-ratio: 176 / 260; } }

/* ================= round 3: real phones, courts strip, hero order ================= */
/* Phones with a metal rim, side buttons, a status bar, the Dynamic Island and the home bar. */
.phone { position: relative; margin: 0; padding: 7px; border-radius: 46px; overflow: visible; background: linear-gradient(145deg, #3d4943, #161c19 40%, #2e3833); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12); border: 0; }
.phone .glass { position: relative; border-radius: 39px; overflow: hidden; background: #07130e; box-shadow: 0 0 0 3px #050706; }
.phone .sbar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 4px 26px 0 30px; color: #f1f7f3; font: 600 13px/1 -apple-system, 'Segoe UI', sans-serif; background: #07130e; }
.phone .sbar svg { width: 46px; height: 11px; fill: currentColor; color: #f1f7f3; }
.phone .isl { position: absolute; top: 9px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #000; z-index: 2; }
.phone img { display: block; width: 100%; height: auto; border-radius: 0; }
.phone .homebar { position: absolute; bottom: 7px; left: 50%; width: 36%; height: 4px; transform: translateX(-50%); border-radius: 3px; background: #e6eee8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.phone .pbtn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a332f, #55625b); }
.phone .b1 { left: -3px; top: 17%; height: 7%; }
.phone .b2 { left: -3px; top: 27%; height: 11%; }
.phone .b3 { right: -3px; top: 23%; height: 14%; }
.phone.pod img { aspect-ratio: 390 / 770; object-fit: cover; object-position: top; }
.duo { align-items: start; }
@media (max-width: 560px) {
  .step .phone { max-width: 280px; margin-left: auto; margin-right: auto; }
  .phone { border-radius: 40px; }
  .phone .glass { border-radius: 33px; }
}

/* Hero pods: phones standing on a kickstand, with a screen, a camera island and a metal rim. */
.rpod { border-radius: 18% / 9%; background: #0b0f0d; border: 0; box-shadow: 0 0 0 1.5px #64746b, 0 10px 24px rgba(0, 0, 0, 0.5); padding: 0; }
.rpod i { inset: 4.5% 6%; border-radius: 14% / 7%; background: #142a1f; }
.rpod .isl { position: absolute; top: 7.5%; left: 50%; width: 34%; height: 5%; transform: translateX(-50%); border-radius: 6px; background: #000; z-index: 1; }
.rpod b { font-size: 20px; opacity: 0.9; }
.rpod .stand { position: absolute; left: 22%; right: 22%; bottom: -6%; height: 34%; background: linear-gradient(180deg, #1c2420, #0a0e0c); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); z-index: -1; transform: translateX(14%) skewX(-8deg); }
.rpod.lit i { background: radial-gradient(120% 70% at 50% 30%, #bbf7d0, #22c55e 55%, #15803d); }

/* Hero: text first on phones (the run comes after the title), no big wordmark. */
@media (max-width: 860px) { .heroart { order: 0; } }
.heroLogo { display: none; }
.tagline { margin-top: 8px; }

/* Every court, every sport: two rows sliding past in opposite directions. */
.courtsband { overflow: hidden; }
.marquee { position: relative; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee:first-of-type { margin-top: 30px; }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.cc { margin: 0; width: 230px; flex: none; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.cc svg { display: block; width: 100%; height: 150px; background: #0b1a13; }
.cc figcaption { padding: 10px 12px 12px; font-size: 14.5px; font-weight: 700; color: var(--text); display: grid; gap: 2px; }
.cc figcaption span { font: italic 800 12px/1 var(--head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--acc); }
:lang(zh-Hant) .cc figcaption span, :lang(zh-Hans) .cc figcaption span { font-style: normal; letter-spacing: 1px; }
.cpod .glow { fill: transparent; transition: fill 0.12s; }
.cpod .scr { fill: #05080a; transition: fill 0.12s; }
.cpod.lit .scr { fill: #22c55e; }
.cpod.lit .glow { fill: rgba(34, 197, 94, 0.5); }
@media (max-width: 560px) { .cc { width: 190px; } .cc svg { height: 124px; } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } .marquee { overflow-x: auto; } }

/* ================= round 4: shadow clones, athlete pictures ================= */
/* Shadow clones behind the dashing athlete (site.js): the pose's shape in teal, fading out. */
.clone { position: absolute; left: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(45, 212, 191, 0.75)); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.clone.fade { animation: clone 0.62s ease-out forwards; }
@keyframes clone { from { opacity: 0.55; } to { opacity: 0; } }

/* Athlete pictures on the fact and result cards. */
.apic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.fact.pic { padding: 0; overflow: hidden; }
.pichead { position: relative; }
.pichead .num { position: absolute; right: 14px; bottom: 10px; margin: 0; font-size: 34px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.factbody { padding: 18px 20px 22px; }
.gaincards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.gaincard { margin: 0; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.gaincard img { transition: transform 0.6s ease; }
.gaincard:hover img { transform: scale(1.04); }
.gaincard figcaption { padding: 16px 18px 20px; }
.gaincard p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .gaincards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gaincards { grid-template-columns: 1fr; } }
/* The court strip right under the hero: a little less space above it. */
.courtsband { padding-top: 36px; padding-bottom: 40px; }

/* Hero: a still athlete photo (the ninja run was removed). */
.heroPhoto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(34, 197, 94, 0.18); }
@media (max-width: 860px) { .heroPhoto { border-radius: 20px; } }

/* Hero: one wide photo (the athlete on the right, dark on the left for the title). */
.hero.wide { position: relative; padding: 0; min-height: clamp(520px, 44vw, 760px); display: flex; align-items: center; overflow: hidden; }
.hero.wide .heroBg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero.wide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 18, 12, 0.85) 0%, rgba(4, 18, 12, 0.35) 45%, transparent 65%), linear-gradient(0deg, var(--page), transparent 18%); pointer-events: none; }
.hero.wide .wrap { position: relative; z-index: 1; padding: 64px 0; }
.hero.wide .herotext { max-width: 560px; }
@media (max-width: 860px) {
  .hero.wide { display: block; min-height: 0; }
  .hero.wide .heroBg img { position: relative; height: auto; aspect-ratio: 3 / 2; object-position: center; }
  .hero.wide::after { display: none; }
  .hero.wide .heroBg { position: relative; display: block; }
  .hero.wide .heroBg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--page) 0%, transparent 35%); }
  .hero.wide .heroBg img { display: block; }
  .hero.wide .wrap { padding: 4px 0 36px; }
}
