:root {
  color-scheme: light;
  --ink: #302118;
  --muted: #765e52;
  --sand: #f9efdf;
  --paper: #fffaf1;
  --clay: #973c26;
  --accent: #bd6245;
  --line: #dfc6b3;
  --green: #356244;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--sand);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}
.shell { width: min(100%, 900px); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.masthead { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: env(safe-area-inset-top, 0px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: .06em; white-space: nowrap; }
.ball { width: 23px; height: 23px; border-radius: 50%; overflow: hidden; position: relative; background: #cec96c; box-shadow: inset 0 0 0 1px #54442533; }
.ball::before, .ball::after { content: ""; position: absolute; width: 17px; height: 26px; border-radius: 50%; border: 1px solid #fdf5cc; transform: rotate(31deg); top: -2px; }
.ball::before { left: -9px; }.ball::after { right: -9px; }
.sections { display: flex; gap: 4px; color: var(--muted); font-size: 14px; }
.sections a { display: grid; place-items: center; min-height: 44px; min-width: 52px; border-radius: 8px; }
.sections a[aria-current] { color: var(--clay); background: #f0ddc9; font-weight: 700; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end; min-height: 215px; padding: clamp(20px, 5vw, 43px); border-radius: 14px 14px 52px 14px; background: #923923; color: #fff8df; box-shadow: 0 14px 30px #662d1c1c; }
.hero-content { z-index: 1; max-width: 72%; }
.hero-label { font-family: Georgia, serif; font-size: 12px; font-weight: 700; letter-spacing: .17em; color: #f6ddb5; }
.hero h1 { margin: 8px 0 9px; font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-size: clamp(36px, 8vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -.055em; }
.hero-tour, .hero-caption { display: block; white-space: nowrap; }
.hero-caption { margin-top: 4px; font-size: .7em; letter-spacing: .04em; }
.hero p { margin: 0; font-size: 13px; line-height: 1.65; color: #fbe7c6; }
.court { position: absolute; top: -3%; right: -11%; width: clamp(215px, 55%, 510px); height: 143%; transform: rotate(-18deg) skewY(7deg); background: linear-gradient(117deg, #ab4b2c, #cf7854 58%, #b45a3b); z-index: -1; box-shadow: -13px -10px 55px #5f241c5b; }
.court-lines { position: absolute; inset: 15% 16% 18% 18%; border: 2px solid #ffedcd90; }
.court-lines::before, .court-lines::after { position: absolute; inset-block: 0; width: 12%; content: ""; border-inline-end: 1px solid #ffedcd90; }
.court-lines::after { right: 0; border-inline-start: 1px solid #ffedcd90; border-inline-end: 0; }
.court-lines i { position: absolute; left: 12%; right: 12%; top: 25%; border-block-start: 1px solid #ffedcdaa; }.court-lines i:nth-child(2) { top: 75%; }.court-lines i:nth-child(3) { top: 50%; left: 0; right: 0; border-width: 2px; box-shadow: 0 5px 0 #71301a55; }
.court span { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #e2dd77; left: 66%; top: 64%; box-shadow: 2px 5px 7px #5d271e77; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.directory, .rank-section { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 15px; min-width: 0; }
.directory h2, .rank-section h2 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.directory a { display: flex; align-items: center; gap: 5px; min-height: 43px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.directory a strong { color: var(--ink); }
.directory a span { margin-left: auto; color: var(--clay); }
.filters { display: flex; gap: 12px; margin-top: 21px; justify-content: space-between; flex-wrap: wrap; }
.toggle-group { display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #f4e6d7; }
.toggle-group a { display: grid; place-items: center; min-width: 55px; min-height: 38px; padding: 0 8px; font-size: 14px; border-radius: 5px; color: var(--muted); font-weight: 700; }
.toggle-group a[aria-current] { background: var(--paper); color: var(--clay); box-shadow: 0 1px 3px #68391d22; }
.status { margin: 14px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.status:empty { display: none; }
.months { display: flex; gap: 6px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: thin; }
.months button, .load-again { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; min-height: 40px; white-space: nowrap; padding: 0 9px; font-size: 13px; }
.months button[aria-pressed="true"] { color: #fff9e9; background: var(--clay); border-color: var(--clay); }
.month-section { border-inline-start: 2px solid #c6785d; padding-inline-start: 12px; margin: 22px 0; }
.month-heading { margin: 0 0 9px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.month-heading::before { content: ""; width: 8px; height: 8px; margin-inline-start: -17px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--sand); }
.event { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.event-top { padding: 11px 12px; }
.event-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; color: var(--clay); gap: 3px 10px; font-size: 12px; font-weight: 700; }
.event-date { color: var(--ink); font-variant-numeric: tabular-nums; }
.event h3 { margin: 4px 0; font-size: 16px; overflow-wrap: anywhere; }
.event-location { margin: 1px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.finals { margin: 0 12px 12px; border-top: 1px solid var(--line); }
.final { padding-top: 9px; font-size: 13px; }
.final + .final { margin-top: 9px; border-top: 1px solid var(--line); }
.final h4 { margin: 0 0 5px; color: var(--clay); }
.final dl { display: grid; grid-template-columns: 2.4em 1fr; gap: 3px 6px; margin: 0; line-height: 1.45; }
.final dt, .final p { color: var(--muted); }.final dd { margin: 0; overflow-wrap: anywhere; }
.final p { margin: 4px 0 0; }.final-score { font-variant-numeric: tabular-nums; }
.rank-section { margin-top: 13px; padding: 12px 10px; }
.rank-section h2 { padding-inline: 3px; }.rank-meta { margin: 2px 3px 8px; color: var(--muted); font-size: 12px; }
.rank-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.rank-table th, .rank-table td { text-align: left; vertical-align: middle; border-bottom: 1px solid #ecddce; padding: 7px 2px; overflow-wrap: anywhere; }
.rank-table th { color: var(--muted); font-size: 11px; font-weight: 700; }.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table .rank, .rank-table .points, .rank-table .change { font-variant-numeric: tabular-nums; }
.rank-table .rank { width: 11%; }.rank-table .country { width: 15%; font-size: 12px; }.rank-table .name { width: 42%; font-weight: 650; }.rank-table .points { width: 18%; text-align: right; }.rank-table .change { width: 14%; text-align: right; white-space: nowrap; }
.rank-table .up { color: var(--green); }.rank-table .down { color: var(--clay); }
.empty { padding: 14px 3px 5px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 6px; padding-top: 30px; padding-bottom: 22px; font-size: 12px; color: var(--muted); }
@media (min-width: 660px) { .event-top { padding: 13px 15px; }.hero { min-height: 260px; }.rank-section { padding: 17px; } }
@media (max-width: 360px) { .shell { padding-inline: 12px; }.event-top { padding-inline: 9px; }.hero-content { max-width: 80%; }.rank-table { font-size: 12px; }.rank-table .country { font-size: 11px; } }
