:root {
  --bg: #0a0f1a;
  --panel: #0f1626;
  --ink: #e6edf7;
  --soft: #b6c2d6;
  --muted: #7d8ba3;
  --line: #1e2a3f;
  --bar: #1e2a3f;
  --bar-fill: #e6edf7;
  --hover: #111a2c;
  --sans: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --aplus: #059669;
  --a: #16a34a;
  --b: #65a30d;
  --c: #ca8a04;
  --d: #ea580c;
  --f: #dc2626;
  --gold: #d4a017;
  --silver: #a3a3a3;
  --bronze: #b87333;
  --accent: #c6f432;
  --accent-bg: var(--accent);
  --accent-ink: #0a0f1a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.g-aplus { --tone: var(--aplus); }
.g-a { --tone: var(--a); }
.g-b { --tone: var(--b); }
.g-c { --tone: var(--c); }
.g-d { --tone: var(--d); }
.g-f { --tone: var(--f); }
.grade { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 6px; font: 600 12px/1 var(--sans); color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }

.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); font-weight: 500; font-size: 14px; background: var(--bg); transition: background 0.15s; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent-bg); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { opacity: 0.88; }

.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 12px; font-weight: 600; white-space: nowrap; }
.home { display: inline-flex; align-items: baseline; gap: 10px; }
.home .mark { align-self: center; }
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-bg); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.by { color: var(--muted); font-weight: 400; font-size: 14px; }
.by a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.by a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.nav nav { display: flex; gap: 24px; font-size: 14px; color: var(--soft); }
.nav nav a:hover { color: var(--ink); }

.hero { padding: 80px 0 72px; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 18px auto 0; font-size: 18px; color: var(--soft); max-width: 640px; }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.live { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.live b { color: var(--ink); font-weight: 500; }
.chip time { color: var(--muted); }
.chip time::before { content: "· "; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 50%, transparent); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--ink); transition: background 0.15s; }
.chip:hover { background: var(--hover); }
.chip img { border-radius: 3px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
#find { height: 36px; width: 240px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 14px var(--sans); }
#find:focus { outline: none; border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.board-empty { margin: 0; padding: 20px; color: var(--muted); }
.board-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.board { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--bg); }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; background: var(--panel); padding: 12px 12px; font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
th:first-child, th:nth-child(2) { text-align: left; }
th:nth-child(2) { cursor: default; }
th img { border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: #fff; }
th.sorted { color: var(--accent); }
th.sorted::after { content: " ↓"; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
tbody tr { cursor: pointer; transition: background 0.1s; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
td.rank { text-align: left; width: 52px; color: var(--muted); font: 500 14px var(--mono); }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 600 13px var(--sans); background: var(--gold); }
.medal.silver { background: var(--silver); }
.medal.bronze { background: var(--bronze); }
td.site { text-align: left; min-width: 220px; }
td.site > div { display: flex; align-items: center; gap: 12px; }
td.site img { border-radius: 6px; flex: none; }
td.site a { font-weight: 600; }
td.site span { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); line-height: 1.4; }
td.total { width: 110px; }
td.total .num { color: var(--tone); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-right: 10px; vertical-align: -2px; }
td.cat { color: var(--soft); font: 14px var(--mono); min-width: 64px; }
td.cat i { display: block; height: 3px; width: 40px; margin: 6px 0 0 auto; border-radius: 3px; background: linear-gradient(90deg, var(--tone) var(--w), var(--bar) var(--w)); opacity: 0.8; }

.back { margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.back a:hover { color: var(--ink); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.site-id { display: flex; align-items: center; gap: 16px; }
.site-id img { border-radius: 9px; }
.site-id h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.site-id p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.summary { display: flex; align-items: center; gap: 40px; margin: 32px 0; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: color-mix(in srgb, var(--tone) 16%, transparent); }
.ring .fill { stroke: var(--tone); stroke-linecap: round; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--tone); }
.summary-grade { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--soft); flex-wrap: wrap; }
.summary-grade .grade { height: 28px; min-width: 36px; font-size: 15px; }
.summary-grade > span:nth-child(2) { font-weight: 600; color: var(--ink); }
.summary-grade .dot { color: var(--muted); }
.fix { margin: 16px 0 0; font-size: 15px; color: var(--soft); max-width: 760px; }
.fix b { color: var(--ink); margin-right: 10px; }
.verdict { margin: 14px 0 0; font-size: 24px; line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; max-width: 760px; }
.judges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.judge { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.judge-head { display: flex; align-items: center; gap: 10px; }
.judge-head img { border-radius: 5px; background: #fff; }
.judge-head b { flex: 1; }
.judge-score { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--tone); }
.judge-score small { font-size: 14px; color: var(--muted); font-weight: 500; }
.judge p { margin: 14px 0 0; font-size: 17px; line-height: 1.45; font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.panel h2 { margin-bottom: 18px; }
.rows { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 4px 14px; }
.row-name { font-size: 14px; color: var(--soft); }
.row-name small { display: block; font-size: 12px; color: var(--muted); }
.row-bar { height: 8px; border-radius: 8px; background: var(--bar); overflow: hidden; }
.row-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--tone); }
.row-value { text-align: right; font: 500 14px var(--mono); }
.row-note { grid-column: 2 / 4; margin: 0; font-size: 13px; color: var(--muted); }
.shot img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); }
.section { margin: 56px 0 16px; }
.muted { color: var(--muted); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bar); border-top-color: var(--ink); animation: spin 0.8s linear infinite; flex: none; }
.spinner.big { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pending { display: grid; justify-items: start; gap: 24px; margin: 48px 0; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.pending-text { margin: 0; color: var(--soft); font-size: 16px; max-width: 560px; }
.receipt { margin: 40px 0 0; font: 13px var(--mono); color: var(--muted); }
.empty { color: var(--muted); }
footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 48px; }
  td.cat, th[data-col]:nth-child(n+4) { display: none; }
  td.site { min-width: 0; white-space: normal; }
  td.site span { max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
  .summary { flex-direction: column; align-items: flex-start; }
  .split, .judges { grid-template-columns: 1fr; }
  .report-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .by { display: none; }
  #find { width: 100%; }
  .nav nav { gap: 16px; }
}

main { position: relative; z-index: 1; }
.backdrop { position: absolute; top: 65px; left: 0; right: 0; height: 560px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.backdrop .shader { position: absolute; inset: 0; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 240px at 50% 42%, color-mix(in srgb, var(--bg) 85%, transparent), transparent); }
