:root {
  --ink: #10151d;
  --panel: #151d28;
  --panel-2: #1c2633;
  --paper: #f5f0e4;
  --muted: #9aa8b8;
  --orange: #ff6a36;
  --yellow: #ffc53d;
  --cyan: #46d9cf;
  --red: #ff4160;
  --shadow: rgba(4, 8, 13, .38);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#world,
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#world { z-index: 0; background: #94b9c3; }
#game { z-index: 1; background: transparent; }

.screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
}

.screen.active {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 106, 54, .18), transparent 31%),
    linear-gradient(132deg, rgba(13, 19, 27, .97) 0 48%, rgba(17, 28, 37, .92) 70%, rgba(12, 17, 24, .98) 100%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg) scale(1.8) translateY(20%);
  transform-origin: center bottom;
  mask-image: linear-gradient(to bottom, transparent 3%, #000 60%);
}

.landing-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(680px, 1030px);
  align-items: stretch;
  gap: 20px;
  width: min(1340px, calc(100vw - 32px));
}

.landing-layout > .hero-card { width: 100%; }

.leaderboard-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(155deg, rgba(21,31,42,.94), rgba(10,16,23,.9));
  box-shadow: inset 3px 0 0 var(--yellow), 0 28px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.leaderboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 17px 15px 19px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.leaderboard-heading > div { min-width: 0; }
.leaderboard-heading h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: .06em; }
.leaderboard-count {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(255,197,61,.32);
  color: var(--yellow);
  background: rgba(255,197,61,.08);
  font: 900 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.leaderboard-columns,
.leaderboard-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 70px 42px;
  align-items: center;
  gap: 5px;
}
.leaderboard-columns {
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #718294;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .1em;
}
.leaderboard-columns span:nth-child(n+3) { text-align: right; }
.leaderboard-list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(255,197,61,.55) rgba(255,255,255,.04);
  scrollbar-width: thin;
  list-style: none;
}
.leaderboard-entry {
  min-height: 42px;
  padding: 7px 13px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  font-variant-numeric: tabular-nums;
}
.leaderboard-entry:nth-child(odd) { background: rgba(255,255,255,.018); }
.leaderboard-entry .rank { color: #6f8193; font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.leaderboard-entry .player-name { overflow: hidden; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-entry .money { color: var(--yellow); font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.leaderboard-entry .kd { color: var(--cyan); font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.leaderboard-entry:nth-child(1) .rank,
.leaderboard-entry:nth-child(1) .player-name { color: var(--yellow); }
.leaderboard-entry:nth-child(2) .rank { color: #cad5dd; }
.leaderboard-entry:nth-child(3) .rank { color: #d58b57; }
.leaderboard-message {
  display: grid;
  min-height: 150px;
  padding: 20px;
  place-items: center;
  color: #718294;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}
.leaderboard-status {
  margin: 0;
  padding: 11px 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #718294;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .05em;
  line-height: 1.4;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(330px, .85fr);
  width: min(1030px, calc(100vw - 64px));
  min-height: 570px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(17, 23, 32, .76);
  box-shadow: 0 38px 90px rgba(0,0,0,.46);
  backdrop-filter: blur(18px);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--orange);
}
.hero-card::before { top: -5px; left: -5px; border-top: 5px solid var(--orange); border-left: 5px solid var(--orange); }
.hero-card::after { right: -5px; bottom: -5px; border-right: 5px solid var(--orange); border-bottom: 5px solid var(--orange); }

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 68px;
  border-right: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.018) 48% 52%, transparent 52%) 0 0 / 20px 20px;
}

.eyebrow, .overline {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .22em;
}

.live-dot, .server-pill span, .region-chip span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(70,217,207,.12), 0 0 13px var(--cyan);
}

.logo-lockup {
  display: flex;
  align-items: flex-end;
  gap: 21px;
  margin: 38px 0 18px;
}

.logo-lockup h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(74px, 8vw, 108px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.035em;
  transform: skewY(-2deg);
  text-shadow: 5px 5px 0 rgba(0,0,0,.27);
}

.logo-lockup h1 span { display: block; }
.logo-lockup h1 span:last-child { color: var(--orange); }

.logo-mark {
  position: relative;
  width: 58px;
  height: 73px;
  flex: 0 0 auto;
  background: var(--yellow);
  clip-path: polygon(0 19%, 50% 0, 100% 19%, 100% 100%, 0 100%);
  box-shadow: inset 0 -14px 0 rgba(0,0,0,.13);
}

.logo-mark i {
  position: absolute;
  bottom: 0;
  width: 13px;
  height: 41px;
  background: var(--ink);
}
.logo-mark i:nth-child(1) { left: 7px; height: 26px; }
.logo-mark i:nth-child(2) { left: 23px; height: 41px; }
.logo-mark i:nth-child(3) { right: 7px; height: 32px; }

.tagline {
  margin: 6px 0 10px;
  color: var(--paper);
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -.03em;
}

.intro {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-row {
  display: flex;
  gap: 34px;
  margin-top: 38px;
}

.feature-row div { display: flex; flex-direction: column; }
.feature-row strong { font-size: 24px; line-height: 1; }
.feature-row span { margin-top: 6px; color: #778697; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 15px;
  width: min(100%, 430px);
  margin-top: 28px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(112deg, rgba(23,34,45,.9), rgba(10,16,23,.72));
  box-shadow: inset 3px 0 0 var(--cyan), 0 14px 30px rgba(0,0,0,.2);
}

.profile-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  opacity: .36;
  background: linear-gradient(135deg, transparent 48%, var(--orange) 49% 54%, transparent 55%);
}

.profile-avatar {
  display: grid;
  width: 62px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,197,61,.4);
  color: var(--yellow);
  background:
    linear-gradient(135deg, rgba(255,197,61,.14), transparent 62%),
    #111923;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18);
}

.profile-avatar svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3;
}

.profile-details { min-width: 0; }
.build-badge {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 2px;
  padding: 5px 8px;
  border: 1px solid rgba(255,197,61,.42);
  color: var(--yellow);
  background: rgba(255,197,61,.08);
  font: 900 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-heading h2 {
  margin: 0;
  color: #8595a6;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}
.profile-heading span {
  color: var(--cyan);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
  white-space: nowrap;
}
.profile-name {
  display: block;
  margin: 4px 0 8px;
  overflow: hidden;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.profile-stats div { min-width: 0; padding-right: 7px; border-right: 1px solid rgba(255,255,255,.08); }
.profile-stats div:last-child { padding-right: 0; border-right: 0; }
.profile-stats dt { color: #697a8c; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.profile-stats dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: #dfe8e7;
  font: 900 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}
.profile-stats .profile-money dd { color: var(--yellow); }
.profile-card p { margin: 7px 0 0; color: #718294; font-size: 8px; font-weight: 650; letter-spacing: .035em; }

.landing-shop-button {
  position: relative;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 430px);
  min-height: 56px;
  margin-top: 11px;
  padding: 8px 13px 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(255,197,61,.32);
  color: var(--paper);
  background:
    linear-gradient(105deg, rgba(78,51,12,.56), rgba(20,27,37,.92) 62%),
    #111923;
  box-shadow: inset 3px 0 0 var(--yellow), 0 12px 25px rgba(0,0,0,.18);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, filter .16s, transform .16s;
}
.landing-shop-button::after {
  content: "";
  position: absolute;
  top: -28px;
  right: 42px;
  width: 78px;
  height: 78px;
  border: 10px solid rgba(255,197,61,.055);
  transform: rotate(22deg);
}
.landing-shop-button:hover { border-color: rgba(255,197,61,.76); filter: brightness(1.1); transform: translateY(-1px); }
.landing-shop-button:active { transform: translateY(1px); }
.landing-shop-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.landing-shop-icon {
  position: relative;
  display: block;
  width: 43px;
  height: 39px;
  border: 1px solid rgba(255,197,61,.43);
  background: rgba(255,197,61,.1);
}
.landing-shop-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 13px;
  width: 15px;
  height: 8px;
  border: 2px solid var(--yellow);
  border-bottom: 0;
}
.landing-shop-icon::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 8px;
  width: 25px;
  height: 18px;
  background: var(--yellow);
  box-shadow: inset 0 -4px rgba(0,0,0,.16);
}
.landing-shop-icon i { position: absolute; z-index: 1; top: 17px; width: 2px; height: 8px; background: rgba(17,25,35,.63); }
.landing-shop-icon i:nth-child(1) { left: 15px; }
.landing-shop-icon i:nth-child(2) { left: 20px; }
.landing-shop-icon i:nth-child(3) { left: 25px; }
.landing-shop-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.landing-shop-copy small { color: var(--yellow); font-size: 7px; font-weight: 950; letter-spacing: .18em; }
.landing-shop-copy strong { font-size: 11px; letter-spacing: .12em; }
.landing-shop-copy em { overflow: hidden; color: #8190a0; font-size: 8px; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.landing-shop-button > b { position: relative; z-index: 1; color: var(--yellow); font-size: 20px; }

.join-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: rgba(22, 31, 42, .74);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.panel-heading > div:first-child { display: flex; flex-direction: column; gap: 7px; }
.panel-heading strong { font-size: 13px; letter-spacing: .08em; }

.server-pill, .region-chip, .ping-chip {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.1);
  color: #a9b8c7;
  background: rgba(5,10,16,.35);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
}

.server-pill.offline span { background: var(--red); box-shadow: 0 0 0 4px rgba(255,65,96,.12), 0 0 13px var(--red); }

#joinForm { display: flex; flex-direction: column; }
#joinForm label {
  margin-bottom: 9px;
  color: #9aa8b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
}
#joinForm label:not(:first-child) { margin-top: 19px; }
#joinForm label small { float: right; color: #667586; font-size: 9px; font-weight: 650; letter-spacing: .02em; text-transform: lowercase; }

.match-format-picker { margin: 0 0 17px; padding: 0; border: 0; }
.match-format-picker + label { margin-top: 0 !important; }
.match-format-picker legend { margin: 0 0 8px; color: #778799; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.match-format-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.match-format-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 9px 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  color: #9cabb9;
  background: rgba(7,11,17,.58);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.match-format-option::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: transparent; }
.match-format-option > span { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.match-format-option b { color: #d7e0e7; font-size: 9px; letter-spacing: .08em; }
.match-format-option small { overflow: hidden; color: #738394; font-size: 7px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.match-format-option em { color: #657587; font: 900 11px/1 ui-monospace, monospace; font-style: normal; }
.match-format-option:hover { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.match-format-option:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.match-format-option.selected,
.match-format-option[aria-pressed="true"] { border-color: rgba(70,217,207,.64); color: var(--paper); background: linear-gradient(120deg, rgba(22,69,72,.65), rgba(10,18,25,.73)); }
.match-format-option.selected::after,
.match-format-option[aria-pressed="true"]::after { background: var(--cyan); }
.match-format-option.selected em,
.match-format-option[aria-pressed="true"] em { color: var(--cyan); }
.match-format-option[data-match-format="tdm"].selected,
.match-format-option[data-match-format="tdm"][aria-pressed="true"] { border-color: rgba(119,156,255,.72); background: linear-gradient(120deg, rgba(38,48,91,.72), rgba(14,19,31,.8)); }
.match-format-option[data-match-format="tdm"].selected::after,
.match-format-option[data-match-format="tdm"][aria-pressed="true"]::after { background: linear-gradient(90deg, #ff536f 0 50%, #669cff 50%); }
.match-format-option[data-match-format="tdm"].selected em,
.match-format-option[data-match-format="tdm"][aria-pressed="true"] em { color: #8facff; }

input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  outline: none;
  color: var(--paper);
  background: rgba(7,11,17,.62);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border .18s, box-shadow .18s;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(70,217,207,.1); }

.room-field { display: grid; grid-template-columns: 1fr 48px; }
.room-field button {
  border: 1px solid rgba(255,255,255,.12);
  border-left: 0;
  background: #202b39;
  font-size: 21px;
  cursor: pointer;
}
.room-field button:hover { background: #293646; }

.join-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 56px;
  margin-top: 26px;
  padding: 0 19px 0 23px;
  border: 0;
  color: #10151d;
  background: var(--orange);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.17), 0 12px 26px rgba(255,106,54,.16);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.join-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.join-button:active { transform: translateY(1px); }
.join-button:disabled { cursor: wait; filter: grayscale(.7); }
.join-button b { font-size: 22px; }

.form-error { min-height: 18px; margin: 8px 0 0; color: #ff8295; font-size: 11px; }

.deployment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 10px;
  color: #647486;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}
.deployment-divider::before,
.deployment-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }

.practice-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 51px;
  padding: 8px 14px 8px 17px;
  border: 1px solid rgba(70,217,207,.43);
  color: #dafcf8;
  background: linear-gradient(105deg, rgba(19,60,64,.72), rgba(15,37,47,.74));
  box-shadow: inset 3px 0 0 var(--cyan), 0 8px 21px rgba(7,26,29,.2);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.practice-button:hover { border-color: var(--cyan); background: linear-gradient(105deg, rgba(24,76,79,.82), rgba(19,46,57,.82)); transform: translateY(-1px); }
.practice-button:active { transform: translateY(1px); }
.practice-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.practice-button:disabled { cursor: wait; filter: grayscale(.7); }
.practice-button > span { display: flex; flex-direction: column; gap: 4px; }
.practice-button strong { font-size: 11px; letter-spacing: .14em; }
.practice-button small { color: #8daeb2; font-size: 8px; font-weight: 700; letter-spacing: .035em; }
.practice-button > b { color: var(--cyan); font-size: 24px; line-height: 1; text-shadow: 0 0 12px rgba(70,217,207,.52); }

.controls-preview {
  margin-top: 17px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.controls-preview p { margin: 0 0 12px; color: #67778a; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.controls-preview > div {
  display: grid;
  grid-template-columns: 57px 1fr 57px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #8d9baa;
  font-size: 10px;
}

kbd {
  display: inline-grid;
  min-width: 24px;
  min-height: 21px;
  place-items: center;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.17);
  border-bottom-width: 3px;
  color: #cbd5df;
  background: rgba(255,255,255,.06);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.footer-note {
  position: fixed;
  bottom: 17px;
  margin: 0;
  color: #5f6c79;
  font-size: 10px;
  letter-spacing: .08em;
}

/* Landing cosmetic shop */
.cosmetic-shop-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 68% 30%, rgba(255,197,61,.11), transparent 34%),
    rgba(4,8,13,.84);
  backdrop-filter: blur(12px);
}
.cosmetic-shop-menu.active,
.cosmetic-shop-menu[aria-hidden="false"] { display: grid; animation: cosmetic-shop-in .18s ease-out; }
.cosmetic-shop-panel {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 27px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.012) 48% 52%, transparent 52%) 0 0 / 20px 20px,
    #151d28;
  box-shadow: 0 34px 90px rgba(0,0,0,.64), inset 0 4px 0 rgba(255,197,61,.76);
}
.cosmetic-shop-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.cosmetic-shop-header h2 { margin: 5px 0 4px; font-size: 30px; letter-spacing: -.04em; }
.cosmetic-shop-header p { max-width: 570px; margin: 0; color: #8f9ead; font-size: 11px; line-height: 1.45; }
.cosmetic-shop-balance {
  min-width: 118px;
  padding: 9px 12px;
  border: 1px solid rgba(255,197,61,.32);
  background: rgba(8,12,18,.6);
  text-align: right;
}
.cosmetic-shop-balance small { display: block; color: #7e8d9d; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.cosmetic-shop-balance strong { display: block; margin-top: 3px; color: var(--yellow); font: 900 20px/1 ui-monospace, monospace; }
.cosmetic-shop-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  color: #a5b2bf;
  background: rgba(255,255,255,.035);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cosmetic-shop-close:hover { color: white; background: rgba(255,255,255,.09); }
.cosmetic-shop-close:focus-visible,
.cosmetic-shop-tabs button:focus-visible,
.kill-sound-card:focus-visible,
.kill-sound-preview-actions button:focus-visible,
.kill-animation-card:focus-visible,
.kill-animation-preview-actions button:focus-visible,
.locker-weapon button:focus-visible,
.promo-code-form input:focus-visible,
.promo-code-form button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.cosmetic-shop-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(7,11,17,.54);
}
.cosmetic-shop-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.09);
  color: #8291a1;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.cosmetic-shop-tabs button:last-child { border-right: 0; }
.cosmetic-shop-tabs button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: transparent; }
.cosmetic-shop-tabs button > span { color: #697a8b; font-size: 18px; }
.cosmetic-shop-tabs button b { font-size: 9px; letter-spacing: .13em; }
.cosmetic-shop-tabs button small { font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.cosmetic-shop-tabs button.active,
.cosmetic-shop-tabs button[aria-selected="true"] { color: var(--paper); background: rgba(255,197,61,.055); }
.cosmetic-shop-tabs button.active::after,
.cosmetic-shop-tabs button[aria-selected="true"]::after { background: var(--yellow); }
.cosmetic-shop-tabs button.active > span,
.cosmetic-shop-tabs button[aria-selected="true"] > span { color: var(--yellow); }
.cosmetic-shop-tabs button:disabled { cursor: not-allowed; opacity: .46; }

.cosmetic-shop-content { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(380px, 1.14fr); gap: 14px; }
.kill-sound-list { display: flex; flex-direction: column; gap: 9px; }
.kill-sound-list article { min-width: 0; }
.kill-sound-card {
  --sound-accent: 70,217,207;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 89px;
  padding: 11px 13px 11px 11px;
  border: 1px solid rgba(255,255,255,.11);
  color: #dbe4ea;
  background: rgba(7,11,17,.58);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.kill-sound-card[data-kill-sound="sad-trombone"] { --sound-accent: 255,197,61; }
.kill-sound-card[data-kill-sound="royal-laugh"] { --sound-accent: 197,119,255; }
.kill-sound-card:hover { border-color: rgba(var(--sound-accent),.62); background: rgba(var(--sound-accent),.075); transform: translateX(2px); }
.kill-sound-card.selected,
.kill-sound-card[aria-pressed="true"] { border-color: rgba(var(--sound-accent),.78); background: linear-gradient(100deg, rgba(var(--sound-accent),.14), rgba(7,11,17,.66)); box-shadow: inset 3px 0 0 rgb(var(--sound-accent)); }
.kill-sound-emblem {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--sound-accent),.38);
  color: rgb(var(--sound-accent));
  background: rgba(var(--sound-accent),.09);
}
.kill-sound-emblem::before,
.kill-sound-emblem::after,
.kill-sound-emblem i::before,
.kill-sound-emblem i::after { content: ""; position: absolute; background: currentColor; }
.kill-sound-emblem.classic::before { left: 17px; width: 6px; height: 22px; }
.kill-sound-emblem.classic::after { left: 23px; width: 15px; height: 22px; clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%); }
.kill-sound-emblem.classic i::before { top: 14px; left: 42px; width: 2px; height: 9px; box-shadow: 5px 4px 0 currentColor, 0 18px 0 currentColor; transform: rotate(-14deg); }
.kill-sound-emblem.classic i::after { top: 25px; left: 45px; width: 7px; height: 2px; box-shadow: 0 7px 0 currentColor; }
.kill-sound-emblem.trombone::before { top: 25px; left: 9px; width: 34px; height: 5px; box-shadow: 3px -6px 0 -1px currentColor; }
.kill-sound-emblem.trombone::after { top: 16px; right: 7px; width: 11px; height: 23px; clip-path: polygon(0 31%, 100% 0, 100% 100%, 0 69%); }
.kill-sound-emblem.trombone i::before { top: 31px; left: 15px; width: 29px; height: 3px; transform: rotate(15deg); }
.kill-sound-emblem.trombone i::after { top: 16px; left: 15px; width: 3px; height: 10px; box-shadow: 6px 1px 0 currentColor, 12px 1px 0 currentColor; }
.kill-sound-emblem.laugh::before { top: 13px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px currentColor; }
.kill-sound-emblem.laugh::after { top: 30px; left: 18px; width: 20px; height: 10px; border-radius: 2px 2px 12px 12px; }
.kill-sound-emblem.laugh i::before { top: 23px; left: 19px; width: 7px; height: 3px; box-shadow: 12px 0 0 currentColor; transform: rotate(8deg); }
.kill-sound-emblem.laugh i::after { top: 7px; left: 13px; width: 30px; height: 8px; clip-path: polygon(0 100%, 13% 0, 32% 60%, 50% 0, 68% 60%, 87% 0, 100% 100%); }
.kill-sound-card-copy { display: flex; min-width: 0; flex-direction: column; }
.kill-sound-card-copy small { color: rgb(var(--sound-accent)); font-size: 6px; font-weight: 950; letter-spacing: .15em; }
.kill-sound-card-copy strong { margin-top: 3px; color: var(--paper); font-size: 16px; letter-spacing: -.015em; }
.kill-sound-card-copy em { margin-top: 4px; overflow: hidden; color: #748596; font-size: 8px; font-style: normal; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.kill-sound-card-status { align-self: start; min-width: 64px; padding: 6px 7px; color: rgb(var(--sound-accent)); background: rgba(var(--sound-accent),.09); font: 900 8px/1 ui-monospace, monospace; letter-spacing: .07em; text-align: center; }
.kill-sound-card[data-state="equipped"] .kill-sound-card-status,
.kill-sound-card[data-state="owned"] .kill-sound-card-status { color: #102020; background: rgb(var(--sound-accent)); }

.kill-sound-preview {
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto auto;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,11,17,.62);
}
.kill-preview-stage {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 66% 50%, rgba(70,217,207,.16), transparent 26%),
    linear-gradient(180deg, #263746 0 69%, #17212b 70%);
}
.kill-preview-stage::after { content: ""; position: absolute; right: 0; bottom: 29%; left: 0; height: 1px; background: rgba(255,255,255,.1); }
.kill-preview-stage > small { position: absolute; z-index: 5; top: 12px; left: 13px; color: rgba(219,231,237,.43); font: 900 6px/1 ui-monospace, monospace; letter-spacing: .16em; }
.preview-grid { position: absolute; inset: 0 0 30%; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 24px 24px; }
.preview-operator { position: absolute; z-index: 3; right: 25%; bottom: 30%; width: 68px; height: 120px; transform-origin: 50% 92%; }
.preview-operator i { position: absolute; display: block; }
.preview-head { top: 0; left: 19px; width: 31px; height: 30px; border: 4px solid #a6bac6; background: #253849; box-shadow: inset 0 -6px rgba(0,0,0,.18); }
.preview-head::before { content: ""; position: absolute; top: 7px; right: -7px; width: 5px; height: 8px; background: var(--orange); }
.preview-body { top: 34px; left: 14px; width: 41px; height: 48px; background: #ff7343; box-shadow: inset -7px 0 rgba(0,0,0,.13), inset 0 -7px rgba(0,0,0,.13); }
.preview-arm { top: 37px; width: 12px; height: 45px; background: #d76a45; transform-origin: 50% 5px; }
.preview-arm.left { left: 2px; transform: rotate(7deg); }
.preview-arm.right { right: 1px; transform: rotate(-12deg); }
.preview-leg { top: 80px; width: 16px; height: 38px; background: #526f83; }
.preview-leg.left { left: 15px; }
.preview-leg.right { right: 13px; }
.preview-floor-shadow { position: absolute; z-index: 2; right: calc(25% - 7px); bottom: calc(30% - 5px); width: 82px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.27); }
.preview-projectile { position: absolute; z-index: 4; top: 43%; left: -18%; width: 38%; height: 3px; opacity: 0; background: linear-gradient(90deg, transparent, var(--yellow)); box-shadow: 0 0 9px rgba(255,197,61,.8); }
.preview-impact { position: absolute; z-index: 5; top: 38%; right: calc(25% + 48px); width: 24px; height: 24px; opacity: 0; }
.preview-impact::before,
.preview-impact::after,
.preview-impact i { content: ""; position: absolute; top: 11px; left: 0; width: 24px; height: 3px; background: var(--yellow); }
.preview-impact::after { transform: rotate(45deg); }
.preview-impact i:first-child { transform: rotate(90deg); }
.preview-impact i:last-child { transform: rotate(-45deg); }
.preview-sound-rings { position: absolute; z-index: 2; right: calc(25% - 20px); bottom: calc(30% + 29px); width: 112px; height: 112px; opacity: 0; }
.preview-sound-rings i { position: absolute; inset: 48%; border: 2px solid rgba(70,217,207,.65); border-radius: 50%; }
.kill-preview-stage.is-playing .preview-projectile,
.kill-preview-stage[data-preview-state="playing"] .preview-projectile { animation: cosmetic-preview-shot 1.9s ease-out; }
.kill-preview-stage.is-playing .preview-impact,
.kill-preview-stage[data-preview-state="playing"] .preview-impact { animation: cosmetic-preview-impact 1.9s ease-out; }
.kill-preview-stage.is-playing .preview-operator,
.kill-preview-stage[data-preview-state="playing"] .preview-operator { animation: cosmetic-preview-fall 1.9s ease-in-out; }
.kill-preview-stage.is-playing .preview-sound-rings,
.kill-preview-stage[data-preview-state="playing"] .preview-sound-rings { animation: cosmetic-preview-rings 1.9s ease-out; }
.kill-preview-stage.is-playing .preview-sound-rings i:nth-child(2),
.kill-preview-stage[data-preview-state="playing"] .preview-sound-rings i:nth-child(2) { animation-delay: .1s; }
.kill-preview-stage.is-playing .preview-sound-rings i:nth-child(3),
.kill-preview-stage[data-preview-state="playing"] .preview-sound-rings i:nth-child(3) { animation-delay: .2s; }
.kill-sound-preview-copy { padding: 15px 17px 13px; }
.kill-sound-preview-state { color: var(--cyan); font-size: 7px; font-weight: 950; letter-spacing: .16em; }
.kill-sound-preview-copy h3 { margin: 4px 0 5px; font-size: 22px; letter-spacing: -.025em; }
.kill-sound-preview-copy > p { margin: 0; color: #8494a4; font-size: 9px; line-height: 1.5; }
.kill-sound-preview-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; background: rgba(255,255,255,.07); }
.kill-sound-preview-meta span { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; background: #111922; }
.kill-sound-preview-meta small { color: #5f7183; font-size: 6px; font-weight: 900; letter-spacing: .13em; }
.kill-sound-preview-meta b { color: #bdc9d3; font: 850 8px/1 ui-monospace, monospace; }
.kill-sound-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.kill-sound-preview-actions button { min-height: 42px; border: 1px solid rgba(255,255,255,.14); color: #d0dbe3; background: rgba(255,255,255,.045); font-size: 8px; font-weight: 950; letter-spacing: .12em; cursor: pointer; }
.kill-sound-preview-actions button:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.09); }
.kill-sound-preview-actions button:last-child { border-color: var(--yellow); color: #111820; background: var(--yellow); }
.kill-sound-preview-actions button:disabled { border-color: rgba(70,217,207,.4); color: var(--cyan); background: rgba(70,217,207,.08); cursor: default; }

/* Kill-animation locker and cinematic preview */
.cosmetic-shop-content[hidden] { display: none; }
.weapon-locker-panel[hidden] { display: none; }
.weapon-locker-panel { display: grid; gap: 12px; }
.weapon-locker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(70,217,207,.25);
  background: linear-gradient(105deg, rgba(70,217,207,.10), rgba(7,11,17,.58));
}
.weapon-locker-heading div { display: flex; flex-direction: column; gap: 3px; }
.weapon-locker-heading small { color: var(--cyan); font-size: 6px; font-weight: 950; letter-spacing: .16em; }
.weapon-locker-heading strong { color: var(--paper); font-size: 16px; letter-spacing: .03em; }
.weapon-locker-heading p { max-width: 520px; margin: 0; color: #8393a3; font-size: 9px; line-height: 1.45; text-align: right; }
.weapon-locker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.locker-weapon {
  --locker-accent: 158,173,188;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 91px;
  padding: 11px 12px;
  border: 1px solid rgba(var(--locker-accent),.25);
  background: rgba(7,11,17,.62);
}
.locker-weapon.epic { --locker-accent: 155,89,255; }
.locker-weapon.uncommon { --locker-accent: 76,201,104; }
.locker-weapon.rare { --locker-accent: 88,170,255; }
.locker-weapon.legendary { --locker-accent: 223,189,85; }
.locker-weapon.equipped { border-color: rgba(70,217,207,.65); box-shadow: inset 3px 0 0 var(--cyan); }
.locker-weapon > .weapon-icon { width: 54px; height: 44px; transform: scale(.82); transform-origin: center; }
.locker-weapon > span { display: flex; min-width: 0; flex-direction: column; }
.locker-weapon > span small { color: rgb(var(--locker-accent)); font-size: 6px; font-weight: 950; letter-spacing: .14em; }
.locker-weapon.equipped > span small { color: var(--cyan); }
.locker-weapon > span strong { margin-top: 4px; color: var(--paper); font-size: 15px; }
.locker-weapon > span em { margin-top: 4px; color: #718293; font-size: 8px; font-style: normal; }
.locker-weapon > b,
.locker-weapon > button {
  min-width: 82px;
  padding: 7px 8px;
  border: 1px solid rgba(var(--locker-accent),.35);
  color: rgb(var(--locker-accent));
  background: rgba(var(--locker-accent),.08);
  font: 900 7px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  text-align: center;
}
.locker-weapon.equipped > b { border-color: var(--cyan); color: #071113; background: var(--cyan); }
.locker-weapon > button:disabled { cursor: not-allowed; opacity: .7; }
.locker-weapon:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kill-animation-list { display: flex; flex-direction: column; gap: 9px; }
.kill-animation-list article { min-width: 0; }
.kill-animation-card {
  --animation-accent: 70,217,207;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 89px;
  padding: 11px 13px 11px 11px;
  border: 1px solid rgba(255,255,255,.11);
  color: #dbe4ea;
  background: rgba(7,11,17,.58);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.kill-animation-card[data-kill-animation="black-hole"] { --animation-accent: 174,104,255; }
.kill-animation-card[data-kill-animation="arrow-barrage"] { --animation-accent: 226,157,66; }
.kill-animation-card:hover { border-color: rgba(var(--animation-accent),.62); background: rgba(var(--animation-accent),.075); transform: translateX(2px); }
.kill-animation-card.selected,
.kill-animation-card[aria-pressed="true"] { border-color: rgba(var(--animation-accent),.78); background: linear-gradient(100deg, rgba(var(--animation-accent),.14), rgba(7,11,17,.66)); box-shadow: inset 3px 0 0 rgb(var(--animation-accent)); }
.kill-animation-emblem {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(var(--animation-accent),.38);
  color: rgb(var(--animation-accent));
  background: radial-gradient(circle, rgba(var(--animation-accent),.16), rgba(var(--animation-accent),.04));
}
.kill-animation-emblem.voxel-burst i { position: absolute; width: 11px; height: 11px; background: currentColor; box-shadow: 0 0 8px rgba(var(--animation-accent),.6); transform: rotate(12deg); }
.kill-animation-emblem.voxel-burst i:nth-child(1) { top: 10px; left: 23px; width: 14px; height: 14px; }
.kill-animation-emblem.voxel-burst i:nth-child(2) { top: 31px; left: 10px; }
.kill-animation-emblem.voxel-burst i:nth-child(3) { top: 33px; right: 9px; width: 9px; height: 9px; }
.kill-animation-emblem.voxel-burst i:nth-child(4) { top: 24px; left: 25px; width: 8px; height: 8px; opacity: .62; }
.kill-animation-emblem.black-hole { filter: drop-shadow(0 0 8px rgba(174,104,255,.22)); }
.kill-animation-emblem.black-hole::before,
.kill-animation-emblem.black-hole::after { content: ""; position: absolute; border-radius: 50%; }
.kill-animation-emblem.black-hole::before { inset: 9px; border: 2px solid rgba(219,171,255,.82); box-shadow: inset 0 0 9px #9b43ff, 0 0 11px rgba(174,104,255,.72); transform: rotateX(63deg) rotate(18deg); }
.kill-animation-emblem.black-hole::after { inset: 18px; background: #010106; box-shadow: 0 0 0 4px #5c24a5, 0 0 13px #c083ff; }
.kill-animation-emblem.black-hole i { position: absolute; top: 27px; left: 27px; width: 3px; height: 3px; border-radius: 50%; background: white; transform-origin: 0 0; }
.kill-animation-emblem.black-hole i:nth-child(1) { transform: rotate(18deg) translateX(22px); }
.kill-animation-emblem.black-hole i:nth-child(2) { transform: rotate(146deg) translateX(23px); }
.kill-animation-emblem.black-hole i:nth-child(3) { transform: rotate(264deg) translateX(21px); }
.kill-animation-emblem.arrow-barrage i { position: absolute; left: 8px; width: 39px; height: 2px; background: #c58a43; box-shadow: 0 0 5px rgba(255,190,92,.55); transform: rotate(-12deg); }
.kill-animation-emblem.arrow-barrage i::before { content: ""; position: absolute; right: -5px; top: -4px; border-width: 5px 0 5px 8px; border-style: solid; border-color: transparent transparent transparent #e8edf0; }
.kill-animation-emblem.arrow-barrage i::after { content: ""; position: absolute; left: -2px; top: -4px; width: 8px; height: 10px; background: linear-gradient(35deg, transparent 42%, #d85b45 43% 57%, transparent 58%); }
.kill-animation-emblem.arrow-barrage i:nth-child(1) { top: 13px; }
.kill-animation-emblem.arrow-barrage i:nth-child(2) { top: 24px; left: 13px; }
.kill-animation-emblem.arrow-barrage i:nth-child(3) { top: 35px; left: 5px; }
.kill-animation-emblem.arrow-barrage i:nth-child(4) { top: 45px; left: 14px; }
.kill-animation-card-copy { display: flex; min-width: 0; flex-direction: column; }
.kill-animation-card-copy small { color: rgb(var(--animation-accent)); font-size: 6px; font-weight: 950; letter-spacing: .15em; }
.kill-animation-card-copy strong { margin-top: 3px; color: var(--paper); font-size: 16px; letter-spacing: -.015em; }
.kill-animation-card-copy em { margin-top: 4px; overflow: hidden; color: #748596; font-size: 8px; font-style: normal; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.kill-animation-card-status { align-self: start; min-width: 64px; padding: 6px 7px; color: rgb(var(--animation-accent)); background: rgba(var(--animation-accent),.09); font: 900 8px/1 ui-monospace, monospace; letter-spacing: .07em; text-align: center; }
.kill-animation-card[data-state="equipped"] .kill-animation-card-status,
.kill-animation-card[data-state="owned"] .kill-animation-card-status { color: #10151c; background: rgb(var(--animation-accent)); }

.kill-animation-preview {
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto auto;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,11,17,.62);
}
.kill-animation-preview-stage {
  --black-hole-pull-x: clamp(140px, 21vw, 220px);
  --black-hole-pull-mid: clamp(90px, 13vw, 141px);
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 73% 46%, rgba(111,48,180,.2), transparent 27%),
    linear-gradient(180deg, #202c3a 0 69%, #121b25 70%);
  isolation: isolate;
}
.kill-animation-preview-stage::after { content: ""; position: absolute; right: 0; bottom: 29%; left: 0; height: 1px; background: rgba(255,255,255,.09); }
.kill-animation-preview-stage > small { position: absolute; z-index: 12; top: 12px; left: 13px; color: rgba(219,231,237,.43); font: 900 6px/1 ui-monospace, monospace; letter-spacing: .16em; }
.animation-preview-grid { position: absolute; inset: 0 0 30%; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 24px 24px; }
.animation-preview-stars { position: absolute; z-index: 1; inset: 0; opacity: 0; }
.animation-preview-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #eee5ff; box-shadow: 0 0 5px #b76fff; }
.animation-preview-stars i:nth-child(1) { top: 18%; left: 18%; }
.animation-preview-stars i:nth-child(2) { top: 33%; left: 52%; }
.animation-preview-stars i:nth-child(3) { top: 22%; right: 9%; }
.animation-preview-stars i:nth-child(4) { top: 63%; left: 8%; }
.animation-preview-stars i:nth-child(5) { top: 56%; right: 4%; }
.animation-preview-stars i:nth-child(6) { top: 9%; left: 71%; }
.animation-preview-operator { position: absolute; z-index: 6; left: 24%; bottom: 30%; width: 68px; height: 120px; transform-origin: 50% 52%; }
.animation-preview-operator i { position: absolute; display: block; }
.animation-preview-head { top: 0; left: 19px; width: 31px; height: 30px; border: 4px solid #a6bac6; background: #253849; box-shadow: inset 0 -6px rgba(0,0,0,.18); }
.animation-preview-head::before { content: ""; position: absolute; top: 7px; right: -7px; width: 5px; height: 8px; background: var(--orange); }
.animation-preview-body { top: 34px; left: 14px; width: 41px; height: 48px; background: #ff7343; box-shadow: inset -7px 0 rgba(0,0,0,.13), inset 0 -7px rgba(0,0,0,.13); }
.animation-preview-arm { top: 37px; width: 12px; height: 45px; background: #d76a45; transform-origin: 50% 5px; }
.animation-preview-arm.left { left: 2px; transform: rotate(7deg); }
.animation-preview-arm.right { right: 1px; transform: rotate(-12deg); }
.animation-preview-leg { top: 80px; width: 16px; height: 38px; background: #526f83; }
.animation-preview-leg.left { left: 15px; }
.animation-preview-leg.right { right: 13px; }
.animation-preview-shadow { position: absolute; z-index: 2; left: calc(24% - 7px); bottom: calc(30% - 5px); width: 82px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.3); }
.animation-preview-singularity { position: absolute; z-index: 8; top: calc(46% - 49px); right: calc(28% - 49px); width: 98px; height: 98px; opacity: 0; transform: scale(0); filter: drop-shadow(0 0 16px rgba(154,76,255,.82)); }
.singularity-core { position: absolute; z-index: 5; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #130621, #000 52%); box-shadow: 0 0 0 4px rgba(83,30,137,.88), 0 0 18px 8px rgba(135,57,232,.42), inset 0 0 7px #000; }
.singularity-disc { position: absolute; z-index: 4; top: 38px; right: 3px; left: 3px; height: 22px; border-radius: 50%; background: conic-gradient(from 45deg, #5a25bb, #f0c5ff, #8840db, #4d1a99, #d897ff, #5a25bb); box-shadow: 0 0 12px #b966ff; transform: rotate(-9deg); }
.singularity-disc::after { content: ""; position: absolute; inset: 5px 20px; border-radius: 50%; background: #020106; }
.singularity-orbit { position: absolute; z-index: 2; inset: 10px; border: 1px solid rgba(201,149,255,.48); border-radius: 50%; transform: rotateX(66deg) rotate(10deg); }
.singularity-orbit::before { content: ""; position: absolute; top: 4px; left: 7px; width: 4px; height: 4px; border-radius: 50%; background: white; box-shadow: 0 0 7px #d5a9ff; }
.singularity-orbit.orbit-two { inset: 2px; border-color: rgba(118,64,221,.37); transform: rotateX(68deg) rotate(68deg); }
.singularity-orbit.orbit-three { inset: 18px; border-color: rgba(234,213,255,.58); transform: rotateX(64deg) rotate(132deg); }
.animation-preview-voxels { position: absolute; z-index: 9; left: calc(24% + 34px); bottom: calc(30% + 60px); opacity: 0; }
.animation-preview-voxels i { position: absolute; width: 9px; height: 9px; background: #ff7343; box-shadow: 0 0 7px rgba(255,115,67,.64); }
.animation-preview-voxels i:nth-child(2),
.animation-preview-voxels i:nth-child(6) { background: #a6bac6; }
.animation-preview-voxels i:nth-child(3),
.animation-preview-voxels i:nth-child(7) { background: #526f83; }
.animation-preview-arrows { position: absolute; z-index: 10; inset: 0; pointer-events: none; }
.animation-preview-arrows i { --impact-y: 45%; --impact-x: 28%; position: absolute; top: var(--impact-y); left: var(--impact-x); width: 56px; height: 3px; opacity: 0; background: #be8240; transform-origin: right center; }
.animation-preview-arrows i::before { content: ""; position: absolute; left: -7px; top: -4px; border-width: 5px 8px 5px 0; border-style: solid; border-color: transparent #edf1f0 transparent transparent; }
.animation-preview-arrows i::after { content: ""; position: absolute; right: -2px; top: -5px; width: 10px; height: 13px; background: linear-gradient(35deg, transparent 40%, #cf5845 41% 58%, transparent 59%); }
.animation-preview-arrows i:nth-child(2) { --impact-y: 51%; --impact-x: 26%; }
.animation-preview-arrows i:nth-child(3) { --impact-y: 39%; --impact-x: 27%; }
.animation-preview-arrows i:nth-child(4) { --impact-y: 57%; --impact-x: 25%; }
.animation-preview-arrows i:nth-child(5) { --impact-y: 47%; --impact-x: 29%; }
.animation-preview-arrows i:nth-child(6) { --impact-y: 34%; --impact-x: 26%; }
.animation-preview-arrows i:nth-child(7) { --impact-y: 54%; --impact-x: 28%; }
.animation-preview-arrows i:nth-child(8) { --impact-y: 42%; --impact-x: 25%; }
.animation-preview-arrows i:nth-child(9) { --impact-y: 60%; --impact-x: 27%; }
.animation-preview-arrows i:nth-child(10) { --impact-y: 37%; --impact-x: 29%; }
.animation-preview-arrows i:nth-child(11) { --impact-y: 49%; --impact-x: 24%; }
.animation-preview-arrows i:nth-child(12) { --impact-y: 44%; --impact-x: 27%; }
.animation-preview-arrows i:nth-child(13) { --impact-y: 56%; --impact-x: 29%; }
.animation-preview-arrows i:nth-child(14) { --impact-y: 32%; --impact-x: 28%; }
.kill-animation-preview-copy { padding: 15px 17px 13px; }
.kill-animation-preview-state { color: #bd8cff; font-size: 7px; font-weight: 950; letter-spacing: .16em; }
.kill-animation-preview-copy h3 { margin: 4px 0 5px; font-size: 22px; letter-spacing: -.025em; }
.kill-animation-preview-copy > p { margin: 0; color: #8494a4; font-size: 9px; line-height: 1.5; }
.kill-animation-preview-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; background: rgba(255,255,255,.07); }
.kill-animation-preview-meta span { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; background: #111922; }
.kill-animation-preview-meta small { color: #5f7183; font-size: 6px; font-weight: 900; letter-spacing: .13em; }
.kill-animation-preview-meta b { color: #bdc9d3; font: 850 8px/1 ui-monospace, monospace; }
.kill-animation-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.kill-animation-preview-actions button { min-height: 42px; border: 1px solid rgba(255,255,255,.14); color: #d0dbe3; background: rgba(255,255,255,.045); font-size: 8px; font-weight: 950; letter-spacing: .12em; cursor: pointer; }
.kill-animation-preview-actions button:hover { border-color: rgba(190,134,255,.64); background: rgba(145,69,230,.1); }
.kill-animation-preview-actions button:last-child { border-color: #b36fff; color: #0f0718; background: #b36fff; }
.kill-animation-preview-actions button:disabled { border-color: rgba(70,217,207,.4); color: var(--cyan); background: rgba(70,217,207,.08); cursor: default; }

/* Voxel Burst preview: an immediate readable default elimination. */
.kill-animation-preview-stage[data-kill-animation="voxel-burst"][data-preview-state="playing"] .animation-preview-operator { animation: animation-preview-voxel-body 1.45s ease-out both; }
.kill-animation-preview-stage[data-kill-animation="voxel-burst"][data-preview-state="playing"] .animation-preview-voxels { animation: animation-preview-voxel-cloud 1.45s ease-out both; }
.kill-animation-preview-stage[data-kill-animation="voxel-burst"][data-preview-state="playing"] .animation-preview-voxels i { animation: animation-preview-voxel-piece 1.45s cubic-bezier(.1,.64,.32,1) both; }
.animation-preview-voxels i:nth-child(1) { --vx: -66px; --vy: -48px; --vr: -120deg; }
.animation-preview-voxels i:nth-child(2) { --vx: -36px; --vy: -76px; --vr: 95deg; }
.animation-preview-voxels i:nth-child(3) { --vx: 2px; --vy: -66px; --vr: 180deg; }
.animation-preview-voxels i:nth-child(4) { --vx: 51px; --vy: -46px; --vr: -85deg; }
.animation-preview-voxels i:nth-child(5) { --vx: -57px; --vy: 19px; --vr: 130deg; }
.animation-preview-voxels i:nth-child(6) { --vx: -13px; --vy: 48px; --vr: -170deg; }
.animation-preview-voxels i:nth-child(7) { --vx: 43px; --vy: 37px; --vr: 80deg; }
.animation-preview-voxels i:nth-child(8) { --vx: 69px; --vy: 5px; --vr: 150deg; }
@keyframes animation-preview-voxel-body { 0%, 17% { opacity: 1; transform: scale(1); } 22%, 82% { opacity: 0; transform: scale(.72); } 100% { opacity: 1; transform: scale(1); } }
@keyframes animation-preview-voxel-cloud { 0%, 16% { opacity: 0; } 20%, 67% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes animation-preview-voxel-piece { 0%, 17% { transform: translate(0, 0) rotate(0); } 68%, 100% { transform: translate(var(--vx), var(--vy)) rotate(var(--vr)); opacity: 0; } }

/* Arrow Barrage preview: fourteen arrows land 50ms apart, remain embedded,
   and drive the standing body away from the incoming volley. */
.kill-animation-preview-stage[data-kill-animation="arrow-barrage"][data-preview-state="playing"] .animation-preview-operator { animation: animation-preview-arrow-victim 1.4s linear both; }
.kill-animation-preview-stage[data-kill-animation="arrow-barrage"][data-preview-state="playing"] .animation-preview-arrows i { animation: animation-preview-arrow-flight 1.4s cubic-bezier(.08,.75,.2,1) both; animation-delay: calc((var(--arrow-index, 0) * .05s)); }
.kill-animation-preview-stage[data-kill-animation="arrow-barrage"][data-preview-state="playing"] .animation-preview-shadow { animation: animation-preview-arrow-shadow 1.4s linear both; }
.animation-preview-arrows i:nth-child(1) { --arrow-index: 0; }.animation-preview-arrows i:nth-child(2) { --arrow-index: 1; }
.animation-preview-arrows i:nth-child(3) { --arrow-index: 2; }.animation-preview-arrows i:nth-child(4) { --arrow-index: 3; }
.animation-preview-arrows i:nth-child(5) { --arrow-index: 4; }.animation-preview-arrows i:nth-child(6) { --arrow-index: 5; }
.animation-preview-arrows i:nth-child(7) { --arrow-index: 6; }.animation-preview-arrows i:nth-child(8) { --arrow-index: 7; }
.animation-preview-arrows i:nth-child(9) { --arrow-index: 8; }.animation-preview-arrows i:nth-child(10) { --arrow-index: 9; }
.animation-preview-arrows i:nth-child(11) { --arrow-index: 10; }.animation-preview-arrows i:nth-child(12) { --arrow-index: 11; }
.animation-preview-arrows i:nth-child(13) { --arrow-index: 12; }.animation-preview-arrows i:nth-child(14) { --arrow-index: 13; }
@keyframes animation-preview-arrow-flight { 0% { opacity: 0; transform: translateX(270px); } 3% { opacity: 1; } 9%, 78% { opacity: 1; transform: translateX(0); } 91%, 100% { opacity: 0; transform: translate(-74px, 42px) rotate(-74deg); } }
@keyframes animation-preview-arrow-victim {
  0%, 3% { opacity: 1; transform: translate(0,0) rotate(0); }
  4% { transform: translate(-5px,0) rotate(-2deg); } 8% { transform: translate(3px,0) rotate(1deg); }
  12% { transform: translate(-6px,0) rotate(-3deg); } 16% { transform: translate(4px,0) rotate(2deg); }
  20% { transform: translate(-7px,0) rotate(-4deg); } 24% { transform: translate(4px,0) rotate(2deg); }
  28% { transform: translate(-8px,0) rotate(-5deg); } 32% { transform: translate(3px,0) rotate(2deg); }
  36% { transform: translate(-8px,0) rotate(-5deg); } 40% { transform: translate(4px,0) rotate(2deg); }
  44% { transform: translate(-9px,0) rotate(-6deg); } 49% { transform: translate(2px,0) rotate(1deg); }
  53% { transform: translate(-10px,0) rotate(-7deg); }
  82% { opacity: 1; transform: translate(-58px,34px) rotate(-82deg); }
  91%, 100% { opacity: 0; transform: translate(-67px,42px) rotate(-88deg); }
}
@keyframes animation-preview-arrow-shadow { 0%, 54% { opacity: 1; transform: scaleX(1); } 83% { opacity: .7; transform: translateX(-38px) scaleX(1.45); } 92%, 100% { opacity: 0; transform: translateX(-46px) scaleX(1.55); } }

/* Black Hole preview: one intact ragdoll is caught before it lands, then the
   circular singularity contracts uniformly into its own center point. */
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-stars { animation: animation-preview-stars 2s linear both; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-singularity { animation: animation-preview-black-hole 2s cubic-bezier(.22,.72,.22,1) both; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .singularity-disc { animation: animation-preview-accretion .3s linear infinite; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .singularity-orbit { animation: animation-preview-orbit .45s linear infinite; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .singularity-orbit.orbit-two { animation-duration: .29s; animation-direction: reverse; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .singularity-orbit.orbit-three { animation-duration: .36s; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-operator { animation: animation-preview-black-hole-victim 2s cubic-bezier(.38,.02,.25,1) both; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-operator .animation-preview-arm.left { animation: animation-preview-ragdoll-left-arm 2s ease-in-out both; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-operator .animation-preview-arm.right { animation: animation-preview-ragdoll-right-arm 2s ease-in-out both; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-operator .animation-preview-leg.left { animation: animation-preview-ragdoll-left-leg 2s ease-in-out both; transform-origin: 50% 2px; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-operator .animation-preview-leg.right { animation: animation-preview-ragdoll-right-leg 2s ease-in-out both; transform-origin: 50% 2px; }
.kill-animation-preview-stage[data-kill-animation="black-hole"][data-preview-state="playing"] .animation-preview-shadow { animation: animation-preview-shadow-sucked 2s ease-in both; }
@keyframes animation-preview-stars { 0%, 7%, 94%, 100% { opacity: 0; transform: none; } 20%, 78% { opacity: .86; } 82% { opacity: .2; transform: translate(54%, 3%) scale(.5); } }
@keyframes animation-preview-black-hole {
  0%, 5% { opacity: 0; transform: scale(0) rotate(0); }
  16% { opacity: 1; transform: scale(.72) rotate(25deg); }
  27%, 77% { opacity: 1; transform: scale(1) rotate(125deg); }
  84% { opacity: 1; transform: scale(.74) rotate(170deg); filter: drop-shadow(0 0 20px rgba(224,183,255,.95)); }
  91% { opacity: .95; transform: scale(.2) rotate(186deg); }
  95%, 100% { opacity: 0; transform: scale(0) rotate(192deg); }
}
@keyframes animation-preview-black-hole-victim {
  0%, 13% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); filter: none; }
  22% { transform: translate(2px, 7px) rotate(-14deg) scale(1); }
  35% { transform: translate(13px, 11px) rotate(-29deg) scale(.98); }
  49% { transform: translate(48px, 1px) rotate(29deg) scale(.88); filter: drop-shadow(0 0 7px rgba(188,121,255,.7)); }
  65% { opacity: .96; transform: translate(var(--black-hole-pull-mid), -8px) rotate(142deg) scale(.58); }
  78% { opacity: .78; transform: translate(var(--black-hole-pull-x), -5px) rotate(326deg) scale(.13); }
  82%, 92% { opacity: 0; transform: translate(calc(var(--black-hole-pull-x) + 9px), -5px) rotate(375deg) scale(0); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes animation-preview-ragdoll-left-arm { 0%, 12% { transform: rotate(7deg); } 26%, 78% { transform: rotate(46deg); } 82%, 100% { transform: rotate(7deg); } }
@keyframes animation-preview-ragdoll-right-arm { 0%, 12% { transform: rotate(-12deg); } 26%, 78% { transform: rotate(-54deg); } 82%, 100% { transform: rotate(-12deg); } }
@keyframes animation-preview-ragdoll-left-leg { 0%, 12% { transform: rotate(0); } 28%, 78% { transform: rotate(18deg); } 82%, 100% { transform: rotate(0); } }
@keyframes animation-preview-ragdoll-right-leg { 0%, 12% { transform: rotate(0); } 28%, 78% { transform: rotate(-23deg); } 82%, 100% { transform: rotate(0); } }
@keyframes animation-preview-shadow-sucked { 0%, 25% { opacity: 1; transform: scaleX(1); } 78%, 91% { opacity: 0; transform: translateX(var(--black-hole-pull-x)) scaleX(.05); } 100% { opacity: 1; transform: none; } }
@keyframes animation-preview-accretion { to { transform: rotate(351deg); } }
@keyframes animation-preview-orbit { to { transform: rotateX(66deg) rotate(370deg); } }
.promo-code-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(310px, .85fr);
  align-items: center;
  gap: 10px 18px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(70,217,207,.2);
  background:
    linear-gradient(100deg, rgba(70,217,207,.08), transparent 46%),
    rgba(7,11,17,.66);
  box-shadow: inset 3px 0 0 rgba(70,217,207,.7);
}
.promo-code-copy { display: flex; min-width: 0; align-items: center; gap: 12px; }
.promo-code-copy > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.promo-code-copy small { color: var(--cyan); font-size: 6px; font-weight: 950; letter-spacing: .16em; }
.promo-code-copy strong { color: var(--paper); font-size: 14px; letter-spacing: -.01em; }
.promo-code-copy em { color: #788a9b; font-size: 8px; font-style: normal; }
.promo-code-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(70,217,207,.4);
  color: var(--cyan);
  background: rgba(70,217,207,.08);
  font: 950 18px/1 ui-monospace, monospace;
}
.promo-code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.promo-code-form input {
  min-width: 0;
  height: 41px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  color: var(--paper);
  background: rgba(3,7,11,.66);
  font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.promo-code-form input::placeholder { color: #556576; opacity: 1; }
.promo-code-form input:disabled { color: #7f8c98; cursor: wait; }
.promo-code-form button {
  display: flex;
  min-width: 112px;
  height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--cyan);
  color: #091416;
  background: var(--cyan);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  cursor: pointer;
}
.promo-code-form button b { font-size: 16px; }
.promo-code-form button:hover:not(:disabled) { filter: brightness(1.12); }
.promo-code-form button:disabled { cursor: wait; filter: grayscale(.5) brightness(.65); }
.promo-code-feedback {
  grid-column: 1 / -1;
  min-height: 12px;
  margin: -2px 0 0 52px;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .07em;
}
.promo-code-feedback.error { color: #ff8295; }
.promo-code-feedback.success { color: #8ef2a0; }
.cosmetic-shop-feedback { min-height: 15px; margin: 10px 2px 0; color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .055em; }
.cosmetic-shop-feedback.error { color: #ff8295; }
.cosmetic-shop-footer { margin-top: 1px; color: #627385; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-align: center; }
@keyframes cosmetic-shop-in { from { opacity: 0; } }
@keyframes cosmetic-preview-shot {
  0%, 8% { left: -18%; opacity: 0; }
  10% { opacity: 1; }
  24% { left: 60%; opacity: 1; }
  25%, 100% { left: 60%; opacity: 0; }
}
@keyframes cosmetic-preview-impact {
  0%, 23% { opacity: 0; transform: scale(.25) rotate(0); }
  27% { opacity: 1; transform: scale(1.2) rotate(30deg); }
  39%, 100% { opacity: 0; transform: scale(1.75) rotate(65deg); }
}
@keyframes cosmetic-preview-fall {
  0%, 24% { transform: translate(0, 0) rotate(0); }
  40% { transform: translate(9px, 0) rotate(8deg); }
  76%, 90% { transform: translate(37px, 19px) rotate(76deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes cosmetic-preview-rings {
  0%, 30% { opacity: 0; }
  35% { opacity: 1; }
  76% { opacity: 0; }
  100% { opacity: 0; }
}
.kill-preview-stage.is-playing .preview-sound-rings i,
.kill-preview-stage[data-preview-state="playing"] .preview-sound-rings i { animation: cosmetic-preview-ring 1s ease-out .55s both; }
.kill-preview-stage.is-playing .preview-sound-rings i:nth-child(2),
.kill-preview-stage[data-preview-state="playing"] .preview-sound-rings i:nth-child(2) { animation: cosmetic-preview-ring 1s ease-out .65s both; }
.kill-preview-stage.is-playing .preview-sound-rings i:nth-child(3),
.kill-preview-stage[data-preview-state="playing"] .preview-sound-rings i:nth-child(3) { animation: cosmetic-preview-ring 1s ease-out .75s both; }
@keyframes cosmetic-preview-ring { from { inset: 48%; opacity: .9; } to { inset: 2%; opacity: 0; } }

/* In-game interface */
#hud { display: none; position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#hud.active { display: block; }

.match-bar {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
.match-center {
  min-width: 200px;
  padding: 10px 30px 9px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,14,20,.85), rgba(10,14,20,.54));
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  text-shadow: 0 2px 5px #000;
}
.match-center small { display: block; color: #9daaba; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.match-center strong { display: block; margin-top: 3px; font: 900 23px/1 ui-monospace, monospace; letter-spacing: .08em; }
.region-chip { justify-self: start; }
.ping-chip { display: flex; align-items: end; gap: 2px; justify-self: end; }
.ping-chip i { width: 3px; background: var(--cyan); }
.ping-chip i:nth-child(1) { height: 4px; }
.ping-chip i:nth-child(2) { height: 7px; }
.ping-chip i:nth-child(3) { height: 10px; }
.ping-chip span { margin-left: 5px; }

.practice-party-panel {
  position: absolute;
  top: 72px;
  left: 22px;
  z-index: 9;
  width: 214px;
  padding: 12px;
  border: 1px solid rgba(70,217,207,.28);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(145deg, rgba(10,17,24,.94), rgba(18,31,39,.86));
  box-shadow: 0 16px 32px rgba(0,0,0,.32);
  pointer-events: auto;
}
.practice-party-panel[hidden] { display: none; }
.practice-party-code { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; }
.practice-party-code small,
.practice-join-form label { color: #91a5b1; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.practice-party-code strong {
  grid-row: 2 / span 2;
  color: var(--cyan);
  font: 900 27px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-shadow: 0 0 15px rgba(70,217,207,.35);
}
.practice-party-code span { align-self: center; color: #687d89; font-size: 6px; font-weight: 900; letter-spacing: .09em; }
.practice-join-form { display: grid; gap: 5px; margin-top: 12px; }
.practice-join-form > div { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 5px; }
.practice-join-form input,
.practice-join-form button,
.practice-friendly-fire-toggle,
.practice-friendly-fire-readout {
  height: 31px;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--paper);
  background: rgba(4,9,14,.7);
  font: 900 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.practice-join-form input { min-width: 0; padding: 0 8px; letter-spacing: .13em; }
.practice-join-form input:focus { outline: 1px solid var(--cyan); border-color: var(--cyan); }
.practice-join-form button { color: #0c171a; background: var(--cyan); cursor: pointer; }
.practice-join-form button:disabled { cursor: wait; filter: grayscale(.65); }
.practice-friendly-fire-toggle,
.practice-friendly-fire-readout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 9px;
}
.practice-friendly-fire-toggle {
  cursor: pointer;
}
.practice-friendly-fire-readout { box-sizing: border-box; }
.practice-friendly-fire-toggle[hidden],
.practice-friendly-fire-readout[hidden] { display: none; }
.practice-friendly-fire-toggle strong,
.practice-friendly-fire-readout strong { color: #93a6b1; }
.practice-friendly-fire-toggle[aria-pressed="true"] { border-color: rgba(255,71,126,.65); background: rgba(93,20,43,.48); }
.practice-friendly-fire-toggle[aria-pressed="true"] strong,
.practice-friendly-fire-readout.enabled strong { color: #ff789e; }
.practice-friendly-fire-readout.enabled { border-color: rgba(255,71,126,.65); background: rgba(93,20,43,.48); }
.practice-friendly-fire-toggle.pending,
.practice-friendly-fire-readout.pending { border-color: rgba(255,197,61,.6); }
.practice-friendly-fire-toggle.pending strong,
.practice-friendly-fire-readout.pending strong { color: var(--yellow); }
.practice-party-feedback { min-height: 12px; margin: 7px 0 0; color: #8da6b2; font-size: 7px; font-weight: 800; line-height: 1.4; }
.practice-party-feedback.error { color: #ff789e; }

.practice-friendly-fire-announcement {
  position: fixed;
  inset: 0;
  /* This safety transition must cover every in-HUD menu. The Practice pause
     layer is deliberately below the HUD while unlocked (see below). */
  z-index: 100;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  opacity: 0;
  visibility: hidden;
  color: #fff;
  background: #000;
  pointer-events: none;
}
.practice-friendly-fire-announcement small { color: #ff789e; font-size: 9px; font-weight: 950; letter-spacing: .3em; }
.practice-friendly-fire-announcement strong { font: 900 clamp(28px, 5vw, 58px)/1 Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.practice-friendly-fire-announcement.active {
  visibility: visible;
  animation: practice-friendly-fire-fade 2.4s ease-in-out both;
}
@keyframes practice-friendly-fire-fade {
  0% { opacity: 0; }
  16%, 68% { opacity: .96; }
  100% { opacity: 0; }
}

.map-vote {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  place-items: center;
  padding: 28px;
  background: rgba(4,8,13,.7);
  backdrop-filter: blur(7px);
  pointer-events: auto;
}
.map-vote.active { display: grid; animation: vote-fade-in .18s ease-out; }
.map-vote-card {
  width: min(790px, calc(100vw - 56px));
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.013) 48% 52%, transparent 52%) 0 0 / 18px 18px,
    rgba(19,27,37,.96);
  box-shadow: 0 28px 74px rgba(0,0,0,.52);
  pointer-events: auto;
}
.map-vote-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin: 8px 0 24px; }
.map-vote-heading h2 { margin: 0 0 6px; font-size: 29px; letter-spacing: -.04em; }
.map-vote-heading p { max-width: 450px; margin: 0; color: #93a1b0; font-size: 11px; line-height: 1.5; }
.vote-clock {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 5px;
  min-width: 74px;
  padding: 8px 11px;
  border: 1px solid rgba(255,197,61,.31);
  color: var(--yellow);
  background: rgba(8,12,18,.57);
}
.vote-clock strong { font: 900 29px/.85 ui-monospace, monospace; }
.vote-clock small { color: #8493a2; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.map-vote-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode-vote-card { width: min(650px, calc(100vw - 56px)); }
.mode-vote-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mode-vote-options[data-match-format="tdm"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-vote-option {
  position: relative;
  display: grid;
  min-height: 172px;
  align-content: end;
  gap: 7px;
  padding: 24px 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--paper);
  background: linear-gradient(135deg, rgba(37,67,72,.94), rgba(14,22,31,.96));
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, filter .15s, transform .15s;
}
.mode-vote-option[data-mode-id="fun"] { background: linear-gradient(135deg, rgba(88,39,104,.94), rgba(24,20,40,.97)); }
.mode-vote-option[data-mode-id="team-classic"] { background: linear-gradient(135deg, rgba(67,35,47,.96), rgba(22,29,51,.97)); }
.mode-vote-option[data-mode-id="knockout"] { background: linear-gradient(135deg, rgba(104,57,27,.95), rgba(35,22,28,.97)); }
.mode-vote-option[data-mode-id="capture-point"] { background: linear-gradient(135deg, rgba(29,58,105,.97), rgba(72,29,43,.96)); }
.mode-vote-option::before { content: ""; position: absolute; top: -46px; right: -35px; width: 145px; height: 145px; border: 18px solid rgba(70,217,207,.12); border-radius: 50%; }
.mode-vote-option[data-mode-id="fun"]::before { border-color: rgba(219,112,255,.16); transform: rotate(18deg); }
.mode-vote-option[data-mode-id="team-classic"]::before { border-color: rgba(119,156,255,.18); }
.mode-vote-option[data-mode-id="knockout"]::before { border-color: rgba(255,139,76,.19); transform: rotate(18deg); }
.mode-vote-option[data-mode-id="capture-point"]::before { border-color: rgba(255,197,61,.22); transform: rotate(45deg); }
.mode-vote-option::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--cyan); opacity: .78; }
.mode-vote-option[data-mode-id="fun"]::after { background: #db70ff; }
.mode-vote-option[data-mode-id="team-classic"]::after { background: linear-gradient(90deg, #ff536f 0 50%, #669cff 50%); }
.mode-vote-option[data-mode-id="knockout"]::after { background: #ff8b4c; }
.mode-vote-option[data-mode-id="capture-point"]::after { background: linear-gradient(90deg, #669cff, #a7b0ba 50%, #ff536f); }
.mode-vote-option:hover { border-color: rgba(255,255,255,.43); filter: brightness(1.1); transform: translateY(-2px); }
.mode-vote-option:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.mode-vote-option:disabled { cursor: default; filter: saturate(.55); transform: none; }
.mode-vote-option.selected,
.mode-vote-option[aria-pressed="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(255,197,61,.18); }
.mode-vote-option.selected::after,
.mode-vote-option[aria-pressed="true"]::after { height: 5px; background: var(--yellow); opacity: 1; }
.mode-vote-option .mode-number { color: rgba(255,255,255,.32); font: 950 35px/.8 ui-monospace, monospace; }
.mode-vote-option strong { position: relative; font-size: 21px; letter-spacing: .025em; text-transform: uppercase; }
.mode-vote-option .mode-vote-description { position: relative; min-height: 31px; color: #b4c2ce; font-size: 9px; font-weight: 700; line-height: 1.45; }
.mode-vote-option .mode-vote-count { position: relative; color: #8696a7; font: 850 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.mode-vote-option .mode-selected { position: absolute; top: 13px; left: 18px; color: var(--yellow); font-size: 7px; font-weight: 950; letter-spacing: .14em; opacity: 0; }
.mode-vote-option.selected .mode-selected { opacity: 1; }
.vote-order-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 17px 0 0; color: #6f7f90; font: 850 7px/1 ui-monospace, monospace; letter-spacing: .12em; }
.vote-order-note b { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #a7b4c0; }
.vote-order-note b:first-child { border-color: rgba(255,197,61,.52); color: var(--yellow); }
.vote-order-note i { width: 27px; height: 1px; background: rgba(255,255,255,.18); }
.map-vote-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 158px;
  padding: 82px 18px 17px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--paper);
  background:
    linear-gradient(145deg, transparent 48%, rgba(255,255,255,.035) 49% 51%, transparent 52%) 0 0 / 34px 34px,
    linear-gradient(120deg, rgba(36,65,72,.9), rgba(16,25,34,.92));
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, filter .15s, transform .15s;
  isolation: isolate;
}
.map-vote-option[data-map-id="rampart-rise"] {
  background:
    radial-gradient(circle at 13% 27%, rgba(91,125,61,.3), transparent 27%),
    radial-gradient(circle at 78% 28%, rgba(72,111,55,.34), transparent 31%),
    radial-gradient(ellipse at 52% 68%, rgba(117,83,49,.28), transparent 36%),
    radial-gradient(circle, rgba(196,178,113,.08) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(120deg, rgba(48,61,35,.94), rgba(32,29,22,.97));
}
.map-vote-option[data-map-id="city-parking"] {
  background:
    linear-gradient(90deg, transparent 47%, rgba(232,199,94,.14) 48% 52%, transparent 53%) 0 0 / 38px 38px,
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 13px,
    linear-gradient(120deg, rgba(51,64,73,.97), rgba(18,25,31,.98));
}
.map-vote-option[data-map-id="fortress"] {
  background:
    linear-gradient(145deg, transparent 48%, rgba(255,255,255,.035) 49% 51%, transparent 52%) 0 0 / 25px 25px,
    linear-gradient(120deg, rgba(38,48,73,.96), rgba(14,21,31,.97));
}
.map-vote-option[data-map-id="castle"] {
  background:
    linear-gradient(90deg, rgba(219,202,174,.045) 1px, transparent 1px) 0 0 / 19px 11px,
    linear-gradient(rgba(219,202,174,.04) 1px, transparent 1px) 0 0 / 19px 11px,
    radial-gradient(circle at 51% 38%, rgba(191,137,76,.18), transparent 31%),
    linear-gradient(120deg, rgba(80,69,60,.97), rgba(29,26,25,.98));
}
.map-vote-option::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--cyan); opacity: .62; }
.map-vote-option[data-map-id="rampart-rise"]::before { background: #7f9f55; }
.map-vote-option[data-map-id="city-parking"]::before { background: #d0b548; }
.map-vote-option[data-map-id="fortress"]::before { background: #779cff; }
.map-vote-option[data-map-id="castle"]::before { background: #c49a68; }
.map-vote-option:hover { border-color: rgba(255,255,255,.4); filter: brightness(1.11); transform: translateY(-2px); }
.map-vote-option:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.map-vote-option:disabled { cursor: default; filter: saturate(.55); transform: none; }
.map-vote-option.selected,
.map-vote-option[aria-pressed="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(255,197,61,.18); }
.map-vote-option.selected::after,
.map-vote-option[aria-pressed="true"]::after { content: "YOUR VOTE"; position: absolute; top: 12px; right: 13px; color: var(--yellow); font-size: 7px; font-weight: 950; letter-spacing: .15em; }
.map-vote-option strong { position: relative; z-index: 2; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; }
.map-vote-option .map-vote-description { position: relative; z-index: 2; margin-top: 6px; color: #c0cad4; font-size: 9px; font-weight: 700; line-height: 1.35; }
.map-vote-option .map-vote-count { position: relative; z-index: 2; margin-top: 8px; color: #8fa0b1; font: 800 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.map-vote-visual {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 18px;
  left: 18px;
  height: 49px;
  margin: 0;
  opacity: .75;
  pointer-events: none;
}
.map-vote-visual i { position: absolute; display: block; bottom: 0; background: rgba(115,215,211,.42); border: 1px solid rgba(191,246,242,.38); }
.map-vote-option[data-map-id="original"] .map-vote-visual i:nth-child(1) { left: 37%; width: 26%; height: 34px; }
.map-vote-option[data-map-id="original"] .map-vote-visual i:nth-child(2) { left: 4%; width: 29%; height: 13px; }
.map-vote-option[data-map-id="original"] .map-vote-visual i:nth-child(3) { right: 4%; width: 29%; height: 13px; }
.map-vote-option[data-map-id="rampart-rise"] .map-vote-visual i { border-color: rgba(180,204,132,.4); }
.map-vote-option[data-map-id="rampart-rise"] .map-vote-visual i:nth-child(1) {
  left: 3%; width: 28%; height: 44px; background: rgba(64,116,61,.72);
  clip-path: polygon(39% 100%, 39% 56%, 16% 56%, 16% 43%, 0 43%, 0 20%, 20% 20%, 20% 7%, 43% 7%, 43% 0, 65% 0, 65% 10%, 87% 10%, 87% 28%, 100% 28%, 100% 51%, 65% 51%, 65% 100%);
}
.map-vote-option[data-map-id="rampart-rise"] .map-vote-visual i:nth-child(2) {
  left: 31%; width: 42%; height: 24px; background: rgba(129,111,78,.58);
  clip-path: polygon(0 28%, 14% 28%, 14% 0, 30% 0, 30% 17%, 50% 17%, 50% 56%, 65% 56%, 65% 12%, 79% 12%, 79% 35%, 100% 35%, 100% 100%, 0 100%);
}
.map-vote-option[data-map-id="rampart-rise"] .map-vote-visual i:nth-child(3) {
  right: 1%; width: 25%; height: 37px; background: rgba(46,91,49,.68);
  clip-path: polygon(38% 100%, 38% 54%, 7% 54%, 7% 35%, 0 35%, 0 17%, 27% 17%, 27% 0, 66% 0, 66% 12%, 91% 12%, 91% 39%, 100% 39%, 100% 57%, 64% 57%, 64% 100%);
}
.map-vote-option[data-map-id="rampart-rise"] .map-vote-visual i:nth-child(4) {
  z-index: -1; left: 5%; bottom: -1px; width: 51%; height: 20px;
  background: rgba(74,100,50,.72); border-color: rgba(148,177,92,.24);
  clip-path: polygon(0 100%, 0 72%, 8% 72%, 8% 55%, 18% 55%, 18% 35%, 31% 35%, 31% 18%, 49% 18%, 49% 8%, 66% 8%, 66% 21%, 80% 21%, 80% 45%, 91% 45%, 91% 67%, 100% 67%, 100% 100%);
}
.map-vote-option[data-map-id="rampart-rise"] .map-vote-visual i:nth-child(5) {
  z-index: -2; right: 2%; bottom: -1px; width: 49%; height: 15px;
  background: rgba(99,79,49,.78); border-color: rgba(168,144,93,.24);
  clip-path: polygon(0 100%, 0 68%, 13% 68%, 13% 43%, 25% 43%, 25% 22%, 41% 22%, 41% 5%, 58% 5%, 58% 19%, 74% 19%, 74% 39%, 87% 39%, 87% 63%, 100% 63%, 100% 100%);
}
.map-vote-option[data-map-id="city-parking"] .map-vote-visual { opacity: .92; }
.map-vote-option[data-map-id="city-parking"] .map-vote-visual i {
  background: rgba(91,113,126,.72);
  border-color: rgba(184,208,218,.44);
  box-shadow: inset 0 4px rgba(226,238,241,.06);
}
.map-vote-option[data-map-id="city-parking"] .map-vote-visual i:nth-child(1) { left: 2%; width: 21%; height: 45px; }
.map-vote-option[data-map-id="city-parking"] .map-vote-visual i:nth-child(2) { left: 28%; width: 18%; height: 31px; }
.map-vote-option[data-map-id="city-parking"] .map-vote-visual i:nth-child(3) { right: 29%; width: 20%; height: 39px; }
.map-vote-option[data-map-id="city-parking"] .map-vote-visual i:nth-child(4) { right: 2%; width: 22%; height: 47px; }
.map-vote-option[data-map-id="city-parking"] .map-vote-visual i:nth-child(5) {
  right: 20%; bottom: -1px; width: 55%; height: 7px;
  background: rgba(211,184,73,.64); border-color: rgba(244,221,133,.56);
  transform: rotate(-7deg); transform-origin: right center;
}
.map-vote-option[data-map-id="fortress"] .map-vote-visual { opacity: .92; }
.map-vote-option[data-map-id="fortress"] .map-vote-visual i { background: rgba(115,147,216,.52); border-color: rgba(178,201,255,.55); box-shadow: inset 0 4px rgba(215,226,255,.09); }
.map-vote-option[data-map-id="fortress"] .map-vote-visual i:nth-child(1) { right: 7%; left: 7%; height: 19px; clip-path: polygon(0 20%, 8% 20%, 8% 0, 18% 0, 18% 20%, 28% 20%, 28% 0, 38% 0, 38% 20%, 62% 20%, 62% 0, 72% 0, 72% 20%, 82% 20%, 82% 0, 92% 0, 92% 20%, 100% 20%, 100% 100%, 0 100%); }
.map-vote-option[data-map-id="fortress"] .map-vote-visual i:nth-child(2) { left: 1%; width: 22%; height: 36px; clip-path: polygon(0 13%, 18% 13%, 18% 0, 42% 0, 42% 13%, 62% 13%, 62% 0, 86% 0, 86% 13%, 100% 13%, 100% 100%, 0 100%); }
.map-vote-option[data-map-id="fortress"] .map-vote-visual i:nth-child(3) { right: 1%; width: 22%; height: 39px; clip-path: polygon(0 13%, 18% 13%, 18% 0, 42% 0, 42% 13%, 62% 13%, 62% 0, 86% 0, 86% 13%, 100% 13%, 100% 100%, 0 100%); }
.map-vote-option[data-map-id="fortress"] .map-vote-visual i:nth-child(4) { left: 29%; width: 15%; height: 9px; }
.map-vote-option[data-map-id="fortress"] .map-vote-visual i:nth-child(5) { right: 29%; width: 15%; height: 12px; }
.map-vote-option[data-map-id="castle"] .map-vote-visual { opacity: .94; }
.map-vote-option[data-map-id="castle"] .map-vote-visual i {
  background: rgba(161,137,108,.72);
  border-color: rgba(226,207,178,.48);
  box-shadow: inset 0 4px rgba(255,239,208,.08);
}
.map-vote-option[data-map-id="castle"] .map-vote-visual i:nth-child(1) {
  right: 3%; left: 3%; height: 35px;
  clip-path: polygon(0 15%, 6% 15%, 6% 0, 14% 0, 14% 15%, 22% 15%, 22% 0, 30% 0, 30% 15%, 70% 15%, 70% 0, 78% 0, 78% 15%, 86% 15%, 86% 0, 94% 0, 94% 15%, 100% 15%, 100% 100%, 62% 100%, 62% 48%, 38% 48%, 38% 100%, 0 100%);
}
.map-vote-option[data-map-id="castle"] .map-vote-visual i:nth-child(2) { left: 6%; width: 16%; height: 46px; }
.map-vote-option[data-map-id="castle"] .map-vote-visual i:nth-child(3) { right: 6%; width: 16%; height: 46px; }
.map-vote-option[data-map-id="castle"] .map-vote-visual i:nth-child(4) {
  left: 38%; bottom: 7px; width: 24%; height: 4px; transform: rotate(-10deg); transform-origin: left center;
  background: rgba(120,77,43,.9); border-color: rgba(214,166,111,.55);
}
.map-vote-option[data-map-id="castle"] .map-vote-visual i:nth-child(5) {
  left: 49%; bottom: 18px; width: 3%; height: 17px; background: rgba(51,43,38,.9);
}
.bot-vote-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; margin-top: 13px; padding: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(8,12,18,.48); }
.bot-vote-row span { display: flex; flex-direction: column; gap: 3px; }
.bot-vote-row strong { font-size: 10px; letter-spacing: .08em; }
.bot-vote-row small { color: #8998a8; font-size: 8px; }
.bot-vote-row button { min-width: 72px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.15); color: #aab6c2; background: #18222e; font: 900 10px/1 ui-monospace, monospace; cursor: pointer; }
.bot-vote-row button.selected { border-color: var(--yellow); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255,197,61,.2); }
.bot-vote-row button b { margin-left: 5px; }
@keyframes vote-fade-in { from { opacity: 0; } }

.kill-feed { position: absolute; top: 82px; left: 22px; width: 330px; }
.kill-item {
  margin-bottom: 5px;
  color: rgba(245,240,228,.82);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 2px 4px #000;
  animation: feedIn .2s ease-out;
}
.kill-item b { color: var(--yellow); }
.kill-item i { padding: 0 6px; color: var(--orange); font-style: normal; }
@keyframes feedIn { from { transform: translateX(-13px); opacity: 0; } }

.team-status {
  position: absolute;
  top: 81px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr);
  min-width: 310px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,11,17,.78);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
}
.team-status[hidden] { display: none; }
.team-score { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 12px; }
.team-score span { font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.team-score strong { font: 950 20px/.9 ui-monospace, monospace; }
.team-red { color: #ff6078; background: linear-gradient(90deg, rgba(255,65,96,.19), transparent); }
.team-blue { color: #77a5ff; background: linear-gradient(270deg, rgba(79,143,255,.2), transparent); }
.team-round-status { display: flex; min-width: 110px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 10px; border-right: 1px solid rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.08); }
.team-round-status small { color: #8291a1; font-size: 6px; font-weight: 900; letter-spacing: .14em; }
.team-round-status b { color: #e6edf2; font: 850 8px/1 ui-monospace, monospace; letter-spacing: .08em; }

.capture-point-hud {
  --capture-blue: #669cff;
  --capture-red: #ff536f;
  --capture-neutral: #a7b0ba;
  position: absolute;
  top: 72px;
  left: 50%;
  display: grid;
  grid-template-columns: 92px minmax(270px, 390px) 92px;
  min-width: min(574px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(6,10,16,.82);
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}
.capture-point-hud[hidden] { display: none; }
.capture-score-card { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; }
.capture-score-card span { font-size: 7px; font-weight: 950; letter-spacing: .12em; }
.capture-score-card strong { font: 950 21px/.9 ui-monospace, monospace; }
.capture-score-own { color: #8fb3ff; background: linear-gradient(90deg, rgba(79,143,255,.24), transparent); }
.capture-score-enemy { color: #ff8295; background: linear-gradient(270deg, rgba(255,65,96,.22), transparent); }
.capture-score-center { padding: 8px 11px 9px; border-right: 1px solid rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.08); }
.capture-score-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.capture-score-heading small { color: #dfe7ee; font-size: 7px; font-weight: 950; letter-spacing: .15em; }
.capture-score-heading b { color: #8c9aaa; font: 850 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.capture-score-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 6px; }
.capture-score-track { position: relative; height: 5px; overflow: hidden; background: rgba(255,255,255,.08); }
.capture-score-track b {
  position: absolute;
  inset: 0;
  width: 100%;
  transform: scaleX(var(--capture-score-progress, 0));
  transition: transform .22s linear;
  will-change: transform;
}
.capture-score-track.own b {
  background: var(--capture-blue);
  box-shadow: 0 0 8px rgba(102,156,255,.5);
  transform-origin: left center;
}
.capture-score-track.enemy b {
  background: var(--capture-red);
  box-shadow: 0 0 8px rgba(255,83,111,.45);
  transform-origin: right center;
}
.capture-point-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 7px; }
.capture-point-state {
  --point-color: var(--capture-neutral);
  --point-progress: 0deg;
  position: relative;
  display: grid;
  min-height: 31px;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: 16px 12px;
  align-items: center;
  padding: 2px 6px 2px 3px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.capture-point-state[data-meter-team="blue"] { --point-color: var(--capture-blue); }
.capture-point-state[data-meter-team="red"] { --point-color: var(--capture-red); }
.capture-point-state[data-contested="true"] { --point-color: #ffc53d; }
.capture-point-state-meter {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(var(--point-color) var(--point-progress), rgba(167,176,186,.22) 0);
  box-shadow: inset 0 0 0 5px #101720, 0 0 7px color-mix(in srgb, var(--point-color) 52%, transparent);
  transition: background .16s linear, box-shadow .16s linear;
}
.capture-point-state b { color: var(--point-color); font: 950 11px/1 ui-monospace, monospace; }
.capture-point-state small { overflow: hidden; color: #9aa8b5; font: 850 6px/1 ui-monospace, monospace; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.capture-point-state[data-contested="true"] { animation: capture-contested-pulse .72s ease-in-out infinite alternate; }
@keyframes capture-contested-pulse { to { border-color: rgba(255,197,61,.6); background: rgba(255,197,61,.1); } }

.scoreboard {
  position: absolute;
  top: 82px;
  right: 22px;
  width: 235px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(8,12,18,.64);
  backdrop-filter: blur(6px);
}
.score-head, .score-row { display: grid; grid-template-columns: 1fr 44px; align-items: center; }
.score-head { margin-bottom: 8px; color: #8090a0; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.score-head span:last-child { text-align: right; }
.score-row { min-height: 27px; border-top: 1px solid rgba(255,255,255,.06); font-size: 10px; font-weight: 750; }
.score-row.me { color: var(--yellow); }
.score-row.eliminated { opacity: .48; }
.score-row.team-red .player-dot { background: #ff536f !important; }
.score-row.team-blue .player-dot { background: #669cff !important; }
.score-row.team-red > span:first-child { color: #ff8295; }
.score-row.team-blue > span:first-child { color: #8fb3ff; }
.score-row.team-red .score-numbers { color: #ff8295; }
.score-row.team-blue .score-numbers { color: #8fb3ff; }
.score-row .player-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 0; background: var(--cyan); }
.score-row .score-numbers { text-align: right; color: #a5b2bf; font-family: ui-monospace, monospace; }
.score-team-header { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin: 5px -4px 0; padding: 0 6px; border-top: 1px solid rgba(255,255,255,.09); font-size: 7px; letter-spacing: .12em; }
.score-team-header.team-red { color: #ff8295; background: linear-gradient(90deg, rgba(255,65,96,.13), transparent); }
.score-team-header.team-blue { color: #8fb3ff; background: linear-gradient(90deg, rgba(79,143,255,.14), transparent); }
.score-team-header span { color: #7e8c9b; font: 800 7px/1 ui-monospace, monospace; }
.score-hint { margin: 9px -12px -12px; padding: 7px; text-align: center; color: #627180; background: rgba(0,0,0,.25); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.score-hint kbd { min-height: 15px; margin: 0 3px; padding: 1px 4px; font-size: 6px; }
.scoreboard.expanded { top: 50%; left: 50%; right: auto; width: min(520px, 80vw); transform: translate(-50%, -50%) scale(1.05); }

.spectator-controls {
  position: fixed;
  bottom: 118px;
  left: 50%;
  z-index: 74;
  min-width: 300px;
  padding: 10px 12px 9px;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--paper);
  background: rgba(8,12,18,.9);
  box-shadow: inset 0 3px 0 #8facff, 0 15px 38px rgba(0,0,0,.38);
  text-align: center;
  transform: translateX(-50%);
  pointer-events: auto;
  backdrop-filter: blur(8px);
}
.spectator-controls[hidden] { display: none; }
.spectator-controls > small { color: #8d9bac; font-size: 7px; font-weight: 950; letter-spacing: .17em; }
.spectator-controls > div { display: grid; grid-template-columns: 43px 1fr 43px; align-items: center; gap: 8px; margin: 8px 0 5px; }
.spectator-controls button { height: 32px; border: 1px solid rgba(255,255,255,.16); color: #dbe4ed; background: rgba(255,255,255,.06); font-size: 24px; cursor: pointer; }
.spectator-controls button:hover:not(:disabled) { border-color: #8facff; background: rgba(119,156,255,.13); }
.spectator-controls button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.spectator-controls button:disabled { opacity: .28; cursor: default; }
.spectator-controls strong { overflow: hidden; font-size: 14px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.spectator-controls > span { color: #8facff; font-size: 7px; font-weight: 850; letter-spacing: .13em; }

.respawn-shop-prompt {
  position: fixed;
  top: 82px;
  right: 272px;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr auto;
  width: 276px;
  overflow: hidden;
  border: 1px solid rgba(255,197,61,.34);
  color: var(--paper);
  background: linear-gradient(110deg, rgba(22,29,39,.95), rgba(8,12,18,.91));
  box-shadow: inset 3px 0 0 var(--yellow), 0 12px 30px rgba(0,0,0,.28);
  pointer-events: auto;
}
.respawn-shop-prompt.active { display: grid; animation: respawn-prompt-in .2s ease-out; }
.respawn-prompt-copy { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 11px 12px 9px 15px; }
.respawn-prompt-copy > span { color: #8291a1; font-size: 7px; font-weight: 900; letter-spacing: .17em; }
.respawn-prompt-copy > strong { font-size: 10px; letter-spacing: .025em; }
.respawn-prompt-copy kbd { min-width: 20px; min-height: 18px; margin-right: 4px; color: var(--yellow); }
.respawn-prompt-timer {
  display: flex;
  width: 51px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.09);
  background: rgba(255,197,61,.07);
}
.respawn-prompt-timer b { color: var(--yellow); font: 900 24px/.9 ui-monospace, monospace; }
.respawn-prompt-timer small { margin-top: 5px; color: #83909e; font-size: 6px; font-weight: 900; letter-spacing: .13em; }
.respawn-shop-prompt > button {
  grid-column: 1 / -1;
  min-height: 24px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #718192;
  background: rgba(0,0,0,.2);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .14em;
  cursor: pointer;
}
.respawn-shop-prompt > button:hover,
.respawn-shop-prompt > button:focus-visible { color: var(--paper); background: rgba(255,255,255,.07); }
@keyframes respawn-prompt-in { from { opacity: 0; transform: translateY(-7px); } }

.scope-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(circle at center, transparent 0 31vmin, rgba(5,8,12,.18) 32vmin, rgba(5,8,12,.67) 53vmin, rgba(5,8,12,.79) 100%);
  transition: opacity .14s, visibility .14s;
  pointer-events: none;
}
.scope-overlay.active { opacity: 1; visibility: visible; }
.scope-reticle {
  position: relative;
  width: min(64vmin, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(224,242,243,.36);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.42), inset 0 0 32px rgba(5,12,16,.13);
  contain: layout paint style;
}
.scope-reticle i,
.scope-reticle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  box-shadow: 0 0 2px rgba(0,0,0,.75);
  transform: translate(-50%, -50%);
}
.scope-reticle i {
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, rgba(226,242,243,.68) 0 47%, transparent 47% 53%, rgba(226,242,243,.68) 53% 100%);
}
.scope-reticle span {
  width: 1px;
  height: 32%;
  background: linear-gradient(rgba(226,242,243,.68) 0 47%, transparent 47% 53%, rgba(226,242,243,.68) 53% 100%);
}
.scope-aim-point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe19a;
  box-shadow: 0 0 0 1px rgba(4,8,12,.9), 0 0 4px rgba(255,197,61,.45);
  transform: translate(-50%, -50%);
}
.scope-shot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255,225,154,.82);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.75);
}
.scope-overlay.active:has(~ .crosshair.firing) .scope-shot-ring { animation: scoped-shot-feedback .14s ease-out; }
.scope-overlay.active ~ .crosshair { opacity: 0; }

.crosshair, .hit-marker { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); }
.crosshair {
  contain: layout paint style;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.9));
  transition: opacity .1s ease;
}
.crosshair .aim-arm {
  position: absolute;
  background: rgba(250,253,255,.94);
  box-shadow: 0 0 0 1px rgba(0,0,0,.34);
  transition: transform .075s cubic-bezier(.2,.75,.3,1);
  will-change: transform;
}
.crosshair .aim-arm-left,
.crosshair .aim-arm-right { top: 17px; width: 8px; height: 2px; }
.crosshair .aim-arm-left { left: 4px; }
.crosshair .aim-arm-right { right: 4px; }
.crosshair .aim-arm-top,
.crosshair .aim-arm-bottom { left: 17px; width: 2px; height: 8px; }
.crosshair .aim-arm-top { top: 4px; }
.crosshair .aim-arm-bottom { bottom: 4px; }
.crosshair .aim-point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffc53d;
  box-shadow: 0 0 0 1px rgba(0,0,0,.9), 0 0 4px rgba(255,197,61,.5);
  transform: translate(-50%, -50%);
}
.aim-shot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255,225,154,.78);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
}
/* A confirmed shot moves only the four outer arms. The center dot is the
   invariant ray origin and never shifts or scales with recoil feedback. */
.crosshair.firing .aim-arm-left { transform: translateX(-5px); }
.crosshair.firing .aim-arm-right { transform: translateX(5px); }
.crosshair.firing .aim-arm-top { transform: translateY(-5px); }
.crosshair.firing .aim-arm-bottom { transform: translateY(5px); }
.crosshair.firing .aim-shot-ring { animation: aim-shot-feedback .14s ease-out; }

@keyframes aim-shot-feedback {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.65); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}
@keyframes scoped-shot-feedback {
  0% { opacity: .78; transform: translate(-50%, -50%) scale(.72); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.hit-marker { opacity: 0; transition: opacity .08s; }
.hit-marker.active { opacity: 1; }
.hit-marker i { position: absolute; width: 9px; height: 2px; background: #fff; box-shadow: 0 0 3px #000; }
.hit-marker i:nth-child(1) { top: 9px; left: 6px; transform: rotate(45deg); }
.hit-marker i:nth-child(2) { top: 9px; right: 6px; transform: rotate(-45deg); }
.hit-marker i:nth-child(3) { bottom: 9px; left: 6px; transform: rotate(-45deg); }
.hit-marker i:nth-child(4) { right: 6px; bottom: 9px; transform: rotate(45deg); }
.hit-marker.kill i { background: var(--red); }
.hit-marker.critical i { background: var(--yellow); box-shadow: 0 0 6px var(--orange); }

.damage-vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, transparent 48%, rgba(255,25,58,.52) 130%); transition: opacity .2s; }
.damage-vignette.active { opacity: 1; }

.event-banner {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -10px);
  color: var(--yellow);
  font: 900 18px/1 Impact, sans-serif;
  letter-spacing: .1em;
  text-shadow: 0 3px 8px #000;
  opacity: 0;
}
.event-banner.active { animation: banner 1.8s ease-out; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 12%,70% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

.streak-notice {
  position: absolute;
  top: 24%;
  left: 50%;
  padding: 6px 11px;
  border: 1px solid rgba(255,197,61,.3);
  transform: translate(-50%, 6px);
  color: var(--paper);
  background: rgba(8,12,18,.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-shadow: 0 2px 5px #000;
  opacity: 0;
}
.streak-notice.critical { border-color: rgba(255,106,54,.65); color: #ffba6b; }
.streak-notice.active { animation: streak-notice 1.05s ease-out; }
@keyframes streak-notice {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.94); }
  14%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -5px); }
}

.syringe-buff {
  position: absolute;
  top: 82px;
  left: 50%;
  z-index: 8;
  display: flex;
  min-width: 370px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(121,255,137,.48);
  background: linear-gradient(100deg, rgba(15,48,34,.94), rgba(10,18,23,.9));
  box-shadow: inset 3px 0 0 #79ff89, 0 12px 28px rgba(0,0,0,.3), 0 0 22px rgba(77,255,115,.09);
  transform: translateX(-50%);
  pointer-events: none;
  animation: syringe-buff-in .2s ease-out;
}
.syringe-buff[hidden] { display: none; }
.syringe-buff > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 4px; }
.syringe-buff small { color: #79ff89; font-size: 8px; font-weight: 950; letter-spacing: .17em; }
.syringe-buff strong { color: #d8f7df; font-size: 8px; letter-spacing: .065em; }
.syringe-buff > b { min-width: 52px; color: #79ff89; font: 950 19px/1 ui-monospace, monospace; text-align: right; }
.syringe-icon { position: relative; width: 35px; height: 25px; transform: rotate(-38deg); }
.syringe-icon::before { content: ""; position: absolute; top: 7px; left: 7px; width: 19px; height: 10px; border: 2px solid #c9ffd2; background: linear-gradient(90deg, #51d96c 0 62%, rgba(255,255,255,.1) 63%); }
.syringe-icon::after { content: ""; position: absolute; top: 2px; left: 3px; width: 3px; height: 20px; border-right: 2px solid #c9ffd2; border-left: 2px solid #c9ffd2; }
.syringe-icon i::before { content: ""; position: absolute; top: 11px; left: 27px; width: 8px; height: 2px; background: #c9ffd2; }
@keyframes syringe-buff-in { from { opacity: 0; transform: translate(-50%, -8px); } }

.player-hud {
  position: absolute;
  right: 26px;
  bottom: 23px;
  left: 26px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: end;
  gap: 24px;
}

.health-block { width: 245px; }
.health-label { display: flex; justify-content: space-between; align-items: end; margin-bottom: 7px; text-shadow: 0 2px 4px #000; }
.health-label span { font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.health-label strong { color: var(--cyan); font: 900 25px/1 ui-monospace, monospace; }
.health-track { position: relative; height: 15px; padding: 3px; border: 1px solid rgba(255,255,255,.3); background: rgba(7,11,17,.58); transform: skewX(-9deg); }
.health-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #31bfb5, var(--cyan)); box-shadow: 0 0 12px rgba(70,217,207,.25); transition: width .25s, background .25s; }
.health-track b { position: absolute; top: 3px; bottom: 3px; width: 2px; background: rgba(10,20,25,.45); }
.health-track b:nth-of-type(1) { left: 25%; }.health-track b:nth-of-type(2) { left: 50%; }.health-track b:nth-of-type(3) { left: 75%; }
.health-block.spawn-protected .health-label span,
.health-block.spawn-protected .health-label strong { color: #ffe16a !important; text-shadow: 0 0 9px rgba(255,216,74,.85), 0 2px 4px #000; }
.health-block.spawn-protected .health-track { border-color: rgba(255,225,106,.9); animation: spawn-protection-track .3s ease-in-out infinite alternate; }
.health-block.spawn-protected .health-track i { background: linear-gradient(90deg, #f2b928, #fff29a) !important; box-shadow: 0 0 18px rgba(255,216,74,.95), 0 0 34px rgba(255,187,42,.58); }
@keyframes spawn-protection-track {
  from { box-shadow: 0 0 8px rgba(255,216,74,.45); }
  to { box-shadow: 0 0 19px rgba(255,216,74,.95); }
}

.shield-block { margin-bottom: 9px; }
.shield-block[hidden] { display: none; }
.shield-label { display: flex; justify-content: space-between; align-items: end; margin-bottom: 5px; text-shadow: 0 2px 4px #000; }
.shield-label span { color: #a8d8ff; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.shield-label strong { color: #58aaff; font: 900 19px/1 ui-monospace, monospace; }
.shield-track { position: relative; height: 11px; padding: 2px; border: 1px solid rgba(130,201,255,.48); background: rgba(7,18,31,.66); transform: skewX(-9deg); }
.shield-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #287ad8, #65c8ff); box-shadow: 0 0 13px rgba(76,174,255,.45); transition: width .25s; }
.shield-track b { position: absolute; top: 2px; bottom: 2px; width: 2px; background: rgba(8,28,52,.5); }
.shield-track b:nth-of-type(1) { left: 25%; }.shield-track b:nth-of-type(2) { left: 50%; }.shield-track b:nth-of-type(3) { left: 75%; }

.weapon-slots { display: flex; align-items: end; gap: 6px; }
.weapon-slots button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  width: clamp(66px, 7vw, 92px);
  height: 58px;
  padding: 5px 6px;
  border: 1px solid rgba(255,255,255,.11);
  color: #8896a5;
  background: rgba(8,12,18,.65);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  pointer-events: auto;
  cursor: pointer;
}
.weapon-slots button.active { height: 68px; border-color: rgba(255,197,61,.7); color: var(--paper); background: rgba(28,36,46,.84); }
.weapon-slots button.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--yellow); }
.weapon-slots button[hidden] { display: none; }
.weapon-slots.syringe-locked button[data-weapon] { opacity: .34; filter: grayscale(.7); pointer-events: none; }
.weapon-slots .fists-slot { border-color: rgba(121,255,137,.72); color: #a2ffad; background: rgba(20,66,41,.9); box-shadow: 0 0 19px rgba(83,255,115,.13); cursor: default; }
.weapon-slots .fists-slot.active::after { background: #79ff89; }
.weapon-slots kbd { position: absolute; top: 4px; left: 5px; min-width: 15px; min-height: 15px; padding: 1px; font-size: 6px; }
.weapon-slots span { font-size: 7px; font-weight: 900; letter-spacing: .08em; }

.weapon-icon { position: relative; display: block; width: 45px; height: 15px; margin: 4px 0 5px; }
.weapon-icon::before, .weapon-icon::after { content: ""; position: absolute; background: currentColor; }
.weapon-icon.assault::before { top: 2px; left: 0; width: 40px; height: 8px; box-shadow: 6px -3px 0 -1px currentColor; }
.weapon-icon.assault::after { top: 9px; left: 22px; width: 8px; height: 6px; transform: skewX(-14deg); }
.weapon-icon.zapatron::before { top: 2px; left: 0; width: 40px; height: 8px; box-shadow: 6px -3px 0 -1px currentColor, 12px 7px 0 -2px currentColor; }
.weapon-icon.zapatron::after { top: 9px; left: 22px; width: 8px; height: 6px; transform: skewX(-14deg); }
.weapon-icon.shotgun::before { top: 3px; left: 0; width: 45px; height: 7px; box-shadow: 0 5px 0 -2px currentColor; }
.weapon-icon.shotgun::after { top: 9px; left: 28px; width: 7px; height: 6px; transform: skewX(-12deg); }
.weapon-icon.sniper::before { top: 5px; left: 0; width: 45px; height: 5px; box-shadow: 14px -5px 0 -1px currentColor; }
.weapon-icon.sniper::after { top: 9px; left: 27px; width: 7px; height: 6px; transform: skewX(-12deg); }
.weapon-icon.rpg::before { top: 3px; left: 1px; width: 42px; height: 8px; border-radius: 50% 2px 2px 50%; box-shadow: -3px 1px 0 -1px currentColor; }
.weapon-icon.rpg::after { top: 10px; left: 22px; width: 8px; height: 5px; transform: skewX(-16deg); }
.weapon-icon.katana::before { top: 5px; left: 3px; width: 39px; height: 4px; border-radius: 100% 0 0 100%; transform: rotate(-8deg); transform-origin: right center; }
.weapon-icon.katana::after { top: 9px; left: 29px; width: 15px; height: 3px; box-shadow: -4px 3px 0 -1px currentColor; transform: rotate(-8deg); }
.weapon-icon.scythe::before { top: -2px; left: 25px; width: 4px; height: 22px; border-radius: 2px; transform: rotate(42deg); transform-origin: 50% 70%; box-shadow: inset 1px 0 rgba(255,255,255,.34); }
.weapon-icon.scythe::after { top: -5px; left: 2px; width: 27px; height: 15px; border: 4px solid currentColor; border-left-color: transparent; border-bottom-color: transparent; border-radius: 8% 100% 0 0; background: transparent; transform: rotate(-11deg); filter: drop-shadow(0 0 3px currentColor); }
.weapon-icon.fists::before { top: 4px; left: 3px; width: 16px; height: 10px; border-radius: 7px 5px 3px 6px; box-shadow: 23px 0 0 currentColor; }
.weapon-icon.fists::after { top: 0; left: 7px; width: 4px; height: 9px; border-radius: 3px; box-shadow: 5px -1px 0 currentColor, 10px 0 0 currentColor, 18px 0 0 currentColor, 23px -1px 0 currentColor, 28px 0 0 currentColor; }

#rpgSlot { border-color: rgba(184,113,255,.57); color: #c68bff; background: rgba(46,24,68,.84); animation: rpg-slot-in .35s ease-out; }
#rpgSlot:hover { height: 64px; border-color: #d8adff; filter: brightness(1.12); }
#katanaSlot { border-color: rgba(255,197,61,.68); color: #ffd66c; background: rgba(69,47,10,.86); animation: rpg-slot-in .35s ease-out; }
#katanaSlot:hover { height: 64px; border-color: #ffe9a1; filter: brightness(1.12); }
#zapatronSlot { border-color: rgba(255,197,61,.68); color: #ffe078; background: rgba(69,47,10,.86); animation: rpg-slot-in .35s ease-out; }
#zapatronSlot:hover { height: 64px; border-color: #fff0ae; filter: brightness(1.12); }
#scytheSlot { border-color: rgba(255,197,61,.72); color: #ffcf54; background: linear-gradient(145deg, rgba(78,49,5,.94), rgba(31,20,7,.9)); animation: rpg-slot-in .35s ease-out; box-shadow: inset 0 0 18px rgba(255,166,22,.09); }
#scytheSlot:hover { height: 64px; border-color: #fff1aa; filter: brightness(1.14); }
.weapon-cooldown {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 22px;
  padding: 3px 4px;
  color: #10151d;
  background: var(--yellow);
  font: 900 8px/1 ui-monospace, monospace;
  font-style: normal;
}
.weapon-cooldown[hidden] { display: none; }
@keyframes rpg-slot-in { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.weapon-slots .item-slot { border-color: rgba(88,170,255,.62); color: #8bcaff; background: rgba(10,30,55,.82); animation: shield-slot-in .35s ease-out; }
.weapon-slots .item-slot:hover { height: 64px; border-color: #8ed4ff; filter: brightness(1.12); }
.weapon-slots .genetics-slot { --use-progress: 0%; border-color: rgba(195,105,255,.7); color: #d98cff; background: linear-gradient(145deg, rgba(62,22,91,.92), rgba(20,11,34,.9)); }
.weapon-slots .genetics-slot:hover { border-color: #edb7ff; }
.weapon-slots .genetics-slot.active { border-color: #e6a3ff; color: #fff; background: linear-gradient(145deg, rgba(95,34,137,.96), rgba(31,15,48,.94)); box-shadow: 0 0 20px rgba(188,81,255,.22); }
.weapon-slots .genetics-slot.active::after { background: linear-gradient(90deg, #c95eff, #63edff); }
.weapon-slots .genetics-slot.using::before { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: var(--use-progress); background: linear-gradient(rgba(104,231,255,.08), rgba(205,89,255,.38)); box-shadow: 0 -1px 8px rgba(133,229,255,.55); pointer-events: none; transition: height .06s linear; }
.weapon-slots .genetics-slot.using > * { z-index: 1; }
.weapon-slots .genetics-slot.using { overflow: hidden; animation: genetics-use-pulse .48s ease-in-out infinite alternate; }
.item-slot em { position: absolute; top: 4px; right: 6px; min-width: 17px; color: white; font: 900 11px/1.3 ui-monospace, monospace; font-style: normal; }
.item-icon { position: relative; display: block; width: 28px; height: 24px; margin: 1px 0 3px; }
.item-icon.shield-pot::before { content: ""; position: absolute; top: 0; left: 9px; width: 10px; height: 5px; border: 2px solid #d7efff; background: #234f78; }
.item-icon.shield-pot::after { content: ""; position: absolute; top: 5px; left: 5px; width: 18px; height: 18px; border: 2px solid #d7efff; border-radius: 4px 4px 8px 8px; background: linear-gradient(#5fd4ff 0 45%, #1976d2 46% 100%); box-shadow: 0 0 10px rgba(76,190,255,.65); }
.item-icon.genetics { overflow: hidden; border: 1px solid rgba(226,188,255,.82); border-radius: 4px 4px 8px 8px; background: linear-gradient(135deg, rgba(75,244,255,.85), rgba(174,61,255,.92)); box-shadow: 0 0 12px rgba(189,83,255,.6); }
.item-icon.genetics::before,
.item-icon.genetics::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 8px; border: 2px solid #ecfbff; border-top: 0; border-bottom: 0; border-radius: 50%; }
.item-icon.genetics::before { left: 4px; transform: skewY(27deg); }
.item-icon.genetics::after { right: 4px; transform: skewY(-27deg); }
.item-icon.genetics b { position: absolute; top: 5px; left: 7px; width: 13px; height: 2px; background: rgba(255,255,255,.88); box-shadow: 0 5px 0 rgba(255,255,255,.75), 0 10px 0 rgba(255,255,255,.88); transform: rotate(-13deg); }
@keyframes shield-slot-in { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes genetics-use-pulse { from { filter: brightness(.92); } to { filter: brightness(1.34) drop-shadow(0 0 7px rgba(115,225,255,.7)); } }

.ammo-block { justify-self: end; min-width: 180px; text-align: right; text-shadow: 0 2px 5px #000; }
.ammo-block > div:first-child { display: flex; align-items: baseline; justify-content: end; gap: 5px; }
.ammo-block strong { font: 900 43px/.9 ui-monospace, monospace; }
.ammo-block span { color: #92a0af; font: 800 15px/1 ui-monospace, monospace; }
.ammo-block small { display: block; margin-top: 6px; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.reload-track { display: none; width: 150px; height: 3px; margin: 8px 0 0 auto; overflow: hidden; background: rgba(255,255,255,.15); }
.reload-track.active { display: block; }
.reload-track i { display: block; width: 0; height: 100%; background: var(--yellow); }

.interaction-hint {
  position: absolute;
  bottom: 112px;
  left: 50%;
  padding: 8px 13px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.46);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  opacity: 0;
  transition: opacity .2s;
}
.interaction-hint.active { opacity: 1; }

/* Match weapon shop */
.shop-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 78;
  place-items: center;
  padding: 24px;
  background: rgba(4,8,13,.76);
  backdrop-filter: blur(9px);
}
.shop-menu.active { display: grid; animation: shop-fade-in .18s ease-out; }
.shop-panel {
  width: min(870px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 27px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.012) 48% 52%, transparent 52%) 0 0 / 20px 20px,
    #151d28;
  box-shadow: 0 30px 80px rgba(0,0,0,.58);
}
.shop-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: start;
  gap: 18px;
  margin-bottom: 22px;
}
.shop-header h2 { margin: 6px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.shop-header p { max-width: 520px; margin: 0; color: #8f9ead; font-size: 11px; line-height: 1.45; }
.shop-wallet {
  min-width: 115px;
  padding: 9px 12px;
  border: 1px solid rgba(255,197,61,.3);
  background: rgba(8,12,18,.57);
  text-align: right;
}
.shop-wallet small { display: block; color: #7e8d9d; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.shop-wallet strong { display: block; margin-top: 3px; color: var(--yellow); font: 900 20px/1 ui-monospace, monospace; }
.shop-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  color: #a5b2bf;
  background: rgba(255,255,255,.035);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.shop-close:hover { color: white; background: rgba(255,255,255,.09); }
.shop-close:focus-visible,
.shop-buy-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shop-item {
  --rarity: #a96de8;
  --rarity-rgb: 169,109,232;
  position: relative;
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid rgba(var(--rarity-rgb),.5);
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--rarity-rgb),.2), transparent 35%),
    linear-gradient(135deg, rgba(var(--rarity-rgb),.09), rgba(8,12,18,.66) 66%);
  box-shadow: inset 0 4px 0 rgba(var(--rarity-rgb),.82);
  transition: border-color .16s, filter .16s, transform .16s;
}
.shop-item.rarity-legendary { --rarity: #ffc53d; --rarity-rgb: 255,197,61; }
.shop-item.rarity-rare { --rarity: #58aaff; --rarity-rgb: 88,170,255; }
.shop-item:hover { border-color: rgba(var(--rarity-rgb),.82); transform: translateY(-2px); }
.shop-item-art { display: grid; min-height: 172px; place-items: center; background: rgba(0,0,0,.13); }
.shop-weapon-art { position: relative; display: block; width: 85px; height: 80px; color: var(--rarity); filter: drop-shadow(0 0 13px rgba(var(--rarity-rgb),.38)); }
.shop-weapon-art::before,
.shop-weapon-art::after { content: ""; position: absolute; background: currentColor; }
.shop-weapon-art.rpg::before { top: 27px; left: 5px; width: 75px; height: 18px; border-radius: 50% 3px 3px 50%; box-shadow: -6px 2px 0 -2px currentColor; }
.shop-weapon-art.rpg::after { top: 43px; left: 45px; width: 16px; height: 26px; transform: skewX(-17deg); }
.shop-weapon-art.katana::before { top: 10px; left: 38px; width: 9px; height: 66px; border-radius: 100% 5px 0 0; transform: rotate(39deg); transform-origin: center; }
.shop-weapon-art.katana::after { top: 52px; left: 19px; width: 48px; height: 7px; box-shadow: 15px 8px 0 -2px currentColor; transform: rotate(39deg); }
.shop-weapon-art.zapatron::before { top: 27px; left: 4px; width: 73px; height: 18px; box-shadow: 9px -8px 0 -3px currentColor, 19px 17px 0 -4px currentColor; }
.shop-weapon-art.zapatron::after { top: 44px; left: 47px; width: 16px; height: 25px; transform: skewX(-16deg); }
.shop-weapon-art.scythe::before { top: 7px; left: 42px; width: 8px; height: 74px; border-radius: 4px; transform: rotate(39deg); transform-origin: 50% 67%; background: linear-gradient(90deg, #38220f, #ffc85b 35%, #5b3516 62%, #1b1008); box-shadow: 0 0 0 1px rgba(255,220,132,.38), 0 0 12px rgba(var(--rarity-rgb),.28); }
.shop-weapon-art.scythe::after { top: 0; left: 1px; width: 58px; height: 42px; border: 9px solid currentColor; border-left-color: transparent; border-bottom-color: transparent; border-radius: 9% 100% 0 0; background: transparent; transform: rotate(-9deg); filter: drop-shadow(0 0 6px rgba(var(--rarity-rgb),.62)); }
.shop-weapon-art.scythe b { position: absolute; z-index: 2; top: 48px; left: 48px; width: 15px; height: 9px; border: 2px solid #ffd873; border-radius: 50%; background: #251205; transform: rotate(39deg); box-shadow: 0 0 8px rgba(255,197,61,.48); }
.shop-weapon-art.shield-pot::before { top: 17px; left: 23px; width: 40px; height: 49px; border-radius: 8px 8px 16px 16px; box-shadow: inset 0 -8px 0 rgba(255,255,255,.22); }
.shop-weapon-art.shield-pot::after { top: 8px; left: 31px; width: 24px; height: 13px; border-radius: 4px 4px 1px 1px; box-shadow: 0 58px 0 -8px currentColor; }
.shop-weapon-art.genetics { border: 2px solid rgba(229,184,255,.75); border-radius: 10px 10px 25px 25px; background: linear-gradient(150deg, rgba(86,238,255,.28), rgba(183,67,255,.62)); box-shadow: inset 0 -16px 22px rgba(95,25,161,.5), 0 0 22px rgba(var(--rarity-rgb),.42); transform: scale(.68); }
.shop-weapon-art.genetics::before,
.shop-weapon-art.genetics::after { top: 10px; bottom: 10px; width: 22px; border: 6px solid #effcff; border-top: 0; border-bottom: 0; border-radius: 50%; background: transparent; }
.shop-weapon-art.genetics::before { left: 13px; transform: skewY(25deg); }
.shop-weapon-art.genetics::after { right: 13px; transform: skewY(-25deg); }
.shop-weapon-art.genetics b { position: absolute; z-index: 2; top: 18px; left: 24px; width: 34px; height: 5px; border-radius: 3px; background: #dffcff; box-shadow: 0 14px 0 #f5dbff, 0 28px 0 #dffcff, 0 42px 0 #f5dbff; transform: rotate(-12deg); }
.shop-item-copy { min-width: 0; padding: 19px 17px 14px 15px; }
.shop-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rarity-label { color: var(--rarity); font-size: 8px; font-weight: 950; letter-spacing: .18em; }
.shop-item-status { color: #7c8c9c; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.shop-item h3 { margin: 8px 0 7px; font-size: 24px; letter-spacing: -.025em; }
.shop-item-copy > p { min-height: 47px; margin: 0; color: #92a1af; font-size: 10px; line-height: 1.55; }
.shop-item-stats { display: flex; gap: 19px; margin: 13px 0 0; }
.shop-item-stats div { display: flex; flex-direction: column; gap: 3px; }
.shop-item-stats dt { color: #637487; font-size: 6px; font-weight: 900; letter-spacing: .14em; }
.shop-item-stats dd { margin: 0; color: #c4cfd8; font: 850 9px/1 ui-monospace, monospace; }
.shop-item-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  min-height: 58px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
}
.shop-price { display: flex; min-width: 108px; flex-direction: column; justify-content: center; padding: 8px 15px; }
.shop-price small { color: #6f7e8e; font-size: 6px; font-weight: 900; letter-spacing: .14em; }
.shop-price strong { margin-top: 3px; color: var(--rarity); font: 900 17px/1 ui-monospace, monospace; }
.shop-buy-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px;
  padding: 0 14px;
  border: 0;
  color: #10151d;
  background: var(--rarity);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
  cursor: pointer;
}
.shop-buy-button b { font-size: 17px; }
.shop-buy-button:hover { filter: brightness(1.13); }
.shop-buy-button:disabled { cursor: not-allowed; filter: grayscale(.7) brightness(.62); }
.shop-item[data-state="unaffordable"] { filter: saturate(.66); }
.shop-item[data-state="unaffordable"] .shop-item-status { color: #ff8295; }
.shop-item[data-state="owned"],
.shop-item[data-state="purchased"] { border-color: rgba(70,217,207,.68); box-shadow: inset 0 4px 0 rgba(70,217,207,.8); }
.shop-item[data-state="owned"] .shop-item-status,
.shop-item[data-state="purchased"] .shop-item-status { color: var(--cyan); }
.shop-item[data-state="free"] .shop-item-status { color: var(--cyan); }
.shop-item[data-state="free"] .shop-price-value { font-size: 0; }
.shop-item[data-state="free"] .shop-price-value::after { content: "FREE"; font-size: 17px; }
.shop-menu[data-mode="practice"] .shop-header .overline { color: var(--yellow); }
.shop-menu[data-ruleset="fun"] .shop-item { opacity: .46; filter: grayscale(.65); pointer-events: none; }
.shop-menu[data-ruleset="fun"] .shop-wallet strong { color: #db70ff; }
.shop-feedback { min-height: 16px; margin: 11px 2px 0; color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .055em; }
.shop-feedback.error { color: #ff8295; }
.shop-footer-hint { margin-top: 5px; color: #68798a; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-align: center; }
.shop-footer-hint kbd { min-width: 19px; min-height: 17px; margin-right: 4px; }
.shop-footer-hint span { padding: 0 8px; }
@keyframes shop-fade-in { from { opacity: 0; } }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  place-items: center;
  background: rgba(4,8,13,.69);
  backdrop-filter: blur(8px);
}
.modal.active { display: grid; }
/* Escape releases pointer lock before showing the pause menu. In Practice,
   keep that full-screen menu below the HUD so the party panel remains usable;
   the HUD itself ignores pointer events everywhere except the panel, leaving
   the centred Resume and Leave controls clickable through it. */
#pauseMenu.practice-party-access { z-index: 18; }
.modal-card {
  width: min(370px, calc(100vw - 40px));
  padding: 36px;
  border: 1px solid rgba(255,255,255,.13);
  background: #151d28;
  box-shadow: 0 28px 70px rgba(0,0,0,.48);
}
.modal-card h2 { margin: 10px 0 9px; font-size: 29px; letter-spacing: -.04em; }
.modal-card p { margin: 0; color: #93a1b0; font-size: 12px; line-height: 1.55; }
.quiet-button, .danger-button {
  width: 100%;
  height: 43px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  cursor: pointer;
}
.quiet-button:hover { background: rgba(255,255,255,.06); }
.danger-button { border-color: rgba(255,65,96,.3); color: #ff8597; }
.danger-button:hover { background: rgba(255,65,96,.08); }

.respawn-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 65;
  place-items: center;
  text-align: center;
  background: rgba(44,5,13,.45);
  backdrop-filter: grayscale(.9) blur(1px);
  pointer-events: none;
}
.respawn-screen.active { display: grid; }
.respawn-screen div { display: flex; flex-direction: column; gap: 6px; }
.respawn-screen span { font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.respawn-screen strong { color: var(--red); font: 900 45px/1 Impact, sans-serif; letter-spacing: .05em; text-shadow: 0 4px 10px #000; }
.respawn-screen p { font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.respawn-screen p b { color: var(--yellow); font-size: 18px; }

.result-card { width: min(470px, calc(100vw - 40px)); text-align: center; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; height: 160px; margin: 25px 0 4px; }
.podium div { display: flex; flex-direction: column; justify-content: center; min-height: 70px; padding: 10px 5px; color: #15202a; background: #9caab5; }
.podium div:nth-child(1) { min-height: 105px; background: var(--yellow); }
.podium b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.podium span { margin-top: 6px; font: 900 20px/1 ui-monospace, monospace; }
.result-card .round-countdown {
  margin: 20px 0 0;
  padding: 13px 12px;
  border: 1px solid rgba(255,197,61,.24);
  color: var(--yellow);
  background: rgba(255,197,61,.065);
  font: 900 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.round-main-menu-button {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: max(28px, env(safe-area-inset-left));
  display: flex;
  min-width: 154px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--paper);
  background: rgba(17,25,34,.94);
  box-shadow: 0 12px 30px rgba(0,0,0,.34), inset 3px 0 0 var(--cyan);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .15em;
  cursor: pointer;
}
.round-main-menu-button b { color: var(--cyan); font-size: 17px; }
.round-main-menu-button:hover { border-color: rgba(70,217,207,.72); background: #1a2732; }
.round-main-menu-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

#mobileBlocker { display: none; }

@media (max-width: 820px), (pointer: coarse) {
  .profile-card { grid-template-columns: 52px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .profile-avatar { width: 52px; }
  .profile-avatar svg { width: 36px; height: 36px; }
  .profile-stats { gap: 5px; }
  .profile-stats dd { font-size: 13px; }

  #mobileBlocker {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    text-align: center;
    background: var(--ink);
  }
  #mobileBlocker .logo-mark { margin-bottom: 24px; }
  #mobileBlocker h2 { margin: 0 0 10px; }
  #mobileBlocker p { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.6; }
}

@media (max-width: 1040px) and (min-width: 821px) {
  .landing-layout { grid-template-columns: 1fr; width: min(990px, calc(100vw - 32px)); }
  .leaderboard-panel { min-height: 230px; max-height: 260px; }
  .hero-card { width: 100%; }
  .hero-copy { padding-right: 48px; padding-left: 48px; }
  .join-panel { padding-right: 38px; padding-left: 38px; }
  .profile-card { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .profile-avatar { width: 56px; }
  .profile-avatar svg { width: 39px; height: 39px; }
  .player-hud { right: 14px; left: 14px; gap: 6px; grid-template-columns: minmax(145px, 1fr) auto minmax(118px, 1fr); }
  .health-block { width: 180px; }
  .weapon-slots { gap: 3px; }
  .weapon-slots button { width: 56px; padding-right: 3px; padding-left: 3px; }
  .weapon-slots span { font-size: 6px; }
  .ammo-block { min-width: 118px; }
  .respawn-shop-prompt { right: 22px; top: 226px; }
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero-card { min-height: 520px; transform: scale(.91); }
  .leaderboard-panel { min-height: 520px; }
  .footer-note { display: none; }
  .cosmetic-shop-panel { padding: 20px; }
  .cosmetic-shop-header { margin-bottom: 12px; }
  .kill-preview-stage { min-height: 165px; }
  .kill-sound-card { min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
  .kill-sound-emblem { width: 50px; height: 50px; transform: scale(.88); }
  .shop-panel { padding: 20px; }
  .shop-header { margin-bottom: 14px; }
  .shop-item { min-height: 222px; }
  .shop-item-art { min-height: 148px; }
}

@media (max-width: 740px) {
  .cosmetic-shop-menu { padding: 12px; }
  .cosmetic-shop-panel { width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 18px; }
  .cosmetic-shop-header { grid-template-columns: minmax(0, 1fr) 38px; }
  .cosmetic-shop-balance { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 4px; text-align: left; }
  .cosmetic-shop-close { grid-column: 2; grid-row: 1; }
  .cosmetic-shop-tabs button { grid-template-columns: 24px minmax(0, 1fr); padding: 0 10px; }
  .cosmetic-shop-tabs button small { display: none; }
  .cosmetic-shop-content { grid-template-columns: 1fr; }
  .weapon-locker-grid { grid-template-columns: 1fr; }
  .locker-weapon:last-child:nth-child(odd) { grid-column: auto; }
  .promo-code-panel { grid-template-columns: 1fr; }
  .promo-code-feedback { grid-column: 1; margin-left: 52px; }
  .kill-sound-card-copy em { white-space: normal; }
  .kill-preview-stage { min-height: 180px; }
  .kill-animation-card-copy em { white-space: normal; }
  .kill-animation-preview-stage { min-height: 180px; }

  .shop-menu { padding: 12px; }
  .shop-panel { width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 18px; }
  .shop-header { grid-template-columns: 1fr 38px; }
  .shop-wallet { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 5px; text-align: left; }
  .shop-close { grid-column: 2; grid-row: 1; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-item { grid-template-columns: 90px minmax(0, 1fr); }
  .team-status { top: 72px; min-width: min(310px, calc(100vw - 28px)); }
  .team-score { padding: 8px; }
  .team-round-status { min-width: 98px; padding: 7px 6px; }
  .capture-point-hud { top: 70px; grid-template-columns: 76px minmax(240px, 1fr) 76px; min-width: min(510px, calc(100vw - 24px)); }
  .capture-score-card { padding: 10px 6px; }
  .capture-score-card span { font-size: 6px; }
  .spectator-controls { bottom: 104px; min-width: min(300px, calc(100vw - 28px)); }
}

@media (max-width: 480px) {
  .landing-shop-button { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .cosmetic-shop-tabs { grid-template-columns: 1fr; }
  .cosmetic-shop-tabs button { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .weapon-locker-heading { align-items: flex-start; flex-direction: column; }
  .weapon-locker-heading p { text-align: left; }
  .locker-weapon { grid-template-columns: 50px minmax(0, 1fr); }
  .locker-weapon > b,
  .locker-weapon > button { grid-column: 2; justify-self: start; }
  .kill-sound-card,
  .kill-animation-card { grid-template-columns: 50px minmax(0, 1fr); }
  .kill-sound-emblem,
  .kill-animation-emblem { width: 48px; height: 48px; transform: scale(.86); }
  .kill-sound-card-status,
  .kill-animation-card-status { grid-column: 2; justify-self: start; }
  .kill-sound-preview-actions,
  .kill-animation-preview-actions { grid-template-columns: 1fr; }
  .promo-code-form { grid-template-columns: 1fr; }
  .promo-code-form button { justify-content: center; }
  .promo-code-feedback { margin-left: 0; }
  .round-main-menu-button { right: 20px; bottom: 20px; left: 20px; }
  .match-format-picker > div { grid-template-columns: 1fr; }
  .match-format-option { min-height: 50px; }
  .team-status { grid-template-columns: minmax(62px, 1fr) auto minmax(62px, 1fr); }
  .team-round-status { min-width: 85px; }
  .team-round-status small { max-width: 88px; text-align: center; }
  .mode-vote-options[data-match-format="tdm"] { grid-template-columns: 1fr; }
  .capture-point-hud { grid-template-columns: 58px minmax(210px, 1fr) 58px; min-width: calc(100vw - 16px); }
  .capture-score-card { flex-direction: column; gap: 3px; padding: 8px 3px; }
  .capture-score-card span { letter-spacing: .05em; }
  .capture-score-center { padding-right: 6px; padding-left: 6px; }
  .capture-score-heading b { display: none; }
  .capture-point-state { grid-template-columns: 22px minmax(0, 1fr); padding-right: 3px; padding-left: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* Keep the safety-state announcement readable without animating it. The
     existing JS timeout removes `.active` after 2.45 seconds. */
  .practice-friendly-fire-announcement.active {
    animation: none !important;
    opacity: .96;
    visibility: visible;
  }
}
