@import url("data:text/css,");
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #edf5ef;
  background: #132331;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0c172b9c;
  backdrop-filter: blur(8px);
  z-index: 5;
}
[hidden] {
  display: none !important;
}
.card {
  width: min(480px, 94vw);
  max-height: 96vh;
  overflow: auto;
  padding: 32px 40px;
  background: #142538f5;
  border: 1px solid #8ca8ad44;
  box-shadow: 12px 12px 0 #07121c66;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: #b6d475;
}
h1 {
  font-size: 76px;
  line-height: 0.92;
  letter-spacing: -4px;
  margin: 24px 0;
}
em {
  font-style: normal;
  color: #c5ed80;
}
.card p {
  font-size: 13px;
  line-height: 1.7;
  color: #adbfca;
}
label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 24px 0 8px;
}
input,
button {
  width: 100%;
  padding: 15px;
  border: 1px solid #8ba4b355;
  font: inherit;
}
input {
  background: #0c1a2c;
  color: white;
  outline-color: #c5ed80;
}
button {
  background: #c5ed80;
  color: #18292f;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #c5ed80;
}
header {
  position: fixed;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  text-shadow: 0 2px 5px #000;
}
.brand {
  font-weight: 950;
  letter-spacing: 2px;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 9px;
  color: #c5ed80;
  letter-spacing: 4px;
}
#map {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
#timer {
  margin-left: auto;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
#role {
  position: fixed;
  top: 100px;
  left: 28px;
  font-weight: 900;
  background: #142538dd;
  border-left: 4px solid #c5ed80;
  padding: 10px 18px;
}
#counts {
  position: fixed;
  top: 154px;
  left: 28px;
  font-size: 12px;
  text-shadow: 0 1px 4px #000;
}
#notice {
  position: fixed;
  top: 20%;
  left: 20%;
  right: 20%;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
}
#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  font: 26px monospace;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
footer {
  position: fixed;
  bottom: 20px;
  left: 28px;
  right: 28px;
  pointer-events: none;
}
footer p {
  font-size: 11px;
  line-height: 1.8;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
#inventory {
  display: flex;
  gap: 10px;
}
.slot {
  padding: 15px;
  background: #142538dd;
  border: 2px solid #68808a;
  min-width: 150px;
  font-size: 12px;
}
.slot.selected {
  border-color: #c5ed80;
}
#effects,
#cooldown {
  font-size: 12px;
  margin: 10px 0;
  color: #c5ed80;
}
#scoreRows div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff22;
  font-size: 13px;
}
#error {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #9c3549;
  padding: 14px;
  text-align: center;
  z-index: 20;
  font-size: 13px;
}
@media (max-width: 600px) {
  h1 {
    font-size: 56px;
  }
  .card {
    padding: 24px;
  }
  #map {
    display: none;
  }
  .slot {
    min-width: 120px;
  }
  header {
    left: 16px;
    right: 16px;
  }
}

/* Gameplay HUD text should never intercept world clicks. */
#hud {
  pointer-events: none;
}
#cameraMode {
  pointer-events: auto;
  width: auto;
  margin: 0;
  padding: 9px 12px;
  font-size: 10px;
  background: #142538dd;
  color: #c5ed80;
}
#cameraMode[aria-pressed="true"] {
  border-color: #c5ed80;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.menu-grid button {
  font-size: 12px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lobby-row,
.room-player {
  padding: 12px 0;
  border-bottom: 1px solid #ffffff22;
  font-size: 12px;
}
.lobby-row button {
  width: auto;
  padding: 8px 18px;
  display: block;
}
#shareCode {
  font: 800 28px monospace;
  letter-spacing: 6px;
  text-align: center;
}
#roomError {
  color: #ffb09c;
}
#lobbyInfo,
#leaveGame {
  pointer-events: auto;
  width: auto;
  padding: 9px;
  margin: 0;
  font-size: 10px;
}
header {
  flex-wrap: wrap;
  gap: 12px;
}

#gameSettings {
  pointer-events: auto;
  width: auto;
  padding: 9px;
  margin: 0;
  font-size: 10px;
}
#settings {
  width: min(560px, 94vw);
  max-height: 92dvh;
  color: inherit;
  padding: clamp(16px, 5vw, 32px);
}
#settings::backdrop {
  background: #09111bd9;
}
#settings h2 {
  margin: 0 0 12px;
}
#settings button {
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
  box-shadow: inset 0 -3px #0003;
}
#settings button:hover:not(:disabled),
#settings button:focus-visible {
  background: #e3ffb9;
  outline: 2px solid #fff;
  outline-offset: -2px;
}
#controlList {
  max-height: 39dvh;
  overflow: auto;
  margin-top: 10px;
}
.binding-row,
.settings-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.binding-row {
  padding: 5px;
  border-bottom: 1px solid #ffffff22;
  font-size: 13px;
}
#settings .binding-row button {
  background: #273e50;
  color: #edf5ef;
  overflow-wrap: anywhere;
}
#settings .binding-row button:hover,
#settings .binding-row button.capturing {
  background: #3f586b;
  border-color: #c5ed80;
  color: #e3ffb9;
}
#settingsStatus {
  min-height: 1.7em;
  margin: 8px 0;
}
#bindingConflict {
  margin-bottom: 10px;
}

.hunter-slot {
  border-color: #ff5267;
  background: #391823e8;
  color: #ffd2d8;
  font-weight: 800;
}
#hunterNotice {
  position: fixed;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  padding: 10px 18px;
  border: 2px solid #ff5267;
  background: #451323eb;
  color: #ffe4e7;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

#controllerBanner,
#controllerConnection {
  color: #c5ed80;
}
#controllerPanel {
  max-height: 45dvh;
  overflow: auto;
  margin-top: 10px;
}
#controllerPanel p {
  margin: 4px 0;
}
#controllerOptions label {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(50px, 1fr) 3.2em;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 11px;
  letter-spacing: 0;
}
#controllerOptions input {
  accent-color: #c5ed80;
  padding: 0;
}
#controllerPanel > button,
#controllerBindings,
#controllerBindingConflict {
  margin-top: 8px;
}
.controller-active :focus {
  outline: 3px solid #f7df87;
  outline-offset: -2px;
}
#screenKeyboard {
  width: min(520px, 94vw);
  max-height: 94dvh;
  color: inherit;
  padding: clamp(12px, 4vw, 26px);
}
#screenKeyboard::backdrop {
  background: #09111bd9;
}
#keyboardKeys {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 4px;
}
#keyboardKeys button {
  margin: 0;
  padding: 8px 0;
  font-size: clamp(8px, 2vw, 13px);
}
#controllerToast {
  position: fixed;
  right: 24px;
  top: 80px;
  z-index: 6;
  padding: 9px 14px;
  border: 1px solid #c5ed80;
  background: #142538ee;
  color: #c5ed80;
  pointer-events: none;
}

#advancedGuide {
  width: min(680px, 94vw);
  max-height: 88dvh;
  padding: clamp(12px, 4vw, 28px);
  color: inherit;
}
#advancedGuide[open] {
  display: flex;
  flex-direction: column;
}
#advancedGuide::backdrop {
  background: #09111bd9;
}
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffffff22;
}
.guide-header h2,
.guide-header button {
  margin: 0;
}
.guide-header button {
  padding: 8px 12px;
}
#guideContent {
  overflow: auto;
  padding-right: 8px;
}
#guideContent h3 {
  color: #c5ed80;
  margin: 20px 0 4px;
}
#guideContent dt {
  font-weight: 700;
  padding-top: 8px;
}
#guideContent dd {
  margin: 3px 0 10px;
  color: #adbfca;
  font-size: 13px;
  line-height: 1.55;
}
