@font-face{font-family:BettersSport;src:url('assets/barlow-condensed-bold.woff') format('woff');font-weight:700 900;font-display:swap}
@font-face{font-family:BettersSport;src:url('assets/barlow-condensed-semi_bold.woff') format('woff');font-weight:600;font-display:swap}
@font-face{font-family:BettersText;src:url('assets/inter-regular.woff') format('woff');font-weight:400 500;font-display:swap}
@font-face{font-family:BettersText;src:url('assets/inter-bold.woff') format('woff');font-weight:600 900;font-display:swap}
:root {
  --red: #ed072a;
  --red-dark: #9b0c25;
  --black: #090709;
  --panel: #120e11;
  --panel-2: #191919;
  --line: #303030;
  --muted: #b8b3b6;
  --white: #faf8f8;
  --green: #33c56b;
  --display: BettersSport, "Arial Narrow", Arial, sans-serif;
  --body: BettersText, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--body); min-height: 100vh; }
button, select { font: inherit; }
button { cursor: pointer; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .45;
  background: radial-gradient(circle at 82% 5%, rgba(237,0,28,.28), transparent 28%),
              repeating-linear-gradient(125deg, transparent 0 120px, rgba(237,0,28,.025) 121px 123px);
}

.topbar { height: 82px; position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1180px)/2)); background: rgba(8,8,8,.94); border-bottom: 1px solid #242424; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; width: max-content; }
.brand img { width: 142px; height: 60px; object-fit: cover; object-position: 50% 51%; }
.brand-label { font: 1.35rem/1 var(--display); letter-spacing: .08em; padding-left: 12px; border-left: 3px solid var(--red); }
.desktop-nav { display: flex; gap: 8px; }
.nav-link { border: 0; color: #bdbdbd; background: transparent; padding: 12px 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: white; background: #202020; }
.profile-chip { justify-self: end; display: flex; align-items: center; gap: 10px; border: 1px solid #333; color: white; background: #151515; padding: 7px 12px 7px 7px; border-radius: 999px; text-align: left; }
.profile-chip span:last-child { display: grid; gap: 2px; }
.profile-chip small { color: var(--muted); font-size: .75rem; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.view { display: none; padding: 48px 0 90px; }
.view.active { display: block; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.page-head.compact { align-items: center; }
.eyebrow { color: var(--red); margin: 0 0 7px; font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .025em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: .9; margin: 0; }
h2 { font-size: 1.65rem; }
.lead { color: #b9b9b9; font-size: 1rem; margin: 14px 0 0; }
.season-pulse { min-width: 178px; display: grid; text-align: right; gap: 2px; padding-right: 14px; border-right: 5px solid var(--red); }
.season-pulse span, .season-pulse em { color: var(--muted); font-size: .82rem; font-style: normal; }
.season-pulse strong { font: 2.7rem/1 var(--display); }
.season-pulse strong small { font: 1rem var(--body); color: var(--muted); }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #111; border: 1px solid #292929; border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
select { min-height: 46px; border: 1px solid #3a3a3a; color: white; background: #1b1b1b; border-radius: 8px; padding: 0 13px; font-size: .95rem; }
.deadline-summary { display: grid; align-content: center; gap: 5px; min-width: 190px; padding: 0 10px; }
.deadline-summary span { color: var(--muted); font-size: .78rem; }
.deadline-summary strong { color: #fff; }

.match-list { display: grid; gap: 14px; }
.match-card { overflow: hidden; background: linear-gradient(145deg, #181818, #101010); border: 1px solid #303030; border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.match-meta { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; background: #0d0d0d; border-bottom: 1px solid #282828; color: #bcbcbc; font-size: .78rem; }
.match-meta strong { color: white; text-transform: uppercase; letter-spacing: .05em; }
.match-meta .countdown { color: #ff5b69; font-weight: 800; }
.match-body { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: center; padding: 19px 20px 21px; }
.players { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.player { display: flex; align-items: center; gap: 13px; min-width: 0; }
.player.away { flex-direction: row-reverse; text-align: right; }
.portrait { width: 64px; aspect-ratio: 1; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #eee; background: radial-gradient(circle at 35% 30%, #555, #1c1c1c 62%); border: 2px solid #555; font: 1.25rem var(--display); }
.player strong { display: block; font-size: 1.05rem; }
.player small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.versus { color: #696969; font: 1.25rem var(--display); }
.vote-panel { display: grid; gap: 10px; }
.vote-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.vote { min-height: 52px; color: white; background: #242424; border: 1px solid #444; border-radius: 9px; font: 1.35rem var(--display); transition: .16s ease; }
.vote:hover { border-color: var(--red); transform: translateY(-1px); }
.vote.selected { background: var(--red); border-color: #ff5365; box-shadow: 0 0 0 3px rgba(237,0,28,.16); }
.vote-percentages { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; font-size: .75rem; color: #bababa; text-align: center; }
.bar-track { grid-column: 1 / -1; display: flex; height: 5px; overflow: hidden; background: #333; border-radius: 4px; }
.bar-track i { display: block; height: 100%; transition: width .25s ease; }
.bar-track i:nth-child(1) { background: var(--red); }
.bar-track i:nth-child(2) { background: #f2f2f2; }
.bar-track i:nth-child(3) { background: #777; }

.segmented { display: flex; padding: 4px; border-radius: 10px; background: #161616; border: 1px solid #303030; }
.segmented button { border: 0; color: #aaa; background: transparent; padding: 9px 14px; border-radius: 7px; }
.segmented button.active { color: white; background: var(--red); }
.ranking-card, .history-card { border: 1px solid #303030; background: #121212; border-radius: 15px; overflow: hidden; }
.ranking-row { display: grid; grid-template-columns: 55px 1fr 100px 100px; align-items: center; min-height: 74px; padding: 0 22px; border-bottom: 1px solid #272727; }
.ranking-row:last-child { border: 0; }
.ranking-row.heading { min-height: 46px; color: #888; background: #0b0b0b; text-transform: uppercase; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.ranking-row > span:nth-child(2) { display: flex; align-items: center; gap: 12px; }
.ranking-row b { font-size: 1.25rem; color: white; }
.ranking-row.current { background: rgba(237,0,28,.1); box-shadow: inset 4px 0 var(--red); }
.avatar { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: #313131; color: white; font-style: normal; font-size: .75rem; font-weight: 900; }
.avatar.small { width: 37px; height: 37px; background: var(--red); }
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-chip{text-decoration:none}.profile-edit form{display:grid;grid-template-columns:1fr 1fr auto auto;align-items:end;gap:12px}.profile-edit label{display:grid;gap:7px;color:#aaa;font-size:.78rem;font-weight:800}.profile-edit input{min-height:44px;color:white;background:#1e1e1e;border:1px solid #444;border-radius:8px;padding:8px 12px}.secondary-profile-button{min-height:46px;padding:0 16px;border:1px solid #444;border-radius:9px;background:#252525;color:white;font-weight:900}
.avatar.xl { width: 105px; height: 105px; font-size: 1.8rem; background: linear-gradient(145deg, #ed072a, #72000c); border: 4px solid #ff4056; }
.profile-hero { display: flex; align-items: center; gap: 24px; padding: 35px; background: linear-gradient(120deg, rgba(237,0,28,.22), #111 58%); border: 1px solid #343434; border-radius: 16px; }
.profile-hero h1 { font-size: clamp(2.5rem, 7vw, 4.7rem); }
.profile-hero p:last-child { color: var(--muted); margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 16px 0; }
.stats-grid article { display: grid; gap: 9px; padding: 20px; background: #141414; border: 1px solid #303030; border-radius: 12px; }
.stats-grid span { color: var(--muted); font-size: .82rem; }
.stats-grid strong { font: 2rem var(--display); }
.history-card { padding: 20px; }
.history-card h2 { margin: 0 0 13px; }
.history-row { display: grid; grid-template-columns: 1fr 50px 90px; align-items: center; min-height: 56px; border-top: 1px solid #292929; }
.history-row span { min-width: 0; padding: 9px 0; }.history-row span strong, .history-row span small { display: block; }.history-row span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.history-row span small { margin-top: 4px; color: var(--muted); }
.history-row em { font-style: normal; text-align: right; }
.won { color: var(--green); }.lost { color: #888; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; color: white; background: #252525; border: 1px solid #555; border-radius: 999px; padding: 12px 18px; transition: .2s ease; pointer-events: none; box-shadow: 0 10px 35px #000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed #333; border-radius: 14px; }

@media (max-width: 820px) {
  .topbar { height: 68px; display: flex; justify-content: space-between; padding: 0 16px; }
  .brand img { width: 115px; height: 50px; }.brand-label { font-size: 1.1rem; }
  .desktop-nav, .profile-chip { display: none; }
  main { width: min(100% - 24px, 650px); }
  .view { padding: 32px 0 100px; }
  .page-head { align-items: start; }
  .season-pulse { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .deadline-summary { grid-column: 1 / -1; min-height: 46px; padding: 2px 4px; }
  .match-body { grid-template-columns: 1fr; gap: 17px; padding: 17px 14px; }
  .players { gap: 8px; }
  .player { display: grid; justify-items: center; text-align: center; gap: 7px; }
  .player.away { display: grid; text-align: center; }
  .player strong { font-size: .91rem; }
  .portrait { width: 57px; }
  .vote { min-height: 50px; }
  .mobile-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3,1fr); padding: 7px 8px max(7px, env(safe-area-inset-bottom)); background: rgba(10,10,10,.97); border-top: 1px solid #333; backdrop-filter: blur(12px); }
  .mobile-nav button { display: grid; gap: 3px; place-items: center; color: #999; border: 0; background: transparent; font-size: .72rem; font-weight: 800; }
  .mobile-nav button span { font-size: 1.3rem; }
  .mobile-nav button.active { color: var(--red); }
  .ranking-row { grid-template-columns: 40px 1fr 60px 60px; padding: 0 12px; font-size: .88rem; }
  .ranking-row.heading { font-size: .64rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero { padding: 25px 20px; }.avatar.xl { width: 78px; height: 78px; }
}

@media (max-width: 430px) {
  h1 { font-size: 3.05rem; }
  .lead { font-size: .9rem; }
  .filters { grid-template-columns: 1fr; }
  .deadline-summary { grid-column: auto; }
  .match-meta { display: grid; gap: 5px; }
  .match-meta span:last-child { line-height: 1.35; }
  .players { grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr); }
  .player strong { max-width: 115px; }
  .player small { display: none; }
  .vote-buttons { gap: 7px; }.vote { min-height: 48px; }
  .save-types-bar { align-items: center; }.save-types-bar span { max-width: 52%; line-height: 1.25; }
  .stats-grid { gap: 8px; }.stats-grid article { padding: 16px; }
  .history-row { grid-template-columns: 1fr 35px 70px; font-size: .84rem; }
}
.portrait img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.vote:disabled{cursor:not-allowed;opacity:.45}
.match-card.match-live{border-color:#ed072a;box-shadow:0 0 0 1px rgba(237,0,28,.25)}
.countdown.is-live{color:#ff334b;font-weight:900;animation:livePulse 1.4s ease-in-out infinite}
@keyframes livePulse{50%{opacity:.55}}
.save-types-bar{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin:14px 0;color:#aaa;font-size:.82rem}.primary-save-button{min-width:160px;min-height:46px;padding:0 20px;border:1px solid #ff334b;border-radius:9px;background:var(--red);color:#fff;font-weight:900}.primary-save-button:disabled{border-color:#444;background:#292929;color:#777;cursor:not-allowed}
@media(max-width:560px){.save-types-bar{position:sticky;top:68px;z-index:20;justify-content:space-between;padding:10px 12px;margin-inline:-12px;background:rgba(10,10,10,.96);border-block:1px solid #292929}.primary-save-button{min-width:130px}}
@media(max-width:760px){.profile-edit form{grid-template-columns:1fr}.profile-chip{display:none}}

/* Shared identity with Betters Liga501, stage 3. */
:root{--gold:#ffcc29}
body{background:#090709 url('assets/texture.webp') center top/cover fixed}
body::before{opacity:1;background:linear-gradient(90deg,#080709ed,#080709b8 65%,#1b080eb8)}
.brand img{object-fit:contain;object-position:center}
.topbar{background:#000202f5;border-bottom-color:#ec002956}
.nav-link,.primary-save-button{font-family:var(--display);font-size:1.1rem;letter-spacing:.5px}
.eyebrow{color:var(--gold)}
.match-card,.ranking-card,.history-card{background:linear-gradient(150deg,#261016dd,#100d10f2 50%,#0a080af7);border-color:#632033}
.portrait{overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#6b1535,#250c1a 60%,#0c080d);border-color:#632439}
.portrait img{object-position:center 20%}
.primary-save-button{background:linear-gradient(120deg,#f31536,#d80021);border-color:var(--gold)}
.user-account-card img{object-fit:contain}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Face crops use the same per-player framing as the main site. */
.player .portrait{position:relative;overflow:hidden;--portrait-size:64px;width:var(--portrait-size);height:var(--portrait-size)}
.player .portrait img.face-crop{--face-height:calc(var(--portrait-size) * var(--face-scale));position:absolute;display:block;max-width:none;height:var(--face-height);width:calc(var(--face-height) / var(--face-ratio));top:calc(4px - var(--face-height) * var(--face-top));left:50%;transform:translateX(calc(-100% * var(--face-center)));object-fit:fill;border-radius:0}
@media(max-width:560px){.player .portrait{--portrait-size:57px}}

/* Bare player faces without portrait frames. */
.player .portrait:has(img){border:0;border-radius:0;background:transparent;box-shadow:none}
/* Faces sit next to the centre divider on both sides. */
.players>.player:not(.away){flex-direction:row-reverse;text-align:right}
.players>.player.away{flex-direction:row;text-align:left}
@media(min-width:561px){.players>.player:not(.away){justify-content:flex-start}}
@media(max-width:560px){.players>.player:not(.away),.players>.player.away{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}}
/* Clear match states and a prominent score between player faces. */
.countdown.is-open{color:var(--green);font-weight:700}
.countdown.is-settled{color:#eee;font-weight:700}
.players .match-score{display:grid;place-items:center;min-width:64px;color:#fff;font:700 2.2rem/1 var(--display);white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:560px){.players:has(.match-score){grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)}.players .match-score{min-width:0;font-size:1.9rem}}
/* League crests and numbered round tiles replace select lists. */
.filters.league-round-picker{display:flex;flex-direction:column;gap:14px;background:#100b0eed;border-color:#632033;padding:20px}
.picker-label{color:var(--muted);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
.league-tiles{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.league-tile{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px 6px;border:1px solid #57303c;border-radius:10px;background:#0c090c;color:#ddd;transition:border-color .15s,background .15s}
.league-tile img{display:block;width:100%;max-width:90px;height:80px;object-fit:contain}
.league-tile span{font-size:.75rem;font-weight:700;overflow-wrap:anywhere}
.league-tile:hover,.round-tile:hover{border-color:var(--red)}
.league-tile.active{border-color:var(--gold);background:linear-gradient(145deg,#491225,#1b0d15);box-shadow:inset 0 -3px var(--red)}
.all-leagues{align-self:flex-start;min-height:40px;padding:8px 14px;background:transparent;border:1px solid #57303c;border-radius:7px;color:#ddd;font-size:.8rem}
.all-leagues.active{border-color:var(--gold);background:#491225;color:#fff}
.round-tiles{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:8px}
.round-tile{min-width:0;min-height:46px;background:#1b1017;border:1px solid #57303c;border-radius:8px;color:#ddd;font:700 1.3rem var(--display)}
.round-tile.active{background:var(--red);border-color:var(--gold);color:white}
.league-tile:focus-visible,.round-tile:focus-visible,.all-leagues:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:900px){.league-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.filters.league-round-picker{padding:12px;gap:12px}.league-tiles{gap:7px}.league-tile{padding:9px 3px;gap:6px}.league-tile img{height:58px}.league-tile span{font-size:.65rem}.round-tiles{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}}
/* Round league badges; selection is marked around the crest. */
.league-tile,.league-tile.active{background:transparent;border-color:transparent;box-shadow:none}
.league-tile img{width:82px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:50%;background:#000;padding:7px;border:2px solid #57303c;transition:border-color .15s,box-shadow .15s}
.league-tile.active img{border-color:var(--gold);box-shadow:0 0 0 3px #ed072a40}
.league-tile:hover img{border-color:var(--red)}
.league-tile.active span{color:var(--gold)}
@media(max-width:560px){.league-tile img{width:60px;height:auto;padding:5px}}
.pick-result{margin:10px 0;padding:9px 12px;border-radius:7px;font-size:.8rem;font-weight:700;line-height:1.5}.pick-result.correct{color:#82f0b0;background:#103923;border:1px solid #287f49}.pick-result.incorrect{color:#ffb0bb;background:#401520;border:1px solid #843247}.pick-result.neutral{color:#bbb;background:#222;border:1px solid #444}
/* Points for saved predictions in the currently selected league and round. */
.save-types-bar{flex-wrap:wrap;align-items:center}
.round-summary{margin-right:auto;display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px;padding:10px 0;line-height:1.5}
.round-summary[hidden]{display:none}
.summary-scope{color:#ddd}.summary-points{color:#82f0b0;font-size:1rem}.summary-settled{color:var(--muted)}
@media(max-width:760px){.round-summary{flex:1 0 100%;padding:0 0 7px;border-bottom:1px solid #ffffff18}.save-types-bar #draft-status{flex:1;min-width:0}.save-types-bar .primary-save-button{flex-shrink:0}.save-types-bar{gap:10px}}
/* Round state colours are independent of the active selection outline. */
.round-tile[data-state="open"]{background:#123b27;border-color:#318a54;color:#92f5ba}
.round-tile[data-state="finished"]{background:#481725;border-color:#a43b52;color:#ffc1cd}
.round-tile[data-state="pending"],.round-tile[data-state="empty"]{background:#252329;border-color:#55505c;color:#c4bec9}
.round-tile[data-state].active{outline:2px solid var(--gold);outline-offset:2px;box-shadow:0 0 0 1px #090709}
.round-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.72rem;color:var(--muted)}
.round-legend span::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#777;margin-right:7px}
.round-legend .legend-open::before{background:#54cf82}.round-legend .legend-finished::before{background:#e45c78}
/* Saved predictions view. */
.my-round-tiles{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px}
.my-round-tiles .round-tile:first-child{font-family:var(--body);font-size:.7rem}
.my-picks-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0 10px}
#my-picks-points{color:#82f0b0}.my-picks-note{font-size:.78rem;line-height:1.6;color:var(--muted);margin-bottom:20px}
.my-pick-verdict{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:.9rem}
.my-pick-verdict>span>strong{display:inline-grid;place-items:center;min-width:38px;min-height:36px;margin-left:6px;background:#35111f;border:1px solid #874157;border-radius:7px;color:#fff;font:700 1.4rem var(--display)}
.my-pick-verdict .pick-result{margin:0;text-align:center}.empty a{color:var(--gold)}
@media(min-width:821px){.topbar{gap:12px}.desktop-nav{gap:0}.nav-link{padding-inline:12px}}
@media(min-width:821px) and (max-width:1050px){.topbar{padding-inline:16px}.brand img{width:112px}.brand{gap:8px}.brand-label{font-size:1.1rem}.nav-link{font-size:1rem;padding-inline:9px}.profile-chip{padding-right:8px}}
@media(max-width:820px){.mobile-nav{grid-template-columns:repeat(4,1fr)}.my-round-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.my-picks-toolbar .segmented{flex:1}.my-picks-toolbar .segmented button{flex:1}.my-pick-card .match-body{grid-template-columns:1fr}}
.ranking-description{color:var(--muted);font-size:.82rem;line-height:1.6}.ranking-summary{padding:12px 0 18px;color:#ddd;font-size:.85rem;line-height:1.6}.ranking-card[aria-busy="true"]{opacity:.65}.ranking-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.ranking-row.current{border-left:3px solid var(--red)}
.password-edit{padding:20px;margin-top:20px}
.password-hint{color:var(--muted);font-size:.82rem;line-height:1.6;margin-bottom:18px}
.password-edit form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}
.password-edit label{display:grid;gap:7px;color:#bbb;font-size:.78rem;font-weight:700}
.password-edit input{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #63404e;border-radius:8px;background:#160e14;color:#fff;font:inherit}
.password-edit input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.password-edit .form-error,.password-success{grid-column:1/-1;margin:0;line-height:1.5;font-size:.85rem}
.password-success{color:#82f0b0}.password-edit button:disabled{opacity:.6;cursor:wait}
@media(max-width:820px){.password-edit form{grid-template-columns:1fr}.password-edit{padding:16px}.password-edit button{width:100%}}
.stats-grid article small{color:var(--muted);font-size:.72rem;line-height:1.5}.profile-picks-link{margin:18px 0 24px}.profile-picks-link a{display:inline-block;min-height:44px;padding:10px 14px;border:1px solid #69404f;border-radius:8px;color:var(--gold);text-decoration:none;font-size:.85rem}.profile-picks-link a:hover{border-color:var(--gold)}
/* Account disclosure is available on desktop and mobile. */
.account-dropdown{position:relative;justify-self:end;flex-shrink:0}
.account-dropdown .profile-chip{display:flex;font:inherit;cursor:pointer;max-width:220px}
.account-dropdown .profile-chip>span:nth-child(2){display:grid;min-width:0;gap:2px}
#account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}
.account-dropdown .account-chevron{display:block;font-size:1rem;color:#aaa}
.account-menu{position:absolute;z-index:60;top:calc(100% + 10px);right:0;width:210px;padding:7px;background:#1b1017;border:1px solid #754052;border-radius:10px;box-shadow:0 15px 40px #0009}
.account-menu[hidden]{display:none}
.account-menu button{display:block;width:100%;min-height:46px;text-align:left;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:#fff;font:inherit;font-size:.88rem}
.account-menu button:hover,.account-menu button:focus-visible{background:#431426;outline:2px solid var(--gold);outline-offset:-2px}
.account-menu [data-user-logout]{color:#ffb0bb}
@media(max-width:820px){.account-dropdown .profile-chip{display:flex;padding:5px 8px 5px 5px;gap:6px}.account-dropdown .profile-chip .avatar{width:30px;height:30px}.account-dropdown #account-name{max-width:78px;font-size:.76rem}.account-dropdown #account-points{font-size:.65rem}.account-menu{width:190px}.topbar{gap:8px}}
@media(max-width:360px){.brand img{width:96px}.brand{gap:6px}.brand-label{padding-left:7px;font-size:.9rem}.account-dropdown #account-name{max-width:60px}.account-dropdown .account-chevron{display:none}}
/* Shared footer based on the prepared Betters Liga501 site. */
.site-footer{position:relative;z-index:1;background:#000202;border-top:2px solid #a51835;margin-top:36px;padding:44px 0 0;color:#bfb2b8;font-size:.8rem}
.site-footer .wrap{width:min(1180px,calc(100% - 40px));margin:0 auto}
.site-footer .footer-main{display:grid;grid-template-columns:1.1fr 1.3fr 1.2fr 1fr;gap:32px;align-items:start;padding-bottom:34px}
.site-footer .footer-logo{width:175px;max-width:100%;height:75px;object-fit:contain}
.site-footer .eyebrow{margin:0 0 16px;font-size:.68rem;letter-spacing:1.5px}
.site-footer a{color:#c0b2b8;text-decoration:none}.site-footer a:hover{color:var(--gold)}
.site-footer .footer-main>div:not(.footer-social)>a{display:block;margin:12px 0;font-size:.8rem;line-height:1.5}
.site-footer .footer-partner img{width:150px;max-width:100%;height:70px;object-fit:contain}
.site-footer .footer-social{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.site-footer .footer-social .eyebrow{flex-basis:100%;margin-bottom:4px}
.site-footer .social-icon-link{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:8px}
.site-footer .social-icon-link svg{display:block;width:32px;height:32px}
.site-footer a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.site-footer .footer-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 0;border-top:1px solid #3c1e27;color:#a38c96;font-size:.72rem;line-height:1.6}
.legal-main{min-height:55vh;padding:44px 0;max-width:860px}.legal-main h1{font-size:clamp(2rem,6vw,3.5rem)}
.legal-copy{padding:24px;background:#170d13;border:1px solid #633044;border-radius:12px;line-height:1.8;color:#d6cbd0}.legal-copy a,.legal-back{color:var(--gold)}
.legal-status{display:inline-block;padding:5px 10px;border:1px solid #8a6f24;border-radius:6px;color:var(--gold);font-size:.8rem}
@media(max-width:820px){.site-footer .footer-main{grid-template-columns:1fr 1fr;gap:28px 20px}.site-footer{padding-bottom:85px}.site-footer .wrap{width:calc(100% - 28px)}.site-footer .footer-logo{width:145px}.site-footer .footer-partner img{width:130px}.site-footer .footer-bottom{flex-direction:column;gap:6px}}
@media(max-width:360px){.site-footer .footer-main{gap:22px 12px}.site-footer .eyebrow{font-size:.6rem}.site-footer .footer-main>div:not(.footer-social)>a{font-size:.72rem}}
.legal-document-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.legal-copy{min-height:160px}
.save-error{color:#ffb0bb;font-size:.85rem;line-height:1.6}.save-error:empty{display:none}.skip-link{position:fixed;left:16px;top:-100px;z-index:100;padding:12px 18px;background:#fff;color:#111;border-radius:6px}.skip-link:focus{top:12px}.typer-guide{padding:24px;border:1px solid #57303c;border-radius:12px;background:#120b10;margin:0 0 35px;line-height:1.8;color:var(--muted)}.typer-guide h2{color:#fff;font-size:1.8rem;margin-top:0}.typer-guide p{font-size:.85rem}.nav-link:focus-visible,.vote:focus-visible,.primary-save-button:focus-visible,.profile-chip:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.season-pulse{display:block;min-width:260px;padding:14px 18px;border:1px solid #333;border-top:3px solid var(--red);border-radius:12px;background:#141113;text-align:left;flex-shrink:0}
.player-standing{width:100%;border-collapse:collapse;font-size:.85rem}
.player-standing caption{text-align:left;color:var(--muted);font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;padding-bottom:10px}
.player-standing th{font-weight:400;color:#bbb;text-align:left;padding:9px 18px 9px 0}
.player-standing td{text-align:right;color:#fff;font-weight:800;font-size:1.1rem;white-space:nowrap;padding:9px 0}
.player-standing tr+tr{border-top:1px solid #333}
.player-standing small{font-size:.75rem;font-weight:400;color:var(--muted)}
.season-pulse[hidden]{display:none}@media(max-width:850px){#typowanie>.page-head{flex-direction:column;align-items:stretch}.season-pulse{display:block;min-width:0;width:100%;margin-top:16px}.season-pulse[hidden]{display:none}}


/* Powrót do strony ligi bez zmiany nawigacji i konta Typera. */
.league-return{display:block;width:max-content;max-width:calc(100% - 32px);margin:14px max(16px,calc((100% - 1180px)/2));padding:8px 14px;border:1px solid #6a3440;border-radius:7px;color:#f7f7f5;text-decoration:none;font-size:13px;font-weight:600}.league-return:hover{border-color:var(--red);background:#ed072a18}.league-return:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.login-card .league-return{margin:16px auto;text-align:center}

.league-return{display:flex;align-items:center;justify-content:center;min-height:40px;background:#211019;border-color:#b54059;color:#fff}


/* Powrót do ligi jest elementem nawigacji Typera. */
.desktop-nav .league-nav-link{display:flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}.league-nav-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:820px){.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav .league-nav-link{display:grid;gap:3px;place-items:center;color:#aaa;background:transparent;text-decoration:none;font-size:.68rem;font-weight:800;line-height:1.2}.mobile-nav .league-nav-link>span{display:grid;place-items:center;height:25px}.mobile-nav .league-nav-link:hover{color:#fff}}
.registration-terms{margin:18px 0}.registration-terms .terms-checkbox{display:flex;align-items:flex-start;gap:10px;text-transform:none;letter-spacing:normal;font-weight:400;line-height:1.5}.terms-checkbox input[type=checkbox]{width:20px;height:20px;min-width:20px;margin:2px 0 0;accent-color:var(--red)}.registration-terms a{display:inline!important;color:#fff;text-decoration:underline}.registration-terms p{font-size:.75rem;color:#aaa;line-height:1.5}.registration-terms[hidden]{display:none}
.match-schedule-row{display:flex;justify-content:flex-end;padding:14px 20px 0}.match-scheduled-time{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #ffcc2945;border-radius:6px;background:#ffcc290d;color:#ffe08a;font:600 12px/20px var(--body);white-space:nowrap}.match-scheduled-time svg{width:16px;height:16px;stroke:#ffcc29}.match-scheduled-time strong{border-left:1px solid #ffcc2940;padding-left:10px;font-size:18px;color:#ffcc29;font-variant-numeric:tabular-nums}@media(max-width:600px){.match-schedule-row{padding:12px 12px 0}.match-scheduled-time{font-size:11px;padding:6px 8px;gap:7px}.match-scheduled-time strong{font-size:16px}.match-scheduled-time svg{width:14px;height:14px}}
