@font-face {
  font-family: "Tanker Complete";
  src: local("Tanker Regular"), local("Tanker-Regular"),
       url("/static/fonts/Tanker-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: local("Archivo"), url("/static/fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sharpie Complete";
  src: local("Sharpie Variable"), local("Sharpie-Variable"),
       url("/static/fonts/Sharpie-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --panel: #141000;
  --panel2: #201a00;
  --line: rgba(255, 198, 0, 0.28);
  --text: #fffdf5;
  --muted: #bdb5a0;
  --acid: #ffc600;
  --cyan: #ffc600;
  --red: #fe4751;
  --amber: #ffc600;
  --radius: 4px;
  --font-display: "Tanker Complete", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Archivo", Arial, sans-serif;
  --font-marker: "Sharpie Complete", "Segoe Print", "Comic Sans MS", cursive;
}

body {
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
}

html,
* {
  scrollbar-width: thin;
  scrollbar-color: #8d7218 #080705;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: #080705;
  box-shadow: inset 0 0 0 1px rgba(255, 198, 0, .08);
}

*::-webkit-scrollbar-thumb {
  min-height: 36px;
  background: linear-gradient(180deg, #6f5a14, #a98716);
  border: 2px solid #080705;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #ffc600;
  border-color: #080705;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
  background: #fe4751;
}

*::-webkit-scrollbar-corner {
  background: #080705;
}

.role-results,
.role-selected,
.member-results,
nav {
  scrollbar-gutter: stable;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.055;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 48px, #ffc600 49px 52px, transparent 53px 96px),
    radial-gradient(circle at 20% 20%, #ffc600 0 1px, transparent 1.5px);
  background-size: auto, 9px 9px;
}

h1, h2, h3,
.metrics strong,
.team-summary b,
.button,
.brand b {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--acid);
  font-family: var(--font-marker);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transform: rotate(-0.5deg);
}

.blitz-logo {
  display: block;
  width: 54px;
  height: 44px;
  object-fit: contain;
}

.blitz-wordmark {
  display: block;
  width: 154px;
  height: auto;
  object-fit: contain;
}

.login-logo {
  width: 260px;
  height: auto;
  margin-bottom: 26px;
}

.mark { display: none; }

.brand {
  flex-wrap: wrap;
  gap: 11px;
  padding-left: 2px;
}

.brand span,
.brand b,
.brand small {
  display: block;
}

.brand b {
  color: #fffdf5;
  font-size: 27px;
  line-height: 0.8;
}

.brand small {
  width: 100%;
  margin-top: -4px;
  padding-left: 2px;
  color: #ffc600;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-shell {
  background:
    linear-gradient(135deg, transparent 0 63%, rgba(0,0,0,.92) 63%),
    repeating-linear-gradient(135deg, #ffc600 0 55px, #eeb900 56px 58px, #ffc600 59px 112px);
}

.login-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.17;
  background-image: repeating-linear-gradient(45deg, transparent 0 38px, #000 39px 41px, transparent 42px 76px);
  mix-blend-mode: multiply;
}

.login-card {
  overflow: hidden;
  padding: 50px 54px;
  background: #000;
  border: 3px solid #ffc600;
  border-radius: 0;
  box-shadow: 14px 14px 0 #fe4751, 0 35px 100px rgba(0,0,0,.55);
}

.login-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 18px;
  content: "";
  background: #ffc600;
  clip-path: polygon(18% 0,100% 0,100% 100%,0 100%);
}

.login-card h1,
.section-intro h1,
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.login-card h1 span { color: #ffc600; }
.login-card .lede { color: #fffdf5; }
.login-card .fine { color: #948d7d; }
.orb { display: none; }

aside {
  background: #050400;
  border-right: 3px solid #ffc600;
}

aside::after {
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 3px;
  height: 32%;
  content: "";
  background: #fe4751;
}

nav a {
  position: relative;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav a:hover,
nav a.active {
  background: #ffc600;
  color: #000;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}

nav a.active::before {
  position: absolute;
  left: 4px;
  content: "//";
  color: #fe4751;
  font-family: var(--font-display);
}

nav a.active { padding-left: 29px; }

.server-picker select,
input, select, textarea {
  background: #080700;
  border: 1px solid #514000;
  border-radius: 0;
  color: #fffdf5;
}

input:focus, select:focus, textarea:focus {
  border-color: #ffc600;
  box-shadow: 4px 4px 0 rgba(255,198,0,.2);
}

.content {
  position: relative;
}

.content > header {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,198,0,.3);
}

.content > header::after {
  position: absolute;
  right: auto;
  bottom: -2px;
  left: 0;
  width: 62px;
  height: 3px;
  content: "";
  background: #ffc600;
}

.status span { background: #ffc600; box-shadow: 0 0 12px #ffc600; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, #141000 0 58%, rgba(20,16,0,.3) 78%),
    repeating-linear-gradient(135deg, #ffc600 0 24px, #d9a800 25px 27px, #ffc600 28px 51px);
  border: 2px solid #ffc600;
  border-radius: 0;
  box-shadow: 10px 10px 0 rgba(255,198,0,.13);
}

.hero::after {
  position: absolute;
  z-index: 0;
  right: -8%;
  top: -60%;
  width: 43%;
  height: 220%;
  content: "";
  background: #ffc600;
  transform: skewX(-24deg);
  opacity: .92;
}

.hero > * { position: relative; z-index: 1; }
.hero .button { background: #000; border-color: #000; color: #ffc600; }

.metrics article,
.card,
.team {
  position: relative;
  background: #141000;
  border: 1px solid rgba(255,198,0,.3);
  border-radius: 0;
}

.metrics article::before,
.card::before,
.team::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 42px;
  height: 4px;
  content: "";
  background: #ffc600;
}

.metrics article:nth-child(4)::before,
.danger-zone::before { background: #fe4751; }

.metrics strong { color: #ffc600; font-size: 39px; }

.button {
  min-height: 42px;
  border-radius: 0;
  font-size: 14px;
  letter-spacing: .055em;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}

.button.primary {
  background: #ffc600;
  border-color: #ffc600;
  color: #000;
}

.button.primary:hover { background: #fffdf5; border-color: #fffdf5; }
.button.danger { background: #fe4751; border-color: #fe4751; color: #000; }
.button.warning { border-color: #ffc600; color: #ffc600; }
.button.ghost:hover { background: #ffc600; border-color: #ffc600; color: #000; }

.pill {
  background: #ffc600;
  border-radius: 0;
  color: #000 !important;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
}

.check b.ok { color: #ffc600; }
.check b.bad { color: #fe4751; }
.action-card.featured { background: #ffc600; border-color: #ffc600; color: #000; }
.action-card.featured .eyebrow,
.action-card.featured p { color: #000; }
.action-card.featured .button.primary { background: #000; border-color: #000; color: #ffc600; }

.icon {
  border: 2px solid #ffc600;
  border-radius: 0;
  color: #ffc600;
  font-family: var(--font-display);
  font-size: 20px;
  transform: skewX(-8deg);
}

.team-summary { border-radius: 0; grid-template-columns: minmax(180px,1fr) repeat(4,minmax(80px,110px)) 30px; }
.team-summary:hover { background: rgba(255,198,0,.07); }
.team-stat small, .team-summary small { color: #a39980; }
.member-chip { background: #ffc600; border-radius: 0; color: #000; font-weight: 700; }
.member-chip.staff { background: #fe4751; }
.roster-block { margin-top: 20px; }
.roster-block > small { color: #a39980; font-family: var(--font-display); letter-spacing: .08em; }
.roster-block .roster { margin-top: 8px; }

.role-picker { display: grid; min-width: 0; gap: 13px; }
.role-search-wrap { position: relative; min-width: 0; }
.role-search { margin: 0; padding-left: 40px; background: #090700; border-color: #3d3625; }
.role-search-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 15px;
  width: 9px;
  height: 9px;
  border: 2px solid #ffc600;
  border-radius: 50%;
  pointer-events: none;
}
.role-search-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 25px;
  left: 26px;
  width: 7px;
  height: 2px;
  background: #ffc600;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}
.role-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px;
  background: #080705;
  border: 1px solid #5a4b22;
  box-shadow: 8px 8px 0 rgba(0,0,0,.75), 0 0 0 1px rgba(255,198,0,.08);
}
.role-result {
  display: grid;
  grid-template-columns: 12px minmax(0,1fr) auto;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  background: transparent;
  border: 0;
  color: #fffdf5;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 3px 0 var(--role-color);
}
.role-result span:nth-child(2) { overflow: hidden; color: var(--role-color); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.role-result small { color: #766b53; font-family: var(--font-display); font-size: 10px; letter-spacing: .08em; }
.role-result:hover,
.role-result:focus { background: #ffc600; color: #000; outline: none; }
.role-result:hover span:nth-child(2),
.role-result:focus span:nth-child(2) { color: #000; }
.role-result:hover small,
.role-result:focus small { color: #000; }
.role-result-empty,
.role-selection-empty { padding: 13px; color: #8d8268; font-size: 12px; }
.role-picker-head { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.role-picker-head small { color: #a39980; font-family: var(--font-display); letter-spacing: .08em; }
.role-count { color: #ffc600; font-size: 11px; font-weight: 700; }
.role-selected { display: grid; min-width: 0; gap: 7px; min-height: 48px; max-height: 320px; overflow-x: hidden; overflow-y: auto; }
.role-selection {
  display: grid;
  grid-template-columns: 12px minmax(0,1fr) 26px;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 7px 8px 7px 13px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--role-color) 16%, #0b0904), #0b0904 72%);
  border: 1px solid color-mix(in srgb, var(--role-color) 48%, #292419);
  box-shadow: inset 3px 0 var(--role-color);
  transition: border-color .15s, background .15s, transform .15s;
}
.role-selection:hover,
.role-selection:focus-within { background: linear-gradient(90deg, color-mix(in srgb, var(--role-color) 24%, #121006), #121006 78%); border-color: var(--role-color); transform: translateX(2px); }
.role-selection > span:nth-child(2) { overflow: hidden; color: var(--role-color); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.role-swatch { width: 10px; height: 10px; background: var(--role-color); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.role-remove {
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: #fe4751;
  font: 20px/22px Archivo, sans-serif;
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s, background .15s, color .15s;
}
.role-selection:hover .role-remove,
.role-remove:focus { opacity: 1; }
.role-remove:hover,
.role-remove:focus { background: #fe4751; border-color: #fe4751; color: #000; outline: none; }

@media (hover: none) {
  .role-remove { opacity: .8; }
}

.audit-item { border-left-color: #ffc600; border-radius: 0; background: #090700; }
.audit-item.critical { border-left-color: #fe4751; }
.danger-zone { position: relative; border-color: #fe4751; border-radius: 0; background: #170609; }
.danger-card { border-radius: 0; background: #0d0304; }

.activity-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.activity-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 20px 22px;
  background: #141000;
  border: 1px solid rgba(255,198,0,.28);
}

.activity-metrics article::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 42px;
  height: 4px;
  content: "";
  background: #ffc600;
}

.activity-metrics article:last-child::before { background: #fe4751; }
.activity-metrics small { color: #a39980; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.activity-metrics strong { display: block; margin-top: 8px; color: #ffc600; font-family: var(--font-display); font-size: 34px; font-weight: 400; }
.activity-metrics article:last-child strong { color: #fe4751; }

.activity-panel { padding: 20px; }
.activity-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) repeat(3, minmax(145px, .3fr));
  gap: 12px;
  align-items: end;
  padding-bottom: 19px;
  border-bottom: 1px solid #322b18;
}

.activity-toolbar input,
.activity-toolbar select { background: #090700; border-color: #3d3625; }
.activity-list-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px 10px; }
.activity-list-head p { margin: 0; color: #a39980; font-size: 12px; }
.activity-list-head small { color: #675f4d; font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

.activity-list {
  position: relative;
  display: grid;
  gap: 9px;
  max-height: min(900px, 70vh);
  overflow-y: auto;
  padding: 2px 8px 2px 19px;
  scrollbar-gutter: stable;
}

.activity-list::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 7px;
  width: 1px;
  content: "";
  background: linear-gradient(#ffc600, rgba(255,198,0,.12));
}

.activity-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 17px 18px;
  background: #090700;
  border: 1px solid #302915;
  box-shadow: inset 3px 0 #ffc600;
}

.activity-entry.failed { border-color: rgba(254,71,81,.42); box-shadow: inset 3px 0 #fe4751; }
.activity-marker {
  position: absolute;
  top: 23px;
  left: -17px;
  width: 9px;
  height: 9px;
  background: #ffc600;
  border: 2px solid #000;
  box-shadow: 0 0 0 1px #ffc600;
  transform: rotate(45deg);
}
.activity-entry.failed .activity-marker { background: #fe4751; box-shadow: 0 0 0 1px #fe4751; }
.activity-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.activity-entry-head time { color: #817761; font-size: 11px; white-space: nowrap; }
.activity-category { padding: 3px 7px; background: #ffc600; color: #000; font-family: var(--font-display); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.activity-entry.failed .activity-category { background: #fe4751; }
.activity-entry h3 { margin: 10px 0 4px; font-size: 20px; }
.activity-entry p { margin: 0; color: #c7bea8; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 11px 24px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #292312; color: #fffdf5; font-size: 12px; }
.activity-meta span { min-width: 130px; }
.activity-meta small { display: block; margin-bottom: 2px; color: #817761; font-family: var(--font-display); font-size: 9px; letter-spacing: .1em; }
.activity-meta em { color: #746a54; font-size: 10px; font-style: normal; }
.activity-result { margin-left: auto; color: #ffc600; text-align: right; }
.activity-entry.failed .activity-result { color: #fe4751; }

.activity-details { margin-top: 13px; }
.activity-details summary { width: max-content; color: #ffc600; font-size: 11px; font-weight: 700; cursor: pointer; }
.activity-details dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 11px 0 0; background: #302915; }
.activity-details dl div { min-width: 0; padding: 9px 11px; background: #100d05; }
.activity-details dt { color: #817761; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.activity-details dd { overflow-wrap: anywhere; margin: 3px 0 0; color: #ddd4be; font-size: 11px; }
.activity-empty { display: grid; place-items: center; gap: 5px; min-height: 180px; padding: 30px; color: #817761; text-align: center; border: 1px dashed #3d3625; }
.activity-empty b { color: #fffdf5; font-family: var(--font-display); font-size: 20px; font-weight: 400; text-transform: uppercase; }
.activity-empty span { font-size: 12px; }

#toast {
  border-radius: 0;
  background: #ffc600;
  color: #000;
  box-shadow: 8px 8px 0 #141000;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#toast.error { background: #fe4751; color: #000; }

@media (max-width: 900px) {
  aside { border-right: 0; border-bottom: 3px solid #ffc600; }
  .hero::after { opacity: .35; }
  .team-summary { grid-template-columns: minmax(150px,1fr) repeat(3,80px) 25px; }
  .team-summary .team-stat { display: block; }
  .team-summary .team-stat:nth-of-type(4) { display: none; }
  .activity-toolbar { grid-template-columns: 1fr 1fr; }
  .activity-toolbar label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .login-card { padding: 34px 24px; box-shadow: 8px 8px 0 #fe4751; }
  .login-logo { width: 210px; height: auto; }
  .hero::after { display: none; }
  .team-summary { grid-template-columns: minmax(130px,1fr) 65px 65px 25px; }
  .team-summary .team-stat { display: block; }
  .team-summary .team-stat:nth-of-type(2),
  .team-summary .team-stat:nth-of-type(4) { display: none; }
  .role-results { position: static; margin-top: 7px; box-shadow: none; }
  .role-remove { opacity: .8; }
  .activity-metrics { grid-template-columns: 1fr 1fr; }
  .activity-toolbar { grid-template-columns: 1fr; }
  .activity-toolbar label:first-child { grid-column: auto; }
  .activity-entry-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .activity-entry-head time { white-space: normal; }
  .activity-result { margin-left: 0; text-align: left; }
  .activity-details dl { grid-template-columns: 1fr; }
}
