@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #070b10;
  --panel: #111820;
  --panel-soft: #18212b;
  --text: #f5f7f9;
  --muted: #9aa7b4;
  --blue: #2f83c5;
  --blue-bright: #67baff;
  --yellow: #f0cc36;
  --line: rgba(255, 255, 255, .12);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }

.login-layout { min-height: 100svh; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; }
.hero-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 12, .5) 0%, rgba(5, 8, 12, .08) 46%, transparent 70%), url('/static/images/rankings-hero.png') center / cover no-repeat; }
.login-layout::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2, 4, 7, .35), transparent 28%, rgba(2, 4, 7, .48)); }
.brand-lockup { position: absolute; z-index: 3; top: 38px; left: 48px; color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; letter-spacing: .18em; }
.brand-symbol, .wordmark > span { width: 43px; height: 43px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-bright), #1c6097); border-radius: 4px 13px 4px 13px; color: white; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.04em; box-shadow: 0 8px 30px rgba(22, 108, 175, .35); }
.brand-lockup strong { display: block; font-size: 13px; }
.brand-lockup small { display: block; margin-top: 3px; color: var(--blue-bright); font-size: 9px; font-weight: 700; letter-spacing: .28em; }
.form-panel { position: relative; z-index: 2; grid-column: 1; min-height: 100svh; padding: 120px 48px 70px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(5, 8, 12, .96) 0%, rgba(5, 8, 12, .86) 78%, transparent 100%); }
.login-card { width: min(100%, 390px); }
.eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.accent { color: var(--blue-bright); }
.login-card h1, .dashboard-copy h1 { margin: 12px 0 18px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(58px, 6.2vw, 88px); font-weight: 800; line-height: .83; letter-spacing: -.025em; text-transform: uppercase; }
.intro { max-width: 360px; color: #b2bdc8; font-size: 14px; line-height: 1.7; margin-bottom: 30px; }
label { display: block; margin: 17px 0 8px; color: #cbd3da; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
input { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: none; background: rgba(17, 24, 32, .82); color: white; padding: 14px 15px; backdrop-filter: blur(12px); }
input::placeholder { color: #687582; }
input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(64, 155, 225, .12); }
.login-card > button, .dashboard-copy button { width: 100%; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; border-radius: 6px; padding: 15px 18px; background: linear-gradient(90deg, #2b79b5, #3a91d0); color: white; font-weight: 800; box-shadow: 0 12px 30px rgba(25, 103, 163, .22); }
button:disabled { cursor: not-allowed; opacity: .58; }
.error { min-height: 20px; margin: 12px 0 0; color: #ff8585; font-size: 12px; }
.access-note { color: #6f7d89; text-align: center; font-size: 10px; margin-top: 14px; }
.hero-caption { position: absolute; z-index: 3; right: 46px; bottom: 30px; color: #9aa7b4; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-caption span { display: inline-block; width: 28px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--blue-bright); }

.dashboard-page { min-height: 100vh; background: #080d13; }
.topbar { position: sticky; z-index: 10; top: 0; min-height: 72px; padding: 12px clamp(22px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7, 11, 16, .88); backdrop-filter: blur(18px); }
.wordmark { display: grid; grid-template-columns: 42px auto; grid-template-rows: 1fr 1fr; align-items: end; column-gap: 12px; color: white; text-decoration: none; letter-spacing: .16em; }
.wordmark > span { grid-row: 1 / 3; }
.wordmark strong { font-size: 12px; align-self: end; }
.wordmark small { color: var(--blue-bright); font-size: 8px; font-weight: 800; letter-spacing: .25em; align-self: start; margin-top: 2px; }
.account { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 12px; }
.role-pill, .status-dot { padding: 6px 9px; border-radius: 999px; color: var(--blue-bright); background: rgba(47, 131, 197, .13); border: 1px solid rgba(103, 186, 255, .25); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.secondary { padding: 9px 13px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: white; font-size: 11px; }
.dashboard { max-width: 1440px; margin: auto; padding: 32px clamp(20px, 5vw, 72px) 80px; }
.dashboard-hero { min-height: 540px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(90deg, rgba(7, 11, 16, .98) 0%, rgba(7, 11, 16, .72) 42%, rgba(7, 11, 16, .05) 70%), url('/static/images/rankings-hero.png') 66% center / cover no-repeat; }
.dashboard-copy { width: min(100%, 580px); padding: clamp(30px, 6vw, 80px); }
.dashboard-copy h1 { font-size: clamp(54px, 6.2vw, 88px); }
.dashboard-copy > p:not(.eyebrow) { max-width: 440px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.dashboard-copy button { width: 210px; margin-top: 28px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; margin-top: 16px; }
.stat-card, .next-card { min-height: 190px; border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: linear-gradient(145deg, var(--panel-soft), var(--panel)); }
.stat-card > span { color: var(--blue-bright); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.stat-card p, .next-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 30px; font-family: 'Barlow Condensed', sans-serif; font-size: 48px; }
.next-card { position: relative; background: linear-gradient(120deg, #111922, #182837); }
.next-card h2 { margin: 30px 0 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; text-transform: uppercase; }
.next-card .status-dot { position: absolute; top: 22px; right: 22px; }

@media (max-width: 860px) {
  .login-layout { display: block; }
  .hero-art { background-position: 62% center; opacity: .56; }
  .form-panel { width: 100%; padding: 120px 28px 60px; background: linear-gradient(90deg, rgba(5, 8, 12, .96), rgba(5, 8, 12, .7)); }
  .brand-lockup { left: 28px; top: 28px; }
  .hero-caption { display: none; }
  .dashboard-hero { min-height: 480px; background-position: 58% center; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .next-card { grid-column: 1 / 3; }
  .account > span:not(.role-pill) { display: none; }
}

@media (max-width: 560px) {
  .hero-art { background-position: 67% center; }
  .form-panel { align-items: flex-end; background: linear-gradient(180deg, rgba(5, 8, 12, .25), rgba(5, 8, 12, .96) 38%); }
  .login-card h1 { font-size: 58px; }
  .dashboard { padding-inline: 14px; }
  .dashboard-hero { min-height: 560px; align-items: flex-end; background-position: 66% top; background-size: auto 70%; background-color: #090e14; }
  .dashboard-copy { padding: 30px 24px; background: linear-gradient(0deg, #090e14 72%, transparent); }
  .dashboard-copy h1 { font-size: 50px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .next-card { grid-column: auto; }
  .role-pill { display: none; }
}

/* Rankings */
.rankings-page, .ranking-detail-page { max-width: 1280px; margin: auto; padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 68px) 100px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.page-heading h1, .detail-heading h1, .not-found h1 { margin: 9px 0 10px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(54px, 7vw, 92px); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; }
.page-heading > div > p:last-child, .detail-heading > div > p { color: var(--muted); line-height: 1.7; }
.page-heading > button, .new-ranking-button { min-width: 170px; display: flex; justify-content: space-between; padding: 14px 17px; border-radius: 6px; background: var(--blue); color: white; font-weight: 800; text-decoration: none; }
.ranking-section { padding-top: 46px; }
.past-section { margin-top: 34px; }
.section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.section-title h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 31px; text-transform: uppercase; letter-spacing: .02em; }
.section-title > span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-soft); color: var(--muted); font-size: 10px; }
.ranking-list { display: grid; gap: 12px; }
.ranking-card { min-height: 166px; display: grid; grid-template-columns: 220px 1fr 52px; color: white; text-decoration: none; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: linear-gradient(100deg, #121a22, #0d1319); transition: border-color .2s, transform .2s, background .2s; }
.ranking-card:hover { transform: translateY(-2px); border-color: rgba(103, 186, 255, .45); background: linear-gradient(100deg, #16222d, #0f171f); }
.ranking-card.past { opacity: .76; }
.ranking-card.past:hover { opacity: 1; }
.ranking-thumb { position: relative; min-height: 164px; background: linear-gradient(145deg, rgba(47, 131, 197, .35), rgba(11, 17, 23, .5)), url('/static/images/rankings-hero.png') 67% center / cover; }
.ranking-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #121a22); }
.live-badge, .past-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; width: max-content; gap: 7px; border-radius: 999px; padding: 6px 10px; color: #9fe280; background: rgba(53, 107, 36, .3); border: 1px solid rgba(126, 211, 93, .25); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ranking-thumb .live-badge, .ranking-thumb .past-badge { position: absolute; left: 14px; bottom: 14px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #86dc64; box-shadow: 0 0 0 4px rgba(134, 220, 100, .12); }
.past-badge { color: #aab4be; background: rgba(55, 64, 73, .6); border-color: var(--line); }
.ranking-info { align-self: center; padding: 24px 28px; min-width: 0; }
.ranking-meta { margin: 0 0 7px; color: var(--blue-bright) !important; font-size: 10px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ranking-info h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 28px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-info > p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-dates { display: flex; align-items: center; gap: 10px; color: #737f8a; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ranking-dates i { width: 20px; height: 1px; background: #48535d; }
.card-arrow { align-self: center; color: var(--blue-bright); font-size: 22px; transition: transform .2s; }
.ranking-card:hover .card-arrow { transform: translateX(4px); }
.empty-ranking { min-height: 130px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 28px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); }
.empty-ranking strong { color: white; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; text-transform: uppercase; }
.empty-ranking span { font-size: 12px; }

.back-link { color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.back-link:hover { color: white; }
.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 48px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.detail-heading h1 { max-width: 780px; margin-top: 18px; }
.detail-heading > div > p { max-width: 650px; }
.detail-facts { min-width: 290px; display: grid; gap: 16px; }
.detail-facts > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-facts span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.detail-facts strong { max-width: 190px; text-align: right; font-size: 11px; }
.leaderboard { padding-top: 52px; }
.leaderboard-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.leaderboard-title > div > p { margin-bottom: 8px; }
.leaderboard-title h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 32px; text-transform: uppercase; }
.add-player-button { min-width: 150px; display: flex; justify-content: space-between; gap: 20px; padding: 12px 15px; border-radius: 6px; background: var(--blue); color: white; font-size: 11px; font-weight: 800; }
.add-player-panel { margin-bottom: 18px; padding: 22px; border: 1px solid rgba(103, 186, 255, .3); border-radius: 9px; background: #101820; }
.add-player-panel[hidden] { display: none; }
.add-player-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.add-player-heading strong, .add-player-heading small { display: block; }
.add-player-heading strong { font-family: 'Barlow Condensed', sans-serif; font-size: 23px; text-transform: uppercase; }
.add-player-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.add-player-heading > button { padding: 0; background: none; color: var(--muted); font-size: 25px; line-height: 1; }
.compact-player-picker { grid-column: auto; }
.compact-player-picker .player-choice-grid { grid-template-columns: repeat(3, 1fr); max-height: 240px; }
.add-player-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.add-player-actions > button { border-radius: 5px; padding: 11px 14px; }
.add-player-actions > button[type="submit"] { min-width: 185px; display: flex; justify-content: space-between; background: var(--blue); color: white; font-size: 11px; font-weight: 800; }
.results-table { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #0d1319; }
.results-row { min-width: 720px; min-height: 76px; display: grid; grid-template-columns: 70px minmax(240px, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(115px, .35fr); align-items: center; border-top: 1px solid var(--line); }
.results-row:first-child { border-top: 0; }
.results-row > span { padding: 0 18px; }
.results-head { min-height: 46px; color: #76838f; background: #111921; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metric-sort { color: #76838f; text-decoration: none; white-space: nowrap; transition: color .15s; }
.metric-sort:hover, .metric-sort.selected { color: var(--blue-bright); }
.metric-sort i { visibility: hidden; margin-left: 3px; font-style: normal; }
.metric-sort.selected i { visibility: visible; }
.position { color: #9ca8b3; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; text-align: center; }
.position.podium { color: var(--yellow); }
.player-cell { display: flex; align-items: center; gap: 13px; min-width: 0; }
.player-cell img, .avatar-fallback { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #2a3642; background: #20303d; }
.avatar-fallback { display: grid; place-items: center; color: var(--blue-bright); font-weight: 800; }
.player-name { min-width: 0; }
.player-cell strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.player-cell small { display: block; margin-top: 4px; max-width: 230px; color: #65717d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.metric-value { color: #dbe2e8; font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; }
.remove-player-form { margin-left: auto; opacity: 0; transition: opacity .15s; }
.results-row:hover .remove-player-form, .remove-player-form:focus-within { opacity: 1; }
.remove-player-form button { padding: 6px 8px; border: 1px solid rgba(255, 119, 119, .2); border-radius: 4px; background: transparent; color: #d98181; font-size: 9px; font-weight: 700; }
.remove-player-form button:hover { border-color: rgba(255, 119, 119, .5); color: #ff9b9b; }
.not-found { max-width: 900px; margin: auto; padding: 120px 40px; }
.not-found > p { color: var(--muted); }
.not-found a { display: inline-block; margin-top: 25px; color: var(--blue-bright); }

@media (max-width: 720px) {
  .page-heading, .detail-heading { align-items: flex-start; flex-direction: column; }
  .page-heading > button, .new-ranking-button { width: 100%; }
  .ranking-card { grid-template-columns: 96px 1fr 36px; min-height: 145px; }
  .ranking-thumb { min-height: 143px; }
  .ranking-thumb::after { background: linear-gradient(90deg, transparent, #121a22); }
  .ranking-thumb .live-badge, .ranking-thumb .past-badge { left: 8px; bottom: 9px; padding: 5px 7px; }
  .ranking-info { padding: 18px 15px; }
  .ranking-info h3 { font-size: 22px; }
  .ranking-info > p { display: none; }
  .ranking-dates { margin-top: 14px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .ranking-dates i { display: none; }
  .detail-facts { width: 100%; min-width: 0; }
  .leaderboard-title { align-items: flex-start; flex-direction: column; gap: 9px; }
  .add-player-button { width: 100%; }
  .compact-player-picker .player-choice-grid { grid-template-columns: 1fr 1fr; }
  .remove-player-form { opacity: 1; }
}

/* Ranking creation */
.create-page { max-width: 1120px; margin: auto; padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 68px) 110px; }
.create-heading { padding: 48px 0 55px; }
.create-heading h1 { margin: 10px 0 12px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(58px, 8vw, 96px); line-height: .9; text-transform: uppercase; }
.create-heading > p:last-child { color: var(--muted); }
.form-alert { margin-bottom: 20px; padding: 15px 18px; border: 1px solid rgba(255, 110, 110, .28); border-radius: 6px; background: rgba(143, 38, 38, .16); color: #ffaaaa; font-size: 13px; }
.ranking-form { border-top: 1px solid var(--line); }
.form-section { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 6vw, 80px); padding: 48px 0; border-bottom: 1px solid var(--line); }
.form-section-title { display: flex; align-items: flex-start; gap: 15px; }
.form-section-title > span { color: var(--blue-bright); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.form-section-title h2 { margin: -6px 0 5px; font-family: 'Barlow Condensed', sans-serif; font-size: 27px; text-transform: uppercase; }
.form-section-title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.form-fields label { margin: 0; }
.form-fields label > small { float: right; color: #63717e; font-size: 9px; font-weight: 500; }
.wide-field { grid-column: 1 / 3; }
textarea { width: 100%; min-height: 105px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; outline: none; background: rgba(17, 24, 32, .82); color: white; padding: 14px 15px; font: inherit; }
textarea:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(64, 155, 225, .12); }
.photo-upload { min-height: 124px; display: flex !important; align-items: center; gap: 20px; padding: 18px; border: 1px dashed rgba(103, 186, 255, .28); border-radius: 8px; background: rgba(25, 45, 62, .22); cursor: pointer; }
.photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-preview { flex: 0 0 88px; height: 88px; display: grid; place-items: center; border-radius: 6px; background: #15212c center / cover no-repeat; color: var(--blue-bright); font-size: 27px; }
.photo-upload strong, .photo-upload small { display: block; }
.photo-upload small { margin-top: 7px; color: var(--muted); font-weight: 500; }
.choice-grid { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-card { position: relative; margin: 0; cursor: pointer; }
.choice-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-card > span { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: #10171e; transition: border .15s, background .15s; }
.choice-card > input:checked + span { border-color: var(--blue); background: rgba(34, 105, 158, .16); }
.choice-card > span > i:not(.avatar-fallback) { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-style: normal; font-size: 9px; }
.choice-card > input:checked + span > i:not(.avatar-fallback) { color: white; border-color: var(--blue); background: var(--blue); }
.choice-card strong { font-size: 12px; }
.choice-card small { margin-top: 6px; color: #667481; font-size: 9px; }
.player-picker { grid-column: 2; position: relative; }
.player-picker > input { padding-right: 105px; }
.selected-count { position: absolute; right: 14px; top: 16px; color: var(--muted); font-size: 9px; pointer-events: none; }
.selected-count strong { color: var(--blue-bright); }
.player-choice-grid { grid-column: auto; grid-template-columns: 1fr 1fr; max-height: 430px; overflow-y: auto; margin-top: 12px; padding-right: 5px; }
.player-choice[hidden] { display: none; }
.player-choice > span { min-height: 72px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px; padding: 12px; }
.player-choice img, .player-choice .avatar-fallback { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.player-choice .avatar-fallback { display: grid; place-items: center; background: #20303d; color: var(--blue-bright); font-style: normal; }
.player-choice > span > span { min-width: 0; flex: 1; }
.player-choice strong, .player-choice small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-choice b { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: 9px; }
.player-choice > input:checked + span b { color: white; border-color: var(--blue); background: var(--blue); }
.player-search-hint { margin: 12px 2px 0; color: #667481; font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; padding-top: 35px; }
.form-actions a { color: var(--muted); font-size: 12px; text-decoration: none; }
.form-actions button { min-width: 210px; display: flex; justify-content: space-between; padding: 15px 18px; border-radius: 6px; background: var(--blue); color: white; font-weight: 800; }

@media (max-width: 760px) {
  .form-section { grid-template-columns: 1fr; }
  .choice-grid, .player-picker { grid-column: 1; }
  .metrics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .form-fields { grid-template-columns: 1fr; }
  .wide-field { grid-column: 1; }
  .player-choice-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .compact-player-picker .player-choice-grid { grid-template-columns: 1fr; }
  .add-player-actions { align-items: stretch; flex-direction: column-reverse; }
  .add-player-actions > button[type="submit"] { width: 100%; }
}
