:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #0a0a0a;
  --primary-foreground: #ffffff;
  --secondary: #f2f2f2;
  --secondary-foreground: #0a0a0a;
  --muted: #f2f2f2;
  --muted-foreground: #666666;
  --accent: #0a0a0a;
  --accent-foreground: #ffffff;
  --destructive: #0a0a0a;
  --border: #d4d4d4;
  --input: #d4d4d4;
  --ring: #0a0a0a;
  --radius: 0;
}

.theme-creator {
  --background: #f4f7fb;
  --foreground: #10151f;
  --card: #ffffff;
  --card-foreground: #10151f;
  --primary: #10151f;
  --primary-foreground: #ffffff;
  --muted: #e9eef5;
  --muted-foreground: #5e6b7b;
  --accent: #195cff;
  --accent-foreground: #ffffff;
  --border: #c8d2df;
  --input: #c8d2df;
  --ring: #195cff;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --font-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header { align-items: center; border-bottom: 1px solid var(--border); display: flex; height: 54px; justify-content: space-between; margin: 0 auto; max-width: 1440px; padding: 0 24px; }
.brand { font-size: .9rem; font-weight: 800; letter-spacing: -.04em; }
.header-meta { align-items: center; display: flex; font-size: .82rem; gap: 32px; }
.header-meta span { color: var(--muted-foreground); }
.header-meta a { border-bottom: 1px solid currentColor; }
.page-shell { margin: 0 auto; max-width: 1440px; padding: 0 24px; }

.intro { display: grid; gap: 18px 32px; grid-template-columns: 1fr 3fr; padding: clamp(28px, 4vw, 54px) 0 clamp(30px, 4vw, 58px); }
.intro-meta { align-items: center; display: flex; font-size: .82rem; gap: 10px; padding-top: 9px; text-transform: uppercase; }
.accent-dot { background: var(--accent); height: 8px; width: 8px; }
.intro h1 { font-size: clamp(2.3rem, 4.5vw, 4.8rem); font-weight: 700; grid-column: 2; letter-spacing: -.06em; line-height: .94; margin: 0; max-width: 920px; text-transform: uppercase; }
.intro-copy { align-items: flex-end; display: flex; gap: 24px; grid-column: 2; justify-content: space-between; }
.intro-copy p { color: #444444; font-size: 1rem; line-height: 1.45; margin: 0; max-width: 620px; }
.intro-copy span { color: var(--muted-foreground); font-size: .8rem; white-space: nowrap; }

.ranking { border-top: 1px solid var(--foreground); }
.controls { align-items: center; display: flex; gap: 24px; justify-content: space-between; padding: 12px 0; }
.ranking-options { align-items: center; display: flex; flex: 0 1 auto; gap: 12px; }
.ranking-options select { appearance: none; background: var(--background); border: 1px solid var(--foreground); border-radius: 0; color: var(--foreground); cursor: pointer; font-size: .74rem; font-weight: 800; letter-spacing: .04em; max-width: 210px; min-height: 38px; padding: 0 28px 0 10px; text-transform: uppercase; }
.language-switcher { border: 1px solid var(--border); display: flex; }
.language { background: transparent; border: 0; color: var(--muted-foreground); cursor: pointer; font-size: .68rem; font-weight: 800; min-height: 36px; padding: 0 9px; }
.language + .language { border-left: 1px solid var(--border); }
.language.is-active { background: var(--foreground); color: var(--background); }
.search-wrap { align-items: center; display: flex; flex: 0 1 320px; position: relative; }
.search-wrap > svg { left: 0; position: absolute; z-index: 1; }
.search-wrap input { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; font-size: .9rem; height: 38px; padding: 0 30px; }
.search-wrap input:focus-visible { border-color: var(--foreground); box-shadow: none; outline: 2px solid transparent; }
.clear-search { align-items: center; background: transparent; border: 0; color: var(--muted-foreground); cursor: pointer; display: flex; padding: 6px; position: absolute; right: -6px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter { background: transparent; border: 1px solid var(--border); border-radius: 0; color: var(--muted-foreground); cursor: pointer; font-size: .76rem; font-weight: 700; letter-spacing: .03em; padding: 7px 12px; text-transform: uppercase; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; white-space: nowrap; }
.filter:hover, .filter.is-active { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
.filter:focus-visible, .clear-search:focus-visible, .empty-state button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.list-heading, .ranking-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) 140px 94px; }
.list-heading { border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: .68rem; letter-spacing: .09em; padding: 9px 0; text-transform: uppercase; }
.list-heading span:last-child { text-align: right; }
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-row { align-items: center; border-bottom: 1px solid var(--border); min-height: 104px; padding: 14px 0; position: relative; transition: background 160ms ease; }
.ranking-row::before { background: var(--foreground); content: ""; height: 1px; left: 0; position: absolute; top: -1px; transform: scaleX(0); transform-origin: left; transition: transform 260ms ease; width: 100%; }
.ranking-row:hover::before, .ranking-row:focus-within::before { transform: scaleX(1); }
.ranking-row:hover, .ranking-row:focus-within { background: #f6f6f6; }
.row-link { inset: 0; position: absolute; z-index: 2; }
.row-link:focus-visible { outline: 2px solid var(--foreground); outline-offset: -3px; }
.rank { color: var(--muted-foreground); font-size: 1rem; font-variant-numeric: tabular-nums; transition: color 180ms ease; }
.ranking-row:hover .rank { color: var(--accent); }
.item-main { padding-right: 32px; }
.item-title-line { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.team-mark { align-items: center; border: 1px solid #aaaaaa; display: inline-flex; font-size: .66rem; font-weight: 800; height: 30px; justify-content: center; letter-spacing: .04em; width: 30px; }
.item-main h2 { font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 0; text-transform: uppercase; }
.top-pick { background: var(--accent); border-radius: 0; color: var(--accent-foreground); font-size: .63rem; font-weight: 800; letter-spacing: .04em; padding: 4px 7px; text-transform: uppercase; }
.item-main > p { color: #555555; font-size: .86rem; line-height: 1.35; margin: 8px 0; max-width: 720px; }
.tags { align-items: center; display: flex; flex-wrap: wrap; font-size: .67rem; gap: 6px 16px; }
.tags strong { color: #000000; font-weight: 700; }
.tags span { color: var(--muted-foreground); position: relative; }
.tags span::before { background: var(--border); content: ""; height: 3px; left: -10px; position: absolute; top: 5px; width: 3px; }
.category { color: var(--muted-foreground); font-size: .82rem; padding-top: 7px; }
.score-wrap { align-items: baseline; display: flex; justify-content: flex-end; }
.score { font-size: clamp(2rem, 3vw, 3rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.score-total { color: var(--muted-foreground); font-size: .7rem; margin-left: 5px; }
.detail-arrow { margin-left: 12px; transition: transform 160ms ease; }
.ranking-row:hover .detail-arrow, .ranking-row:focus-within .detail-arrow { transform: translate(2px, -2px); }
.empty-state { border-bottom: 1px solid var(--border); padding: 80px 0; text-align: center; }
.empty-state p { font-size: 1.4rem; margin: 0 0 20px; }
.empty-state button { background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; padding: 4px 0; }
.load-more-wrap { border-bottom: 1px solid var(--border); display: flex; justify-content: center; padding: 16px 0; }
.load-more { align-items: center; background: var(--foreground); border: 1px solid var(--foreground); color: var(--background); cursor: pointer; display: flex; font-size: .78rem; font-weight: 800; height: 46px; justify-content: space-between; letter-spacing: .04em; max-width: 360px; padding: 0 16px; text-transform: uppercase; transition: background 160ms ease, color 160ms ease; width: 100%; }
.load-more:hover { background: var(--background); color: var(--foreground); }
.load-more:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.load-more small { font-size: .68rem; font-variant-numeric: tabular-nums; font-weight: 500; opacity: .72; }

.methodology { display: grid; gap: 32px; grid-template-columns: 1fr 3fr; padding: clamp(56px, 7vw, 92px) 0; }
.section-index { color: var(--accent); display: block; font-size: .78rem; margin-bottom: 24px; }
.methodology h2 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 700; letter-spacing: -.05em; line-height: .98; margin: 0; text-transform: uppercase; }
.method-content > p { color: #444444; font-size: 1rem; line-height: 1.5; margin: 0 0 30px; max-width: 680px; }
.method-content dl { border-top: 1px solid var(--foreground); margin: 0; }
.method-content dl div { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 12px 0; }
.method-content dt, .method-content dd { font-size: .9rem; margin: 0; }
.method-content dd { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

footer { align-items: center; border-top: 1px solid var(--foreground); display: grid; font-size: .78rem; grid-template-columns: 1fr 2fr auto; padding: 28px 0 40px; }
footer > span { font-weight: 800; letter-spacing: -.04em; }
footer p { color: var(--muted-foreground); margin: 0; }
footer a { border-bottom: 1px solid currentColor; }

.review-header { position: relative; }
.back-link { align-items: center; display: flex; font-size: .78rem; font-weight: 700; gap: 8px; text-transform: uppercase; }
.review-shell { margin: 0 auto; max-width: 1440px; padding: 0 24px 40px; }
.review-hero { align-items: end; border-bottom: 1px solid var(--foreground); display: grid; gap: 30px; grid-template-columns: 150px minmax(0, 1fr) 180px; padding: clamp(52px, 7vw, 100px) 0 40px; }
.review-kicker { align-self: start; display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; gap: 7px; letter-spacing: .06em; text-transform: uppercase; }
.review-kicker span:last-child { color: var(--muted-foreground); }
.review-name { align-items: center; display: flex; gap: 18px; }
.review-mark { align-items: center; border: 2px solid var(--foreground); display: inline-flex; flex: 0 0 auto; font-size: 1rem; font-weight: 800; height: 54px; justify-content: center; letter-spacing: .04em; width: 54px; }
.review-title-block h1 { font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 800; letter-spacing: -.075em; line-height: .82; margin: 0; text-transform: uppercase; }
.review-title-block > p { color: #444; font-size: 1rem; line-height: 1.45; margin: 26px 0 0 72px; max-width: 650px; }
.review-score { align-items: baseline; display: flex; justify-content: flex-end; }
.review-score > span { font-size: clamp(4rem, 8vw, 8rem); font-weight: 800; letter-spacing: -.08em; line-height: .8; }
.review-score small { color: var(--muted-foreground); font-size: .78rem; margin-left: 6px; }
.review-summary { align-items: start; border-bottom: 1px solid var(--border); display: grid; gap: 30px; grid-template-columns: 150px minmax(0, 1fr) 220px; padding: 30px 0; }
.review-section-label { color: var(--muted-foreground); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.review-summary h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.04em; margin: 0 0 10px; text-transform: uppercase; }
.review-summary p { color: #444; font-size: .95rem; line-height: 1.55; margin: 0; max-width: 700px; }
.review-actions { display: flex; flex-direction: column; gap: 16px; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.review-tags span { border: 1px solid var(--foreground); font-size: .66rem; font-weight: 700; padding: 6px 8px; text-transform: uppercase; }
.vote-panel { border: 1px solid var(--foreground); }
.vote-button { align-items: center; background: var(--foreground); border: 0; color: var(--background); cursor: pointer; display: flex; font-size: .7rem; font-weight: 800; gap: 8px; justify-content: center; min-height: 42px; padding: 8px 12px; text-transform: uppercase; width: 100%; }
.vote-button:hover:not(:disabled) { background: #303030; }
.vote-button:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.vote-button:disabled { cursor: default; }
.vote-button.is-voted { background: #ededed; color: var(--foreground); }
.vote-meta { align-items: baseline; display: flex; font-size: .7rem; gap: 4px; padding: 9px 10px; text-transform: uppercase; }
.vote-meta strong { font-size: 1rem; }
.vote-meta small { color: var(--muted-foreground); font-size: .6rem; margin-left: auto; }
.review-body { display: grid; gap: clamp(50px, 8vw, 120px); grid-template-columns: minmax(0, 1fr) 360px; margin-left: 180px; padding: clamp(60px, 8vw, 110px) 0; }
.review-copy { max-width: 760px; }
.review-copy section + section { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 52px; }
.review-copy h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.05em; line-height: 1; margin: 16px 0 24px; text-transform: uppercase; }
.review-copy p { color: #333; font-size: 1.05rem; line-height: 1.72; margin: 0; }
.review-copy p + p { margin-top: 20px; }
.score-card { align-self: start; border: 1px solid var(--foreground); padding: 22px; position: sticky; top: 24px; }
.score-card-head, .score-card-foot { align-items: center; display: flex; font-size: .72rem; justify-content: space-between; text-transform: uppercase; }
.score-card-head { border-bottom: 1px solid var(--foreground); padding-bottom: 16px; }
.criterion { padding-top: 18px; }
.criterion > div { align-items: center; display: flex; font-size: .74rem; justify-content: space-between; margin-bottom: 8px; }
.score-track { background: #e5e5e5; display: block; height: 3px; overflow: hidden; }
.score-track > span { background: var(--foreground); display: block; height: 100%; }
.score-card-foot { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 16px; }
.review-bottom-nav { align-items: center; border-top: 1px solid var(--foreground); display: flex; font-size: .74rem; font-weight: 700; justify-content: space-between; padding: 24px 0; text-transform: uppercase; }
.review-bottom-nav a { align-items: center; display: flex; gap: 8px; }

@media (max-width: 900px) {
  .intro, .methodology { grid-template-columns: 1fr; }
  .intro h1, .intro-copy { grid-column: 1; }
  .intro { gap: 26px; }
  .list-heading, .ranking-row { grid-template-columns: 72px minmax(0, 1fr) 100px; }
  .list-heading span:nth-child(3), .category { display: none; }
  .list-heading span:last-child { grid-column: 3; }
  .method-content { margin-left: 104px; }
  .review-hero { grid-template-columns: 100px minmax(0, 1fr) 120px; }
  .review-summary { grid-template-columns: 100px minmax(0, 1fr); }
  .review-actions { grid-column: 2; }
  .review-tags { justify-content: flex-start; }
  .review-body { gap: 48px; grid-template-columns: minmax(0, 1fr) 300px; margin-left: 0; }
}

@media (max-width: 680px) {
  .site-header { height: 60px; padding: 0 18px; }
  .page-shell { padding: 0 18px; }
  .header-meta span { display: none; }
  .intro { padding: 48px 0 64px; }
  .intro h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .intro-copy { align-items: flex-start; flex-direction: column; gap: 18px; }
  .controls { align-items: stretch; flex-direction: column; gap: 18px; }
  .ranking-options { justify-content: space-between; }
  .ranking-options select { flex: 1; max-width: none; }
  .search-wrap { flex-basis: auto; width: 100%; }
  .filters { margin-right: -18px; padding-right: 18px; }
  .list-heading { display: none; }
  .ranking-row { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 0; padding: 12px 0 14px; }
  .rank { padding-top: 5px; }
  .item-main { padding-right: 14px; }
  .team-mark { height: 26px; width: 26px; }
  .item-main h2 { font-size: 1.35rem; }
  .item-main > p { display: none; }
  .tags { margin-top: 7px; }
  .tags { gap: 8px 16px; }
  .tags span { display: none; }
  .score { font-size: 1.75rem; }
  .score-total { display: none; }
  .method-content { margin-left: 48px; }
  .methodology { padding: 56px 0; }
  footer { align-items: start; gap: 18px; grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
  .review-shell { padding: 0 18px 24px; }
  .review-hero { align-items: start; gap: 24px; grid-template-columns: 1fr auto; padding: 42px 0 28px; }
  .review-kicker { grid-column: 1 / -1; }
  .review-name { gap: 12px; }
  .review-mark { height: 38px; width: 38px; }
  .review-title-block h1 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .review-title-block > p { font-size: .9rem; margin: 18px 0 0; }
  .review-score > span { font-size: 3rem; }
  .review-score small { display: none; }
  .review-summary { gap: 18px; grid-template-columns: 1fr; padding: 24px 0; }
  .review-summary > *, .review-actions { grid-column: 1; }
  .review-actions { max-width: 320px; }
  .review-tags { justify-content: flex-start; }
  .review-body { display: block; padding: 52px 0; }
  .review-copy section + section { margin-top: 40px; padding-top: 40px; }
  .review-copy p { font-size: 1rem; line-height: 1.65; }
  .score-card { margin-top: 48px; position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
