:root {
  --bg-0: #0e0a08;
  --bg-1: #16100c;
  --bg-2: #1f1611;
  --bg-3: #2b1f17;
  --line: #33261c;
  --line-soft: #241a14;
  --fg: #f7efe8;
  --muted: #bcaa9c;
  --dim: #95837a;
  --orange: #f2701d;
  --orange-hi: #ff8a3d;
  --orange-text: #ff9550;
  --carmine: #9e3039;
  --green: #5fc08a;
  --red: #e2596a;
  --display: "Anton", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-0); color: var(--fg); overflow-x: clip; }
body { font-family: "Manrope", system-ui, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-text); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(14, 10, 8, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { flex-shrink: 0; font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -.01em; color: #fff; }
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--orange); }
@media (max-width: 767px) { .brand { font-size: 20px; } }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.on { color: var(--fg); background: var(--bg-2); }
.search { position: relative; margin-left: auto; flex: 0 1 300px; }
.search input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--dim); }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, calc(100vw - 32px)); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; }
.search-results:empty { display: none; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.search-results a:hover { background: var(--bg-2); color: var(--fg); }
.search-results .none { padding: 12px; color: var(--dim); font-size: 14px; }
@media (max-width: 640px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { flex: 1 1 100%; order: 3; }
  .nav { margin-left: auto; }
}

main { flex: 1; }
footer { border-top: 1px solid var(--line-soft); margin-top: 64px; padding: 24px 0; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- type ---------- */
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1; font-weight: 400; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 30px; }
.section-head a { color: var(--orange-text); font-weight: 600; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(900px 400px at 85% 0%, rgba(242, 112, 29, .18), transparent 60%),
  radial-gradient(600px 300px at 0% 100%, rgba(158, 48, 57, .22), transparent 60%), var(--bg-0); }
.hero .wrap { padding-top: 56px; padding-bottom: 48px; position: relative; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); max-width: 12ch; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 560px; color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.hero-court { position: absolute; right: -60px; top: -40px; width: 520px; opacity: .14; pointer-events: none; }
@media (max-width: 760px) { .hero-court { width: 320px; right: -120px; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; color: var(--fg); }
.hero-stats span { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.card h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.leader { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.leader:first-of-type { border-top: 0; }
.leader .rank { width: 18px; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.leader .who { flex: 1; min-width: 0; }
.leader .who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader .who small { color: var(--dim); font-size: 12px; }
.leader .val { font-family: var(--display); font-size: 26px; color: var(--orange); }

.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--bg-3); color: var(--muted); display: grid; place-items: center; font-weight: 800; font-size: 13px; overflow: hidden; border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar.lg { width: 120px; height: 120px; font-size: 38px; border: 3px solid var(--orange); }
@media (max-width: 640px) { .avatar.lg { width: 84px; height: 84px; font-size: 28px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.chip:hover { color: var(--fg); border-color: var(--orange); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #1b0d03; }
.chip .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.chip.on .n { color: #3a1d08; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--bg-3); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag.youth { background: rgba(95, 192, 138, .14); color: var(--green); }
.tag.college { background: rgba(120, 150, 255, .14); color: #a9b9ff; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 16px; }
.filters select, .filters input { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; }
.filters input { flex: 1 1 200px; }
.filters select { flex: 0 1 auto; max-width: 100%; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-1); }
table.stats { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
table.stats th { text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; }
table.stats td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
table.stats th.l, table.stats td.l { text-align: left; font-family: inherit; }
table.stats td.l { font-size: 14px; }
table.stats tr:last-child td { border-bottom: 0; }
table.stats tbody tr:hover td { background: var(--bg-2); }
table.stats td.hl, table.stats th.hl { color: var(--orange-text); }
table.stats th a { color: inherit; }
table.stats th a.on { color: var(--orange-text); }
table.stats .player-cell { display: flex; align-items: center; gap: 10px; }
table.stats .player-cell .avatar { width: 30px; height: 30px; font-size: 11px; }
table.stats tr.total td { background: var(--bg-2); font-weight: 700; }
td.w { color: var(--green); } td.lose { color: var(--red); }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); }

/* ---------- player page ---------- */
.player-hero { border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(700px 300px at 100% 0%, rgba(242, 112, 29, .16), transparent 60%), var(--bg-0); }
.player-hero .wrap { display: flex; gap: 28px; align-items: center; padding-top: 40px; padding-bottom: 32px; }
.player-hero h1 { font-size: clamp(38px, 6vw, 72px); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--fg); font-weight: 700; }
@media (max-width: 640px) { .player-hero .wrap { gap: 16px; align-items: flex-start; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.tile { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; }
.tile b { display: block; font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1.1; }
.tile span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.tile.main b { color: var(--orange); }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--bg-3); color: var(--fg); border-color: var(--orange); }
[data-mode="avg"] .tot, [data-mode="tot"] .avg { display: none; }

.notice { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--bg-1); color: var(--muted); font-size: 13px; border-radius: 0 8px 8px 0; }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pages a, .pages span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-1); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pages a:hover { border-color: var(--orange); color: var(--fg); }
.pages .cur { background: var(--orange); border-color: var(--orange); color: #1b0d03; font-weight: 700; }
.pages .off { opacity: .35; }
.pages .gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- stat header tooltips ---------- */
th[data-tip] { cursor: help; text-decoration: underline dotted var(--dim); text-underline-offset: 3px; }
.tip-pop { position: fixed; z-index: 50; max-width: 260px; padding: 7px 10px; border-radius: 6px; background: var(--fg); color: var(--bg-0);
  font: 600 12px/1.4 "Manrope", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); pointer-events: none; opacity: 0; transition: opacity .1s; }
.tip-pop.on { opacity: 1; }
.tag.other { background: transparent; border: 1px solid var(--line); color: var(--dim); }
.filters .check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; }
.filters .check input { flex: none; width: 16px; height: 16px; accent-color: var(--orange); padding: 0; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.year-card { display: block; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; transition: border-color .15s; }
.year-card:hover { border-color: var(--orange); color: var(--fg); }
.year-card b { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; color: var(--orange); }
.year-card span { color: var(--dim); font-size: 13px; }

/* ---------- games ---------- */
.day-nav { display: flex; align-items: center; gap: 8px; }
.day-nav input[type=date] { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; color-scheme: dark; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.game-card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.game-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.game-head .score { margin-left: auto; font-weight: 700; }
.game-card .stats-wrap, .game-card table { width: 100%; }
.game-card { overflow-x: auto; }
table.stats.compact td, table.stats.compact th { padding: 7px 8px; }
.score.w, span.w { color: var(--green); } .score.lose, span.lose { color: var(--red); }
.avatar.team-logo { background: #fff; border-color: var(--orange); color: #1b0d03; }
.avatar.team-logo img { object-fit: contain; padding: 14px; }
.plain-select { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; }
.avatar.team-logo:not(.lg) img { padding: 4px; }
.game-head { justify-content: space-between; flex-wrap: nowrap; align-items: center; }
.game-head a { flex: 1; min-width: 0; color: var(--muted); font-weight: 600; }
.game-head a:last-child { text-align: right; }
.game-head a.win { color: var(--fg); font-weight: 800; }
.game-head .score { margin: 0 12px; flex: none; font-size: 18px; font-weight: 700; color: var(--fg); }
table.stats tr.side td { background: var(--bg-2); color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; }

/* ---------- best / typical / worst game ---------- */
.gp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gp-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--bg-1); border: 1px solid var(--line-soft); }
.gp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.gp-card.best { --accent: var(--green); --accent-soft: rgba(95,192,138,.10); }
.gp-card.typical { --accent: var(--orange); --accent-soft: rgba(242,112,29,.12); }
.gp-card.worst { --accent: var(--red); --accent-soft: rgba(226,89,106,.10); }
.gp-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gp-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gp-badge { font: 700 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--fg); }
.gp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gp-stats div { display: flex; flex-direction: column; }
.gp-stats b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--fg); }
.gp-stats b em { font-style: normal; font-size: 20px; color: var(--dim); }
.gp-card.typical .gp-stats div:first-child b { color: var(--orange); }
.gp-stats span { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.gp-stats small { font: 11px var(--mono); color: var(--muted); }
.gp-card footer { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.gp-card footer .res { font: 700 13px var(--mono); white-space: nowrap; }
@media (max-width: 400px) { .gp-stats b { font-size: 30px; } }

/* ---------- career: several teams in one season ---------- */
.season-grp .grp-head { cursor: pointer; }
.season-grp .grp-head td { background: color-mix(in srgb, var(--orange) 5%, transparent); }
.season-grp .grp-head:hover td { background: color-mix(in srgb, var(--orange) 10%, transparent); }
.season-grp .chev { display: inline-block; width: 14px; margin-right: 4px; color: var(--orange); font-weight: 800; transition: transform .15s; }
.season-grp.open .chev { transform: rotate(90deg); }
.season-grp .grp-child { display: none; }
.season-grp.open .grp-child { display: table-row; }
.season-grp .grp-child td { background: var(--bg-0); color: var(--muted); font-size: 12px; }
.season-grp .grp-child td.l a { color: var(--muted); }

/* ---------- peer comparison ---------- */
.peers-scope { margin: -8px 0 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.peers-scope .help { cursor: help; }
.peers-scope a { color: var(--orange-text); font-weight: 700; }
.peer-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .peer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .peer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.peer-tile { min-width: 0; }
.peer-tile { --c: var(--orange); background: var(--bg-1); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 12px 14px; }
.peer-tile.hi { --c: var(--green); }
.peer-tile.lo { --c: var(--red); }
.peer-top { font-size: 13px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-mid { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; margin: 6px 0 8px; min-width: 0; }
.peer-foot em { font: 800 11px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 999px; color: #0e0a08; background: var(--c); white-space: nowrap; }
.peer-mid b { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--fg); }
.peer-bar { position: relative; height: 8px; border-radius: 999px; background: #3a2b20; }
.peer-bar i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--c); }
.peer-bar s { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: #fff; transform: translateX(-1.5px); box-shadow: 0 0 0 2px var(--bg-1); }
.peer-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.peer-foot small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- top per birth year ---------- */
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.top-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.top-card header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.top-card header b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--orange); }
.top-card header span { color: var(--dim); font-size: 13px; }
.top-card ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.top-card li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.top-card li::before { content: counter(r); width: 16px; color: var(--dim); font: 600 12px var(--mono); }
.top-card li .player-cell { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.top-card li .avatar { width: 32px; height: 32px; font-size: 11px; }
.top-card li .who { min-width: 0; }
.top-card li .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.top-card li .who small { color: var(--dim); font-size: 12px; }
.top-card li .val { font-family: var(--display); font-size: 22px; color: var(--fg); }
.top-card li:first-child .val { color: var(--orange); }
.top-card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--orange-text); }

/* rank column */
table.stats th.rank, table.stats td.rank { width: 44px; text-align: center; padding-left: 6px; padding-right: 6px; }
table.stats td.rank { font: 700 13px var(--mono); color: var(--muted); }
table.stats td.rank.top1, table.stats td.rank.top2, table.stats td.rank.top3 { font-family: var(--display); font-size: 18px; font-weight: 400; }
table.stats td.rank.top1 { color: #f2cf3b; }
table.stats td.rank.top2 { color: #cfd6dc; }
table.stats td.rank.top3 { color: #d08a4c; }
.peer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.peer-controls .tabs { margin: 0; }

/* ---------- home ---------- */
.home-hero { background:
  radial-gradient(900px 520px at 78% 30%, rgba(242,112,29,.26), transparent 62%),
  radial-gradient(700px 400px at -5% 110%, rgba(158,48,57,.30), transparent 60%),
  linear-gradient(180deg, #120c09, var(--bg-0)); }
.home-hero .hero-court { width: 760px; right: -120px; top: -90px; opacity: .10; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 28px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; } }
.home-hero h1 { font-size: clamp(42px, 6.2vw, 84px); max-width: 13ch; }
.home-hero h1 span { color: var(--orange); background: linear-gradient(transparent 82%, rgba(242,112,29,.35) 82%); }
.home-hero .hero-main p { font-size: 18px; max-width: 520px; }
.hero-search { position: relative; max-width: 600px; margin-top: 26px; }
.hero-search .ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--dim); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.hero-search input { width: 100%; padding: 16px 18px 16px 48px; font: 600 16px "Manrope", sans-serif; color: var(--fg); background: rgba(22,16,12,.85);
  border: 2px solid var(--line); border-radius: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.hero-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(242,112,29,.15); }
.hero-search .search-results { left: 0; right: auto; width: 100%; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.quick a:hover { color: var(--fg); border-color: var(--orange); }

.spotlight { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 22px 20px;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--orange) 45%, var(--line));
  background: linear-gradient(165deg, rgba(242,112,29,.20), rgba(22,16,12,.92) 55%); box-shadow: 0 30px 70px rgba(0,0,0,.45); transition: transform .2s; }
.spotlight:hover { transform: translateY(-3px); color: var(--fg); }
.spot-tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.spot-photo { position: relative; margin: 6px 0 4px; }
.spot-photo .avatar.lg { width: 132px; height: 132px; font-size: 42px; box-shadow: 0 0 0 6px rgba(242,112,29,.15); }
.spot-eff { position: absolute; right: -14px; bottom: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--orange); color: #1b0d03; font: 800 9px "Manrope", sans-serif; letter-spacing: .1em; border: 3px solid #1a120d; }
.spot-eff b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: 0; }
.spotlight h2 { font-size: 34px; line-height: 1.05; }
.spot-team { color: var(--muted); font-size: 14px; }
.spot-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-stats div { padding: 10px 4px; }
.spot-stats div + div { border-left: 1px solid var(--line); }
.spot-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.spot-stats span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.spot-foot { font-size: 13px; color: var(--muted); }

.hero-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 34px; border: 1px solid var(--line); border-radius: 14px; background: rgba(22,16,12,.6); }
.hero-band div { padding: 14px 18px; }
.hero-band div + div { border-left: 1px solid var(--line); }
.hero-band b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--fg); }
.hero-band span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 640px) { .hero-band { grid-template-columns: repeat(2, 1fr); } .hero-band div:nth-child(3) { border-left: 0; } .hero-band div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.home-hero .hero-stats { display: none; }

.stars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .stars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stars { grid-template-columns: 1fr; } }
.star { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.star:hover { border-color: var(--orange); color: var(--fg); transform: translateY(-2px); }
.star.first { background: linear-gradient(150deg, rgba(242,112,29,.18), transparent 60%), var(--bg-1); border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); }
.star-head { display: flex; align-items: center; gap: 10px; }
.star-head .who { flex: 1; min-width: 0; }
.star-head .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-head .who small { color: var(--dim); font-size: 12px; }
.star-head .eff { font-family: var(--display); font-size: 26px; color: var(--orange); }
.star-line { display: flex; gap: 14px; color: var(--dim); font-size: 12px; font-weight: 700; }
.star-line b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--fg); margin-right: 3px; }
.star-foot { font-size: 13px; color: var(--muted); }

.abroad { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.abroad-col h3 { display: flex; justify-content: space-between; }
.abroad-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.abroad-row .avatar { width: 32px; height: 32px; font-size: 11px; }
.abroad-row .who { flex: 1; min-width: 0; }
.abroad-row .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abroad-row .who small { color: var(--dim); font-size: 12px; }
.abroad-row .num { font-family: var(--display); font-size: 20px; }
.abroad-row .num small { font: 600 11px "Manrope", sans-serif; color: var(--dim); }
.abroad-col .more { display: block; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--orange-text); }

.year-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.year-leader { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 10px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.year-leader:hover { border-color: var(--orange); color: var(--fg); }
.year-leader .yr { font-family: var(--display); font-size: 26px; color: var(--orange); line-height: 1; }
.year-leader .avatar { width: 56px; height: 56px; }
.year-leader b { font-size: 13px; line-height: 1.25; }
.year-leader small { font: 600 12px var(--mono); color: var(--muted); }
.chip.bday { padding: 4px 12px 4px 4px; }
.chip.bday .avatar { width: 28px; height: 28px; font-size: 10px; }
.icon { flex: none; vertical-align: -0.15em; }
.quick a { display: inline-flex; align-items: center; gap: 6px; }
.quick a .icon { color: var(--orange); }
h2.with-icon { display: inline-flex; align-items: center; gap: 10px; }
h2.with-icon .icon { color: var(--orange); }
.hero-search .ico { fill: none; stroke: var(--dim); }

/* games: day / all toggle + all-games list */
.view-toggle { display: inline-flex; margin-top: 32px; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.view-toggle a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.view-toggle a:hover { color: var(--fg); }
.view-toggle a.on { background: var(--orange); color: #1b0d03; }
.game-day { margin-top: 26px; }
.game-day-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 8px; }
.game-day-head a:hover { color: var(--orange); }
.game-row { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 6px; }
.game-row .tag { justify-self: start; }
.gr-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.gr-teams > span:first-child { text-align: right; }
.gr-teams > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.gr-teams .win, .gr-teams .win a { color: var(--fg); font-weight: 700; }
.gr-teams .score { color: var(--fg); font-weight: 700; white-space: nowrap; }
.gr-players { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.gr-players a { color: var(--muted); white-space: nowrap; }
.gr-players a:hover { color: var(--orange); }
.gr-players b { color: var(--fg); }
.gr-players small { color: var(--dim); margin-right: 2px; }
@media (max-width: 760px) {
  .game-row { grid-template-columns: 1fr; gap: 8px; }
  .gr-teams > span:first-child { text-align: left; }
}
.player-games-head { margin-top: 32px; }
.player-games-head .back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-weight: 700; font-size: 14px; }
.player-games-head .back:hover { color: var(--orange); }

/* ---------- forms (contact page + suggestion widget) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--orange); color: #1b0d03; font: 800 14px "Manrope", sans-serif; transition: background .15s, transform .1s, opacity .15s; }
.btn:hover { background: var(--orange-hi); color: #1b0d03; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.ghost { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--orange); background: var(--bg-3); color: var(--fg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span, .field-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field-label { display: block; margin-bottom: 8px; }
.field > span em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dim); margin-left: 4px; }
.field input, .field textarea { width: 100%; padding: 11px 13px; font: 500 15px "Manrope", sans-serif; color: var(--fg); background: var(--bg-0);
  border: 1px solid var(--line); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,112,29,.14); }
.field .err { color: var(--red); font-size: 13px; font-weight: 600; }
.field:has(.err) input, .field:has(.err) textarea { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fb-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.fb-kind { position: relative; cursor: pointer; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind span { display: flex; align-items: center; gap: 8px; height: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.25; transition: border-color .15s, background .15s, color .15s; }
.fb-kind span .icon { color: var(--dim); transition: color .15s; }
.fb-kind:hover span { color: var(--fg); border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); }
.fb-kind input:checked + span { color: var(--fg); border-color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, var(--bg-2)); }
.fb-kind input:checked + span .icon { color: var(--orange); }
.fb-kind input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.fb-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 8px 6px; animation: fb-pop .3s ease-out; }
.fb-done-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin-bottom: 4px;
  background: rgba(95,192,138,.14); color: var(--green); box-shadow: 0 0 0 8px rgba(95,192,138,.06); }
.fb-done b { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1; }
.fb-done p { margin: 0 0 10px; color: var(--muted); font-size: 14px; max-width: 32ch; }

/* floating widget */
.fb { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 15px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: #1b0d03; font: 800 14px "Manrope", sans-serif; box-shadow: 0 10px 30px rgba(242,112,29,.30), 0 4px 12px rgba(0,0,0,.4);
  transition: transform .15s, background .15s, box-shadow .15s; }
.fb-btn:hover { background: var(--orange-hi); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(242,112,29,.38), 0 4px 12px rgba(0,0,0,.4); }
.fb.open .fb-btn { background: var(--bg-3); color: var(--fg); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.fb-panel { width: 370px; max-height: calc(100vh - 110px); overflow-y: auto; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(242,112,29,.10), transparent 40%), var(--bg-1); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform-origin: bottom right; animation: fb-in .18s ease-out; }
.fb-panel[hidden] { display: none; }
.fb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 18px; border-bottom: 1px solid var(--line-soft); }
.fb-head b { display: block; font-size: 15px; font-weight: 800; }
.fb-head span { font-size: 13px; color: var(--dim); }
.fb-x { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.fb-x:hover { background: var(--bg-3); color: var(--fg); }
.fb-panel .fb-body { padding: 16px 18px 18px; }
.fb-panel .field textarea { min-height: 96px; }
.fb-panel .btn[type=submit] { width: 100%; }
.fb-loading { display: flex; justify-content: center; gap: 6px; padding: 60px 0; }
.fb-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: fb-dot 1s infinite ease-in-out; }
.fb-loading i:nth-child(2) { animation-delay: .15s; } .fb-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes fb-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fb-pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fb-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .fb { right: 12px; bottom: 12px; left: 12px; }
  .fb-btn span { display: none; }
  .fb-btn { padding: 14px; }
  .fb-panel { width: 100%; max-height: calc(100vh - 96px); }
}
@media (prefers-reduced-motion: reduce) { .fb-panel, .fb-done { animation: none; } .fb-btn, .btn { transition: none; } }

/* contact page */
.contact-hero { border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(800px 420px at 90% 10%, rgba(242,112,29,.20), transparent 60%),
  radial-gradient(600px 360px at 0% 100%, rgba(158,48,57,.22), transparent 60%), var(--bg-0); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; } }
.contact-intro h1 { font-size: clamp(42px, 6vw, 76px); margin-top: 6px; }
.contact-intro h1 span { color: var(--orange); }
.contact-intro > p { font-size: 17px; max-width: 46ch; margin: 18px 0 28px; }
.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(22,16,12,.7); border: 1px solid var(--line-soft); }
.contact-points li > .icon { color: var(--orange); margin-top: 2px; }
.contact-points b { display: block; font-size: 15px; }
.contact-points span { color: var(--muted); font-size: 14px; }
.contact-card { padding: 26px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  background: linear-gradient(165deg, rgba(242,112,29,.10), transparent 45%), var(--bg-1); box-shadow: 0 30px 70px rgba(0,0,0,.45); position: relative; }
.contact-card .field textarea { min-height: 160px; }
.contact-card .fb-done { padding: 40px 10px; }
@media (max-width: 560px) { .contact-card { padding: 18px; } }
.foot-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; }
.foot-link .icon { color: var(--orange); }
/* contact page fills the screen down to the footer, content centred vertically */
main:has(.contact-hero) { display: flex; flex-direction: column; }
main:has(.contact-hero) + footer { margin-top: 0; }
.contact-hero { flex: 1; display: flex; align-items: center; }

/* ---------- accounts ---------- */
.acct { flex: none; }
.acct-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--fg); font-weight: 700; font-size: 14px; transition: border-color .15s; }
.acct-btn .icon { color: var(--orange); }
.acct-btn:hover, .acct-btn.on { border-color: var(--orange); color: var(--fg); }
.badge { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: var(--orange); color: #1b0d03; font: 800 11px var(--mono); font-style: normal; border: 2px solid var(--bg-0); }
@media (max-width: 640px) { .acct-btn span { display: none; } .acct-btn { padding: 7px 9px; } }

.btn.sm { padding: 8px 13px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--red); color: #1f0508; }
.btn.danger:hover { background: #ee6f7e; color: #1f0508; }
.form-alert { margin-bottom: 14px; padding: 10px 13px; border-radius: 10px; background: rgba(226,89,106,.12); border: 1px solid rgba(226,89,106,.4); color: #ffb3bd; font-size: 14px; font-weight: 600; }
.field > span:has(.field-link) { display: flex; justify-content: space-between; align-items: baseline; }
.field-link { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--orange-text); font-weight: 700; }
.flash { margin-top: 20px; padding: 12px 16px; border-radius: 10px; border-left: 3px solid var(--green); background: var(--bg-1); color: var(--fg); font-weight: 600; font-size: 14px; }
.flash.error { border-left-color: var(--red); }
.link { color: var(--orange-text); font-weight: 700; }

/* login / register */
main:has(.auth-hero) { display: flex; flex-direction: column; }
main:has(.auth-hero) + footer { margin-top: 0; }
.auth-hero { flex: 1; display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(800px 420px at 90% 10%, rgba(242,112,29,.20), transparent 60%),
  radial-gradient(600px 360px at 0% 100%, rgba(158,48,57,.22), transparent 60%), var(--bg-0); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } .auth-perks { display: none; } }
.auth-pitch h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 11ch; margin-top: 6px; }
.auth-pitch h1 span { color: var(--orange); }
.auth-perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 440px; }
.auth-perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.auth-perks li .icon { color: var(--orange); margin-top: 2px; }
.auth-perks b { color: var(--fg); }
.auth-card { padding: 28px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  background: linear-gradient(165deg, rgba(242,112,29,.10), transparent 45%), var(--bg-1); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
@media (max-width: 560px) { .auth-card { padding: 20px; } }
.auth-title { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; line-height: 1; }
.auth-sub { margin: 8px 0 22px; color: var(--muted); font-size: 14px; }
.auth-sub a, .auth-fine a { color: var(--orange-text); font-weight: 700; }
.auth-fine { margin: 14px 0 0; color: var(--dim); font-size: 12px; text-align: center; }

/* follow button */
.hero-follow { margin-left: auto; align-self: center; flex: none; }
@media (max-width: 640px) { .player-hero .wrap { flex-wrap: wrap; } .hero-follow { margin-left: 0; width: 100%; } .hero-follow .follow-btn { width: 100%; justify-content: center; } }
.follow-form { margin: 0; }
.follow-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--orange); cursor: pointer;
  background: var(--orange); color: #1b0d03; font: 800 15px "Manrope", sans-serif; transition: background .15s, color .15s, border-color .15s, transform .1s;
  box-shadow: 0 10px 26px rgba(242,112,29,.25); }
.follow-btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); color: #1b0d03; }
.follow-btn:active { transform: scale(.97); }
.follow-btn.on { background: transparent; color: var(--fg); border-color: var(--line); box-shadow: none; }
.follow-btn.on .icon { color: var(--green); }
.follow-btn .lbl-hover { display: none; }
.follow-btn.on:not(.fresh):hover { border-color: var(--red); background: rgba(226,89,106,.08); }
.follow-btn.on:not(.fresh):hover .lbl { display: none; }
.follow-btn.on:not(.fresh):hover .lbl-hover { display: inline; color: #ffb3bd; }
.follow-btn.on:not(.fresh):hover .icon { color: var(--red); }
.follow-btn.compact { padding: 6px 12px; font-size: 13px; border-width: 1px; box-shadow: none; }
.follow-btn[disabled] { opacity: .6; }
.follow-btn.fresh { animation: fb-pop .25s ease-out; }
.follow-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #1b0d03; font-size: 13px; }

/* my players */
.me-hero { border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(800px 360px at 90% 0%, rgba(242,112,29,.18), transparent 60%), var(--bg-0); }
.me-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 40px; padding-bottom: 24px; }
.me-head h1 { font-size: clamp(40px, 6vw, 72px); }
.me-head h1 span { color: var(--orange); }
.me-actions { display: flex; gap: 8px; }
.me-actions form { margin: 0; }
.me-band { margin: 0 0 28px; }
.me-band a:hover { color: var(--orange-text); }
.follow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.follow-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.follow-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.follow-who > span { min-width: 0; }
.follow-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-who small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-players a.mine { color: var(--fg); }
.gr-players a.mine::before { content: "★ "; color: var(--orange); }
.gr-players .new { margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: var(--orange); color: #1b0d03; font: 800 10px "Manrope", sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; }
.me-empty { max-width: 620px; margin: 56px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.me-empty-ico { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: rgba(242,112,29,.12); color: var(--orange); box-shadow: 0 0 0 10px rgba(242,112,29,.05); margin-bottom: 18px; }
.me-empty h2 { font-size: 40px; }
.me-empty p { font-size: 16px; margin: 12px 0 0; }
.me-empty .hero-search { width: 100%; text-align: left; }

/* settings */
.wrap.narrow { max-width: 720px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 700; font-size: 14px; }
.set-card { margin-top: 20px; padding: 22px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line); }
.set-card h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.set-card.danger { border-color: rgba(226,89,106,.35); }
.set-row, .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.set-row:first-of-type, .switch-row { border-top: 0; }
.set-row b, .switch-row b { display: block; }
.set-row small, .switch-row small { display: block; color: var(--dim); font-size: 13px; }
.set-row form { margin: 0; }
.switch-row { cursor: pointer; margin-bottom: 12px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + i { background: var(--orange); border-color: var(--orange); }
.switch input:checked + i::after { transform: translateX(20px); background: #1b0d03; }
.switch input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.del-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.del-form .field { margin: 0; flex: 1 1 220px; }

/* flash messages float over the page and fade away */
.flashes { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 45; width: min(520px, calc(100vw - 32px)); padding: 0; display: grid; gap: 8px; pointer-events: none; }
.flashes .flash { margin: 0; box-shadow: 0 18px 40px rgba(0,0,0,.5); border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--bg-2);
  animation: toast 5s ease forwards; }
.flashes .flash.error { border-left-color: var(--red); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 6%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* ---------- profile ---------- */
.acct-ava { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 11px "Manrope", sans-serif; font-style: normal;
  background: linear-gradient(135deg, var(--orange-hi), var(--carmine)); color: #fff; }
.acct-btn:has(.acct-ava) { padding: 5px 13px 5px 6px; }

.pf-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(700px 300px at 85% -10%, rgba(242,112,29,.26), transparent 60%),
  radial-gradient(500px 260px at 10% 120%, rgba(158,48,57,.28), transparent 60%),
  linear-gradient(180deg, #140d0a, var(--bg-0)); }
.pf-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 2px solid rgba(242,112,29,.10); box-shadow: 0 0 0 60px rgba(242,112,29,.03), 0 0 0 120px rgba(242,112,29,.02); pointer-events: none; }
.pf-hero-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 36px; }
.pf-id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.pf-ava { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; font-family: var(--display); font-size: 40px; color: #fff;
  background: linear-gradient(135deg, var(--orange-hi), var(--carmine)); box-shadow: 0 0 0 4px var(--bg-0), 0 0 0 6px rgba(242,112,29,.55), 0 20px 40px rgba(0,0,0,.45); }
.pf-name { min-width: 0; }
.pf-name h1 { font-size: clamp(36px, 5vw, 60px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-meta { color: var(--dim); font-size: 14px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-stats { display: flex; gap: 10px; }
.pf-stats a { min-width: 104px; padding: 12px 16px; border-radius: 14px; background: rgba(22,16,12,.75); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.pf-stats a:hover { border-color: var(--orange); color: var(--fg); transform: translateY(-2px); }
.pf-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.pf-stats span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pf-stats a.hot { border-color: color-mix(in srgb, var(--orange) 60%, var(--line)); background: linear-gradient(160deg, rgba(242,112,29,.22), rgba(22,16,12,.8)); }
.pf-stats a.hot b { color: var(--orange); }
@media (max-width: 640px) {
  .pf-hero-in { padding-top: 24px; padding-bottom: 22px; gap: 18px; }
  .pf-ava { width: 64px; height: 64px; font-size: 26px; }
  .pf-id { gap: 14px; }
  .pf-stats { width: 100%; }
  .pf-stats a { flex: 1; min-width: 0; padding: 10px 12px; }
  .pf-stats b { font-size: 26px; }
}

.pf-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 28px; }
.pf-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.pf-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); }
.pf-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.pf-nav a .icon { color: var(--dim); transition: color .15s; }
.pf-nav a:hover { background: var(--bg-2); color: var(--fg); }
.pf-nav a.on { background: linear-gradient(90deg, rgba(242,112,29,.16), rgba(242,112,29,.04)); color: var(--fg); }
.pf-nav a.on::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.pf-nav a.on .icon, .pf-nav a:hover .icon { color: var(--orange); }
.pf-nav em { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center; font: 700 12px var(--mono); font-style: normal; background: var(--bg-3); color: var(--muted); }
.pf-nav em.hot { background: var(--orange); color: #1b0d03; }
.pf-logout { margin: 0; }
.pf-logout button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 20px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--dim); font: 700 14px "Manrope", sans-serif; }
.pf-logout button:hover { color: var(--red); background: rgba(226,89,106,.08); }
@media (max-width: 860px) {
  .pf-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
  .pf-side { position: sticky; top: 60px; z-index: 15; margin: 0 -16px; padding: 8px 16px; flex-direction: row; align-items: center; gap: 4px;
    background: rgba(14,10,8,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
  .pf-nav { flex: 1; flex-direction: row; overflow-x: auto; padding: 0; background: none; border: 0; scrollbar-width: none; }
  .pf-nav a { flex: none; padding: 9px 12px; gap: 8px; }
  .pf-nav a.on::before { left: 12px; right: 12px; top: auto; bottom: -1px; width: auto; height: 2px; border-radius: 2px; }
  .pf-logout button { padding: 9px 10px; }
  .pf-logout button span { display: none; }
}
@media (max-width: 640px) { .pf-side { top: 104px; } }

.pf-main { min-width: 0; }
.pf-sec { margin-top: 36px; }
.pf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-sec-head h2 { font-size: 28px; }
.pf-sec-head h2 .dim { font-size: 22px; margin-left: 4px; }
.pf-sec-head a { color: var(--orange-text); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pf-main .me-empty { margin-top: 24px; }
.pf-main .set-card:first-of-type { margin-top: 0; }

/* week's best game */
.pf-star { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--orange) 45%, var(--line));
  background: radial-gradient(500px 220px at 100% 0%, rgba(242,112,29,.28), transparent 65%), linear-gradient(160deg, rgba(242,112,29,.10), var(--bg-1) 60%);
  box-shadow: 0 24px 60px rgba(0,0,0,.4); transition: transform .2s, border-color .2s; }
.pf-star:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--fg); }
.pf-star .spot-tag { display: inline-flex; align-items: center; gap: 6px; }
.pf-star-who { display: flex; align-items: center; gap: 18px; margin-top: 12px; min-width: 0; }
.pf-star-who .avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.pf-star-who h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.02; }
.pf-star-who .muted { font-size: 14px; }
.pf-star-stats { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: rgba(14,10,8,.5); }
.pf-star-stats div { padding: 12px 14px; text-align: center; }
.pf-star-stats div + div { border-left: 1px solid var(--line); }
.pf-star-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.pf-star-stats .main b { color: var(--orange); }
.pf-star-stats span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
@media (max-width: 640px) { .pf-star { padding: 18px; } .pf-star-stats { width: 100%; } .pf-star-stats b { font-size: 30px; } .pf-star-who .avatar.lg { width: 64px; height: 64px; } }

/* followed player cards */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.pc { display: flex; flex-direction: column; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, transform .15s; }
.pc:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); transform: translateY(-2px); }
.pc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.pc-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; }
.pc-who .avatar { width: 44px; height: 44px; }
.pc-who > span { min-width: 0; }
.pc-who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-who small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 14px; border-radius: 10px; background: var(--bg-0); border: 1px solid var(--line-soft); }
.pc-stats div { padding: 8px 4px; text-align: center; }
.pc-stats div + div { border-left: 1px solid var(--line-soft); }
.pc-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.05; }
.pc-stats .main b { color: var(--orange); }
.pc-stats span { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.pc-season { margin: 6px 14px 0; font-size: 11px; color: var(--dim); text-align: right; }
.pc-last { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); margin-top: 12px; }
.pc-last.empty { color: var(--dim); }
.pc-res { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-3); font: 800 12px var(--mono); color: var(--muted); }
.pc-res.w { background: rgba(95,192,138,.16); color: var(--green); }
.pc-res.lose { background: rgba(226,89,106,.14); color: var(--red); }
.pc-game { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-game b { color: var(--fg); font-family: var(--mono); }
.pc-game small { color: var(--dim); margin-left: 4px; }
.pf-main .game-day:first-of-type { margin-top: 0; }

/* ---------- auth pages v2 ---------- */
.auth-hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 520px at 30% 40%, rgba(242,112,29,.20), transparent 62%),
  radial-gradient(700px 420px at 100% 100%, rgba(158,48,57,.26), transparent 60%),
  linear-gradient(180deg, #120c09, var(--bg-0)); }
.auth-court { position: absolute; left: -140px; bottom: -160px; width: 640px; opacity: .07; pointer-events: none; transform: rotate(-8deg); }
.auth-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 64px; padding-top: 56px; padding-bottom: 56px; }
.auth-pitch h1 { font-size: clamp(44px, 5.4vw, 76px); max-width: 12ch; }
.auth-pitch h1 span { background: linear-gradient(transparent 80%, rgba(242,112,29,.35) 80%); }
.auth-lead { color: var(--muted); font-size: 17px; max-width: 44ch; margin: 16px 0 0; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.auth-chips .icon { color: var(--orange); }

/* live preview */
.auth-show { position: relative; margin-top: 34px; max-width: 540px; }
.as-notif { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; width: min(100%, 380px); padding: 12px 14px; border-radius: 14px;
  background: rgba(31,22,17,.92); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); backdrop-filter: blur(8px);
  animation: as-drop .6s .2s cubic-bezier(.2,.9,.3,1.2) both; }
.as-notif > div { flex: 1; min-width: 0; }
.as-notif b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-notif small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-notif em { font-style: normal; font-size: 11px; color: var(--dim); align-self: flex-start; }
.as-bell { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange); color: #1b0d03; }
.as-cards { position: relative; height: 200px; margin-top: 14px; }
.as-card { position: absolute; width: 270px; padding: 14px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.as-card.as-1 { left: 8px; top: 10px; z-index: 2; transform: rotate(-3deg); border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
  background: linear-gradient(150deg, rgba(242,112,29,.16), transparent 60%), var(--bg-1); animation: as-float 6s ease-in-out infinite; }
.as-card.as-2 { left: 250px; top: 40px; z-index: 1; transform: rotate(4deg); opacity: .85; animation: as-float 7s 1s ease-in-out infinite; }
.as-card.as-3 { left: 120px; top: 120px; z-index: 0; transform: rotate(-1deg); opacity: .55; filter: blur(.5px); }
.as-head { display: flex; align-items: center; gap: 10px; }
.as-head > div { flex: 1; min-width: 0; }
.as-head b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-head small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-follow { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--fg); }
.as-follow .icon { color: var(--green); }
.as-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-radius: 10px; background: var(--bg-0); border: 1px solid var(--line-soft); }
.as-stats div { padding: 8px 4px; text-align: center; }
.as-stats div + div { border-left: 1px solid var(--line-soft); }
.as-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.as-stats .main b { color: var(--orange); }
.as-stats span { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
@keyframes as-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes as-drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .as-card, .as-notif { animation: none; } }
@media (max-width: 1100px) { .as-card.as-2 { left: 170px; top: 56px; } }
@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; padding-bottom: 36px; }
  .auth-show, .auth-chips, .auth-court { display: none; }
  .auth-lead { font-size: 15px; }
  .auth-pitch h1 { font-size: clamp(38px, 10vw, 56px); }
}

/* the form card */
.auth-card { position: relative; padding: 30px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--orange) 28%, var(--line));
  background: linear-gradient(170deg, rgba(242,112,29,.09), transparent 40%), rgba(22,16,12,.94); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04); }
.auth-card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .8; }
@media (max-width: 560px) { .auth-card { padding: 22px 18px; border-radius: 18px; } }
.auth-brand { font-family: var(--display); font-size: 18px; color: #fff; margin-bottom: 18px; }
.auth-brand em { font-style: normal; color: var(--orange); }
.auth-title { font-size: 36px; }
.auth-sub { margin: 6px 0 22px; }

.input-ico { position: relative; display: block; }
.input-ico .lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; transition: color .15s; }
.input-ico input { padding-left: 42px !important; height: 48px; }
.input-ico:focus-within .lead { color: var(--orange); }
.input-ico.bad input { border-color: var(--red); }
.input-ico:has(.pw-eye) input { padding-right: 44px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: none; color: var(--dim); cursor: pointer; }
.pw-eye:hover { color: var(--fg); background: var(--bg-2); }
.pw-eye.on { color: var(--orange); }
.auth-card .btn.lg { height: 50px; font-size: 15px; }
.auth-card form .btn[type=submit] { margin-top: 6px; box-shadow: 0 12px 28px rgba(242,112,29,.25); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--dim); font-size: 13px; font-weight: 600; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* sign in with Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 50px; border-radius: 10px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font: 700 15px "Manrope", sans-serif; transition: background .15s, box-shadow .15s, transform .1s; }
.btn-google:hover { background: #f4f5f7; color: #1f1f1f; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.btn-google:active { transform: translateY(1px); }
.auth-card .btn-google + .auth-or { margin: 18px 0 16px; }
.with-g { display: inline-flex; align-items: center; gap: 7px; }
.ok-pill { flex: none; padding: 3px 10px; border-radius: 999px; background: rgba(95,192,138,.14); color: var(--green); font-size: 12px; font-weight: 800; }

/* auth: wider, shorter card */
.auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; padding-top: 40px; padding-bottom: 40px; }
.auth-card { padding: 26px 32px 28px; }
.auth-brand { margin-bottom: 12px; }
.auth-title { font-size: 32px; }
.auth-sub { margin: 4px 0 18px; }
.auth-card .field { margin-bottom: 12px; gap: 5px; }
.auth-card .input-ico input { height: 46px; }
.auth-card .btn-google, .auth-card .btn.lg { height: 46px; }
.auth-card .btn-google + .auth-or { margin: 14px 0 12px; }
.auth-or { margin: 16px 0 12px; }
.auth-card .field-row { gap: 12px; }
.auth-card .field-row .input-ico:not(:has(.lead)) input { padding-left: 13px !important; }
.auth-fine { margin-top: 10px; }
.field > span em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dim); margin-left: 4px; }
.name-form .field-row .input-ico:not(:has(.lead)) input { padding-left: 13px !important; }
.name-form .input-ico input { height: 46px; }
@media (max-width: 1100px) { .auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 36px; } }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .auth-card { padding: 22px 18px; } .auth-card .field-row { gap: 0; } }

.cf-turnstile { margin: 0 0 12px; }
.cf-turnstile:empty { display: none; }

/* legal pages */
.legal { max-width: 780px; padding-top: 48px; }
.legal h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 6px; }
.legal-date { color: var(--dim); font-size: 14px; margin: 10px 0 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; color: var(--fg); }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-bottom: 8px; }
.legal li b { color: var(--fg); }
.legal a { color: var(--orange-text); font-weight: 600; }
.legal-contact { margin-top: 40px; padding: 16px 18px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line-soft); }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.foot-links a { color: var(--dim); }
.foot-links a:hover { color: var(--orange-text); }

/* Cookie consent banner (vanilla-cookieconsent) in the site palette */
button.foot-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.foot-link:hover { color: var(--fg); }
#cc-main {
  --cc-font-family: "Manrope", system-ui, sans-serif;
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 999px;
  --cc-z-index: 2147483000;
  --cc-bg: var(--bg-1);
  --cc-primary-color: var(--fg);
  --cc-secondary-color: var(--muted);
  --cc-link-color: var(--orange-text);
  --cc-btn-primary-bg: var(--orange);
  --cc-btn-primary-color: #1b0d03;
  --cc-btn-primary-border-color: var(--orange);
  --cc-btn-primary-hover-bg: var(--orange-hi);
  --cc-btn-primary-hover-color: #1b0d03;
  --cc-btn-primary-hover-border-color: var(--orange-hi);
  --cc-btn-secondary-bg: var(--bg-3);
  --cc-btn-secondary-color: var(--fg);
  --cc-btn-secondary-border-color: var(--line);
  --cc-btn-secondary-hover-bg: var(--line);
  --cc-btn-secondary-hover-color: var(--fg);
  --cc-btn-secondary-hover-border-color: var(--line);
  --cc-separator-border-color: var(--line-soft);
  --cc-toggle-on-bg: var(--orange);
  --cc-toggle-off-bg: #5a4a40;
  --cc-toggle-on-knob-bg: #fff;
  --cc-toggle-off-knob-bg: var(--bg-1);
  --cc-toggle-enabled-icon-color: var(--orange);
  --cc-toggle-disabled-icon-color: var(--bg-1);
  --cc-toggle-readonly-bg: var(--line);
  --cc-toggle-readonly-knob-bg: var(--dim);
  --cc-toggle-readonly-knob-icon-color: var(--line);
  --cc-section-category-border: var(--line-soft);
  --cc-cookie-category-block-bg: var(--bg-2);
  --cc-cookie-category-block-border: var(--line-soft);
  --cc-cookie-category-block-hover-bg: var(--bg-3);
  --cc-cookie-category-block-hover-border: var(--line);
  --cc-cookie-category-expanded-block-bg: var(--bg-2);
  --cc-cookie-category-expanded-block-hover-bg: var(--bg-3);
  --cc-overlay-bg: rgba(0, 0, 0, .65);
  --cc-webkit-scrollbar-bg: var(--line);
  --cc-webkit-scrollbar-hover-bg: var(--dim);
  --cc-footer-bg: var(--bg-2);
  --cc-footer-color: var(--muted);
  --cc-footer-border-color: var(--line-soft);
}
#cc-main .cm { border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
#cc-main .cm__title { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .02em; }
#cc-main .pm { border: 1px solid var(--line); }
