:root {
  color-scheme: light;
  --ink: #090b0e;
  --muted: #667080;
  --surface: #ffffff;
  --canvas: #f3f4f3;
  --line: #d5d9df;
  --team-blue: #0344ac;
  --team-blue-soft: #e7eefb;
  --team-red: #e21821;
  --team-red-soft: #fde9ea;
  --signal: #f0b429;
  --blue: var(--team-blue);
  --blue-soft: var(--team-blue-soft);
  --red: var(--team-red);
  --red-soft: var(--team-red-soft);
  --radius: 10px;
  --page-top: 28px;
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
a { color: inherit; }

.app-header {
  position: relative;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  color: white;
  background: var(--ink);
}
.body--operator .app-header { min-height: 48px; padding-block: 6px; }
.wordmark { width: 176px; display: block; color: white; text-decoration: none; line-height: 1; }
.brand-wordmark, .brand-wordmark img { width: 100%; height: auto; display: block; }
.brand-wordmark__dark { display: none !important; }
.wordmark .brand-wordmark__light, .result-brand__logo .brand-wordmark__light { display: none; }
.wordmark .brand-wordmark__dark, .result-brand__logo .brand-wordmark__dark { display: block !important; }
.app-header__actions { display: flex; align-items: center; gap: 8px; }
.header-rules-link { color: inherit; font-size: 13px; font-weight: 900; text-decoration: none; }
.public-header {
  position: relative;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: white;
  background: var(--ink);
}
.public-header nav { display: flex; align-items: center; gap: 6px; }
.public-header nav > a { min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; color: #cbd0d7; border-radius: 6px; font-size: 13px; font-weight: 900; text-decoration: none; }
.public-header nav > a:hover { color: white; background: #ffffff12; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: var(--page-top) 0 80px; }
.compact-top-shell { padding-top: var(--page-top); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading--compact { align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin-top: 0; letter-spacing: -.035em; }
h1 { margin-bottom: 0; font: 900 clamp(38px, 7vw, 70px)/.92 var(--font-display); }
h2 { margin-bottom: 12px; font-size: 24px; }
.lede { color: var(--muted); font-size: 17px; }

.primary-button, .secondary-button, .quiet-button {
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { color: white; background: var(--ink); }
.primary-button:hover { background: #252a31; }
.primary-button:disabled, .secondary-button:disabled { opacity: .4; cursor: not-allowed; }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: white; }
.quiet-button { min-height: 40px; padding-inline: 10px; color: inherit; background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.login-shell { position: relative; width: 100%; min-height: calc(100vh - 72px); padding: 0; display: grid; place-items: center; background: var(--ink); }
.login-card { position: relative; width: min(520px, calc(100% - 32px)); padding: clamp(28px, 7vw, 56px); overflow: hidden; border-radius: 10px; background: white; box-shadow: 0 24px 80px #0008; }
.login-brand { width: min(290px, 72%); margin-bottom: 38px; color: var(--ink); }
.login-card h1 { position: relative; font-size: clamp(42px, 10vw, 68px); }
.stack-form { display: grid; gap: 10px; margin-top: 32px; }
.stack-form label, .field label, .field-label { font-size: 13px; font-weight: 800; }
input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="datetime-local"], select {
  width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); border: 1px solid #b8c2d0; border-radius: 9px; background: white;
}
.field-error, .errorlist { margin: 4px 0 0; padding: 0; color: #a62034; font-size: 13px; list-style: none; }
.dev-hint { margin: 20px 0 0; color: var(--muted); font: 12px/1.4 var(--font-data); }

.rush-filters { margin: -10px 0 18px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rush-filters::-webkit-scrollbar { display: none; }
.rush-filters button { min-height: 38px; padding: 8px 12px; flex: 0 0 auto; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 13px; font-weight: 800; cursor: pointer; }
.rush-filters button.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.rush-filter-empty { padding: 32px 20px; color: var(--muted); text-align: center; }
.rush-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rush-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid var(--line); }
.rush-row:last-child { border: 0; }
.rush-row:hover { background: #f8fafc; }
.rush-row--live { color: white; border-color: #303640; background: linear-gradient(90deg, #0a0d13f2 0%, #0a0d13d9 50%, #0a0d13f2 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; }
.rush-row--live:hover { background: linear-gradient(90deg, #0a0d13e8 0%, #0a0d13ca 50%, #0a0d13e8 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; }
.rush-row--live .rush-meta, .rush-row--live .row-arrow { color: #cbd0d7; }
.rush-row__link { min-width: 0; padding: 18px 14px 18px 20px; display: grid; grid-template-columns: 110px minmax(0, 1fr) 24px; align-items: center; gap: 18px; text-decoration: none; }
.rush-row__operator-actions { padding: 10px 12px 10px 0; display: flex; align-items: center; gap: 6px; }
.rush-row__operator-actions form { display: grid; place-items: center; }
.delete-rush-button, .danger-button { min-height: 42px; padding: 8px 12px; border: 1px solid #e2a9b1; border-radius: 9px; color: #982337; background: #fff3f5; font-weight: 800; cursor: pointer; }
.delete-rush-button:hover, .danger-button:hover { background: #ffe5e9; }
.rush-state { width: fit-content; padding: 5px 8px; border-radius: 4px; color: var(--muted); background: #e9ebee; font-size: 12px; font-weight: 800; }
.rush-state--live { display: inline-flex; align-items: center; gap: 6px; color: white; background: #ffffff1f; }
.rush-state--finished { color: #343c49; background: #e4e8ed; }
.rush-state--stopped { color: #8b4a13; background: #fff0d8; }
.rush-state--canceled { color: #8b2434; background: #ffe8ec; }
.rush-pair { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-name--blue { color: var(--blue); }
.team-name--red { color: var(--red); }
.row-score { margin-left: auto; font: 900 18px/1 var(--font-data); white-space: nowrap; }
.versus { color: var(--muted); font: 600 .8em/1 var(--font-data); }
.scheduled-matchup { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 8px; }
.scheduled-matchup .team-name--red { grid-column: 1; }
.scheduled-matchup .versus { grid-column: 2; }
.scheduled-matchup .team-name--blue { grid-column: 1 / -1; }
.rush-meta { grid-column: 2; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.rush-meta time { font-family: var(--font-data); }
.rush-meta__recruitment { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-arrow { grid-column: 3; grid-row: 1 / 3; font-size: 22px; }

.empty-state { min-height: 420px; padding: 48px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #a9b4c3; border-radius: var(--radius); background: #f5f8fa; }
.empty-state p { margin-top: 0; color: var(--muted); }
.empty-court { width: 120px; height: 70px; margin-bottom: 24px; border: 3px solid var(--blue); background: linear-gradient(90deg, transparent 49%, var(--blue) 49% 51%, transparent 51%); box-shadow: inset 0 0 0 12px #f5f8fa, inset 0 0 0 14px var(--blue); transform: skew(-8deg); }

.rush-details-grid, .team-setup-grid, .roster-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rush-details-grid { margin-bottom: 22px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.rush-details-disclosure { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.rush-details-disclosure > summary { padding: 16px 20px; font-weight: 900; cursor: pointer; }
.rush-details-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.rush-details-disclosure .rush-details-grid { margin: 0; border: 0; }
.rush-details-grid .field { margin: 0; }
.schedule-field { margin: 0; }
.schedule-field small { display: block; margin-top: 5px; color: var(--muted); }
.team-card { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--line); border-top-width: 5px; border-radius: var(--radius); background: white; }
.team-card--blue { --side-color: var(--team-blue); border-top-color: var(--team-blue); }
.team-card--red { --side-color: var(--team-red); border-top-color: var(--team-red); }
.team-card legend { padding: 0 8px; font: 900 22px/1 var(--font-display); }
.field { margin-top: 20px; }
.field-label { display: flex; justify-content: space-between; }
.field-label small { color: var(--muted); font-weight: 600; }
.field > label { display: block; margin-bottom: 7px; }
.field-label { margin-bottom: 7px; }
[data-hidden-captain], [data-hidden-players], [data-hidden-pool], [data-hidden-confirmed] { display: none; }
.rush-form { padding-bottom: 88px; }
.recruitment-pool { margin-bottom: 18px; padding: 20px 22px; border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: var(--radius); background: white; }
.recruitment-pool__heading, .recruitment-team-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recruitment-pool__heading h2 { margin: 0; }
.setup-recruitment-summary { display: grid; justify-items: end; gap: 3px; text-align: right; }
.setup-recruitment-summary .recruitment-count { font-size: 18px; }
.recruitment-pool > p { margin: 8px 0 14px; color: var(--muted); }
.recruitment-pool .player-picker { max-width: 560px; }
.participant-list { margin-top: 10px; display: grid; gap: 8px; }
.recruitment-pool .participant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recruitment-team-status { margin-top: 16px; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.recruitment-team-status small { margin-left: auto; font-size: 10px; font-weight: 750; text-transform: none; }
.recruitment-team-status small b { color: var(--ink); font-family: var(--font-data); }
.team-balance-tool { margin: 0 0 18px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.team-balance-tool h2 { margin: 1px 0 4px; font-size: 24px; }
.team-balance-tool p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.team-balance-tool__forecast { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.team-balance-tool__forecast span { min-width: 112px; padding: 10px 12px; display: grid; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 850; }
.team-balance-tool__forecast span + span { border-left: 1px solid var(--line); }
.team-balance-tool__forecast strong { font: 900 20px/1 var(--font-data); }
.team-balance-tool__red strong { color: var(--team-red); }
.team-balance-tool__blue strong { color: var(--team-blue); }
.player-card__level { color: var(--ink); font-family: var(--font-data); font-weight: 850; }
.player-card__performance { flex-basis: 100%; }
.balance-dialog { width: min(760px, calc(100% - 24px)); padding: 28px; border: 0; border-radius: 12px; box-shadow: 0 24px 80px #0a102066; }
.balance-dialog::backdrop { background: #0c1220b8; backdrop-filter: blur(4px); }
.balance-dialog > h2 { margin: 3px 44px 18px 0; font-size: clamp(30px, 5vw, 48px); }
.balance-dialog__teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.balance-dialog__team { padding: 18px; border: 1px solid var(--line); border-top: 5px solid; border-radius: 9px; }
.balance-dialog__team--red { border-top-color: var(--team-red); }
.balance-dialog__team--blue { border-top-color: var(--team-blue); }
.balance-dialog__team h3 { margin: 0 0 8px; font: 900 24px/1 var(--font-display); }
.balance-dialog__team > strong { display: block; font: 900 26px/1 var(--font-data); }
.balance-dialog__team > small { display: block; margin-top: 5px; color: var(--muted); }
.balance-dialog__team ul { margin: 15px 0 0; padding: 0; display: grid; list-style: none; }
.balance-dialog__team li { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.balance-dialog__team li b { font-family: var(--font-data); }
.balance-dialog__matchups { margin: 16px 0 0; font: 700 13px/1.35 var(--font-body); }
.balance-dialog__note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.balance-dialog__actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.participant-role { margin-top: 14px; }
.player-picker, .autocomplete { min-width: 0; position: relative; }
.selected-player, .roster-player-card { min-width: 0; min-height: 64px; padding: 9px 10px 9px 12px; align-items: center; gap: 10px; border: 1px solid #c6ced8; border-radius: 9px; background: #f8fafc; }
.selected-player { display: flex; justify-content: space-between; }
.roster-player-card { display: flex; }
.selected-player--captain { border-color: var(--ink); box-shadow: inset 3px 0 var(--ink); }
.player-card__identity, .player-result-option { min-width: 0; display: grid; gap: 4px; text-align: left; }
.player-card__identity { flex: 1; }
.player-card__heading { min-width: 0; display: flex; align-items: center; gap: 7px; }
.player-card__name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 900; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.player-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.player-card__meta { min-width: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 3px 9px; color: var(--muted); background: none; font: 600 11px/1.25 var(--font-ui); }
.player-card__meta > span, .player-card__telegram { min-width: 0; display: inline-flex; align-items: center; gap: 3px; }
.player-card__telegram { max-width: 100%; color: inherit; text-decoration: none; }
.player-card__telegram:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.player-card__telegram span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card__telegram svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-card__role { font-weight: 900; }
.selected-player__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.participant-confirmation-toggle { min-height: 32px; padding: 4px 7px; border: 0; border-radius: 5px; color: #8b2635; background: #f7e9ec; font-size: 10px; font-weight: 800; cursor: pointer; }
.participant-confirmation-toggle.is-confirmed { color: #4f5967; background: #e9edf2; }
.participant-action { min-height: 32px; padding: 5px 7px; border: 0; border-radius: 6px; color: #334155; background: #e5eaf0; font-size: 11px; font-weight: 800; cursor: pointer; }
.participant-action--captain { color: white; background: var(--ink); }
.participant-edit { flex: 0 0 32px; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 6px; color: #334155; background: #e5eaf0; cursor: pointer; }
.participant-edit:hover { background: #d8dee7; }
.participant-edit svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.participant-remove { flex: 0 0 32px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #e5eaf0; font-size: 19px; cursor: pointer; }
.participant-empty { margin: 0; padding: 13px; color: var(--muted); border: 1px dashed #b8c2d0; border-radius: 9px; font-size: 12px; }
.autocomplete-results { position: absolute; z-index: 8; top: calc(100% + 4px); left: 0; right: 0; max-height: 330px; padding: 6px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 14px 34px #0a102033; }
.autocomplete-results:has(.inline-player-form) { max-height: min(52svh, 440px); }
.autocomplete-more { display: block; padding: 8px 10px 2px; color: var(--muted); }
.player-result-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 2px; }
.player-result-row .participant-edit { justify-self: center; }
.player-result-option, .create-player-option { width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 7px; background: white; cursor: pointer; }
.player-result-option:hover, .create-player-option:hover { background: #eef3f8; }
.player-result-option:disabled { opacity: .5; cursor: not-allowed; }
.create-player-option { color: var(--ink); font-weight: 900; text-align: left; }
.inline-player-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.inline-player-form input, .inline-player-form select { min-width: 0; min-height: 42px; }
.selected-player > .inline-player-form { width: 100%; }
.inline-player-form .field-error, .inline-player-form__actions { grid-column: 1 / -1; }
.inline-player-form__consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.inline-player-form__consent input { min-height: 0; }
.inline-player-form__actions { display: flex; justify-content: flex-end; gap: 7px; }
.inline-player-form__actions .danger-button { margin-right: auto; }
.form-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.form-actions--fixed { position: fixed; z-index: 20; right: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 24px)); margin: 0; padding: 10px; align-items: center; border: 1px solid #cbd3dd; border-radius: 12px; background: #fffffff2; box-shadow: 0 14px 38px #0a102033; transform: translateX(50%); backdrop-filter: blur(10px); }
.form-alert { margin-bottom: 18px; padding: 14px 16px; color: #8b1d2d; border: 1px solid #f0aeba; border-radius: 10px; background: #fff0f2; }
.form-alert .errorlist { margin: 0; }

.player-dialog { width: min(480px, calc(100% - 24px)); padding: 28px; border: 0; border-radius: 10px; box-shadow: 0 24px 80px #0a102066; }
.player-dialog::backdrop { background: #0c1220b8; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog-close button { width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; background: #edf1f5; cursor: pointer; }
.roster-summary ul { margin-bottom: 0; color: var(--muted); }
.schedule-card { margin-bottom: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.schedule-card .eyebrow { margin-bottom: 4px; }
.schedule-card strong { font-size: 20px; }
.schedule-card--recruitment { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; }
.rush-countdown { min-width: 210px; padding: 14px 16px; display: grid; gap: 3px; border-radius: 10px; color: white; background: var(--ink); }
.rush-countdown span { color: #aeb8c7; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rush-countdown strong { color: white; font: 900 24px/1.1 var(--font-data); }
.recruitment-state { grid-column: 1 / -1; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.recruitment-state__copy { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.recruitment-state__copy span { color: var(--ink); font-weight: 900; }
.recruitment-state__copy strong { font-size: 13px; }
.recruitment-count { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-family: var(--font-data); white-space: nowrap; }
.recruitment-count svg { width: 16px; height: 16px; margin-right: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recruitment-count strong { font-size: inherit; }
.recruitment-count > span { color: inherit; font-weight: inherit; }
.participant-confirmation { flex: 0 0 auto; color: #8b2635; font: 700 10px/1.2 var(--font-ui); white-space: nowrap; }
.scheduled-team__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scheduled-team__heading h2 { margin: 0; }
.scheduled-team__heading > div { display: grid; justify-items: end; gap: 8px; }
.scheduled-team__heading > div > strong { flex: 0 0 auto; color: var(--muted); font: 800 12px/1 var(--font-data); }
.scheduled-team .team-roster { margin-top: 14px; }
.scheduled-team__empty { margin: 22px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); }
.scheduled-players { min-height: 54px; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.scheduled-players .participant-empty { min-height: 0; padding: 10px 0; border: 0; }
.scheduled-pool { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.scheduled-pool .section-heading { margin-bottom: 14px; }
.scheduled-pool h2 { margin: 0; font-size: 20px; }
.scheduled-pool h2 span { color: var(--muted); font-family: var(--font-data); }
.scheduled-pool ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; }
.team-roster li.roster-player-card { min-height: 64px; padding: 9px 10px 9px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #c6ced8; }
.team-roster .player-card__meta { padding: 0; color: var(--muted); background: none; }
.prestart-dialog { width: min(780px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 26px; overflow: auto; border: 0; border-radius: 16px; box-shadow: 0 24px 80px #0a102066; }
.prestart-dialog::backdrop { background: #0c1220c7; }
.prestart-dialog__heading { padding-right: 44px; }
.prestart-dialog__heading h2 { margin: 3px 0 6px; font-size: 30px; }
.prestart-dialog__heading p:last-child { margin: 0; color: var(--muted); }
.prestart-lineups { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prestart-team { --side-color: var(--ink); min-width: 0; padding: 15px; border-top: 5px solid var(--side-color); border-radius: 9px; background: #f3f6f9; }
.prestart-team--red { --side-color: var(--team-red); }
.prestart-team--blue { --side-color: var(--team-blue); }
.prestart-team h3 { margin: 0 0 12px; font-size: 21px; overflow-wrap: anywhere; }
.prestart-team .lineup-control { margin: 0; padding: 0; border: 0; background: transparent; }
.prestart-form { margin-top: 18px; }
.prestart-serve { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.prestart-serve legend { padding-inline: 6px; font-weight: 900; }
.prestart-serve__teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prestart-serve__team { --side-color: var(--ink); min-width: 0; min-height: 52px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 2px solid #cbd3dd; border-radius: 8px; background: white; font-weight: 900; cursor: pointer; }
.prestart-serve__team--red { --side-color: var(--team-red); }
.prestart-serve__team--blue { --side-color: var(--team-blue); }
.prestart-serve__team:has(input:checked) { color: white; border-color: var(--side-color); background: var(--side-color); }
.prestart-serve__team input { accent-color: var(--side-color); }
.prestart-serve__team span { min-width: 0; overflow-wrap: anywhere; }
.prestart-dialog__actions { margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; border-top: 1px solid var(--line); }
.prestart-dialog__actions small { margin-right: auto; color: var(--muted); }
.rush-place { margin: 8px 0 0; color: var(--muted); }
.rush-place-actions { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.rush-place-actions .rush-place { margin: 0; }
.map-link { width: 44px; height: 44px; margin: -12px -8px -12px 2px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; color: var(--ink); border-radius: 50%; }
.map-link:hover { background: #e7e9ec; }
.map-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-link--dark { color: white; }
.map-link--dark:hover { background: #ffffff18; }
.detail-action { margin-top: 18px; display: flex; justify-content: flex-end; }
.detail-action > div { display: grid; justify-items: end; gap: 7px; }
.detail-action small { max-width: 540px; color: var(--muted); text-align: right; }
.notice-panel { margin-top: 18px; padding: 32px; border-radius: var(--radius); background: var(--ink); color: white; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.share-button { min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-weight: 800; cursor: pointer; }
.share-button:hover { background: #f2f6fa; }
.share-button.is-copied { color: #0c6635; border-color: #78c89b; background: #e4f7ec; }
.share-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-button--context { flex: 0 0 auto; }
.schedule-time-row { margin-top: -6px; display: flex; align-items: center; gap: 4px; }
.calendar-icon-link { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border-radius: 50%; }
.calendar-icon-link:hover { background: #e7e9ec; }
.calendar-icon-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-audience { width: fit-content; color: #d3dae3; font: 800 11px/1.2 var(--font-ui); letter-spacing: 0; white-space: nowrap; }
.telegram-button { min-height: 48px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ffffff40; border-radius: 6px; color: white; background: var(--ink); font-weight: 900; text-decoration: none; }
.telegram-button:hover { background: #252a31; }
.telegram-button--hero { min-height: 56px; padding-inline: 28px; font-size: 17px; }

.play-cta { position: relative; margin-top: 18px; padding: clamp(22px, 4vw, 34px); display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; border-radius: var(--radius); color: white; background: linear-gradient(90deg, #0c1017f5 0%, #0c1017e8 55%, #0c1017c7 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; }
.play-cta .eyebrow { color: #aeb5bf; }
.play-cta h2 { margin-bottom: 6px; font-size: clamp(26px, 5vw, 40px); }
.play-cta p:last-child { margin: 0; color: #cbd0d7; }
.play-cta .telegram-button { flex: 0 0 auto; color: var(--ink); border-color: white; background: white; }
.play-cta .telegram-button:hover { background: #e9ebee; }

.rush-hero { position: relative; min-height: clamp(540px, 56vw, 610px); padding: clamp(28px, 6vw, 64px); display: grid; align-items: end; overflow: hidden; border-radius: var(--radius); color: white; background: var(--ink); }
.rush-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #090b0e0d 12%, #090b0e4d 48%, #090b0ef5 100%); }
.rush-hero__media { position: absolute; inset: 0; }
.rush-hero__media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.rush-hero__copy { position: relative; z-index: 2; width: min(760px, 100%); display: grid; justify-items: start; }
.rush-hero h1 { margin: 0; font-size: clamp(48px, 8vw, 86px); line-height: .82; }
.rush-hero__location { width: fit-content; margin: 0 0 18px; padding: 7px 10px; color: white; border: 1px solid #ffffff55; border-radius: 4px; background: #090b0e70; font: 900 11px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; }
.rush-hero__format { margin: 22px 0 0; color: white; font: 900 clamp(17px, 2.4vw, 24px)/1 var(--font-data); letter-spacing: .08em; }
.rush-hero .rush-hero__description { max-width: 620px; margin: 16px 0 26px; color: #d9dee5; font-size: clamp(16px, 2vw, 20px); line-height: 1.45; }
.rush-hero__city { margin: -12px 0 22px; color: #cbd3de; font: 900 12px/1 var(--font-data); letter-spacing: .1em; text-transform: uppercase; }
.rush-hero__actions { display: flex; align-items: center; gap: clamp(18px, 4.5vw, 27px); white-space: nowrap; }
.rush-hero__actions .telegram-button { padding-inline: clamp(18px, 4vw, 28px); }
.rush-hero .telegram-button { color: var(--ink); border-color: white; background: white; }
.rush-hero .telegram-button:hover { background: #e9ebee; }
.rush-hero__rules { min-height: 44px; display: inline-flex; align-items: center; color: white; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.global-format, .global-cities { margin-top: clamp(34px, 6vw, 60px); }
.global-section-heading { display: grid; grid-template-columns: minmax(0, .75fr) minmax(300px, 1.25fr); gap: 8px 48px; align-items: end; }
.global-section-heading .eyebrow { grid-column: 1 / -1; }
.global-section-heading h2 { margin: 0; font: 900 clamp(34px, 5.5vw, 58px)/.94 var(--font-display); }
.global-section-heading > p:last-child { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.global-format__steps { margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; list-style: none; }
.global-format__steps li { min-height: 210px; padding: clamp(20px, 3.5vw, 32px); display: grid; align-content: start; gap: 12px; }
.global-format__steps li + li { border-left: 1px solid var(--line); }
.global-format__steps li > span { color: var(--muted); font: 900 13px/1 var(--font-data); }
.global-format__steps strong { margin-top: 28px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.05; }
.global-format__steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.global-format__links { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.global-format__links a { min-height: 64px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; font-weight: 900; text-decoration: none; }
.global-format__links a:hover { border-color: #929ba8; }
.global-format__links span { font-size: 22px; }
.global-cities { padding: clamp(24px, 5vw, 44px); border-radius: var(--radius); background: #e7e9ed; }
.global-cities .global-section-heading { grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr); }
.global-city-card { margin-top: 26px; min-height: 190px; padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 5px 24px; color: white; border-radius: var(--radius); background: linear-gradient(105deg, #090b0ef5 0%, #090b0ed6 65%, #090b0ef2 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; text-decoration: none; }
.global-city-card:hover { background: linear-gradient(105deg, #090b0eee 0%, #090b0ecb 65%, #090b0eeb 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; }
.global-city-card__status { grid-column: 1 / -1; align-self: start; color: #aeb7c5; font: 900 11px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; }
.global-city-card strong { font: 900 clamp(44px, 8vw, 78px)/.84 var(--font-display); }
.global-city-card > span:not(.global-city-card__status) { grid-column: 1; color: #cbd0d7; font-weight: 750; }
.global-city-card b { grid-column: 2; grid-row: 2 / 4; align-self: end; font-size: 14px; }
.global-city-card b span { margin-left: 10px; font-size: 20px; }
.global-cities__empty { margin: 24px 0 0; color: var(--muted); }
.home-rush-section { margin-top: clamp(34px, 6vw, 56px); }
.home-rush-section + .home-rush-section { margin-top: 34px; }
.home-rush-section__title { margin-bottom: 14px; color: var(--muted); font: 900 12px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; }
.home-rush-section__heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-rush-section__heading .home-rush-section__title { margin: 0; }
.home-rush-section__all { color: var(--muted); font: 900 12px/1 var(--font-data); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.home-rush-section__all:hover { color: var(--ink); }
.home-proof { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.home-proof__heading { padding: clamp(22px, 4vw, 34px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.home-proof__heading h2 { max-width: 580px; margin: 0; font: 900 clamp(30px, 5vw, 48px)/.95 var(--font-display); }
.home-proof__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.home-proof__metrics > div { min-width: 0; padding: clamp(20px, 4vw, 34px); display: grid; gap: 8px; border-right: 1px solid var(--line); }
.home-proof__metrics > div:last-child { border-right: 0; }
.home-proof__metrics strong { font: 900 clamp(38px, 7vw, 72px)/.85 var(--font-data); letter-spacing: -.08em; }
.home-proof__metrics span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.home-captain { margin-top: clamp(34px, 6vw, 56px); padding: clamp(26px, 6vw, 52px); display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; overflow: hidden; border-radius: var(--radius); color: white; background: linear-gradient(105deg, #090b0ef7 0%, #090b0edc 66%, #090b0ef1 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; }
.home-captain .eyebrow { color: #aeb7c5; }
.home-captain h2 { margin-bottom: 10px; font: 900 clamp(36px, 6vw, 62px)/.92 var(--font-display); }
.home-captain p:last-child { max-width: 620px; margin: 0; color: #cbd0d7; font-size: 17px; line-height: 1.5; }
.home-captain__actions { min-width: max-content; display: grid; justify-items: start; gap: 14px; }
.home-captain__actions .primary-button { color: var(--ink); background: white; }
.home-captain__actions .text-link { color: white; }
.live-dot { width: 8px; height: 8px; margin-right: 8px; display: inline-block; border-radius: 50%; background: var(--team-red); box-shadow: 0 0 0 4px var(--team-red-soft); }
.home-live-rail { display: grid; }
.home-live-rail--scroll { margin-inline: calc((100vw - 100%) / -2); padding: 0 max(16px, calc((100vw - 1180px) / 2)) 10px; grid-auto-flow: column; grid-auto-columns: min(920px, calc(100vw - 32px)); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.rush-card-rail { margin-inline: calc((100vw - 100%) / -2); padding: 0 max(16px, calc((100vw - 1180px) / 2)) 10px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(290px, 34vw, 360px); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.home-live-rail--scroll, .rush-card-rail { scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2)); }
.home-rush-card { min-width: 0; min-height: 134px; padding: 14px 16px; display: grid; align-content: start; gap: 6px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: white; scroll-snap-align: start; text-decoration: none; }
.home-rush-card:hover { border-color: #939eac; }
.home-rush-card__link { min-width: 0; display: grid; align-content: start; gap: 6px; color: inherit; text-decoration: none; }
.home-rush-card__meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-rush-card__meta time, .home-rush-card__time { color: var(--muted); font: 700 11px/1 var(--font-data); white-space: nowrap; }
.home-rush-card__place { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-rush-card__team-list { display: grid; }
.home-rush-card__team-list--upcoming { margin-top: 0; }
.home-rush-card__team-list--upcoming .home-rush-card__team-row { justify-content: flex-start; gap: 7px; }
.home-rush-card__team-row { min-width: 0; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-rush-card__team-row strong { min-width: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.home-rush-card__team-score { flex: 0 0 auto; color: var(--ink); font: 900 24px/1 var(--font-data); letter-spacing: -.06em; }
.home-rush-card__recruitment { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 800; text-align: right; }
.home-rush-card--live { min-height: 176px; padding: clamp(22px, 4vw, 32px); align-content: center; gap: 18px; color: white; border-color: #303640; background: linear-gradient(90deg, #0a0d13ee 0%, #0a0d13d6 50%, #0a0d13ee 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; }
.home-rush-card--live:hover { border-color: #626d7c; }
.home-live-scoreboard { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr) minmax(0, 1fr); grid-template-areas: "red center blue"; align-items: center; gap: clamp(18px, 4vw, 42px); }
.home-live-side { min-width: 0; display: grid; align-items: center; gap: clamp(12px, 2vw, 22px); }
.home-live-side--red { grid-area: red; grid-template-columns: minmax(0, 1fr) auto; }
.home-live-side--blue { grid-area: blue; grid-template-columns: auto minmax(0, 1fr); text-align: right; }
.home-live-side--blue b { grid-column: 1; grid-row: 1; }
.home-live-side--blue strong { grid-column: 2; grid-row: 1; }
.home-live-side strong { min-width: 0; display: -webkit-box; overflow: hidden; font: 900 clamp(26px, 3.3vw, 36px)/.95 var(--font-display); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-live-side b { color: white; font: 900 clamp(48px, 6vw, 64px)/.85 var(--font-data); letter-spacing: -.08em; }
.home-live-center { grid-area: center; display: grid; justify-items: center; gap: 10px; color: #bdc6d2; text-align: center; }
.home-live-center > span { font: 900 12px/1.2 var(--font-data); letter-spacing: .08em; white-space: nowrap; }
.home-live-center .live-dot { margin-right: 9px; }
.home-live-place { overflow: hidden; color: #9fa9b7; font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.rush-detail-shell { padding-top: var(--page-top); }
.rules-hero { padding: clamp(30px, 7vw, 64px); color: white; border-radius: var(--radius); background: var(--ink); }
.rules-hero .eyebrow { color: #aeb5bf; }
.rules-hero h1 { max-width: 720px; font-size: clamp(54px, 11vw, 104px); }
.rules-hero > p:not(.eyebrow) { max-width: 670px; margin: 22px 0 0; color: #cbd0d7; font-size: clamp(17px, 2.5vw, 21px); line-height: 1.5; }
.rules-highlights { margin-top: clamp(30px, 6vw, 54px); display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #ffffff30; }
.rules-highlights div { padding: 20px 18px 18px 0; display: grid; gap: 5px; border-right: 1px solid #ffffff30; }
.rules-highlights div:not(:first-child) { padding-left: 18px; }
.rules-highlights div:last-child { border: 0; }
.rules-highlights strong { font: 900 clamp(34px, 6vw, 54px)/1 var(--font-data); letter-spacing: -.07em; }
.rules-highlights span { color: #aeb5bf; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rules-sections { margin-top: 18px; display: grid; gap: 12px; }
.rules-section { padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 46px minmax(210px, .7fr) minmax(0, 1.3fr); gap: 18px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; scroll-margin-top: 18px; }
.rule-number { color: var(--muted); font: 900 16px/1 var(--font-data); }
.rules-section h2 { margin: 0; font-size: clamp(24px, 3.5vw, 34px); }
.rule-copy { display: grid; align-content: start; gap: 12px; }
.rule-copy p { margin: 0; color: #353e4b; line-height: 1.55; }
.rule-copy--scores p { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.rule-copy--scores p strong { font: 900 34px/1 var(--font-data); }
.rule-copy--scores p span { color: #353e4b; }
.rule-copy small { color: var(--muted); line-height: 1.45; }
.rules-finish { padding: clamp(28px, 6vw, 52px); border-radius: var(--radius); color: white; background: var(--ink); }
.rules-finish .eyebrow { color: #aeb5bf; }
.rules-finish h2 { max-width: 760px; font-size: clamp(30px, 5vw, 50px); }
.rules-finish > p:not(.eyebrow) { max-width: 650px; color: #cbd0d7; line-height: 1.5; }
.rules-finish .telegram-button { margin-top: 14px; color: var(--ink); border-color: white; background: white; }

.operator-shell { width: min(1400px, calc(100% - 24px)); padding: 10px 0 40px; }
.spectator-shell { width: min(900px, calc(100% - 24px)); padding-top: 14px; }
.rush-console { position: relative; }
.rush-primary-screen { min-height: calc(100svh - 58px); }
.csrf-source { display: none; }
.timer-strip { margin-bottom: 10px; display: grid; overflow: hidden; border-radius: var(--radius); color: white; background: var(--ink); }
.timer-block { min-width: 0; padding: 12px; display: grid; gap: 4px; text-align: center; color: white; background: transparent; }
.timer-block + .timer-block { border-top: 1px solid #ffffff22; }
.timer-block span { color: #aeb7c5; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.timer-block strong { font: 900 clamp(26px, 6vw, 54px)/1 var(--font-data); letter-spacing: -.08em; }
.timer-block--main { color: white; background: #171b21; }
.timer-block--main span { color: #c4cad2; }
.timer-block--rush { padding: 6px 10px 7px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.timer-block--rush strong { font-size: clamp(18px, 2.8vw, 25px); letter-spacing: -.05em; }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-control { --side-color: var(--ink); position: relative; min-width: 0; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-top: 6px solid var(--side-color); border-radius: var(--radius); background: white; }
.team-control--blue { --side-color: var(--team-blue); }
.team-control--red { --side-color: var(--team-red); }
.team-control.has-serve { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--side-color) 58%, transparent); }
.team-control.is-serving { animation: team-serve-pulse .5s ease-in-out infinite; }
.team-control.is-shot-expired::after { content: ""; position: absolute; z-index: 5; inset: 0; border: 4px solid white; border-radius: inherit; box-shadow: inset 0 0 0 2px #111820, inset 0 0 26px white; pointer-events: none; animation: operator-shot-expired 1.2s linear both; }
@keyframes team-serve-pulse { 0%, 100% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--side-color) 42%, transparent); } 50% { box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--side-color) 82%, transparent), inset 0 0 22px color-mix(in srgb, var(--side-color) 28%, transparent); background: color-mix(in srgb, var(--side-color) 8%, white); } }
@keyframes operator-shot-expired { 0%, 20%, 34%, 54%, 68%, 88%, 100% { opacity: 0; } 10%, 44%, 78% { opacity: 1; } }
.team-control__heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; }
.team-control__heading h2 { min-width: 0; margin: 0; font-size: clamp(20px, 3vw, 32px); overflow-wrap: anywhere; }
.team-total { flex: 0 0 auto; text-align: right; }
.team-total span, .heat-score span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.team-total strong { font: 900 clamp(34px, 6vw, 64px)/.85 var(--font-data); }
.heat-score { grid-column: 1 / -1; padding: 5px 0 7px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.heat-score strong { font: 900 25px/1 var(--font-data); }
.score-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.score-buttons button { min-height: clamp(82px, 13vw, 132px); border: 0; border-radius: 6px; color: white; font: 900 clamp(34px, 7vw, 66px)/1 var(--font-display); cursor: pointer; touch-action: manipulation; }
.score-buttons .score-error-button { padding: 8px; display: grid; place-content: center; gap: 1px; font: 900 clamp(12px, 1.7vw, 18px)/1.05 var(--font-body); }
.team-control--blue .score-buttons button { background: var(--team-blue); }
.team-control--red .score-buttons button { background: var(--team-red); }
.score-buttons button:hover { filter: brightness(.92); }
.score-buttons button:disabled, .timeout-button:disabled { opacity: .36; cursor: not-allowed; }
.timeout-button { width: 100%; min-height: 52px; margin-top: 8px; border: 1px solid currentColor; border-radius: 10px; color: var(--ink); background: white; font-weight: 900; cursor: pointer; }
.rush-primary-actions { margin-top: 8px; display: grid; }
.rush-primary-actions button { min-height: 48px; }
.icon-button { display: grid; place-items: center; padding: 0; }
.icon-button svg { width: 22px; height: 22px; fill: currentColor; }
.official-actions { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.official-actions h2 { margin: 2px 0 14px; }
.official-actions__buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.official-actions__buttons button { min-height: 48px; }
.undo-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rush-status-panel { margin: 0 0 10px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #303640; border-radius: 10px; color: white; background: var(--ink); }
.rush-status-panel[hidden] { display: none; }
.rush-status-panel > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.rush-status-panel .eyebrow { margin: 0; color: #b9c2cf; }
.rush-status-panel strong { font: 900 30px/1 var(--font-data); letter-spacing: -.06em; }
.rush-status-panel--timeout { border-color: color-mix(in srgb, var(--signal) 50%, #303640); }
.rush-status-panel--technical { background: #252b34; }
.break-state { min-width: 0; display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center !important; gap: 8px 16px !important; }
.break-state > div { display: grid; gap: 2px; }
.overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.score-dialog { width: min(820px, calc(100% - 20px)); height: min(760px, calc(100dvh - 20px)); padding: 20px; overflow: auto; border: 0; border-radius: 18px; box-shadow: 0 24px 80px #0a102066; }
.score-dialog::backdrop { background: #0c1220c7; }
.choice-dialog__content { width: 100%; }
.score-dialog fieldset { margin: 12px 0; padding: 10px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 10px; }
.score-dialog legend { padding: 0 6px; font-weight: 900; }
.opponent-error-option { width: 100%; min-height: 52px; margin-top: 12px; border: 0; border-radius: 8px; color: white; background: var(--ink); font-weight: 900; cursor: pointer; }
.opponent-error-option.is-selected { color: white; background: #343a43; }
.opponent-error-option[hidden] { display: none; }
.scorer-list { grid-template-columns: 1fr; }
.scorer-option { width: 100%; min-height: 46px; padding: 7px 9px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 7px; color: var(--ink); background: #f3f6f9; font: inherit; text-align: left; cursor: pointer; }
.scorer-option:hover, .scorer-option.is-selected { background: #e7edf4; }
.scorer-option span { min-width: 0; display: grid; }
.scorer-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer-option small { color: var(--muted); font-size: 10px; }
.correction-target { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.correction-target button { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: white; font-weight: 800; cursor: pointer; }
.correction-target button.is-selected { color: white; border-color: var(--ink); background: var(--ink); }
.score-dialog .primary-button { width: 100%; }
.dialog-error { min-height: 20px; color: #a62034; font-weight: 700; }
.operator-toast { position: fixed; z-index: 20; right: 16px; bottom: 16px; max-width: min(440px, calc(100% - 32px)); padding: 13px 16px; border-radius: 10px; color: white; background: var(--ink); box-shadow: 0 10px 35px #0a102044; }
.lineup-control { margin: 8px 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #f5f7fa; }
.lineup-control__heading { margin-bottom: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.lineup-control__primary { min-width: 0; display: flex; align-items: center; justify-self: start; gap: 8px; }
.lineup-control__label { min-width: 0; display: grid; gap: 2px; }
.lineup-control__label > span { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lineup-control__heading small { color: var(--muted); font-size: 10px; }
.team-shot-clock { flex: 0 0 auto; min-width: 124px; min-height: 32px; padding: 4px 8px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; border-radius: 7px; color: white; background: var(--side-color); box-shadow: inset 0 0 0 1px #ffffff42; }
.team-shot-clock[hidden] { display: grid !important; visibility: hidden; }
.team-shot-clock > span { display: flex; align-items: center; gap: 4px; color: white; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.serve-ad { font: inherit; letter-spacing: inherit; }
.serve-ad[hidden] { display: none; }
.team-shot-clock .tennis-ball-icon { width: 17px; height: 17px; fill: white; stroke: var(--side-color); }
.team-shot-clock strong { font: 900 21px/1 var(--font-data); letter-spacing: -.06em; }
.team-shot-clock.is-running { animation: operator-shot-chip .5s ease-in-out infinite; }
@keyframes operator-shot-chip { 0%, 100% { opacity: .72; } 50% { opacity: 1; box-shadow: inset 0 0 0 2px white, 0 0 16px color-mix(in srgb, var(--side-color) 62%, transparent); } }
.lineup-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lineup-slots:has(> :only-child) { grid-template-columns: 1fr; }
.lineup-slot { min-width: 0; min-height: 42px; padding: 7px 9px; overflow: hidden; border: 1px solid #cfd6df; border-radius: 7px; color: var(--ink); background: white; font-weight: 850; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.lineup-slot--empty { color: var(--muted); border-style: dashed; }
.lineup-undo { width: 90px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cfd6df; border-radius: 7px; color: #4f5967; background: white; font-size: 11px; font-weight: 850; cursor: pointer; }
.lineup-undo[hidden] { display: inline-flex !important; visibility: hidden; pointer-events: none; }
.lineup-undo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lineup-undo:hover { color: var(--ink); border-color: var(--ink); background: #eef1f5; }
.lineup-undo:focus-visible { outline: 3px solid color-mix(in srgb, var(--side-color) 38%, transparent); outline-offset: 2px; }
.lineup-dialog { width: min(620px, calc(100% - 20px)); max-height: calc(100dvh - 20px); padding: 20px; overflow: auto; border: 0; border-radius: 18px; box-shadow: 0 24px 80px #0a102066; }
.lineup-dialog::backdrop { background: #0c1220c7; }
.lineup-player-list { margin-top: 14px; display: grid; gap: 6px; }
.lineup-player-option { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 8px; color: var(--ink); background: #f3f6f9; text-align: left; cursor: pointer; }
.lineup-player-option:disabled { opacity: .42; cursor: not-allowed; }
.lineup-player-option span { min-width: 0; display: grid; }
.lineup-player-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-player-option small { color: var(--muted); font-size: 10px; }
.lineup-slot.is-updated { animation: lineup-updated .9s ease-out; }
@keyframes lineup-updated { 0% { color: white; border-color: var(--side-color); background: var(--side-color); } 100% { color: var(--ink); border-color: #cfd6df; background: white; } }

.captain-console-button { min-height: 36px; padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 12px; font-weight: 850; cursor: pointer; }
.captain-console-button:hover { border-color: var(--ink); background: #f3f6f9; }
.captain-console-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.captain-console-button svg path { fill: currentColor; stroke: none; }
.captain-console-button--compact { width: 30px; min-height: 30px; padding: 0; flex: 0 0 30px; color: var(--muted); }
.captain-console-button--compact span { display: none; }
.captain-console-button--compact svg { width: 16px; height: 16px; }
.team-control__identity { min-width: 0; display: flex; align-items: flex-start; gap: 7px; }
.team-control__identity h2 { flex: 1; }
.captain-access-dialog { width: min(470px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 26px; overflow: auto; border: 0; border-radius: 16px; box-shadow: 0 24px 80px #0a102066; }
.captain-access-dialog::backdrop { background: #0c1220c7; backdrop-filter: blur(4px); }
.captain-access-dialog__content { display: grid; justify-items: center; text-align: center; }
.captain-access-dialog__content .eyebrow { padding-right: 44px; justify-self: start; text-align: left; }
.captain-access-dialog__content h2 { width: 100%; margin-bottom: 5px; padding-inline: 44px; font-size: 30px; }
.captain-access-dialog__content > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.captain-access-dialog__content img { width: min(320px, 82vw); height: auto; margin: 18px 0; display: block; border-radius: 8px; }
.captain-access-dialog__content .share-button { width: 100%; }

.body--captain-console { background: #e9ecf0; }
.captain-shell { width: min(1040px, calc(100% - 24px)); padding: 12px 0 36px; }
.captain-console { --captain-side: var(--ink); display: grid; gap: 8px; }
.captain-console > .csrf-source { display: none; }
.captain-console--red { --captain-side: var(--team-red); }
.captain-console--blue { --captain-side: var(--team-blue); }
.captain-schedule { min-width: 0; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-top: 4px solid var(--captain-side); border-radius: var(--radius); background: white; }
.captain-schedule span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.captain-schedule strong { flex: 0 0 auto; font: 900 18px/1 var(--font-data); }
.captain-timer-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(122px, .56fr); overflow: hidden; color: white; border-radius: var(--radius); background: var(--ink); }
.captain-timer-strip:has(.captain-status-panel:not([hidden])) { grid-template-columns: minmax(0, 1.12fr) minmax(116px, .84fr) minmax(110px, .62fr); }
.captain-timer-strip > * { min-width: 0; padding: 9px 14px; display: grid; align-content: center; gap: 2px; }
.captain-timer-strip > * + * { border-left: 1px solid #ffffff20; }
.captain-timer-strip span { overflow: hidden; color: #aeb7c5; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.captain-timer-strip strong { font: 900 clamp(31px, 4.4vw, 44px)/1 var(--font-data); letter-spacing: -.07em; }
.captain-timer-block--rush { text-align: right; }
.captain-timer-block--rush strong { font-size: clamp(21px, 3vw, 27px); }
.captain-status-panel { color: white; background: #252b34; }
.captain-status-panel[hidden] { display: none; }
.captain-status-panel strong { overflow: hidden; font: 900 24px/1 var(--font-data); text-overflow: ellipsis; white-space: nowrap; }
.captain-scoreboard { display: grid; grid-template-columns: 1fr; gap: 6px; }
.captain-score { --side-color: var(--ink); min-width: 0; padding: 12px; border: 1px solid var(--line); border-top: 5px solid var(--side-color); border-radius: var(--radius); background: white; }
.captain-score--red { --side-color: var(--team-red); }
.captain-score--blue { --side-color: var(--team-blue); }
.captain-score--own { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--side-color) 30%, transparent); }
.captain-score--opponent { padding: 8px 11px; }
.captain-score.has-serve { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--side-color) 55%, transparent); }
.captain-score.is-serving { animation: team-serve-pulse .72s ease-in-out infinite; }
.captain-score > header { min-height: 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.captain-score > header h2 { margin: 0; overflow-wrap: anywhere; }
.captain-score > header span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.captain-score__numbers { padding: 6px 0 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); }
.captain-score__numbers div:last-child { text-align: right; }
.captain-score__numbers span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.captain-score__numbers strong { font: 900 clamp(30px, 4.4vw, 43px)/1 var(--font-data); letter-spacing: -.07em; }
.captain-score__numbers div:last-child strong { font-size: clamp(24px, 3.4vw, 33px); }
.captain-score--opponent > header { min-width: 0; min-height: 28px; }
.captain-score--opponent > header h2 { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.captain-score--opponent .captain-score__numbers { padding-block: 4px 3px; }
.captain-score .lineup-control { margin-bottom: 0; }
.captain-score .lineup-undo { display: none !important; }
.captain-opponent-lineup { min-width: 0; padding: 5px 7px; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7fa; }
.captain-opponent-lineup > div:first-child { min-width: 0; display: grid; gap: 1px; }
.captain-opponent-lineup span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.captain-opponent-lineup strong { min-height: 0; overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.captain-opponent-lineup .team-shot-clock[hidden] { display: none !important; }
.captain-opponent-lineup .team-shot-clock { min-width: 112px; }
.captain-opponent-lineup .team-shot-clock > span { color: white; }
.captain-roster { min-height: 0; padding: 10px 12px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--captain-side); border-radius: var(--radius); background: white; }
.captain-roster__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.captain-roster__heading h2 { margin: 0; font-size: 20px; }
.captain-roster__heading .timeout-button { width: min(170px, 44%); min-height: 38px; margin: 0; }
.captain-roster ul { min-height: 0; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; list-style: none; }
.captain-roster li { min-width: 0; min-height: 42px; padding: 5px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #cfd6df; border-radius: 7px; background: #f7f9fb; }
.captain-roster li.is-active { border-color: color-mix(in srgb, var(--captain-side) 55%, #cfd6df); background: color-mix(in srgb, var(--captain-side) 7%, white); }
.captain-roster li > span:first-child { min-width: 0; }
.captain-roster li strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.captain-roster li > span:last-child { color: var(--muted); font: 800 10.5px/1.2 var(--font-data); white-space: nowrap; }
.live-lineup { padding: 10px 0; display: grid; gap: 5px; border-top: 1px solid #303640; }
.live-lineup__heading { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-lineup__heading > span { color: #aeb7c5; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.live-lineup strong { font-size: 14px; }
.live-shot-clock { flex: 0 0 auto; padding: 4px 7px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 6px; border-radius: 6px; color: white; background: var(--side-color); box-shadow: inset 0 0 0 1px #ffffff38; }
.live-shot-clock[hidden] { display: none; }
.live-shot-clock > span { display: flex; align-items: center; gap: 3px; color: white; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.live-shot-clock .tennis-ball-icon { width: 15px; height: 15px; fill: white; stroke: var(--side-color); }
.live-shot-clock strong { font: 900 18px/1 var(--font-data); }
.live-shot-clock.is-running { animation: spectator-shot-pulse .72s ease-in-out infinite alternate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.live-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr) minmax(0, 1fr); grid-template-areas: "red clocks blue" "status status status"; overflow: hidden; color: white; border: 1px solid #303640; border-radius: 14px; background: var(--ink); box-shadow: 0 18px 45px #1118271f; }
.live-team { --side-color: #8d96a4; min-width: 0; min-height: 260px; padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; background: #12161c; }
.live-team--red { grid-area: red; --side-color: var(--team-red); box-shadow: inset 5px 0 0 var(--side-color); }
.live-team--blue { grid-area: blue; --side-color: var(--team-blue); box-shadow: inset -5px 0 0 var(--side-color); }
.live-team__heading { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.live-team__heading h2 { min-width: 0; margin: 0; color: white; font: 900 clamp(24px, 3.2vw, 38px)/.95 var(--font-display); overflow-wrap: anywhere; }
.live-team--blue .live-team__heading { flex-direction: row-reverse; text-align: right; }
.tennis-ball-icon { width: 30px; height: 30px; overflow: visible; fill: currentColor; stroke: var(--ink); stroke-width: 1.45; stroke-linecap: round; }
.live-team__scores { margin: auto 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.live-team--blue .live-team__scores { flex-direction: row-reverse; }
.live-team__scores span { display: block; margin-bottom: 3px; color: #9da7b5; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.live-team__scores strong { display: block; font-family: var(--font-data); font-weight: 900; letter-spacing: -.09em; }
.live-team__total strong { font-size: clamp(70px, 9vw, 102px); line-height: .78; }
.live-team__heat { padding-bottom: 2px; }
.live-team__heat strong { font-size: clamp(28px, 4vw, 42px); line-height: .9; }
.live-team--blue .live-team__total, .live-team--blue .live-team__heat { text-align: right; }
.live-board-clocks { grid-area: clocks; min-width: 0; display: grid; grid-template-rows: 1fr auto; border-right: 1px solid #303640; border-left: 1px solid #303640; background: #0d1014; }
.live-heat-clock { min-height: 180px; padding: 24px 12px; display: grid; place-content: center; gap: 8px; text-align: center; }
.live-heat-clock span, .live-clock span { color: #aeb7c5; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.live-heat-clock strong { font: 900 clamp(48px, 6vw, 72px)/1 var(--font-data); letter-spacing: -.09em; }
.live-utility-clocks { display: grid; border-top: 1px solid #303640; }
.live-clock { min-width: 0; min-height: 76px; padding: 11px 8px; display: grid; place-content: center; gap: 5px; text-align: center; }
.live-clock strong { font: 900 clamp(20px, 2.5vw, 30px)/1 var(--font-data); letter-spacing: -.07em; }
.live-team.has-serve { background: color-mix(in srgb, var(--side-color) 8%, #12161c); }
.live-team.is-serving { animation: spectator-serve-pulse .72s ease-in-out infinite alternate; }
@keyframes spectator-serve-pulse { to { background: color-mix(in srgb, var(--side-color) 28%, #12161c); box-shadow: inset 0 0 0 3px var(--side-color), inset 0 0 34px color-mix(in srgb, var(--side-color) 46%, transparent); } }
@keyframes spectator-shot-pulse { to { opacity: .66; } }
.next-serve { margin: 0; display: flex; align-items: center; gap: 7px; color: #dce2ea; font-size: 12px; font-weight: 800; }
.next-serve[hidden] { display: none; }
.next-serve i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #ffffff70; border-radius: 50%; color: white; font: 900 11px/1 var(--font-display); font-style: normal; background: #242a32; }
.next-serve.is-tossing i { animation: coin-toss 1.1s cubic-bezier(.2, .7, .25, 1); }
@keyframes coin-toss { 0% { opacity: .2; transform: translateY(8px) rotateY(0); } 45% { opacity: 1; transform: translateY(-12px) rotateY(540deg); } 100% { transform: translateY(0) rotateY(1080deg); } }
.live-scoreboard__status { grid-area: status; padding: 12px 16px; color: var(--ink); background: #eef1f5; font-weight: 900; text-align: center; }
.live-team .team-roster { margin-top: 0; border-color: #303640; }
.live-team .team-roster summary { color: #aeb7c5; }
.live-team .team-roster summary::after, .live-team .team-roster summary strong { color: white; }
.live-team .team-roster li { border-color: #303640; }
.live-team .team-roster small { color: #d8dde4; background: #252b34; }
.team-roster { margin-top: 12px; border-top: 1px solid var(--line); }
.team-roster summary { min-height: 48px; padding: 10px 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); cursor: pointer; list-style: none; }
.team-roster summary::-webkit-details-marker { display: none; }
.team-roster summary::after { content: "⌄"; color: var(--ink); font-size: 20px; line-height: 1; transition: transform .15s ease; }
.team-roster[open] summary::after { transform: rotate(180deg); }
.team-roster summary span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.team-roster summary strong { margin-left: auto; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-roster ul { margin: 0; padding: 2px 0 8px; list-style: none; }
.team-roster li { min-height: 58px; padding: 8px 2px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; align-items: start; gap: 12px; border-top: 1px solid var(--line); }
.team-roster small { padding: 2px 5px; border-radius: 4px; color: var(--muted); background: #e7ebf0; font-size: 10px; }
.player-badge { padding: 2px 5px; border-radius: 4px; color: white; background: var(--ink); font-size: 10px; }
.player-identity { min-width: 0; display: grid; align-content: start; gap: 5px; }
.player-name { min-width: 0; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
a.player-name { color: inherit; text-decoration: none; }
a.player-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.player-statuses { display: flex; flex-wrap: wrap; gap: 4px; }
.player-metrics { width: 72px; display: grid; align-content: start; gap: 3px; font: 700 11px/1.2 var(--font-data); white-space: nowrap; }
.player-metrics i { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 4px; color: var(--muted); font-style: normal; text-align: right; }
.player-metrics b { color: inherit; font-weight: 900; }
.event-log { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.event-log__heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.event-log__heading h2 { margin: 2px 0 12px; font-size: 20px; }
.event-log__heading a { margin-bottom: 12px; color: var(--ink); font-size: 13px; font-weight: 900; }
.event-list { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.event-list--full { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.event-item { min-width: 0; padding: 9px 11px; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; border-left: 4px solid; border-radius: 7px; background: #f4f7fa; }
.event-item--blue { border-color: var(--blue); }
.event-item--red { border-color: var(--red); }
.event-item time { color: var(--muted); font: 700 11px/1.2 var(--font-data); }
.event-item div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.event-item strong { flex: 0 0 auto; }
.event-item span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.event-empty { padding: 18px; color: var(--muted); text-align: center; }
.rush-secondary-info { min-height: 44px; padding: 4px 4px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
.pagination { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.pagination a { color: var(--ink); font-weight: 900; }
.result-hero { position: relative; padding: clamp(22px, 5vw, 48px); overflow: hidden; border-radius: var(--radius); color: white; background: var(--ink); }
.result-hero--stopped { background: #3a3025; }
.result-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #c4cedb; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.result-brand__logo { width: clamp(150px, 23vw, 260px); color: white; }
.result-brand .share-button--context { color: white; border-color: #ffffff35; background: #ffffff0d; letter-spacing: normal; }
.result-brand .share-button--context:hover { background: #ffffff18; }
.result-brand .share-button--context.is-copied { color: white; border-color: #ffffff80; background: #ffffff1c; }
.result-state { margin: 18px 0 0; color: #f4dcb9; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.result-scoreline { margin: clamp(22px, 5vw, 42px) 0 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 3vw, 28px); }
.result-scoreline > strong { display: flex; align-items: center; gap: .1em; font: 900 clamp(48px, 11vw, 104px)/.82 var(--font-data); letter-spacing: -.1em; }
.result-scoreline b { font: inherit; }
.result-scoreline i { color: white; font-style: normal; }
.result-team { min-width: 0; font: 900 clamp(18px, 4vw, 38px)/1 var(--font-display); overflow-wrap: anywhere; }
.result-team--red { color: #ff5a61; }
.result-team--blue { color: #3d7ee1; text-align: right; }
.result-winner { margin: 0 0 22px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.result-winner span { color: #bdc7d4; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.result-winner strong { color: white; font-size: clamp(20px, 4vw, 34px); }
.result-meta { padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; border-top: 1px solid #ffffff24; color: #c7d0dc; font-size: 13px; text-align: center; }
.result-mvp { margin-top: 14px; padding-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; border-top: 1px solid #ffffff24; color: white; }
.result-mvp span { color: #aeb5bf; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.result-mvp div { display: grid; gap: 4px; }
.result-mvp strong { overflow-wrap: anywhere; }
.result-mvp a { color: inherit; }
.result-heats { margin-top: 18px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.result-heats div { min-width: 0; padding: 8px 3px; display: grid; gap: 3px; border-radius: 7px; text-align: center; background: #ffffff12; }
.result-heats span { color: #9ca9b9; font-size: 9px; font-weight: 900; }
.result-heats strong { font: 800 clamp(11px, 2vw, 15px)/1 var(--font-data); }
.next-rush { margin-top: 18px; display: grid; gap: 10px; }
.next-rush > .eyebrow { margin: 0; }
.home-rush-card--next { padding: 18px 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
.home-rush-card--next .home-rush-card__meta { justify-content: flex-start; }
.home-rush-card__actions { display: flex; align-items: center; gap: 8px; }
.home-rush-card__actions .secondary-button, .home-rush-card__actions .telegram-button { min-height: 44px; white-space: nowrap; }
.recruitment-state__join { min-height: 44px; padding: 9px 16px; }
.analytics-overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.analytics-overview article { min-width: 0; padding: 18px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.analytics-overview span { color: var(--muted); font-size: 12px; font-weight: 800; }
.analytics-overview strong { font: 900 34px/1 var(--font-data); }
.analytics-overview small { color: var(--muted); font-size: 10px; }
.analytics-list { margin-top: 28px; }
.analytics-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.analytics-list table { width: 100%; border-collapse: collapse; font-size: 13px; }
.analytics-list th, .analytics-list td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.analytics-list th:first-child, .analytics-list td:first-child { min-width: 230px; text-align: left; }
.analytics-list th { color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.analytics-list tbody tr:last-child td { border-bottom: 0; }
.analytics-list td a { display: grid; gap: 3px; text-decoration: none; }
.analytics-list td small { color: var(--muted); }
.result-section { margin-top: 16px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.section-heading h2 { margin-bottom: 18px; }
.player-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.player-result { padding: 16px; border-top: 5px solid; border-radius: 10px; background: #f3f6f9; }
.player-result--blue { border-color: var(--team-blue); }
.player-result--red { border-color: var(--team-red); }
.player-result h3 { margin: 0 0 10px; font-size: 22px; }
.result-player-list { display: grid; }
.player-result__row { min-height: 80px; padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) 116px; align-items: start; gap: 18px; border-bottom: 1px solid var(--line); }
.player-result__row { color: inherit; text-decoration: none; }
.player-result__row:hover .player-name { text-decoration: underline; text-underline-offset: 3px; }
.player-result__row:last-child { border: 0; }
.player-result__row small { color: var(--muted); }
.player-result__row .player-badge { color: white; }
.player-result__row .player-name { font-size: 17px; line-height: 1.35; }
.player-result__row .player-metrics { width: 116px; gap: 6px; font-size: 14px; }
.player-result__row .player-metrics i { grid-template-columns: 20px minmax(0, 1fr); gap: 7px; }

.player-profile-hero { position: relative; padding: clamp(26px, 6vw, 58px); overflow: hidden; border-radius: 14px; color: white; background: linear-gradient(115deg, #090b0ef5 0%, #090b0edc 58%, #090b0ef2 100%), url("brand/arena-panel.290977727c21.webp") center / cover no-repeat; box-shadow: 0 22px 54px #11182726; }
.player-profile-hero > * { position: relative; z-index: 1; }
.player-profile-hero__top, .player-block-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.player-profile-hero__top { align-items: center; }
.player-block-heading .eyebrow { margin: 0; }
.profile-role-tabs { width: max-content; max-width: calc(100% - 60px); padding: 3px; display: flex; gap: 3px; border: 1px solid #ffffff26; border-radius: 8px; background: #ffffff0b; }
.profile-role-tabs a { min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; color: #aeb7c5; border-radius: 6px; font-size: 12px; font-weight: 900; text-decoration: none; }
.profile-role-tabs a:hover { color: white; background: #ffffff12; }
.profile-role-tabs a[aria-current="page"] { color: var(--ink); background: white; }
.profile-role-tabs a:focus-visible { outline: 3px solid #ffffff4d; outline-offset: 2px; }
.player-profile-hero .share-button { color: white; border-color: #ffffff35; background: #ffffff0d; }
.player-profile-hero h1 { max-width: 900px; margin-top: clamp(30px, 6vw, 66px); color: white; font-size: clamp(48px, 9vw, 104px); overflow-wrap: anywhere; }
.player-profile-identity { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: #cbd4e0; font: 750 14px/1.3 var(--font-data); }
.player-profile-telegram { color: inherit; text-decoration: none; }
.player-profile-telegram:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.player-profile-status { margin-top: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); border-top: 1px solid #ffffff26; }
.player-profile-status > div { min-width: 0; padding: 22px 24px 24px 0; display: grid; gap: 7px; }
.player-profile-status > div + div { padding-left: 24px; border-left: 1px solid #ffffff1f; }
.player-profile-status span { color: #aeb7c5; font: 900 10px/1 var(--font-data); letter-spacing: .11em; text-transform: uppercase; }
.player-profile-status .player-profile-status__label { display: flex; align-items: center; gap: 7px; }
.player-profile-status .stat-info--hero { width: 18px; height: 18px; flex-basis: 18px; color: #cbd4e0; border-color: #ffffff42; font-size: 9px; letter-spacing: 0; text-transform: none; }
.player-profile-status .stat-info--hero > span { right: auto; left: 0; color: white; letter-spacing: 0; }
.player-profile-status strong { font: 900 clamp(27px, 4vw, 48px)/1.02 var(--font-display); letter-spacing: -.035em; }
.player-profile-status small { color: #cbd4e0; font-size: 12px; font-weight: 750; }
.player-level-provisional { width: fit-content; display: inline-flex; align-items: center; gap: 7px; color: #e8c36a !important; }
.player-level-provisional::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #e8c36a20; }
.profile-method-link { width: fit-content; margin-top: 4px; display: inline-flex; gap: 5px; color: #bfc8d4; font-size: 12px; font-weight: 600; text-decoration: none; }
.profile-method-link:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.profile-method-link span { font-weight: 400; }
.player-profile-career { margin: 18px 0 0; color: #d4dbe4; font: 800 14px/1.3 var(--font-data); }
.player-profile-headline { margin-top: clamp(34px, 7vw, 76px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #ffffff26; }
.player-profile-headline > div { min-width: 0; padding: 20px 18px 0 0; display: grid; gap: 5px; }
.player-profile-headline strong { overflow: hidden; font: 900 clamp(27px, 4vw, 46px)/1 var(--font-data); letter-spacing: -.07em; text-overflow: ellipsis; white-space: nowrap; }
.player-profile-headline span { color: #aeb7c5; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.player-profile-section, .player-latest-section { margin-top: 24px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.player-level-history { overflow: hidden; }
.player-level-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.player-level-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); }
.player-level-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.player-level-current { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 4px 12px; text-align: right; }
.player-level-current > span:first-child { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.player-level-current strong { font: 900 30px/1 var(--font-data); }
.player-level-current > b { font: 900 14px/1 var(--font-data); }
.player-level-current .stat-info { grid-column: 3; grid-row: 2; }
.player-level-current .is-positive { color: #187443; }
.player-level-current .is-negative { color: #b52f35; }
.player-level-plot { position: relative; margin: 30px 0 8px; padding: 0 0 28px 54px; }
.player-level-axis { position: absolute; inset: 0 auto 28px 0; width: 44px; color: var(--muted); font: 750 9px/1 var(--font-data); }
.player-level-axis span { position: absolute; right: 0; top: var(--tick-y); translate: 0 -50%; }
.player-level-chart { position: relative; height: 180px; }
.player-level-chart svg { width: 100%; height: 100%; overflow: visible; }
.player-level-chart line { stroke: #e3e6ea; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.player-level-chart polyline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.player-level-chart__point { position: absolute; left: var(--point-x); top: var(--point-y); width: 16px; height: 16px; padding: 0; translate: -50% -50%; border: 3px solid white; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); cursor: pointer; }
.player-level-chart__point span { position: absolute; left: 50%; bottom: 20px; min-width: 48px; padding: 4px 6px; visibility: hidden; translate: -50% 3px; opacity: 0; color: white; border-radius: 4px; background: var(--ink); font: 800 10px/1 var(--font-data); transition: opacity .12s ease, translate .12s ease; }
.player-level-chart__point:hover, .player-level-chart__point:focus-visible { box-shadow: 0 0 0 4px #090b0e1f; outline: 0; }
.player-level-chart__point:hover span, .player-level-chart__point:focus-visible span { visibility: visible; translate: -50% 0; opacity: 1; }
.player-level-chart__point.is-active { width: 18px; height: 18px; background: var(--team-blue); box-shadow: 0 0 0 4px #0344ac22, 0 0 0 1px var(--team-blue); }
.player-level-chart__point.is-active span { visibility: visible; translate: -50% 0; opacity: 1; background: var(--team-blue); }
.player-level-x-axis { position: absolute; left: 54px; right: 0; bottom: 0; display: flex; justify-content: space-between; color: var(--muted); font: 750 9px/1 var(--font-data); }
.player-level-details { margin-top: 18px; border-top: 1px solid var(--line); }
.player-level-details article { padding: 20px 0 0; }
.player-level-details header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player-level-details header div { display: grid; gap: 3px; }
.player-level-details header span { color: var(--muted); font-size: 11px; font-weight: 800; }
.player-level-details header strong { font: 900 30px/1 var(--font-data); }
.player-level-details header > b { font: 900 22px/1 var(--font-data); }
.player-level-details .is-positive { color: #187443; }
.player-level-details .is-negative { color: #b52f35; }
.player-level-result { margin: 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fa; }
.player-level-result div { padding: 12px; display: grid; gap: 4px; }
.player-level-result div + div { border-left: 1px solid var(--line); }
.player-level-result dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.player-level-result dd { margin: 0; font: 900 18px/1 var(--font-data); }
.player-level-matchups { margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player-level-matchups summary, .player-level-table summary { padding: 13px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; }
.player-level-matchups summary::-webkit-details-marker, .player-level-table summary::-webkit-details-marker { display: none; }
.player-level-matchups[open] summary span, .player-level-table[open] summary span { rotate: 45deg; }
.player-level-matchups__scroll, .player-level-table > div { overflow-x: auto; }
.player-level-matchups table, .player-level-table table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.player-level-matchups th, .player-level-matchups td, .player-level-table th, .player-level-table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; }
.player-level-matchups th, .player-level-table th { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.player-level-no-breakdown { margin: 14px 0; color: var(--muted); font-size: 12px; }
.player-level-rush-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 850; text-decoration: none; }
.player-level-rush-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.player-level-table { margin-top: 18px; border-top: 1px solid var(--line); }
.player-level-footer { margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); }
.player-level-footer button, .player-level-footer a { padding: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); border: 0; background: transparent; font-size: 12px; font-weight: 850; text-decoration: none; cursor: pointer; }
.player-level-footer button:hover, .player-level-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.player-level-footer button:focus-visible, .player-level-footer a:focus-visible { outline: 3px solid #0344ac29; outline-offset: 4px; }
.player-block-heading { align-items: center; margin-bottom: 18px; }
.player-block-heading h2 { margin: 3px 0 0; }
.player-block-heading__actions { display: flex; align-items: center; gap: 8px; }
.player-story-open { min-height: 38px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 12px; font-weight: 850; cursor: pointer; }
.player-story-open:hover { background: #f2f5f7; }
.player-story-open:focus-visible { outline: 3px solid #1665d833; outline-offset: 2px; }
.player-story-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-info { position: relative; z-index: 3; width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; cursor: help; color: var(--muted); border: 1px solid #cbd2db; border-radius: 50%; font: 800 12px/1 var(--font-data); outline: 0; }
.stat-info > span { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 48px)); padding: 10px 12px; visibility: hidden; opacity: 0; color: white; border-radius: 7px; background: var(--ink); box-shadow: 0 10px 30px #1118272e; font: 650 12px/1.45 var(--font-ui); text-transform: none; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease; }
.stat-info:hover > span, .stat-info:focus > span { visibility: visible; opacity: 1; transform: none; }
.player-latest { min-width: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(420px, 1fr); color: white; border-radius: 10px; background: var(--ink); text-decoration: none; }
.player-latest:hover { background: #15191f; }
.player-latest__match { min-width: 0; padding: clamp(22px, 4vw, 34px); border-right: 1px solid #ffffff1c; }
.player-latest__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #aeb7c5; font: 800 11px/1.2 var(--font-data); text-transform: uppercase; }
.player-latest__meta strong { color: white; }
.player-latest__score { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.player-latest__score span { min-width: 0; overflow: hidden; font: 900 clamp(18px, 3vw, 30px)/1.05 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.player-latest__score span:last-child { text-align: right; }
.player-latest__score b { font: 900 clamp(27px, 4vw, 44px)/1 var(--font-data); letter-spacing: -.08em; }
.player-latest__metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.player-latest__metrics > div { min-width: 0; padding: 22px 10px; display: grid; place-content: center; gap: 7px; text-align: center; border-left: 1px solid #ffffff14; }
.player-latest__metrics b { overflow: hidden; font: 900 clamp(20px, 2.3vw, 32px)/1 var(--font-data); letter-spacing: -.06em; text-overflow: ellipsis; white-space: nowrap; }
.player-latest__metrics span, .player-stat-kpis span { color: #aeb7c5; font: 850 9px/1 var(--font-data); letter-spacing: .09em; }
.player-latest-context { margin: 12px 2px 0; color: var(--muted); font-size: 13px; }
.player-story-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; color: white; border: 0; background: #090b0ef7; }
.player-story-dialog::backdrop { background: #090b0ef2; }

.rush-recap { margin-top: 2rem; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.rush-recap header { max-width: 780px; }
.rush-recap h2 { margin: .35rem 0 .8rem; font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: .95; }
.rush-recap__lead { font-size: 1.08rem; line-height: 1.6; }
.rush-recap__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3rem); margin-top: 1.6rem; }
.rush-recap__body h3 { margin: 0 0 .75rem; }
.rush-recap__body p { margin: .55rem 0; line-height: 1.55; }
.rush-recap footer { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.rush-recap footer p { margin: .35rem 0 .65rem; }
.rush-recap footer a { color: inherit; font-weight: 700; text-underline-offset: .2em; }
@media (max-width: 700px) { .rush-recap__body { grid-template-columns: 1fr; } }
.player-public-summary { margin-top: 24px; }
.player-public-summary h2 { font-size: clamp(28px, 4.5vw, 42px); }
.player-public-summary p { max-width: 840px; line-height: 1.6; }
.player-public-summary__lead { font-size: 17px; }
.guide-toc { margin: 22px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.guide-toc strong { font-size: 14px; }
.guide-toc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.guide-toc a, .guide-related a, .guide-card-link { color: inherit; text-underline-offset: .18em; }
.guide-faq details { padding: 14px 0; border-top: 1px solid var(--line); }
.guide-faq summary { cursor: pointer; font-weight: 800; }
.guide-faq details p { margin-bottom: 0; }
.guide-related { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.guide-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-index-grid .result-section { margin: 0; display: flex; flex-direction: column; }
.guide-index-grid h2 { font-size: clamp(24px, 3.5vw, 34px); }
.guide-index-grid .guide-card-link { margin-top: auto; padding-top: 12px; font-weight: 800; }
.home-guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-guide-link { min-width: 0; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-decoration: none; }
.home-guide-link:hover { border-color: #929ba8; }
.home-guide-link strong { font-size: 16px; line-height: 1.2; }
.home-guide-link p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-guide-link b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 20px; }
@media (max-width: 700px) { .guide-index-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .home-guides-grid { grid-template-columns: 1fr; } }
.player-story-dialog__shell { width: min(1180px, 100%); height: 100%; margin: 0 auto; padding: 18px clamp(16px, 3vw, 34px) 20px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; }
.player-story-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.player-story-dialog__header .eyebrow { color: #8f99a8; }
.player-story-dialog__header h2 { margin: 3px 0 0; color: white; font-size: clamp(25px, 3vw, 34px); }
.player-story-close { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: white; border: 1px solid #ffffff30; border-radius: 50%; background: #ffffff0d; font-size: 31px; line-height: 1; cursor: pointer; }
.player-story-close:hover { background: #ffffff1a; }
.player-story-close:focus-visible, .player-story-nav:focus-visible, .player-story-dots button:focus-visible { outline: 3px solid #ffffff4f; outline-offset: 2px; }
.player-story-stage { min-height: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: clamp(8px, 2vw, 24px); }
.player-story-track { min-width: 0; height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.player-story-track::-webkit-scrollbar { display: none; }
.player-story-slide { min-width: 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.player-story-media { position: relative; height: min(100%, 760px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: #15191f; box-shadow: 0 22px 70px #00000075; }
.player-story-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.player-story-loading, .player-story-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #aeb7c5; font: 800 12px/1.4 var(--font-data); text-align: center; }
.player-story-nav { width: 48px; height: 48px; display: grid; place-items: center; color: white; border: 1px solid #ffffff30; border-radius: 50%; background: #ffffff0d; font-size: 22px; cursor: pointer; }
.player-story-nav:hover { background: #ffffff1a; }
.player-story-nav:disabled { visibility: hidden; }
.player-story-dots { display: flex; justify-content: center; gap: 7px; }
.player-story-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: #ffffff35; cursor: pointer; }
.player-story-dots button[aria-current="true"] { background: white; }
.player-story-actions { display: flex; justify-content: center; gap: 8px; }
.player-story-actions .primary-button, .player-story-actions .secondary-button { min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.player-story-actions .primary-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.player-story-actions .secondary-button { color: white; border-color: #ffffff38; background: #ffffff0d; }
.player-story-actions button:disabled { opacity: .45; cursor: wait; }
body.story-open { overflow: hidden; }
.player-goal-section { position: relative; margin-top: 24px; padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; overflow: hidden; color: white; border-radius: var(--radius); background: linear-gradient(100deg, #090b0ef7 0%, #090b0eea 58%, #090b0ed1 100%), url("brand/arena-panel.290977727c21.webp") center 72% / cover no-repeat; box-shadow: 0 18px 42px #11182721; }
.player-goal-section > * { position: relative; z-index: 1; }
.player-goal-section h2 { margin: 5px 0 7px; color: white; font-size: clamp(26px, 4vw, 40px); }
.player-goal-section p:not(.eyebrow) { margin: 0; color: #c9d8ec; }
.player-goal-section .primary-button { flex: 0 0 auto; color: var(--ink); background: white; }
.player-goal-progress { width: min(360px, 100%); height: 5px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #ffffff24; }
.player-goal-progress span { height: 100%; display: block; border-radius: inherit; background: white; }
.player-progress-intro { margin: 0 0 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.player-progress-intro strong { font-size: 18px; }
.player-progress-intro span { color: var(--muted); font-size: 13px; }
.player-progress-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.player-progress-grid > div { min-width: 0; min-height: 142px; padding: 20px; display: grid; align-content: start; gap: 9px; border-right: 1px solid var(--line); }
.player-progress-grid > div:last-child { border-right: 0; }
.player-progress-grid span { color: var(--muted); font-size: 11px; font-weight: 800; }
.player-progress-grid strong { overflow-wrap: anywhere; font: 900 clamp(22px, 2.4vw, 30px)/1.05 var(--font-data); }
.player-progress-grid small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.player-progress-grid em { margin-top: auto; padding-top: 8px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; font-style: normal; font-weight: 800; }
.player-progress-grid .is-positive strong { color: #187443; }
.player-progress-grid .is-negative strong { color: #b52f35; }
.player-best-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.player-best-grid > a, .player-best-grid > div { min-width: 0; min-height: 132px; padding: 20px; display: grid; align-content: start; gap: 10px; color: inherit; border-right: 1px solid var(--line); text-decoration: none; }
.player-best-grid > :last-child { border-right: 0; }
.player-best-grid span { color: var(--muted); font-size: 11px; font-weight: 800; }
.player-best-grid strong { font: 900 clamp(24px, 3vw, 34px)/1 var(--font-data); }
.player-best-grid small { margin-top: auto; color: var(--muted); font-size: 11px; line-height: 1.35; }
.player-best-grid > a:hover small { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.player-nearby-players ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.player-nearby-players li a { min-height: 64px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: inherit; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fa; text-decoration: none; }
.player-nearby-players li span { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.player-nearby-players li strong { flex: 0 0 auto; font: 900 18px/1 var(--font-data); }
.player-stat-tabs { width: fit-content; margin: 0 auto 18px; padding: 3px; display: flex; border-radius: 8px; background: #e9edf2; }
.player-stat-tabs button { min-width: 96px; padding: 9px 14px; color: #5e6774; border: 0; border-radius: 6px; background: transparent; font: 850 12px/1 var(--font-ui); cursor: pointer; }
.player-stat-tabs button[aria-selected="true"] { color: white; background: var(--ink); }
.player-stat-tabs button:focus-visible { outline: 3px solid #1665d833; outline-offset: 2px; }
.player-stat-view { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.player-stat-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); color: white; background: var(--ink); }
.player-stat-kpis > div { min-width: 0; padding: clamp(20px, 3vw, 30px) 12px; display: grid; gap: 8px; text-align: center; border-right: 1px solid #ffffff1c; }
.player-stat-kpis > div:last-child { border-right: 0; }
.player-stat-kpis b { overflow: hidden; font: 900 clamp(25px, 4vw, 42px)/1 var(--font-data); letter-spacing: -.07em; text-overflow: ellipsis; white-space: nowrap; }
.player-stat-secondary { margin: 0; padding: 6px clamp(14px, 3vw, 24px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.player-stat-secondary > div { min-width: 0; padding: 15px 10px; display: grid; gap: 5px; border-right: 1px solid var(--line); }
.player-stat-secondary > div:last-child { border-right: 0; }
.player-stat-secondary dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.player-stat-secondary dd { margin: 0; font: 900 18px/1 var(--font-data); }
.player-pairs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.player-pairs-grid article { min-width: 0; padding: 20px; border-radius: 9px; background: #f3f6f9; }
.player-pairs-grid h3 { margin: 0 0 14px; font: 900 25px/1 var(--font-display); }
.player-pair-head, .player-pairs-grid li { min-width: 0; display: grid; grid-template-columns: minmax(140px, 1fr) 52px 76px 46px; align-items: baseline; gap: 10px; }
.player-pair-head { padding: 0 0 8px; color: var(--muted); font: 800 9px/1 var(--font-data); }
.player-pairs-grid ul { margin: 0; padding: 0; display: grid; list-style: none; }
.player-pairs-grid li { padding: 12px 0; border-top: 1px solid var(--line); }
.player-pairs-grid li a { min-width: 0; overflow: hidden; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.player-pairs-grid li b { font: 800 11px/1.2 var(--font-data); white-space: nowrap; }
.player-pairs-grid article > p { margin: 0; color: var(--muted); font-size: 13px; }
.player-upcoming-list { display: grid; gap: 8px; }
.player-upcoming-list > a { padding: 15px 16px; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; color: inherit; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.player-upcoming-list > a:hover { border-color: #aab3bf; background: #f7f9fb; }
.player-upcoming-list span { color: var(--muted); font: 800 11px/1.2 var(--font-data); }
.player-upcoming-list span .live-dot { display: inline-block; }
.player-upcoming-list strong { min-width: 0; display: flex; align-items: baseline; gap: 7px; overflow: hidden; font-size: 16px; }
.player-upcoming-list strong i { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.player-upcoming-list strong small { color: var(--muted); }
.player-upcoming-list em { color: var(--muted); font-size: 12px; font-style: normal; }
.player-history { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.player-history > a { padding: 17px 18px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 20px; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.player-history > a:last-child { border-bottom: 0; }
.player-history > a:hover { background: #f7f9fb; }
.player-history__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.player-history__meta time { width: 100%; color: var(--muted); font: 750 11px/1.2 var(--font-data); }
.player-history__meta span, .player-history__meta small { font-size: 11px; font-weight: 850; }
.player-history__meta small { padding: 2px 5px; border-radius: 4px; color: var(--muted); background: #e7ebf0; }
.player-history__match { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.player-history__match strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-history__match b { flex: 0 0 auto; font: 900 17px/1 var(--font-data); }
.player-history__stats { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 10px; }
.player-history__stats b { color: var(--ink); font-family: var(--font-data); }
.player-profile-empty { min-height: 250px; }
.player-legend { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.player-legend summary { padding: 20px clamp(20px, 4vw, 30px); display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font: 900 clamp(20px, 3vw, 28px)/1 var(--font-display); list-style: none; }
.player-legend summary::-webkit-details-marker { display: none; }
.player-legend summary span { font: 400 28px/1 var(--font-ui); transition: transform .15s ease; }
.player-legend[open] summary span { transform: rotate(45deg); }
.player-legend dl { margin: 0; padding: 0 clamp(20px, 4vw, 30px) 24px; }
.player-legend dl > div { padding: 12px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; border-top: 1px solid var(--line); }
.player-legend dt { font: 900 12px/1.4 var(--font-data); }
.player-legend dd { margin: 0; color: #505967; font-size: 13px; line-height: 1.5; }
.stats-tabs { width: max-content; max-width: 100%; margin: 14px auto 0; padding: 4px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.stats-tabs a { min-height: 42px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 6px; font-size: 13px; font-weight: 900; text-decoration: none; }
.stats-tabs a[aria-current="page"] { color: white; background: var(--ink); }
.captain-profile-empty { min-height: 360px; margin-top: 24px; padding: clamp(30px, 7vw, 68px); display: grid; align-content: center; border-radius: var(--radius); color: white; background: linear-gradient(110deg, #090b0ef5, #090b0edb), url("brand/arena-panel.290977727c21.webp") center / cover; }
.captain-profile-empty h2 { max-width: 700px; margin-bottom: 12px; font: 900 clamp(38px, 7vw, 72px)/.95 var(--font-display); }
.captain-profile-empty > p:not(.eyebrow) { max-width: 650px; margin: 0 0 26px; color: #cbd0d7; font-size: 17px; line-height: 1.55; }
.captain-profile-empty > div { display: flex; align-items: center; gap: 24px; }
.captain-profile-empty .primary-button, .captain-profile-cta .primary-button, .captain-final-cta .primary-button { color: var(--ink); background: white; }
.captain-profile-empty .text-link { color: white; }
.captain-profile-cta { margin-top: 24px; padding: clamp(24px, 5vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; border-radius: var(--radius); background: var(--ink); }
.captain-profile-cta h2 { margin: 0 0 6px; }
.captain-profile-cta p { margin: 0; color: #cbd0d7; }
.captain-profile-cta__actions { display: flex; align-items: center; gap: 22px; }
.captain-profile-cta__actions .text-link { color: white; white-space: nowrap; }
.player-profile-status--captain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.player-profile-status--captain small b { color: white; font-family: var(--font-data); }
.captain-latest__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.captain-latest__metrics > div { border-bottom: 1px solid #ffffff14; }
.captain-latest__metrics > div:nth-last-child(-n+3) { border-bottom: 0; }
.captain-latest__metrics span { line-height: 1.25; text-transform: uppercase; }
.captain-playing-note, .captain-management-note { margin: 12px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.captain-playing-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.captain-form-summary { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; color: white; border-radius: 10px 10px 0 0; background: var(--ink); }
.captain-form-summary > div { display: grid; align-content: start; gap: 7px; }
.captain-form-summary > div + div { padding-left: 20px; border-left: 1px solid #ffffff1f; }
.captain-form-summary span { color: #aeb7c5; font: 850 9px/1 var(--font-data); letter-spacing: .09em; text-transform: uppercase; }
.captain-form-summary strong { font: 900 clamp(25px, 4vw, 40px)/1 var(--font-display); }
.captain-form-summary small { color: #cbd4e0; font-size: 11px; }
.captain-form-list { overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.captain-form-list a { padding: 14px 18px; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 16px; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.captain-form-list a:last-child { border-bottom: 0; }
.captain-form-list a:hover { background: #f7f9fb; }
.captain-form-list time, .captain-form-list span { color: var(--muted); font: 750 11px/1.25 var(--font-data); }
.captain-form-list span { text-align: right; }
.captain-management-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.captain-management-grid > div { min-width: 0; min-height: 110px; padding: 20px; display: grid; align-content: space-between; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.captain-management-grid > div:nth-child(3n) { border-right: 0; }
.captain-management-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.captain-management-grid span { color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; }
.captain-management-grid strong { font: 900 clamp(24px, 3vw, 34px)/1 var(--font-data); }
.captain-rivalries { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.captain-rivalry-head, .captain-rivalries li { display: grid; grid-template-columns: minmax(140px, 1fr) 62px 62px 82px 94px 124px 24px; align-items: center; gap: 10px; }
.captain-rivalry-head { padding: 11px 16px; color: var(--muted); background: #f3f6f9; font: 800 9px/1.2 var(--font-data); letter-spacing: .04em; text-transform: uppercase; }
.captain-rivalries ul { margin: 0; padding: 0; list-style: none; }
.captain-rivalries li { min-width: 0; padding: 15px 16px; border-top: 1px solid var(--line); }
.captain-rivalries li:first-child { border-top: 0; }
.captain-rivalries li:hover { background: #f7f9fb; }
.captain-rivalry-person { min-width: 0; display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.captain-rivalry-person strong { font-size: 14px; line-height: 1.25; }
.captain-rivalry-person small { display: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.captain-rivalries li > b { min-width: 0; font: 850 12px/1.25 var(--font-data); }
.captain-rivalry-meetings small, .captain-rivalry-score small, .captain-rivalry-impact small { display: none; }
.captain-rivalry-open { color: var(--ink); font-size: 18px; font-weight: 900; text-align: right; text-decoration: none; }
.stats-sample-note { display: block; margin-top: 4px; color: var(--muted); font: 700 9px/1.25 var(--font-ui); white-space: normal; }
.stats-hero, .captain-hero { position: relative; padding: clamp(30px, 7vw, 68px); overflow: hidden; border-radius: 14px; color: white; background: linear-gradient(115deg, #090b0ef6, #090b0edb), url("brand/arena-panel.290977727c21.webp") center / cover; }
.stats-hero h1, .captain-hero h1 { max-width: 900px; color: white; }
.stats-hero > p:last-child, .captain-hero > p { max-width: 720px; margin: 18px 0 0; color: #cbd0d7; font-size: clamp(16px, 2.5vw, 20px); line-height: 1.5; }
.stats-panel { margin-top: 14px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.stats-panel.is-loading { opacity: .56; pointer-events: none; }
.stats-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.stats-toolbar form { display: flex; gap: 8px; }
.stats-toolbar input { width: min(320px, 48vw); }
.stats-mode-tabs { padding: 3px; display: flex; border-radius: 8px; background: #e9edf2; }
.stats-mode-tabs a { padding: 10px 14px; color: var(--muted); border-radius: 6px; font-size: 12px; font-weight: 850; text-decoration: none; }
.stats-mode-tabs a[aria-current="page"] { color: white; background: var(--ink); }
.text-link { color: inherit; font-weight: 850; text-underline-offset: 4px; }
.stats-table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 9px; -webkit-overflow-scrolling: touch; }
.stats-table { min-width: 780px; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.stats-table th, .stats-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { min-width: 190px; position: sticky; left: 0; z-index: 1; text-align: left; background: white; box-shadow: 10px 0 14px -16px #111827; }
.stats-table th { position: sticky; top: 0; z-index: 2; background: #f3f6f9; font: 800 10px/1 var(--font-data); letter-spacing: .06em; }
.stats-table th:first-child { z-index: 3; background: #f3f6f9; }
.stats-table th a { color: var(--muted); text-decoration: none; }
.stats-table th a[aria-current="true"] { color: var(--ink); }
.stats-table tbody tr:last-child td { border-bottom: 0; }
.stats-table tbody tr:hover { background: #f8fafc; }
.stats-table tbody tr:hover td:first-child { background: #f8fafc; }
.stats-person { display: grid; gap: 3px; text-decoration: none; }
.stats-person strong { font-size: 14px; }
.stats-person small { color: var(--muted); font-size: 10px; }
.stats-form { display: grid; gap: 3px; }
.stats-form strong { font-family: var(--font-data); }
.stats-form small { color: var(--muted); font: 750 10px/1 var(--font-data); }
.stats-level { display: grid; gap: 4px; }
.stats-level > strong { font-family: var(--font-data); }
.stats-level small { display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #9a7117; font-size: 9px; font-weight: 750; }
.stats-level small i { width: 5px; height: 5px; border-radius: 50%; background: #d7a72c; box-shadow: 0 0 0 2px #d7a72c1f; }
.stats-rush-name { text-decoration: none; }
.stats-empty { min-height: 280px; }
.stats-legend { margin-top: 14px; }
.captain-hero .eyebrow, .stats-hero .eyebrow { color: #aeb7c5; }
.captain-hero__actions { margin-top: 30px; display: flex; align-items: center; gap: 26px; }
.captain-hero__actions .primary-button { color: var(--ink); background: white; }
.captain-hero__actions .text-link { color: white; }
.captain-role-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.captain-role-grid article { min-height: 220px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.captain-role-grid article > span { color: var(--muted); font: 900 12px/1 var(--font-data); }
.captain-role-grid h2 { margin: 40px 0 10px; font: 900 clamp(28px, 4vw, 40px)/1 var(--font-display); }
.captain-role-grid p, .captain-standard li { color: #505967; line-height: 1.55; }
.captain-standard { margin-top: 18px; padding: clamp(26px, 5vw, 46px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; border-radius: var(--radius); background: white; }
.captain-standard h2 { font: 900 clamp(34px, 5vw, 56px)/.95 var(--font-display); }
.captain-standard ul { margin: 0; padding: 0; list-style: none; }
.captain-standard li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; }
.captain-standard li::before { content: "•"; position: absolute; left: 4px; color: var(--team-red); }
.captain-standard__note { grid-column: 2; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.captain-final-cta { margin-top: 18px; padding: clamp(30px, 6vw, 58px); color: white; border-radius: var(--radius); background: var(--ink); text-align: center; }
.captain-final-cta .eyebrow { color: #aeb7c5; }
.captain-final-cta h2 { margin-bottom: 10px; font: 900 clamp(36px, 6vw, 62px)/.95 var(--font-display); }
.captain-final-cta > p:not(.eyebrow) { max-width: 650px; margin: 0 auto 26px; color: #cbd0d7; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-footer { padding: clamp(38px, 7vw, 72px) 16px; color: white; background: var(--ink); }
.site-footer__inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .7fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.site-footer .wordmark { width: 176px; }
.site-footer__brand p { margin: 22px 0 0; color: #8f99a8; font: 900 11px/1 var(--font-data); letter-spacing: .18em; }
.site-footer nav, .site-footer__social { display: grid; align-content: start; justify-items: start; gap: 12px; }
.site-footer nav a, .site-footer__social a { color: #d6dbe2; font-size: 14px; font-weight: 750; text-decoration: none; }
.site-footer nav a:hover, .site-footer__social a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.site-footer nav > span, .site-footer__social > span { margin-bottom: 4px; color: #8f99a8; font: 900 10px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; }
.site-footer__social-icons { display: flex; align-items: center; gap: 8px; }
.site-footer__social-icons a { width: 42px; height: 42px; display: grid; place-items: center; color: #aeb7c5; border: 1px solid #ffffff24; border-radius: 50%; }
.site-footer__social-icons a:hover { color: white; border-color: #ffffff52; background: #ffffff0a; text-decoration: none; }
.site-footer__social-icons svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer__social-icons a:last-child svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

.error-shell { min-height: 68vh; padding-top: 28px; display: grid; place-items: center; }
.error-card { width: min(760px, 100%); padding: clamp(32px, 8vw, 72px); position: relative; overflow: hidden; border-radius: var(--radius); color: white; background: linear-gradient(115deg, #090b0ef7, #090b0edc), url("brand/arena-panel.290977727c21.webp") center / cover; }
.error-card > span { position: absolute; right: clamp(20px, 5vw, 44px); top: clamp(20px, 5vw, 38px); color: #ffffff2b; font: 900 clamp(72px, 16vw, 150px)/.8 var(--font-data); letter-spacing: -.12em; }
.error-card .eyebrow { position: relative; color: #aeb7c5; }
.error-card h1 { position: relative; max-width: 560px; margin-top: clamp(56px, 9vw, 90px); color: white; }
.error-card > p:not(.eyebrow) { position: relative; max-width: 520px; margin: 18px 0 28px; color: #cbd0d7; font-size: 17px; line-height: 1.5; }
.error-card > div { position: relative; display: flex; align-items: center; gap: 24px; }
.error-card .primary-button { color: var(--ink); background: white; }
.error-card .text-link { color: white; }

@media (max-width: 720px) {
  .app-header { gap: 12px; }
  .page-shell { width: min(100% - 24px, 640px); padding-top: var(--page-top); }
  .page-shell.login-shell { width: 100%; padding: 0; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .primary-button, .page-heading .secondary-button { width: 100%; }
  .page-actions { display: grid; grid-template-columns: 1fr; }
  .rush-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rush-row__link { padding: 14px 8px 14px 14px; grid-template-columns: 1fr 20px; gap: 8px 10px; }
  .rush-state, .rush-pair, .rush-meta { grid-column: 1; grid-row: auto; text-align: left; }
  .rush-pair { grid-column: 1; flex-wrap: wrap; }
  .row-score { width: 100%; margin-left: 0; }
  .row-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .rush-row__operator-actions { padding-right: 8px; flex-direction: column; }
  .delete-rush-button { width: 42px; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
  .delete-rush-button::after { content: "×"; color: #982337; font-size: 20px; }
  .rush-details-grid, .team-setup-grid, .roster-summary { grid-template-columns: 1fr; }
  .global-section-heading, .global-cities .global-section-heading { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .global-format__steps { grid-template-columns: 1fr; }
  .global-format__steps li { min-height: 0; }
  .global-format__steps li + li { border-top: 1px solid var(--line); border-left: 0; }
  .global-format__steps strong { margin-top: 12px; }
  .global-format__links { grid-template-columns: 1fr; }
  .global-city-card { grid-template-columns: 1fr; }
  .global-city-card b { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .rush-details-grid { padding: 16px; }
  .recruitment-pool { padding: 16px; }
  .recruitment-pool .participant-list { grid-template-columns: 1fr; }
  .schedule-card--recruitment { grid-template-columns: 1fr; }
  .rush-countdown { min-width: 0; }
  .recruitment-state { grid-column: auto; }
  .scheduled-heading-actions { display: flex; justify-content: flex-start; }
  .scheduled-heading-actions .share-button, .scheduled-heading-actions .secondary-button { width: auto; }
  .scheduled-pool ul, .prestart-lineups { grid-template-columns: 1fr; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions .quiet-button { order: 3; }
  .form-actions--fixed { grid-template-columns: auto minmax(0, 1fr); }
  .form-actions--fixed .quiet-button { order: initial; }
  .body--operator .app-header { min-height: 46px; padding: 4px 10px; }
  .body--operator .wordmark { width: 128px; }
  .operator-shell { width: min(100% - 10px, 640px); padding-top: 6px; }
  .rush-primary-screen { min-height: calc(100svh - 52px); }
  .timer-strip { margin-bottom: 8px; }
  .timer-block { padding: 7px 4px; }
  .timer-block strong { font-size: clamp(23px, 8vw, 38px); }
  .timer-block span { font-size: 9px; letter-spacing: .06em; }
  .timer-block--rush { padding-block: 5px 6px; }
  .timer-block--rush strong { font-size: 21px; }
  .scoreboard { grid-template-columns: 1fr; gap: 6px; }
  .team-control { padding: 9px 8px; border-top-width: 5px; border-radius: 11px; }
  .team-control__heading { gap: 3px 6px; }
  .team-control__heading h2 { min-height: 42px; display: -webkit-box; overflow: hidden; font-size: 20px; line-height: 1.05; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .team-total strong { font-size: 34px; }
  .team-total span, .heat-score span { font-size: 8px; letter-spacing: .05em; }
  .heat-score { padding-block: 3px 5px; }
  .heat-score strong { font-size: 22px; }
  .score-buttons { gap: 5px; }
  .score-buttons button { min-height: 74px; border-radius: 9px; font-size: 38px; }
  .timeout-button { min-height: 44px; margin-top: 6px; padding: 6px 2px; font-size: 12px; }
  .rush-primary-actions { margin-top: 6px; }
  .rush-primary-actions button { min-height: 46px; }
  .rush-status-panel { align-items: stretch; flex-direction: column; }
  .break-state { width: 100%; grid-template-columns: auto minmax(0, 1fr); }
  .official-actions { padding: 16px; }
  .official-actions__buttons { grid-template-columns: 1fr; }
  .undo-button { white-space: normal; }
  .player-results { grid-template-columns: 1fr; }
  .home-rush-card--next { padding: 16px; grid-template-columns: 1fr; gap: 12px; }
  .home-rush-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .home-rush-card__actions .secondary-button, .home-rush-card__actions .telegram-button { min-width: 0; padding-inline: 10px; }
  .analytics-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-result { padding: 14px; }
  .player-result__row { min-height: 76px; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; }
  .player-result__row .player-name { font-size: 16px; }
  .player-result__row .player-metrics { width: 104px; font-size: 13px; }
  .player-profile-hero { padding: 22px 18px 24px; border-radius: 10px; }
  .player-profile-hero__top { align-items: flex-start; }
  .player-profile-hero .share-button span { display: none; }
  .player-profile-hero .share-button { width: 44px; padding-inline: 0; }
  .player-profile-hero h1 { margin-top: 42px; font-size: clamp(46px, 15vw, 68px); }
  .player-profile-headline { margin-top: 38px; grid-template-columns: 1fr 1fr; }
  .player-profile-headline > div:first-child { grid-column: 1 / -1; }
  .player-profile-headline > div { padding-top: 15px; padding-bottom: 8px; border-bottom: 1px solid #ffffff18; }
  .player-profile-headline strong { font-size: clamp(25px, 9vw, 36px); }
  .player-profile-status { grid-template-columns: 1fr; }
  .player-profile-status > div { padding: 18px 0; }
  .player-profile-status > div + div { padding-left: 0; border-top: 1px solid #ffffff1f; border-left: 0; }
  .player-profile-status strong { font-size: clamp(27px, 8vw, 38px); }
  .player-profile-section, .player-latest-section { padding: 18px; }
  .player-level-heading { gap: 14px; }
  .player-level-heading h2 { font-size: 28px; }
  .player-level-heading p { max-width: 170px; line-height: 1.35; }
  .player-level-current { gap: 3px 8px; }
  .player-level-current strong { font-size: 25px; }
  .player-level-current > b { font-size: 12px; }
  .player-level-current .stat-info { width: 22px; height: 22px; flex-basis: 22px; }
  .player-level-plot { margin-top: 24px; padding-left: 42px; }
  .player-level-axis { width: 34px; }
  .player-level-x-axis { left: 42px; }
  .player-level-chart { height: 155px; }
  .player-level-chart__point span { bottom: 18px; font-size: 10px; }
  .player-level-chart__point:not(.is-active) span { display: none; }
  .player-level-details article { padding: 16px 0 0; }
  .player-level-result { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-level-result div { padding: 10px 8px; }
  .player-level-result dd { font-size: 16px; }
  .player-level-footer { align-items: flex-start; }
  .player-goal-section { grid-template-columns: 1fr; align-items: stretch; background-position: 58% 72%; }
  .player-goal-section .primary-button { width: 100%; }
  .player-progress-intro { align-items: flex-start; flex-direction: column; gap: 5px; }
  .player-progress-grid { grid-template-columns: 1fr 1fr; }
  .player-progress-grid > div { padding-inline: 14px; border-bottom: 1px solid var(--line); }
  .player-progress-grid strong { overflow-wrap: normal; font-size: 20px; word-break: normal; }
  .player-progress-grid > div:nth-child(2n) { border-right: 0; }
  .player-progress-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .player-best-grid { grid-template-columns: 1fr 1fr; }
  .player-best-grid > a, .player-best-grid > div { min-height: 120px; border-bottom: 1px solid var(--line); }
  .player-best-grid > :nth-child(2n) { border-right: 0; }
  .player-best-grid > :nth-last-child(-n+2) { border-bottom: 0; }
  .player-nearby-players ul { grid-template-columns: 1fr; }
  .player-block-heading { align-items: flex-start; }
  .player-latest { grid-template-columns: 1fr; }
  .player-latest__match { padding: 20px 16px; border-right: 0; border-bottom: 1px solid #ffffff1c; }
  .player-latest__score { margin-top: 24px; gap: 8px; }
  .player-latest__score span { font-size: clamp(13px, 3.7vw, 16px); text-overflow: ellipsis; white-space: nowrap; }
  .player-latest__score b { font-size: clamp(24px, 8vw, 34px); }
  .player-latest__metrics, .player-stat-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .player-latest__metrics > div, .player-stat-kpis > div { grid-column: span 2; border-bottom: 1px solid #ffffff14; }
  .player-latest__metrics > div:nth-last-child(-n+2), .player-stat-kpis > div:nth-last-child(-n+2) { grid-column: span 3; border-bottom: 0; }
  .player-latest__metrics > div { padding: 17px 8px; }
  .player-stat-tabs { width: 100%; }
  .player-stat-tabs button { min-width: 0; flex: 1; padding-inline: 7px; }
  .player-stat-kpis > div { padding: 20px 8px; border-right: 1px solid #ffffff14; }
  .player-stat-secondary { grid-template-columns: 1fr 1fr; }
  .player-stat-secondary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .player-stat-secondary > div:nth-last-child(-n+2) { border-bottom: 0; }
  .player-stat-secondary__wide { grid-column: 1 / -1; }
  .player-pairs-grid { grid-template-columns: 1fr; }
  .player-pairs-grid article { padding: 16px 14px; }
  .player-pair-head, .player-pairs-grid li { grid-template-columns: minmax(110px, 1fr) 42px 66px 42px; gap: 7px; }
  .player-pairs-grid li { align-items: start; }
  .player-pairs-grid li a { overflow: visible; line-height: 1.2; text-overflow: clip; white-space: normal; }
  .player-upcoming-list > a { grid-template-columns: 1fr; gap: 6px; }
  .player-upcoming-list strong { flex-wrap: wrap; }
  .player-history > a { padding: 15px; grid-template-columns: 1fr; gap: 11px; }
  .player-history__meta time { width: auto; }
  .player-history__match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .player-history__match strong:last-child { text-align: right; }
  .player-history__stats { justify-content: flex-start; }
  .player-legend dl > div { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .profile-role-tabs a { padding-inline: 13px; }
  .stats-tabs { width: 100%; }
  .stats-tabs a { flex: 1; padding-inline: 8px; }
  .captain-profile-empty { min-height: 330px; padding: 28px 20px; }
  .captain-profile-empty > div, .captain-profile-cta, .captain-hero__actions { align-items: stretch; flex-direction: column; }
  .captain-profile-cta .primary-button { width: 100%; }
  .captain-profile-cta__actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .player-profile-status--captain { grid-template-columns: 1fr; }
  .captain-latest__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .captain-latest__metrics > div, .captain-latest__metrics > div:nth-last-child(-n+2) { grid-column: auto; }
  .captain-latest__metrics > div:nth-last-child(-n+3) { border-bottom: 0; }
  .captain-form-list a { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .captain-form-list time { grid-column: 1 / -1; }
  .captain-management-grid { grid-template-columns: 1fr 1fr; }
  .captain-management-grid > div, .captain-management-grid > div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .captain-management-grid > div:nth-child(2n) { border-right: 0; }
  .captain-management-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .captain-rivalry-head { display: none; }
  .captain-rivalries li { padding: 16px 14px; grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "person meetings open" "score impact impact"; gap: 11px 10px; }
  .captain-rivalry-person { grid-area: person; }
  .captain-rivalry-person strong { font-size: 16px; }
  .captain-rivalry-person small { display: block; }
  .captain-rivalry-meetings { grid-area: meetings; white-space: nowrap; }
  .captain-rivalry-meetings > span { display: none; }
  .captain-rivalry-meetings small { display: block; color: var(--muted); font: 750 11px/1.2 var(--font-ui); }
  .captain-rivalry-wins, .captain-rivalry-losses { display: none; }
  .captain-rivalry-score { grid-area: score; }
  .captain-rivalry-impact { grid-area: impact; justify-self: end; text-align: right; }
  .captain-rivalry-score small, .captain-rivalry-impact small { display: inline; margin-right: 5px; color: var(--muted); font: 700 10px/1.2 var(--font-ui); }
  .captain-rivalry-open { grid-area: open; }
  .captain-standard__note { grid-column: 1; }
  .stats-hero, .captain-hero { padding: 34px 22px; border-radius: 10px; }
  .stats-toolbar { align-items: stretch; flex-direction: column; }
  .stats-toolbar form { width: 100%; }
  .stats-toolbar input { min-width: 0; width: auto; flex: 1; }
  .stats-mode-tabs { width: 100%; }
  .stats-mode-tabs a { flex: 1; text-align: center; }
  .stats-panel { padding-inline: 12px; }
  .stats-table { min-width: 900px; }
  .stats-table th, .stats-table td { padding: 12px 11px; }
  .stats-table th:first-child, .stats-table td:first-child { min-width: 154px; }
  .captain-role-grid, .captain-standard { grid-template-columns: 1fr; }
  .captain-role-grid article { min-height: 190px; }
  .captain-standard { gap: 14px; }
  .home-proof__heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .home-proof__metrics > div { padding: 18px 12px; }
  .home-proof__metrics strong { font-size: clamp(30px, 10vw, 44px); }
  .home-proof__metrics span { font-size: 9px; line-height: 1.3; }
  .home-captain { align-items: stretch; flex-direction: column; }
  .home-captain__actions { min-width: 0; }
  .home-captain__actions .primary-button { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .site-footer nav { grid-template-columns: 1fr; }
  .error-card > div { align-items: stretch; flex-direction: column; gap: 16px; }
  .error-card .primary-button { width: 100%; }
  .event-item { grid-template-columns: 1fr; gap: 4px; }
  .event-item div { display: grid; gap: 2px; }
  .event-item span { white-space: normal; }
  .rush-hero { min-height: 620px; padding: 34px 22px 42px; }
  .rush-hero::after { background: linear-gradient(180deg, #090b0e12 8%, #090b0e66 45%, #090b0efa 100%); }
  .rush-hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .play-cta { align-items: stretch; flex-direction: column; }
  .play-cta .telegram-button { width: 100%; }
  .rules-section { grid-template-columns: 38px 1fr; }
  .rules-section .rule-copy { grid-column: 2; }
  .result-scoreline { grid-template-columns: 1fr 1fr; grid-template-areas: "red blue" "score score"; gap: 10px; }
  .result-scoreline > strong { grid-area: score; justify-self: center; font-size: clamp(48px, 16vw, 68px); }
  .result-team { font-size: clamp(15px, 5vw, 20px); }
  .result-team--red { grid-area: red; }
  .result-team--blue { grid-area: blue; }
  .result-mvp { grid-template-columns: 1fr; }
  .result-mvp span { grid-row: auto; }
  .result-heats { gap: 3px; }
  .result-heats div { padding-inline: 1px; }
}

@media (max-width: 720px), (max-height: 520px) and (orientation: landscape) {
  .score-dialog, .lineup-dialog, .prestart-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 14px; border-radius: 0; }
  .score-dialog[open], .lineup-dialog[open], .prestart-dialog[open] { display: flex; flex-direction: column; }
  .prestart-dialog__heading { padding-top: 8px; }
  .prestart-dialog__heading h2 { font-size: 26px; }
  .prestart-dialog .dialog-close { right: 18px; }
  .prestart-dialog__actions { position: sticky; bottom: -14px; margin-top: auto; padding: 12px 0 0; align-items: stretch; flex-direction: column; background: white; }
  .prestart-dialog__actions .primary-button { width: 100%; }
  .choice-dialog__content { flex: 0 0 auto; margin-block: auto; }
  .choice-dialog__content h2 { margin-bottom: 8px; padding-right: 48px; }
  .choice-dialog__content .dialog-error { margin: 4px 0 0; }
  .score-dialog h2 { margin-bottom: 6px; }
  .score-dialog fieldset { margin: 8px 0; padding: 8px; gap: 4px; }
  .scorer-option, .lineup-player-option { min-height: 64px; padding: 10px 12px; border-radius: 9px; }
  .scorer-option strong, .lineup-player-option strong { font-size: 16px; }
  .scorer-option small, .lineup-player-option small { margin-top: 3px; font-size: 11px; line-height: 1.25; }
  .lineup-player-list { margin-top: 8px; gap: 7px; }
}

@media (max-width: 620px) {
  .home-rush-card--live { min-height: 0; padding: 18px; gap: 12px; }
  .home-live-scoreboard { grid-template-columns: 1fr; grid-template-areas: "center" "red" "blue"; gap: 0; }
  .home-live-center { margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
  .home-live-side, .home-live-side--blue { min-height: 62px; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border-top: 1px solid #303640; text-align: left; }
  .home-live-side--blue strong, .home-live-side--blue b { grid-column: auto; grid-row: auto; }
  .home-live-side strong { font-size: clamp(22px, 7.2vw, 28px); }
  .home-live-side b { font-size: clamp(42px, 13vw, 52px); }
  .home-live-place { text-align: left; }
}

@media (max-width: 520px) {
  .app-header { min-height: 62px; padding: 8px 12px; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .app-header .wordmark { width: 118px; }
  .app-header__actions { min-width: 0; justify-content: flex-end; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .app-header__actions::-webkit-scrollbar { display: none; }
  .app-header .header-rules-link { padding: 10px 7px; font-size: 12px; }
  .app-header .quiet-button { min-height: 40px; padding: 8px 7px; font-size: 12px; }
  .public-header { min-height: 62px; padding: 8px 12px; gap: 10px; }
  .public-header .wordmark { width: 98px; }
  .public-header nav { min-width: 0; gap: 0; }
  .public-header nav > a { padding-inline: 6px; font-size: 11px; }
  .login-shell { min-height: calc(100vh - 62px); }
  .rules-hero { padding: 30px 22px; }
  .rules-highlights { grid-template-columns: 1fr; }
  .rules-highlights div, .rules-highlights div:not(:first-child) { padding: 14px 0; border-right: 0; border-bottom: 1px solid #ffffff30; }
  .rules-highlights div:last-child { border-bottom: 0; }
  .rush-hero__actions { width: 100%; justify-content: space-between; gap: 12px; }
  .rush-hero__actions--global { align-items: stretch; flex-direction: column; white-space: normal; }
  .rush-hero__actions--global > a { width: 100%; justify-content: center; }
  .rules-section { padding: 20px 18px; grid-template-columns: 1fr; gap: 10px; }
  .rules-section .rule-copy { grid-column: 1; }
  .rule-number { margin-bottom: 4px; }
  .inline-player-form { grid-template-columns: 1fr; }
  .inline-player-form > * { grid-column: 1; }
  .rush-card-rail { grid-auto-columns: min(86vw, 360px); }
  .live-scoreboard { grid-template-columns: 1fr; grid-template-areas: "clocks" "red" "blue" "status"; }
  .live-board-clocks { border: 0; border-bottom: 1px solid #303640; }
  .live-heat-clock { min-height: 132px; padding: 18px 10px 12px; }
  .live-heat-clock strong { font-size: clamp(50px, 16vw, 68px); }
  .live-clock { min-height: 66px; padding: 9px 6px; }
  .live-clock strong { font-size: clamp(23px, 7vw, 30px); }
  .live-team { min-height: 190px; padding: 18px 20px; }
  .live-team--red { box-shadow: inset 5px 0 0 var(--side-color); }
  .live-team--blue { box-shadow: inset 5px 0 0 var(--side-color); }
  .live-team--blue .live-team__heading, .live-team--blue .live-team__scores { flex-direction: row; text-align: left; }
  .live-team--blue .live-team__total, .live-team--blue .live-team__heat { text-align: left; }
  .live-team__heading { min-height: 42px; }
  .live-team__heading h2 { font-size: clamp(25px, 8vw, 34px); }
  .live-team__total strong { font-size: clamp(64px, 19vw, 82px); }
  .live-team__heat strong { font-size: 34px; }
  .team-roster summary strong { max-width: 68%; }
  .selected-player { align-items: stretch; flex-direction: column; }
  .selected-player__actions { justify-content: flex-start; flex-wrap: wrap; }
  .team-balance-tool { grid-template-columns: 1fr; gap: 12px; }
  .team-balance-tool__forecast { width: 100%; }
  .team-balance-tool__forecast span { min-width: 0; flex: 1; }
  .team-balance-tool .secondary-button { width: 100%; }
  .balance-dialog { max-height: calc(100dvh - 24px); padding: 22px 16px 18px; overflow: auto; }
  .balance-dialog__teams { grid-template-columns: 1fr; }
  .balance-dialog__actions { position: sticky; bottom: -18px; padding: 12px 0 0; background: white; }
  .balance-dialog__actions button { flex: 1; }
  .player-story-dialog__shell { padding: 12px 12px 14px; gap: 9px; }
  .player-story-dialog__header h2 { font-size: 24px; }
  .player-story-stage { grid-template-columns: minmax(0, 1fr); }
  .player-story-nav { display: none; }
  .player-story-media { width: min(100%, calc((100dvh - 190px) * .5625)); height: auto; max-height: calc(100dvh - 190px); }
  .player-story-actions { width: 100%; }
  .player-story-actions .primary-button, .player-story-actions .secondary-button { min-width: 0; flex: 1; }
}

@media (max-width: 420px) {
  .public-header .wordmark { width: 78px; }
  .public-header nav > a { padding-inline: 4px; font-size: 10px; }
}

@media (max-width: 360px) {
  .lineup-undo { width: 32px; padding-inline: 0; }
  .lineup-undo span { display: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .body--operator .app-header { min-height: 42px; padding: 3px 10px; }
  .body--operator .wordmark { width: 108px; }
  .operator-shell { width: calc(100% - 12px); padding-top: 5px; }
  .rush-primary-screen { min-height: calc(100svh - 47px); }
  .timer-strip { margin-bottom: 5px; }
  .timer-block { padding: 4px; gap: 1px; }
  .timer-block span { font-size: 8px; }
  .timer-block strong { font-size: 30px; }
  .timer-block--rush { padding-block: 3px 4px; }
  .timer-block--rush strong { font-size: 17px; }
  .team-control { padding: 6px 8px; border-top-width: 4px; }
  .team-control__heading { gap: 1px 8px; }
  .team-control__heading h2 { margin-top: 2px; font-size: 20px; }
  .team-total strong { font-size: 31px; }
  .team-total span, .heat-score span { font-size: 8px; }
  .heat-score { padding: 2px 0 3px; }
  .heat-score strong { font-size: 18px; }
  .score-buttons { gap: 5px; }
  .score-buttons button { min-height: 68px; font-size: 37px; }
  .timeout-button { min-height: 35px; margin-top: 5px; padding: 3px; font-size: 11px; }
  .rush-primary-actions { margin-top: 5px; }
  .rush-primary-actions button { min-height: 36px; padding-block: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Live operator cockpit: the whole match surface stays inside one viewport. */
.body--operator-live { height: 100dvh; overflow: hidden; }
.body--operator-live .operator-shell { height: 100dvh; padding: 6px 0; }
.body--operator-live .rush-console, .body--operator-live .rush-primary-screen { height: 100%; min-height: 0; }
.body--operator-live .rush-primary-screen { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 6px; overflow: hidden; }
.body--operator-live .timer-strip { margin: 0; grid-template-columns: minmax(0, 1fr) auto; }
.body--operator-live .timer-block { padding: 7px 12px; }
.body--operator-live .timer-block + .timer-block { border-top: 0; border-left: 1px solid #ffffff22; }
.body--operator-live .timer-block--main strong { font-size: clamp(34px, 5vw, 52px); }
.body--operator-live .timer-block--rush { min-width: 150px; padding-inline: 14px; display: grid; align-content: center; gap: 3px; }
.body--operator-live .timer-block--rush strong { font-size: clamp(18px, 2.4vw, 24px); }
.body--operator-live .timer-block--main.is-warning { animation: heat-warning 1.4s ease-in-out infinite; }
.body--operator-live .timer-block--main.is-critical { animation: heat-critical .55s ease-in-out infinite; }
.body--operator-live .timer-block--main.is-expired { background: #8f1729; }
.body--operator-live .timer-block--main.is-expiry-flash { animation: heat-expired-flash 1.35s linear both; }
@keyframes heat-warning { 50% { background: #3c3030; } }
@keyframes heat-critical { 50% { background: #7f1d2d; box-shadow: inset 0 0 0 3px #ff8796; } }
@keyframes heat-expired-flash { 0%, 20%, 34%, 54%, 68%, 88%, 100% { background: #8f1729; } 10%, 44%, 78% { background: #ff2945; box-shadow: inset 0 0 0 4px white, 0 0 30px #ff2945; } }
.body--operator-live .rush-status-slot { min-height: 0; }
.body--operator-live .rush-status-panel { margin: 0; padding: 7px 12px; min-height: 52px; }
.body--operator-live .rush-status-panel strong { font-size: 25px; }
.body--operator-live .scoreboard { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.body--operator-live .team-control { min-height: 0; padding: clamp(7px, 1.25vw, 14px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; }
.body--operator-live .team-control__heading h2 { font-size: clamp(22px, 2.8vw, 31px); }
.body--operator-live .team-total strong { font-size: clamp(34px, 5vw, 58px); }
.body--operator-live .score-buttons { min-height: 0; }
.body--operator-live .score-buttons button { height: 100%; min-height: 54px; font-size: clamp(40px, 5vw, 64px); }
.body--operator-live .score-buttons .score-error-button { font: 900 clamp(20px, 2.4vw, 30px)/1 var(--font-body); }
.body--operator-live .timeout-button { min-height: 40px; margin-top: 6px; }
.body--operator-live .rush-primary-actions { margin: 0; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; }
.body--operator-live .rush-primary-actions button { width: 100%; min-height: 42px; }
.body--operator-live .rush-primary-actions .is-urgent { background: #a5152c; }

.official-actions-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; overflow: auto; border: 0; border-radius: 14px; box-shadow: 0 24px 80px #0a102066; }
.official-actions-dialog::backdrop { background: #0c1220c7; }
.official-actions-dialog h2 { padding-right: 42px; }
.official-actions-dialog .official-actions__buttons { grid-template-columns: 1fr; }
.official-actions-dialog .official-actions__buttons > * { width: 100%; min-height: 46px; text-decoration: none; }

.correction-target { grid-template-columns: 1fr 1fr; gap: 10px; }
.correction-team { --side-color: var(--ink); min-width: 0; padding: 12px; border: 1px solid var(--line); border-top: 5px solid var(--side-color); border-radius: 10px; background: #f3f6f9; }
.correction-team--red { --side-color: var(--team-red); }
.correction-team--blue { --side-color: var(--team-blue); }
.correction-team h3 { margin: 0 0 9px; overflow-wrap: anywhere; }
.correction-team__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.correction-target .correction-option { min-height: 54px; position: relative; border-color: color-mix(in srgb, var(--side-color) 30%, var(--line)); }
.correction-target .correction-option:not(:disabled):hover { color: white; border-color: var(--side-color); background: var(--side-color); }
.correction-target .correction-option.is-current { padding-bottom: 18px; color: white; border-color: var(--side-color); background: var(--side-color); opacity: 1; cursor: default; }
.correction-option small { position: absolute; right: 4px; bottom: 4px; left: 4px; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.correction-author { width: 100%; min-height: 40px; margin-top: 7px; border: 1px solid var(--side-color); border-radius: 7px; color: var(--side-color); background: white; font-weight: 850; cursor: pointer; }

@media (max-width: 720px) {
  .prestart-serve__teams { grid-template-columns: 1fr; }
  .captain-access-dialog { position: fixed; inset: 0 auto auto 0; width: 100dvw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 18px; border-radius: 0; }
  .captain-access-dialog .dialog-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .captain-access-dialog[open] { display: flex; align-items: center; }
  .captain-access-dialog__content { width: 100%; }
  .captain-access-dialog__content img { width: min(340px, 84vw); }
  .body--captain-console { height: 100dvh; overflow: hidden; }
  .captain-shell { width: calc(100% - 12px); height: 100dvh; padding: 6px 0; }
  .captain-console { height: 100%; grid-template-rows: auto auto minmax(0, 1fr); gap: 6px; }
  .captain-schedule { padding: 9px 11px; }
  .captain-schedule span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .captain-schedule strong { font-size: 14px; }
  .captain-timer-strip > * { padding: 7px 8px; }
  .captain-timer-strip span { font-size: 8px; }
  .captain-timer-strip strong { font-size: 30px; }
  .captain-timer-block--rush strong, .captain-status-panel strong { font-size: 20px; }
  .captain-scoreboard { min-height: 0; gap: 5px; }
  .captain-score { padding: 8px 10px; border-top-width: 4px; }
  .captain-score > header { min-height: 28px; }
  .captain-score > header h2 { font-size: 19px; }
  .captain-score__numbers { padding-block: 4px 3px; }
  .captain-score__numbers strong { font-size: 28px; }
  .captain-score--opponent { padding: 6px 9px; }
  .captain-score--opponent > header h2 { font-size: 17px; }
  .captain-score--opponent .captain-score__numbers { padding-block: 3px 2px; }
  .captain-opponent-lineup { padding: 4px 6px; }
  .captain-opponent-lineup span { font-size: 8px; }
  .captain-opponent-lineup strong { font-size: 11px; }
  .captain-score .lineup-control { margin-top: 3px; padding: 5px 6px; }
  .captain-score .lineup-control__heading { margin-bottom: 3px; }
  .captain-score .lineup-slot { min-height: 34px; padding: 4px 7px; }
  .captain-roster { padding: 7px 9px; }
  .captain-roster__heading { min-height: 34px; }
  .captain-roster__heading h2 { font-size: 18px; }
  .captain-roster__heading .timeout-button { width: min(148px, 46%); min-height: 34px; padding-block: 5px; }
  .captain-roster ul { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 35px); align-content: start; gap: 3px; }
  .captain-roster li { height: 100%; min-height: 0; padding: 3px 7px; }
  .captain-roster li strong { font-size: 12px; }
  .captain-roster li > span:last-child { font-size: 10px; }
  .scheduled-team__heading > div { min-width: 140px; }
  .body--operator-live .operator-shell { width: calc(100% - 10px); padding-block: 5px; }
  .body--operator-live .timer-block { padding: 5px 8px; }
  .body--operator-live .timer-block--main strong { font-size: clamp(30px, 9vw, 39px); }
  .body--operator-live .timer-block--rush { min-width: 112px; }
  .body--operator-live .timer-block--rush strong { font-size: 18px; }
  .body--operator-live .scoreboard { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .body--operator-live .team-control { padding: 7px; border-top-width: 4px; }
  .body--operator-live .team-control__heading h2 { min-height: 0; font-size: 20px; -webkit-line-clamp: 1; }
  .body--operator-live .team-total strong { font-size: 32px; }
  .body--operator-live .heat-score { padding-block: 2px 3px; }
  .body--operator-live .heat-score strong { font-size: 19px; }
  .body--operator-live .lineup-control { margin: 4px 0; padding: 6px; }
  .body--operator-live .lineup-control__heading { margin-bottom: 4px; }
  .body--operator-live .lineup-slot { min-height: 35px; padding-block: 5px; }
  .body--operator-live .score-buttons button { min-height: 54px; }
  .body--operator-live .timeout-button { min-height: 34px; margin-top: 4px; }
  .body--operator-live .rush-primary-actions button { min-height: 40px; }
  .body--operator-live .rush-status-panel { min-height: 48px; padding-block: 5px; align-items: center; flex-direction: row; }
  .body--operator-live .rush-status-panel strong { font-size: 21px; }
  .body--operator-live .break-state { width: auto; flex: 1; }
  .correction-target { grid-template-columns: 1fr; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .body--captain-console { height: 100dvh; overflow: hidden; }
  .captain-shell { width: calc(100% - 12px); height: 100dvh; padding: 6px 0; }
  .captain-console { height: 100%; grid-template-columns: minmax(0, .94fr) minmax(320px, 1.06fr); grid-template-rows: auto minmax(0, 1fr); gap: 6px; }
  .captain-schedule, .captain-timer-strip { grid-column: 1; grid-row: 1; }
  .captain-scoreboard { min-height: 0; grid-column: 1; grid-row: 2; gap: 4px; }
  .captain-roster { min-height: 0; padding: 7px 9px; grid-column: 2; grid-row: 1 / 3; }
  .captain-timer-strip > * { padding: 5px 7px; }
  .captain-timer-strip span { font-size: 7.5px; }
  .captain-timer-strip strong { font-size: 25px; }
  .captain-timer-block--rush strong, .captain-status-panel strong { font-size: 18px; }
  .captain-score { padding: 5px 7px; border-top-width: 4px; }
  .captain-score > header { min-height: 23px; }
  .captain-score > header h2 { font-size: 17px; }
  .captain-score > header span { font-size: 8px; }
  .captain-score__numbers { padding-block: 2px; }
  .captain-score__numbers span { font-size: 8px; }
  .captain-score__numbers strong { font-size: 24px; }
  .captain-score--opponent { padding: 5px 7px; }
  .captain-score--opponent > header h2 { font-size: 15px; }
  .captain-score--opponent .captain-score__numbers { padding-block: 2px 1px; }
  .captain-opponent-lineup { padding: 3px 5px; }
  .captain-opponent-lineup span { font-size: 7px; }
  .captain-opponent-lineup strong { font-size: 9.5px; }
  .captain-opponent-lineup .team-shot-clock { min-width: 96px; padding: 3px 5px; }
  .captain-opponent-lineup .team-shot-clock strong { font-size: 16px; }
  .captain-score .lineup-control { margin-top: 2px; padding: 4px 5px; }
  .captain-score .lineup-control__heading { margin-bottom: 2px; }
  .captain-score .lineup-slot { min-height: 31px; padding: 3px 6px; }
  .captain-roster__heading { min-height: 32px; }
  .captain-roster__heading h2 { font-size: 17px; }
  .captain-roster__heading .timeout-button { min-height: 31px; padding-block: 4px; }
  .captain-roster ul { grid-template-columns: 1fr; grid-template-rows: repeat(8, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); flex: 1; align-content: stretch; gap: 3px; }
  .captain-roster li { height: 100%; min-height: 0; padding: 2px 7px; }
  .captain-roster li strong { font-size: 11px; }
  .captain-roster li > span:last-child { font-size: 9.5px; }
  .body--operator-live .operator-shell { width: calc(100% - 10px); padding-block: 4px; }
  .body--operator-live .rush-primary-screen { gap: 4px; }
  .body--operator-live .timer-block { padding: 3px 8px; }
  .body--operator-live .timer-block--main strong { font-size: 27px; }
  .body--operator-live .timer-block--rush { min-width: 118px; padding-block: 3px; }
  .body--operator-live .timer-block--rush strong { font-size: 15px; }
  .body--operator-live .team-control { padding: 5px 7px; }
  .body--operator-live .team-control__heading h2 { min-height: 0; font-size: 18px; -webkit-line-clamp: 1; }
  .body--operator-live .team-total strong { font-size: 29px; }
  .body--operator-live .heat-score { padding-block: 1px 2px; }
  .body--operator-live .lineup-control { margin: 3px 0; padding: 5px; }
  .body--operator-live .lineup-control__heading { margin-bottom: 3px; }
  .body--operator-live .lineup-slot { min-height: 31px; padding-block: 3px; }
  .body--operator-live .score-buttons button { min-height: 58px; }
  .body--operator-live .timeout-button { min-height: 30px; margin-top: 3px; }
  .body--operator-live .rush-primary-actions button { min-height: 34px; padding-block: 4px; }
  .body--operator-live .rush-status-panel { min-height: 46px; padding-block: 5px; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .lineup-slot.is-updated,
  .captain-score.is-serving { animation: none !important; }
  .body--operator-live .timer-block--main.is-warning,
  .body--operator-live .timer-block--main.is-critical,
  .body--operator-live .timer-block--main.is-expiry-flash { animation: none !important; }
}
