:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --surface: #11161e;
  --surface-2: #171d27;
  --surface-3: #1d2430;
  --line: #343e4c;
  --line-strong: #465365;
  --line-soft: #29323e;
  --text: #f3f0ea;
  --muted: #c1c8d2;
  --muted-2: #a6b0be;
  --accent: #e8612d;
  --accent-strong: #ff7540;
  --accent-soft: rgba(232, 97, 45, 0.12);
  --green: #4bd48a;
  --red: #ef6a64;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  --content: 1360px;
}

.overall-tone { --rating-color: #d6675b; --rating-soft: rgba(214,103,91,.14); --rating-ink: #fff5f1; }
.overall-tone.tone-20, .overall-tone.tone-19, .overall-tone.tone-18 { --rating-color: #c8ff36; --rating-soft: rgba(200,255,54,.13); --rating-ink: #10150d; }
.overall-tone.tone-17, .overall-tone.tone-16 { --rating-color: #e5ed76; --rating-soft: rgba(229,237,118,.13); --rating-ink: #17170b; }
.overall-tone.tone-15, .overall-tone.tone-14 { --rating-color: #f6c55b; --rating-soft: rgba(246,197,91,.14); --rating-ink: #1b1408; }
.overall-tone.tone-13, .overall-tone.tone-12, .overall-tone.tone-11, .overall-tone.tone-10 { --rating-color: #ec8a52; --rating-soft: rgba(236,138,82,.14); --rating-ink: #1b0d07; }
.overall-tone.rating-breakthrough { --rating-color: #ff9b42; --rating-soft: rgba(255,155,66,.18); --rating-ink: #241205; }
.overall-tone.rating-peak { --rating-color: #ffd166; --rating-soft: rgba(255,209,102,.2); --rating-ink: #211603; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(39, 54, 76, 0.28), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  width: min(var(--content), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-product { min-width: 0; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 46%, var(--accent) 47% 53%, transparent 54%);
  transform: rotate(-15deg);
}
.brand-mark::after { content: ""; position: absolute; inset: 4px -2px; border-top: 2px solid var(--accent); border-radius: 50%; transform: rotate(45deg); }
.brand-name { font-size: 18px; font-weight: 900; letter-spacing: -0.7px; }
.brand-name > span { color: var(--accent-strong); }
.mode-context {
  min-width: 0;
  min-height: 38px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr;
  align-content: center;
  column-gap: 9px;
  padding: 3px 10px 3px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  text-decoration: none;
  transition: background-color .16s ease;
}
.mode-context:hover { background: var(--accent-soft); }
.mode-context-kicker { grid-column: 1; color: var(--muted-2); font-size: 9px; line-height: 1.2; }
.mode-context strong { grid-column: 1; color: var(--accent-strong); font-size: 13px; line-height: 1.2; white-space: nowrap; }
.mode-context-switch { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent-strong); font-size: 10px; font-weight: 750; white-space: nowrap; }
.topbar-caption { color: var(--muted-2); font-size: 13px; letter-spacing: 0.08em; }
.account { display: flex; align-items: center; gap: 14px; }
.account form { margin: 0; }
.account-link { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; }
.account-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); color: var(--accent-strong); font-size: 12px; font-weight: 800; }
.text-button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--muted); padding: 7px 4px; cursor: pointer; }
.text-button:hover, .account-link:hover { color: var(--accent-strong); }
.lobby-nav { height: 100%; display: flex; align-items: stretch; gap: 4px; margin: 0 auto; }
.lobby-nav a { position: relative; display: flex; align-items: center; padding: 0 13px; color: var(--muted-2); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.lobby-nav a:hover { color: var(--text); }
.lobby-nav a[aria-current="page"] { color: var(--text); }
.lobby-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 13px; bottom: -1px; left: 13px; height: 2px; background: var(--accent); }
.lobby-nav a span { color: var(--accent-strong); font-size: 10px; }

.eyebrow, .step { margin: 0; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.65; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(17, 22, 30, 0.94); padding: 24px; box-shadow: var(--shadow); }
.panel h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-title > span { flex: 0 0 auto; color: var(--muted); font-size: 13px; }

input, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #343d4b;
  border-radius: var(--radius-sm);
  outline: none;
  background: #0c1016;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input:hover, select:hover { border-color: #465162; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #0f141b; }
input[type="password"] {
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .08em;
}
label { display: grid; gap: 7px; color: #d5dae1; font-size: 13px; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
.primary, .primary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 97, 45, 0.18);
  transition: transform 0.15s, background 0.15s;
}
.primary:hover, .primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.primary:active, .primary-button:active { transform: translateY(0); }
button:focus-visible, a:focus-visible, .team-card:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

.auth-page { background: #090c11; }
.auth-layout {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
  align-items: center;
  gap: clamp(60px, 10vw, 150px);
  padding: 64px 0;
}
.hero-copy { position: relative; max-width: 680px; padding: 38px 0; }
.hero-copy h1 { margin: 16px 0 22px; font-size: clamp(46px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -0.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 520px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-points { display: flex; gap: 9px; margin-top: 30px; }
.hero-points span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: #c6cdd6; background: rgba(255, 255, 255, 0.025); font-size: 12px; }
.auth-court { position: absolute; z-index: -1; right: -40px; top: -20px; width: 390px; height: 390px; border: 1px solid rgba(232, 97, 45, 0.12); border-radius: 50%; opacity: 0.8; }
.auth-court::before, .auth-court::after { content: ""; position: absolute; inset: 50% auto auto 0; width: 100%; border-top: 1px solid rgba(232, 97, 45, 0.1); }
.auth-court::after { inset: 0 auto auto 50%; width: 0; height: 100%; border-top: 0; border-left: 1px solid rgba(232, 97, 45, 0.1); }
.auth-court i { position: absolute; width: 120px; height: 220px; right: -1px; top: 85px; border: 1px solid rgba(232, 97, 45, 0.12); border-right: 0; }
.auth-court b { position: absolute; width: 110px; height: 110px; left: 140px; top: 140px; border: 1px solid rgba(232, 97, 45, 0.12); border-radius: 50%; }
.auth-panel { padding: 32px; border-color: #303947; background: #121720; }
.auth-panel h2 { margin-top: 8px; font-size: 30px; }
.auth-panel > .muted { margin: 7px 0 0; }
.stack { display: grid; gap: 16px; margin-top: 26px; }
.stack .primary { margin-top: 4px; }
.remember-login { min-height: 24px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.remember-login input { width: 15px; min-height: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.switch a { color: var(--text); font-weight: 700; }
.alert, .success { padding: 11px 13px; margin: 18px 0; border-radius: var(--radius-sm); font-size: 13px; }
.alert { border: 1px solid rgba(239, 106, 100, 0.45); background: rgba(239, 106, 100, 0.1); color: #ffb4af; }
.success { border: 1px solid rgba(75, 212, 138, 0.4); background: rgba(75, 212, 138, 0.1); color: #98e9ba; }

.page-shell { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 52px 0 100px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin: 9px 0 10px; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.045em; }
.page-heading > p:last-child { max-width: 660px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.compact-heading { display: grid; grid-template-columns: 1fr minmax(300px, 560px); align-items: end; column-gap: 50px; }
.compact-heading .eyebrow { grid-column: 1; }
.compact-heading h1 { grid-column: 1; }
.compact-heading > p:last-child { grid-column: 2; grid-row: 1 / 3; align-self: end; padding-bottom: 7px; }
.league-form { display: grid; gap: 18px; }
.setup-panel { padding: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-heading > div { display: flex; align-items: center; gap: 13px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.check { display: flex; align-items: center; align-self: end; gap: 10px; min-height: 44px; padding: 0 4px; }
.check input { width: 17px; min-height: 17px; height: 17px; accent-color: var(--accent); }
.team-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.conference-filter { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #0c1016; }
.conference-filter button { min-width: 76px; min-height: 44px; border: 0; border-radius: 7px; padding: 8px 16px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.conference-filter button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 4px #0005; }
.team-search { width: min(280px, 38vw); }
.team-search input { min-height: 44px; height: 44px; }
.team-count { color: var(--muted); font-size: 13px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.team-card { position: relative; min-height: 104px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 48px; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,.018), transparent 55%), #0d1219; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow .15s; }
.team-card:hover { z-index: 1; border-color: #4a5565; background: #111821; transform: translateY(-1px); }
.team-card:has(input:checked) { border-color: var(--accent); background: linear-gradient(135deg, rgba(232,97,45,.14), rgba(232,97,45,.035)); box-shadow: inset 0 0 0 1px rgba(232, 97, 45, 0.14), 0 8px 22px rgba(0,0,0,.16); }
.team-card input { position: absolute; width: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.team-mark { width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.05); border-radius: 14px; background: rgba(255, 255, 255, 0.045); }
.team-mark img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.team-card-copy { min-width: 0; display: grid; gap: 5px; }
.team-card-copy strong { font-size: 14px; line-height: 1.28; }
.team-card-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.team-rating { width: 48px; display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; flex-direction: column; padding: 0; color: var(--text); text-align: center; }
.team-rating b { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--rating-color) 32%, transparent); border-radius: 9px; background: var(--rating-soft); color: var(--rating-color); font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.04em; text-align: center; }
.team-rating small { width: 100%; margin-top: 5px; color: var(--muted-2); font-size: 11px; line-height: 12px; letter-spacing: .06em; text-align: center; }
.team-selected { position: absolute; left: 7px; top: 7px; width: 18px; height: 18px; display: none; place-items: center; border: 2px solid #0d1219; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9px; }
.team-card:has(input:checked) .team-selected { display: grid; }
.empty-teams { padding: 42px 0; text-align: center; color: var(--muted); }
.create-bar { position: sticky; z-index: 8; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 14px 13px 18px; border: 1px solid #37404e; border-radius: 12px; background: rgba(20, 26, 35, 0.94); box-shadow: 0 16px 45px #0008; backdrop-filter: blur(18px); }
.create-bar > div { display: grid; gap: 2px; }
.create-bar small { color: var(--muted); font-size: 12px; }

.dashboard-head, .team-hero { position: relative; min-height: 164px; padding: 34px max(24px, calc((100vw - var(--content)) / 2)); display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, #151b24, #0c1016 70%); }
.dashboard-head h1, .team-hero h1 { margin: 5px 0 2px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.045em; }
.dashboard-head p, .team-hero p { margin: 0; color: var(--muted); }
.team-emblem { width: 84px; height: 84px; flex: 0 0 84px; display: grid; place-items: center; padding: 9px; border: 1px solid #394352; border-radius: 50%; background: rgba(255, 255, 255, 0.04); }
.team-emblem img { width: 100%; height: 100%; object-fit: contain; }
.record { margin-left: auto; display: grid; justify-items: end; }
.record strong { font-size: 36px; letter-spacing: -0.04em; }
.record span { color: var(--muted); font-size: 12px; }
.team-hero-side { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.team-hero-side .record { margin-left: 0; padding-left: 26px; border-left: 1px solid var(--line); }
.team-scoreboard { display: flex; align-items: flex-start; gap: 9px; }
.team-score { width: 48px; display: grid; justify-items: center; gap: 5px; }
.team-score b { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--rating-color) 36%, transparent); border-radius: 9px; background: var(--rating-soft); color: var(--rating-color); font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1; }
.team-score small { color: var(--muted-2); font-size: 11px; line-height: 1; }
.game-nav { position: sticky; top: 64px; z-index: 15; height: 52px; border-bottom: 1px solid var(--line); background: rgba(10, 13, 18, 0.9); backdrop-filter: blur(18px); }
.game-nav-inner { width: min(var(--content), calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: stretch; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.game-nav a, .game-nav span { position: relative; flex: 0 0 auto; display: flex; align-items: center; color: var(--muted-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.game-nav a:hover { color: var(--text); }
.game-nav a.active { color: var(--text); }
.game-nav a.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); }
.game-nav span { color: #8793a3; opacity: 1; cursor: not-allowed; }
.dashboard-grid { width: min(var(--content), calc(100% - 48px)); margin: 24px auto 80px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.roster-table { margin-top: 16px; }
.roster-row { min-height: 55px; display: grid; grid-template-columns: 2fr 0.8fr 0.5fr 0.7fr; align-items: center; gap: 14px; padding: 7px 4px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.roster-row.header { min-height: 34px; color: var(--muted-2); font-size: 11px; text-transform: uppercase; }
.rating.overall-tone, .inline-rating.overall-tone { color: var(--rating-color); }
.inline-rating { font-size: inherit; }
.player-cell { min-width: 0; display: flex; align-items: center; gap: 10px; }
.player-thumb { width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 50%; background: var(--surface-3); }
.player-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.rating { width: 32px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: #eeeae2; color: #11151b; font-size: 12px; }
.pending { color: #e7a277; }
.healthy { color: var(--green); }
.side-stack { display: grid; align-content: start; gap: 16px; }
.progress { height: 5px; margin: 20px 0 7px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.progress span { display: block; width: 25%; height: 100%; background: var(--accent); }
.facts { display: grid; gap: 0; }
.facts div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.facts div:last-child { border-bottom: 0; }
.facts strong, .facts code { color: var(--text); }
.center-message { padding: 18vh 24px; text-align: center; }
.center-message h1 { margin: 10px 0; font-size: 42px; }
.center-message p { margin: 0 0 24px; color: var(--muted); }
.inline { display: inline-flex; }

.mode-page { background: radial-gradient(800px 440px at 50% 0, rgba(43, 56, 75, 0.26), transparent 70%), var(--bg); }
.mode-shell { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 100px; }
.mode-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 30px; }
.mode-heading h1 { margin: 8px 0 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.05em; }
.mode-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-card { --mode-color: #ed7547; position: relative; min-height: 470px; display: flex; flex-direction: column; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg,color-mix(in srgb,var(--mode-color) 6%,transparent),#121820 42%); color: var(--text); transition: transform .18s,border-color .18s,box-shadow .18s; }
.mode-card::before { content: ""; position: absolute; z-index: 3; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--mode-color),color-mix(in srgb,var(--mode-color) 15%,transparent) 72%,transparent); }
.mode-card.tone-blue { --mode-color: #78a9ff; }
.mode-card.tone-gold { --mode-color: #e6bd63; }
.mode-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--mode-color) 52%,var(--line)); box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.mode-card.is-unavailable { border-color: rgba(239,174,82,.5); background: linear-gradient(155deg,rgba(239,174,82,.08),#121820 42%); }
.mode-card.is-disabled { border-color: #2d3642; background: #0f141b; filter: saturate(.72); }
.mode-status { position: absolute; z-index: 2; right: 16px; top: 16px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; background: rgba(10,13,18,.72); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.mode-status.available { border-color: rgba(75,212,138,.35); color: #85dfad; }
.mode-status.warning { border-color: rgba(239,174,82,.5); color: #f0c477; }
.mode-art { position: relative; height: 190px; flex: 0 0 auto; margin: -22px -22px 22px; overflow: hidden; border-bottom: 1px solid color-mix(in srgb,var(--mode-color) 24%,transparent); background: radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--mode-color) 21%,transparent),#11161e 70%); }
.mode-art::before { box-shadow: 0 0 70px color-mix(in srgb,var(--mode-color) 18%,transparent); }
.mode-art-league::before { content: ""; position: absolute; width: 150px; height: 150px; left: calc(50% - 75px); top: 25px; border: 1px solid color-mix(in srgb,var(--mode-color) 36%,transparent); border-radius: 50%; }
.mode-art-league::after { content: ""; position: absolute; width: 82px; height: 82px; left: calc(50% - 41px); top: 59px; border: 2px solid var(--mode-color); border-radius: 50%; background: linear-gradient(90deg,transparent 48%,var(--mode-color) 49% 51%,transparent 52%); transform: rotate(-16deg); }
.mode-art-league i { position: absolute; bottom: 25px; width: 9px; border-radius: 5px 5px 0 0; background: color-mix(in srgb,var(--mode-color) 42%,transparent); }
.mode-art-league i:nth-child(1) { left: 24%; height: 28px; }.mode-art-league i:nth-child(2) { left: 28%; height: 45px; }.mode-art-league i:nth-child(3) { left: 32%; height: 65px; }
.mode-art-cards i { position: absolute; width: 94px; height: 130px; top: 30px; left: calc(50% - 47px); border: 1px solid color-mix(in srgb,var(--mode-color) 62%,transparent); border-radius: 10px; background: linear-gradient(145deg,color-mix(in srgb,var(--mode-color) 22%,transparent),#151b24); }
.mode-art-cards i::after { content: ""; position: absolute; width: 42px; height: 42px; left: 25px; top: 24px; border: 1px solid color-mix(in srgb,var(--mode-color) 74%,transparent); border-radius: 50%; }
.mode-art-cards i:nth-child(1) { transform: translateX(-54px) rotate(-14deg); opacity: .48; }.mode-art-cards i:nth-child(2) { z-index: 1; }.mode-art-cards i:nth-child(3) { transform: translateX(54px) rotate(14deg); opacity: .48; }
.mode-art-fast i:first-child { position: absolute; width: 118px; height: 118px; left: calc(50% - 59px); top: 35px; border: 2px solid color-mix(in srgb,var(--mode-color) 72%,transparent); border-radius: 50%; }
.mode-art-fast i:first-child::after { content: ""; position: absolute; inset: 17px; border: 1px solid color-mix(in srgb,var(--mode-color) 42%,transparent); border-radius: 50%; }
.mode-art-fast i:last-child { position: absolute; width: 24px; height: 90px; left: calc(50% - 12px); top: 49px; background: var(--mode-color); clip-path: polygon(55% 0,100% 0,62% 40%,92% 40%,30% 100%,42% 55%,10% 55%); }
.mode-copy { display: grid; gap: 8px; }
.mode-kicker { margin: 0; color: var(--mode-color); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.mode-copy h2 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.mode-copy > p:not(.mode-kicker) { min-height: 3.4em; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.mode-access { min-height: 68px; box-sizing: border-box; display: grid; grid-template-rows: auto minmax(30px,auto); align-content: center; gap: 3px; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(7,10,15,.28); }
.mode-access strong { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .04em; }
.mode-access strong i { width: 7px; height: 7px; border-radius: 50%; background: #8fa0b5; box-shadow: 0 0 0 3px rgba(143,160,181,.12); }
.mode-access span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.mode-access.online strong { color: #85dfad; }
.mode-access.online strong i { background: #4bd48a; box-shadow: 0 0 0 3px rgba(75,212,138,.14); }
.mode-access.offline strong { color: #c4cfdd; }
.mode-save-meta { display: grid; gap: 6px; margin-top: 8px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(7,10,15,.34); }
.mode-save-meta > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mode-save-meta > span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mode-save-meta > small { color: var(--muted-2); font-size: 10px; }
.mode-save-progress { display: grid; gap: 5px; margin-top: 2px; }
.mode-save-progress > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.mode-save-progress b { color: var(--text); }
.mode-save-progress progress { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 99px; background: var(--surface-3); accent-color: var(--mode-color); }
.mode-save-progress progress::-webkit-progress-bar { border-radius: 99px; background: var(--surface-3); }
.mode-save-progress progress::-webkit-progress-value { border-radius: 99px; background: var(--mode-color); }
.mode-save-progress progress::-moz-progress-bar { border-radius: 99px; background: var(--mode-color); }
.mode-action { display: grid; gap: 7px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 12px; font-weight: 800; }
.mode-primary-action { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid color-mix(in srgb,var(--mode-color) 54%,var(--line)); border-radius: 9px; background: color-mix(in srgb,var(--mode-color) 15%,rgba(7,10,15,.76)); color: var(--text); text-decoration: none; transition: border-color .16s,background .16s; }
.mode-primary-action:hover { border-color: var(--mode-color); background: color-mix(in srgb,var(--mode-color) 23%,rgba(7,10,15,.76)); }
.mode-primary-action span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-primary-action b { flex: 0 0 auto; color: var(--mode-color); font-size: 20px; }
.mode-action .mode-delete { min-height: 34px; justify-self: end; padding: 5px 2px; border: 0; background: transparent; color: var(--muted-2); font: inherit; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.mode-action .mode-delete:hover { color: var(--red); }
.mode-success { margin: -8px 0 20px; }
.is-disabled .mode-action { color: #9da8b7; font-size: 11px; letter-spacing: .08em; }
.save-delete-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.58); }
.save-delete-dialog::backdrop { background: rgba(4,7,11,.76); backdrop-filter: blur(5px); }
.save-delete-dialog-head { display: flex; align-items: center; gap: 14px; }
.save-delete-dialog-head h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.04em; }
.danger-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid rgba(239,106,100,.45); border-radius: 50%; background: rgba(239,106,100,.1); color: var(--red); font-size: 20px; font-weight: 900; }
.warning-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid rgba(239,174,82,.48); border-radius: 50%; background: rgba(239,174,82,.1); color: #f0c477; font-size: 20px; font-weight: 900; }
.unavailable-reason { margin: 22px 0 0; padding: 13px 15px; border: 1px solid rgba(239,174,82,.24); border-radius: 9px; background: rgba(239,174,82,.06); color: #f0c477; font-size: 13px; line-height: 1.6; }
.unavailable-guidance { margin-top: 16px; }.unavailable-guidance strong { font-size: 13px; }.unavailable-guidance p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }.unavailable-guidance small { color: var(--muted-2); }
.delete-warning { margin: 0; color: #e1a19d; }
.save-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 0; border-block: 1px solid var(--line); }
.save-summary > div { display: grid; gap: 3px; padding: 13px 0; }
.save-summary dt { color: var(--muted); font-size: 12px; }
.save-summary dd { margin: 0; font-size: 12px; font-weight: 700; }
.delete-scope { margin-top: 22px; padding: 15px; border-radius: 9px; background: rgba(239,106,100,.06); }
.delete-scope strong { color: #f2c1be; font-size: 12px; }
.delete-scope p { margin: 6px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.delete-scope small { color: var(--muted-2); font-size: 11px; }
.delete-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.secondary-button, .danger-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border-radius: 8px; font-weight: 750; text-decoration: none; cursor: pointer; }
.secondary-button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.danger-button { border: 1px solid #d65a55; background: #b8423d; color: #fff; }
.danger-button:hover { background: #cc4c46; }

/* Signed-in lobby and gameplay guide. */
.lobby-page, .guide-page { background: radial-gradient(900px 560px at 76% 3%, rgba(45,67,94,.28), transparent 67%), #090c11; }
.lobby-shell, .guide-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 100px; }
.lobby-hero { min-height: 430px; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(360px,.82fr); overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(125deg,#141b25 0%,#10151d 56%,#0c1118 100%); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.lobby-hero-copy { z-index: 1; align-self: center; padding: clamp(40px,5vw,64px); }
.lobby-hero-copy h1 { max-width: 680px; margin: 13px 0 20px; font-size: clamp(46px,5vw,68px); line-height: .98; letter-spacing: -.06em; }
.lobby-hero-copy h1 span { color: var(--accent-strong); }
.lobby-hero-copy > p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.lobby-hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 31px; }
.lobby-start { min-width: 182px; min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 18px 0 22px; border: 1px solid var(--accent-strong); border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 900; text-decoration: none; box-shadow: 0 15px 35px rgba(232,97,45,.22); transition: transform .16s,background .16s; }
.lobby-start:hover { background: var(--accent-strong); transform: translateY(-2px); }
.lobby-start b { font-size: 22px; }
.lobby-secondary-link { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.lobby-secondary-link:hover { border-color: var(--accent); color: var(--text); }
.lobby-court-visual { position: relative; min-height: 430px; display: grid; grid-template-rows: auto 1fr auto; padding: 24px; overflow: hidden; border-left: 1px solid rgba(255,255,255,.06); background: radial-gradient(circle at 52% 45%,rgba(232,97,45,.17),transparent 43%),linear-gradient(155deg,rgba(41,59,82,.2),rgba(6,9,13,.35)); }
.lobby-court-visual::before { content: ""; position: absolute; inset: -20% -50% auto auto; width: 580px; height: 580px; border: 1px solid rgba(255,255,255,.035); border-radius: 50%; }
.lobby-score-ribbon { z-index: 2; display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.lobby-score-ribbon b { padding: 5px 8px; border: 1px solid rgba(75,212,138,.32); border-radius: 99px; color: #80dba8; font-size: 9px; }
.lobby-arena-art { position: absolute; z-index: 0; inset: 0; }
.lobby-arena-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,8,12,.13) 0%,rgba(5,8,12,.3) 54%,rgba(5,8,12,.76) 100%),linear-gradient(90deg,rgba(5,8,12,.18),transparent 42%); }
.lobby-arena-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; filter: saturate(.82) contrast(1.06); }
.lobby-visual-save { z-index: 2; align-self: end; display: grid; gap: 14px; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: linear-gradient(145deg,rgba(18,24,33,.94),rgba(7,11,16,.92)); box-shadow: 0 22px 55px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(16px); }
.lobby-visual-save-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lobby-visual-save-head > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.lobby-visual-save-head span { color: var(--accent-strong); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.lobby-visual-save-head b { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.12); color: #d8dee7; font-size: 10px; }
.lobby-visual-save-head em { flex: 0 0 auto; max-width: 46%; overflow: hidden; padding: 5px 8px; border: 1px solid rgba(232,97,45,.32); border-radius: 99px; background: rgba(232,97,45,.09); color: #f6a17c; font-size: 9px; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lobby-visual-save-title { min-width: 0; }
.lobby-visual-save-title strong { display: block; overflow: hidden; font-size: 21px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.lobby-visual-save-title p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-visual-save-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-block: 1px solid rgba(255,255,255,.08); }
.lobby-visual-save-details > div { min-width: 0; padding: 11px 10px 11px 0; }
.lobby-visual-save-details > div + div { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.lobby-visual-save-details dt { color: var(--muted-2); font-size: 9px; }
.lobby-visual-save-details dd { margin: 4px 0 0; overflow: hidden; color: #eef2f7; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lobby-visual-save-progress > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.lobby-visual-save-progress > div b { color: #f6a17c; }
.lobby-visual-save-progress progress { width: 100%; height: 5px; display: block; margin-top: 6px; overflow: hidden; border: 0; border-radius: 99px; accent-color: var(--accent); }
.lobby-visual-save-footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lobby-visual-save-footer small { min-width: 0; overflow: hidden; color: var(--muted-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-visual-save-footer small span { color: var(--accent-strong); }
.lobby-visual-save-footer a { min-height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 18px; padding: 0 14px; border: 1px solid rgba(232,97,45,.7); border-radius: 9px; background: rgba(232,97,45,.13); color: #fff; font-size: 10px; font-weight: 850; text-decoration: none; transition: background .16s,border-color .16s,transform .16s; }
.lobby-visual-save-footer a:hover { border-color: var(--accent-strong); background: var(--accent); transform: translateY(-1px); }
.lobby-visual-save-footer a b { color: #ffb08c; font-size: 16px; }
.lobby-section { margin-top: 54px; }
.lobby-section-heading { min-height: 56px; display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 17px; }
.lobby-section-heading h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.035em; }
.lobby-section-heading > a { color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.lobby-section-heading > a span { margin-left: 6px; color: var(--accent-strong); }
.lobby-section-heading > span { color: var(--muted-2); font-size: 11px; }
.lobby-save-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.lobby-save-card { min-height: 150px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(140deg,rgba(255,255,255,.035),transparent 55%),var(--surface); text-decoration: none; transition: border-color .16s,transform .16s; }
.lobby-save-card:hover { border-color: rgba(232,97,45,.5); transform: translateY(-2px); }
.lobby-save-mode { color: var(--accent-strong); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lobby-save-card > strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-save-card > p { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-save-card footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted-2); }
.lobby-save-card footer small { font-size: 10px; }.lobby-save-card footer b { color: var(--accent-strong); font-size: 18px; }
.lobby-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 370px; align-items: stretch; gap: 22px; }
.lobby-activity-list { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 10px; }
.lobby-activity { --activity-color: var(--accent-strong); min-height: 155px; display: grid; grid-template-columns: 54px minmax(0,1fr) 32px; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line-soft); border-radius: 15px; background: linear-gradient(100deg,color-mix(in srgb,var(--activity-color) 7%,transparent),transparent 44%),var(--surface); text-decoration: none; transition: border-color .16s,background .16s; }
.lobby-activity.tone-blue { --activity-color: #78a9ff; }.lobby-activity.tone-gold { --activity-color: #e6bd63; }
.lobby-activity:hover { border-color: color-mix(in srgb,var(--activity-color) 45%,var(--line)); background-color: var(--surface-2); }
.lobby-activity-index { align-self: stretch; display: grid; place-items: start center; padding-top: 4px; border-right: 1px solid var(--line-soft); color: var(--activity-color); font-size: 12px; font-weight: 900; }
.lobby-activity > div { min-width: 0; }.lobby-activity small { color: var(--activity-color); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.lobby-activity h3 { margin: 5px 0 6px; font-size: 20px; letter-spacing: -.025em; }.lobby-activity p { max-width: 570px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lobby-activity div > b { display: block; margin-top: 11px; color: var(--muted-2); font-size: 10px; }.lobby-activity > i { color: var(--activity-color); font-size: 22px; font-style: normal; }
.lobby-side-stack { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; }
.lobby-resource-card, .lobby-update-card { display: block; padding: 22px; border: 1px solid var(--line-soft); border-radius: 15px; background: var(--surface); text-decoration: none; }
.lobby-resource-card h2, .lobby-update-card h2 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -.03em; }.lobby-resource-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lobby-guide-card a { display: inline-flex; margin-top: 18px; color: var(--text); font-size: 12px; font-weight: 800; text-decoration: none; }.lobby-guide-card a span { margin-left: 8px; color: var(--accent-strong); }
.lobby-database-card { position: relative; min-height: 210px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; background: linear-gradient(140deg,rgba(232,97,45,.12),transparent 60%),#121820; }
.database-mark { position: absolute; right: -5px; bottom: 18px; color: rgba(255,255,255,.045); font-size: 100px; font-weight: 950; line-height: .8; letter-spacing: -.12em; }.lobby-database-card > b { z-index: 1; color: var(--accent-strong); font-size: 11px; }
.lobby-update-card header { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }.lobby-update-card article { display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }.lobby-update-card article:last-child { padding-bottom: 0; border-bottom: 0; }
.lobby-update-card article small { color: var(--accent-strong); font-size: 9px; font-weight: 800; }.lobby-update-card article strong { font-size: 12px; }.lobby-update-card article p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.guide-shell { padding-top: 62px; }
.guide-hero { display: grid; grid-template-columns: 1fr minmax(320px,480px); align-items: end; gap: 70px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.guide-hero h1 { margin: 11px 0 0; font-size: clamp(48px,6vw,76px); line-height: 1; letter-spacing: -.06em; }.guide-hero > div:last-child > p { margin: 0 0 22px; color: var(--muted); line-height: 1.75; }.guide-hero a { color: var(--text); font-size: 13px; font-weight: 800; text-decoration: none; }.guide-hero a span { margin-left: 8px; color: var(--accent-strong); }
.guide-jump { position: sticky; z-index: 5; top: 64px; display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 20px; border-bottom: 1px solid var(--line); background: rgba(9,12,17,.9); backdrop-filter: blur(15px); }.guide-jump a { --guide-tab-color: var(--accent-strong); position: relative; min-height: 58px; display: flex; align-items: center; border-right: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }.guide-jump a.tone-blue { --guide-tab-color: #78a9ff; }.guide-jump a.tone-gold { --guide-tab-color: #e6bd63; }.guide-jump a + a { padding-left: 20px; }.guide-jump a:hover,.guide-jump a[aria-current="page"] { color: var(--text); }.guide-jump a[aria-current="page"]::after { content: ""; position: absolute; right: 20px; bottom: -1px; left: 0; height: 2px; background: var(--guide-tab-color); }.guide-jump a + a[aria-current="page"]::after { left: 20px; }
.guide-start { margin:34px 0 16px; }.guide-start > header { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,440px); align-items:end; gap:7px 48px; margin-bottom:16px; }.guide-start > header .eyebrow { grid-column:1/-1; }.guide-start h2 { margin:0; font-size:27px; letter-spacing:-.04em; }.guide-start > header > p:last-child { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }.guide-start > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }.guide-start a { position:relative; min-height:150px; display:grid; align-content:start; gap:7px; padding:20px 42px 20px 20px; border:1px solid var(--line-soft); border-radius:14px; background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(13,18,25,.84)); color:var(--text); text-decoration:none; transition:border-color .16s,transform .16s,background .16s; }.guide-start a:hover,.guide-start a:focus-visible { border-color:rgba(232,97,45,.55); background:linear-gradient(145deg,rgba(232,97,45,.09),rgba(13,18,25,.9)); transform:translateY(-2px); }.guide-start a small { color:var(--muted-2); font-size:9px; font-weight:800; }.guide-start a strong { font-size:18px; }.guide-start a span { color:var(--muted); font-size:11px; line-height:1.6; }.guide-start a b { position:absolute; right:18px; top:18px; color:var(--accent-strong); font-size:18px; }
.guide-shared { margin: 34px 0 72px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(125deg,rgba(232,97,45,.08),transparent 48%),var(--surface); }.guide-shared > header { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,440px); align-items: end; gap: 8px 48px; margin-bottom: 22px; }.guide-shared > header .eyebrow { grid-column: 1/-1; }.guide-shared h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }.guide-shared > header > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.guide-shared > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.guide-shared article { min-width: 0; padding: 17px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(5,8,12,.34); }.guide-shared article > span { color: var(--accent-strong); font-size: 9px; font-weight: 900; }.guide-shared h3 { margin: 11px 0 8px; font-size: 15px; }.guide-shared article p { margin: 0; color: #b8c3d1; font-size: 11px; line-height: 1.6; }.guide-shared article small { display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; line-height: 1.55; }
.guide-mode-list { display: grid; }.guide-mode-block { --guide-color: var(--accent-strong); scroll-margin-top: 140px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }.guide-mode-block.tone-blue { --guide-color: #78a9ff; }.guide-mode-block.tone-gold { --guide-color: #e6bd63; }.guide-mode-block[hidden] { display: none; }.guide-mode { min-height: 390px; display: grid; grid-template-columns: 90px minmax(0,1fr) 300px; gap: 34px; padding: 54px 0; }.guide-mode-number,.guide-mode-block .mode-kicker { color: var(--guide-color); }.guide-mode-number { font-size: 13px; font-weight: 900; }.guide-mode-main h2 { max-width: 650px; margin: 8px 0 14px; font-size: clamp(30px,4vw,46px); line-height: 1.08; letter-spacing: -.05em; }.guide-mode-main > p:not(.mode-kicker) { max-width: 670px; margin: 0; color: var(--muted); line-height: 1.75; }.guide-mode-main ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 0; padding: 0; list-style: none; }.guide-mode-main li { padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 10px; }
.guide-mode aside { align-self: center; display: grid; gap: 7px; padding: 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }.guide-mode aside > small { color: var(--accent-strong); font-size: 9px; font-weight: 800; letter-spacing: .09em; }.guide-mode aside > p { margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.65; }.guide-mode aside > strong { font-size: 12px; }.guide-mode aside > span { color: var(--muted-2); font-size: 10px; }.guide-mode aside > a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 0 12px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 850; text-decoration: none; }.guide-mode aside > a b { font-size: 17px; }
.guide-basics { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; padding: 28px; border: 1px solid rgba(232,97,45,.24); border-radius: 16px; background: linear-gradient(120deg,rgba(232,97,45,.08),transparent 55%),var(--surface); }.guide-basics h3, .guide-topics > header h3 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.035em; }.guide-basics ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }.guide-basics li { min-height: 92px; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(5,8,12,.3); }.guide-basics li span { color: var(--accent-strong); font-size: 10px; font-weight: 900; }.guide-basics li p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.guide-topics { margin-top: 42px; }.guide-topics > header { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 18px; }.guide-topics > header .eyebrow { grid-column: 1 / -1; }.guide-topics > header > p:last-child { margin: 0; color: var(--muted-2); font-size: 11px; }.guide-topic-grid { display: grid; gap: 9px; }.guide-topic { min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(17,23,31,.68); }.guide-topic[open] { border-color: color-mix(in srgb,var(--guide-color) 35%,var(--line)); background: linear-gradient(110deg,color-mix(in srgb,var(--guide-color) 6%,transparent),rgba(17,23,31,.78)); }.guide-topic summary { min-height: 62px; display: grid; grid-template-columns: 34px minmax(0,1fr) 24px; align-items: center; gap: 10px; padding: 0 18px; cursor: pointer; list-style: none; }.guide-topic summary::-webkit-details-marker { display: none; }.guide-topic summary > span { color: var(--guide-color); font-size: 9px; font-weight: 900; }.guide-topic h4 { margin: 0; font-size: 17px; letter-spacing: -.025em; }.guide-topic summary > i { position: relative; width: 18px; height: 18px; justify-self: end; border: 1px solid var(--line); border-radius: 50%; }.guide-topic summary > i::before,.guide-topic summary > i::after { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; border-top: 1px solid var(--muted); }.guide-topic summary > i::after { transform: rotate(90deg); transition: transform .16s; }.guide-topic[open] summary > i::after { transform: rotate(0); }.guide-topic-body { display: grid; padding: 0 18px 18px 62px; }.guide-topic-body > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }.guide-topic-body > ul { display: grid; gap: 7px; margin: 16px 0; padding: 0; list-style: none; }.guide-topic-body > ul li { position: relative; padding-left: 13px; color: #b8c3d1; font-size: 10px; line-height: 1.5; }.guide-topic-body > ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--guide-color); }.guide-topic-body > aside { padding: 11px; border-left: 2px solid var(--guide-color); border-radius: 0 8px 8px 0; background: color-mix(in srgb,var(--guide-color) 7%,transparent); }.guide-topic-body > aside strong { color: var(--guide-color); font-size: 8px; letter-spacing: .12em; }.guide-topic-body > aside p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.guide-topic-body > a { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--text); font-size: 10px; font-weight: 800; text-decoration: none; }.guide-topic-body > a b { color: var(--guide-color); font-size: 15px; }
.guide-database { margin-top:55px; padding:34px; border:1px solid rgba(232,97,45,.3); border-radius:18px; background:linear-gradient(120deg,rgba(232,97,45,.1),transparent 55%),var(--surface); }.guide-database > header { display:grid; grid-template-columns:minmax(0,1fr) 220px; align-items:end; gap:40px; }.guide-database h2 { margin:6px 0 9px; font-size:27px; }.guide-database header p:not(.eyebrow) { max-width:760px; margin:0; color:var(--muted); line-height:1.7; }.guide-database header > a { min-height:54px; display:flex; align-items:center; justify-content:space-between; padding:0 17px; border:1px solid rgba(232,97,45,.38); border-radius:10px; background:rgba(0,0,0,.2); color:var(--text); font-weight:850; text-decoration:none; }.guide-database header > a b { color:var(--accent-strong); font-size:20px; }.guide-database-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:24px; }.guide-database-grid article { min-width:0; padding:17px; border:1px solid var(--line-soft); border-radius:11px; background:rgba(5,8,12,.32); }.guide-database-grid article > span { color:var(--accent-strong); font-size:9px; font-weight:900; }.guide-database-grid h3 { margin:10px 0 7px; font-size:14px; }.guide-database-grid p { margin:0; color:var(--muted); font-size:10px; line-height:1.65; }.guide-database footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line-soft); }.guide-database footer p { margin:0; color:var(--muted-2); font-size:9px; line-height:1.6; }

@media (max-width: 1050px) {
  .lobby-hero { grid-template-columns: 1fr 380px; }.lobby-hero-copy { padding: 46px; }.lobby-content-grid { grid-template-columns: 1fr 320px; }.guide-shared > div { grid-template-columns: repeat(2,minmax(0,1fr)); }.guide-database-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.guide-mode { grid-template-columns: 60px minmax(0,1fr) 260px; gap: 25px; }.guide-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .lobby-nav a { padding-inline: 8px; }.lobby-nav a[aria-current="page"]::after { right: 8px; left: 8px; }
  .lobby-hero { min-height: 0; grid-template-columns: 1fr; }.lobby-court-visual { min-height: 260px; border-top: 1px solid rgba(255,255,255,.06); border-left: 0; }.lobby-save-grid { grid-template-columns: 1fr; }.lobby-content-grid { grid-template-columns: 1fr; }.lobby-side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }.lobby-update-card { grid-column: 1 / -1; }
  .lobby-court-visual.has-save .lobby-arena-art { opacity: .58; }
  .guide-hero { grid-template-columns: 1fr; gap: 24px; }.guide-start > header,.guide-shared > header,.guide-database > header { grid-template-columns:1fr; }.guide-start > header .eyebrow,.guide-shared > header .eyebrow { grid-column:auto; }.guide-start > div { grid-template-columns:1fr; }.guide-mode { grid-template-columns: 50px minmax(0,1fr); }.guide-mode aside { grid-column: 2; }.guide-basics { grid-template-columns: 1fr; }.guide-database > header { gap:20px; }
}
@media (max-width: 640px) {
  .lobby-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; height: calc(58px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding: 0 5px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(12,16,22,.96); box-shadow: 0 -12px 35px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
  .lobby-nav a { justify-content: center; padding: 0 2px; font-size: 10px; }.lobby-nav a[aria-current="page"]::after { top: 0; right: 20%; bottom: auto; left: 20%; }.lobby-nav a span { display: none; }
  .lobby-shell, .guide-shell { width: calc(100% - 28px); padding: 20px 0 100px; }.lobby-hero { border-radius: 18px; }.lobby-hero-copy { padding: 34px 24px; }.lobby-hero-copy h1 { font-size: 42px; }.lobby-hero-copy > p:not(.eyebrow) { font-size: 13px; }.lobby-hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }.lobby-start { width: 100%; }.lobby-secondary-link { justify-content: center; border-bottom: 0; }.lobby-court-visual { min-height: 210px; padding: 18px; }.lobby-visual-save { gap: 12px; padding: 15px; }.lobby-visual-save-details > div:nth-child(n+3) { display: none; }.lobby-visual-save-details { grid-template-columns: repeat(2,minmax(0,1fr)); }.lobby-visual-save-title strong { font-size: 19px; }.lobby-visual-save-footer { align-items: stretch; flex-direction: column; }.lobby-visual-save-footer a { width: 100%; justify-content: space-between; }.lobby-section { margin-top: 38px; }.lobby-section-heading { align-items: flex-start; }.lobby-section-heading > span { display: none; }.lobby-activity { grid-template-columns: 38px minmax(0,1fr); gap: 13px; padding: 18px 14px; }.lobby-activity > i { display: none; }.lobby-activity h3 { font-size: 18px; }.lobby-side-stack { grid-template-columns: 1fr; grid-template-rows: none; }.lobby-update-card { grid-column: auto; }
  .guide-hero { padding: 15px 0 36px; }.guide-hero h1 { font-size: 45px; }.guide-jump { overflow-x: auto; grid-template-columns: repeat(3,minmax(130px,1fr)); top: 64px; }.guide-start { margin-top:24px; }.guide-start a { min-height:0; }.guide-shared { margin:24px 0 48px; padding:20px; }.guide-shared > div { grid-template-columns:1fr; }.guide-mode-block { padding-bottom: 52px; }.guide-mode { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 38px 0; }.guide-mode aside { grid-column: auto; margin-top: 12px; }.guide-mode-main h2 { font-size: 32px; }.guide-mode-main ul { align-items: flex-start; flex-direction: column; }.guide-basics { padding: 20px; }.guide-basics ol, .guide-topic-grid { grid-template-columns: 1fr; }.guide-topics > header { display: block; }.guide-topics > header > p:last-child { margin-top: 8px; }.guide-database { padding:24px; }.guide-database-grid,.guide-database footer { grid-template-columns:1fr; }.guide-database header > a { width:100%; }
}

@media (max-width: 960px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 520px; gap: 20px; padding: 42px 0; }
  .hero-copy { display: none; }
  .compact-heading { display: block; }
  .compact-heading > p:last-child { margin-top: 10px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 300px; display: grid; grid-template-columns: 220px 1fr; grid-template-rows: 1fr auto; column-gap: 22px; }
  .mode-art { height: auto; min-height: 255px; grid-row: 1 / 3; margin: -22px 0 -22px -22px; border-right: 1px solid var(--line-soft); border-bottom: 0; }
  .mode-copy { align-self: center; }
}
@media (max-width: 640px) {
  .topbar-inner, .page-shell, .game-nav-inner, .dashboard-grid { width: calc(100% - 28px); }
  .topbar-caption, .account-link > span:last-child { display: none; }
  .topbar-product { gap: 11px; }
  .mode-context { padding-right: 7px; padding-left: 10px; }
  .mode-context-switch, .mode-context-kicker { display: none; }
  .mode-context strong { grid-row: 1 / 3; align-self: center; font-size: 12px; }
  .page-shell { padding-top: 32px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 34px; }
  .panel, .setup-panel, .auth-panel { padding: 18px; border-radius: 13px; }
  .auth-layout { width: calc(100% - 28px); }
  .form-grid { grid-template-columns: 1fr; }
  .team-toolbar { align-items: stretch; flex-direction: column; }
  .team-search { width: 100%; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card { min-height: 98px; grid-template-columns: 46px minmax(0,1fr) 42px; gap: 10px; padding: 11px; }
  .team-mark { width: 46px; height: 46px; border-radius: 12px; }
  .team-rating { width: 42px; }
  .team-rating b { width: 42px; height: 42px; }
  .create-bar > div { display: none; }
  .create-bar .primary { width: 100%; }
  .dashboard-head, .team-hero { min-height: 132px; padding: 25px 16px; }
  .team-hero { flex-wrap: wrap; }
  .team-emblem { width: 62px; height: 62px; flex-basis: 62px; }
  .dashboard-head h1, .team-hero h1 { font-size: 28px; }
  .record { display: none; }
  .team-hero-side { width: 100%; margin-left: 0; padding-top: 15px; border-top: 1px solid var(--line-soft); }
  .game-nav { top: 64px; }
  .game-nav-inner { gap: 22px; }
  .roster-row { grid-template-columns: minmax(0, 1.5fr) 0.6fr 0.35fr; }
  .roster-row > :last-child { display: none; }
  .mode-shell { width: calc(100% - 28px); padding: 36px 0 70px; }
  .mode-heading { display: block; margin-bottom: 22px; }
  .mode-heading h1 { font-size: 36px; }
  .mode-heading > p { margin-top: 10px; }
  .mode-card { min-height: 400px; display: flex; padding: 18px; }
  .mode-art { height: 180px; min-height: 180px; margin: -18px -18px 20px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .mode-copy { width: 100%; align-self: stretch; }
  .save-delete-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 20px; border-radius: 13px; }
  .save-delete-dialog-head h2 { font-size: 25px; }
  .save-summary { grid-template-columns: 1fr; }
  .delete-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { min-height: 92px; grid-template-columns: 50px minmax(0, 1fr) 46px; padding: 12px; }
  .team-mark { width: 50px; height: 50px; }
  .team-rating { width: 46px; }
  .team-rating b { width: 46px; height: 46px; }
  .conference-filter button { flex: 1; min-width: 0; }
  .conference-filter { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Persistent write feedback shared by game modes. */
.save-command-banner {
  position: fixed;
  z-index: 1200;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 190, 70, .55);
  border-radius: 12px;
  color: #fff4d1;
  background: rgba(31, 25, 17, .97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}
.save-command-banner[data-state="saving"] { border-color: rgba(232, 97, 45, .55); }
.save-command-banner[data-state="error"] { border-color: rgba(239, 106, 100, .62); background: rgba(39, 20, 20, .97); }
.save-command-banner[data-state="conflict"] { border-color: rgba(239, 106, 100, .62); }
.save-command-banner[hidden] { display: none; }
.save-command-actions { display: flex; flex: none; gap: 7px; }
.save-command-banner button {
  flex: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #17120a;
  background: #f6b947;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.save-command-banner .save-command-discard { color: #fff4d1; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 244, 209, .28); }
.live-player-availability {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(143, 156, 175, .22);
  border-radius: 10px;
  background: rgba(14, 22, 33, .72);
}
.live-player-availability > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.live-player-availability h4 { margin: 0; color: #eef3f9; font-size: 13px; }
.live-player-availability [data-live-excluded-summary] {
  flex: none;
  border-radius: 999px;
  padding: 5px 8px;
  color: #f2a06f;
  background: rgba(232, 97, 45, .12);
  font-size: 10px;
}
.live-player-availability [data-live-excluded-players] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.live-player-availability [data-live-excluded-players] label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(143, 156, 175, .18);
  border-radius: 8px;
  color: #c8d2df;
  background: rgba(255, 255, 255, .025);
}
.live-player-availability input { accent-color: #e8612d; }
.live-player-availability label:has(input:not(:checked)) { color: #8290a3; opacity: .72; }
.live-player-tools { display:grid; gap:8px; grid-template-columns:minmax(0,1fr) 130px; margin-top:12px; }
.live-player-tools label { color:#8f9caf; display:grid; font-size:9px; gap:5px; }
.live-player-tools input,.live-player-tools select { background:#0b121c; border:1px solid #354157; border-radius:8px; color:#eef3f9; min-height:42px; min-width:0; padding:8px 10px; width:100%; }
.live-player-availability [data-live-excluded-players] { display:grid; gap:8px; grid-template-columns:1fr; margin-top:10px; max-height:480px; overflow:auto; overscroll-behavior:contain; padding-right:3px; scrollbar-gutter:stable; }
.basketball-live-player-row { align-items:center; background:linear-gradient(135deg,rgba(18,27,40,.96),rgba(9,15,23,.96)); border:1px solid rgba(143,156,175,.2); border-radius:11px; display:grid; gap:4px 9px; grid-template-columns:42px minmax(0,1fr) 38px; min-width:0; padding:8px; }
.basketball-live-player-row.is-on-court { border-color:rgba(232,97,45,.58); box-shadow:inset 3px 0 #e8612d; }
.basketball-live-player-row.is-unavailable { filter:saturate(.5); opacity:.68; }
.basketball-live-player-row__portrait { align-items:center; background:#1a2534; border:1px solid #36445a; border-radius:9px; display:flex; grid-row:1/3; height:45px; justify-content:center; overflow:hidden; width:42px; }
.basketball-live-player-row__portrait img { height:100%; object-fit:cover; object-position:center 18%; width:100%; }
.basketball-live-player-row__portrait i { color:#f19b70; font-size:15px; font-style:normal; font-weight:900; }
.basketball-live-player-row__identity { display:grid; min-width:0; }
.basketball-live-player-row__identity strong,.basketball-live-player-row__identity small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.basketball-live-player-row__identity strong { color:#f2f5fa; font-size:11px; }
.basketball-live-player-row__identity small { color:#8491a5; font-size:8px; }
.basketball-live-player-row__rating { align-items:center; background:linear-gradient(145deg,#e98251,#a94120); border:1px solid rgba(255,255,255,.18); border-radius:8px; color:#fff; display:flex; font-size:13px; height:34px; justify-content:center; }
.basketball-live-player-row__state { color:#eaa17d; font-size:8px; font-weight:800; }
.basketball-live-player-row__actions { align-items:center; display:grid; gap:6px; grid-column:1/-1; grid-template-columns:minmax(0,1fr) 84px; margin-top:4px; }
.basketball-live-player-row__actions select,.basketball-live-player-row__actions button { border-radius:8px; font-size:9px; min-height:38px; min-width:0; padding:6px 8px; }
.basketball-live-player-row__actions select { background:#0c1420; border:1px solid #39475b; color:#eaf0f7; width:100%; }
.basketball-live-player-row__actions button { background:transparent; border:1px solid #87503a; color:#efa37e; cursor:pointer; font-weight:800; }
.basketball-live-player-row__actions button:disabled,.basketball-live-player-row__actions select:disabled { cursor:not-allowed; opacity:.45; }
.basketball-live-player-empty { color:#8794a8; font-size:10px; margin:0; padding:18px; text-align:center; }
@media(max-width:620px) {
  .live-player-tools { grid-template-columns:1fr 112px; }
  .live-player-tools input,.live-player-tools select { min-height:44px; }
  .live-player-availability [data-live-excluded-players] { max-height:none; overflow:visible; padding-right:0; }
  .basketball-live-player-row__actions { grid-template-columns:minmax(0,1fr) 92px; }
  .basketball-live-player-row__actions select,.basketball-live-player-row__actions button { min-height:44px; }
}
.pregame-minute-editor {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(143, 156, 175, .22);
  border-radius: 12px;
  background: rgba(14, 22, 33, .64);
}
.pregame-minute-editor > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.pregame-minute-editor h3, .pregame-minute-editor p { margin: 0; }
.pregame-minute-editor > p { margin-top: 5px; color: #98a6b9; font-size: 12px; }
.pregame-minute-editor [data-pregame-minute-rows] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.pregame-minute-editor [data-pregame-minute-rows] label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(143, 156, 175, .16);
  border-radius: 8px;
}
.pregame-minute-editor label span, .pregame-minute-editor label strong,
.pregame-minute-editor label small { display: block; min-width: 0; }
.pregame-minute-editor label small { margin-top: 2px; color: #8f9caf; }
.pregame-minute-editor input { min-height: 40px; width: 100%; text-align: center; }
.pregame-rotation-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(232, 97, 45, .32);
  border-radius: 10px;
  color: #dbe4ef;
  background: rgba(232, 97, 45, .08);
  font-size: 12px;
  line-height: 1.5;
}
.pregame-rotation-feedback[hidden] { display: none; }
.pregame-rotation-feedback button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(232, 97, 45, .45);
  border-radius: 8px;
  color: #fff;
  background: rgba(232, 97, 45, .16);
  cursor: pointer;
}
.fast-tactic-grid + .pregame-rotation-feedback { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .save-command-banner { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: none; align-items: stretch; flex-direction: column; }
  .save-command-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .save-command-banner button { min-height: 44px; }
  .live-player-availability [data-live-excluded-players] { grid-template-columns: 1fr; }
  .pregame-minute-editor [data-pregame-minute-rows] { grid-template-columns: 1fr; }
  .pregame-rotation-feedback { align-items: stretch; flex-direction: column; }
  .pregame-rotation-feedback button { min-height: 44px; }
}
