:root {
  --black: #000;
  --carbon: #1d1d1f;
  --rule: #2c2c2e;
  --graphite: #3a3a3c;
  --smoke: #86868b;
  --silver: #d2d2d7;
  --cloud: #f5f5f7;
  --lamp: #ffc45c;
  --link: #2997ff;
  --action: #0071e3;
  --wide: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 48px;
  --font: "Inter Variable", "Noto Sans SC Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--black); color: var(--cloud); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font: 17px/1.47 var(--font); letter-spacing: -0.022em; font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
html[lang="zh-CN"] body { letter-spacing: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
[hidden] { display: none !important; }
button { font: inherit; letter-spacing: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--cloud); color: var(--black); transform: translateY(-160%); }
.skip-link:focus { transform: none; text-decoration: none; }

/* site header: the homepage navigation (home.css .site-header) at the same sizes, in this page's dark palette */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; letter-spacing: -0.011em; }
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.1); }
.nav-inner { display: flex; align-items: center; gap: 24px; width: min(100% - 2 * var(--gutter), var(--wide)); height: 100%; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cloud); font-size: 15px; font-weight: 600; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-avatar img { display: block; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: 999px; color: rgba(245, 245, 247, 0.8); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 160ms ease, background-color 160ms ease; }
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: #fff; text-decoration: none; }
.primary-nav a[aria-current="location"] { background: rgba(255, 255, 255, 0.1); }
.primary-nav .nav-cta { margin-left: 6px; padding: 0 14px; color: #fff; background: var(--action); }
.primary-nav .nav-cta:hover { background: #0077ed; }
.menu-toggle { display: none; }
@media (max-width: 1020px) {
  .menu-toggle { position: relative; display: grid; width: 44px; height: 44px; margin-left: auto; padding: 0; place-content: center; gap: 6px; border: 0; border-radius: 999px; background: transparent; color: var(--cloud); cursor: pointer; }
  .menu-toggle span[aria-hidden] { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 240ms ease; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: var(--nav-h) 0 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px; overflow-y: auto; background: var(--black); }
  .primary-nav.is-open { display: flex; animation: menu-in 0.24s ease both; }
  .site-header.menu-active { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--black); }
  .primary-nav a { min-height: 56px; padding: 0; border-radius: 0; color: var(--cloud); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
  .primary-nav a[aria-current="location"] { background: none; }
  .primary-nav .nav-cta { justify-content: center; min-height: 50px; margin: 24px 0 0; border-radius: 999px; font-size: 17px; }
  body.menu-open { overflow: hidden; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* hero: the homepage hero's type sizes; the title is lit by a lamp that sweeps in once, then follows the pointer */
.hero { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.hero-title { width: fit-content; max-width: 100%; margin: 0 auto; padding-bottom: 0.08em; font-size: clamp(46px, 8.2vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
html[lang="zh-CN"] .hero-title { letter-spacing: -0.01em; }
html[lang="zh-CN"] .hero-lead { word-break: keep-all; overflow-wrap: anywhere; }
.hero-lead { max-width: 720px; margin: 18px auto 0; color: #a1a1a6; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; letter-spacing: -0.015em; text-wrap: balance; }
@property --lx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title { background: radial-gradient(circle 2.4em at var(--lx) 40%, #fff6e2 0%, #fff 38%, #8e8e93 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: --lx 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); animation: sweep 2.4s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s backwards; }
}
@keyframes sweep { from { --lx: -40%; } }

/* app: an inspection bench. The photograph and the light are the instrument;
   every message and decision lives in the panel, so the photo never moves or hides. */
.app { --stage: min(640px, 100%, max(320px, calc(100svh - 200px))); width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; scroll-margin-top: calc(var(--nav-h) + 16px); }
.lead { max-width: 30em; margin: 12px auto 0; text-wrap: pretty; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--smoke); }
html[lang="zh-CN"] h2 { letter-spacing: 0; }
.instrument { width: var(--stage); }
.panel { width: var(--stage); margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }

@media (min-width: 960px) {
  .app { --stage: min(640px, max(440px, calc(100svh - 196px)), calc(100vw - 420px)); grid-template-columns: minmax(0, 1fr) var(--stage); column-gap: 56px; justify-items: stretch; align-items: start; }
  .instrument { grid-column: 2; grid-row: 1; }
  .panel { grid-column: 1; grid-row: 1; width: auto; margin-top: 0; padding-top: 4px; }
}

/* segmented controls */
.modes { position: relative; isolation: isolate; display: inline-flex; padding: 3px; border-radius: 980px; background: var(--carbon); }
.modes.has-seg::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: var(--seg-x, 3px); width: var(--seg-w, 0); border-radius: 980px; background: var(--graphite); transition: left 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modes button { min-height: 32px; border: 0; padding: 6px 18px; border-radius: 980px; background: transparent; color: var(--silver); font-size: 14px; cursor: pointer; }
.modes button:hover { color: var(--cloud); }
.modes button[aria-pressed="true"] { background: var(--graphite); color: var(--cloud); font-weight: 600; }
.modes.has-seg button[aria-pressed="true"] { background: transparent; }

/* panel: game status */
.hud-game { align-self: stretch; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.hud-row { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.hud-round { font-size: 15px; font-weight: 600; color: var(--cloud); }
.dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.dot.is-now { background: var(--cloud); }
.dot.is-win { background: var(--lamp); }
.dot.is-loss { background: transparent; box-shadow: inset 0 0 0 1.5px var(--smoke); }
.dot.is-pop { animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.5); }
@keyframes pop { from { transform: scale(2.4); } }
#quit { margin-left: auto; padding-inline: 0; color: var(--smoke); }
#quit:hover { color: var(--cloud); text-decoration: none; }
.hud-numbers { justify-content: space-between; font-size: 15px; color: var(--smoke); }
.hud-score { display: inline-flex; align-items: baseline; gap: 6px; }
.hud-score b { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--cloud); }
.hud-score small { font-size: 15px; }
.worth { display: inline-flex; align-items: center; gap: 10px; }
.worth-bar { position: relative; width: 112px; height: 6px; overflow: hidden; border-radius: 3px; background: var(--graphite); }
.worth-bar i { position: absolute; inset: 0; border-radius: 3px; background: var(--lamp); transform: scaleX(var(--k, 1)); transform-origin: left; transition: transform 1s linear; }
.worth-num { min-width: 2.2ch; text-align: right; font-weight: 600; color: var(--cloud); }
.worth.is-cut .worth-bar i { transition-duration: 0.25s; }
.worth.is-reset .worth-bar i { transition: none; }
.worth.is-cut .worth-num { animation: nudge 0.36s ease; }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.hud-explore { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 32px; font-size: 15px; color: var(--silver); }
.hud-explore .switch { white-space: nowrap; }
.hud-kind { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--cloud); }

.icon-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--smoke); box-shadow: inset 0 0 0 1px var(--graphite); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-btn:hover { color: var(--cloud); }
.icon-btn[aria-pressed="true"] { background: var(--graphite); color: var(--cloud); box-shadow: none; }
@media (hover: none) { #loupeBtn { display: none; } }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-ui { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--graphite); transition: background 0.2s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .switch-ui { background: var(--lamp); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--link); outline-offset: 2px; }
.switch.is-disabled { opacity: 0.4; cursor: default; }

/* stage */
.stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 24px; background: #050505; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); touch-action: pan-y pinch-zoom; cursor: ew-resize; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage[data-mode="play"] { cursor: crosshair; }
.stage[data-mode="reveal"], .stage[data-mode="summary"] { cursor: default; }
.stage.is-dragging { cursor: ew-resize; }
.stage:focus-visible { outline-offset: 4px; }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#photo { transition: opacity 0.32s ease, transform 0.32s ease; }
.stage.is-swapping #photo { opacity: 0; transform: scale(1.015); transition-duration: 0.16s; }
.stage.is-shake { animation: shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
#outline { opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.stage.show-outline #outline { opacity: 1; animation: blink 1.4s ease-in-out 0.3s 2; }
@keyframes blink { 50% { opacity: 0.35; } }
.stage.is-swapping #outline, .stage.is-swapping .marks { opacity: 0; transition: opacity 0.16s; animation: none; }

.marks { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.32s; }
.mark { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; }
.mark-miss { border: 2px solid rgba(255, 255, 255, 0.8); animation: miss 0.9s ease-out forwards; }
@keyframes miss { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.mark-hit { border: 2px solid var(--lamp); animation: hit 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes hit { from { transform: scale(0.3); opacity: 0; } }
.mark-hit::before, .mark-hit::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.mark-hit::before { inset: -22px; background: repeating-conic-gradient(var(--lamp) 0deg 5deg, transparent 5deg 30deg); -webkit-mask: radial-gradient(closest-side, transparent 64%, #000 66%, #000 100%); mask: radial-gradient(closest-side, transparent 64%, #000 66%, #000 100%); animation: spark 0.6s ease-out forwards; }
.mark-hit::after { inset: -2px; border: 2px solid var(--lamp); animation: ring 0.7s ease-out forwards; }
@keyframes spark { from { transform: scale(0.5) rotate(0deg); opacity: 1; } to { transform: scale(1.35) rotate(25deg); opacity: 0; } }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.8); opacity: 0; } }
.float { position: absolute; margin: 0; color: var(--lamp); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%); animation: float 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes float { 0% { opacity: 0; transform: translate(-50%, -10%) scale(0.7); } 18% { opacity: 1; transform: translate(-50%, -110%) scale(1.06); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -230%) scale(1); } }
.toast { position: absolute; margin: 0; padding: 5px 12px; border-radius: 980px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -160%); }
.toast.is-on { animation: toast 1.1s ease-out; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -110%); } 15%, 70% { opacity: 1; transform: translate(-50%, -160%); } 100% { opacity: 0; transform: translate(-50%, -190%); } }
.toast.is-below { transform: translate(-50%, 60%); }
.toast.is-below.is-on { animation-name: toast-below; }
@keyframes toast-below { 0% { opacity: 0; transform: translate(-50%, 20%); } 15%, 70% { opacity: 1; transform: translate(-50%, 60%); } 100% { opacity: 0; transform: translate(-50%, 90%); } }
.pill { position: absolute; top: 16px; left: 50%; padding: 6px 14px; border-radius: 980px; background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--cloud); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%); transition: opacity 0.15s; }
.stage.is-dragging .pill { opacity: 1; }
.cursor { display: none; position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 2px solid var(--link); border-radius: 50%; pointer-events: none; }
.cursor::before, .cursor::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--link); }
.cursor::before { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.cursor::after { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
.stage.kbd .cursor { display: block; }
.spinner { position: absolute; left: 0; right: 0; top: 50%; margin-top: -0.7em; text-align: center; font-size: 14px; color: var(--smoke); pointer-events: none; animation: appear 0.2s 0.4s both; }
@keyframes appear { from { opacity: 0; } }

/* lamp rail: ten stops, one per photographed lighting setup */
.controls { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.dial { --x: 44.44%; position: relative; flex: 1; height: 76px; margin: 0 12px; cursor: ew-resize; touch-action: none; }
.dial:focus-visible { outline: none; }
.dial-track { position: absolute; left: 0; right: 0; top: 41px; height: 2px; border-radius: 1px; background: var(--graphite); }
.dial-stops { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.dial-stops li { --w: 0; --h: 0; position: absolute; top: 0; bottom: 0; left: calc((var(--i) - 1) / 9 * 100%); width: 0; }
.dial-stops li::before { content: ""; position: absolute; left: -3px; bottom: 48px; width: 6px; height: calc(var(--h) * 24px); border-radius: 3px; background: var(--lamp); opacity: 0.55; transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dial-stops li.is-best::before { opacity: 1; }
.dial-stops li::after { content: ""; position: absolute; left: -3px; top: 39px; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--lamp) calc(var(--w) * 100%), #5a5a5e); }
.dial-stops span { position: absolute; top: 58px; left: 0; transform: translateX(-50%); font-size: 12px; line-height: 16px; color: var(--smoke); font-variant-numeric: tabular-nums; }
.dial-stops li.is-near span { color: var(--cloud); }
.dial-knob { position: absolute; top: 42px; left: var(--x); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--lamp), 0 2px 6px rgba(0, 0, 0, 0.5); transition: transform 0.15s ease; }
.dial:hover .dial-knob { transform: scale(1.08); }
.dial.is-active .dial-knob { transform: scale(1.18); }
.dial:focus-visible .dial-knob { outline: 2px solid var(--link); outline-offset: 5px; }
.dial-read { min-width: 4.6em; text-align: right; font-size: 15px; font-weight: 600; color: var(--cloud); font-variant-numeric: tabular-nums; }

/* panel: cards, actions, parts */
.card { align-self: stretch; }
.card.is-in { animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
html[lang="zh-CN"] .card-title { letter-spacing: 0; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 17px; color: var(--cloud); }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--carbon); fill: none; stroke: var(--lamp); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.is-in .steps li { animation: rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.card-note { margin: 6px 0 0; font-size: 15px; color: var(--smoke); }
.card-actions + .card-note { margin-top: 14px; }
.card-points { margin: 0 0 4px; font-size: 21px; font-weight: 600; color: var(--smoke); font-variant-numeric: tabular-nums; }
.card-points.is-win { color: var(--lamp); }
.card-kicker { margin: 0; font-size: 15px; color: var(--smoke); }
.card-score { margin: 2px 0 0; display: flex; align-items: baseline; gap: 10px; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.card-score small { font-size: 17px; font-weight: 400; letter-spacing: -0.02em; color: var(--smoke); }
.card-facts { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--silver); font-variant-numeric: tabular-nums; }
.card-best { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--lamp); animation: rise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.9s both; }
.tally { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tally button { display: grid; gap: 4px; justify-items: center; width: 100%; padding: 0; border: 0; background: none; color: var(--smoke); font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.tally li { animation: rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms + 250ms); }
.tally img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; opacity: 0.45; transition: opacity 0.15s, transform 0.15s; }
.tally button:hover img { opacity: 0.9; transform: translateY(-2px); }
.tally .is-win { color: var(--lamp); }
.tally .is-win img { opacity: 1; box-shadow: 0 0 0 2px var(--lamp); }

/* buttons */
.btn { min-height: 44px; padding: 11px 22px; border: 0; border-radius: 980px; font-size: 17px; cursor: pointer; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-primary:active { background: #0062c4; }
.btn-ghost { background: transparent; color: var(--cloud); box-shadow: inset 0 0 0 1px #6e6e73; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost:active { background: rgba(255, 255, 255, 0.16); }
.btn-text { padding-inline: 12px; background: none; color: var(--link); }
.btn-text:hover { text-decoration: underline; }
.btn-small { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

.actions { display: flex; align-items: center; gap: 12px; }
.strip { align-self: stretch; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: none; opacity: 0.55; cursor: pointer; transition: opacity 0.15s; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.thumb:hover { opacity: 0.9; }
.thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--cloud); outline-offset: 2px; }
.caption { max-width: 34em; margin: 0; text-wrap: pretty; font-size: 15px; color: var(--silver); }
.caption:empty { display: none; }
.keys { display: none; margin: 0; font-size: 13px; color: var(--smoke); }
.app:has(.stage:focus-visible, .dial:focus-visible) .keys { display: block; }
.fallback { margin: 0; font-size: 13px; color: var(--smoke); }

/* sections */
.how, .carve, .ai { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; padding: 120px 0 0; }
h2 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.how h2, .ai h2 { text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.how h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.how p, .carve p, .ai-facts p { margin: 0; color: #a1a1a6; }

.carve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 64px; }
.carve-copy p { margin-top: 14px; max-width: 28em; }
.range { display: grid; gap: 10px; margin: 30px 0 18px; max-width: 360px; font-size: 14px; color: var(--smoke); }
input[type="range"] { width: 100%; accent-color: var(--lamp); }
.range input { height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; }
.range input::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: var(--graphite); }
.range input::-moz-range-track { height: 2px; border-radius: 1px; background: var(--graphite); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--lamp); }
.range input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--lamp); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.carve .note { margin-top: 18px; font-size: 13px; color: var(--smoke); }
.plate { justify-self: end; width: 100%; max-width: 400px; aspect-ratio: 1; border-radius: 24px; touch-action: none; cursor: crosshair; }

.ai .lead { text-align: center; }
.ai-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 64px; margin-top: 56px; }
.compare { margin: 0; }
.compare-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--silver); }
.compare-tools label { display: inline-flex; align-items: center; gap: 8px; }
.compare-tools select { min-height: 40px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 12px; font: inherit; background: var(--carbon); color: var(--cloud); cursor: pointer; }
.compare .modes { max-width: 100%; }
.compare .modes button { min-height: 44px; padding: 6px clamp(8px, 2vw, 16px); }
.compare button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
#localError { display: block; min-height: 1.5em; margin-top: 12px; color: var(--silver); font-variant-numeric: tabular-nums; }
#caseAlarm { display: block; margin-top: 4px; color: var(--smoke); }
.compare-frame { --pos: 50%; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 24px; background: #050505; }
.compare-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); pointer-events: none; }
.compare-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #fff linear-gradient(90deg, transparent 12px, #1d1d1f 12px 14px, transparent 14px 18px, #1d1d1f 18px 20px, transparent 20px) center / 32px 12px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); transition: transform 0.15s ease; }
.compare-frame:hover .compare-line::after { transform: scale(1.08); }
.compare-frame:active .compare-line::after { transform: scale(1.18); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 4px; }
.tag { position: absolute; bottom: 14px; padding: 4px 10px; border-radius: 980px; background: rgba(0, 0, 0, 0.6); font-size: 13px; pointer-events: none; }
.tag-l { left: 14px; }
.tag-r { right: 14px; }
.compare figcaption { margin-top: 12px; font-size: 14px; color: var(--smoke); text-align: center; }

/* model facts: show the sample, not just the headline */
.fact + .fact { margin-top: 36px; }
.fact h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--cloud); }
html[lang="zh-CN"] .fact h3 { letter-spacing: 0; }
.chart { display: grid; gap: 8px; margin-bottom: 12px; }
.chart-row { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) 3.6em; align-items: center; gap: 12px; font-size: 15px; color: var(--smoke); font-variant-numeric: tabular-nums; }
.chart-row .num { text-align: right; }
.chart-row.is-now { color: var(--cloud); font-weight: 600; }
.chart-bar { width: calc(var(--v) * 100%); height: 12px; border-radius: 3px; background: #5a5a5e; }
.is-now .chart-bar { background: var(--cloud); }
.units { position: relative; width: 100%; max-width: 236px; height: 12px; background: repeating-linear-gradient(90deg, var(--graphite) 0 12px, transparent 12px 16px); }
.units::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--n) * 16px - 4px); background: repeating-linear-gradient(90deg, #8e8e93 0 12px, transparent 12px 16px); }
.is-now .units::after { background: repeating-linear-gradient(90deg, var(--cloud) 0 12px, transparent 12px 16px); }
.ai-facts .fact p { font-size: 15px; }
.ai-facts .ai-status { margin-top: 28px; color: var(--silver); }
.link { font-size: 17px; }

/* guidance: short visible copy, details on request */
.how-lead { max-width: 34em; margin: 16px auto 0; text-align: center; font-size: 19px; line-height: 1.4; }
.how .how-lead { color: var(--smoke); }
.compare-how { margin: 0 0 14px; font-size: 15px; line-height: 1.45; text-align: left; color: var(--silver); }
.more { text-align: left; }
.more > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 980px; color: var(--cloud); font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.more-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cloud); color: var(--black); transition: transform 0.24s ease, background-color 0.2s ease; }
.more-icon::before, .more-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: currentColor; }
.more-icon::after { transform: rotate(90deg); }
.more > summary:hover .more-icon { background: var(--silver); }
.more[open] .more-icon { transform: rotate(45deg); }
.more-body { margin: 0; padding: 6px 0 4px; font-size: 15px; line-height: 1.55; color: #a1a1a6; }
.more[open] .more-body { animation: more-in 0.26s ease both; }
@keyframes more-in { from { opacity: 0; transform: translateY(-4px); } }
.more-body strong { color: var(--cloud); font-weight: 600; }
.more-list { padding-left: 0; list-style: none; }
.more-list li + li { margin-top: 8px; }
.more-play { align-self: stretch; }
.more-play .more-body { max-width: 34em; }
.more-how { max-width: 44em; margin-top: 44px; }
.more-how .more-body p + p, .ai-facts .more-body p + p { margin-top: 10px; }
.ai-facts .more { margin-top: 14px; }
.ai-facts .ai-since { margin-top: 18px; font-size: 15px; color: #a1a1a6; }
.ai-facts .ai-since + p { margin-top: 14px; }

.foot { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 120px auto 0; padding: 22px 0 48px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.6; color: var(--smoke); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--silver); }
.noscript { text-align: center; color: var(--silver); }

@media (max-width: 760px) {
  .stage { border-radius: 20px; }
  .modes button { padding: 6px 14px; }
  .card-title { font-size: 24px; }
  .card-score { font-size: 56px; }
  .how, .carve, .ai { padding-top: 88px; }
  .how-grid, .carve, .ai-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .plate { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .toast.is-on { opacity: 1; }
}
