:root {
  color-scheme: dark;
  --ink: #080a08;
  --panel: rgba(12, 15, 12, 0.9);
  --panel-solid: #0d100d;
  --line: rgba(206, 225, 185, 0.18);
  --muted: #8a9584;
  --paper: #e8eddf;
  --acid: #c7f05b;
  --acid-hot: #e1ff77;
  --red: #f24d40;
  --amber: #f3ae4b;
  --cyan: #74d3c4;
  --font-display: Impact, Haettenschweiler, "DIN Condensed", sans-serif;
  --font-ui: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--acid-hot);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.game-shell,
#arena {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-shell {
  isolation: isolate;
  background: #090b09;
}

#arena {
  z-index: 0;
  cursor: crosshair;
  touch-action: none;
}

.screen-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(199, 240, 91, 0.025) 32px);
  mix-blend-mode: screen;
}

.screen-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 160px 48px rgba(0, 0, 0, 0.76);
}

.damage-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  border: 10px solid rgba(242, 77, 64, 0.72);
  box-shadow: inset 0 0 100px rgba(242, 77, 64, 0.38);
  transition: opacity 120ms ease;
}

.damage-flash.is-hit {
  opacity: 1;
}

.broadcast-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 7, 0.84);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-lockup h1,
.brand-lockup p,
.director-header h2,
.director-header span,
.title-stack h2,
.title-stack p,
.end-card h2 {
  margin: 0;
}

.brand-lockup h1 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand-lockup p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.live-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 9px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.live-flag i,
.director-toggle i,
.start-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: signal-pulse 1.2s steps(2, end) infinite;
}

.run-stats {
  display: flex;
  height: 100%;
}

.run-stats > div {
  min-width: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid var(--line);
}

.run-stats > div:last-child {
  border-right: 1px solid var(--line);
}

.run-stats span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.run-stats strong {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.sound-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--acid);
  border-color: rgba(199, 240, 91, 0.34);
}

.sound-bars {
  height: 13px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.sound-bars i {
  width: 2px;
  height: 5px;
  background: currentColor;
}

.sound-bars i:nth-child(2) {
  height: 11px;
}

.sound-bars i:nth-child(3) {
  height: 8px;
}

.survival-status {
  position: absolute;
  z-index: 4;
  top: 94px;
  left: 20px;
  width: min(340px, calc(100vw - 40px));
  pointer-events: none;
}

.status-heading,
.secondary-meter,
.threat-line > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.status-heading span,
.secondary-meter span,
.threat-line span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.status-heading strong {
  color: var(--acid-hot);
  font-family: var(--font-display);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.meter {
  position: relative;
  overflow: hidden;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.52);
}

.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(199, 240, 91, 0.5);
  transform-origin: left;
  transition: width 110ms linear;
}

.health-meter {
  height: 10px;
  margin-top: 4px;
}

.secondary-meter {
  display: grid;
  grid-template-columns: 48px 1fr 29px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.secondary-meter strong {
  color: var(--cyan);
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cloak-meter {
  height: 5px;
}

.cloak-meter i {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(116, 211, 196, 0.5);
}

.powerup-rack {
  min-height: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.powerup-chip {
  position: relative;
  overflow: hidden;
  min-width: 96px;
  height: 23px;
  display: grid;
  grid-template-columns: 4px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 0 7px 0 0;
  border: 1px solid currentColor;
  background: rgba(8, 10, 8, 0.82);
  color: var(--acid);
  box-shadow: 0 0 18px rgba(199, 240, 91, 0.08);
}

.powerup-chip > i {
  align-self: stretch;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.powerup-chip span {
  font-size: 7px;
  font-weight: 1000;
  white-space: nowrap;
}

.powerup-chip strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chip-phase {
  color: var(--cyan);
}

.chip-ricochet {
  color: var(--amber);
}

.powerup-chip:not([hidden]) {
  animation: power-chip-in 220ms ease both;
}

.director-panel {
  position: absolute;
  z-index: 6;
  top: 94px;
  right: 20px;
  width: 306px;
  padding: 15px;
  border: 1px solid rgba(199, 240, 91, 0.22);
  border-top: 3px solid var(--acid);
  background: var(--panel);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.director-panel::before {
  content: "";
  position: absolute;
  top: -3px;
  right: 14px;
  width: 58px;
  height: 3px;
  background: var(--red);
}

.director-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.director-header span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.director-header h2 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.director-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.director-toggle.is-live {
  color: var(--red);
  border-color: rgba(242, 77, 64, 0.42);
  background: rgba(242, 77, 64, 0.08);
}

.threat-line {
  padding: 12px 0 13px;
}

.threat-line strong {
  color: var(--acid);
  font-size: 10px;
}

.threat-track {
  height: 3px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.threat-track i {
  display: block;
  width: 12%;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 10px currentColor;
  transition: width 220ms ease, background 220ms ease;
}

.spawn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.spawn-grid button {
  position: relative;
  min-width: 0;
  height: 68px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.spawn-grid button:hover {
  border-color: rgba(199, 240, 91, 0.5);
  background: rgba(199, 240, 91, 0.07);
  transform: translateY(-1px);
}

.spawn-grid button:active {
  transform: translateY(1px);
}

.spawn-grid strong,
.spawn-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spawn-grid strong {
  align-self: end;
  color: var(--paper);
  font-size: 10px;
  font-weight: 900;
}

.spawn-grid small {
  align-self: start;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.spawn-glyph {
  grid-row: 1 / 3;
  position: relative;
  width: 27px;
  height: 34px;
  display: block;
  color: var(--acid);
}

.twitch-connect {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  animation: title-enter 500ms 260ms ease both;
}

.twitch-connect span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.twitch-connect input {
  width: 216px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 8, 0.92);
  color: var(--paper, #e8eddf);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.twitch-connect input:focus {
  outline: none;
  border-color: var(--acid);
}

.twitch-status {
  display: block;
  margin-top: 3px;
  color: var(--cyan, #74d3c4);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.spawn-grid .spawn-snipe {
  grid-column: 1 / -1;
  border-color: rgba(242, 77, 64, 0.5);
}

.spawn-grid .spawn-snipe strong {
  color: var(--red);
}

.glyph-snipe i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--red);
  border-radius: 50%;
}

.glyph-snipe i::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--red);
  border-radius: 50%;
}

.spawn-glyph i {
  position: absolute;
  display: block;
  background: currentColor;
}

.glyph-horde i {
  bottom: 4px;
  width: 7px;
  border-radius: 5px 5px 1px 1px;
}

.glyph-horde i:nth-child(1) { left: 1px; height: 18px; opacity: 0.55; }
.glyph-horde i:nth-child(2) { left: 10px; height: 27px; }
.glyph-horde i:nth-child(3) { left: 19px; height: 21px; opacity: 0.75; }

.glyph-sprint i {
  left: 2px;
  width: 24px;
  height: 3px;
  transform: skewX(-35deg);
}

.glyph-sprint i:first-child { top: 10px; }
.glyph-sprint i:last-child { top: 22px; width: 17px; }

.glyph-brute i {
  left: 3px;
  bottom: 2px;
  width: 22px;
  height: 29px;
  border: 4px solid currentColor;
  background: transparent;
}

.glyph-nightmare i {
  inset: 4px;
  border: 3px solid var(--red);
  background: transparent;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(242, 77, 64, 0.45);
}

.event-feed {
  min-height: 119px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  overflow: hidden;
}

.feed-entry {
  min-height: 26px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 9px;
  animation: feed-in 220ms ease both;
}

.feed-entry .user {
  overflow: hidden;
  color: var(--cyan);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-entry .event {
  color: #b9c1b1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-entry .tag {
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
}

.feed-entry.is-donation .user,
.feed-entry.is-donation .tag {
  color: var(--amber);
}

.feed-entry.is-danger .user,
.feed-entry.is-danger .tag {
  color: var(--red);
}

.ability-dock {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
  pointer-events: none;
}

.ability-cell {
  position: relative;
  overflow: hidden;
  width: 142px;
  height: 48px;
  display: grid;
  grid-template-columns: 43px 1fr;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 8, 0.88);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

.ability-key {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 11px;
}

.ability-cell > div {
  padding: 0 9px;
}

.ability-cell strong,
.ability-cell small {
  display: block;
  white-space: nowrap;
}

.ability-cell strong {
  font-size: 9px;
  font-weight: 900;
}

.ability-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.ability-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--acid);
  transform-origin: left;
}

.ability-cell.is-cooling .ability-key,
.ability-cell.is-cooling strong {
  color: #777e73;
}

.ability-cell.is-active {
  border-color: rgba(116, 211, 196, 0.65);
  box-shadow: inset 0 0 24px rgba(116, 211, 196, 0.12), 0 10px 35px rgba(0, 0, 0, 0.28);
}

.ability-cell.is-active .ability-key,
.ability-cell.is-active strong {
  color: var(--cyan);
}

.move-cell.is-active {
  border-color: rgba(199, 240, 91, 0.58);
  box-shadow: inset 0 0 20px rgba(199, 240, 91, 0.08), 0 10px 35px rgba(0, 0, 0, 0.28);
}

.announcer {
  position: absolute;
  z-index: 5;
  top: 24%;
  left: 50%;
  display: grid;
  justify-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.96);
}

.announcer.is-visible {
  animation: announce 1.8s ease both;
}

.announcer span {
  width: 74px;
  height: 3px;
  margin-bottom: 7px;
  background: var(--red);
}

.announcer strong {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 43px;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.announcer small {
  margin-top: 8px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 900;
}

.start-overlay,
.end-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  background: rgba(5, 7, 5, 0.76);
  backdrop-filter: blur(8px);
}

.start-overlay::before,
.end-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 1px;
  background: rgba(199, 240, 91, 0.22);
  box-shadow: 0 220px rgba(199, 240, 91, 0.09), 0 440px rgba(199, 240, 91, 0.06);
}

.start-signal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  animation: title-enter 500ms 60ms ease both;
}

.title-stack {
  position: relative;
  margin: 26px 0 30px;
  text-align: center;
}

.title-stack p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  animation: title-enter 500ms 120ms ease both;
}

.title-stack h2 {
  font-family: var(--font-display);
  font-size: 118px;
  font-weight: 900;
  line-height: 0.82;
  text-shadow: 9px 9px 0 rgba(0, 0, 0, 0.45);
  animation: title-enter 520ms 180ms ease both;
}

.title-stack h2 span {
  color: var(--acid);
}

.title-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  animation: title-enter 500ms 240ms ease both;
}

.title-rule i {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.title-rule b {
  color: var(--muted);
  font-size: 8px;
}

.primary-action {
  position: relative;
  width: 196px;
  height: 48px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #11150d;
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 7px 7px 0 rgba(199, 240, 91, 0.16);
  animation: title-enter 500ms 300ms ease both;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.primary-action:hover {
  background: var(--acid-hot);
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(199, 240, 91, 0.16);
}

.primary-action:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(199, 240, 91, 0.16);
}

.primary-action i {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 17px;
  height: 1px;
  background: currentColor;
}

.primary-action i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.end-card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding: 34px;
  border-top: 4px solid var(--red);
  background: rgba(13, 16, 13, 0.96);
  text-align: center;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.64);
}

.signal-lost {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
}

.end-card h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 55px;
  line-height: 1;
}

.end-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.end-score div {
  padding: 17px 8px;
  border-right: 1px solid var(--line);
}

.end-score div:last-child {
  border-right: 0;
}

.end-score span,
.end-score strong {
  display: block;
}

.end-score span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.end-score strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.end-best {
  margin: -12px 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.end-best.is-record {
  color: var(--acid-hot, #e1ff77);
}

.end-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.share-action {
  position: relative;
  width: 156px;
  height: 48px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
  animation: title-enter 500ms 360ms ease both;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.share-action:hover {
  background: rgba(199, 240, 91, 0.14);
  transform: translate(-2px, -2px);
}

.share-action:active {
  transform: translate(2px, 2px);
}

.end-card .primary-action {
  animation: none;
}

.pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 19;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 5, 0.72);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 60px;
  backdrop-filter: blur(6px);
}

@keyframes signal-pulse {
  50% { opacity: 0.25; }
}

@keyframes feed-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes title-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes announce {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(0.96); }
  12%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(1.02); }
}

@keyframes power-chip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 840px) {
  .broadcast-bar {
    height: 62px;
    grid-template-columns: 1fr auto;
    padding: 0 12px;
  }

  .run-stats {
    position: absolute;
    top: 62px;
    right: 10px;
    height: 45px;
    background: rgba(7, 9, 7, 0.7);
    border-bottom: 1px solid var(--line);
  }

  .run-stats > div {
    min-width: 70px;
  }

  .run-stats strong {
    font-size: 18px;
  }

  .sound-toggle {
    grid-column: 2;
  }

  .survival-status {
    top: 78px;
    left: 12px;
    width: min(280px, calc(100vw - 224px));
  }

  .director-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    min-height: 126px;
    padding: 10px;
    display: grid;
    grid-template-columns: 126px 1fr;
    grid-template-rows: 42px 1fr;
    column-gap: 10px;
  }

  .director-header {
    grid-column: 1;
    padding-bottom: 8px;
  }

  .director-header h2 {
    font-size: 15px;
  }

  .director-header > div > span,
  .director-toggle span {
    display: none;
  }

  .director-toggle {
    width: 26px;
    padding: 0;
    justify-content: center;
  }

  .threat-line {
    grid-column: 1;
    grid-row: 2;
    padding: 7px 0 0;
  }

  .spawn-grid {
    grid-column: 2;
    grid-row: 1 / 3;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .spawn-grid button {
    height: 100%;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7px 3px;
    text-align: center;
  }

  .spawn-glyph {
    flex: 0 0 auto;
    width: 27px;
    height: 28px;
    margin-bottom: 4px;
  }

  .spawn-grid strong {
    max-width: 100%;
    font-size: 8px;
  }

  .spawn-grid small {
    display: none;
  }

  .event-feed {
    display: none;
  }

  .ability-dock {
    bottom: 142px;
  }

  .ability-cell {
    width: 108px;
    grid-template-columns: 37px 1fr;
  }

  .ability-cell > div {
    padding: 0 6px;
  }

  .ability-cell strong {
    font-size: 8px;
  }
}

@media (max-width: 560px) {
  .brand-lockup h1 {
    font-size: 21px;
  }

  .live-flag {
    height: 24px;
    padding: 0 7px;
  }

  .sound-toggle span:last-child,
  .run-stats > div:nth-child(3) {
    display: none;
  }

  .sound-toggle {
    width: 34px;
    justify-content: center;
    padding: 0;
  }

  .run-stats > div {
    min-width: 62px;
  }

  .survival-status {
    top: 72px;
    width: calc(100vw - 142px);
  }

  .status-heading span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ability-dock {
    left: 8px;
    right: 8px;
    bottom: 137px;
    justify-content: center;
    transform: none;
  }

  .ability-cell {
    width: min(22.5vw, 102px);
    height: 42px;
    grid-template-columns: 1fr;
  }

  .ability-key {
    border-right: 0;
    font-size: 10px;
  }

  .ability-cell > div {
    display: none;
  }

  .director-panel {
    grid-template-columns: 78px 1fr;
  }

  .director-header h2 {
    font-size: 12px;
  }

  .director-toggle {
    height: 23px;
  }

  .spawn-grid {
    gap: 4px;
  }

  .spawn-grid button {
    min-height: 88px;
  }

  .spawn-grid strong {
    font-size: 7px;
  }

  .title-stack {
    width: calc(100vw - 32px);
  }

  .title-stack h2 {
    font-size: 73px;
  }

  .title-stack p {
    font-size: 9px;
  }

  .end-card {
    padding: 26px 16px;
  }

  .end-card h2 {
    font-size: 42px;
  }

  .end-score strong {
    font-size: 22px;
  }
}

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