:root {
  font-family: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #151515; background: #f5f2f3; font-synthesis: none;
  --ink: #151515; --paper: #f5f2f3; --white: #ffffff; --acid: #f2dce3;
  --pink: #e9b7c7; --blue: #dedde1; --line: 2px solid #151515;
  --shadow: 4px 4px 0 #151515;
}
* { box-sizing: border-box; }
body { margin: 0; }
button,input,select,textarea { font: inherit; border-radius: 0; }
button,a,input,select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 4px solid #a50034; outline-offset: 3px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(28px,3vw,40px); line-height: 1.1; letter-spacing: -1.6px; margin: 7px 0 12px; font-weight: 900; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.6px; margin: 0; font-weight: 900; }
h3 { font-size: 16px; line-height: 1.5; margin: 0; font-weight: 800; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--ink); color: var(--paper); border-right: var(--line); padding: 28px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 900; letter-spacing: -1px; text-decoration: none; }
.logo { width: 38px; height: 38px; background: var(--acid); color: var(--ink); border: var(--line); display: inline-grid; place-items: center; font-size: 27px; flex-shrink: 0; }
.brand small { display: block; font-size: 9px; letter-spacing: 2.6px; margin-top: 4px; }
.edition { font-size: 10px; line-height: 1.9; border-top: 1px solid #777; border-bottom: 1px solid #777; margin: 28px 0; padding: 14px 0; }
.nav { display: grid; gap: 8px; }
.nav button { border: 2px solid transparent; color: var(--paper); background: none; padding: 13px 10px; min-height: 46px; text-align: left; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.nav button:hover { border-color: var(--acid); }
.nav button.active { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.nav .ico { font-size: 20px; width: 23px; text-align: center; }
.side-bottom { margin-top: auto; padding-top: 25px; font-size: 10px; line-height: 1.9; }
.side-bottom strong { display: block; margin-bottom: 8px; font-size: 11px; }
.main { min-width: 0; }
.topbar { height: 72px; padding: 0 32px; border-bottom: var(--line); background: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.breadcrumb { font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); background: var(--acid); padding: 6px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.dot { height: 6px; width: 6px; background: var(--ink); }
.pill.warn { background: var(--pink); }
.clock { font: 12px monospace; min-width: 86px; }
.content { max-width: 1500px; margin: auto; padding: 30px 32px 38px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 900; text-transform: uppercase; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.sub { font-size: 12px; line-height: 1.9; color: #555; margin: 8px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: var(--line); background: var(--white); color: var(--ink); padding: 11px 15px; min-height: 43px; font-size: 12px; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
.btn:hover:not(:disabled) { background: var(--acid); }
.btn:active:not(:disabled) { transform: translate(2px,2px); box-shadow: none; }
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover:not(:disabled) { background: var(--acid); color: var(--ink); }
.btn.lime { background: var(--acid); }
.btn.danger { background: var(--pink); }
.btn.small { font-size: 11px; min-height: 37px; padding: 8px 11px; }
.inline-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 25px; }
.stat { background: var(--white); border: var(--line); padding: 17px; min-width: 0; box-shadow: var(--shadow); }
.stat.feature { background: var(--acid); }
.stat small { display: block; font-size: 11px; font-weight: 800; }
.stat strong { display: block; font-size: 32px; font-weight: 900; letter-spacing: -1px; margin-top: 7px; }
.stat strong span { font-size: 12px; font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.stat-icon { display: none; }
.grid-main { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.dashboard-primary { min-width: 0; display: grid; gap: 24px; }
.right-column { display: grid; gap: 24px; min-width: 0; }
.section-title,.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel,.standings,.schedule-box,.available { background: var(--white); border: var(--line); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0; }
.grid-main .standings,.grid-main .schedule-box,.grid-main .available { margin-bottom: 0; }
.notice { background: #ece6e9; border: var(--line); border-left-width: 7px; padding: 13px 16px; font-size: 12px; line-height: 1.9; margin-bottom: 22px; }
.count-badge { display: inline-block; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 800; padding: 3px 6px; margin-left: 6px; vertical-align: middle; }
.next { background: var(--blue); border: var(--line); padding: 19px; box-shadow: var(--shadow); }
.next-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next h2 { margin-top: 6px; }
.ready-teams { display: grid; grid-template-columns: minmax(0,1fr) 35px minmax(0,1fr); gap: 10px; align-items: center; margin-top: 17px; }
.ready-team { border: var(--line); background: var(--white); padding: 15px; text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.ready-label { font-size: 11px; font-weight: 900; background: var(--ink); color: var(--white); padding: 4px 7px; display: table; margin: 0 auto 11px; }
.ready-vs { font: 900 18px monospace; text-align: center; }
.team-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; }
.team-tag:before { content: ''; width: 9px; height: 9px; background: var(--team,#151515); border: 1px solid var(--ink); }
.names { margin-top: 7px; font-size: 16px; font-weight: 900; letter-spacing: -.5px; line-height: 1.6; }
.pair-names { display: flex; flex-direction: column; gap: 2px; }
.gym { border: 3px solid var(--ink); background: #dedadd; padding: 18px; box-shadow: var(--shadow); }
.gym-stage,.gym-door { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; border: var(--line); font-size: 24px; font-weight: 900; letter-spacing: 2px; }
.gym-stage { background: var(--ink); color: var(--white); margin-bottom: 18px; }
.gym-stage small,.gym-door small { font: 10px monospace; letter-spacing: 1px; }
.gym-door { background: var(--white); margin-top: 18px; border-style: dashed; font-size: 21px; }
.courts { display: grid; grid-template-columns: 1fr; gap: 18px; }
.court { border: var(--line); background: var(--white); min-width: 0; }
.court-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: var(--line); background: var(--white); }
.court-id { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; }
.court-id b { display: grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: var(--white); font: 900 23px monospace; }
.live-label { border: 1px solid var(--ink); padding: 5px 8px; font-size: 10px; font-weight: 900; }
.live-label.live { background: var(--acid); }
.court-play-area { position: relative; min-height: 180px; background: #e9cbd5; isolation: isolate; }
.court-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #faf7f8; stroke-width: 2; z-index: -1; }
.court-net { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 4 3; }
.court-board { display: grid; grid-template-columns: minmax(0,1fr) 125px minmax(0,1fr); align-items: center; gap: 12px; min-height: 180px; padding: 13px 23px 18px; text-align: center; }
.game-no { grid-column: 1/-1; font: 10px monospace; background: #ffffffeb; padding: 5px; justify-self: center; border: 1px solid var(--ink); line-height: 1.6; }
.team-side { background: #ffffffed; border: 1px solid var(--ink); padding: 10px 6px; }
.team-side .names { font-size: 18px; }
.score-row { background: var(--white); border: var(--line); padding: 9px 6px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 3px 3px 0 var(--ink); }
.score-row strong { font: 900 31px monospace; letter-spacing: -2px; }
.vs { font-size: 12px; font-weight: 900; }
.empty-court { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.empty-court b { font: 900 21px monospace; letter-spacing: 2px; background: var(--white); padding: 6px 10px; border: 1px solid var(--ink); }
.empty-court span { font-size: 12px; font-weight: 700; }
.court-bottom { border-top: var(--line); padding: 12px; display: grid; gap: 7px; }
.court-controls { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
.court-bottom .sub { margin: 3px 0; font-size: 11px; text-align: center; }
.elapsed { font-variant-numeric: tabular-nums; }
.ranking-rows { display: grid; }
.rank-row { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--ink); padding: 15px 0; }
.rank-number { font: 900 14px monospace; width: 17px; flex-shrink: 0; }
.rank-score { font: 900 28px monospace; margin-left: auto; white-space: nowrap; }
.rank-score small { font: 10px Arial,sans-serif; }
.rank-meta { margin-top: 6px; font-size: 10px; line-height: 1.7; color: #555; }
.footnote { font-size: 10px; line-height: 1.8; padding-top: 13px; color: #555; }
.timeline { padding-top: 18px; }
.timeline-item { display: flex; gap: 13px; padding-bottom: 17px; font-size: 12px; line-height: 1.8; }
.timeline-item time { font-family: monospace; width: 44px; flex-shrink: 0; }
.timeline-item span { border-left: 3px solid var(--ink); padding-left: 12px; }
.people-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.person-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ink); background: var(--paper); padding: 8px 10px; min-height: 35px; font-size: 12px; font-weight: 700; }
.person-chip i { height: 7px; width: 7px; background: var(--team,var(--ink)); border: 1px solid var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; margin-top: 15px; }
th { text-align: left; background: var(--ink); color: var(--white); padding: 12px; font-size: 11px; font-weight: 800; }
td { padding: 14px 12px; border-bottom: 1px solid var(--ink); }
tr:nth-child(even) td { background: #f3eef0; }
.match-time { font-size: 10px; line-height: 1.9; }
.status { display: inline-block; border: 1px solid var(--ink); background: var(--paper); padding: 5px 7px; font-size: 10px; font-weight: 800; }
.status.playing { background: var(--acid); }.status.done { background: var(--blue); }
input,select,textarea { background: var(--white); border: var(--line); padding: 11px; color: var(--ink); font-size: 13px; max-width: 100%; min-height: 43px; }
input[type=checkbox] { min-height: 0; width: 19px; height: 19px; accent-color: var(--ink); }
input[type=number] { width: 84px; }
textarea { width: 100%; min-height: 300px; font-family: monospace; }
label { display: grid; gap: 8px; font-size: 11px; font-weight: 800; }
.form-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 17px 0; }
.form-row label { flex: 1; min-width: 140px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button { border: var(--line); background: var(--white); padding: 11px 14px; font-size: 12px; font-weight: 800; min-height: 42px; }
.tabs button.active { background: var(--acid); box-shadow: 3px 3px 0 var(--ink); }
.roster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.settings-team { border-top: 9px solid var(--team,var(--ink)); }
.raffle-stage { background: var(--acid); border: 3px solid var(--ink); box-shadow: var(--shadow); text-align: center; padding: 40px 20px; margin: 24px 0; }
.raffle-stage h2 { font-size: clamp(26px,3vw,44px); line-height: 1.3; margin: 24px 0; font-weight: 900; word-break: keep-all; }
.raffle-stage p { font-size: 12px; line-height: 1.8; }
.manual-draw { border-top: 3px solid var(--ink); padding-top: 20px; }
.block-title { margin-top: 22px; }
.reset-all-panel { border: 3px solid var(--ink); background: #f2dce3; }
dialog { border: 3px solid var(--ink); padding: 25px; max-height: 86dvh; overflow: auto; width: min(570px,92vw); color: var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
dialog::backdrop { background: #1515158c; }
dialog h2 { margin-bottom: 14px; }
dialog p { font-size: 12px; line-height: 1.9; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.score-inputs { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 24px 0; }
.score-inputs input { width: 105px; font-size: 32px; font-weight: 900; text-align: center; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,160px); z-index: 120; background: var(--ink); color: var(--white); border: 2px solid var(--white); box-shadow: var(--shadow); padding: 14px 20px; font-size: 12px; line-height: 1.6; max-width: 90vw; transition: transform .15s; }
#toast.show { transform: translate(-50%,0); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; line-height: 1.8; margin-top: 30px; padding-top: 15px; border-top: var(--line); }
.muted { color: #555; }.empty { padding: 27px 5px; text-align: center; color: #555; font-size: 12px; line-height: 1.8; }
.loading { padding: 80px 20px; font-size: 16px; font-weight: 800; text-align: center; }
.mobile-bottom,.mobile-brand,.mobile-menu-button,.menu-shade,.mobile-menu-account,.mobile-fixtures { display: none; }
.visually-hidden { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
@media(max-width:1150px) { .shell { grid-template-columns: 190px minmax(0,1fr); }.sidebar { padding: 26px 14px; }.content { padding: 25px 23px; }.topbar { padding: 0 23px; }.grid-main { grid-template-columns: minmax(0,1fr) 245px; gap: 20px; }.court-board { grid-template-columns: minmax(0,1fr) 95px minmax(0,1fr); padding: 12px; gap: 9px; }.score-row strong { font-size: 26px; }.court-controls { grid-template-columns: 1fr 1fr; }.court-controls .btn:nth-child(2) { grid-row: 1 / 3; grid-column: 2; }.standings,.schedule-box { padding: 18px; }.brand { font-size: 22px; }.logo { width: 32px; height: 32px; }.ready-team { padding: 13px 8px; } }
@media(max-width:900px) and (min-width:701px) { .grid-main { grid-template-columns: 1fr; }.right-column { grid-template-columns: 1fr 1fr; }.court-board { grid-template-columns: minmax(0,1fr) 120px minmax(0,1fr); }.court-controls { grid-template-columns: 1fr 1.2fr 1fr; }.court-controls .btn:nth-child(2) { grid-row: auto; grid-column: auto; }.roster-grid { grid-template-columns: 1fr; } }
@media(max-width:700px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); overflow-x: hidden; }.shell { display: block; min-height: calc(100dvh - 76px); }
  .sidebar { position: fixed; top: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); left: auto; width: min(320px,88vw); height: auto; z-index: 91; transform: translateX(105%); visibility: hidden; border-left: var(--line); padding: 25px 20px; overflow-y: auto; }.menu-open .sidebar { transform: translateX(0); visibility: visible; }.menu-open .menu-shade { display: block; position: fixed; inset: 0; z-index: 90; background: #15151580; border: 0; }.nav button { min-height: 47px; }.edition { margin: 22px 0; }.side-bottom { display: none; }.mobile-menu-account { display: block; padding-top: 23px; margin-top: auto; }.mobile-menu-account .btn { width: 100%; }
  .topbar { position: sticky; top: 0; z-index: 30; height: 61px; padding: 0 14px; gap: 10px; border-bottom: 3px solid var(--ink); }.breadcrumb,.top-actions .clock,.top-actions .login-button { display: none; }.mobile-brand { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; min-height: 44px; font-size: 18px; font-weight: 900; }.mobile-brand .logo { width: 29px; height: 29px; font-size: 22px; }.mobile-brand b { max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.top-actions { margin-left: auto; gap: 8px; }.pill { font-size: 9px; padding: 5px 6px; }.mobile-menu-button { display: grid; place-items: center; width: 40px; height: 40px; border: var(--line); background: var(--acid); font-size: 20px; }
  .mobile-bottom { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); position: fixed; bottom: 0; left: 0; right: 0; z-index: 96; background: var(--white); border-top: 3px solid var(--ink); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); gap: 2px; }.mobile-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 49px; border: 2px solid transparent; background: transparent; font-size: 9px; font-weight: 800; padding: 4px 0; white-space: nowrap; }.mobile-bottom button span { font-size: 20px; line-height: 1; }.mobile-bottom button.active { border-color: var(--ink); background: var(--acid); }
  .content { padding: 21px 13px 25px; }h1 { font-size: 29px; letter-spacing: -1.2px; margin: 7px 0 9px; }h2 { font-size: 18px; }h3 { font-size: 15px; }.eyebrow { font-size: 9px; letter-spacing: 1.3px; }.page-head { gap: 12px; margin-bottom: 22px; align-items: flex-start; }.page-head>.inline-actions { flex-shrink: 0; max-width: 95px; }.page-head .btn { font-size: 11px; padding: 10px; }.viewer .page-head>.inline-actions { display: none; }.sub { font-size: 12px; line-height: 1.85; }.page-head .sub { max-width: 270px; }
  .btn,.btn.small { min-height: 44px; font-size: 12px; }.btn.small { padding: 8px; }.stats { gap: 7px; margin-bottom: 24px; }.stat { padding: 11px 7px; box-shadow: 3px 3px 0 var(--ink); }.stat small { font-size: 10px; min-height: 25px; line-height: 1.5; }.stat strong { font-size: 25px; margin-top: 5px; }.stat strong span { display: block; margin: 4px 0 0; font-size: 9px; line-height: 1.6; }
  .grid-main { display: flex; flex-direction: column; gap: 0; }.dashboard-primary,.right-column { display: contents; }.next { order: 1; width: 100%; margin-bottom: 24px; padding: 15px; }.gym { order: 2; width: 100%; margin-bottom: 24px; }.standings { order: 3; width: 100%; }.available { order: 4; width: 100%; }.schedule-box { order: 5; width: 100%; }.grid-main .standings,.grid-main .available,.grid-main .schedule-box { margin-bottom: 24px; }.next-top { align-items: flex-start; }.next-top .btn { font-size: 10px; min-height: 39px; padding: 7px; flex-shrink: 0; }.next h2 { font-size: 17px; }.ready-teams { grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr); gap: 8px; margin-top: 16px; }.ready-team { padding: 12px 5px; box-shadow: 2px 2px 0 var(--ink); }.ready-label { font-size: 10px; padding: 4px 6px; margin-bottom: 8px; }.ready-vs { font-size: 13px; }.ready-team .names { font-size: 17px; }.team-tag { font-size: 11px; }
  .gym { padding: 10px; border-width: 3px; }.gym-stage,.gym-door { padding: 13px 8px; gap: 10px; font-size: 22px; }.gym-stage { margin-bottom: 12px; }.gym-door { margin-top: 12px; }.gym-stage small,.gym-door small { font-size: 8px; }.courts { gap: 12px; }.court-top { padding: 8px 10px; }.court-id { font-size: 13px; }.court-id b { width: 29px; height: 29px; font-size: 22px; }.live-label { font-size: 9px; padding: 4px 6px; }.court-board { min-height: 177px; grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr); gap: 6px; padding: 10px 8px 14px; }.game-no { font-size: 8px; width: 100%; padding: 4px; letter-spacing: -.3px; }.team-side { padding: 7px 3px; }.team-side .names { font-size: 16px; line-height: 1.6; }.team-side .team-tag { font-size: 9px; gap: 4px; }.team-tag:before { height: 7px; width: 7px; }.score-row { padding: 9px 2px; gap: 4px; box-shadow: 2px 2px 0 var(--ink); }.score-row strong { font-size: 25px; letter-spacing: -1.5px; }.score-row .vs { font-size: 10px; }.court-play-area { min-height: 150px; }.empty-court { min-height: 136px; }.court-controls { grid-template-columns: 1fr 1fr; gap: 8px; }.court-controls .btn:nth-child(2) { grid-row: 1 / 3; grid-column: 2; }.court-controls .btn { font-size: 10px; }.court-bottom { padding: 10px; }
  .panel,.standings,.schedule-box,.available { padding: 16px; }.panel-head,.section-title { gap: 10px; margin-bottom: 14px; }.section-title h2 { font-size: 16px; }.ranking-rows { grid-template-columns: 1fr 1fr; gap: 0 15px; }.rank-row { gap: 5px; padding: 12px 0; min-width: 0; }.rank-number { width: 12px; font-size: 11px; }.rank-score { font-size: 23px; }.rank-meta { font-size: 9px; max-width: 88px; line-height: 1.7; }.rank-row .team-tag { font-size: 11px; }.footnote { font-size: 9px; }.people-chips { gap: 7px; }.person-chip { font-size: 12px; padding: 8px; }.timeline-item { font-size: 13px; }.timeline-item time { width: 45px; }.footer { margin-top: 5px; font-size: 9px; }
  .mobile-fixtures { display: block; }.mobile-fixtures~.eyebrow,.mobile-fixtures~.page-head,.public-fixture-table { display: none; }.fixture-filters { display: flex; gap: 7px; overflow: auto; margin-bottom: 19px; }.fixture-filters button { border: var(--line); background: var(--white); padding: 9px 11px; min-height: 42px; font-size: 11px; font-weight: 800; white-space: nowrap; }.fixture-filters button.active { background: var(--acid); box-shadow: 2px 2px 0 var(--ink); }.mobile-match-card { background: var(--white); border: var(--line); box-shadow: var(--shadow); padding: 15px; margin-bottom: 17px; }.mobile-match-card .section-title { font-size: 13px; }.mobile-match-teams { display: grid; grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr); align-items: center; text-align: center; gap: 7px; margin-bottom: 13px; }.mobile-match-teams>strong { font: 900 24px monospace; }.mobile-match-teams .names { font-size: 17px; }.mobile-match-card>.sub { border-top: 1px solid var(--ink); padding-top: 9px; font-size: 10px; }
  .roster-grid { display: block; }.roster-grid .panel td:last-child { white-space: normal; line-height: 1.8; }table { font-size: 12px; }th { font-size: 10px; padding: 11px 9px; }td { padding: 12px 9px; }.tabs { gap: 8px; }.tabs button { padding: 9px; font-size: 11px; }.form-row { gap: 12px; }.form-row label { min-width: 120px; min-width: min(120px,100%); }input,select,textarea { font-size: 16px; min-height: 44px; width: 100%; }input[type=checkbox] { width: 20px; min-height: 20px; }input[type=number] { width: 78px; }.form-row>.btn { width: 100%; }.manual-draw h3 { font-size: 17px; }.raffle-stage { padding: 29px 12px; }.raffle-stage h2 { font-size: 29px; }.raffle-stage p { font-size: 11px; }dialog { padding: 22px 17px; }.modal-actions .btn { flex: 1; }.score-inputs { gap: 14px; }.score-inputs input { width: 95px; font-size: 30px; min-height: 68px; }#toast { bottom: calc(87px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 26px); font-size: 12px; padding: 11px 15px; }
}
@media(max-width:360px) { .content { padding-left: 10px; padding-right: 10px; }.topbar { padding: 0 10px; }.mobile-brand b { max-width: 112px; font-size: 17px; }.stat { padding: 10px 5px; }.stat small { font-size: 9px; }.stat strong { font-size: 23px; }.court-board { grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr); gap: 5px; padding-left: 5px; padding-right: 5px; }.team-side .names { font-size: 15px; }.score-row strong { font-size: 23px; }.rank-meta { max-width: 76px; }.ready-team .names { font-size: 16px; }.gym-stage small,.gym-door small { letter-spacing: 0; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; }#toast { transition: none; } }

/* LG identity: original corporate sprite, preserved proportions. */
.logo { width: 72px; height: 44px; background: #fff; border: 2px solid #a50034; }
.lg-mark { display: block; width: 56px; height: 25px; background: url('./assets/lg-brand-sprite.png') -76px -201px / 379px 340px no-repeat; }
.sidebar { background: #342c30; }
.nav button.active { background: #a50034; color: #fff; border-color: #a50034; }
.btn.primary { background: #a50034; color: #fff; }
.btn.primary:hover:not(:disabled) { background: #810029; color: #fff; }
.eyebrow { color: #a50034; }
.gym-stage { background: #a50034; color: #fff; }
.mobile-bottom button.active { background: #a50034; color: #fff; }
/* Show only the circular LG symbol from the original brand sprite. */
.logo { width: 44px; height: 44px; }
.lg-mark { width: 25px; height: 25px; }
/* White canvas with restrained LG burgundy accents. */
:root { background: #fff; --paper: #fff; --white: #fff; --acid: #f6e9ee; --pink: #f5e6eb; --blue: #f1f1f3; }
body, .shell, .main, .content { background: #fff; }
.sidebar { background: #fff; color: var(--ink); }
.nav button { color: var(--ink); }
.nav button:hover { border-color: #a50034; }
.edition { border-color: #ddd; }
.logo { width: 58px; height: 58px; background: #fff; border: 0; }
.lg-mark { width: 38px; height: 38px; background-size: 576.08px 516.8px; background-position: -115.52px -305.52px; }
.mobile-brand .logo { width: 48px; height: 48px; }

/* Team colors occupy whole badges and broad panel accents. */
.team-tag { background: var(--team); color: #151515; border: 2px solid var(--ink); padding: 5px 9px; min-height: 29px; font-weight: 900; white-space: nowrap; }
.team-tag:before { display: none; }
.ready-team { border-top: 12px solid var(--team); background: color-mix(in srgb, var(--team) 16%, #fff); }
.team-side { border-top: 9px solid var(--team); background: color-mix(in srgb, var(--team) 18%, #fff); }
.rank-row { border-left: 8px solid var(--team); padding-left: 9px; background: color-mix(in srgb, var(--team) 9%, #fff); }
.settings-team { border-top-width: 14px; background: color-mix(in srgb, var(--team) 7%, #fff); }
.person-chip[style] { border-left: 8px solid var(--team); background: color-mix(in srgb, var(--team) 13%, #fff); }
.person-chip[style] i { display: none; }
@media(max-width:700px) {
 .team-tag { padding: 4px 6px; min-height: 26px; }
 .team-side .team-tag { font-size: 10px; padding: 4px; }
 .ready-team { border-top-width: 10px; }
 .rank-row { border-left-width: 6px; padding-left: 5px; }
}

.gym-stage { background: #795237; color: #fff; }
.dashboard-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.8fr); gap: 24px; align-items: stretch; margin-bottom: 16px; }
.dashboard-heading .page-head { margin-bottom: 0; }
.announcement { background: #fff; border: var(--line); border-left: 8px solid #a50034; padding: 12px 16px; box-shadow: 3px 3px 0 var(--ink); }
.announcement h2 { font-size: 15px; }
.announcement p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
.announcement-editor { flex-basis: 100%; }
.stat { padding: 7px 12px; }
.stat small { min-height: 0; font-size: 10px; }
.stat strong { margin-top: 1px; font-size: 24px; }
.stat strong span { display: inline; margin: 0 0 0 4px; font-size: 10px; }
.next { padding: 9px 12px; }
.next .eyebrow { font-size: 8px; }
.next h2 { font-size: 16px; }
.next .ready-teams { margin-top: 7px; }
.next .ready-team { padding: 5px; border-top-width: 7px; }
.next .ready-label { padding: 0; margin-bottom: 3px; font-size: 9px; }
.next .team-tag { min-height: 22px; padding: 2px 6px; }
.next .names { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 15px; margin-top: 4px; line-height: 1.3; }
@media(max-width:700px) {
 .dashboard-heading { grid-template-columns: 1fr; gap: 12px; }
 .stat { padding: 6px 5px; }
 .stat strong { font-size: 21px; }
 .stat strong span { font-size: 9px; }
 .next { padding: 8px 10px; }
 .next .names { font-size: 14px; gap: 5px; }
}

.dashboard-heading { grid-template-columns: max-content minmax(0,1fr); }
.dashboard-heading .page-head { display: block; }
.next-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.compact-next { margin: 0; padding: 8px 10px; background: #fff; }
.compact-next h2 { font-size: 12px; margin-bottom: 6px; }
.compact-pair { display: flex; align-items: center; gap: 7px; background: color-mix(in srgb,var(--team) 12%,#fff); border-left: 5px solid var(--team); padding: 4px; margin-top: 4px; font-size: 13px; font-weight: 800; }
.compact-pair .team-tag { flex-shrink: 0; font-size: 10px; padding: 2px 4px; }
@media(max-width:700px) {
 .dashboard-heading { grid-template-columns: 1fr; }
 .next-cards { order: 1; width: 100%; gap: 8px; }
 .compact-next { width: auto; margin: 0; padding: 7px; }
 .compact-pair { flex-wrap: wrap; gap: 3px; font-size: 12px; }
 .top-actions { gap: 5px; }
 .top-actions > .btn[data-action="share"] { padding: 5px; font-size: 10px; min-height: 32px; }
}

.next-cards { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.compact-next-head { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 6px; flex-wrap: wrap; }
.compact-next-head h2 { margin-bottom: 0; }
.compact-next-head .btn { font-size: 10px; min-height: 30px; padding: 4px 7px; }
.compact-pair { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }

/* Club shuttlecock: red feather outline above the circular emblem. */
.logo.shuttle-logo { position: relative; width: 58px; height: 70px; overflow: visible; }
.shuttle-logo .shuttle-feathers { position: absolute; width: 46px; height: 34px; top: 0; left: 6px; }
.shuttle-logo .lg-mark { position: absolute; bottom: 1px; left: 10px; }
.mobile-brand .logo.shuttle-logo { width: 48px; height: 58px; }
.mobile-brand .shuttle-feathers { width: 38px; height: 28px; left: 5px; }
.mobile-brand .lg-mark { width: 32px; height: 32px; left: 8px; background-size: 485.12px 435.2px; background-position: -97.28px -257.28px; }

/* Feathers hug the forehead in a curved, overlapping headband. */
.logo.shuttle-logo { height: 60px; }
.shuttle-logo .shuttle-feathers { width: 44px; height: 30px; left: 7px; top: 0; z-index: 2; }
.shuttle-logo .lg-mark { bottom: 0; }
.mobile-brand .logo.shuttle-logo { height: 51px; }
.mobile-brand .shuttle-feathers { width: 37px; height: 25px; left: 5.5px; top: 0; }
/* Smaller cork-like face beneath a wider feather skirt. */
.logo.shuttle-logo { height: 55px; }
.shuttle-logo .shuttle-feathers { width: 46px; height: 33px; left: 6px; top: 0; }
.shuttle-logo .lg-mark { width: 29px; height: 29px; left: 14.5px; bottom: 0; background-size: 439.64px 394.4px; background-position: -88.16px -233.16px; }
.mobile-brand .logo.shuttle-logo { height: 48px; }
.mobile-brand .shuttle-feathers { width: 40px; height: 29px; left: 4px; top: 0; }
.mobile-brand .lg-mark { width: 25px; height: 25px; left: 11.5px; bottom: 0; background-size: 379px 340px; background-position: -76px -201px; }

/* Keep the small face and seat the curved feather band on its forehead. */
.shuttle-logo .shuttle-feathers { top: 4px; }
.mobile-brand .shuttle-feathers { top: 3px; }

.announcement-editor { display: flex; flex-direction: column; width: 100%; gap: 8px; margin-bottom: 18px; }
.announcement-editor textarea { width: 100%; min-width: 0; resize: vertical; }
