@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #0b0a12;
  --ink-2: #14131d;
  --ink-3: #1d1b2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f6f4ff;
  --muted: #a6a3bb;
  --dim: #8e8ba5;
  --lime: #c6ff3d;
  --orange: #ff8a3d;
  --violet: #a58bff;
  --red: #ff5468;
  --cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --display: 'Bricolage Grotesque', var(--cjk);
  --sans: Inter, var(--cjk);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

.s-optimized, .s-works { --c: var(--lime); --on: #10140a; }
.s-fills { --c: var(--violet); --on: #140f2a; }
.s-letterboxed { --c: var(--orange); --on: #2a1405; }
.s-broken { --c: var(--red); --on: #2b070d; }
.s-unknown { --c: #3b3950; --on: #e9e7f7; }
.s-skip { --c: transparent; --on: var(--muted); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lang-zh { --display: var(--cjk); }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s var(--ease);
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(11, 10, 18, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); letter-spacing: -0.02em; font-family: 'Bricolage Grotesque', sans-serif; }
.mark { width: 26px; height: 26px; display: flex; gap: 3px; perspective: 60px; }
.mark i { flex: 1; border-radius: 4px; background: var(--lime); transform-origin: left center; transition: transform 0.6s var(--ease); }
.mark i + i { background: var(--orange); }
.logo:hover .mark i + i { transform: rotateY(-70deg); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.lang { font: 500 13px var(--mono); padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; transition: background 0.2s, color 0.2s; }
.lang:hover { background: var(--text); color: var(--ink); }

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(860px, calc(100svh - 72px));
  padding: clamp(24px, 5vw, 64px) var(--pad) clamp(40px, 6vw, 80px);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); } }
.hero-title {
  margin: 22px 0 0;
  font: 800 clamp(52px, 7.6vw, 118px) / 0.92 var(--display);
  letter-spacing: -0.035em;
}
.lang-zh .hero-title { font-size: clamp(46px, 6.6vw, 104px); letter-spacing: -0.02em; line-height: 1.04; font-weight: 700; }
.hero-title .line { display: block; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line-2 > span { color: var(--lime); animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(0.18em); } }
.hero-sub { max-width: 520px; margin-top: 26px; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); animation: nudge 1s 0.2s var(--ease) both; }
@keyframes nudge { from { transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

/* search */
.search { position: relative; margin-top: 34px; max-width: 620px; animation: nudge 1s 0.3s var(--ease) both; }
.search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-row:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.12); }
.search-ico { width: 20px; height: 20px; margin-left: 12px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input[type='search'] { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 12px 8px; font-size: 16px; }
.search input[type='search']::placeholder { color: var(--dim); }
.search input[type='search']::-webkit-search-cancel-button { display: none; }
.store { display: flex; padding: 3px; border-radius: 12px; background: var(--ink); flex: none; }
.store label { position: relative; cursor: pointer; }
.store input { position: absolute; opacity: 0; pointer-events: none; }
.store span { display: block; padding: 7px 10px; border-radius: 9px; font: 500 12px var(--mono); color: var(--dim); transition: background 0.2s, color 0.2s; }
.store input:checked + span { background: var(--ink-3); color: var(--text); }
.store input:focus-visible + span { outline: 2px solid var(--lime); }
.search button[type='submit'] {
  flex: none;
  padding: 13px 22px;
  border-radius: 13px;
  background: var(--lime);
  color: #10140a;
  font: 700 15px var(--display);
  font-family: 'Bricolage Grotesque', var(--cjk);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.search button[type='submit']:hover { transform: translateY(-1px); background: #d4ff6a; }
.search-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  list-style: none;
  padding: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  max-height: 420px;
  overflow: auto;
}
.search-list li a, .search-list li.empty { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; }
.search-list li.empty { display: block; color: var(--muted); font-size: 14px; }
.search-list li a[aria-selected='true'], .search-list li a:hover { background: var(--ink-3); }
.search-list img { width: 40px; height: 40px; border-radius: 10px; }
.search-list strong { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-list small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* device */
.device-wrap { position: relative; --w: clamp(160px, 17.5vw, 262px); --h: calc(var(--w) * 1.82); display: grid; justify-items: center; gap: 28px; }
.device {
  position: relative;
  width: calc(var(--w) * 2);
  height: var(--h);
  transform-style: preserve-3d;
  transform: perspective(1800px) rotateX(10deg) rotateY(-16deg) rotateZ(1deg);
  transition: transform 1.2s var(--ease);
}
.device-wrap.is-folded .device { transform: perspective(1800px) rotateX(8deg) rotateY(-22deg) translateX(calc(var(--w) * 0.5)); }
.panel { position: absolute; top: 0; width: var(--w); height: 100%; transform-style: preserve-3d; }
.panel-l { left: 0; }
.panel-r { left: var(--w); transform-origin: left center; transition: transform 1.25s var(--ease); }
.device-wrap.is-folded .panel-r { transform: rotateY(-178deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-back { transform: rotateY(180deg); }
.glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050409;
  border: 7px solid #1e1d29;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.glass::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.panel-l .glass::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 30%, transparent 78%, rgba(0, 0, 0, 0.35)); }
.face-front .glass::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 22%, transparent 70%, rgba(255, 255, 255, 0.04)); }
.face-back .glass::after { background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 40%); }
.panel-l .glass { border-radius: 30px 6px 6px 30px; border-right-width: 0; }
.face-front .glass { border-radius: 6px 30px 30px 6px; border-left-width: 0; }
.face-back .glass { border-radius: 30px; border-width: 7px; }
.panel-l .inner { left: 0; }
.face-front .inner { left: calc(var(--w) * -1 + 7px); }
.inner { position: absolute; top: 0; bottom: 0; width: calc(var(--w) * 2 - 14px); }
.crease {
  position: absolute;
  left: calc(var(--w) - 1px);
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  transform: translateZ(1px);
  transition: opacity 0.4s;
}
.device-wrap.is-folded .crease { opacity: 0; }
.device::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -60px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, 0.7), transparent 70%);
  filter: blur(10px);
  transform: translateZ(-40px);
}

/* mock UI inside the screens */
.inner-lb, .inner-opt { position: absolute; inset: 0; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.inner-lb {
  left: 50%;
  width: 46%;
  transform: translateX(-50%);
  padding: 28px 10px 10px;
  background: #121119;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35);
}
.inner-lb::before, .inner-lb::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54%;
  background: repeating-linear-gradient(135deg, rgba(255, 138, 61, 0.09) 0 6px, transparent 6px 14px);
}
.inner-lb::before { right: 100%; }
.inner-lb::after { left: 100%; }
.inner-opt { display: grid; grid-template-columns: 38% 1fr; background: #121119; opacity: 0; transform: scale(1.04); }
.inner-opt aside { padding: 28px 8px 8px 12px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.inner-opt section { position: relative; padding: 28px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.device-wrap[data-mode='opt'] .inner-lb { opacity: 0; transform: translateX(-50%) scale(0.92); }
.device-wrap[data-mode='opt'] .inner-opt { opacity: 1; transform: none; }
.ui-bar { height: 9px; width: 46%; border-radius: 5px; background: rgba(255, 255, 255, 0.28); margin-bottom: 12px; }
.ui-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.ui-av { width: 22px; height: 22px; border-radius: 50%; flex: none; background: hsl(var(--h) 70% 62%); }
.ui-lines { flex: 1; display: grid; gap: 4px; }
.ui-lines span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.ui-lines span + span { background: rgba(255, 255, 255, 0.1); }
.bubble { height: 22px; border-radius: 11px; background: rgba(255, 255, 255, 0.12); }
.bubble.r { align-self: flex-end; background: var(--lime); opacity: 0.85; }
.ui-compose { margin-top: auto; height: 24px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); }
.outer { padding: 30px 12px 12px; background: #121119; }
.ui-island { position: absolute; top: 9px; left: 50%; width: 30%; height: 12px; border-radius: 8px; background: #000; transform: translateX(-50%); }

.device-toggle { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.device-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background 0.25s, color 0.25s; }
.device-toggle button[aria-pressed='true'] { background: var(--ink-3); color: var(--text); }
.device-toggle .fold-btn { padding: 9px; color: var(--muted); }
.device-toggle .fold-btn:hover { color: var(--text); }
.fold-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--dim)); flex: none; }

/* ticker */
.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 var(--pad);
}
.ticker > div { padding: 28px 24px 26px 0; display: grid; gap: 4px; }
.ticker > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ticker b { font: 700 clamp(34px, 4.2vw, 60px) / 1 'Bricolage Grotesque', var(--cjk); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ticker > div:nth-child(2) b { color: var(--lime); }
.ticker > div:nth-child(3) b { color: var(--orange); }
.ticker span { color: var(--muted); font-size: 14px; }

/* sections */
.section-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 30px; }
.section-head h2, .page-head h1 { font: 800 clamp(34px, 4.6vw, 68px) / 0.98 var(--display); letter-spacing: -0.04em; }
.lang-zh .section-head h2, .lang-zh .page-head h1 { letter-spacing: -0.01em; font-weight: 700; line-height: 1.1; }
.section-head p { color: var(--muted); max-width: 580px; }
.board, .how, .wanted { padding: clamp(64px, 9vw, 130px) var(--pad) 0; }
.ticker + .board { padding-top: clamp(56px, 6vw, 88px); }
.board--page { padding-top: clamp(28px, 5vw, 56px); min-height: 70vh; }
.board--page .search { margin: 0 0 22px; animation: none; }
.board--compact { padding-top: 40px; }
.board--compact .section-head h2 { font-size: clamp(26px, 3vw, 40px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.chip em { font: 500 12px var(--mono); font-style: normal; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-on { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip.is-on em { color: var(--ink); opacity: 0.8; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.tile {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--ink-3); }
.tile[hidden] { display: none; }
.tile-head { display: flex; align-items: center; gap: 11px; padding: 2px 2px 0; min-width: 0; }
.app-icon { border-radius: 23%; flex: none; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.app-icon--blank { display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.tile-name { min-width: 0; display: grid; line-height: 1.25; }
.tile-name strong { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name span { font-size: 12px; color: var(--dim); }
.tile-rank { margin-left: auto; font: 500 12px var(--mono); color: var(--dim); align-self: flex-start; }
.tile-split { display: grid; grid-template-columns: 1fr 2.1fr; gap: 3px; height: 92px; perspective: 600px; }
.half {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 11px;
  background: var(--c);
  color: var(--on);
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.half-o { border-radius: 14px 5px 5px 14px; transform-origin: right center; }
.half-o.s-works { background: var(--ink-3); color: var(--muted); }
.half.s-unknown, .r-half.s-unknown, .dist-seg.s-unknown {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 7px, transparent 7px 14px), var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--muted);
}
.r-o.s-works { background: var(--ink-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.half-i { border-radius: 5px 14px 14px 5px; }
.tile:hover .half-o { transform: rotateY(24deg); }
.half small { font: 500 12px var(--mono); opacity: 0.85; letter-spacing: 0.02em; }
.half b { font: 700 17px/1.05 'Bricolage Grotesque', var(--cjk); letter-spacing: -0.02em; }
.half-o b { font-size: 14px; }
.half em { position: absolute; right: 10px; top: 9px; font: 500 12px var(--mono); font-style: normal; opacity: 0.7; }
.half-i.s-letterboxed::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 22px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 22%, transparent 22% 78%, currentColor 78%);
  opacity: 0.5;
}
.half-i.s-optimized::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 22px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, transparent 0 40%, currentColor 40% 44%, transparent 44%);
  opacity: 0.5;
}
.more { margin-top: 30px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-ghost:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-primary { padding: 14px 24px; border-radius: 14px; background: var(--lime); color: #10140a; font: 700 16px 'Bricolage Grotesque', var(--cjk); transition: transform 0.2s var(--ease); }
.btn-primary:hover { transform: translateY(-1px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 500 12px var(--mono); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* how */
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.how-steps li { padding: 28px 28px 34px 0; }
.how-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.num { display: block; font: 800 64px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.2px var(--lime); }
.how-steps h3 { margin: 18px 0 10px; font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; }
.how-steps p { color: var(--muted); font-size: 15px; }
.legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 40px; }
.legend-item { position: relative; padding: 22px 18px 18px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.legend-item::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.legend-item.s-unknown::before { background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 10px); }
.legend-item dt { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.legend-item dd { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* wanted */
.wanted-list { list-style: none; border-top: 1px solid var(--line); }
.wanted-list a { display: grid; grid-template-columns: 44px 40px minmax(0, 200px) 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.wanted-list a:hover { padding-left: 10px; }
.w-rank { font: 500 13px var(--mono); color: var(--dim); }
.wanted-list strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-bar { height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: 3px; background: var(--orange); transform-origin: left; }
.w-n { font: 500 13px var(--mono); color: var(--muted); }

/* app page */
.app-hero { padding: clamp(20px, 4vw, 48px) var(--pad) 0; }
.crumb { font: 500 13px var(--mono); color: var(--muted); }
.crumb:hover { color: var(--text); }
.app-id { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); margin: 26px 0 30px; }
.app-id .app-icon { width: clamp(64px, 8vw, 96px); height: auto; aspect-ratio: 1; animation: nudge 0.8s var(--ease) both; }
.app-id h1 { margin-top: 6px; font: 800 clamp(32px, 4.8vw, 72px) / 0.98 var(--display); letter-spacing: -0.04em; max-width: 18ch; animation: nudge 0.9s var(--ease) both; }
.lang-zh .app-id h1 { letter-spacing: -0.01em; font-weight: 700; line-height: 1.1; }
.result { display: grid; grid-template-columns: 1fr 1.9fr; gap: 6px; perspective: 1400px; }
.r-half {
  position: relative;
  min-height: clamp(240px, 28vw, 380px);
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--c);
  color: var(--on);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.r-o { border-radius: 30px 8px 8px 30px; transform-origin: right center; animation: unfold-o 1.3s 0.15s var(--ease) both; }
.r-i { border-radius: 8px 30px 30px 8px; animation: nudge 0.9s 0.1s var(--ease) both; }
@keyframes unfold-o { from { transform: rotateY(-100deg); opacity: 0.4; } }
.r-half small { font: 500 13px var(--mono); opacity: 0.88; }
.r-half b { margin-top: 10px; font: 800 clamp(28px, 3.6vw, 56px) / 0.95 'Bricolage Grotesque', var(--cjk); letter-spacing: -0.035em; max-width: 12ch; }
.lang-zh .r-half b { letter-spacing: 0; line-height: 1.1; font-weight: 700; }
.r-half p { margin-top: auto; font-size: 15px; line-height: 1.5; opacity: 0.8; max-width: 34ch; position: relative; z-index: 1; }
.r-screen { position: absolute; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); border: 2px solid currentColor; opacity: 0.35; }
.r-screen--outer { width: clamp(56px, 6vw, 84px); aspect-ratio: 0.52; height: auto; border-radius: 16px; }
.r-screen--inner { width: clamp(150px, 20vw, 300px); aspect-ratio: 1.08; height: auto; border-radius: 22px; display: flex; justify-content: center; overflow: hidden; }
.r-screen--inner span { width: 100%; height: 100%; }
.r-screen--letterboxed span { width: 44%; background: currentColor; opacity: 0.4; }
.r-screen--fills span { width: 100%; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 12px); opacity: 0.4; }
.r-screen--optimized span { background: linear-gradient(90deg, transparent 0 38%, currentColor 38% 40%, transparent 40%); }
.r-screen--broken span { background: linear-gradient(45deg, transparent 48%, currentColor 48% 52%, transparent 52%), linear-gradient(-45deg, transparent 48%, currentColor 48% 52%, transparent 52%); }
.result-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 4px 0; }
.half-state { font-size: 14px; color: var(--muted); margin-right: auto; }
.half-state strong { color: var(--text); font-weight: 600; }
.want { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 600; font-size: 14px; transition: transform 0.2s var(--ease); }
.want:hover { transform: translateY(-1px); }
.want-plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #2a1405; font-weight: 700; transition: transform 0.4s var(--ease); }
.want.is-done .want-plus { transform: rotate(45deg); background: var(--lime); }
.want-n { font: 500 13px var(--mono); color: var(--muted); }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(48px, 6vw, 80px) var(--pad) 0; align-items: start; }
.build-note { font: 600 clamp(20px, 1.9vw, 26px) / 1.3 var(--display); letter-spacing: -0.015em; }
.lang-zh .build-note { letter-spacing: 0; }
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dl div { padding: 14px 0; }
.facts dl div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font: 500 12px var(--mono); color: var(--dim); }
.facts dd { margin-top: 4px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-small { margin: 40px 0 12px; font: 700 18px var(--display); }
.versions { list-style: none; display: grid; }
.versions li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.versions .v { font: 500 13px var(--mono); color: var(--text); min-width: 90px; }
.versions li.after .v { color: var(--lime); }
.report { padding: clamp(20px, 3vw, 34px); border-radius: 28px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 18px; }
.report h2 { font: 800 clamp(26px, 2.6vw, 36px) / 1 var(--display); letter-spacing: -0.03em; }
.report > .muted { margin-top: -8px; font-size: 14px; }
.report fieldset { border: 0; display: grid; gap: 10px; }
.report legend { font: 500 12px var(--mono); color: var(--muted); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all 0.2s var(--ease); }
.seg label:hover span { color: var(--text); border-color: var(--text); }
.seg input:checked + span { background: var(--c); color: var(--on); border-color: var(--c); }
.seg .s-skip input:checked + span { background: var(--ink-3); color: var(--text); border-color: var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.seg .dot { background: var(--c); }
.seg input:checked + span .dot { background: var(--on); }
.form-msg { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: var(--red); }

/* lists */
.page-head { margin-bottom: 26px; }
.results { list-style: none; display: grid; border-top: 1px solid var(--line); max-width: 760px; }
.results a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.results a:hover .arrow { transform: translateX(4px); color: var(--lime); }
.results span { color: var(--dim); font-size: 13px; }
.results .arrow { transition: transform 0.3s var(--ease); }
.timeline { list-style: none; max-width: 820px; }
.tl-day { font: 500 13px var(--mono); color: var(--lime); padding: 28px 0 10px; border-bottom: 1px solid var(--line); }
.tl-item a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tl-item strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item .v { font: 500 12px var(--mono); color: var(--dim); }
.tl-item.is-duo strong { color: var(--lime); }

/* footer */
.footer { margin-top: clamp(64px, 9vw, 120px); padding: 0 var(--pad) 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-mark { display: flex; font: 800 clamp(64px, 20.5vw, 420px) / 0.82 'Bricolage Grotesque', sans-serif; letter-spacing: -0.055em; margin: 36px 0 34px -0.04em; white-space: nowrap; perspective: 1200px; }
.footer-mark span { display: inline-block; transition: transform 1.2s var(--ease); }
.footer-mark span:last-child { transform-origin: left center; }
.footer:hover .footer-mark span:last-child { transform: rotateY(-28deg); }
.footer-mark span:first-child { color: var(--lime); }
.footer-mark span:last-child::after { content: attr(data-text); color: var(--ink-3); }
.footer-meta { display: grid; gap: 8px; color: var(--dim); font-size: 13px; max-width: 760px; }
.footer-links { display: flex; gap: 20px; margin-top: 10px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero::after { display: none; }
  .device-wrap { --w: min(40vw, 190px); margin-top: 10px; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ticker > div:nth-child(4) { border-top: 1px solid var(--line); }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .app-body { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  .search button[type='submit'] { padding: 12px 16px; }
  .result { grid-template-columns: 1fr; }
  .r-o { border-radius: 24px 24px 8px 8px; min-height: 160px; transform-origin: center bottom; }
  .r-i { border-radius: 8px 8px 24px 24px; min-height: 230px; }
  .r-screen--outer { display: none; }
  .r-screen--inner { width: 92px; top: 18px; bottom: auto; right: 18px; border-radius: 12px; }
  .r-half b { max-width: 9ch; }
  @keyframes unfold-o { from { transform: rotateX(90deg); } }
  .legend { grid-template-columns: 1fr; }
  .wanted-list a { grid-template-columns: 30px 36px minmax(0, 1fr) auto; }
  .w-bar { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* device callouts */
.callout {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(20, 19, 29, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  font: 500 12px var(--mono);
  white-space: nowrap;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.callout::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.callout-lb { left: -2%; top: 24%; }
.callout-opt { right: 8%; top: 4%; }
.callout-outer { left: 50%; top: 34%; }
.device-wrap .callout { opacity: 0; transform: translateY(8px); pointer-events: none; }
.device-wrap[data-mode='lb']:not(.is-folded) .callout-lb,
.device-wrap[data-mode='opt']:not(.is-folded) .callout-opt,
.device-wrap.is-folded .callout-outer { opacity: 1; transform: none; }
@media (max-width: 600px) { .callout { display: none; } }

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -10%;
  width: 70%;
  height: 120%;
  background:
    radial-gradient(closest-side at 55% 45%, rgba(165, 139, 255, 0.16), transparent),
    radial-gradient(closest-side at 70% 70%, rgba(198, 255, 61, 0.07), transparent);
  pointer-events: none;
}
.hero { isolation: isolate; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--dim); animation: nudge 1s 0.4s var(--ease) both; }
.popular a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); transition: border-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.popular a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.popular img { width: 22px; height: 22px; border-radius: 6px; }
.popular .dot { width: 6px; height: 6px; }

.half-meta { position: absolute; left: 11px; top: 26px; font: 500 12px var(--mono); opacity: 0.9; }
.dist { display: flex; gap: 4px; height: 64px; margin: 6px 0 22px; }
.dist-seg { position: relative; min-width: 70px; display: flex; flex-direction: column; justify-content: space-between; padding: 9px 12px; border-radius: 12px; background: var(--c); color: var(--on); overflow: hidden; transform-origin: left; }
.dist-seg b { font: 700 20px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; }
.dist-seg small { font: 500 12px var(--mono); opacity: 0.75; white-space: nowrap; }
.dist.reveal .dist-seg { transform: scaleX(0.2); opacity: 0; transition: transform 1.1s var(--ease), opacity 0.6s; }
.dist.reveal.in .dist-seg { transform: none; opacity: 1; }
.dist.reveal.in .dist-seg:nth-child(2) { transition-delay: 0.08s; }
.dist.reveal.in .dist-seg:nth-child(3) { transition-delay: 0.16s; }
.dist.reveal.in .dist-seg:nth-child(4) { transition-delay: 0.24s; }
.dist.reveal { opacity: 1; transform: none; }
.search { z-index: 20; }
.pill.s-unknown { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.pill.s-unknown i { background: var(--muted); }
.popular .dot.s-unknown { background: var(--dim); }
.r-screen--unknown span { display: grid; place-items: center; font: 800 clamp(40px, 6vw, 88px) / 1 'Bricolage Grotesque', sans-serif; }
.r-screen--unknown span::after { content: '?'; }

/* cross-page morph: tile -> result card */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
.vt-icon { display: block; flex: none; line-height: 0; }
.app-id .vt-icon { display: block; flex: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* SEO round: new structure */
.h1-eyebrow { display: block; margin-bottom: 18px; font: 600 clamp(17px, 1.5vw, 21px) / 1.3 var(--sans); letter-spacing: -0.01em; color: var(--text); }
.lang-zh .h1-eyebrow { letter-spacing: 0; }
.status-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.status-links > span { font: 500 12px var(--mono); color: var(--dim); }
.status-links a:not(.btn-ghost) { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.status-links a:not(.btn-ghost):hover { color: var(--text); border-color: var(--line-2); }
.status-links .btn-ghost { margin-left: auto; }
.status-links .dot.s-unknown, .how-links .dot.s-unknown { background: var(--dim); }
.how-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-weight: 500; }
.how-links a { color: var(--lime); border-bottom: 1px solid rgba(198, 255, 61, 0.3); padding-bottom: 2px; }
.how-links a:hover { border-color: var(--lime); }
.wanted-empty { max-width: 620px; padding: 24px; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px var(--mono); color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.h-meaning { font: 800 clamp(24px, 2.4vw, 32px) / 1.05 var(--display); letter-spacing: -0.025em; margin-bottom: 16px; }
.lang-zh .h-meaning { letter-spacing: 0; font-weight: 700; }
.meaning { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 60ch; }
.meaning:first-of-type { color: var(--text); font-size: 18px; line-height: 1.5; }
.notes-quote { margin: 22px 0 0; padding: 16px 18px; border-left: 3px solid var(--lime); background: var(--ink-2); font-size: 14px; color: var(--muted); }
.notes-quote p { white-space: pre-line; }
.notes-quote cite { display: block; margin-top: 8px; font: 500 12px var(--mono); font-style: normal; color: var(--lime); }
.checked { margin-top: 18px; font: 500 12px var(--mono); color: var(--dim); }
.facts dl { margin-top: 30px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: clamp(40px, 5vw, 64px) var(--pad) 0; }
.pager a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.2s, transform 0.3s var(--ease); }
.pager a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pager small { font: 500 12px var(--mono); color: var(--dim); }
.pager strong { font: 700 20px var(--display); letter-spacing: -0.015em; }
.pager-next { text-align: right; }
.pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pages a { min-width: 42px; padding: 9px 12px; text-align: center; border-radius: 12px; border: 1px solid var(--line-2); font: 500 14px var(--mono); color: var(--muted); }
.pages a.is-on, .pages a:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

/* docs */
.doc { padding: clamp(24px, 5vw, 56px) var(--pad) 0; max-width: 1100px; }
.doc-head { margin: 26px 0 40px; display: grid; gap: 14px; }
.doc-head h1 { font: 800 clamp(34px, 5vw, 72px) / 1 var(--display); letter-spacing: -0.04em; max-width: 20ch; }
.lang-zh .doc-head h1 { letter-spacing: -0.01em; font-weight: 700; line-height: 1.15; }
.doc-lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 60ch; }
.doc-body { max-width: 720px; display: grid; gap: 40px; }
.doc-body h2 { font: 800 clamp(22px, 2.2vw, 30px) / 1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 12px; }
.lang-zh .doc-body h2 { letter-spacing: 0; font-weight: 700; }
.doc-body p { color: #d8d5e8; font-size: 17px; line-height: 1.75; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { margin: 14px 0 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doc-body li { position: relative; padding-left: 22px; color: #d8d5e8; font-size: 17px; }
.doc-body li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 10px; height: 4px; border-radius: 2px; background: var(--lime); }
.doc-faq { display: grid; gap: 10px; }
.doc-faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); padding: 16px 20px; }
.doc-faq summary { cursor: pointer; list-style: none; }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary h3 { display: inline; font: 600 17px var(--sans); }
.doc-faq summary::after { content: '+'; float: right; color: var(--lime); font-weight: 700; transition: transform 0.3s var(--ease); }
.doc-faq details[open] summary::after { transform: rotate(45deg); }
.doc-faq details p { margin-top: 10px; }
.doc-cta .search { margin: 0; animation: none; }

@media (max-width: 600px) {
  .search-row { flex-wrap: wrap; }
  .search-row input[type='search'] { flex: 1 1 60%; }
  .store { display: flex; order: 3; width: 100%; }
  .store label { flex: 1; }
  .store span { text-align: center; padding: 9px 10px; }
  .status-links .btn-ghost { margin-left: 0; }
  .pager strong { font-size: 16px; }
}

/* categories */
.cat-links em { font: 500 12px var(--mono); font-style: normal; color: var(--dim); margin-left: 6px; }
.cats { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.cat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto minmax(220px, 380px); align-items: center; gap: 18px; padding: 16px 20px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.4s var(--ease), background 0.25s; }
.cat:hover { border-color: var(--line-2); background: var(--ink-3); transform: translateX(4px); }
.cat-rank { font: 500 13px var(--mono); color: var(--dim); }
.cat-name { display: grid; gap: 2px; min-width: 0; }
.cat-name strong { font: 700 20px var(--display); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-zh .cat-name strong { letter-spacing: 0; }
.cat-name small { font: 500 12px var(--mono); color: var(--muted); }
.cat-icons { display: flex; }
.cat-icons .app-icon { margin-left: -8px; box-shadow: 0 0 0 2px var(--ink-2); }
.cat-icons .app-icon:first-child { margin-left: 0; }
.dist--compact { height: 30px; margin: 0; gap: 3px; }
.dist--compact .dist-seg { min-width: 0; padding: 0 8px; border-radius: 8px; justify-content: center; }
.dist--compact .dist-seg b { font-size: 12px; }
.kicker-link { color: var(--lime); border-bottom: 1px solid rgba(198, 255, 61, 0.35); }
.kicker-link:hover { border-color: var(--lime); }
.h-link { transition: color 0.2s; }
.h-link:hover { color: var(--lime); }
@media (max-width: 760px) {
  .cat { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; }
  .cat-icons { display: none; }
  .cat .dist--compact { grid-column: 1 / -1; }
}
