:root {
  --panel-border: rgba(131, 198, 255, 0.16);
  --text: #f4f6f8;
  --muted: #9aaebb;
  --accent: #72ddff;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  --font-size-standard: 1.75rem;
  --font-size-kill: calc(var(--font-size-standard) * 1.05);
  --kill-column-gap: 12px;
}

@font-face {
  font-family: "Eve Sans Neue";
  src: url("/fonts/evesansneue-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Eve Sans Neue";
  src: url("/fonts/evesansneue-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Eve Sans Neue Condensed";
  src: url("/fonts/evesansneue-condensed.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Eve Sans Neue Condensed";
  src: url("/fonts/evesansneue-condensedbold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-family: "Eve Sans Neue", "Eve Sans", Bahnschrift, "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

body {
  padding: 0;
}

.display-shell {
  width: min(100vw, var(--display-width, 900px));
  aspect-ratio: var(--display-aspect-ratio, 1 / 2);
  display: grid;
  grid-template-rows: 1.55fr 0.72fr;
  gap: 0;
  margin: 0 auto;
}

.map-panel,
.kills-panel {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.map-panel::before,
.kills-panel::before {
  content: none;
}

.status-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 2px;
  text-align: right;
  font-size: var(--font-size-standard);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #ffffff;
  font-family: "Eve Sans Neue Condensed", "Eve Sans Neue", Bahnschrift, sans-serif;
}

.camera-toggle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 180ms ease;
  padding:30px;
}

.camera-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.camera-toggle:hover {
  opacity: 0.82;
}

.camera-toggle.is-disabled {
  color: #ffffff;
}

.camera-toggle-icon {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camera-toggle-off {
  opacity: 0;
  transition: opacity 180ms ease;
}

.camera-toggle.is-disabled .camera-toggle-off {
  opacity: 1;
}

.status-line {
  white-space: nowrap;
}

#map-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.kills-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
  display: grid;
  gap: 1px;
}

.kill-row {
  display: grid;
  grid-template-columns: 86px 52px minmax(0, 1.08fr) 52px minmax(0, 0.92fr) minmax(0, 0.68fr);
  column-gap: var(--kill-column-gap);
  row-gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.kill-row.is-active-focus {
  background: rgba(255, 255, 255, 0.08);
}

.kill-row:focus-visible {
  outline: 2px solid rgba(114, 221, 255, 0.75);
  outline-offset: -2px;
}

.kill-rail {
  display: grid;
  gap: 0;
  align-content: center;
  justify-items: end;
  text-align: right;
}

.kill-time {
  font-size: var(--font-size-kill);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  letter-spacing: 0.01em;
  font-family: "Eve Sans Neue Condensed", "Eve Sans Neue", sans-serif;
}

.kill-value {
  font-size: var(--font-size-kill);
  color: #3fb6ff;
  line-height: 1;
  letter-spacing: 0.01em;
  font-family: "Eve Sans Neue Condensed", "Eve Sans Neue", sans-serif;
}

.kill-ship,
.kill-alliance {
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.kill-ship-image,
.kill-alliance-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kill-thumb-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-kill);
  letter-spacing: 0.08em;
  font-family: "Eve Sans Neue Condensed", "Eve Sans Neue", sans-serif;
}

.kill-block {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.kill-primary,
.kill-secondary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Eve Sans Neue Condensed", "Eve Sans Neue", sans-serif;
}

.kill-primary {
  color: #3fb6ff;
  font-size: var(--font-size-kill);
  line-height: 1.05;
}

.kill-secondary {
  color: rgba(220, 232, 242, 0.92);
  font-size: var(--font-size-kill);
  line-height: 1.05;
}

.kill-location-block .kill-secondary,
.kill-meta-block .kill-secondary {
  color: rgba(197, 214, 229, 0.82);
}

.kill-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: var(--font-size-kill);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Eve Sans Neue Condensed", "Eve Sans Neue", sans-serif;
}

@media (max-width: 900px) {
  .display-shell {
    width: 100%;
  }

  .kill-row {
    grid-template-columns: 72px 48px minmax(0, 1fr) 48px;
    grid-template-areas:
      "rail ship victim alliance"
      "rail ship meta location";
    row-gap: 6px;
    column-gap: var(--kill-column-gap);
    min-height: 150px;
    padding: 9px 9px;
  }

  .kill-rail {
    grid-area: rail;
  }

  .kill-ship {
    grid-area: ship;
    width: 48px;
    height: 48px;
  }

  .kill-alliance {
    grid-area: alliance;
    width: 48px;
    height: 48px;
    justify-self: end;
  }

  .kill-victim-block {
    grid-area: victim;
  }

  .kill-meta-block {
    grid-area: meta;
    justify-self: end;
    text-align: right;
  }

  .kill-location-block {
    grid-area: location;
  }

  .kill-meta-block .kill-primary,
  .kill-meta-block .kill-secondary {
    text-align: right;
  }
}
