/* AI Girlfriend Score — site styles
   Layout: a field guide to AI companions. Leaderboard first, spec-sheet tables,
   and dating-sim "affection meters" (10 segments) for every score. */

:root {
  --bg: #f8f4f6;
  --surface: #ffffff;
  --surface-2: #f1e9ee;
  --ink: #23172b;
  --ink-2: #4c3f54;
  --muted: #74667a;
  --line: #e6dbe2;
  --line-strong: #cdbcc7;
  --rose: #c22a5e;
  --rose-ink: #9e1f4b;
  --rose-soft: #fbe4ec;
  --on-rose: #ffffff;
  --band: #24162c;
  --band-ink: #f6eef4;
  --band-muted: #bfadc3;
  --good: #15784b;
  --good-soft: #e1f3e8;
  --warn: #935603;
  --warn-soft: #fbefd6;
  --bad: #b1261d;
  --bad-soft: #fce5e3;
  --track: #eadde4;
  --mono-l: 40%;
  --mono-ink: #ffffff;
  --logo-bg: #ffffff;
  --trophy: #f5b82e;
  --trophy-ink: #a86b00;
  --series-1: #c22a5e;
  --series-2: #3b5bdb;
  --chart-context: #cdbcc7;
  --chart-mark: #23172b;
  --shadow: 0 1px 2px rgb(35 23 43 / 0.06), 0 12px 28px -16px rgb(35 23 43 / 0.28);

  --font-display: "Gloock", "Shippori Mincho", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem);
  --fs-3xl: clamp(2.25rem, 1.3rem + 3.6vw, 3.625rem);

  --radius: 12px;
  --wrap: 1180px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130e16;
    --surface: #1b1520;
    --surface-2: #231b29;
    --ink: #f4ecf2;
    --ink-2: #d4c6d2;
    --muted: #a594a8;
    --line: #2f2637;
    --line-strong: #46384f;
    --rose: #ff6f9d;
    --rose-ink: #ff94b6;
    --rose-soft: #3b1828;
    --on-rose: #24091a;
    --band: #0c090e;
    --band-ink: #f4ecf2;
    --band-muted: #a594a8;
    --good: #5cd59b;
    --good-soft: #112a1e;
    --warn: #f1b35a;
    --warn-soft: #2f2310;
    --bad: #ff8b80;
    --bad-soft: #361614;
    --track: #352a3d;
    --mono-l: 70%;
    --mono-ink: #1a1020;
    --logo-bg: #fbf7fa;
    --trophy: #a86b00;
    --trophy-ink: #f5b82e;
    --series-1: #ee4f86;
    --series-2: #5b7cf0;
    --chart-context: #5d4d66;
    --chart-mark: #f4ecf2;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 32px -18px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #130e16;
  --surface: #1b1520;
  --surface-2: #231b29;
  --ink: #f4ecf2;
  --ink-2: #d4c6d2;
  --muted: #a594a8;
  --line: #2f2637;
  --line-strong: #46384f;
  --rose: #ff6f9d;
  --rose-ink: #ff94b6;
  --rose-soft: #3b1828;
  --on-rose: #24091a;
  --band: #0c090e;
  --band-ink: #f4ecf2;
  --band-muted: #a594a8;
  --good: #5cd59b;
  --good-soft: #112a1e;
  --warn: #f1b35a;
  --warn-soft: #2f2310;
  --bad: #ff8b80;
  --bad-soft: #361614;
  --track: #352a3d;
  --mono-l: 70%;
  --mono-ink: #1a1020;
  --logo-bg: #fbf7fa;
  --trophy: #a86b00;
  --trophy-ink: #f5b82e;
  --series-1: #ee4f86;
  --series-2: #5b7cf0;
  --chart-context: #5d4d66;
  --chart-mark: #f4ecf2;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 32px -18px rgb(0 0 0 / 0.75);
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--rose-ink); }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
/* Long German compounds (Datenschutzerklärung) need hyphenation to fit a phone screen. */
:lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
h3, h4 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
strong { font-weight: 700; }

.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); color: var(--bg); }

html:lang(ja) body { line-height: 1.85; }
/* auto-phrase keeps Japanese phrases together; overflow-wrap lets a phrase longer than the line break anyway. */
:lang(ja) h1, :lang(ja) h2 { font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; font-feature-settings: "palt"; word-break: auto-phrase; overflow-wrap: anywhere; }
:lang(ja) h3, :lang(ja) h4 { line-height: 1.45; word-break: auto-phrase; overflow-wrap: anywhere; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.wrap.narrow { max-width: 880px; }

/* Single-column text stacks: a long word or phrase must not widen the column past its container. */
.hero-copy, .rh-copy, .section-head, .page-head .wrap, .footer-grid > div, .factors article, .faq-item, .qa div { grid-template-columns: minmax(0, 1fr); }

.section { padding-block: clamp(48px, 6vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface-2); }

.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 760px; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--ink-2); font-size: var(--fs-md); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
:lang(ja) .eyebrow, :lang(ja) .pick-label, :lang(ja) .pc-title { letter-spacing: 0.03em; }

.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.bm-bubble { fill: var(--rose); }
.bm-bar { fill: var(--on-rose); }
.bm-bar.dim { opacity: 0.45; }

.main-nav {
  order: 3;
  width: 100%;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  flex: none;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--rose); }

@media (min-width: 980px) {
  .main-nav { order: 0; width: auto; }
}

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Phones: keep the brand and the tools on one row so the sticky header stays short. */
@media (max-width: 420px) {
  .header-inner { column-gap: 12px; }
  .brand { gap: 8px; font-size: 1.15rem; }
  .header-tools { gap: 8px; }
}

.badge-18 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 8px;
}

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu[open] summary, .lang-menu summary:hover { background: var(--surface-2); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  list-style: none;
  display: grid;
  gap: 2px;
  min-width: 176px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lang-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--rose); font-weight: 700; }
.lang-menu a span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; }

/* ---------- shared components ---------- */

.mono {
  --h: 330;
  --size: 40px;
  width: var(--size);
  height: var(--size);
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 13px 13px 13px 3px;
  background: hsl(var(--h) 56% var(--mono-l));
  color: var(--mono-ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: calc(var(--size) * 0.36);
  letter-spacing: -0.03em;
  line-height: 1;
}
.mono-sm { --size: 30px; border-radius: 10px 10px 10px 2px; }
.mono-lg { --size: 72px; border-radius: 22px 22px 22px 5px; }

.meter {
  --meter-w: 112px;
  --meter-h: 7px;
  display: inline-grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  width: var(--meter-w);
  max-width: 100%;
  flex: none;
  vertical-align: middle;
}
.meter i {
  --p: 0%;
  display: block;
  height: var(--meter-h);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose) var(--p), var(--track) var(--p));
}
.meter i.f { --p: 100%; }

.score {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.outof { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-left: 2px; }

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--rose-soft);
  color: var(--rose-ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-chip small { font-size: 0.7em; opacity: 0.8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--rose); color: var(--on-rose); }
.btn-primary:hover { background: var(--rose-ink); color: var(--on-rose); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-block { width: 100%; }
.ext { width: 14px; height: 14px; flex: none; }

.ico { width: 18px; height: 18px; flex: none; }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st-yes { color: var(--good); }
.st-no { color: var(--muted); }
.st-part { color: var(--warn); }
.st-text { color: var(--ink-2); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag-allowed { border-color: var(--line-strong); color: var(--ink); }
.tag-limited { background: var(--warn-soft); color: var(--warn); }
.tag-none { background: var(--surface-2); color: var(--ink-2); }

.plat { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.plat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  white-space: nowrap;
}

.proscons { display: grid; gap: 18px; }
@media (min-width: 700px) {
  .proscons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
.pc-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pc-title.good { color: var(--good); }
.pc-title.bad { color: var(--warn); }

.pros, .cons { list-style: none; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.pros li, .cons li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; }
.pros li::before, .cons li::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
}
.pros li::before { content: "+"; background: var(--good-soft); color: var(--good); }
.cons li::before { content: "\2212"; background: var(--warn-soft); color: var(--warn); }

/* position: relative keeps absolutely positioned screen-reader labels inside the scroll box. */
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.scroll-hint { display: none; font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.table-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.unv { color: var(--warn); font-weight: 700; margin-left: 1px; cursor: help; }
@media (max-width: 900px) { .scroll-hint { display: block; } }

.sev {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.sev-critical { background: var(--bad-soft); color: var(--bad); }
.sev-warning { background: var(--warn-soft); color: var(--warn); }
.sev-info { background: var(--surface-2); color: var(--ink-2); }

/* ---------- home: hero + leaderboard ---------- */

.hero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 80px); }
.hero-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; }
}
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.02em; }
:lang(ja) .hero h1 { line-height: 1.25; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--rose); }

.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: var(--fs-sm); color: var(--muted); }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.disclosure-inline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 62ch;
}
.disclosure-inline svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--muted); }

.leaderboard {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 20px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.leaderboard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-inline: 4px; }
.lb-list { list-style: none; display: grid; }
.lb-list li + li { border-top: 1px solid var(--line); }
.lb-row {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
}
.lb-row:hover { color: var(--ink); }
.lb-row:hover .lb-name b { color: var(--rose); }
.lb-rank { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.lb-name { display: grid; line-height: 1.3; min-width: 0; }
.lb-name b { font-weight: 700; }
.lb-name small { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { display: grid; justify-items: end; gap: 6px; }
.lb-score .score { font-size: 1.45rem; }
.lb-score .meter { --meter-w: 80px; --meter-h: 5px; }
.lb-more { justify-self: start; padding: 8px 4px 0; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }

/* ---------- home: picks ---------- */

.picks { display: grid; gap: 16px; }
@media (min-width: 640px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pick {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* Cards in the same row share row tracks, so labels that wrap don't push one title lower than its neighbours. */
@supports (grid-template-rows: subgrid) {
  .pick { grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; }
}
.pick-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
}
.pick h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; }
.pick h3 a { color: var(--ink); text-decoration: none; }
.pick h3 a:hover { color: var(--rose); }
.pick .reason { color: var(--ink-2); font-size: var(--fs-sm); }
.pick-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: var(--fs-sm);
}
.pick-foot a { font-weight: 700; text-decoration: none; }

/* ---------- home: finder table ---------- */

.finder-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }

.search { position: relative; display: block; flex: 1 1 220px; max-width: 300px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
}
.search input::placeholder { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"]::before { content: "\2713"; font-size: 0.85em; }

.sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: var(--fs-sm); color: var(--muted); }
.sort select {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
}

.finder-status { display: flex; align-items: center; gap: 14px; min-height: 24px; margin-bottom: 10px; font-size: var(--fs-sm); color: var(--muted); }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--rose);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cmp { width: 100%; min-width: 940px; font-size: var(--fs-sm); }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover > * { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.cmp .rank { width: 40px; font-family: var(--font-mono); color: var(--muted); }
.cmp tbody th { font-weight: 400; }
.cmp-app { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.cmp-app:hover { color: var(--rose); }
.cmp-app small { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-empty td { padding: 28px 14px; text-align: center; color: var(--muted); }

/* ---------- home: ranked list ---------- */

.ranked { list-style: none; display: grid; gap: 18px; }

.app-card {
  display: grid;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
@media (min-width: 760px) { .app-card { grid-template-columns: 80px minmax(0, 1fr); } }

.app-rank {
  padding: 20px 22px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--rose);
  font-variant-numeric: tabular-nums lining-nums;
}
@media (min-width: 760px) {
  .app-rank { padding: 28px 0 0; text-align: center; font-size: 2.3rem; background: var(--surface-2); border-right: 1px solid var(--line); }
}

.app-main { display: grid; gap: 18px; min-width: 0; padding: 20px 22px 22px; }
@media (min-width: 760px) { .app-main { padding: 24px 28px; } }

.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; }
@media (min-width: 760px) { .app-head { align-items: center; } }
.app-title { min-width: 0; display: grid; gap: 2px; }
.app-title h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; line-height: 1.1; }
.app-title h3 a { color: var(--ink); text-decoration: none; }
.app-title h3 a:hover { color: var(--rose); }
.app-meta { font-size: var(--fs-sm); color: var(--muted); }
.app-score { display: grid; justify-items: end; gap: 7px; }
.app-score .meter { --meter-w: 96px; }
@media (max-width: 480px) { .app-score .meter { display: none; } }
.app-summary { color: var(--ink-2); max-width: 78ch; }

.app-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price { font-size: var(--fs-sm); color: var(--muted); }
.price strong { color: var(--ink); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- home: how to choose + faq ---------- */

.factors {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.factors article { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); }
.factors h3 { font-size: var(--fs-lg); }
.factors p { color: var(--ink-2); font-size: var(--fs-sm); }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq-item { display: grid; gap: 8px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: var(--fs-md); }
.faq-item p { color: var(--ink-2); max-width: 72ch; }

/* ---------- review page ---------- */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 18px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose); }

.review-hero { padding-block: 22px 36px; border-bottom: 1px solid var(--line); }
.review-hero-grid { display: grid; gap: 24px; align-items: end; }
/* The score box gets a fixed range so a long affiliate note (no spaces in Japanese) can't squeeze the title. */
@media (min-width: 900px) { .review-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 48px; } }
.rh-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 520px) { .rh-id { grid-template-columns: minmax(0, 1fr); } .rh-id .mono-lg { --size: 56px; } }
.rh-copy { display: grid; gap: 12px; min-width: 0; }
.rh-copy h1 { font-size: var(--fs-3xl); line-height: 1.02; }
:lang(ja) .rh-copy h1 { line-height: 1.25; }
.checked { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

.rh-score {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.rh-score-line { display: flex; align-items: baseline; gap: 4px; }
.rh-score .score { font-size: clamp(3rem, 2.2rem + 3vw, 4.25rem); }
.rh-score .meter { --meter-w: 100%; --meter-h: 10px; }
.aff-note { font-size: var(--fs-xs); color: var(--muted); }

.review-layout { display: grid; gap: 40px; padding-block: 40px 80px; }
@media (min-width: 1040px) {
  .review-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
  .review-main { grid-column: 1; grid-row: 1; }
  .review-aside { grid-column: 2; grid-row: 1; }
}

.review-main { display: grid; gap: 56px; min-width: 0; }
.review-main > section { display: grid; gap: 16px; min-width: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.review-main h2 { font-size: var(--fs-xl); }
.review-main p { max-width: 70ch; color: var(--ink-2); }
.review-main .verdict-text { font-size: var(--fs-md); color: var(--ink); }

.review-aside { min-width: 0; }
.aside-inner { display: grid; gap: 20px; }
@media (min-width: 1040px) {
  .aside-inner { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); }
}

.facts-card { display: grid; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.facts { display: grid; margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.facts div:last-child { border-bottom: 0; }
@media (min-width: 640px) and (max-width: 1039px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .facts div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.toc { display: none; }
@media (min-width: 1040px) {
  .toc { display: grid; gap: 2px; font-size: var(--fs-sm); }
  .toc p { padding: 0 10px 6px; }
  .toc a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
  .toc a:hover { background: var(--surface-2); color: var(--ink); }
}

.scorebars { list-style: none; display: grid; gap: 16px; }
.scorebars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
@media (min-width: 640px) { .scorebars li { grid-template-columns: 170px minmax(0, 1fr) 44px; } }
.sb-label { font-weight: 600; font-size: var(--fs-sm); }
.sb-val { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.scorebars .sb-track { position: relative; display: block; grid-column: 1 / -1; grid-row: 2; }
.scorebars .meter { --meter-w: 100%; --meter-h: 9px; display: grid; }
.review-main .sb-note { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--muted); }
/* All-apps average: a thin mark across the meter with a surface ring so it stays visible over the fill. */
.avg-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: var(--at);
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--chart-mark);
  box-shadow: 0 0 0 2px var(--surface);
}
@media (min-width: 640px) {
  .scorebars .sb-track { grid-column: 2; grid-row: 1; }
  .review-main .sb-note { grid-column: 2 / -1; }
}

.feature-grid {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-grid li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
}
.feature-grid .ico { margin-top: 2px; }
.feature-grid strong { font-size: var(--fs-sm); color: var(--ink); }
.feature-grid small { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); }

.pricing { width: 100%; min-width: 560px; font-size: var(--fs-sm); }
.pricing th, .pricing td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pricing thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing tbody th { font-weight: 700; white-space: nowrap; }
.pricing tbody td { color: var(--ink-2); }
.pricing tr:last-child > * { border-bottom: 0; }

.privacy-list { list-style: none; display: grid; gap: 10px; }
.privacy-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
@media (max-width: 480px) { .privacy-list li { grid-template-columns: minmax(0, 1fr); } .privacy-list .sev { justify-self: start; } }

.sentiment-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.stat-meta { font-size: var(--fs-xs); color: var(--muted); }

.qa { display: grid; border-top: 1px solid var(--line); }
.qa div { display: grid; gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: var(--fs-md); }

.alt-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .alt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.alt {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.alt:hover { border-color: var(--rose); color: var(--ink); }
.alt-top { display: flex; align-items: center; gap: 10px; }
.alt-name { font-weight: 700; flex: 1; min-width: 0; }
.alt .alt-best { font-size: var(--fs-sm); color: var(--muted); }

.sources { display: grid; gap: 8px; padding-left: 1.4em; font-size: var(--fs-sm); color: var(--muted); }
.sources a { overflow-wrap: anywhere; }
.sources .kind {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- inner pages ---------- */

.page-head { padding-block: clamp(32px, 5vw, 64px) 32px; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head h1 { font-size: var(--fs-3xl); line-height: 1.04; max-width: 22ch; }
:lang(ja) .page-head h1 { line-height: 1.25; }

.page-body { padding-block: 40px 80px; }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose > h2 { margin-top: 2.2em; font-size: var(--fs-xl); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose > h3 { margin-top: 1.6em; font-size: var(--fs-lg); }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose > ul:not([class]), .prose > ol:not([class]) { display: grid; gap: 0.5em; padding-left: 1.3em; }
.prose > .table-scroll, .prose > .callout, .prose > .timeline, .prose > .check { margin-top: 1.4em; }

.callout { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--rose-soft); }
.callout p { color: var(--ink); }
.callout .callout-title { font-weight: 700; }
.callout-warn { background: var(--warn-soft); }
.callout-info { background: var(--surface-2); }

.timeline { list-style: none; display: grid; margin-left: 6px; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline time { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { font-size: var(--fs-md); }
.timeline p { font-size: var(--fs-sm); color: var(--ink-2); }

.check { list-style: none; display: grid; gap: 12px; }
.check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.check li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  border: 2px solid var(--good);
  background: linear-gradient(var(--good), var(--good)) center / 8px 8px no-repeat;
}

.data-table { width: 100%; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody td { color: var(--ink-2); }
.data-table tr:last-child > * { border-bottom: 0; }
.data-table .cmp-app { white-space: normal; }
.privacy-table { min-width: 680px; }
.privacy-table td:nth-child(2) { white-space: nowrap; }
.weights { min-width: 560px; }
.weight-bar { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); white-space: nowrap; color: var(--ink); }
.weight-bar span { display: block; height: 8px; border-radius: 4px; background: var(--rose); }

.section-block { padding-block: 0 72px; }
.section-block .section-head { margin-bottom: 20px; }

/* ---------- compare page ---------- */

.compare-pickers { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 720px) { .compare-pickers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.compare-pickers label {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-pickers select {
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  letter-spacing: 0;
  text-transform: none;
}

.cmp-side { width: 100%; min-width: 760px; table-layout: fixed; font-size: var(--fs-sm); }
.cmp-side th, .cmp-side td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-side thead th { background: var(--surface-2); vertical-align: middle; }
.cmp-side thead th:first-child { width: 190px; }
.cmp-side tbody th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cmp-side tbody td { color: var(--ink-2); }
.cmp-side .group th {
  padding-top: 18px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.cmp-side tr:last-child > * { border-bottom: 0; }
.cmp-head { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-md); }
.cmp-head:hover { color: var(--rose); }
.cmp-score { display: grid; gap: 8px; }
.cmp-score .meter { --meter-w: 100%; }
.cmp-crit { display: flex; align-items: center; gap: 10px; }
.cmp-crit .meter { --meter-w: 100px; --meter-h: 6px; }
.cmp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-links .btn { min-height: 36px; padding: 6px 14px; }

/* ---------- logos and the featured partner ---------- */

.mono.has-logo { padding: 0; overflow: hidden; background: var(--logo-bg); box-shadow: inset 0 0 0 1px var(--line); }
.mono.has-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mono-xs { --size: 24px; border-radius: 8px 8px 8px 2px; }

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: help;
}
.featured-badge svg { width: 12px; height: 12px; color: var(--trophy); }
:lang(ja) .featured-badge { letter-spacing: 0.02em; }

.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.app-card.is-featured { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), var(--shadow); }
@media (min-width: 760px) { .app-card.is-featured .app-rank { background: var(--rose-soft); } }
.lb-list li.is-featured .lb-row { margin-inline: -8px; padding-inline: 12px; border-radius: 10px; background: var(--rose-soft); }
.lb-name .featured-badge { justify-self: start; margin-top: 3px; }
.cmp tbody tr.is-featured > * { background: color-mix(in srgb, var(--rose-soft) 65%, transparent); }
.featured-note .callout-title { display: flex; align-items: center; gap: 6px; }
.featured-note svg { width: 16px; height: 16px; color: var(--trophy-ink); }

/* ---------- lists by need, related links ---------- */

.best-links { list-style: none; display: grid; gap: 12px; }
@media (min-width: 640px) { .best-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .best-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.best-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label logos" "meta logos";
  gap: 2px 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.best-links a:hover { border-color: var(--rose); color: var(--ink); }
.best-label { grid-area: label; font-weight: 700; }
.best-meta { grid-area: meta; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.best-logos { grid-area: logos; display: flex; }
.best-logos .mono { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px var(--line); }
.best-logos .mono:first-child { margin-left: 0; }

.related-title { margin: 40px 0 14px; font-size: var(--fs-lg); }
.pill-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links a {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.pill-links a:hover { border-color: var(--rose); color: var(--rose); }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: var(--fs-sm); font-weight: 700; }
.more-links a { text-decoration: none; }
.related-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.list-note { max-width: 75ch; margin-bottom: 18px; }
.list-title { margin: 36px 0 18px; font-size: var(--fs-xl); }
.why-box { display: grid; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.why-box h2 { font-size: var(--fs-lg); }

/* ---------- X vs Y pages ---------- */

.vs-head { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 820px) { .vs-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.vs-side { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.vs-side.is-featured { border-color: var(--rose); }
.vs-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.vs-id h2 { font-size: var(--fs-xl); }
.vs-id h2 a { color: var(--ink); text-decoration: none; }
.vs-id h2 a:hover { color: var(--rose); }
.vs-side .score { font-size: 2.6rem; }
.vs-side .meter { --meter-w: 100%; --meter-h: 9px; }
.vs-side .small { color: var(--ink-2); }
.vs-mark { align-self: center; justify-self: center; font-family: var(--font-display); font-size: 2rem; color: var(--rose); }
.vs-section { display: grid; gap: 14px; min-width: 0; margin-top: 44px; }
.vs-section h2 { font-size: var(--fs-xl); }
.verdict-box { padding: 22px; background: var(--rose-soft); border-radius: var(--radius); }
.verdict-box p { max-width: 75ch; color: var(--ink); }
.vs-picks { list-style: none; display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.vs-table { min-width: 560px; }
.vs-table td.win { background: color-mix(in srgb, var(--good-soft) 70%, transparent); }
.vs-table td.win .num, .vs-table td.win strong { color: var(--good); }
.vs-pc { display: grid; gap: 28px; }
@media (min-width: 900px) { .vs-pc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vs-pc h3 { margin-bottom: 12px; font-size: var(--fs-lg); }
.vs-pc .proscons { grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- footer ---------- */

.site-footer { background: var(--band); color: var(--band-ink); }
.site-footer a { color: var(--band-ink); }
.site-footer .brand { color: var(--band-ink); }
.footer-main { display: grid; gap: 40px; padding-block: 56px 40px; }
@media (min-width: 1040px) { .footer-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 3.4fr); gap: 56px; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { max-width: 44ch; font-size: var(--fs-sm); opacity: 0.88; }
.footer-adult { display: flex; align-items: center; gap: 10px; }
.site-footer .badge-18 { color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 35%, transparent); }
.footer-cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-col h2, .footer-notes h2 {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-muted);
}
:lang(ja) .footer-col h2, :lang(ja) .footer-notes h2 { letter-spacing: 0.03em; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: var(--fs-sm); text-decoration: none; opacity: 0.88; overflow-wrap: anywhere; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-notes { display: grid; gap: 24px; padding-block: 28px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); }
@media (min-width: 860px) { .footer-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.footer-notes p { max-width: 70ch; font-size: var(--fs-sm); opacity: 0.85; }
.footer-sitemap { text-decoration: none; opacity: 0.85; }
.footer-sitemap:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  padding-block: 20px 36px;
  border-top: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent);
  font-size: var(--fs-sm);
  color: var(--band-muted);
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; color: var(--band-ink); }

/* ---------- charts ---------- */
/* Thin bars with a 4px rounded data end, square at the baseline; values in text tokens, never the series colour. */
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 16px; font-size: var(--fs-sm); color: var(--ink-2); }
.chart-legend .key { display: inline-block; width: 14px; height: 8px; border-radius: 0 3px 3px 0; margin-left: 8px; }
.chart-legend .key:first-child { margin-left: 0; }
.key-s1 { background: var(--series-1); }
.key-s2 { background: var(--series-2); }
.chart-legend .key-avg { width: 2px; height: 14px; border-radius: 1px; background: var(--chart-mark); margin-right: 2px; }

.bar-chart { margin: 0 0 32px; }
.bar-chart figcaption { font-weight: 600; margin-bottom: 14px; }
.pair-chart .chart-legend { margin-top: -6px; }
.bars { list-style: none; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.bar-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-sm); }
.bar-label > span:last-child { overflow-wrap: anywhere; }
.bar, .pair { grid-column: 1 / -1; grid-row: 2; }
.bar { display: block; height: 12px; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; background: var(--chart-context); }
.bars li.is-focus .bar i { background: var(--series-1); }
.bars li.is-focus .bar-label { font-weight: 600; }
.pair { display: grid; gap: 2px; }
.pair .bar { height: 10px; grid-column: auto; grid-row: auto; }
.pair .s1 i { background: var(--series-1); }
.pair .s2 i { background: var(--series-2); }
.bar-val { font-family: var(--font-mono); font-size: var(--fs-sm); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.pair-chart .bar-val { display: flex; gap: 10px; }
@media (min-width: 640px) {
  .bars li { grid-template-columns: 210px minmax(0, 1fr) 52px; }
  .bar, .pair { grid-column: 2; grid-row: 1; }
  .pair-chart .bars li { grid-template-columns: 210px minmax(0, 1fr) 84px; }
}

.chart-figure { margin: 0; }
.chart-scroll { overflow-x: auto; }
.value-map { display: block; width: 100%; min-width: 560px; height: auto; font-family: var(--font-body); }
.value-map .grid { stroke: var(--line); stroke-width: 1; }
.value-map .axis { stroke: var(--line-strong); stroke-width: 1; }
.value-map .tick { fill: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.value-map .axis-title { fill: var(--ink-2); font-size: 13px; }
.value-map .pt-hit { fill: transparent; }
.value-map .pt-dot { fill: var(--series-1); stroke: var(--surface-2); stroke-width: 2; }
.value-map .pt.is-featured .pt-dot { stroke: var(--trophy-ink); }
.value-map .pt:hover .pt-dot, .value-map .pt:focus-visible .pt-dot { r: 7px; }
.value-map .pt-label { fill: var(--ink); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; stroke-linejoin: round; }

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

/* ---------- hub pages ---------- */
.hub-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.hub-card a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.hub-card a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.hub-card.is-featured a { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.hub-text { display: grid; gap: 2px; min-width: 0; }
.hub-name { font-weight: 600; overflow-wrap: anywhere; }
.hub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-xs); color: var(--muted); }
.hub-score { font-family: var(--font-display); font-size: 1.4rem; }
.hub-pair { display: inline-flex; gap: 4px; }

/* ---------- alternatives pages ---------- */
.alt-quick ul { display: grid; gap: 6px; padding-left: 1.1em; }
.alt-quick li svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--trophy-ink); }
.alt-quick li:has(svg) { list-style: none; margin-left: -1.1em; }
.alt-slot { margin: 0 0 6px; }
.slot-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
:lang(ja) .slot-tag { text-transform: none; letter-spacing: 0.02em; }
.alt-table { min-width: 860px; }
.alt-table tr.is-base > * { background: color-mix(in srgb, var(--rose-soft) 70%, transparent); font-weight: 600; }
.alt-table td { white-space: nowrap; }
.section-faq { margin-top: 40px; }

/* Compact rows after the first cards of a long list. */
.compact-rank { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 6px; }
.compact-rank a { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.compact-rank a:hover { border-color: var(--line-strong); }
.cr-rank { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.cr-name { display: grid; min-width: 0; font-weight: 600; }
.cr-name small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-score { font-family: var(--font-display); font-size: 1.2rem; }

/* Home-page screenshots on review and comparison pages */
.shot { margin: 18px 0 22px; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.shot a { display: block; border-radius: var(--radius); }
.shot figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }
.shot-pair { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 8px; }
.shot-pair .shot { margin: 0; }
@media (max-width: 640px) { .shot-pair { grid-template-columns: 1fr; } }

/* Statistics page: headline figures and single-series share charts */
.stat-tiles { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.stat-tile strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 7vw, 2rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-tile span { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.stat-chart .bar i { background: var(--series-1); }
.stat-chart .bar-val { white-space: nowrap; }
.stat-grid { display: grid; gap: 0 40px; }
@media (min-width: 960px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .stat-chart .bars li { grid-template-columns: 170px minmax(0, 1fr) auto; } }
.cite-line code { display: block; white-space: normal; overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: var(--fs-sm); }
