:root {
  color-scheme: dark;
  --bg-center: #131a38;
  --bg-mid: #080a15;
  --bg-edge: #05060c;
  --text: #f2f4ff;
  --muted: #aeb6d3;
  --accent: #aabeff;
  --border: rgb(170 190 255 / 17%);
  --glow: 0 0 20px rgb(170 190 255 / 35%);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: radial-gradient(ellipse 75% 66% at 50% 21%, var(--bg-center), var(--bg-mid) 70%, var(--bg-edge)) fixed;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgb(170 190 255 / 30%); }
img { display: block; object-fit: contain; }
h1, h2, p { margin: 0; }
h1, h2 { text-shadow: var(--glow); }
.container { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .5rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: rgb(8 10 21 / 94%);
  backdrop-filter: blur(16px);
}
.site-header nav, footer nav { display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }
.site-header a { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.site-header a[aria-current], .site-header a:hover { color: var(--text); }
.site-header .language { padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 999px; }
.home-hero {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.home-hero img { width: clamp(3.5rem, 8vw, 5rem); height: auto; filter: drop-shadow(0 0 26px #768cf6); }
h1 { font-size: clamp(2.5rem, 7vw, 5.75rem); line-height: 1.05; letter-spacing: -.06em; }
.home-hero p, .note { color: var(--muted); line-height: 1.65; word-break: keep-all; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-bottom: clamp(4rem, 9vw, 7rem); }
.event-card {
  position: relative;
  display: grid;
  gap: .65rem;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgb(170 190 255 / 10%), rgb(170 190 255 / 3%));
}
.event-card:hover { border-color: var(--accent); text-decoration: none; background-color: rgb(170 190 255 / 7%); }
.event-card h2 { color: var(--text); font-size: clamp(1.7rem, 4vw, 2.75rem); letter-spacing: -.04em; }
.year, .results-meta { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.year { letter-spacing: .12em; }
.card-arrow { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.3rem; }
.event-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem); }
.event-hero h1 { margin-top: 1.25rem; }
.event-hero a { font-size: .9rem; }
.round { margin-block: .65rem 1rem; color: var(--muted); font-size: clamp(1.15rem, 3vw, 1.6rem); }
.results { margin-bottom: clamp(4rem, 9vw, 7rem); }
.results-meta { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.board { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: rgb(8 10 21 / 68%); }
.result + .result, .result-line + .result { border-top: 1px solid var(--border); }
.result-line {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto minmax(6rem, auto) 1rem;
  gap: .8rem;
  align-items: center;
  padding: .95rem 1rem;
  list-style: none;
}
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:hover, details[open] > summary { background: rgb(170 190 255 / 8%); }
summary:focus-visible { outline-offset: -3px; }
.rank { color: var(--accent); font-size: .87rem; font-weight: 650; }
.player { overflow-wrap: anywhere; font-weight: 650; }
.ignored .player { text-decoration: line-through; color: var(--muted); }
.ignored .score { color: var(--muted); }
.score { font: .88rem ui-monospace, monospace; text-align: right; white-space: nowrap; }
.perfect { color: #ffdf91; }
.chevron { width: .48rem; height: .48rem; margin-inline: auto; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
details[open] .chevron { transform: translateY(2px) rotate(225deg); }
.breakdown { padding: 1rem 1.25rem 1.35rem; border-top: 1px solid var(--border); background: rgb(170 190 255 / 4%); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
caption { text-align: left; font-weight: 650; padding-bottom: .65rem; }
th, td { padding: .65rem .5rem; text-align: left; border-bottom: 1px solid var(--border); }
th:last-child { text-align: right; }
tbody th { overflow-wrap: anywhere; font-weight: 550; }
small { display: block; color: var(--muted); margin-top: .2rem; font-weight: 400; }
thead, tfoot { color: var(--muted); }
.note { margin-top: .75rem; font-size: .85rem; }
.margins { display: flex; flex-wrap: wrap; gap: .15rem .4rem; font: .75rem ui-monospace, monospace; }
.hit { white-space: nowrap; }
.hit-0, .hit-6, .hit-8, .hit-9 { color: #ffa5af; }
.hit-1, .hit-5 { color: #ffd391; }
.hit-2, .hit-4 { color: #aabeff; }
.hit-3 { color: #a4edc2; }
.mobile-margins { display: none; }
.cutline { display: flex; align-items: center; gap: .8rem; padding: .42rem 1rem; color: var(--accent); background: #131b36; font-size: .75rem; font-weight: 650; }
.cutline::after { content: ''; height: 1px; flex: 1; background: var(--border); }
footer { border-top: 1px solid var(--border); border-radius: 2rem 2rem 0 0; background: linear-gradient(#070913, #131b3b); }
.footer-inner { padding-block: 2.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
footer nav { font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; width: 100%; border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: .78rem; color: var(--muted); }
.document { max-width: 52rem; padding-block: 4rem; line-height: 1.7; overflow-wrap: anywhere; }
.document h1 { margin-bottom: 1.5rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.document p + p { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 42rem) {
  .container { width: calc(100% - 2rem); }
  .event-grid { grid-template-columns: 1fr; }
  .site-header { gap: .5rem; }
  .site-header nav { gap: .45rem; }
  .site-header a { font-size: .75rem; }
  .brand img { width: clamp(4rem, 20vw, 6.25rem); height: auto; }
  .result-line { grid-template-columns: 2rem minmax(0, 1fr) auto .7rem; gap: .5rem; padding-inline: .75rem; }
  .overall-margins, .timing { display: none; }
  .mobile-margins { display: block; margin-top: .3rem; }
  .breakdown { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, summary { transition: background-color .2s, color .2s, border-color .2s; }
}
