:root {
  --ink: #0e1517;
  --ink-soft: #152023;
  --surface: #1a292c;
  --line: #2d4041;
  --paper: #edf3ed;
  --muted: #9baba7;
  --acid: #cef05c;
  --sun: #f2bc62;
  --danger: #e66e62;
  --teal: #66d1c1;
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
button:disabled { cursor: not-allowed; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 23, 0.96);
  backdrop-filter: blur(16px);
}
.brand { color: var(--paper); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 16px; }
.brand-mark { width: 27px; height: 27px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skewX(-15deg); }
.brand-mark i { display: block; background: var(--acid); }
.brand-mark i:nth-child(2) { opacity: .75; }
.brand-mark i:nth-child(3) { opacity: .45; }
.brand-slash { color: var(--acid); margin: 0 2px; }
.topbar-status { color: var(--muted); font-size: 11px; font-weight: 750; margin-right: auto; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 3px rgba(206,240,92,.13); }
.account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.steam-id { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 185px; white-space: nowrap; }

.button, .icon-button, .map-card { border: 0; color: var(--ink); background: var(--acid); }
.button { min-height: 38px; padding: 0 13px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 780; }
.button:hover { filter: brightness(1.06); }
.button.secondary { color: var(--paper); background: transparent; border: 1px solid var(--line); }
.button.danger { color: #fff; background: rgba(230,110,98,.17); border: 1px solid rgba(230,110,98,.55); }
.icon-button { width: 34px; height: 34px; padding: 0; border-radius: 5px; display: inline-grid; place-items: center; color: var(--paper); background: transparent; border: 1px solid var(--line); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { border-color: var(--muted); }

.workspace { width: min(1540px, 100%); min-height: calc(100vh - 64px); margin: 0 auto; display: grid; grid-template-columns: 274px minmax(0, 1fr); }
.lobby-sidebar { min-height: calc(100vh - 64px); padding: 24px 15px; border-right: 1px solid var(--line); background: #111a1c; }
.sidebar-head, .admin-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 8px 16px; }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; line-height: 1; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 18px; line-height: 1.1; }
.lobby-list { display: grid; gap: 7px; }
.lobby-item { width: 100%; min-height: 83px; padding: 13px; border: 1px solid transparent; border-radius: 6px; color: var(--paper); text-align: left; background: transparent; }
.lobby-item:hover { background: rgba(237,243,237,.035); }
.lobby-item.is-active { border-color: rgba(206,240,92,.55); background: rgba(206,240,92,.08); }
.lobby-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin: 3px 0 7px; font-size: 13px; font-weight: 760; }
.lobby-title__player { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-title__versus { color: var(--muted); font-family: Inter, Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.lobby-title .badge { flex: 0 0 auto; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 20px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; font-weight: 800; }
.badge.live { color: var(--acid); border-color: rgba(206,240,92,.35); }
.badge.done { color: var(--teal); border-color: rgba(102,209,193,.35); }
.badge.ready { color: var(--teal); border-color: rgba(102,209,193,.35); }
.sidebar-note { margin: 22px 8px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.match-area { min-width: 0; padding: 32px clamp(18px, 3vw, 46px) 58px; }
.match-empty { min-height: 55vh; display: grid; place-items: center; text-align: center; color: var(--muted); }
.match-empty > div { max-width: 430px; }
.match-empty h1 { color: var(--paper); font-size: 29px; }
.match-empty p { line-height: 1.55; }
.match-empty .button { margin-top: 9px; }

.match-hero { position: relative; min-height: 155px; padding: 26px 28px; overflow: hidden; border-bottom: 1px solid var(--line); background: #172224; }
.match-hero::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(23,34,36,.98) 19%, rgba(23,34,36,.7) 54%, rgba(23,34,36,.92)), url("https://cdn.akamai.steamstatic.com/steam/apps/730/header.jpg") right center / cover no-repeat; opacity: .58; }
.hero-content { position: relative; z-index: 1; }
.match-label { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.match-title { margin-bottom: 18px; max-width: 760px; font-size: clamp(24px, 3vw, 36px); line-height: 1; font-weight: 850; overflow-wrap: anywhere; }
.versus-row { display: flex; align-items: center; gap: 13px; font-weight: 790; }
.versus-row .player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs { padding: 3px 5px; color: var(--sun); border: 1px solid rgba(242,188,98,.38); font-size: 10px; }

.veto-stage { margin: 26px 0 19px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.turn-copy { display: flex; align-items: center; gap: 13px; }
.turn-count { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ink); background: var(--acid); font-size: 16px; font-weight: 850; }
.turn-heading { margin: 0 0 3px; font-size: 16px; font-weight: 780; }
.turn-sub { margin: 0; color: var(--muted); font-size: 12px; }
.turn-yours { color: var(--acid); }
.progress { display: flex; align-items: center; justify-content: end; min-width: 260px; }
.progress-step { position: relative; width: 38px; height: 38px; margin-left: 5px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: var(--ink-soft); font-size: 11px; font-weight: 800; }
.progress-step::after { content: ""; position: absolute; left: calc(100% + 1px); top: 18px; width: 4px; height: 1px; background: var(--line); }
.progress-step:last-child::after { display: none; }
.progress-step.is-done { color: var(--ink); background: var(--teal); border-color: var(--teal); }
.progress-step.is-current { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.draft-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 24px; }
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.map-card { position: relative; min-height: 188px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; text-align: left; isolation: isolate; background: #213236; }
.map-card::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .94; background-color: #314e4c; background-image: linear-gradient(127deg, transparent 24%, rgba(216,234,196,.42) 24% 29%, transparent 29% 67%, rgba(13,26,27,.67) 67% 72%, transparent 72%), linear-gradient(35deg, transparent 17%, rgba(13,26,27,.54) 17% 22%, transparent 22% 76%, rgba(220,177,98,.36) 76% 80%, transparent 80%), radial-gradient(ellipse at 69% 34%, rgba(221,194,115,.5) 0 9%, transparent 10%), radial-gradient(ellipse at 35% 71%, rgba(28,61,55,.9) 0 17%, transparent 18%); transform: scale(1.11); transition: transform .28s ease; }
.map-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(9,16,17,.06), rgba(9,16,17,.82)); }
.map-card:hover:not(:disabled)::before { transform: scale(1.18); }
.map-card:hover:not(:disabled) { border-color: var(--acid); }
.map-card:disabled { color: var(--paper); opacity: 1; }
.map-card.map--anubis::before { background-color: #7b6744; filter: hue-rotate(14deg); }
.map-card.map--dust-ii::before { background-color: #977353; filter: sepia(.26); }
.map-card.map--inferno::before { background-color: #81564d; filter: hue-rotate(340deg); }
.map-card.map--mirage::before { background-color: #a8834c; filter: saturate(.82); }
.map-card.map--nuke::before { background-color: #4a6c75; filter: hue-rotate(8deg); }
.map-card.map--train::before { background-color: #5c6950; filter: hue-rotate(326deg); }
.map-meta { position: absolute; inset: auto 0 0; padding: 14px; }
.map-name { display: block; color: #fff; font-size: 20px; font-weight: 850; line-height: 1; }
.map-state { display: block; margin-top: 7px; color: #d5ded9; font-size: 11px; font-weight: 700; }
.map-state svg { width: 12px; height: 12px; margin: 0 4px -2px 0; }
.map-card.is-pick { border-color: var(--acid); }
.map-card.is-pick::after { background: linear-gradient(180deg, rgba(16,34,27,.2), rgba(12,28,20,.84)); }
.map-card.is-ban { filter: grayscale(.82); border-color: #374142; }
.map-card.is-ban::before { transform: scale(1.08); }
.map-card.is-ban::after { background: linear-gradient(180deg, rgba(29,23,23,.25), rgba(37,19,18,.89)); }
.map-card.is-decider { border-color: var(--sun); }
.map-card.is-decider::after { background: linear-gradient(180deg, rgba(58,42,18,.14), rgba(42,30,11,.87)); }

.history { border-top: 1px solid var(--line); }
.history-head { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 760; }
.history-row { min-height: 48px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; border-top: 1px solid rgba(45,64,65,.72); font-size: 12px; }
.history-index { color: var(--muted); font-weight: 750; }
.history-action { font-weight: 760; }
.history-map { color: var(--teal); font-weight: 760; }
.history-empty { padding: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.45; border-top: 1px solid rgba(45,64,65,.72); }

.result-strip { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-cell { min-height: 92px; padding: 16px; border-right: 1px solid var(--line); }
.result-cell:last-child { border-right: 0; }
.result-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.result-map { color: var(--paper); font-size: 18px; font-weight: 840; }
.result-map.is-empty { color: #60706e; }

.admin-drawer { position: fixed; z-index: 50; top: 64px; right: 0; bottom: 0; width: min(500px, 100vw); overflow-y: auto; border-left: 1px solid var(--line); background: #121e20; box-shadow: -16px 0 40px var(--shadow); }
.admin-header { position: sticky; top: 0; z-index: 1; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: #121e20; }
.admin-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.admin-tab { height: 44px; padding: 0 8px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; font-weight: 750; }
.admin-tab.is-active { color: var(--paper); border-bottom-color: var(--acid); }
.admin-panel { padding: 22px 24px 35px; }
.admin-panel h3 { margin-bottom: 7px; font-size: 16px; }
.admin-panel > p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-stack { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 11px; font-weight: 720; }
.field input, .field select { width: 100%; height: 42px; padding: 0 11px; color: var(--paper); border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #0e1719; }
.field select option { background: #0e1719; }
.admin-list { margin-top: 25px; border-top: 1px solid var(--line); }
.admin-list-row { min-height: 57px; padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.admin-list-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 740; }
.admin-list-id { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.small-delete { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--danger); border: 1px solid rgba(230,110,98,.35); border-radius: 4px; background: transparent; }
.small-delete svg { width: 14px; height: 14px; }
.small-edit { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--paper); border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.small-edit:hover { color: var(--acid); border-color: var(--acid); }
.small-edit svg { width: 14px; height: 14px; }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.empty-list { padding: 18px 0; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }

.toast { position: fixed; z-index: 90; right: 20px; bottom: 20px; max-width: min(400px, calc(100vw - 40px)); padding: 12px 14px; color: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--acid); border-radius: 5px; background: #1b292b; box-shadow: 0 12px 28px var(--shadow); font-size: 13px; }
.toast.is-error { border-left-color: var(--danger); }

@media (max-width: 1000px) {
  .draft-layout { grid-template-columns: 1fr; }
  .history { max-width: none; }
}
@media (max-width: 780px) {
  .topbar { height: 58px; padding: 0 15px; gap: 13px; }
  .topbar-status { display: none; }
  .workspace { display: block; }
  .lobby-sidebar { min-height: 0; padding: 14px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-head { padding: 0 4px 11px; }
  .lobby-list { display: flex; overflow-x: auto; padding: 0 3px 4px; }
  .lobby-item { width: 185px; min-width: 185px; }
  .sidebar-note { display: none; }
  .match-area { padding: 20px 14px 40px; }
  .match-hero { min-height: 140px; padding: 20px; }
  .match-title { font-size: 25px; }
  .veto-stage { grid-template-columns: 1fr; }
  .progress { justify-content: start; min-width: 0; }
  .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map-card { min-height: 153px; }
  .map-name { font-size: 17px; }
  .result-cell { min-height: 82px; padding: 11px; }
  .result-map { font-size: 14px; overflow-wrap: anywhere; }
  .admin-drawer { top: 58px; }
}
@media (max-width: 430px) {
  .brand { font-size: 14px; }
  .brand-mark { width: 23px; height: 23px; }
  .steam-id { max-width: 95px; }
  .account .button { padding: 0 9px; font-size: 11px; }
  .map-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 166px; }
  .progress-step { width: 33px; height: 33px; }
  .progress-step::after { top: 15px; }
  .admin-panel { padding: 20px 16px 32px; }
}

/* LLB Draft visual system */
:root {
  --ink: #050505;
  --ink-soft: #0b0c0d;
  --surface: #131415;
  --line: rgba(255, 255, 255, .16);
  --paper: #f7f7f4;
  --muted: rgba(247, 247, 244, .57);
  --acid: #5aafff;
  --sun: #ffffff;
  --danger: #ff5c68;
  --teal: #86c2ff;
  --shadow: rgba(0, 0, 0, .68);
}

body {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 44px 44px;
  font-family: Inter, Arial, sans-serif;
}

.topbar {
  height: 84px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom-color: rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(18px) saturate(1.15);
}
.brand { gap: 14px; }
.brand-logo { display: block; width: 155px; height: auto; }
.brand-draft {
  padding: 4px 8px 5px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .66);
  font-family: Oswald, Impact, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.topbar-status {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}
.topbar-status b { color: var(--paper); font-weight: 800; }
.status-dot { width: 6px; height: 6px; background: var(--acid); box-shadow: 0 0 0 4px rgba(90, 175, 255, .11); }
.steam-id { color: rgba(255, 255, 255, .62); font-size: 11px; letter-spacing: .04em; }

.button {
  min-height: 44px;
  padding: 0 19px;
  color: #080808;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.button:hover { filter: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 255, 255, .13); }
.button.secondary { color: var(--paper); border-color: rgba(255, 255, 255, .34); background: transparent; }
.button.secondary:hover { color: #050505; background: var(--paper); }
.button.danger { color: #fff; border-color: rgba(255, 92, 104, .7); background: rgba(255, 92, 104, .14); }
.icon-button { width: 42px; height: 42px; color: var(--paper); border-color: rgba(255, 255, 255, .72); border-radius: 0; background: rgba(0, 0, 0, .25); }
.icon-button:hover { color: var(--acid); border-color: var(--acid); background: rgba(90, 175, 255, .08); }

.workspace { width: min(1580px, 100%); min-height: calc(100vh - 84px); grid-template-columns: 294px minmax(0, 1fr); }
.lobby-sidebar { min-height: calc(100vh - 84px); padding: 29px 17px; border-right-color: rgba(255, 255, 255, .12); background: rgba(7, 8, 9, .94); }
.sidebar-head, .admin-header { padding: 0 8px 20px; }
.eyebrow { color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h2, .match-title, .turn-heading, .map-name, .result-map, .lobby-title { font-family: Oswald, Impact, sans-serif; letter-spacing: .015em; }
h2 { font-size: 25px; font-weight: 600; text-transform: uppercase; }
.lobby-list { gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.lobby-item { min-height: 91px; padding: 14px 12px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: 0; transition: background .22s ease, padding-left .22s ease; }
.lobby-item:hover { padding-left: 17px; background: rgba(255, 255, 255, .055); }
.lobby-item.is-active { border-color: rgba(255, 255, 255, .12); border-left: 3px solid var(--acid); background: rgba(90, 175, 255, .10); }
.lobby-title { margin: 5px 0 8px; font-size: 17px; font-weight: 600; }
.badge { min-height: 19px; padding: 2px 5px; border-radius: 0; font-size: 9px; letter-spacing: .08em; }
.badge.live { color: var(--acid); border-color: rgba(90, 175, 255, .58); }
.badge.done { color: var(--paper); border-color: rgba(255, 255, 255, .45); }
.badge.waiting { color: var(--sun); border-color: rgba(255, 255, 255, .38); }
.badge.ready { color: var(--acid); border-color: rgba(90, 175, 255, .58); }
.sidebar-note { color: rgba(255, 255, 255, .43); font-size: 11px; line-height: 1.6; }

.match-area { padding: 36px clamp(18px, 3.2vw, 52px) 64px; }
.match-empty h1 { font-family: Oswald, Impact, sans-serif; font-size: 42px; font-weight: 600; text-transform: uppercase; }
.match-empty p { color: rgba(255, 255, 255, .62); }
.match-hero { min-height: 218px; padding: 30px 34px; border: 1px solid rgba(255, 255, 255, .13); border-bottom: 1px solid rgba(255, 255, 255, .22); background: #0a0b0c; }
.match-hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, .96) 17%, rgba(0, 0, 0, .78) 54%, rgba(0, 0, 0, .92)), url("https://cdn.akamai.steamstatic.com/steam/apps/730/header.jpg") right center / cover no-repeat; opacity: .63; }
.match-label { color: rgba(255, 255, 255, .63); font-size: 10px; letter-spacing: .15em; }
.match-title { max-width: 860px; margin-bottom: 20px; font-size: clamp(38px, 4vw, 62px); font-weight: 600; line-height: .95; text-transform: uppercase; }
.match-title-versus { display: flex; align-items: center; gap: 16px; }
.match-title-versus .player-name { min-width: 0; overflow-wrap: anywhere; }
.match-vs { width: 56px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; color: #050505; border: 1px solid var(--paper); background: var(--paper); box-shadow: 6px 0 0 var(--acid); font-family: Oswald, Impact, sans-serif; font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: .09em; }
.versus-row { gap: 15px; font-family: Oswald, Impact, sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; }
.vs { color: var(--acid); border-color: var(--acid); font-family: Inter, Arial, sans-serif; font-size: 9px; letter-spacing: .11em; }
.match-admin-action { margin-top: 22px; }

.veto-stage { margin: 28px 0 20px; padding-bottom: 21px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.turn-count { width: 48px; height: 48px; color: #050505; background: var(--paper); font-family: Oswald, Impact, sans-serif; font-size: 22px; }
.turn-heading { font-size: 23px; font-weight: 600; text-transform: uppercase; }
.turn-sub { color: var(--muted); font-size: 11px; }
.turn-yours { color: var(--acid); }
.readiness { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ready-status { min-width: 0; display: grid; gap: 5px; flex: 1; }
.ready-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper); font-family: Oswald, Impact, sans-serif; font-size: 17px; text-transform: uppercase; }
.ready-status b { color: rgba(255, 255, 255, .4); font-size: 9px; letter-spacing: .12em; }
.ready-status b.is-ready { color: var(--acid); }
.readiness .button { flex: 0 0 auto; }
.turn-timer { width: min(360px, 100%); margin: 20px auto 28px; padding: 18px 22px; text-align: center; border: 1px solid var(--acid); background: rgba(90, 175, 255, .09); }
.turn-timer span { display: block; margin-bottom: 5px; color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.turn-timer strong { display: block; color: var(--paper); font-family: Oswald, Impact, sans-serif; font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: .04em; }
.turn-timer.is-expired { border-color: var(--danger); background: rgba(255, 92, 104, .1); }
.turn-timer.is-expired span { color: var(--danger); }
.progress { min-width: 292px; }
.progress-step { width: 38px; height: 38px; margin-left: 5px; color: rgba(255, 255, 255, .48); border-color: rgba(255, 255, 255, .22); border-radius: 0; background: transparent; font-family: Oswald, Impact, sans-serif; font-size: 12px; }
.progress-step::after { background: rgba(255, 255, 255, .18); }
.progress-step.is-done { color: #080808; background: var(--paper); border-color: var(--paper); }
.progress-step.is-current { color: #050505; background: var(--acid); border-color: var(--acid); }

.draft-layout { gap: 29px; }
.map-grid { gap: 12px; }
.map-card {
  min-height: 212px;
  border-color: rgba(255, 255, 255, .22);
  border-radius: 0;
  background: #0c0d0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, filter .25s ease;
}
.map-card::before {
  opacity: .68;
  filter: grayscale(.18) saturate(.76) contrast(1.12);
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), filter .25s ease, opacity .25s ease;
}
.map-card::after { background: linear-gradient(180deg, rgba(0, 0, 0, .06) 16%, rgba(0, 0, 0, .91) 100%); }
.map-card:hover:not(:disabled) { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid), 0 12px 36px rgba(0, 95, 255, .24); transform: translateY(-5px); }
.map-card:hover:not(:disabled)::before { filter: grayscale(0) saturate(1.15) contrast(1.08) brightness(1.14); opacity: 1; transform: scale(1.17); }
.map-card:hover:not(:disabled) .map-state { color: var(--acid); }
.map-meta { padding: 16px; }
.map-name { font-size: 26px; font-weight: 600; text-transform: uppercase; }
.map-state { color: rgba(255, 255, 255, .62); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
.map-state svg { width: 13px; height: 13px; }
.map-card.is-pick { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid), inset 0 0 48px rgba(90, 175, 255, .17); }
.map-card.is-pick::before { filter: grayscale(0) saturate(1.05) contrast(1.08) brightness(1.08); }
.map-card.is-pick::after { background: linear-gradient(180deg, rgba(6, 45, 92, .10), rgba(0, 25, 54, .91)); }
.map-card.is-pick .map-meta::before { content: "SELECTED"; display: block; margin-bottom: 7px; color: var(--acid); font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.map-card.is-pick .map-state { color: var(--acid); }
.map-card.is-ban { border-color: rgba(255, 92, 104, .6); filter: none; }
.map-card.is-ban::before { filter: grayscale(1) contrast(.88) brightness(.5); opacity: .52; }
.map-card.is-ban::after { background: linear-gradient(180deg, rgba(87, 0, 8, .18), rgba(34, 2, 5, .94)); }
.map-card.is-ban .map-meta::before { content: "BANNED"; display: block; margin-bottom: 7px; color: var(--danger); font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.map-card.is-ban .map-name, .map-card.is-ban .map-state { color: var(--danger); }
.map-card.is-decider { border-color: var(--paper); box-shadow: 0 0 0 1px var(--paper), inset 0 0 42px rgba(255, 255, 255, .08); }
.map-card.is-decider::after { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .89)); }
.map-card.is-decider .map-meta::before { content: "DECIDER"; display: block; margin-bottom: 7px; color: var(--paper); font-size: 9px; font-weight: 850; letter-spacing: .17em; }

.history { border-top-color: rgba(255, 255, 255, .21); }
.history-head { color: rgba(255, 255, 255, .6); font-size: 10px; letter-spacing: .11em; }
.history-row { border-top-color: rgba(255, 255, 255, .13); }
.history-map { color: var(--acid); font-family: Oswald, Impact, sans-serif; font-size: 15px; font-weight: 600; }
.history-empty { color: var(--muted); border-top-color: rgba(255, 255, 255, .13); }
.result-strip { border-color: rgba(255, 255, 255, .2); }
.result-cell { border-right-color: rgba(255, 255, 255, .2); }
.result-label { color: rgba(255, 255, 255, .48); letter-spacing: .1em; }
.result-map { font-size: 23px; font-weight: 600; text-transform: uppercase; }
.result-map.is-empty { color: rgba(255, 255, 255, .28); }

.admin-drawer { top: 84px; border-left-color: rgba(255, 255, 255, .2); border-radius: 0; background: #070809; }
.admin-header { background: #070809; border-bottom-color: rgba(255, 255, 255, .15); }
.admin-tabs { border-bottom-color: rgba(255, 255, 255, .16); }
.admin-tab { color: rgba(255, 255, 255, .48); border-bottom-width: 2px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.admin-tab.is-active { color: var(--paper); border-bottom-color: var(--acid); }
.field label { color: rgba(255, 255, 255, .58); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { border-color: rgba(255, 255, 255, .22); border-radius: 0; background: #101112; }
.field input:focus, .field select:focus { border-color: var(--acid); }
.admin-list, .admin-list-row { border-color: rgba(255, 255, 255, .15); }
.admin-list-actions { display: flex; gap: 7px; }
.small-delete { border-color: rgba(255, 92, 104, .55); border-radius: 0; }
.small-edit { border-color: rgba(255, 255, 255, .38); border-radius: 0; }
.toast { border-color: rgba(255, 255, 255, .28); border-left-color: var(--acid); border-radius: 0; background: #08090a; }

@media (max-width: 780px) {
  .topbar { height: 74px; padding: 0 18px; }
  .brand { gap: 9px; }
  .brand-logo { width: 124px; }
  .brand-draft { padding: 4px 6px; font-size: 13px; }
  .workspace { min-height: calc(100vh - 74px); }
  .lobby-sidebar { min-height: 0; background: rgba(4, 4, 4, .95); }
  .lobby-item { min-height: 86px; border: 1px solid rgba(255, 255, 255, .16); }
  .lobby-item.is-active { border-color: var(--acid); }
  .match-hero { min-height: 172px; padding: 23px 20px; }
  .match-title { font-size: 39px; }
  .match-title-versus { gap: 11px; }
  .match-vs { width: 44px; height: 42px; box-shadow: 4px 0 0 var(--acid); font-size: 14px; }
  .map-card { min-height: 176px; }
  .map-name { font-size: 23px; }
  .readiness { align-items: stretch; flex-wrap: wrap; }
  .readiness .button { width: 100%; }
  .turn-timer strong { font-size: 46px; }
  .admin-drawer { top: 74px; }
}

@media (max-width: 430px) {
  .brand-logo { width: 105px; }
  .brand-draft { font-size: 11px; }
  .account .button { min-height: 38px; padding: 0 12px; font-size: 9px; }
  .map-card { min-height: 186px; }
}
