/* The club surface: quiet typography, a tangible court, and restrained depth. */
:root {
  --bg:#f1f4f1;--paper:#fff;--ink:#223e32;--muted:#748279;
  --green:#1b5943;--line:#234e3410;--soft:#edf3ed;
  --spring:cubic-bezier(.22,.75,.28,1);
  --paper-shadow:0 3px 5px #224d3003,0 15px 42px #224d3005;
  font-family:"Segoe UI Variable","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
body {background:radial-gradient(ellipse at 85% 0%,#e6ede450,transparent 52%),var(--bg)}
button {transition:background .22s var(--spring),color .22s var(--spring),box-shadow .22s var(--spring),transform .22s var(--spring)}
button:active:not(:disabled) {transform:scale(.98)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #83af9570;outline-offset:4px}
.topbar {
  max-width:1200px;width:calc(100% - 64px);height:78px;margin:24px auto 0;padding:0 26px;
  gap:54px;border:1px solid #fff9;border-radius:22px;background:#ffffffd9;
  box-shadow:0 2px 2px #2b513204,0 10px 35px #2b513205,inset 0 1px 0 #fff;
}
.brand {gap:11px;font-size:1.4rem;letter-spacing:.02em}
.brandmark {width:41px;height:44px;border-radius:13px;background:linear-gradient(145deg,#2e6a51,#174832);color:#f0f6df;box-shadow:inset 0 1px 0 #ffffff2b,0 3px 6px #173c281a}
.brandmark svg {width:29px;height:29px;transform:rotate(20deg)}
.brand-name {display:block;line-height:1.2;font-weight:650}
.brand-name small {display:block;letter-spacing:.14em;font-size:.55rem;font-weight:500;margin-top:5px;color:#859086}
#desktop-nav {align-self:center;gap:4px;padding:4px;border-radius:14px;background:#eff3ee}
#desktop-nav button {min-height:40px;padding:0 23px;font-size:.875rem;border-radius:11px;gap:8px}
#desktop-nav button .icon {width:17px;height:17px}
#desktop-nav button.active {background:#fff;box-shadow:0 2px 5px #2148340a;outline:1px solid #21483404}
#desktop-nav button.active:after {display:none}
#desktop-nav button:not(.active):hover {background:#ffffff80}
.header-tools {gap:14px}
.identity-button {display:flex;align-items:center;gap:9px;font-size:.8125rem;background:#f3f5f1;padding:8px 12px;border-radius:12px;max-width:190px}
.identity-button:before {content:"";width:19px;height:19px;flex-shrink:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8374' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 20v-1a7 7 0 0 1 14 0v1'/%3E%3C/svg%3E") center/contain no-repeat}
.icon-button {border-color:#254d3312;background:#fff9;color:#809084}
.app-shell {max-width:1256px}
main {padding-top:42px}
main:focus {outline:none}
.page-heading {margin-bottom:34px}
.page-heading h1 {font-size:1.9rem;letter-spacing:-.04em;font-weight:650;line-height:1.25}
.page-heading p {display:flex;align-items:center;gap:13px;margin-top:13px;font-size:.875rem;color:#819085}
.session-chip {display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;background:#e3ece2;color:#4d6b54;border-radius:6px;font-size:.75rem;font-weight:500}
.session-meta {font-size:.8125rem;color:#809083;display:inline-flex;align-items:center}
.meta-divider {margin:0 11px;color:#c4cdc2;font-weight:300}
.page-heading>.button {background:#ffffffa6;border-color:#fff9;box-shadow:0 2px 6px #2b513204;color:#52715c;min-height:44px;padding:10px 17px}
.button {border-radius:12px;border-color:#234e3410;background:#fff;min-height:46px;padding:11px 18px;font-size:.875rem;font-weight:550;box-shadow:0 1px 1px #234e3403}
.button:hover {background:#f6faf4;border-color:#234e341a;box-shadow:0 3px 8px #234e3405}
.button.primary {background:linear-gradient(145deg,#286548,#1a513a);border-color:#285b3e;box-shadow:inset 0 1px 0 #ffffff20,0 5px 12px #254c3220;color:#fff;border-radius:30px;padding:11px 23px;gap:10px}
.button.primary:hover {background:linear-gradient(145deg,#327451,#205c40);box-shadow:inset 0 1px 0 #ffffff20,0 7px 16px #254c3228;transform:translateY(-1px)}
.button.primary .icon {width:27px;height:27px;padding:6px;border-radius:50%;background:#ffffff12;stroke-width:1.6}
.button.primary:disabled {transform:none;box-shadow:none}
.text-button {gap:7px;font-weight:500;font-size:.8125rem;text-decoration:none}
.text-button .icon {width:15px;height:15px}
.text-button:hover {text-decoration:none;color:#2d7b51}
.workspace {grid-template-columns:minmax(0,1fr) 264px;gap:30px}
.section-header {margin-bottom:18px;min-height:38px}
.section-header h2 {font-size:1rem;font-weight:600;letter-spacing:-.02em}
.round-label {gap:12px}
.round-label h2 b {font-size:1.3rem;font-weight:600;font-family:Bahnschrift,"Segoe UI Variable",sans-serif;margin:0 2px;font-variant-numeric:tabular-nums;vertical-align:-1px}
.tag {display:inline-flex;align-items:center;border-radius:6px;padding:4px 8px;font-size:.75rem;background:#e6ede5;color:#6b806b}
.tag.live {background:#deeddf;color:#356548}
.tag.live:before {content:"";width:5px;height:5px;border-radius:50%;background:#43895e;margin-right:6px}
.round-tools {gap:13px}
.more-menu summary {width:28px;color:#9ca89a}
.more-menu>div {border:1px solid #fff;border-radius:14px;padding:6px;box-shadow:0 12px 38px #163d2220}
.more-menu button {font-size:.8125rem;border-radius:8px}
.courts {gap:20px}
.court-card {border:1px solid #ffffffc9;border-radius:22px;background:#fff;box-shadow:var(--paper-shadow),inset 0 1px 0 #fff}
.court-heading {padding:18px 21px 17px}
.court-identity {display:flex;align-items:center;gap:10px}
.court-glyph {display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f0f4ed;color:#78906e}
.court-glyph .icon {width:17px;height:17px;stroke-width:1.3}
.court-heading h3 {font-size:.9375rem;font-weight:600;letter-spacing:.01em}
.court-status {font-size:.75rem;color:#91a08e;font-variant-numeric:tabular-nums}
.court {
  margin:0 10px 10px;min-height:222px;padding:35px 16px 32px;gap:8px;
  grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);border-radius:14px;
  color:#fff;background:radial-gradient(ellipse at 20% 0%,#34775970,transparent 80%),#20573f;
  box-shadow:inset 0 1px 1px #ffffff0a,inset 0 -5px 12px #0d302410;
}
.court-lines {position:absolute;inset:15px 15px;border:1px solid #e7f4cf2e;pointer-events:none}
.court-lines:before {content:"";position:absolute;inset:25px 0;border-top:1px solid #e7f4cf20;border-bottom:1px solid #e7f4cf20}
.court-lines:after {content:"";position:absolute;inset:0 20%;border-left:1px solid #e7f4cf1a;border-right:1px solid #e7f4cf1a}
.net {top:16px;bottom:16px;border-color:#e7f4cf61;z-index:0}
.team {gap:15px}
.team-label {font-size:.75rem;letter-spacing:.06em;color:#b6cdb7;line-height:1.4;margin-bottom:1px}
.court-player {gap:6px;line-height:1.4}
.court-player b {font-size:1.125rem;font-weight:600;letter-spacing:.02em}
.court-player small {font-size:.75rem;color:#b7cdb7}
.seed-badge {font-size:.6875rem;border-radius:4px;line-height:1.5;background:#f3f6e8;border-color:#e3e9d7;color:#6a7d51;padding:0 5px;white-space:nowrap;font-weight:500}
.court .seed-badge {color:#e2edb8;border:1px solid #d5e4a546;background:#e1edb10c;font-size:.625rem;padding:1px 4px}
.versus {background:#255b43;color:#a6c2a7;font-size:.75rem;font-weight:500;letter-spacing:.08em;line-height:2}
.referee-slot {padding:7px 21px 9px;min-height:62px;border-top-color:#31533c08}
.referee-slot>div:first-child {gap:10px;font-size:.8125rem}
.referee-label {color:#899487;font-size:.75rem}
.referee-slot strong {font-weight:500;color:#516c55}
.referee-slot strong.referee-empty {color:#a5afa1;font-weight:400}
.referee-controls {gap:6px}
.referee-controls .text-button {font-size:.75rem;min-height:34px;padding:7px 11px;background:#f0f5eb;border-radius:8px;color:#65805c}
.referee-controls .text-button:hover {background:#e4eddc;color:#42683f}
.referee-controls .icon-small {width:25px;height:34px;color:#9aa993;font-size:.875rem}
.saved-score {padding:2px 21px 14px;font-size:.75rem;color:#75906e}
.saved-score span {color:#a4afa0}
.round-actions {margin-top:23px;gap:13px;align-items:center}
.round-actions>.button {min-width:170px}
.waiting-panel {padding:19px 21px 17px;border:1px solid #ffffffb3;border-radius:20px;background:#ffffff9c;box-shadow:0 8px 32px #224d3003;margin-top:56px}
.waiting-panel .section-header {margin:0 0 11px;min-height:30px}
.waiting-panel .section-header h2 {font-size:.9375rem}
.count-label {display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:3px 7px;border-radius:6px;background:#edf2e9;color:#8b9c80;font-size:.75rem}
.waiting-list {display:block}
.wait-chip {width:100%;padding:14px 0;justify-content:space-between;gap:10px;background:none;border:0;border-bottom:1px solid #31533c09;border-radius:0;font-size:.9375rem;color:#547052;line-height:1.45;font-weight:500}
.wait-chip small {font-size:.6875rem;padding:1px 5px;background:#eef2e8;border-radius:4px;color:#9aa98d;font-weight:400;flex-shrink:0}
.wait-chip:last-child {border:0}
.manage-players {margin-top:9px;color:#90a085;font-size:.75rem}
.page-footer {display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;padding-top:42px;color:#9caa94;font-size:.6875rem;letter-spacing:.02em}
.footer-dot {margin:0 7px;color:#b7c1b1}
.empty-state {border:1px solid #fff;border-radius:20px;box-shadow:var(--paper-shadow);padding:45px 24px}
.empty-state h2 {font-weight:550}
.demo-banner {border:1px solid #fff9;background:#e9efe5;border-radius:12px;color:#6e8564;padding:11px 17px}
.demo-banner button {font-size:.8125rem}
.avatar {width:42px;height:45px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:#eaf0e4;color:#7b956b;font-size:1rem;font-weight:500;box-shadow:inset 0 1px 0 #ffffffb3}
.player-list {background:none;border:0;padding:0;gap:14px;max-width:none}
.player-card {border:1px solid #fff;border-radius:17px;gap:14px;padding:21px 19px;box-shadow:var(--paper-shadow);background:#ffffffcf}
.player-info {flex:1}
.player-info strong {font-size:.9375rem;font-weight:600}
.player-info p {font-size:.75rem;color:#95a18f;margin-top:6px}
.player-card.paused {background:#f6f7f2}
.player-card.paused .avatar {background:#edf0e8;color:#a6b19d}
.player-card .icon-small {color:#9aaa91;width:32px;border-radius:9px}
.player-card .icon-small:hover {background:#eaf0e4;color:#54704d}
.search {background:#ffffffba;border:1px solid #fff9;box-shadow:inset 0 1px 0 #fff;padding-left:15px;border-radius:12px;font-size:.875rem}
.player-toolbar {margin-bottom:22px}
.player-toolbar .muted-note {font-size:.75rem;color:#9aaa91}
.history-tabs {display:inline-flex;width:218px;gap:4px;margin-bottom:27px;padding:4px;border:0;border-radius:13px;background:#e6ede2}
.history-tabs button {flex:1;min-height:38px;padding:7px 10px;border-radius:10px;font-size:.8125rem;color:#86977b}
.history-tabs button.active {background:#fff;box-shadow:0 2px 4px #31533c08;color:#4d6f48}
.history-tabs button.active:after {display:none}
.history-card {border:1px solid #fff;border-radius:20px;box-shadow:var(--paper-shadow);padding:24px 27px;max-width:940px}
.history-header h2 {font-size:.9375rem;font-weight:600;letter-spacing:.01em}
.history-header h2 small {font-size:.75rem;color:#a1af97}
.history-header time {font-family:Bahnschrift,"Segoe UI Variable",sans-serif;font-size:.75rem;color:#9bab90;font-variant-numeric:tabular-nums}
.history-match {border-color:#234e340c;margin-top:18px;padding-top:6px}
.history-match-heading {font-size:.75rem;color:#9aab8f}
.history-match-heading .text-button {font-size:.75rem;color:#839b74}
.match-result {grid-template-columns:minmax(0,1fr) 128px minmax(0,1fr);padding:8px 0 19px}
.score {font-size:1.85rem;font-family:Bahnschrift,"Segoe UI Variable",sans-serif;font-weight:500;color:#446c41;letter-spacing:.02em}
.score small {font-family:"Segoe UI Variable","Microsoft YaHei",sans-serif;color:#9baa90}
.team-names {font-size:.9375rem;line-height:1.9;color:#84927c}
.team-names.winner {color:#456d3e;font-weight:550}
.win-label {background:#eaf1e1;color:#8fa274;border-radius:4px;font-weight:400;padding:1px 5px;font-size:.6875rem;vertical-align:1px}
.referee-history {color:#a4b098;font-size:.75rem}
.leaderboard {max-width:940px}
.leaderboard .section-header {margin-bottom:16px}
.leaderboard .muted-note {font-size:.8125rem;color:#94a187}
.table-wrap {border:1px solid #fff;border-radius:19px;box-shadow:var(--paper-shadow)}
th {background:#f9fbf6;color:#9aa88e;padding:18px 23px;font-size:.75rem;border-color:#234e3409}
td {padding:20px 23px;font-size:.875rem;color:#6d8461;border-color:#234e3409}
tbody tr {transition:background .2s var(--spring)}
tbody tr:hover {background:#fafcf7}
.rank-number {width:32px;font-family:Bahnschrift,sans-serif;font-size:.8125rem;color:#acb79f}
.points {font-family:Bahnschrift,sans-serif;font-size:1.25rem;font-weight:500;color:#527b48}
.stats-filter {font-size:.8125rem;background-color:#ffffffad;border-color:#fff;border-radius:10px;min-height:40px}
.stats-note {font-size:.75rem;color:#a3af98}
dialog {border:1px solid #fff9;border-radius:22px;box-shadow:0 16px 80px #14332329,0 2px 8px #1433230a;animation:dialog-in .28s var(--spring)}
dialog::backdrop {background:#203b2f55;backdrop-filter:blur(3px)}
#modal-content {padding:29px}
.modal-header {margin-bottom:14px}
.modal-header h2 {font-size:1.2rem;font-weight:600;color:#355c3b}
.modal-header .icon-button {border:0;background:#f1f5ec;color:#9bab90}
.modal-description {font-size:.8125rem;color:#9aaa90}
input:not([type=checkbox]),select,textarea {border-color:#405d3517;border-radius:11px;background-color:#fbfcf8;box-shadow:inset 0 1px 2px #31472b03,0 1px 0 #fff;transition:border-color .22s var(--spring),box-shadow .22s var(--spring)}
input:not([type=checkbox]):focus,select:focus,textarea:focus {background-color:#fff;border-color:#70906666;box-shadow:0 0 0 3px #7090660c}
label {font-size:.8125rem;color:#6c8461;font-weight:500}
.field-help,.help-note {color:#9caa90;font-size:.75rem;line-height:1.8}
.help-note {background:#f1f5eb;border:1px solid #fff;border-radius:12px}
.form-error {font-size:.8125rem;line-height:1.7}
.modal-actions {margin-top:26px;gap:12px}
.modal-actions .button {min-height:45px}
.score-entry {background:#f4f7ef;border:1px solid #f0f3e9;border-radius:15px;padding:19px;margin-top:21px;box-shadow:inset 0 1px 0 #ffffffb3}
.score-entry h3 {font-size:.75rem;color:#a0ad94;margin-bottom:14px}
.score-fields {gap:10px}
.score-fields label {font-size:.8125rem;color:#8b9f7b;line-height:1.6}
.score-fields input {border-color:#fff;box-shadow:0 2px 5px #31472b04;font-size:1.8rem;font-family:Bahnschrift,sans-serif;background-color:#fff}
.winner-field label {color:#94a584;font-size:.75rem}
.winner-field select {background-color:#ffffffa6;border-color:#fff;font-size:.8125rem}
.locked-settings dt,.locked-settings dd {font-size:.8125rem}
.locked-settings>div {border-color:#234e3409}
.locked-settings dt {color:#a2af96}
.locked-settings dd {color:#76906a}
.help-list {font-size:.8125rem;color:#96a68a;line-height:1.9}
#toast {border:1px solid #ffffff12;border-radius:13px;box-shadow:0 8px 28px #14332329;background:#2a513b;font-size:.8125rem;transition:opacity .22s var(--spring),transform .22s var(--spring)}
@keyframes surface-in {from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes dialog-in {from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.page-heading,.court-card,.waiting-panel,.history-card,.player-card,.leaderboard {animation:surface-in .5s var(--spring) both}
.court-card:nth-child(2),.player-card:nth-child(2) {animation-delay:.045s}
.court-card:nth-child(3),.player-card:nth-child(3) {animation-delay:.075s}
.court-card:nth-child(4),.player-card:nth-child(4) {animation-delay:.1s}
@media(min-width:1100px) {
  .courts.single .court {min-height:254px;padding:39px 28px;grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)}
  .courts.single .court-player b {font-size:1.35rem}
  .courts.single .team {gap:18px}
  .courts.single .team-label {font-size:.8125rem}
}
@media(max-width:1050px) {
  .topbar {gap:28px;width:calc(100% - 48px);padding:0 22px}
  #desktop-nav button {padding-inline:17px}
  .workspace {grid-template-columns:minmax(0,1fr) 222px;gap:25px}
  .waiting-panel {padding-inline:18px}
}
@media(max-width:760px) {
  .topbar {width:auto;max-width:none;margin:0;height:80px;padding:0 21px;border:0;border-radius:0;box-shadow:none;background:transparent;gap:12px}
  .brand {font-size:1.2rem;gap:9px}
  .brandmark {width:36px;height:39px;border-radius:11px}
  .brandmark svg {width:25px;height:25px}
  .brand-name small {font-size:.43rem;letter-spacing:.1em;margin-top:4px}
  .header-tools {gap:9px}
  .identity-button {max-width:156px;font-size:.75rem;min-height:38px;padding:8px 10px;gap:6px;border-radius:11px;background:#ffffff96}
  .identity-button:before {width:16px;height:16px}
  .header-tools .icon-button {width:29px;height:29px;font-size:.8125rem}
  main {padding:21px 20px 0}
  .page-heading {margin-bottom:27px;gap:14px}
  .page-heading h1 {font-size:1.55rem;line-height:1.3;letter-spacing:-.035em}
  .page-heading p {margin-top:11px;gap:10px;font-size:.8125rem;flex-wrap:wrap;row-gap:5px}
  .session-chip {font-size:.6875rem;padding:2px 7px;min-height:23px;border-radius:5px}
  .session-meta {font-size:.75rem}
  .meta-divider {margin:0 8px}
  .page-heading>.button {min-height:39px;padding:8px 12px;font-size:.75rem;border-radius:11px;margin-top:2px}
  .page-heading>.button .icon {width:14px;height:14px}
  .workspace {grid-template-columns:1fr;gap:23px}
  .section-header {min-height:36px;margin-bottom:13px}
  .round-label {gap:10px}
  .round-label h2 {font-size:.875rem}
  .round-label h2 b {font-size:1.2rem}
  .tag {font-size:.6875rem;padding:4px 7px}
  .round-tools .text-button {font-size:.75rem}
  .round-tools .text-button .icon {width:13px;height:13px}
  .court-card {border-radius:20px}
  .court-heading {padding:16px 17px 14px}
  .court-heading h3 {font-size:.875rem}
  .court-glyph {width:26px;height:26px;border-radius:7px}
  .court-glyph .icon {width:15px;height:15px}
  .court-identity {gap:9px}
  .court-status {font-size:.6875rem}
  .court {min-height:202px;margin:0 8px 8px;border-radius:12px;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);padding:30px 12px 27px;gap:5px}
  .court-lines {inset:12px 12px}
  .court-lines:before {inset:23px 0}
  .net {top:13px;bottom:13px}
  .team {gap:15px}
  .team-label {font-size:.6875rem;margin-bottom:0}
  .court-player {gap:4px}
  .court-player b {font-size:1rem;letter-spacing:.01em}
  .court-player small {font-size:.6875rem}
  .court .seed-badge {font-size:.5625rem;padding:1px 3px;border-radius:3px}
  .versus {font-size:.6875rem;letter-spacing:.025em}
  .referee-slot {min-height:57px;padding:6px 17px 8px}
  .referee-slot>div:first-child {font-size:.75rem;gap:9px}
  .referee-label {font-size:.6875rem}
  .referee-controls .text-button {font-size:.6875rem;padding:7px 9px}
  .referee-controls .icon-small {width:20px;font-size:.8125rem}
  .round-actions {margin-top:18px;gap:10px}
  .round-actions>.button {min-width:0;min-height:48px;padding:10px 14px;font-size:.8125rem}
  .round-actions .primary .icon {width:25px;height:25px;padding:6px}
  .waiting-panel {margin:0;padding:16px 18px 10px;border:1px solid #fff9;border-radius:17px}
  .waiting-panel .section-header {min-height:27px;margin-bottom:7px}
  .waiting-panel .section-header h2 {font-size:.875rem}
  .count-label {font-size:.6875rem;min-width:26px;padding:3px 6px}
  .waiting-list {display:flex;flex-wrap:wrap;column-gap:24px;row-gap:0}
  .wait-chip {width:auto;max-width:100%;border:0;padding:9px 0;font-size:.875rem;gap:7px}
  .wait-chip small {font-size:.625rem;padding:1px 4px}
  .manage-players {margin-top:4px;min-height:35px;font-size:.6875rem}
  .mobile-nav {left:16px;right:16px;bottom:max(12px,env(safe-area-inset-bottom));height:65px;max-width:450px;margin:0 auto;padding:6px;background:#ffffffed;border:1px solid #fff;border-radius:21px;box-shadow:0 2px 5px #254d3210,0 10px 40px #254d3212;backdrop-filter:blur(16px)}
  .mobile-nav button {gap:4px;border-radius:15px;padding:5px 0;font-size:.75rem;color:#97a88c;font-weight:400}
  .mobile-nav button.active {color:#3c6b3e;background:#eaf1e3;font-weight:550}
  .mobile-nav .icon {width:19px;height:19px}
  .page-footer {flex-direction:column;gap:7px;padding:28px 20px 110px;text-align:center;font-size:.625rem;color:#afbaa5}
  .page-footer>span:first-child {display:none}
  .avatar {width:37px;height:40px;border-radius:11px;font-size:.875rem}
  .player-list {gap:11px}
  .player-card {padding:16px 15px;gap:12px;border-radius:16px}
  .player-info strong {font-size:.875rem;gap:6px}
  .player-info p {font-size:.6875rem;margin-top:5px}
  .player-info .seed-badge {font-size:.625rem;padding:1px 4px}
  .player-card .icon-small {width:28px;height:37px}
  .player-card .icon-small .icon {width:16px;height:16px}
  .player-toolbar {margin-bottom:18px}
  .player-toolbar .muted-note {font-size:.625rem}
  .search {font-size:.8125rem;min-height:42px;border-radius:10px;padding-left:12px}
  .history-tabs {width:190px;margin-bottom:22px;border-radius:12px}
  .history-tabs button {font-size:.75rem;min-height:34px;border-radius:9px}
  .history-card {padding:20px 18px 15px;border-radius:18px;margin-bottom:16px}
  .history-header h2 {font-size:.875rem}
  .history-header h2 small {font-size:.6875rem;margin-left:8px}
  .history-header time {font-size:.6875rem}
  .history-match {margin-top:14px;padding-top:3px}
  .history-match-heading {font-size:.6875rem}
  .history-match-heading .text-button {font-size:.6875rem;min-height:38px}
  .match-result {grid-template-columns:minmax(0,1fr) 79px minmax(0,1fr);gap:8px;padding:8px 0 15px}
  .score {font-size:1.45rem}
  .score small {font-size:.6875rem}
  .team-names {font-size:.8125rem;line-height:1.9}
  .win-label {font-size:.5625rem;margin-left:4px;padding:1px 4px}
  .referee-history {font-size:.6875rem;padding-bottom:3px}
  .leaderboard .muted-note {font-size:.6875rem}
  .table-wrap {border-radius:16px}
  th {font-size:.6875rem;padding:15px 8px}
  td {font-size:.75rem;padding:17px 8px}
  .rank-number {width:20px;font-size:.6875rem}
  .points {font-size:1.125rem}
  .stats-filter {font-size:.75rem;min-height:38px;max-width:126px}
  .stats-note {font-size:.6875rem}
  #modal-content {padding:25px 21px}
  dialog {border-radius:21px}
  .modal-header h2 {font-size:1.075rem}
  .modal-description {font-size:.75rem}
  .modal-header {margin-bottom:13px}
  label {font-size:.75rem}
  .field-help,.help-note {font-size:.6875rem}
  .score-entry {padding:15px 13px;border-radius:13px}
  .score-entry h3 {font-size:.6875rem}
  .score-fields label {font-size:.75rem}
  .score-fields input {font-size:1.6rem;padding:11px 8px}
  .winner-field select {font-size:.75rem}
  .modal-actions {gap:10px}
  .modal-actions .button {font-size:.8125rem}
}
/* Keep the fine visual detail readable and easy to tap. */
.text-button,.page-heading>.button,.identity-button,.referee-controls .text-button,
.history-tabs button,.history-match-heading .text-button,.manage-players,
.player-info p,.modal-description,label,.score-fields label,.winner-field label,
.winner-field select,.leaderboard .muted-note,.stats-filter,.locked-settings dt,
.locked-settings dd,.mobile-nav button {font-size:.875rem}
.session-meta,.page-heading p,.court-status,.referee-label,.referee-slot>div:first-child,
.count-label,.history-match-heading,.referee-history,.field-help,.help-note,.stats-note,
.history-header time,.history-header h2 small,.help-list {font-size:.8125rem}
.page-heading p,.session-meta,.court-status,.referee-label,.count-label,.manage-players,
.player-info p,.player-toolbar .muted-note,.history-header h2 small,.history-header time,
.history-match-heading,.referee-history,.leaderboard .muted-note,th,.stats-note,
.modal-description,label,.field-help,.help-note,.score-entry h3,.score-fields label,
.winner-field label,.locked-settings dt,.help-list {color:#687a61}
.referee-slot strong.referee-empty {color:#7d8d72}
.referee-controls .text-button,.history-match-heading .text-button {color:#4d7043;min-height:44px}
.identity-button {color:#61755b;min-height:44px;overflow:hidden;white-space:nowrap}
.wait-chip small {color:#758a67}
.mobile-nav button {color:#738768}
.history-tabs button {color:#6b805e}
.rank-number {color:#7e906f}
td {color:#526d46}
.team-names {color:#61765c}
.win-label {color:#58763f}
.points {color:#456e3e}
.court .seed-badge {font-size:.6875rem;padding:1px 5px}
.court-player small,.team-label {font-size:.8125rem}
.brand-name small {color:#687a61}
@media(max-width:760px) {
  .mobile-nav {height:70px}
  .mobile-nav button {font-size:.8125rem}
  .page-heading>.button,.round-tools .text-button,.round-actions>.button,
  .modal-actions .button {font-size:.875rem}
  .round-tools .text-button {min-height:44px}
  .player-info strong {font-size:1rem}
  .player-info p {font-size:.8125rem}
  .player-toolbar .muted-note {font-size:.75rem}
  .referee-slot {gap:6px;padding-inline:15px}
  .referee-slot>div:first-child {gap:7px}
  .referee-controls .text-button {font-size:.8125rem;padding:8px 9px}
  .referee-controls .icon-small {min-height:44px;width:26px}
  .referee-label,.court-status,.team-label {font-size:.75rem}
  .session-meta,.session-chip {font-size:.75rem}
  .court-player b {font-size:1.0625rem}
  .court .seed-badge {font-size:.625rem;padding:1px 4px}
  .team-names {font-size:.9375rem}
  .win-label {font-size:.6875rem}
  th {font-size:.75rem}
  td {font-size:.875rem;padding-inline:7px}
  .rank-number {font-size:.75rem;width:18px}
  .rank-table th:first-child {width:29%}
  .rank-table td:first-child {min-width:74px}
  .score-entry {padding-inline:13px}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
