.first { display: flex; flex-direction: column; height: 100vh; min-height: 860px; }
.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 0;
  overflow: hidden;
}
.hero-badge, .badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 4px 14px;
  background: var(--bg-panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.hero-badge { min-height: 30px; margin: 0; padding: 4px 14px 4px 12px; }
.dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-a22), 0 0 12px var(--accent-a60); }
.sep { color: var(--text-muted); }
.hero h1 { margin: 26px 0 0; font-size: clamp(28px, 1.4rem + 1.9vw, 48px); line-height: 1.12; letter-spacing: -.02em; text-align: center; }
.hero-lede { max-width: 640px; margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); text-align: center; }
.hero-lede strong { color: var(--text); font-weight: var(--weight-medium); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.devices { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.devices li, .devices a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.devices a { min-height: 24px; }
.devices a:hover { color: var(--text); }
.devices svg { width: 18px; height: 18px; }
.store-chip { margin-left: 4px; padding: 3px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); font: 11.5px var(--font-mono); letter-spacing: .04em; }
.stage { position: relative; flex: none; width: min(1080px, 100%); margin-top: 42px; }
.slate { position: relative; width: 100%; margin: 0; aspect-ratio: 1.43; border-radius: var(--r-device); background: linear-gradient(180deg, var(--device-body-top), var(--device-body-bottom)); color: var(--text); border: 1px solid var(--device-line); box-shadow: var(--shadow-device); }
.slate::before { content: ""; position: absolute; inset: 5px; border-radius: calc(var(--r-device) - 5px); border: 1px solid var(--device-line-inner); pointer-events: none; }
.slate::after { content: ""; position: absolute; top: -1px; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, var(--clear), var(--white-a12), var(--clear)); pointer-events: none; }
.slate-cam { position: absolute; top: 8px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: var(--r-circle); background: var(--screen); box-shadow: 0 0 0 1px var(--device-line); }
.slate-screen { position: absolute; inset: 16px; border-radius: var(--r-screen); background: var(--screen); color: var(--text); overflow: hidden; box-shadow: inset 0 0 0 1px var(--screen-edge); }
.slate-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(162deg, var(--white-a03), var(--clear) 34%); pointer-events: none; z-index: 3; }
.glow { position: absolute; inset: 0; opacity: .78; animation: screen-breathe 8s ease-in-out infinite; }
.bloom { position: absolute; right: -20%; bottom: -28%; width: 78%; height: 92%; background: radial-gradient(closest-side, var(--accent-a40), var(--clear)); filter: blur(34px); }
.beam { position: absolute; transform-origin: 100% 50%; transform: rotate(24deg); border-radius: var(--r-pill); background: linear-gradient(270deg, var(--accent), var(--accent-dark) 36%, var(--clear) 92%); }
.beam-a { right: -6%; top: 58%; width: 84%; height: 130px; filter: blur(40px); opacity: .6; }
.beam-b { right: -4%; top: 46%; width: 70%; height: 36px; filter: blur(15px); opacity: .55; }
.beam-c { right: 16%; top: 76%; width: 62%; height: 92px; filter: blur(30px); opacity: .4; }
.beam-thread { right: -2%; top: 51.5%; width: 66%; height: 1px; background: linear-gradient(270deg, var(--accent-a60), var(--accent-a22) 40%, var(--clear) 88%); opacity: .9; }
.beam-thread-2 { right: 9%; top: 63%; width: 52%; height: 1px; background: linear-gradient(270deg, var(--accent-a40), var(--clear) 80%); opacity: .7; }
.rules { position: absolute; top: 96px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; padding-inline: 12px; }
.rules pre { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--clear); color: var(--rule-ink); font-size: clamp(13px, .55rem + .6vw, 16.5px); line-height: 2.05; letter-spacing: .01em; }
.facts { position: absolute; z-index: 3; top: 284px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(940px, calc(100% - 120px)); margin: 0; padding: 0; list-style: none; }
.fact { position: relative; padding: 14px 16px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); }
.fact::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--clear), var(--accent-a60), var(--clear)); opacity: .7; }
.fact::before { content: ""; position: absolute; left: 20%; right: 20%; bottom: -5px; height: 8px; background: linear-gradient(90deg, var(--clear), var(--accent-a22), var(--clear)); filter: blur(6px); }
.fact-label { display: block; font-size: 12px; line-height: 1.4; letter-spacing: .02em; color: var(--text-muted); }
.fact-core { display: block; margin-top: 8px; padding: 7px 12px; background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.fact-core.is-mono { font: 13.5px/1.45 var(--font-mono); letter-spacing: .04em; }
.ticker { position: relative; z-index: 2; flex: none; display: flex; align-items: center; height: 44px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text-ghost); overflow: hidden; mask-image: linear-gradient(90deg, var(--clear), var(--mask-on) 7%, var(--mask-on) 93%, var(--clear)); }
.ticker-line { padding-left: 24px; white-space: nowrap; font: 11px/1 var(--font-mono); letter-spacing: .14em; }
.ticker-line .hi { color: var(--text-faint); }
.fact-pills { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.fact-pills li { max-width: 100%; padding: 6px 12px; background: var(--bg-panel); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12px; overflow-wrap: anywhere; }
.fact-pills strong { color: var(--text); }
.app-store-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; max-width: 100%; padding: 10px 22px; background: var(--text); color: var(--ink-on-light); border: 1px solid var(--clear); border-radius: var(--r-md); box-shadow: var(--glow-primary); transition: transform var(--ease); }
.app-store-button:hover { transform: translateY(-1px); }
.app-store-button svg { width: 26px; height: 28px; }
.app-store-button small { display: block; font-size: 11px; line-height: 1.3; }
.app-store-button strong { display: block; font-size: 16px; line-height: 1.5; }
.tabs { min-width: 0; }
.tab-window { padding: 16px; }
.tab-panel { scroll-margin-top: 110px; }
.tab-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 290px; }
.tab-detail h3 { margin-top: 0; }
.tab-detail p { color: var(--text-muted); }
.tab-dock, [role="tablist"].tab-dock { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 28px 0 8px; }
.tab-dock [role="tab"] { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 0 1 126px; min-height: 100px; padding: 16px 12px; background: var(--bg-panel); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-lg); font-size: 13px; transition: transform var(--ease), color var(--ease); }
.tab-dock [role="tab"] svg { width: 24px; height: 24px; }
.tab-dock [role="tab"][aria-selected="true"] { transform: translateY(-4px); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-panel); }
.tab-dock [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; width: 5px; height: 5px; bottom: 8px; border-radius: var(--r-circle); background: var(--accent); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding: 12px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-sm); color: var(--text-muted); font-size: 14px; }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.toc.is-sticky { position: sticky; top: 16px; z-index: 10; }
.faq-item { background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 12px; }
.faq-item summary { display: block; position: relative; padding: 22px 54px 22px 24px; min-height: 64px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-answer p { margin: 0; }
.term-card { background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.term-card dt { font: 18px/1.5 var(--font-mono); margin-bottom: 12px; overflow-wrap: anywhere; }
.term-card dd { margin: 0; color: var(--text-muted); }
.device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.device-card > svg { width: 42px; height: 48px; color: var(--text-muted); }
.device-card h3, .device-card p { margin: 0; }
.device-card p { color: var(--text-muted); }
.device-card .btn { margin-top: auto; }
.article-card { display: flex; flex-direction: column; gap: 14px; }
.article-card h3 { margin: 0; }
.article-card p { margin: 0; color: var(--text-muted); }
.article-card .article-link { margin-top: auto; padding-top: 14px; }
.article-meta { font: 12px/1.6 var(--font-mono); color: var(--text-muted); }
.official-shot { width: min(280px, 100%); max-width: 100%; margin: 0 auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); }
.official-shot figcaption { padding-top: 14px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.shot-placeholder { display: grid; place-content: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--bg-panel-2); color: var(--text-muted); text-align: center; font-size: 13px; }
.shot-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 48px; align-items: start; }
.callout { --callout-tone: var(--border-strong); margin: 24px 0; padding: 20px 24px; background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); border-left: 3px solid var(--callout-tone); border-radius: var(--r-md); }
.callout p { margin: 8px 0 0; color: var(--text-muted); }
.callout-success { --callout-tone: var(--success); }
.callout-warn { --callout-tone: var(--warn); }
.callout-error { --callout-tone: var(--error); }
.callout > strong { color: var(--callout-tone); }
.callout:not(.callout-success):not(.callout-warn):not(.callout-error) > strong { color: var(--text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td, .prose th, .prose td, .article-body th, .article-body td { min-width: 7em; padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; }
.data-table th, .prose th, .article-body th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose td, .article-body td { background: var(--bg-panel); color: var(--text-muted); }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.article-store-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.article-store-card > div { flex: 1 1 260px; }
.article-store-card h2 { font-size: 24px; margin: 0 0 12px; }
.article-store-card p { margin: 0; color: var(--text-muted); }
.quicksteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.quicksteps li { padding: 24px; background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); }
.step-number { display: block; font: 13px var(--font-mono); color: var(--text-muted); margin-bottom: 24px; }
.quickstart-link { display: block; margin-top: 24px; text-align: right; }
.dl-fab { position: fixed; right: 24px; bottom: 60px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 16px 9px 13px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-size: 13.5px; font-weight: var(--weight-medium); box-shadow: var(--shadow-panel); transition: border-color var(--ease), transform var(--ease); }
.dl-fab svg { width: 15px; height: 15px; margin-top: -2px; }
.dl-fab:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.preview-page .masthead-bar { max-width: 1180px; }
.preview-page .glow { animation: none; }
.preview-page .dotnav { display: block; }
.preview-page .masthead-bar { gap: 12px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.swatch { margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.swatch::before { content: ""; display: block; height: 64px; }
.swatch figcaption { padding: 12px; font: 12px/1.7 var(--font-mono); overflow-wrap: anywhere; }
.swatch-bg::before { background: var(--bg); }
.swatch-panel::before { background: var(--bg-panel); }
.swatch-panel2::before { background: var(--bg-panel-2); }
.swatch-border::before { background: var(--border); }
.swatch-border-strong::before { background: var(--border-strong); }
.swatch-accent::before { background: var(--accent); }
.swatch-accent-dark::before { background: var(--accent-dark); }
.swatch-text::before { background: var(--text); }
.swatch-muted::before { background: var(--text-muted); }
.swatch-faint::before { background: var(--text-faint); }
.swatch-ghost::before { background: var(--text-ghost); }
.swatch-success::before { background: var(--success); }
.swatch-warn::before { background: var(--warn); }
.swatch-error::before { background: var(--error); }
.swatch-device-line::before { background: var(--device-line); }
.swatch-device-inner::before { background: var(--device-line-inner); }
.swatch-device-top::before { background: var(--device-body-top); }
.swatch-device-bottom::before { background: var(--device-body-bottom); }
.swatch-screen::before { background: var(--screen); }
.swatch-edge::before { background: var(--screen-edge); }
.swatch-rule::before { background: var(--rule-ink); }
.swatch-ink::before { background: var(--ink-on-light); }
.swatch-a60::before { background: var(--accent-a60); }
.swatch-a40::before { background: var(--accent-a40); }
.swatch-a22::before { background: var(--accent-a22); }
.swatch-a10::before { background: var(--accent-a10); }
.swatch-w12::before { background: var(--white-a12); }
.swatch-w06::before { background: var(--white-a06); }
.swatch-w03::before { background: var(--white-a03); }
.swatch-ink14::before { background: var(--ink-a14); }
.swatch-deep::before { background: var(--shadow-deep); }
.swatch-soft::before { background: var(--shadow-soft); }
.swatch-mask::before { background: var(--mask-on); }
.swatch-clear::before { background: var(--clear); }
@keyframes screen-breathe { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@media (max-width: 1100px) {
  .preview-page .dotnav { display: none; }
}
@media (max-width: 760px) {
  .first { height: auto; min-height: 0; }
  .hero { padding: 32px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .hero-lede { font-size: 15px; }
  .hero .btn { min-height: 46px; padding-inline: 18px; }
  .stage { margin-top: 34px; }
  .slate { border-radius: var(--r-mobile-device); }
  .slate::before { border-radius: var(--r-mobile-inner); }
  .slate-screen { inset: 10px; border-radius: var(--r-md); }
  .slate-cam { top: 4px; }
  .rules { top: 26%; }
  .rules pre { font-size: clamp(10px, 2.8vw, 13px); }
  .facts { position: relative; top: auto; left: auto; transform: none; grid-template-columns: 1fr; width: auto; margin: -36px 14px 0; }
  .tab-detail, .shot-layout { grid-template-columns: 1fr; gap: 24px; }
  .quicksteps { grid-template-columns: 1fr; }
  .dl-fab { right: 14px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .tab-dock { gap: 8px; }
  .tab-dock [role="tab"] { flex-basis: calc(33.333% - 8px); min-width: 0; font-size: 12px; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; opacity: .9; }
}