@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0c0d0d;
  --panel: #131515;
  --panel-2: #191b1b;
  --line: #303333;
  --muted: #808887;
  --paper: #f2f3eb;
  --acid: #dfff00;
  --cyan: #61e9e4;
  --coral: #ff5c45;
  --orange: #ffb000;
  --sidebar: 236px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.7; }

.app-shell { min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  background: #101111;
  border-right: 1px solid var(--line);
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.brand-mark {
  background: var(--acid);
  color: #050606;
  width: 82px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: skew(-7deg);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
  clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
}
.brand-mark > * { transform: skew(7deg); }
.brand-mark i { font-size: 15px; }
.brand-copy { font-family: var(--display); font-weight: 700; font-size: 12px; line-height: .88; letter-spacing: 1.7px; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  position: relative;
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  color: #8b9190;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  text-align: left;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .8px;
  transition: .2s ease;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item::before { content: ""; position: absolute; left: -20px; width: 3px; height: 0; background: var(--acid); transition: .2s ease; }
.nav-item:hover { color: var(--paper); background: #181a1a; }
.nav-item.active { color: var(--paper); background: #1b1d1d; }
.nav-item.active::before { height: 24px; }
.nav-badge { margin-left: auto; min-width: 21px; padding: 3px 5px; text-align: center; color: var(--ink); background: var(--acid); font-family: var(--mono); font-size: 9px; font-weight: 600; }
.access-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 9px rgba(255,92,69,.75); }
.pool-live-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px rgba(97,233,228,.75); }
.season-card { margin-top: auto; padding: 16px 14px; border: 1px solid var(--line); background: #151717; }
.season-card__top, .season-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .8px; }
.season-card__top span:last-child { color: var(--acid); font-family: var(--display); font-size: 22px; font-weight: 700; }
.season-progress { background: #323535; height: 3px; margin: 13px 0 10px; }
.season-name { display: block; font-family: var(--display); font-size: 13px; line-height: 1; letter-spacing: .7px; margin: 6px 0 1px; }
.season-progress span { display: block; width: 68%; height: 100%; background: var(--acid); box-shadow: 0 0 12px rgba(223,255,0,.25); }
.season-card__meta { color: var(--muted); font-size: 9px; }
.icon-text-button { margin-top: 16px; border: 0; background: transparent; color: #949a98; cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: .6px; padding: 9px 3px; }
.icon-text-button:hover { color: var(--acid); }
.icon-text-button svg { width: 16px; }
.sidebar-footnote { color: #525756; font-size: 7px; line-height: 1.7; letter-spacing: 1px; margin-top: 12px; }

.site-content { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 68px; border-bottom: 1px solid var(--line); padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: rgba(12,13,13,.86); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.network-status { color: #717876; font-size: 9px; letter-spacing: 1.1px; display: flex; align-items: center; gap: 7px; }
.network-status i, .update-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px rgba(223,255,0,.6); }
.network-status span { color: #3e4241; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.square-button { width: 38px; height: 38px; border: 1px solid var(--line); background: #141616; cursor: pointer; display: grid; place-items: center; }
.square-button:hover { border-color: var(--acid); color: var(--acid); }
.square-button svg { width: 17px; }
.player-chip { border-left: 1px solid var(--line); padding-left: 13px; display: flex; align-items: center; gap: 9px; }
.player-chip { border-top: 0; border-right: 0; border-bottom: 0; background: transparent; cursor: pointer; text-align: left; }
.player-chip:hover b { color: var(--acid); }
.player-avatar { width: 34px; height: 34px; display: grid; place-items: center; background: var(--cyan); color: #081111; font-family: var(--display); font-weight: 800; transform: skew(-5deg); }
.player-chip b, .player-chip small { display: block; }
.player-chip b { font-family: var(--display); letter-spacing: 1px; font-size: 13px; }
.player-chip small { color: var(--muted); font-size: 7px; letter-spacing: .7px; margin-top: 2px; }
.mobile-menu { display: none; }

main { max-width: 1500px; margin: 0 auto; padding: 45px 42px 72px; }
.page { display: none; animation: reveal .35s ease both; }
.page.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.eyebrow { color: #8b9290; display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 2px; margin-bottom: 8px; }
.eyebrow span { width: 20px; height: 2px; background: var(--acid); }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-size: clamp(54px, 5.5vw, 88px); font-weight: 800; letter-spacing: -2.5px; line-height: .84; }
h1 em { color: var(--acid); font-style: normal; }
.page-heading p { color: #777f7d; margin-top: 15px; font-size: 11px; }
.primary-button {
  min-height: 48px;
  border: 0;
  background: var(--acid);
  color: #0a0b0b;
  padding: 0 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .7px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: filter .2s ease, transform .2s ease;
}
.primary-button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.primary-button svg { width: 17px; }
.primary-button:disabled { filter: grayscale(.7); opacity: .48; cursor: not-allowed; transform: none; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 20px; background: #111313; }
.stat-strip article { min-height: 88px; padding: 16px 22px; border-right: 1px solid var(--line); display: grid; grid-template-columns: auto auto; align-items: center; }
.stat-strip article:last-child { border-right: 0; }
.stat-strip span { color: #69706e; font-size: 8px; letter-spacing: 1.2px; grid-column: 1 / -1; }
.stat-strip strong { font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.stat-strip small { color: #68706e; font-size: 7px; letter-spacing: .8px; justify-self: end; }
.stat-strip small.positive { color: var(--acid); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.next-match-panel, .queue-panel, .standings-card { border: 1px solid var(--line); background: var(--panel); }
.panel-kicker { height: 43px; padding: 0 17px; display: flex; align-items: center; gap: 9px; color: #9ea4a2; font-size: 8px; letter-spacing: 1.4px; border-bottom: 1px solid var(--line); }
.panel-kicker i { width: 5px; height: 5px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 10px rgba(255,92,69,.8); }
.panel-kicker span { margin-left: auto; background: rgba(223,255,0,.1); border: 1px solid rgba(223,255,0,.22); color: var(--acid); padding: 5px 8px; }
.match-stage { min-height: 248px; position: relative; display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; overflow: hidden; padding: 26px 35px; background: #161818; }
.match-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(97,233,228,.06), transparent 45%, rgba(255,92,69,.06)); pointer-events: none; }
.stage-grid { position: absolute; inset: -50%; opacity: .15; background-image: linear-gradient(#53605d 1px, transparent 1px), linear-gradient(90deg, #53605d 1px, transparent 1px); background-size: 34px 34px; transform: perspective(360px) rotateX(58deg) rotateZ(-10deg); mask-image: radial-gradient(ellipse, black 0%, transparent 58%); }
.hazard-label { position: absolute; left: 11px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; color: #4c5250; letter-spacing: 2px; font-size: 7px; }
.team-lockup { position: relative; z-index: 2; display: flex; align-items: center; gap: 15px; }
.team-lockup--right { flex-direction: row-reverse; text-align: right; }
.team-emblem { width: clamp(64px, 7vw, 92px); aspect-ratio: 1; display: grid; place-items: center; font-family: var(--display); font-size: clamp(27px, 3vw, 38px); font-weight: 800; color: #071110; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.emblem-cyan { background: var(--cyan); }
.emblem-coral { background: var(--coral); }
.team-lockup span, .team-lockup small { display: block; font-size: 7px; letter-spacing: 1px; color: #717977; }
.team-lockup strong { display: block; font-family: var(--display); font-size: clamp(23px, 3vw, 37px); letter-spacing: .5px; margin: 2px 0; }
.versus { z-index: 2; text-align: center; }
.versus span, .versus small { display: block; }
.versus span { color: #6f7674; font-size: 7px; letter-spacing: 1px; }
.versus b { display: inline-grid; place-items: center; color: var(--acid); font-family: var(--display); font-size: 24px; border: 1px solid #444947; width: 43px; height: 43px; margin: 8px 0; transform: rotate(45deg); }
.versus b::first-line { transform: rotate(-45deg); }
.versus small { color: var(--paper); font-size: 9px; letter-spacing: 1px; }
.match-footer { display: grid; grid-template-columns: 1.05fr 1.2fr 1fr auto; align-items: stretch; min-height: 68px; border-top: 1px solid var(--line); }
.match-footer > div { padding: 13px 17px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.match-footer span, .match-footer strong { display: block; }
.match-footer span { font-size: 7px; color: #6e7573; letter-spacing: 1px; margin-bottom: 5px; }
.match-footer strong { font-family: var(--display); font-size: 12px; letter-spacing: .5px; }
.secondary-button { margin: 12px; border: 1px solid #444947; background: #191b1b; color: var(--paper); font-family: var(--display); font-size: 11px; font-weight: 700; padding: 0 13px; cursor: pointer; white-space: nowrap; }
.secondary-button:hover { border-color: var(--acid); color: var(--acid); }
.secondary-button span { display: inline; margin-left: 6px; color: currentColor; }
.queue-panel { min-height: 100%; }
.panel-heading { height: 57px; padding: 0 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-heading span, .panel-heading small { display: block; }
.panel-heading span { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .8px; }
.panel-heading small { font-size: 7px; color: var(--muted); margin-top: 3px; letter-spacing: .8px; }
.panel-heading button, .text-button { border: 0; background: transparent; color: var(--acid); cursor: pointer; font-size: 8px; letter-spacing: .8px; }
.queue-item { min-height: 65px; border-bottom: 1px solid #282b2a; padding: 11px 14px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; transition: background .2s ease; }
.queue-item:hover { background: #181a1a; }
.queue-date { text-align: center; border-right: 1px solid #343837; padding-right: 10px; }
.queue-date b, .queue-date small, .queue-main b, .queue-main small { display: block; }
.queue-date b { font-family: var(--display); font-size: 18px; }
.queue-date small { color: var(--muted); font-size: 7px; letter-spacing: .8px; }
.queue-main b { font-family: var(--display); font-size: 12px; letter-spacing: .5px; }
.queue-main small { color: var(--muted); font-size: 7px; margin-top: 4px; letter-spacing: .6px; }
.queue-time { color: #aeb3b1; font-size: 8px; }
.open-slot { border: 0; width: 100%; min-height: 57px; color: #747b79; background: repeating-linear-gradient(-45deg, #141616, #141616 5px, #161818 5px, #161818 10px); cursor: pointer; display: grid; grid-template-columns: 31px 1fr; grid-template-rows: 1fr 1fr; align-items: end; text-align: left; padding: 10px 14px; }
.open-slot:hover { color: var(--acid); }
.open-slot span { grid-row: 1 / 3; width: 24px; height: 24px; border: 1px solid currentColor; display: grid; place-items: center; align-self: center; }
.open-slot b { font-family: var(--display); font-size: 10px; }
.open-slot small { align-self: start; font-size: 7px; letter-spacing: .7px; }

.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 39px 0 17px; }
.section-heading > div { display: flex; align-items: center; gap: 14px; }
.section-index { color: var(--acid); border: 1px solid #3d4140; padding: 7px; font-family: var(--display); font-size: 12px; }
.section-heading h2 { font-family: var(--display); font-size: 21px; letter-spacing: .7px; }
.section-heading p { color: var(--muted); font-size: 8px; margin-top: 3px; }
.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.pulse-team { position: relative; padding: 16px; border-right: 1px solid var(--line); background: #121414; min-height: 105px; overflow: hidden; }
.pulse-team:last-child { border-right: 0; }
.pulse-team__rank { color: #5d6462; position: absolute; right: 12px; top: 9px; font-family: var(--display); font-size: 25px; font-weight: 700; }
.pulse-team strong { display: block; font-family: var(--display); font-size: 18px; letter-spacing: .7px; }
.pulse-team > span { color: var(--muted); font-size: 7px; letter-spacing: 1px; }
.form-pips { display: flex; gap: 4px; margin-top: 16px; }
.form-pips i { width: 22px; height: 3px; background: #3d4240; }
.form-pips i.win { background: var(--acid); }
.form-pips i.loss { background: var(--coral); }

.scrim-toolbar { display: flex; justify-content: space-between; gap: 20px; border: 1px solid var(--line); padding: 10px; background: var(--panel); margin-bottom: 15px; }
.filter-tabs { display: flex; gap: 3px; }
.filter-tabs button { border: 0; background: transparent; color: var(--muted); padding: 11px 16px; cursor: pointer; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.filter-tabs button:hover { color: var(--paper); }
.filter-tabs button.active { background: var(--acid); color: var(--ink); }
.search-field { width: 290px; height: 38px; border: 1px solid #383c3b; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.search-field:focus-within { border-color: var(--acid); }
.search-field svg { width: 15px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 9px; letter-spacing: .7px; }
.scrim-list { display: grid; gap: 8px; }
.scrim-row { border: 1px solid var(--line); background: #121414; display: grid; grid-template-columns: 105px minmax(210px, 1.2fr) .85fr .75fr 118px; align-items: stretch; min-height: 92px; transition: border-color .2s ease, transform .2s ease; }
.scrim-row:hover { border-color: #555b59; transform: translateX(2px); }
.scrim-row > div { border-right: 1px solid var(--line); padding: 14px 17px; display: flex; flex-direction: column; justify-content: center; }
.scrim-row > div:last-of-type { border-right: 0; }
.scrim-day span { font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.scrim-day b { font-family: var(--display); font-size: 28px; line-height: 1; }
.scrim-opponent { flex-direction: row !important; justify-content: flex-start !important; align-items: center; gap: 12px; }
.mini-emblem { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; background: #262a29; color: var(--acid); font-family: var(--display); font-weight: 800; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.scrim-opponent strong, .scrim-meta strong { font-family: var(--display); letter-spacing: .6px; font-size: 15px; }
.scrim-opponent small, .scrim-meta span { color: var(--muted); font-size: 7px; letter-spacing: .8px; margin-top: 5px; }
.scrim-status { align-items: center; gap: 7px; }
.status-tag { display: inline-block; padding: 5px 7px; border: 1px solid currentColor; font-size: 7px; letter-spacing: 1px; color: var(--acid); }
.status-tag.open { color: var(--cyan); }
.status-tag.pending { color: var(--orange); }
.join-button { margin: 15px; align-self: center; min-height: 37px; border: 1px solid #434846; background: transparent; color: var(--paper); cursor: pointer; font-family: var(--display); font-size: 11px; font-weight: 700; }
.join-button:hover { border-color: var(--acid); color: var(--acid); }
.scrim-row > .scrim-details { display: none; grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 16px 18px; color: #a2a8a6; font-size: 9px; line-height: 1.7; background: #171919; }
.scrim-row.expanded > .scrim-details { display: block; }
.empty-state { padding: 70px; text-align: center; border: 1px dashed #3c4140; color: var(--muted); }
.empty-state b { display: block; color: var(--paper); font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.empty-formation.error { color: var(--orange); }

.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-card { border: 1px solid var(--line); background: #121414; padding: 22px; min-height: 274px; position: relative; overflow: hidden; }
.team-card::after { content: attr(data-rank); position: absolute; right: -3px; bottom: -25px; font-family: var(--display); font-weight: 800; font-size: 110px; color: rgba(255,255,255,.025); }
.team-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.team-card .team-emblem { width: 57px; font-size: 20px; }
.seed-tag { font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.team-card h3 { font-family: var(--display); font-size: 26px; margin-top: 23px; letter-spacing: .7px; }
.team-card p { color: var(--muted); font-size: 8px; margin-top: 4px; letter-spacing: .7px; }
.roster-stack { display: flex; margin-top: 20px; }
.roster-stack span { width: 30px; height: 30px; border: 2px solid #121414; background: #313534; color: #aab0ae; border-radius: 50%; display: grid; place-items: center; margin-right: -6px; font-family: var(--display); font-size: 9px; }
.team-card-stats { position: absolute; right: 20px; bottom: 24px; text-align: right; }
.team-card-stats b, .team-card-stats small { display: block; }
.team-card-stats b { font-family: var(--display); font-size: 18px; }
.team-card-stats small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.team-identity { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.identity-tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #373c3a; padding: 6px 8px; color: #9da3a1; font-size: 7px; letter-spacing: .65px; position: relative; z-index: 2; }
.identity-tag b { color: var(--paper); font-weight: 500; }
.identity-tag.stream { color: #bf94ff; border-color: rgba(191,148,255,.35); }
.identity-tag.stream i { width: 5px; height: 5px; border-radius: 50%; background: #a970ff; box-shadow: 0 0 7px #a970ff; }

.pool-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #111313; margin-bottom: 14px; }
.pool-stat-strip article { min-height: 78px; padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.pool-stat-strip article:last-child { border-right: 0; }
.pool-stat-strip span, .pool-stat-strip small { color: var(--muted); font-size: 7px; letter-spacing: .9px; }
.pool-stat-strip b { font-family: var(--display); font-size: 25px; margin: 3px 0; }
.pool-stat-strip small.verified { color: var(--cyan); }
.formation-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.formation-switch button { min-height: 75px; border: 1px solid var(--line); background: #121414; color: var(--muted); cursor: pointer; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: 1fr 1fr; text-align: left; padding: 13px 16px; transition: .2s ease; }
.formation-switch button:hover { border-color: #565c59; color: var(--paper); }
.formation-switch button.active { border-color: var(--acid); background: rgba(223,255,0,.045); color: var(--paper); }
.formation-switch button > span { grid-row: 1 / 3; align-self: center; color: var(--acid); font-family: var(--display); font-size: 17px; }
.formation-switch button b { align-self: end; font-family: var(--display); font-size: 14px; letter-spacing: .7px; }
.formation-switch button small { align-self: start; font-size: 7px; margin-top: 4px; letter-spacing: .4px; }
.runner-pool-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 14px; align-items: start; }
.pool-roster-panel, .formation-panel { border: 1px solid var(--line); background: #121414; }
.verified-key { color: var(--cyan); display: flex; align-items: center; gap: 6px; font-size: 7px; letter-spacing: .7px; }
.verified-key i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.runner-list-head, .runner-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(105px, 1fr) 55px 67px; gap: 8px; align-items: center; padding: 0 12px; }
.runner-list-head { min-height: 35px; color: #626967; border-bottom: 1px solid var(--line); font-size: 7px; letter-spacing: 1px; }
.runner-row { min-height: 72px; border-bottom: 1px solid #292c2b; }
.runner-row:last-child { border-bottom: 0; }
.runner-user { display: flex; align-items: center; gap: 10px; }
.runner-user .access-avatar { color: var(--cyan); }
.runner-user b, .runner-user small { display: block; }
.runner-user b { font-family: var(--display); font-size: 13px; letter-spacing: .5px; }
.runner-user small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.runner-identities { display: grid; gap: 4px; }
.runner-identities span { color: #8f9693; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runner-identities i { color: var(--cyan); font-style: normal; margin-right: 5px; }
.runner-rating b, .runner-rating small { display: block; }
.runner-rating b { font-family: var(--display); font-size: 16px; }
.runner-rating small { color: var(--muted); font-size: 6px; margin-top: 2px; }
.pool-status, .draft-pick-button { border: 1px solid #3e4441; color: #8e9592; background: transparent; padding: 7px 8px; font-family: var(--display); font-size: 8px; text-align: center; letter-spacing: .6px; }
.pool-status.captain { color: var(--acid); border-color: rgba(223,255,0,.35); }
.draft-pick-button { color: var(--paper); cursor: pointer; }
.draft-pick-button:hover { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.draft-pick-button:disabled { color: #515755; cursor: not-allowed; border-color: #2d312f; }
.formation-mode { display: none; padding: 18px; }
.formation-mode.active { display: block; }
.formation-panel-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2d312f; padding-bottom: 13px; margin-bottom: 13px; }
.formation-panel-head span { color: var(--acid); font-size: 7px; letter-spacing: .9px; }
.formation-panel-head strong { font-family: var(--display); font-size: 11px; letter-spacing: .5px; }
.formation-mode > p { color: var(--muted); font-size: 8px; line-height: 1.6; margin-bottom: 15px; }
.full-button { width: 100%; clip-path: none; }
.generated-teams, .draft-squads { display: grid; gap: 7px; margin-top: 14px; }
.generated-team { border: 1px solid #303433; display: grid; grid-template-columns: 33px 1fr auto; gap: 10px; align-items: center; min-height: 52px; padding: 8px 10px; }
.generated-team > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; background: var(--acid); color: var(--ink); font-family: var(--display); font-weight: 800; }
.generated-team b, .generated-team small { display: block; }
.generated-team b { font-family: var(--display); font-size: 10px; letter-spacing: .4px; }
.generated-team small { color: var(--muted); font-size: 6px; margin-top: 3px; }
.generated-team > small { color: var(--cyan); font-size: 7px; }
.empty-formation { border: 1px dashed #363b39; padding: 25px 14px; color: #686f6c; text-align: center; font-size: 8px; line-height: 1.6; }
.draft-order { display: flex; gap: 5px; margin: 14px 0; flex-wrap: wrap; }
.draft-order span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #3c413f; color: #686f6c; font-family: var(--display); font-size: 9px; }
.draft-order span.complete { border-color: var(--cyan); color: var(--cyan); }
.draft-order span.active { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.draft-squad { border: 1px solid #303433; padding: 10px; }
.draft-squad-head { display: flex; justify-content: space-between; align-items: center; }
.draft-squad-head b { font-family: var(--display); font-size: 11px; letter-spacing: .5px; }
.draft-squad-head span { color: var(--muted); font-size: 6px; }
.draft-squad-picks { display: flex; gap: 5px; margin-top: 8px; }
.draft-squad-picks span { flex: 1; min-height: 25px; border: 1px dashed #383d3b; display: grid; place-items: center; color: #5d6461; font-size: 7px; }
.draft-squad-picks span.filled { border-style: solid; border-color: rgba(97,233,228,.35); color: var(--cyan); }
.reset-draft { min-height: 37px; width: 100%; margin: 12px 0 0; }

.update-chip { border: 1px solid #343837; background: #131515; color: var(--muted); padding: 11px 14px; display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: .7px; }
.permission-chip { border: 1px solid rgba(255,92,69,.38); background: rgba(255,92,69,.06); padding: 11px 15px; display: flex; align-items: center; gap: 10px; }
.permission-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px rgba(255,92,69,.7); }
.permission-chip b, .permission-chip small { display: block; }
.permission-chip b { color: var(--coral); font-family: var(--display); font-size: 11px; letter-spacing: .9px; }
.permission-chip small { color: var(--muted); font-size: 7px; letter-spacing: .8px; margin-top: 2px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .7fr); gap: 14px; align-items: start; }
.admin-roster-card, .admin-panel { border: 1px solid var(--line); background: #121414; }
.admin-card-head { min-height: 62px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.admin-card-head > div { display: flex; align-items: center; gap: 10px; }
.admin-card-head > div > span { color: var(--acid); border: 1px solid #3b403e; padding: 6px; font-family: var(--display); font-size: 10px; }
.admin-card-head h2 { font-family: var(--display); font-size: 16px; letter-spacing: .8px; }
.admin-card-head button { border: 1px solid #3d4240; background: transparent; color: var(--paper); padding: 9px 11px; cursor: pointer; font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.admin-card-head button:hover { border-color: var(--acid); color: var(--acid); }
.access-table-head, .access-row { display: grid; grid-template-columns: minmax(160px, 1fr) 135px 150px 70px; gap: 13px; align-items: center; padding: 0 17px; }
.access-table-head { min-height: 36px; border-bottom: 1px solid var(--line); color: #626967; font-size: 7px; letter-spacing: 1px; }
.access-row { min-height: 78px; border-bottom: 1px solid #292c2b; }
.access-row:last-child { border-bottom: 0; }
.access-user { display: flex; align-items: center; gap: 11px; }
.access-avatar { width: 35px; height: 35px; display: grid; place-items: center; background: #262a29; color: var(--acid); font-family: var(--display); font-weight: 800; clip-path: polygon(10% 0,100% 0,90% 100%,0 100%); }
.access-user b, .access-user small { display: block; }
.access-user b { font-family: var(--display); font-size: 13px; letter-spacing: .5px; }
.access-user small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.role-select { width: 100%; border: 1px solid #3a3f3d; background: #191b1b; color: var(--paper); padding: 9px; font-family: var(--display); font-size: 10px; font-weight: 700; outline: none; }
.role-select:focus { border-color: var(--acid); }
.role-select:disabled { opacity: .65; cursor: not-allowed; }
.broadcast-status { color: #a970ff; font-size: 8px; letter-spacing: .45px; white-space: nowrap; }
.broadcast-status.off { color: #5f6664; }
.user-status { display: flex; align-items: center; gap: 5px; color: #858c8a; font-size: 7px; }
.user-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.admin-side-stack { display: grid; gap: 14px; }
.permission-list { padding: 5px 17px 12px; }
.permission-list > div { display: grid; grid-template-columns: 9px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid #292c2b; }
.permission-list > div:last-child { border-bottom: 0; }
.permission-list b, .permission-list small { display: block; }
.permission-list b { font-family: var(--display); font-size: 11px; letter-spacing: .7px; }
.permission-list small { color: var(--muted); font-size: 7px; margin-top: 4px; line-height: 1.45; }
.role-swatch { width: 4px; height: 100%; min-height: 28px; background: var(--muted); }
.role-swatch.owner { background: var(--coral); }
.role-swatch.captain { background: var(--acid); }
.role-swatch.manager { background: var(--cyan); }
.role-swatch.player { background: #626967; }
.map-protocol { padding: 7px 17px 14px; }
.map-rule { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 39px; border-bottom: 1px solid #292c2b; }
.map-rule:last-child { border-bottom: 0; }
.map-rule b { font-family: var(--display); font-size: 11px; letter-spacing: .5px; }
.map-rule span { color: var(--acid); font-size: 7px; text-align: right; }
.map-rule.restricted span { color: var(--orange); }
.standings-card { overflow: hidden; }
.standings-row { min-height: 67px; display: grid; grid-template-columns: 80px minmax(250px, 1fr) 190px 90px 80px 90px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 20px; }
.standings-row:last-child { border-bottom: 0; }
.standings-head { min-height: 42px; color: #676e6c; font-size: 8px; letter-spacing: 1px; background: #111313; }
.standings-rank { font-family: var(--display); font-size: 22px; color: var(--muted); }
.standings-team { display: flex; align-items: center; gap: 13px; }
.standings-team .mini-emblem { width: 34px; height: 34px; }
.standings-team b, .standings-team small { display: block; }
.standings-team b { font-family: var(--display); font-size: 16px; letter-spacing: .6px; }
.standings-team small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.standings-form { display: flex; gap: 4px; }
.standings-form i { width: 19px; height: 3px; }
.standings-form .w { background: var(--acid); }
.standings-form .l { background: var(--coral); }
.standing-value { font-family: var(--display); font-size: 15px; }
.standing-points { font-family: var(--display); font-size: 19px; color: var(--acid); }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.67); backdrop-filter: blur(4px); }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(480px, 100%); height: 100vh; background: #121414; border-left: 1px solid #3c4140; transform: translateX(103%); transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-head { padding: 29px 31px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.drawer-head span { color: var(--acid); font-size: 8px; letter-spacing: 1.4px; }
.drawer-head h2 { font-family: var(--display); font-size: 31px; margin-top: 3px; }
.close-button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; }
.close-button:hover { color: var(--paper); border-color: var(--paper); }
.drawer form { padding: 28px 31px 40px; display: grid; gap: 19px; }
.drawer label { display: grid; gap: 8px; }
.drawer label > span { color: #838a88; font-size: 8px; letter-spacing: 1.1px; }
.drawer input, .drawer select, .drawer textarea { width: 100%; border: 1px solid #3b403e; background: #181a1a; color: var(--paper); outline: 0; padding: 13px; border-radius: 0; }
.drawer input:focus, .drawer select:focus, .drawer textarea:focus { border-color: var(--acid); }
.drawer textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.drawer .checkbox-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); cursor: pointer; }
.checkbox-row input { appearance: none; width: 17px; height: 17px; padding: 0; flex: 0 0 auto; position: relative; }
.checkbox-row input:checked { background: var(--acid); border-color: var(--acid); }
.checkbox-row input:checked::after { content: "✓"; color: var(--ink); position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.checkbox-row b, .checkbox-row small { display: block; }
.checkbox-row b { color: var(--paper); font-family: var(--display); font-size: 11px; letter-spacing: .7px; }
.checkbox-row small { margin-top: 3px; color: var(--muted); font-size: 7px; letter-spacing: .4px; }
.submit-button { width: 100%; margin-top: 5px; }
.submit-button span { margin-left: auto; }
.map-availability { margin-top: -10px; min-height: 37px; border: 1px solid #343837; display: flex; align-items: center; gap: 9px; padding: 0 11px; color: #818886; font-size: 7px; letter-spacing: .65px; }
.map-availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.map-availability.restricted { color: var(--orange); border-color: rgba(255,176,0,.35); background: rgba(255,176,0,.04); }
.map-availability.restricted i { background: var(--orange); }
.map-availability.invalid { color: var(--coral); border-color: rgba(255,92,69,.5); background: rgba(255,92,69,.05); }
.map-availability.invalid i { background: var(--coral); }
.requirement-banner { border-left: 3px solid var(--acid); background: #191b1b; padding: 12px 14px; }
.requirement-banner span { color: var(--acid); font-size: 7px; letter-spacing: 1px; }
.requirement-banner p { color: #a2a8a6; font-size: 8px; line-height: 1.55; margin-top: 4px; }
.input-prefix { display: flex; align-items: center; border: 1px solid #3b403e; background: #181a1a; }
.input-prefix:focus-within { border-color: var(--acid); }
.input-prefix b { padding-left: 13px; color: #a970ff; font-size: 9px; font-weight: 500; }
.drawer .input-prefix input { border: 0; padding-left: 4px; }
.oauth-section { padding: 24px 31px 19px; display: grid; gap: 9px; }
.oauth-section > p { color: var(--muted); font-size: 8px; margin-bottom: 4px; }
.oauth-button { min-height: 49px; border: 1px solid #3b403e; background: #191b1b; cursor: pointer; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 0 13px; text-align: left; }
.oauth-button:hover { border-color: var(--paper); }
.oauth-button:disabled { opacity: .55; cursor: wait; }
.oauth-button > span { font-size: 18px; }
.oauth-button b { font-family: var(--display); font-size: 12px; letter-spacing: .7px; }
.oauth-button small { font-size: 6px; letter-spacing: .7px; }
.oauth-button.discord > span, .oauth-button.discord small { color: #8d9cff; }
.oauth-button.connected { border-color: var(--acid); background: rgba(194, 255, 67, .05); }
.oauth-button.connected > span, .oauth-button.connected small { color: var(--acid); }
.oauth-button.bungie > span, .oauth-button.bungie small { color: var(--orange); }
.oauth-button.bungie.connected { border-color: var(--orange); background: rgba(255, 147, 56, .055); }
.oauth-button.bungie.connected > span, .oauth-button.bungie.connected small { color: var(--orange); }
.oauth-note { min-height: 37px; display: flex; align-items: center; gap: 8px; color: #737a77; font-size: 6px; letter-spacing: .6px; line-height: 1.4; }
.oauth-note i { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.oauth-note.connected { color: #9ca79f; }
.oauth-note.connected i { background: var(--acid); box-shadow: 0 0 9px rgba(194, 255, 67, .55); }
.bungie-auth-note { margin-top: -8px; }
.bungie-auth-note.connected i { background: var(--orange); box-shadow: 0 0 9px rgba(255, 147, 56, .5); }
.identity-display-group { display: grid; gap: 8px; }
.identity-display-group > span { color: #838a88; font-size: 8px; letter-spacing: 1.1px; }
.identity-display-group small { color: #5f6664; font-size: 6px; }
.identity-display-value { width: 100%; min-height: 44px; border: 1px solid rgba(97, 233, 228, .35); background: rgba(97, 233, 228, .035); color: var(--cyan); padding: 13px; font-size: 12px; line-height: 16px; overflow-wrap: anywhere; user-select: text; }
.identity-display-value.placeholder { color: #66706d; border-color: #353b39; background: #181a1a; user-select: none; }
.drawer-divider { height: 31px; display: flex; align-items: center; gap: 10px; color: #626967; font-size: 7px; letter-spacing: 1px; padding: 0 31px; }
.drawer-divider::before, .drawer-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.account-drawer form { padding-top: 17px; }
.identity-requirement { border-left: 3px solid var(--cyan); padding: 11px 13px; background: rgba(97,233,228,.035); }
.identity-requirement span { color: var(--cyan); font-size: 7px; letter-spacing: .9px; }
.identity-requirement p { color: #8c9390; font-size: 7px; line-height: 1.5; margin-top: 4px; }
#captainToggle { display: none; }
#captainToggle.visible { display: flex; }

.command-palette { position: fixed; z-index: 80; width: min(500px, calc(100% - 30px)); left: 50%; top: 16vh; transform: translate(-50%, -15px); background: #141616; border: 1px solid #464b49; box-shadow: 0 30px 90px #000; opacity: 0; visibility: hidden; transition: .2s ease; }
.command-palette.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.command-palette label { height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.command-palette label svg { width: 18px; color: var(--muted); }
.command-palette input { border: 0; outline: 0; background: transparent; color: var(--paper); flex: 1; }
.command-palette > div { padding: 7px; }
.command-palette button { border: 0; background: transparent; width: 100%; padding: 13px 11px; color: #a1a7a5; display: flex; gap: 13px; cursor: pointer; text-align: left; }
.command-palette button:hover { background: #1e2120; color: var(--paper); }
.command-palette button span { color: var(--acid); font-size: 9px; }
.command-palette kbd { margin-left: auto; color: #666d6b; background: #222524; padding: 2px 6px; font: inherit; font-size: 8px; }
.toast { position: fixed; z-index: 90; right: 22px; bottom: 22px; background: #e9ebe2; color: #111313; min-width: 270px; min-height: 54px; padding: 0 18px; display: flex; align-items: center; gap: 11px; font-size: 10px; letter-spacing: .5px; transform: translateY(100px); opacity: 0; transition: .25s ease; box-shadow: 0 10px 40px #000; }
.toast.show { transform: none; opacity: 1; }
.toast i { width: 7px; height: 7px; background: var(--acid); border: 1px solid #111; }

@media (max-width: 1120px) {
  :root { --sidebar: 205px; }
  main { padding-inline: 26px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .queue-panel { display: grid; grid-template-columns: repeat(3, 1fr); }
  .queue-panel .panel-heading { grid-column: 1 / -1; }
  .queue-list { display: contents; }
  .queue-item { border-right: 1px solid var(--line); }
  .open-slot { min-height: 65px; }
  .match-footer { grid-template-columns: repeat(3, 1fr); }
  .match-footer .secondary-button { grid-column: 1 / -1; min-height: 38px; }
  .scrim-row { grid-template-columns: 90px minmax(180px, 1.2fr) .9fr 100px; }
  .scrim-row .scrim-meta:nth-of-type(4) { display: none; }
  .standings-row { grid-template-columns: 60px minmax(200px, 1fr) 150px 80px 70px 70px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side-stack { grid-template-columns: 1fr 1fr; }
  .runner-pool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  :root { --sidebar: 242px; }
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 70px #000; }
  .sidebar.open { transform: none; }
  .site-content { margin-left: 0; }
  .mobile-menu { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 9px; cursor: pointer; }
  .mobile-menu span { height: 1px; width: 100%; background: var(--paper); }
  .network-status { display: none; }
  .topbar { padding: 0 18px; }
  main { padding: 34px 18px 60px; }
  .page-heading { align-items: flex-start; }
  .page-heading .primary-button { padding-inline: 15px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip article:nth-child(2) { border-right: 0; }
  .stat-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .match-stage { grid-template-columns: 1fr 65px 1fr; padding: 25px 18px; }
  .team-lockup { flex-direction: column; text-align: center; gap: 8px; }
  .team-lockup--right { flex-direction: column; text-align: center; }
  .match-footer { grid-template-columns: 1fr 1fr; }
  .match-footer > div:nth-child(3) { display: none; }
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .pulse-team:nth-child(2) { border-right: 0; }
  .pulse-team:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .teams-grid { grid-template-columns: 1fr 1fr; }
  .standings-row { grid-template-columns: 45px minmax(170px, 1fr) 100px 55px; }
  .standings-row > :nth-child(4), .standings-row > :nth-child(5) { display: none; }
  .access-table-head, .access-row { grid-template-columns: minmax(145px, 1fr) 120px 120px; }
  .access-table-head > :last-child, .access-row > :last-child { display: none; }
  .runner-list-head, .runner-row { grid-template-columns: minmax(145px, 1fr) 70px 86px; }
  .runner-list-head > :nth-child(2), .runner-row > :nth-child(2) { display: none; }
}

@media (max-width: 570px) {
  .player-chip > span:last-child { display: none; }
  h1 { font-size: 50px; }
  .page-heading { display: grid; }
  .page-heading .primary-button { width: max-content; }
  .stat-strip strong { font-size: 23px; }
  .match-stage { min-height: 330px; grid-template-columns: 1fr 47px 1fr; padding-inline: 12px; }
  .team-emblem { width: 62px; }
  .team-lockup strong { font-size: 22px; }
  .match-footer { grid-template-columns: 1fr; }
  .match-footer > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .match-footer > div:nth-child(2) { display: none; }
  .queue-panel { grid-template-columns: 1fr; }
  .queue-panel .panel-heading { grid-column: auto; }
  .queue-item { border-right: 0; }
  .section-heading .text-button { display: none; }
  .pulse-grid { grid-template-columns: 1fr; }
  .pulse-team { border-right: 0; border-bottom: 1px solid var(--line); }
  .scrim-toolbar { display: grid; }
  .filter-tabs { overflow-x: auto; }
  .filter-tabs button { flex: 0 0 auto; padding-inline: 12px; }
  .search-field { width: 100%; }
  .scrim-row { grid-template-columns: 72px 1fr 85px; min-height: 86px; }
  .scrim-row .scrim-meta { display: none; }
  .scrim-row > div { padding: 12px; }
  .join-button { margin: 12px 8px; }
  .teams-grid { grid-template-columns: 1fr; }
  .standings-row { grid-template-columns: 36px minmax(150px, 1fr) 58px; padding: 0 11px; }
  .standings-row > :nth-child(3), .standings-row > :nth-child(4), .standings-row > :nth-child(5) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-side-stack { grid-template-columns: 1fr; }
  .access-table-head { display: none; }
  .access-row { grid-template-columns: 1fr 110px; padding-block: 12px; }
  .access-row > :nth-child(3), .access-row > :nth-child(4) { display: none; }
  .pool-stat-strip { grid-template-columns: 1fr 1fr; }
  .pool-stat-strip article:nth-child(2) { border-right: 0; }
  .pool-stat-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .formation-switch { grid-template-columns: 1fr; }
  .runner-list-head, .runner-row { grid-template-columns: minmax(135px, 1fr) 76px; }
  .runner-list-head > :nth-child(2), .runner-row > :nth-child(2), .runner-list-head > :nth-child(3), .runner-row > :nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
