:root {
    --surface: #2b2927;
    --surface-soft: #252321;
    --surface-raised: #36312e;
    --surface-hover: #403934;
    --line: #ffffff20;
    --line-strong: #ffffff36;
    --text: #f9f5ee;
    --muted: #c1b8ae;
    --quiet: #91877d;
    --accent: #ffad25;
    --accent-bright: #ffc45a;
    --accent-ink: #231503;
    --header: #36120b;
    --notice: #5f250f;
    --notice-border: #a94b1c;
    --radius: .45rem;
    --radius-large: .75rem;
    --shadow: 0 1rem 2.5rem #0006;
}
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }
button, select { font: inherit; }
.hero-icon, svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.page-shell { width: min(100% - 2rem, 62.5rem); margin-inline: auto; }
main { min-height: 60vh; padding-block: 1.75rem; }
.saxton-section-heading .season-picker {
    flex: 0 0 auto;
    margin: 0;
}
.notice { margin: 0 0 1rem; padding: .85rem 1rem; color: #fff4e9; background: linear-gradient(135deg, var(--notice), #4a2013); border: 1px solid var(--notice-border); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.controls { margin-bottom: .65rem; padding: .6rem .75rem; text-align: center; background: #1716158c; border: 1px solid var(--line); border-radius: var(--radius); font-size: .85rem; }
.button, .season-picker button { display: inline-block; padding: .7rem 1rem; color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-bright), var(--accent)); border: 1px solid #ffd477; border-radius: var(--radius); box-shadow: inset 0 1px #fff7; font-weight: 700; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.button:hover, .season-picker button:hover { color: #17110a; background: linear-gradient(180deg, #ffda8a, var(--accent-bright)); box-shadow: inset 3px 0 var(--accent), inset 0 1px #fff7; transform: translateY(-1px); text-decoration: none; }
.map-rankings-table th:nth-child(1) { width: 12%; }
.map-rankings-table th:nth-child(2) { width: 48%; }
.map-rankings-table th:nth-child(3) { width: 20%; }
.map-rankings-table th:nth-child(4) { width: 20%; }
.sort-link { display: inline-flex; gap: .3rem; align-items: center; color: inherit; font: inherit; }
.sort-link:hover { color: var(--accent-bright); }
.sort-link.is-active { color: var(--accent-bright); }
.sort-link.is-active .sort-indicator { font-weight: 700; }
table { width: 100%; min-width: 38rem; border-collapse: separate; border-spacing: 0; }
th, td { padding: .78rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #1615148c; border-top: 1px solid var(--line); border-bottom-color: var(--line-strong); font-family: Jura, sans-serif; font-size: .77rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
th:first-child { border-top-left-radius: .35rem; }
th:last-child { border-top-right-radius: .35rem; }
tbody tr { transition: background-color .15s ease, box-shadow .15s ease; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: .25rem; color: var(--quiet); font-size: .77rem; }
main a:not(.stats-tile):not(.mode-card):not(.button):not(.back-button):not(.legacy-search-clear):not(.error-page-section-link):not(.table-cell-row-link):not(.steam-identity):not(.table-row-secondary-link) { border-left: 3px solid transparent; padding-left: .3em; transition: border-color .15s ease, color .15s ease; }
main a:not(.stats-tile):not(.mode-card):not(.button):not(.back-button):not(.legacy-search-clear):not(.error-page-section-link):not(.table-cell-row-link):not(.steam-identity):not(.table-row-secondary-link):hover { border-left-color: var(--accent); text-decoration: none; }
.stats-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; text-align: center; }
.stats-tile { position: relative; display: block; width: 100%; overflow: hidden; color: #fff; background: #171615; border: 1px solid var(--line); border-radius: var(--radius-large); box-shadow: 0 .4rem 1rem #0003; }
.stats-tile::before { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 3px; content: ""; background: var(--accent); transform: translateX(-3px); transition: transform .15s ease; }
.stats-tile:not(.disabled):hover { color: #fff; box-shadow: 0 .55rem 1.3rem #0005; transform: translateY(-1px); text-decoration: none; }
.stats-tile:not(.disabled):hover::before { transform: translateX(0); }
.stats-tile img { display: block; width: 100%; height: auto; }
.stats-tile-overlay { position: absolute; z-index: 2; top: 50%; left: 0; width: 100%; color: #fff; font-family: Jura, sans-serif; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; text-align: center; text-shadow: 0 .15rem .5rem #000; transform: translateY(-50%); }
.stats-tile.disabled { cursor: not-allowed; }
.stats-tile.disabled img { opacity: .16; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mode-card { position: relative; display: block; aspect-ratio: 477 / 105; overflow: hidden; background-color: #171615; background-position: center; background-size: cover; border: 1px solid var(--line); border-radius: var(--radius-large); box-shadow: 0 .4rem 1rem #0003; transition: background-size .15s ease, box-shadow .15s ease, transform .15s ease; }
.mode-card--vsh { background-image: url("/images/maprankings/vsh.png"); }
.mode-card--dr { background-image: url("/images/maprankings/dr.png"); }
.mode-card--ph { background-image: url("/images/maprankings/ph.png"); }
.mode-card--zf { background-image: url("/images/maprankings/zf.png"); }
.mode-card--jump { background-image: url("/images/maprankings/jump.png"); }
.mode-card--db { background-image: url("/images/maprankings/db.png"); }
.mode-card--fw { background-image: url("/images/maprankings/fw.png"); }
.mode-card::before { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 3px; content: ""; background: var(--accent); transform: translateX(-3px); transition: transform .15s ease; }
.mode-card:hover { box-shadow: 0 .55rem 1.3rem #0005; transform: translateY(-1px); text-decoration: none; }
.mode-card:hover::before { transform: translateX(0); }
.mode-card:hover { background-size: 102%; }
.season-picker { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin: 0 0 .85rem; }
.season-picker select { padding: .55rem; color: var(--text); background: #171615; border: 1px solid #ffffff32; border-radius: var(--radius); }
.player-cell { min-width: 15rem; }
.dodgeball-row { cursor: pointer; }
.dodgeball-player-map-link:is(:hover, :focus-visible) { color: inherit; text-decoration: none; }
.dodgeball-map-rank-link:is(:hover, :focus-visible) { color: inherit; text-decoration: none; }
.dodgeball-player-detail-inner { display: grid; grid-template-columns: minmax(10rem, .55fr) minmax(0, 2fr); gap: 1rem; align-items: start; margin-bottom: 0; }
.dodgeball-player-detail-player { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: .55rem; }
.dodgeball-player-detail-player .steam-identity { flex-direction: column; gap: .7rem; max-width: 100%; text-align: center; }
.dodgeball-player-detail-player .steam-identity-avatar { --steam-avatar-size: 6.5rem; }
.dodgeball-player-detail-player .steam-identity-copy { justify-items: center; }
.dodgeball-player-detail-player .steam-identity-name { max-width: 13rem; font-family: Jura, sans-serif; font-size: 1.25rem; }
.dodgeball-player-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; background: radial-gradient(ellipse 115% 105% at center, rgb(0 0 0 / 4%) 0%, transparent 78%); }
.dodgeball-player-details > div { display: grid; min-width: 0; gap: .16rem; padding: .62rem .7rem; }
.dodgeball-player-details dt { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dodgeball-player-details dd { min-width: 0; margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.message-page { max-width: 45rem; margin: 3rem auto; text-align: center; }
@media (max-width: 55rem) { .mode-grid, .stats-tiles { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .dodgeball-player-detail-inner, .dodgeball-player-details { grid-template-columns: 1fr; } .dodgeball-player-detail-player { align-items: flex-start; } .dodgeball-player-detail-player .steam-identity { flex-direction: row; text-align: start; } .dodgeball-player-detail-player .steam-identity-copy { justify-items: start; } }
@media (max-width: 38rem) { .page-shell { width: min(100% - 1rem, 62.5rem); } }
