:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #f4f4f4;
  background: #080808;
  --surface: #141414;
  --line: #2b2b2b;
  --muted: #afafaf;
  --accent: #ffc400;
  --accent-tint: #251f0c;
  --accent-border: #574718;
  --green: #78d7b0;
  --sidebar: 232px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 10; background: var(--surface); padding: 12px; }
.skip:focus { top: 12px; }
h1, h2, h3, p { margin: 0; }
svg { width: 19px; height: 19px; display: block; flex: none; }
.shell { min-height: 100dvh; }
.sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 17px 19px; border-right: 1px solid var(--line); background: #0c0c0c; display: flex; flex-direction: column; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 7px 31px; font-size: 1.11rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.brand-second { color: var(--accent); margin-left: 3px; }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: .625rem; letter-spacing: .13em; font-weight: 650; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 1px solid var(--accent-border); border-radius: 9px; background: #171306; }
.brand-mark::after { content: ""; width: 21px; height: 23px; background: var(--accent); clip-path: polygon(25% 6%,46% 6%,63% 58%,76% 6%,100% 6%,76% 94%,54% 94%,38% 44%,24% 94%,0 94%); }
.nav-group { margin: 0 0 23px; }
.nav-label { display: block; color: #9e9e9e; text-transform: uppercase; letter-spacing: .13em; font-size: .6875rem; font-weight: 700; padding: 0 12px; margin-bottom: 8px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 11px; margin: 3px 0; min-height: 42px; border-radius: 8px; border: 1px solid transparent; color: #b9b9b9; font-size: .875rem; font-weight: 600; }
.nav-link:hover { background: #1d1d1d; color: #fff; }
.nav-link[aria-current] { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-border); }
.sidebar-foot { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); margin-top: auto; padding: 16px 9px 0; color: var(--muted); font-size: .8125rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.workspace { margin-left: var(--sidebar); min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { min-height: 67px; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; background: #0c0c0c; border-bottom: 1px solid var(--line); }
.top-left, .top-right { display: flex; align-items: center; gap: 12px; }
#breadcrumb { font-size: .875rem; color: #d2d2d2; font-weight: 650; }
.server-control, .search-trigger { display: flex; align-items: center; gap: 9px; background: #171717; color: #e7e7e7; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: .875rem; min-height: 37px; }
.server-control > span, .search-trigger > span:first-child { color: var(--muted); }
.server-control select { padding: 0 4px 0 0; color: inherit; background: transparent; border: 0; cursor: pointer; }
select option { background: var(--surface); }
.search-trigger:hover, .server-control:hover { border-color: #6c6c6c; }
kbd { display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; color: #afafaf; border-radius: 4px; border: 1px solid #383838; background: #242424; font: .75rem ui-monospace, monospace; }
.mobile-menu { display: none !important; }
main { flex: 1; width: 100%; max-width: 1536px; margin: 0 auto; padding: 29px 32px 36px; outline: 0; }
.hero { min-height: 340px; position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 28px 39px; border: 1px solid #3c3421; border-radius: 14px; background: #0d0d0d; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/nova-night.webp") right center / cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080808ec, #080808b8 28%, #0808081a 60%, transparent 76%), linear-gradient(0deg, #0005, transparent 38%); }
.hero-content { max-width: 490px; }
.eyebrow { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 3px; background: currentColor; transform: skewX(-32deg); }
.hero h1 { font: oblique 400 clamp(3rem, 5.2vw, 4.75rem)/.94 Impact, "Arial Narrow", sans-serif; font-synthesis: style; letter-spacing: -.025em; text-transform: uppercase; text-shadow: 0 2px 18px #080808a0; }
.hero h1 span { color: var(--accent); }
.hero p { color: #d6d6d6; line-height: 1.55; margin: 16px 0 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #444; border-radius: 7px; padding: 8px 13px; background: #191919; color: #f4f4f4; font-weight: 650; font-size: .875rem; }
.button:hover { border-color: #777; }
.button:disabled { opacity: .48; cursor: default; }
.button.primary { background: var(--accent); color: #141004; border-color: var(--accent); }
.button.primary:hover { background: #ffda53; }
.discord-login { white-space: nowrap; }
.discord-login[hidden] { display: none; }
.discord-account { position: relative; min-width: 0; }
.discord-account summary { max-width: 152px; cursor: pointer; }
.discord-account summary::-webkit-details-marker { display: none; }
#discord-account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-menu { position: absolute; z-index: 5; inset: calc(100% + 8px) 0 auto auto; min-width: 156px; max-width: 240px; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 25px #0009; }
#discord-name { overflow-wrap: anywhere; }
.auth-notice { margin: 12px 32px 0; padding: 10px 12px; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-border); border-radius: 7px; font-size: .875rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 26px; }
.metric { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 84px; padding: 13px 15px; }
.metric-icon { width: 41px; height: 41px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-border); border-radius: 9px; flex: none; }
.metric-value { display: block; font-size: clamp(1.2rem, 2.25vw, 1.65rem); line-height: 1.1; font-weight: 780; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric-label { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: start; gap: 17px; }
.overview-grid > div { min-width: 0; display: grid; gap: 17px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 9px; }
.panel-title svg { color: var(--accent); }
.panel-head h2 { font-size: 1.06rem; letter-spacing: -.018em; }
.text-link { color: var(--accent); font-size: .8125rem; font-weight: 680; }
.text-link:hover { text-decoration: underline; }
.match { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(75px, .65fr) minmax(0, 1fr); gap: 9px; align-items: center; padding: 12px 15px; color: inherit; background: transparent; text-align: left; border: 0; border-bottom: 1px solid var(--line); min-height: 69px; }
.match:last-child { border-bottom: 0; }
.match:hover, .data-table tbody tr:hover { background: #1f1f1f; }
.team { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: .875rem; font-weight: 680; }
.team > span:last-child { overflow-wrap: anywhere; }
.team.right { flex-direction: row-reverse; text-align: right; }
.team-badge { width: 31px; height: 31px; display: inline-grid; place-items: center; flex: none; border: 1px solid color-mix(in srgb, var(--team), transparent 65%); background: color-mix(in srgb, var(--team), #171717 86%); color: var(--team); border-radius: 8px; font: 750 .82rem ui-monospace, monospace; }
.result { text-align: center; }
.result strong { display: block; white-space: nowrap; line-height: 1; font: 750 1.14rem ui-monospace, monospace; }
.result strong .win, .win { color: var(--green); }
.result strong .sep { color: #afafaf; padding: 0 4px; }
.result small, .subtle { color: var(--muted); font-size: .75rem; }
.result small { display: block; margin-top: 5px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: .875rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { color: var(--muted); font-size: .75rem; font-weight: 620; background: #101010; }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.data-table .accent { color: var(--accent); font-weight: 750; }
.row-button { background: transparent; border: 0; color: inherit; padding: 0; text-align: left; }
.row-button:hover, .data-table a:hover { color: var(--accent); }
.page-title { margin-bottom: 22px; }
.page-title h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.055em; line-height: 1.08; }
.page-title p { margin-top: 9px; line-height: 1.5; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; align-items: center; }
.filters input, .filters select, #global-search { border: 1px solid #3c3c3c; border-radius: 7px; background: #171717; color: #f0f0f0; padding: 10px 12px; font-size: .875rem; min-width: 0; }
.filters input[type=checkbox] { accent-color: var(--accent); }
.empty { color: var(--muted); padding: 23px 16px; line-height: 1.5; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; color: inherit; padding: 20px; }
button.card:hover { border-color: var(--accent-border); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); line-height: 1.5; }
.tier { display: flex; gap: 10px; padding: 11px; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.tier:last-child { border-bottom: 0; }
.tier-letter { width: 37px; padding: 8px; text-align: center; border-radius: 6px; background: var(--accent-tint); color: var(--accent); font-weight: 800; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.footer span:first-child { color: #e7e7e7; font-weight: 730; letter-spacing: .08em; }
dialog { width: min(calc(100% - 26px), 610px); background: var(--surface); color: inherit; border: 1px solid #484848; border-radius: 12px; padding: 17px; max-height: 88dvh; box-shadow: 0 15px 70px #0009; }
dialog::backdrop { background: #080808cc; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 1.4rem; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); background: #1a1a1a; color: #f0f0f0; border-radius: 6px; }
.close { font-size: 1.3rem; }
#global-search { width: 100%; }
.search-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 12px 6px; background: transparent; color: inherit; text-align: left; }
.search-item:hover { color: var(--accent); }
.dialog-summary { color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.detail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 8px; padding: 0; margin: 0 0 12px; }
.detail-stats > div { background: #202020; border-radius: 7px; padding: 10px; }
.detail-stats dt { color: var(--muted); font-size: .75rem; }
.detail-stats dd { font-weight: 750; font-size: 1.13rem; margin: 2px 0 0; }
@media (max-width: 1120px) {
  :root { --sidebar: 194px; }
  main { padding-inline: 22px; }
  .topbar, .footer { padding-inline: 22px; }
  .overview-grid { grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); gap: 13px; }
  .metric { gap: 8px; padding-inline: 10px; }
  .team-badge { width: 27px; height: 27px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease; box-shadow: 10px 0 45px #0008; inset-block-start: 58px; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 58px; position: sticky; top: 0; z-index: 4; }
  .mobile-menu { display: grid !important; }
  .match { padding-inline: 11px; }
}
@media (max-width: 688px) {
  main { padding: 14px 13px 24px; }
  .topbar, .footer { padding-inline: 13px; }
  .hero { min-height: 285px; padding: 24px 18px; }
  .hero::before { background-position: 82% 50%; }
  .hero::after { background: linear-gradient(90deg, #080808ee, #080808b8 51%, #0808084d), linear-gradient(0deg, #080808ba, transparent 55%); }
  .hero h1 { font-size: clamp(2.05rem, 10.2vw, 3.5rem); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
  .metric { min-height: 68px; }
  .metric-icon { width: 34px; height: 34px; }
  .search-trigger kbd, .search-label { display: none; }
  .discord-prefix { display: none; }
  .discord-account summary { max-width: 76px; }
  .auth-notice { margin-inline: 13px; }
  .search-trigger { padding-inline: 9px; }
  .top-right, .top-left { gap: 7px; }
  .server-control { padding-inline: 6px; gap: 4px; }
  .server-control > span { display: none; }
  #breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-left { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
