/* Courtside product system. Functional court/replay graphics keep their own palette. */
:root {
  --bg: #eef1f4; --surface: #fff; --surface-alt: #f3f5f7;
  --text: #17212b; --muted: #566374; --border: #d6dde5;
  --primary: #b63d09; --primary-dark: #852c06;
  --court-paper: #f3f5f7; --court-ink: #17212b; --court-night: #101820;
  --court-rim: #f47835; --court-amber: #ffad75; --court-chalk: #fff;
  --body-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --display-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --score-font: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --public-paper: #eef1f4; --public-paper-light: #fff; --public-muted: #566374;
  --public-border: #d6dde5; --public-night: #101820; --public-rim: #b63d09;
}
html { background: var(--bg); scroll-padding-top: 85px; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--body-font); }
body.is-public { --public-ink: #17212b; --public-muted: #566374; --public-paper: #eef1f4; --public-paper-light: #fff; --public-paper-deep: #e5eaf0; --public-border: #d6dde5; --public-night: #101820; --public-rim: #b63d09; background: var(--bg); color: var(--text); }
body.is-public .page { max-width: 1320px; margin: 0 auto; background: none; }
body.is-public .topbar { display: flex; flex-direction: row; align-items: center; border-bottom: 1px solid #ffffff1c; }
body.is-public .public-nav { display: flex; flex-direction: row; flex-wrap: nowrap; width: auto; margin-left: auto; gap: 4px; }
body.is-public .public-nav a { width: auto; white-space: nowrap; }
body.is-public :where(.welcome-page, .start-page) .button, body.is-public :where(.welcome-page, .start-page) button { border: 1px solid transparent; border-radius: 7px; background: #f47835; color: #151b22; font-size: 14px; }
body.is-public :where(.welcome-page, .start-page) .button.secondary { background: #fff; color: #263647; border-color: #c8d2dd; }
body.is-public :where(.welcome-page, .start-page) .button:hover, body.is-public :where(.welcome-page, .start-page) button:hover { background: #ff985e; color: #151b22; border-color: transparent; }
body.is-public .welcome-hero .button.secondary { background: #16232ad9; color: #fff; border-color: #66727b; }
body.is-public .start-section-links .button { background: transparent; color: #344659; border: 0; }
body.is-public .start-section-links .button[aria-current=true] { background: #fff; color: #17212b; }
body.is-public .public-nav .public-start-link { background: #f47835; color: #101820; border: 0; border-radius: 7px; }
body.is-public .start-form .password-reveal { background: none; color: #a6390c; padding: 8px 0; border: 0; }
body::before, .page::before, .topbar::after, .page-header::before, .page-header::after,
.card::after, .action-card::before, .action-card::after, .eyebrow::before { display: none; }
/* Retire the legacy decorative shell at every route-specific breakpoint. */
body .world-scene, body .world-footer { display: none !important; }
body .page { width: min(100%, 1320px); max-width: 1320px; padding: 30px 32px 64px; background: none; box-shadow: none; }
body.endpoint-roster .page, body.endpoint-owner-exhibition .page, body.endpoint-advanced-stats .page { width: min(100%, 1560px); max-width: 1560px; }
body h1, body h2, body h3, body h4 { font-family: var(--display-font); color: var(--text); }
h1 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.045em; font-weight: 800; line-height: 1.12; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.3; }
body a { color: var(--primary); }
body a:hover { color: var(--primary-dark); }
body .eyebrow, .welcome-kicker, .start-card-label { font: 700 12px/1.4 var(--body-font); letter-spacing: .09em; color: #a6390c; text-transform: uppercase; }
body small { font-size: 13px; }
body .page-header { padding: 0; margin: 0 0 24px; border: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
body .page-header h1 { margin: 0; }
body .page-header p { font-size: 16px; margin: 8px 0 0; }
body .section-heading { border-bottom: 1px solid var(--border); }
body .card, body .action-card, body .table-panel, body .empty, body .trade-builder,
body .trade-partner-card, body .arena-build-form, body .loan-repayment-form, body .advanced-stats-filter {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  box-shadow: 0 2px 3px #14243504; clip-path: none; color: var(--text);
}
body .card { padding: 22px; }
body .action-card:hover, body .card:hover { transform: none; }
body button, body .button { min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; background: #f47835; color: #151b22; box-shadow: none; clip-path: none; font: 700 14px/1.4 var(--body-font); text-transform: none; letter-spacing: 0; }
body button:hover, body .button:hover { background: #ff985e; color: #151b22; transform: none; box-shadow: none; }
body .button.secondary, body button.secondary { background: #fff; color: #263647; border-color: #c8d2dd; }
body .button.secondary:hover { background: #edf2f6; }
body button:disabled { opacity: .55; cursor: not-allowed; }
body input:not([type=checkbox]):not([type=radio]):not([type=range]), body select, body textarea { min-height: 46px; border: 1px solid #aebbc8; border-radius: 7px; background: #fff; box-shadow: none; color: var(--text); font: 400 16px/1.4 var(--body-font); padding: 10px 12px; }
body input[type=checkbox], body input[type=radio] { accent-color: #b63d09; }
body :focus-visible { outline: 3px solid #1784d9; outline-offset: 4px; }
body .text-button { min-height: 44px; padding: 8px 0; color: var(--primary); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
body .text-button:hover { background: transparent; color: var(--primary-dark); }
body [hidden] { display: none !important; }
body progress { accent-color: #e26424; }
body th { font-size: 12px; letter-spacing: .035em; }
body th, body td { border-color: var(--border); }
body thead th { background: #edf2f6; color: #344457; }
body tbody tr:nth-child(even) { background: #f8fafb; }
/* App shell: quiet, predictable and keyboard navigable. */
body .topbar { position: sticky; top: 0; display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; min-height: 64px; gap: 20px; padding: 8px 28px; border: 0; border-bottom: 1px solid #ffffff1c; background: #101820; box-shadow: none; }
body .brand { font-size: 16px; padding: 0; gap: 9px; color: #fff; letter-spacing: -.015em; }
body .brand:hover { color: #fff; }
.brand-court-tick { display: none; }
body .brand-mark { width: 30px; height: 30px; flex-basis: 30px; box-shadow: none; }
body .nav { display: flex; flex: 1; flex-wrap: nowrap; align-items: center; gap: 3px; }
body .nav a, body .nav > button, body .nav-more > summary { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #cbd4de; font: 600 14px/1.4 var(--body-font); box-shadow: none; clip-path: none; text-transform: none; white-space: nowrap; }
body .nav a:hover, body .nav > button:hover, body .nav-more > summary:hover, body .nav a[aria-current=page] { color: #fff; background: #25313e; transform: none; }
body .nav a[aria-current=page] { box-shadow: inset 0 -2px #f47835; }
body .topbar .nav:has(.nav-more) > a[aria-current=page], body .topbar .nav-more:has(a[aria-current=page]) > summary { border: 0; background: #25313e; color: #fff; box-shadow: inset 0 -2px #f47835; }
body .topbar .nav > .nav-community-button { background: transparent; border: 0; box-shadow: none; text-transform: none; color: #cbd4de; font-size: 14px; }
body .topbar .nav a::before, body .topbar .nav > button::before, body .topbar .nav-more > summary::before { display: none; }
body .page .button.secondary { box-shadow: none; }
body .nav-more { position: relative; }
body .nav-more-menu { z-index: 80; width: min(640px, 90vw); border: 1px solid #364655; border-radius: 10px; background: #17232f; box-shadow: 0 14px 40px #0004; padding: 16px; }
body .nav-more-heading { color: #9aabbe; font-size: 12px; }
body .mobile-community-link { display: none; }
body .account-area { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; margin-left: auto; max-width: none; }
body .account-area a { color: #e1e8f0; font-size: 14px; }
body .account-menu { position: relative; }
body .account-menu > summary { cursor: pointer; display: list-item; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 6px; color: #fff; font-size: 14px; }
.account-menu-items { position: absolute; right: 0; top: calc(100% + 12px); width: 265px; padding: 12px; background: #17232f; border: 1px solid #364655; border-radius: 10px; box-shadow: 0 14px 40px #0004; }
body .account-menu-items > a { display: block; padding: 12px; border-radius: 5px; }
.account-menu-items > a:hover { background: #25313e; }
body .account-menu .logout { display: block; border-top: 1px solid #364655; padding: 8px 12px 0; margin: 0; }
body .account-menu .logout span { display: block; padding: 4px 0 12px; color: #b7c5d4; font-size: 13px; }
body .account-menu .logout button { width: 100%; }
body .nav-count { color: #101820; background: #ffad75; font-size: 12px; }
body .public-nav { justify-content: flex-end; }
body .public-nav a.public-start-link { background: #f47835; color: #101820; }
/* The first session: one dominant next decision, plus a visible route back. */
.owner-home { display: block; }
body .owner-home-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 24px; margin: 0; border: 0; background: none; box-shadow: none; }
body .owner-home-header h1 { margin: 8px 0; font-size: clamp(30px, 3.3vw, 46px); }
body .owner-home-header p { margin: 0; font-size: 16px; color: var(--muted); }
body .owner-record { min-width: 150px; padding: 0 0 0 28px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; color: var(--text); }
body .owner-record strong { color: var(--text); font: 800 38px/1.2 var(--score-font); }
body .owner-record span, body .owner-record small { color: var(--muted); font-size: 12px; }
.owner-journey { background: #15232f; color: #e0e8f0; border: 1px solid #293d4c; border-radius: 14px; padding: 24px 28px 14px; margin-bottom: 22px; }
.journey-intro { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.owner-journey .eyebrow { color: #ffad75; }
.owner-journey h2 { color: #fff; font-size: 30px; margin: 5px 0 8px; }
.owner-journey p { color: #bac9d7; margin: 0; max-width: 690px; font-size: 15px; }
.journey-count { display: grid; text-align: right; flex-shrink: 0; }
.journey-count strong { font: 600 34px/1.1 var(--score-font); color: #fff; }
.journey-count strong span { color: #8da0b2; font-size: 20px; }
.journey-count small { color: #9eb0c0; }
.owner-journey > progress { display: block; width: 100%; height: 4px; margin: 20px 0; border: 0; background: #354756; border-radius: 3px; }
.owner-journey progress::-webkit-progress-bar { background: #354756; }
.owner-journey progress::-webkit-progress-value { background: #f47835; }
.owner-journey progress::-moz-progress-bar { background: #f47835; }
.journey-current { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 20px; }
.journey-current h3 { color: #fff; font-size: 23px; margin: 3px 0 6px; }
.journey-current .button { flex-shrink: 0; }
.journey-map { border-top: 1px solid #ffffff20; padding-top: 12px; margin: 0; }
.journey-map summary { cursor: pointer; font-size: 13px; color: #aebecd; padding: 6px 0; }
.journey-map summary > span { margin-left: 12px; color: #fff; }
.journey-map ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px 0 0; margin: 0; gap: 12px; }
.journey-map li a { display: flex; gap: 9px; color: #aebecd; font-size: 13px; line-height: 1.35; min-height: 44px; }
.journey-map li a:hover { color: #fff; }
.journey-map small { display: block; margin-top: 4px; font-size: 12px; color: #8ea3b5; }
.journey-marker { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid #526574; border-radius: 50%; font-size: 12px; }
.journey-map .is-current a, .journey-map .is-current small { color: #ffad75; }
.journey-map .is-current .journey-marker { background: #f47835; color: #111b24; border-color: #f47835; }
.journey-map .is-complete .journey-marker { color: #9ae0c7; border-color: #5baf90; }
.journey-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: #9eb0c0; }
.journey-footer .text-button { color: #c1cfdb; font-size: 13px; }
.owner-journey--compact { padding: 16px 22px; }
.owner-journey--compact h2 { font-size: 22px; }
.owner-journey--compact > progress { margin: 14px 0 10px; }
.owner-journey--compact .journey-map { padding-top: 2px; }
.owner-journey a.journey-resume { display: inline-block; margin-top: 10px; color: #ffad75; }
body .owner-return { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 22px; border: 1px solid #cfd9e3; border-radius: 10px; background: #fff; }
.return-marker { width: 10px; height: 10px; border-radius: 50%; background: #258161; flex-shrink: 0; }
.owner-return h2 { font-size: 16px; margin: 0 0 4px; }
.owner-return p { margin: 0; color: var(--muted); font-size: 14px; }
.owner-return > a { margin-left: auto; flex-shrink: 0; font-size: 14px; font-weight: 600; }
body .owner-brief { gap: 0; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
body .owner-brief article { border: 0; border-radius: 0; border-right: 1px solid var(--border); background: #f8fafc; padding: 16px 18px; }
body .owner-brief article:last-child { border: 0; }
body .owner-brief article > span { font-size: 12px; color: var(--muted); }
body .owner-brief strong { font-size: 14px; line-height: 1.4; }
body .owner-next { margin-bottom: 26px; }
body .owner-next-main { padding: 22px; border: 1px solid var(--border); background: #fff; color: var(--text); }
body .owner-next-main h2 { font-size: 26px; color: var(--text); }
body .owner-next-main p, body .owner-next-context { color: var(--muted); font-size: 15px; }
body .owner-next-context { display: none; }
body .owner-next-main .eyebrow { color: #a6390c; }
body .owner-section-heading h2 { font-size: 24px; }
body .owner-pulse, body .owner-community { margin: 28px 0; }
body .owner-details { border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: none; margin: 18px 0; }
body .owner-stat-list dd { font-family: var(--score-font); }
.owner-guide-restore { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 14px; }
/* Team management: controls before decoration, no change to replay dimensions. */
body .workflow-visual { display: block; min-height: 0; border: 1px solid var(--border); background: #fff; border-radius: 10px; box-shadow: none; color: var(--text); }
body .workflow-visual-art { display: none; }
body .workflow-visual-copy { padding: 16px 22px; }
body .workflow-visual-copy h2 { color: var(--text); font-family: var(--display-font); font-size: 20px; }
body .workflow-visual-copy p { color: var(--muted); font-size: 14px; }
body .workflow-visual-steps { display: none; }
body .starting-five-board { margin: 0; border-radius: 12px; box-shadow: none; }
body .starting-five-board-heading { padding: 12px 18px; }
body .starting-five-court { min-height: 0; padding: 14px 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto; background: #1a2b38; }
body .starting-five-court::before, body .starting-five-court::after { display: none; }
body .starting-five-slot:nth-child(n) { grid-column: auto; grid-row: auto; border-color: #3e5567; border-radius: 8px; }
body .starting-five-slot { min-height: 145px; }
body .starting-five-slot .player-portrait { width: 80px; height: 94px; }
body .lineup-actions { padding: 16px 20px; border: 1px solid var(--border); background: #fff; border-radius: 10px; margin: 0; justify-content: space-between; }
body .lineup-actions p { margin: 3px 0 0; }
body .roster-card { padding: 18px; }
body .roster-card.starter-card { border-left: 4px solid #257d64; }
body .roster-card h2 { font-size: 22px; }
.roster-player-meta { font-size: 14px; margin: 5px 0 12px; }
body .roster-card .ratings-grid { gap: 8px; }
body .roster-card .rating { padding: 6px 10px; background: #f2f5f8; border: 0; border-radius: 5px; }
body .roster-card .rating span { font-size: 12px; color: #526274; }
body .roster-card .rating strong { color: #17212b; font-family: var(--score-font); }
.roster-contract { font-size: 13px; color: var(--muted); margin-top: 12px; }
.roster-contract summary { cursor: pointer; min-height: 30px; }
body .tactics-card { max-width: 1050px; }
.tactic-focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tactic-focus-grid select { width: 100%; margin-top: 8px; }
body .tactics-form { display: block; }
body .tactics-form > * + * { margin-top: 22px; }
body .tactics-form .button-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .tactic-preset { text-align: left; padding: 18px; white-space: normal; }
body .tactics-form .tactic-preset { display: block; grid-column: auto; width: 100%; }
.tactic-preset strong { display: block; font-size: 20px; margin-bottom: 6px; }
.tactic-preset small { display: block; font-weight: 400; color: var(--muted); }
body .tactic-preset[aria-pressed=true] { border: 2px solid #bd480f; background: #fff4eb; padding: 17px; }
body .advanced-tactics-heading { border-color: var(--border); }
.practice-next-move { border-top: 1px solid var(--border); padding: 24px 0; }
body .practice-game-viewer .viewer-call-text { color: #e3edf6; }
body .practice-game-viewer .notice { color: #e3edf6; background: #243545; border-color: #496274; }
/* Preserve readable contrast on intentional scoreboards and dark hero surfaces. */
body :is(.fan-home-hero, .notification-center-hero, .score-banner, .arena-scoreboard) .eyebrow { color: #ffad75; }
body :is(.fan-home-hero, .notification-center-hero) > a:not(.button) { color: #ffad75; }
body :is(.score-banner, .arena-scoreboard) .human-team-link,
body :is(.score-banner, .arena-scoreboard) .human-team-link:hover,
body :is(.score-banner, .arena-scoreboard) .human-team-link:focus-visible { color: #ffad75; }
body .trade-window.is-open, body .trade-window.is-open :is(strong, small, span) { color: #234637; }
body .trade-window.is-closed, body .trade-window.is-closed :is(strong, small, span) { color: #dce8f1; }
body .card.commissioner-clock { background: #15232f; border-color: #364b5b; color: #e3edf6; }
body .commissioner-clock :is(h2, h3, p, .muted) { color: #e3edf6; }
body .commissioner-clock .empty { color: var(--muted); }
body .commissioner-clock .eyebrow { color: #ffad75; }
body .message { border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px; box-shadow: none; }
body .message.success { background: #edf8f1; border-color: #bedccb; color: #28553e; }
body .message.error { background: #fff0ee; border-color: #e4b7b2; color: #8b3027; }
/* Entry: an editorial arena moment, then a focused two-step application. */
body.is-public .page { padding-top: 28px; }
body .welcome-page { display: block; padding: 0; }
body .welcome-hero.welcome-hero--decision { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .8fr); gap: 44px; align-items: end; min-height: 540px; padding: 48px; border: 0; border-radius: 16px; background: linear-gradient(90deg, #101820f5 10%, #101820d9 48%, #10182080), url('images/world/game-night.webp') center 55% / cover; box-shadow: none; }
body .welcome-hero .welcome-kicker { color: #ffb180; }
body .welcome-hero h1 { max-width: none; color: #fff; font: 900 clamp(42px, 5vw, 68px)/.99 Impact, 'Arial Narrow', var(--display-font); letter-spacing: -.01em; text-transform: uppercase; margin: 22px 0; }
.welcome-hero h1 em { color: #ff9a5e; font-style: normal; }
body .welcome-lede { font-size: 18px; line-height: 1.55; color: #d3dde7; max-width: 520px; }
body .welcome-actions { gap: 12px; margin-top: 26px; }
body .welcome-hero .button.secondary { border-color: #66727b; color: #fff; background: #16232ad9; }
body .welcome-entry-note { color: #b4c2ce; font-size: 12px; margin-top: 18px; }
body .welcome-live-proof { border: 1px solid #ffffff35; border-radius: 12px; padding: 24px; background: #101c26eb; box-shadow: none; color: #d1dbe5; }
body .welcome-live-proof h2 { font-size: 23px; color: #fff; }
body .welcome-live-proof p, body .welcome-live-proof dt { color: #bdcbd7; }
body .welcome-live-proof a { color: #ffad75; }
body .welcome-live-proof dd, body .live-proof-score strong { color: #fff; }
body .live-proof-status { color: #8de0b5; font-size: 12px; }
body .welcome-live-proof dt { font-size: 12px; }
body .welcome-live-proof dl > div { background: #263440; border: 0; border-radius: 6px; }
body .gm-moment { padding: 32px; margin-top: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: none; }
body .gm-moment-heading h2 { font-size: 30px; }
body .gm-moment-heading p { color: var(--muted); }
body .gm-moment-form label { border-radius: 8px; }
body .gm-moment-court { border: 0; border-radius: 10px; background: #eef3f7; padding: 24px; }
body .gm-moment-form { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
body .gm-moment-form label { background: #f8fafc; border-color: var(--border); }
body .gm-moment-form input { min-height: auto; }
body .gm-moment-form label:has(input:checked) { border-color: #bd480f; background: #fff4eb; }
body .welcome-section, body .welcome-join { padding: 48px 0; }
body .welcome-outcomes article { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
body .start-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 40px 70px; max-width: 1110px; margin: 24px auto 0; padding: 0; }
body .start-intro { max-width: none; margin: 0; padding-top: 24px; }
body .start-intro h1 { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.08; margin: 16px 0; }
body .start-intro p { font-size: 16px; line-height: 1.6; }
body .start-grid { display: flex; flex-direction: column; gap: 24px; }
body .start-card { width: 100%; padding: 30px; border: 1px solid var(--border); border-top: 3px solid #f47835; border-radius: 12px; box-shadow: 0 10px 36px #23344508; background: #fff; }
body .start-card h2 { font-size: 28px; margin: 8px 0 12px; }
.start-card h2:focus-visible { outline: 3px solid #1784d9; outline-offset: 4px; }
body .start-page .start-section-links { display: inline-flex; flex-direction: row; gap: 3px; padding: 4px; border: 1px solid #c9d3dd; border-radius: 9px; background: #e5eaf0; margin: 26px 0 12px; }
body .start-page .start-section-links .button { width: auto; }
body .start-section-links .button { color: #344659; background: transparent; border: 0; }
body .start-section-links .button[aria-current=true] { background: #fff; color: #17212b; box-shadow: 0 1px 5px #0001; }
.entry-expectations { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 26px; }
.entry-expectations ol { list-style: decimal-leading-zero; padding-left: 28px; margin: 18px 0; }
.entry-expectations li { padding-left: 12px; margin-bottom: 18px; color: #78889a; font-size: 14px; }
.entry-expectations strong, .entry-expectations span { display: block; }
.entry-expectations strong { color: var(--text); font-size: 16px; }
.entry-expectations span { color: var(--muted); margin-top: 2px; }
.entry-waiting { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 22px; }
.entry-waiting p { margin-bottom: 0; font-size: 14px; color: var(--muted); }
.signup-step { display: flex; flex-direction: column; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.signup-step legend { padding: 0; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.signup-step label { display: flex; flex-direction: column; gap: 6px; }
.signup-progress { font-size: 13px; font-weight: 700; padding: 10px 12px; background: #edf3f8; color: #3e5971; border-radius: 6px; }
body .start-form { display: flex; flex-direction: column; gap: 18px; }
body .start-form input { width: 100%; }
body .start-field-help { color: var(--muted); font-size: 13px; }
.signup-founder { padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 14px; }
.signup-founder summary { cursor: pointer; min-height: 30px; }
.signup-founder summary span { float: right; color: var(--muted); }
.signup-founder label { margin-top: 16px; }
.signup-controls { display: flex; gap: 12px; }
.signup-controls > button:not([data-signup-back]) { flex: 1; }
body .start-season-notice { padding: 14px; background: #fff6e9; border: 1px solid #ecd2ae; border-radius: 8px; }
body .start-season-notice h3 { font-size: 14px; }
body .start-season-notice p { font-size: 13px; color: #674b28; }
.start-form .password-reveal { align-self: flex-start; margin-top: -12px; font-size: 13px; min-height: 36px; }
.start-note-list { font-size: 13px; color: var(--muted); }
.start-back { grid-column: 1 / -1; margin: 0; font-size: 14px; }
@media (max-width: 1150px) {
  body .topbar { gap: 12px; padding: 8px 20px; }
  body .brand { font-size: 14px; }
  body .nav a, body .nav > button, body .nav-more > summary { padding: 10px 8px; }
  body .account-area { gap: 10px; }
  body .account-menu > summary { max-width: 105px; }
  body .welcome-hero.welcome-hero--decision { padding: 36px; gap: 28px; }
}
@media (max-width: 900px) {
  body.is-member:not(.is-owner) .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  body.is-member:not(.is-owner) .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  body.is-member:not(.is-owner) .account-area { grid-column: 2; grid-row: 1; }
  body.is-member:not(.is-owner) .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  body.is-member:not(.is-owner) .nav > * { flex-shrink: 0; }
  body.is-member:not(.is-owner) .nav > a, body.is-member:not(.is-owner) .topbar .nav > button { font-size: 13px; padding-inline: 8px; }
  body.is-owner { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.is-owner .nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: #101820; border-top: 1px solid #364655; }
  body.is-owner .nav > a, body.is-owner .nav-more > summary { justify-content: center; min-height: 50px; font-size: 13px; padding: 10px 4px; }
  body.is-owner .nav > .nav-community-button { display: none; }
  body .mobile-community-link { display: block; width: 100%; text-align: left; color: #fff; background: #263746; }
  body.is-owner .nav-more-menu { position: fixed; top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; max-height: 70vh; overflow-y: auto; }
  body.is-owner .community-dock { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body .page { padding: 24px 22px 48px; }
  .owner-return { flex-wrap: wrap; }
  .owner-return > a { margin-left: 26px; }
  .journey-map ol { gap: 8px; }
  .journey-map li a { flex-direction: column; }
  body .welcome-hero.welcome-hero--decision { grid-template-columns: 1fr; min-height: 0; }
  body .welcome-live-proof { display: none; }
  body .start-page { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(330px, 1fr); }
  .entry-expectations { display: none; }
  body .start-card { padding: 24px; }
}
@media (max-width: 600px) {
  body .topbar { min-height: 60px; padding: 8px 14px; gap: 10px; }
  body .brand { font-size: 12px; gap: 7px; }
  body .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
  body .account-menu > summary { max-width: 100px; font-size: 13px; }
  body .account-area { gap: 8px; }
  body .account-area a { font-size: 13px; }
  body.is-public .brand-name { display: none; }
  body .public-nav a { font-size: 13px; padding: 10px 9px; }
  body .page, body.is-public .page { padding: 20px 16px 40px; }
  body .owner-home-header { gap: 12px; align-items: flex-start; padding-bottom: 20px; }
  body .owner-home-header h1 { font-size: 29px; }
  body .owner-home-header p { font-size: 14px; }
  body .owner-record { min-width: 80px; padding-left: 12px; }
  body .owner-record strong { font-size: 27px; }
  body .owner-record small { font-size: 12px; }
  .owner-journey { padding: 20px 18px 10px; }
  .owner-journey h2 { font-size: 25px; }
  .journey-intro { gap: 14px; }
  .journey-count strong { font-size: 28px; }
  .journey-current { display: block; }
  .journey-current .button { width: 100%; margin-top: 18px; }
  .journey-map ol { grid-template-columns: 1fr; gap: 8px; }
  .journey-map li a { flex-direction: row; align-items: center; min-height: 40px; }
  .journey-map small { display: inline; margin-left: 8px; }
  .journey-footer { align-items: flex-start; }
  .journey-footer small { font-size: 12px; padding-top: 12px; }
  .owner-journey--compact { padding: 16px; }
  .owner-journey--compact h2 { font-size: 21px; }
  body .owner-return { padding: 16px; align-items: flex-start; }
  .return-marker { margin-top: 7px; }
  .owner-return > div { flex: 1; }
  .owner-return > a { margin-left: 26px; }
  body .owner-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .owner-brief article { padding: 14px; border-bottom: 1px solid var(--border); }
  body .owner-next-main h2 { font-size: 23px; }
  body .card { padding: 18px; }
  body .lineup-actions { display: block; padding: 16px; }
  body .lineup-actions button { width: 100%; margin-top: 12px; }
  body .starting-five-court { padding: 12px 8px; gap: 5px; }
  body .starting-five-slot { min-height: 115px; padding: 7px 3px; }
  body .starting-five-slot strong { font-size: 12px; }
  body .starting-five-slot .player-portrait { width: 42px; height: 50px; }
  body .roster-card-layout { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  body .roster-card .player-portrait { width: 56px; height: 68px; }
  body .roster-card h2 { font-size: 20px; }
  body .roster-card .card-title-row { display: block; }
  body .roster-card .ratings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .tactic-focus-grid { grid-template-columns: 1fr; gap: 14px; }
  body .tactics-form .button-row { grid-template-columns: 1fr; }
  body .tactic-preset { padding: 14px; }
  body .tactic-preset[aria-pressed=true] { padding: 13px; }
  .tactic-preset strong { font-size: 18px; }
  body .welcome-hero.welcome-hero--decision { padding: 30px 24px; gap: 0; border-radius: 12px; }
  body .welcome-hero h1 { font-size: clamp(40px, 10vw, 60px); }
  body .welcome-lede { font-size: 16px; }
  body .welcome-actions { display: grid; grid-template-columns: 1fr; }
  body .welcome-actions .button { width: 100%; }
  body .gm-moment { padding: 22px 18px; }
  body .gm-moment-heading h2 { font-size: 26px; }
  body .start-page { display: block; margin-top: 0; }
  body .start-intro { padding: 0; margin-bottom: 24px; }
  body .start-intro h1 { font-size: 34px; }
  body .start-intro > p { font-size: 14px; }
  body .start-intro .welcome-kicker { font-size: 12px; }
  body .start-card { padding: 24px 20px; }
  body .start-section-links { margin-top: 20px; }
  .start-back { margin-top: 24px; }
}
@media (max-width: 760px) {
  body .viewer-controls :is(button, .button) { width: auto; }
}
@media (max-width: 360px) {
  body.is-member .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  body .owner-journey, body .welcome-hero, body .topbar, body .nav { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .journey-marker, .return-marker { border: 1px solid CanvasText; }
  body .button, body button { border: 1px solid ButtonText; }
}
@media print { body .topbar, body .nav, .community-dock { display: none; } body .page { max-width: none; padding: 0; } }
