:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #dfebe4;
  background: #08191c;
  font-synthesis: none;
  --panel: #101f23ed;
  --line: #738d803d;
  --blue: #91d7e5;
  --red: #e8a2ae;
  --team: var(--blue);
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
select,
.fog-control {
  min-height: 42px;
}
button {
  border: 1px solid var(--line);
  background: #192b2e;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 5px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #2a4141;
  border-color: #8fa899;
}
button:focus-visible,
select:focus-visible,
input:focus-visible + span,
canvas:focus-visible {
  outline: 2px solid #e4d8a0;
  outline-offset: 3px;
}
button[aria-pressed="true"] {
  background: #2c484b;
  border-color: var(--team);
  color: var(--team);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#world.dragging {
  cursor: grabbing;
}
.topbar {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.brand,
.controls,
.camera-panel,
.bottom-bar > div {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 10px #000;
}
.rune {
  font-size: 42px;
  color: #d9cf9d;
}
.brand h1 {
  font:
    500 23px Georgia,
    serif;
  letter-spacing: 0.12em;
  margin: 0 0 7px;
}
.brand p {
  font-size: 13px;
  color: #a6b9ac;
  margin: 0;
}
.sep {
  padding: 0 7px;
  color: #647970;
}
.controls {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0003;
}
.team-control {
  display: flex;
  gap: 4px;
}
.team-control button {
  border-color: transparent;
  font-size: 14px;
}
.team-control #blue[aria-pressed="true"] {
  color: var(--blue);
  border-color: #91d7e559;
}
.team-control #red[aria-pressed="true"] {
  color: var(--red);
  border-color: #e8a2ae59;
  background: #493037;
}
.fog-control {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
}
.fog-control input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch {
  display: inline-block;
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: #435052;
  position: relative;
}
.switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #c1c9bd;
  border-radius: 50%;
  transition: transform 0.15s;
}
.fog-control input:checked + .switch {
  background: #648681;
}
.fog-control input:checked + .switch:after {
  transform: translateX(14px);
  background: #f1eed2;
}
.subtle {
  background: transparent;
  border-color: transparent;
  font-size: 14px;
}
kbd {
  font: 12px Arial;
  color: #93a799;
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 8px;
}
.camera-panel {
  position: absolute;
  left: 24px;
  top: 120px;
  width: 196px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 30px #0002;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  color: #9aaa9c;
  margin: 0 0 2px;
}
.camera-panel select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #172b2d;
  font-size: 14px;
}
.camera-panel button {
  font-size: 14px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.zoom-controls button {
  width: 42px;
  font-size: 20px;
  padding: 4px;
}
.zoom-controls span {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bottom-bar {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.bottom-bar > div:first-child {
  background: linear-gradient(90deg, #0c1c20ee, #0c1c2088);
  padding: 14px 18px;
  border-left: 2px solid var(--team);
  border-radius: 0 5px 5px 0;
  max-width: 650px;
}
.perspective {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--team);
  margin: 0 0 9px;
}
.hint {
  font-size: 14px;
  margin: 0;
  color: #dae3d4;
}
.hint span {
  color: #728b7a;
  padding: 0 5px;
}
.minimap-wrap {
  background: #09191cef;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
}
.minimap-title {
  font-size: 11px;
  color: #9cb5a9;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  padding: 2px 3px 7px;
}
#minimap {
  width: 240px;
  height: 134px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.notice {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  max-width: 500px;
  background: #112b30ee;
  padding: 12px 18px;
  border: 1px solid #728f81;
  border-radius: 5px;
  font-size: 14px;
}
#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #0a1c20;
  z-index: 5;
}
#loading[hidden] {
  display: none;
}
#loading p {
  font-size: 16px;
  color: #bdcaba;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .topbar {
    top: 12px;
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand h1 {
    font-size: 18px;
  }
  .brand .rune {
    font-size: 32px;
  }
  .controls {
    gap: 7px;
    padding: 5px;
    flex-wrap: wrap;
  }
  .controls button {
    padding: 8px;
    font-size: 14px;
  }
  .fog-control {
    font-size: 14px;
  }
  .camera-panel {
    left: 12px;
    top: 150px;
    width: 168px;
    padding: 10px;
  }
  .bottom-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .hint {
    font-size: 12px;
    max-width: 230px;
    line-height: 1.5;
  }
  .bottom-bar > div:first-child {
    padding: 10px;
  }
  #minimap {
    width: 160px;
    height: 89px;
  }
  .minimap-wrap {
    padding: 5px;
  }
}
@media (max-width: 480px) {
  .topbar {
    gap: 6px;
  }
  .controls {
    width: 100%;
    justify-content: space-between;
  }
  .brand p {
    font-size: 12px;
  }
  .camera-panel {
    top: 133px;
    width: 148px;
    gap: 6px;
  }
  .camera-panel .eyebrow {
    display: none;
  }
  .camera-panel button,
  .camera-panel select {
    font-size: 13px;
  }
  .bottom-bar {
    align-items: flex-end;
  }
  .hint {
    display: none;
  }
  .perspective {
    margin: 0;
    font-size: 11px;
  }
  .bottom-bar > div:first-child {
    max-width: 160px;
  }
  .minimap-wrap {
    flex-shrink: 0;
  }
  kbd {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
