/* ON THE DOT. public shell: stadium teal, coral kit and citrus accents.
 * The stadium remains full-bleed; these rules never reposition its camera. */
body { font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.points-header { max-width:1240px; margin:auto; border:0; background:transparent; padding:24px 32px; gap:24px; }
.points-header nav { margin-left:auto; gap:24px; }
.points-header nav a[aria-current] { color:var(--text); border-color:var(--accent); }
.points-brand { font-size:28px; font-weight:900; }
.icon-button { display:inline-grid; place-items:center; width:44px; height:44px; min-width:44px; padding:11px; background:var(--surface); border:1px solid var(--border); border-radius:50%; cursor:pointer; }
.icon-button img, .primary-link img, .shell-drawer nav img { width:20px; height:20px; }
.icon-button img,.shell-drawer nav img,#share-result img { filter:invert(1); }
.coral-button img,.primary-link img { filter:none; }
.coral-button { background:var(--accent); border-color:var(--accent); }
.icon-button:hover { box-shadow:0 3px 12px #1b1d2515; }
.solo-page,.penalty-page,body:not(.stadium-playing) .solo-penalties,body:not(.stadium-playing) .penalty-page { max-width:820px; }
.solo-heading,.penalty-heading { margin:12px 0 32px; }
.solo-heading h1,.penalty-heading h1 { font-size:44px; line-height:1.1; font-weight:850; }
.solo-heading .actions { gap:16px; font-size:13px; }
.quiz-selection { gap:28px; }
.quiz-filters { padding-top:26px; border-top:3px solid var(--text); }
.quiz-filters label { font-size:13px; font-weight:700; }
.solo-page select { min-height:52px; }
.difficulty-options { gap:0; border:1px solid var(--border)!important; border-radius:8px; overflow:hidden; }
.difficulty-options legend { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.difficulty-options label { border:0; border-right:1px solid var(--border); border-radius:0; padding:20px 16px; }
.difficulty-options label:last-child { border-right:0; }
.difficulty-options label:has(:checked) { box-shadow:inset 0 -3px var(--highlight); }
.difficulty-options input { accent-color:var(--text); }
.difficulty-options label>span { font-size:18px; font-weight:750; }
.difficulty-options small { font-weight:400; font-size:12px; }
#start { width:100%; min-height:58px; font-size:16px; font-weight:800; border-radius:6px; }
.quiz-selection #quiz-rules { color:var(--text); }
.solo-page .primary,.penalty-page button.primary { font-weight:800; }
.solo-choices button { font-weight:650; }
.solo-choices button:not(:disabled):hover { background:var(--selection); border-color:var(--highlight); }
#summary { border:0; background:transparent; border-radius:0; padding:0; }
#summary h2 { font-size:36px; font-weight:850; }
#summary .metrics { border-top:3px solid var(--text); }
#summary .metric strong { font-size:32px; }
#result-level-progress { appearance:none; display:block; width:100%; height:8px; margin:16px 0; accent-color:var(--accent); }
.result-heading-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:18px; }
#summary .result-heading-row h2 { margin:0; }
#summary #share-result { display:flex; align-items:center; justify-content:center; gap:8px; width:auto; max-width:168px; min-height:44px; height:auto; padding:10px 12px; border-radius:6px; font-size:13px; font-weight:650; line-height:1.3; text-align:left; }
#summary #share-result img { flex:none; }
#summary #result-completion { margin-top:12px; }
.result-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
#summary .result-actions > * { display:flex; justify-content:center; align-items:center; min-height:46px; padding:12px 14px; border:1px solid var(--accent); border-radius:6px; background:var(--accent); color:#101c20; text-align:center; font-family:inherit; font-size:14px; font-weight:700; line-height:1.3; text-decoration:none; }
#summary #share-download { color:#101c20; }
#summary .result-actions > *:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
#summary :is(button,a):focus-visible { outline:2px solid var(--highlight); outline-offset:3px; }
#share-status:empty { display:none; }
#share-options { margin:24px 0; }
#share-preview { display:block; width:100%; height:auto; aspect-ratio:1200/630; border-radius:6px; margin-bottom:16px; }
#share-copy { display:inline-flex; align-items:center; gap:10px; }
#share-copy img { width:18px; height:18px; filter:invert(1); }
#share-link { margin-top:14px; }
@media(max-width:500px) { .result-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } .result-actions #another { grid-column:1/-1; } }
progress::-webkit-progress-bar { background:var(--border); }
progress::-webkit-progress-value { background:var(--accent); }
progress::-moz-progress-bar { background:var(--accent); }
.primary-link { display:inline-flex; align-items:center; justify-content:center; gap:16px; min-height:44px; padding:12px 20px; border-radius:6px; background:var(--accent); color:var(--ink); text-decoration:none; font-weight:750; }
.primary-link:hover { background:var(--accent-hover); }
.shell-drawer { margin:0; padding:28px; width:min(390px,100%); max-width:100%; height:100dvh; max-height:100dvh; border:0; border-right:1px solid var(--border); background:var(--bg); color:var(--text); }
.shell-drawer::backdrop { background:#03090ca6; backdrop-filter:blur(3px); }
.drawer-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:32px; }
.drawer-heading h2 { font-size:24px; margin:0; font-weight:850; }
.drawer-heading h2 span { color:var(--accent); }
.shell-drawer nav { display:grid; }
.shell-drawer nav a { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 0; border-bottom:1px solid var(--border); text-decoration:none; font-size:17px; font-weight:650; }
.shell-drawer nav a span { font-size:11px; color:var(--muted); font-weight:400; }
.shell-drawer nav a:hover { color:var(--accent); }
.community-page { max-width:820px; margin:16px auto 80px; padding:0 24px; }
.section-label { font-size:11px; font-weight:700; color:var(--muted); margin-bottom:12px; }
.community-heading h1 { font-size:48px; line-height:1.1; font-weight:850; margin:0 0 30px; }
.period-tabs { display:flex; gap:8px; border:0; padding:0; margin:0 0 24px; }
.period-tabs label { position:relative; }
.period-tabs input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.period-tabs span { display:block; padding:11px 20px; background:var(--surface); border-radius:6px; font-size:12px; font-weight:750; }
.period-tabs :checked+span { background:var(--highlight); color:var(--ink); }
.period-tabs :focus-visible+span { outline:2px solid var(--accent); outline-offset:3px; }
.ranking-self { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:20px 24px; background:var(--surface-raised); color:var(--text); border:1px solid var(--border); border-radius:6px; margin-bottom:30px; }
.ranking-self strong { font-size:15px; }.ranking-self a { color:var(--highlight); font-size:13px; }.ranking-self span { color:var(--highlight); font-weight:750; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.section-heading h2 { font-size:13px; font-weight:750; margin:0; }.section-heading span { font-size:12px; color:var(--muted); }
.score-distribution { padding:26px 0; border-bottom:1px solid var(--border); margin:20px 0; }
#distribution-bars { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; height:150px; align-items:end; }
.distribution-column { display:grid; grid-template-rows:20px 100px 20px; gap:5px; text-align:center; font-size:11px; }
.distribution-bar { background:var(--accent); border-radius:5px 5px 0 0; align-self:end; }
.distribution-column small { font-size:11px; color:var(--muted); }
#ranking-period { margin:0 0 18px; }
.ranking-table table { width:100%; border-collapse:collapse; table-layout:fixed; font-variant-numeric:tabular-nums; }
.ranking-table th { text-align:left; padding:12px; font-size:11px; font-weight:600; color:var(--muted); }
.ranking-table th:first-child { width:64px; }.ranking-table th:nth-child(3) { width:70px; }.ranking-table th:last-child { width:100px; }
.ranking-table th:last-child,.ranking-table td:last-child { text-align:right; }
.ranking-table td { padding:18px 12px; border-top:1px solid var(--border); background:var(--surface); font-size:14px; }
.ranking-table td:nth-child(2) a { text-decoration:none; font-weight:750; overflow-wrap:anywhere; }
.ranking-table td:nth-child(2) small { display:block; font-size:10px; margin-top:4px; }
.ranking-table td:last-child { font-weight:800; }
.ranking-table .own-rank td { background:var(--selection); }
.community-actions { display:flex; gap:16px; align-items:center; margin:24px 0; }
.community-page button { min-height:42px; padding:10px 18px; border:1px solid var(--border); border-radius:6px; color:var(--text); background:var(--surface); }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:28px; }.pagination span { font-size:12px; }
.history-row { display:grid; grid-template-columns:110px minmax(0,1fr) 90px; align-items:center; gap:20px; padding:24px 0; text-decoration:none; border-top:1px solid var(--border); }
.history-row:hover { background:var(--surface-raised); }.history-row time { color:var(--muted); font-size:12px; }.history-row strong { font-size:16px; }
.history-row span { display:block; color:var(--muted); font-size:12px; line-height:1.6; margin-top:5px; }.history-score { text-align:right; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:700px) {
  .points-header { padding:16px; gap:16px; flex-wrap:nowrap; justify-content:flex-start; }.points-header nav { display:none; }
  .points-brand { font-size:20px; }.solo-heading h1,.penalty-heading h1 { font-size:36px; }
  .solo-page,.penalty-page { padding-top:18px; }.solo-heading { margin:8px 0 24px; }
  .community-page { margin-top:20px; padding:0 16px; }.community-heading h1 { font-size:36px; }
  .period-tabs span { padding:11px 16px; }.ranking-self { padding:18px; }
  .ranking-table th,.ranking-table td { padding:16px 8px; }.ranking-table th:first-child { width:42px; }.ranking-table th:nth-child(3) { width:45px; }.ranking-table th:last-child { width:64px; }
  .ranking-table td { font-size:13px; }
  .difficulty-options label { padding:18px 10px; }.difficulty-options label>span { font-size:16px; }
  .history-row { grid-template-columns:minmax(0,1fr) 70px; gap:8px 14px; }.history-row time { grid-column:1/-1; }
  #summary h2 { font-size:28px; }#summary .metric strong { font-size:26px; }
}
.ranking-table { overflow-x:auto; }
.ranking-table table { min-width:570px; }
.ranking-table th { width:70px; }
.ranking-table th:nth-child(2) { width:auto; }
.ranking-tabs { margin-bottom:12px; }
.period-tabs :disabled+span { opacity:.5; }
#team-edit:not([hidden]) { display:grid; gap:18px; }
#profile-record { border-top:0; margin-top:0; }
@media(max-width:700px) {
  .ranking-table table { min-width:0; }
  .ranking-table[data-metric="level"] :is(th,td):nth-child(n+4),
  .ranking-table[data-metric="wins"] :is(th,td):nth-child(3),
  .ranking-table[data-metric="wins"] :is(th,td):nth-child(n+5),
  .ranking-table[data-metric="win_rate"] :is(th,td):nth-child(3),
  .ranking-table[data-metric="win_rate"] :is(th,td):nth-child(4),
  .ranking-table[data-metric="win_rate"] :is(th,td):nth-child(5) { display:none; }
}
@media(prefers-reduced-motion:no-preference) {
  .shell-drawer[open] { animation:drawer-in .18s ease-out; }
  @keyframes drawer-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
}
