@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --bg-a: #05020c;
  --bg-b: #120523;
  --bg-c: #1b0a31;
  --panel: rgba(33, 12, 58, 0.78);
  --panel-border: rgba(189, 129, 255, 0.36);
  --panel-border-soft: rgba(206, 164, 255, 0.28);
  --text: #f7eeff;
  --text-muted: #c7b4e5;
  --neon: #cc84ff;
  --neon-soft: #8f44d9;
  --neon-live: #e9bbff;
  --neon-error: #ff7cc9;
  --line: rgba(212, 170, 255, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 460px at 45% -220px, #5e2793 0%, transparent 64%),
    radial-gradient(900px 360px at 88% 102%, #40115d 0%, transparent 74%),
    radial-gradient(780px 320px at 8% 88%, #2b0f4d 0%, transparent 72%),
    linear-gradient(180deg, var(--bg-b) 0%, var(--bg-a) 82%);
  color: var(--text);
  font-family: Rajdhani, "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  width: 48vw;
  height: 48vw;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -2;
  animation: drift 22s ease-in-out infinite alternate;
}

.aurora-a {
  left: -10vw;
  top: -12vw;
  background: #9d47ff;
}

.aurora-b {
  right: -12vw;
  bottom: -14vw;
  background: #cb63ff;
  animation-duration: 28s;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 3px
    );
  opacity: 0.16;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 16px 34px;
}

.shell {
  position: relative;
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 97%, rgba(204, 132, 255, 0.1) 97% 100%);
  background-size: 100% 4px;
  opacity: 0.2;
}

.top {
  margin-bottom: 16px;
}

.banner {
  background:
    linear-gradient(180deg, rgba(36, 14, 63, 0.9), rgba(22, 8, 40, 0.78));
  border: 1px solid var(--panel-border-soft);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 32px rgba(151, 71, 224, 0.28);
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.015em;
  text-shadow: 0 0 16px rgba(219, 168, 255, 0.25);
}

h2 {
  margin: 0 0 9px;
  font-size: 1.24rem;
  color: #e6cfff;
  letter-spacing: 0.012em;
}

.meta {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.chips {
  margin-top: 11px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(198, 143, 255, 0.52);
  background: rgba(44, 14, 74, 0.64);
  color: #eddcff;
  padding: 4px 12px;
  line-height: 1;
  font-size: 0.93rem;
}

.chip-metric {
  border-color: rgba(183, 126, 246, 0.48);
}

.chip-status-live {
  border-color: rgba(233, 187, 255, 0.8);
  color: #fff2ff;
  box-shadow: 0 0 14px rgba(203, 132, 255, 0.34);
}

.chip-status-idle {
  border-color: rgba(179, 131, 232, 0.46);
  color: #dfcfff;
}

.chip-status-error {
  border-color: rgba(255, 124, 201, 0.72);
  color: #ffd8ef;
  box-shadow: 0 0 14px rgba(255, 124, 201, 0.25);
}

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

.card {
  border-radius: 14px;
  padding: 16px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(40, 15, 67, 0.78), rgba(28, 9, 50, 0.74));
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.014),
    0 12px 24px rgba(8, 1, 15, 0.44);
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: var(--line);
  opacity: 0.7;
}

.kills {
  margin-top: 13px;
}

.kill-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(203, 159, 255, 0.2);
  border-radius: 10px;
  background: rgba(18, 7, 34, 0.35);
}

.kill-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.kill-table thead th {
  text-align: left;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d9b9ff;
  padding: 10px 12px;
  background: rgba(69, 28, 107, 0.44);
  border-bottom: 1px solid rgba(213, 175, 255, 0.24);
}

.kill-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(188, 139, 244, 0.16);
  color: #efdfff;
  font-size: 1rem;
  line-height: 1.28;
  vertical-align: top;
}

.kill-table tbody tr:nth-child(even) td {
  background: rgba(58, 21, 91, 0.2);
}

.kill-table tbody tr:hover td {
  background: rgba(142, 83, 213, 0.2);
}

.kill-time {
  white-space: nowrap;
  color: #d4b7f8;
  font-variant-numeric: tabular-nums;
}

.kill-name,
.kill-damage {
  word-break: break-word;
}

.kill-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #ffd8ff;
  font-weight: 700;
}

.kill-row-empty td {
  color: var(--text-muted) !important;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  margin: 0;
  position: relative;
  padding-left: 16px;
  font-size: 1.02rem;
  line-height: 1.28;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d7a8ff;
  box-shadow: 0 0 10px rgba(211, 147, 255, 0.45);
}

.muted {
  color: var(--text-muted);
  padding-left: 0 !important;
}

.muted::before {
  display: none;
}

.flash .banner {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 34px rgba(209, 132, 255, 0.42);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2vw, -1vw, 0) scale(1.06);
  }
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.6rem;
  }

  .card {
    padding: 14px;
  }

  .aurora {
    width: 72vw;
    height: 72vw;
    filter: blur(48px);
  }

  .kill-table tbody td,
  .kill-table thead th {
    padding: 8px 10px;
  }
}
