@charset "UTF-8";

:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #252c27;
  --muted: #626c63;
  --line: #dde2d8;
  --accent: #285541;
  --accent-soft: #edf3ec;
  --accent-pale: #d9e4c9;
  --danger: #a6332a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; font-size: 15px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.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-link { position: absolute; left: 20px; top: -80px; z-index: 50; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 10px; }
h1, h2, p { margin: 0; }
h2 { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
svg { flex-shrink: 0; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1192px; margin: auto; padding: 20px 36px; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; text-decoration: none; min-height: 44px; }
.brand-mark { color: var(--accent); }
.brand-year { color: var(--muted); margin-left: 7px; font-size: 13px; font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.header-nav > span { color: var(--muted); border-left: 1px solid var(--line); padding-left: 26px; }
.page { max-width: 1192px; padding: 42px 36px 0; margin: auto; }
.page-intro { display: grid; grid-template-columns: 1fr 282px; gap: 48px; align-items: center; margin-bottom: 34px; }
.eyebrow { margin-bottom: 13px; color: var(--muted); font-weight: 500; font-size: 13px; }
h1 { font-size: 52px; letter-spacing: -.025em; line-height: 1.25; font-weight: 750; }
h1 span { color: var(--accent); }
.intro-subtitle { margin-top: 15px; font-size: 15px; color: var(--muted); max-width: 65ch; }
.event-date { position: relative; padding: 24px 26px 22px; border-radius: 12px; color: var(--surface); background: var(--accent); overflow: hidden; isolation: isolate; }
.date-label { font-size: 12px; color: var(--accent-pale); font-weight: 500; }
.date-main { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 22px; }
.date-main > span:first-child { font-size: 52px; line-height: 1.25; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.date-day { font-size: 13px; }
.date-esports { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #66806a; font-size: 12px; }
.date-track { position: absolute; right: -53px; top: -24px; color: #66806a; z-index: -1; opacity: .65; transform: rotate(-26deg); }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 30px; min-height: 60px; }
.grade-select { display: flex; gap: 6px; }
.grade-select button { min-height: 44px; padding: 8px 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; }
.grade-select button:hover { background: var(--accent-soft); }
.grade-select button[aria-pressed=true] { background: var(--accent); color: var(--surface); }
.refresh-area { display: flex; align-items: center; gap: 17px; }
.last-checked { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 13px; font-weight: 600; transition: transform 180ms var(--ease), opacity 180ms var(--ease); }
.refresh-button:hover { background: var(--accent-soft); }
.refresh-button:active { transform: scale(.98); }
.refresh-button[aria-busy=true] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice, .error-notice { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; margin-bottom: 24px; background: var(--surface); font-size: 14px; }
.notice strong { margin-right: 10px; }
.error-notice { border-left-color: var(--danger); color: var(--danger); }
.loading-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.loading-heading { width: 120px; height: 25px; background: var(--line); border-radius: 3px; margin-bottom: 16px; }
.skeleton-row { height: 64px; border-bottom: 1px solid var(--line); position: relative; }
.skeleton-row:before, .skeleton-row:after { content: ""; position: absolute; top: 23px; height: 18px; background: var(--accent-soft); border-radius: 3px; }
.skeleton-row:before { left: 14px; width: 130px; }
.skeleton-row:after { right: 14px; width: 64px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.ranking-section { padding: 26px 24px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.completion, .section-aside { font-size: 12px; color: var(--muted); white-space: nowrap; }
.completion strong { color: var(--ink); font-weight: 650; }
.ranking-columns, .rank-card { display: grid; grid-template-columns: 63px minmax(0, 1fr) auto 16px; column-gap: 14px; align-items: center; }
.ranking-columns { color: var(--muted); font-size: 12px; padding: 0 14px 11px; border-bottom: 1px solid var(--line); }
.ranking-columns span:nth-child(3) { text-align: right; }
.leaderboard { display: grid; }
.rank-card { position: relative; width: 100%; padding: 16px 14px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; min-height: 81px; transition: transform 160ms var(--ease); }
.rank-card:hover { background: #f7f9f5; }
.rank-card:active { transform: scale(.99); }
.rank-card.selected { background: var(--accent-soft); }
.rank-card.first .rank-number { color: var(--accent); font-weight: 750; }
.rank-number { font-size: 13px; color: var(--muted); line-height: 1.4; }
.rank-name { display: block; font-size: 17px; font-weight: 650; line-height: 1.4; }
.rank-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.rank-score { font-size: 23px; font-weight: 650; letter-spacing: -.02em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-score small { margin-left: 5px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rank-arrow { color: var(--muted); }
.rank-track { position: absolute; left: 91px; right: 44px; bottom: 0; height: 2px; background: var(--accent-soft); overflow: hidden; }
.rank-track > span { display: block; width: var(--score-share); height: 100%; background: var(--accent); opacity: .45; }
.ranking-note { font-size: 12px; color: var(--muted); margin-top: 16px; max-width: 65ch; }
.empty-score { display: flex; gap: 12px; align-items: center; padding: 18px 0 0; color: var(--muted); }
.empty-score strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.empty-score p > span { display: block; margin-top: 3px; font-size: 12px; }

.detail-section { min-width: 0; padding-top: 27px; scroll-margin-top: 24px; }
.class-select { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.class-select button { min-height: 44px; padding: 6px 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: transform 160ms var(--ease); }
.class-select button:hover { background: var(--surface); }
.class-select button:active { transform: scale(.98); }
.class-select button[aria-pressed=true] { background: var(--accent); color: var(--surface); }
.class-summary { background: var(--accent); color: var(--surface); border-radius: 10px; padding: 22px 24px; margin-bottom: 10px; }
.detail-summary-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.detail-class-name { font-size: 17px; font-weight: 600; }
.detail-rank { font-size: 12px; color: var(--accent-pale); }
.detail-total { font-size: 42px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.4; letter-spacing: -.025em; margin: 4px 0 0; overflow-wrap: anywhere; }
.detail-total small { font-size: 14px; margin-left: 7px; font-weight: 500; letter-spacing: 0; }
.detail-entered { font-size: 12px; color: var(--accent-pale); margin-top: 5px; }
.class-events { display: grid; padding: 0 3px; }
.class-event { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; min-height: 44px; font-size: 13px; }
.class-event-value { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pending { color: var(--muted); font-size: 12px; font-weight: 500; }
.negative { color: var(--danger); }
.empty-message { padding: 24px; color: var(--muted); }

.events-section { margin-top: 42px; scroll-margin-top: 24px; }
.section-description { color: var(--muted); font-size: 13px; margin-top: 5px; max-width: 65ch; }
.table-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.table-scroll { position: relative; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.score-table { width: 100%; border-spacing: 0; border-collapse: separate; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.score-table thead th { font-size: 12px; color: var(--muted); font-weight: 600; background: #f1f4ed; }
.score-table th:first-child { padding-left: 24px; text-align: left; width: 25%; }
.score-table thead th:first-child { border-radius: 10px 0 0; }
.score-table thead th:last-child { border-radius: 0 10px 0 0; }
.score-table tbody th { font-size: 14px; font-weight: 600; }
.event-date-label { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); font-weight: 500; }
.score-table .selected-col { background: var(--accent-soft); }
.score-table thead .selected-col { color: var(--accent); }
.score-table tfoot th, .score-table tfoot td { font-weight: 700; border-bottom: 0; background: #f1f4ed; }
.score-table tfoot th:first-child { border-radius: 0 0 0 10px; }
.score-table tfoot td:last-child { border-radius: 0 0 10px; }
.score-table tfoot .selected-col { background: #dce8d8; color: var(--accent); }
.score-table tfoot .selected-col .mobile-score-label { color: var(--accent); }
.status-pill { font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-pill.complete { color: var(--accent); font-weight: 600; }
.status-pill.partial { color: var(--ink); }
.mobile-score-label { display: none; }
.rules { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 20px 2px; min-height: 60px; font-size: 14px; font-weight: 600; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 14px; }
.rules summary svg { transition: transform 180ms var(--ease); }
.rules[open] summary svg { transform: rotate(90deg); }
.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rule { border-top: 1px solid var(--line); padding: 13px 0; }
.rule strong { display: block; font-size: 13px; font-weight: 600; }
.rule span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.rules > p { font-size: 12px; color: var(--muted); max-width: 65ch; margin: 12px 0 20px; }
.footer { display: flex; align-items: start; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; padding: 26px 0 32px; }
.footer strong { font-weight: 500; margin-left: 10px; }
.footer p { text-align: right; max-width: 65ch; }

@media (max-width: 960px) {
  .header-inner, .page { padding-inline: 28px; }
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-section { padding-top: 0; }
  .class-summary { display: grid; grid-template-columns: 1fr auto; gap: 0 24px; }
  .detail-total { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .detail-entered { grid-column: 1; }
  .class-events { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .header-nav { gap: 20px; }
  .header-nav > span { display: none; }
  .score-table th, .score-table td { padding-inline: 9px; }
  .score-table th:first-child { padding-left: 18px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 12px 20px; min-height: 68px; }
  .brand { font-size: 15px; gap: 9px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-year { margin-left: 4px; font-size: 11px; }
  .header-nav { display: none; }
  .page { padding: 28px 20px 0; }
  .page-intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: 24px; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  h1 { font-size: 36px; }
  .intro-subtitle { font-size: 13px; margin-top: 12px; }
  .event-date { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; padding: 16px 18px; border-radius: 8px; }
  .date-label { grid-column: 2; font-size: 11px; }
  .date-main { grid-column: 1; grid-row: 1 / 3; gap: 7px; margin: 0; align-items: center; }
  .date-main > span:first-child { font-size: 34px; }
  .date-day { font-size: 12px; }
  .date-esports { grid-column: 2; padding-top: 0; border-top: 0; justify-content: start; gap: 7px; font-size: 11px; }
  .date-track { top: -55px; right: -60px; }
  .board-toolbar { gap: 8px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 12px; }
  .grade-select { gap: 3px; }
  .grade-select button { padding: 8px 18px; font-size: 14px; }
  .refresh-area { gap: 8px; margin-left: auto; }
  .last-checked { display: none; }
  .refresh-button { min-width: 44px; padding: 10px; }
  .refresh-button > span { display: none; }
  .ranking-section { padding: 20px 16px 17px; }
  h2 { font-size: 18px; }
  .section-heading { gap: 10px; margin-bottom: 16px; }
  .completion, .section-aside { font-size: 11px; }
  .ranking-columns, .rank-card { grid-template-columns: 51px minmax(0, 1fr) auto 14px; column-gap: 9px; }
  .ranking-columns { padding-inline: 9px; font-size: 11px; }
  .rank-card { padding: 14px 9px; min-height: 75px; }
  .rank-number { font-size: 12px; }
  .rank-name { font-size: 16px; }
  .rank-meta { font-size: 11px; }
  .rank-score { font-size: 22px; }
  .rank-score small { font-size: 11px; margin-left: 4px; }
  .rank-track { left: 69px; right: 33px; }
  .empty-score { gap: 10px; padding-top: 16px; }
  .empty-score p > span { font-size: 11px; }
  .ranking-note { font-size: 11px; margin-top: 13px; }
  .overview-grid { gap: 28px; }
  .class-select { margin-bottom: 13px; }
  .class-summary { padding: 20px; display: block; }
  .detail-class-name { font-size: 16px; }
  .detail-total { font-size: 38px; }
  .class-events { grid-template-columns: 1fr; padding-inline: 2px; }
  .class-event { font-size: 13px; padding-block: 12px; min-height: 48px; }
  .events-section { margin-top: 34px; }
  .events-section .section-heading { align-items: start; }
  .section-description { font-size: 12px; max-width: 24ch; }
  .table-hint { font-size: 11px; margin-top: 4px; }
  .score-table, .score-table tbody, .score-table tfoot { display: block; }
  .score-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .score-table tbody tr, .score-table tfoot tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 2px; padding: 18px 12px; border-bottom: 1px solid var(--line); }
  .score-table th, .score-table td { border: 0; padding: 0; }
  .score-table tbody th:first-child { grid-column: 1 / 5; width: auto; padding: 0; font-size: 13px; align-self: center; }
  .event-date-label { font-size: 11px; margin-top: 2px; }
  .score-table tbody td[data-class] { grid-row: 2; padding: 6px 1px; border-radius: 5px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
  .score-table tbody td:last-child { grid-column: 5 / 7; grid-row: 1; text-align: right; align-self: center; }
  .mobile-score-label { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 5px; }
  .score-table tbody .pending { font-size: 17px; }
  .status-pill { font-size: 11px; }
  .score-table tfoot tr { border-bottom: 0; background: #f1f4ed; border-radius: 0 0 10px 10px; }
  .score-table tfoot th:first-child { width: auto; grid-column: 1 / -1; padding: 0; font-size: 14px; }
  .score-table tfoot td[data-class] { padding: 6px 1px; font-size: 17px; border-radius: 5px; overflow-wrap: anywhere; }
  .score-table tfoot td:last-child { display: none; }
  .rules { margin-top: 22px; }
  .rules summary { font-size: 13px; }
  .rules summary small { font-size: 11px; margin-left: 9px; }
  .rules-list { grid-template-columns: 1fr; }
  .footer { display: block; font-size: 11px; padding-block: 23px; }
  .footer p { margin-top: 10px; text-align: left; }
}
@media (max-width: 360px) {
  .header-inner, .page { padding-inline: 18px; }
  .brand-year { display: none; }
  .grade-select button { padding-inline: 15px; }
  .class-select { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ranking-section { padding-inline: 12px; }
  .ranking-columns, .rank-card { column-gap: 7px; }
  .rank-score { font-size: 20px; }
  .event-date { column-gap: 12px; padding-inline: 14px; }
  .date-main > span:first-child { font-size: 30px; }
  .date-day { font-size: 11px; }
  .date-esports { gap: 5px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
