:root {
  --bg: #09111a;
  --panel: rgba(10, 21, 34, 0.78);
  --panel-strong: rgba(12, 26, 42, 0.92);
  --line: rgba(163, 191, 250, 0.14);
  --text: #edf4ff;
  --muted: #8ca0bd;
  --accent: #7cf0c4;
  --accent-2: #f8c15c;
  --danger: #ff6d6d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(65, 120, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(77, 255, 179, 0.12), transparent 28%),
    linear-gradient(180deg, #081019 0%, #0f1825 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

code,
.console-output,
.chat-line,
.command-line,
.chat-empty {
  font-family: "JetBrains Mono", monospace;
}

.bg-orb {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.18;
  pointer-events: none;
}

.orb-a {
  top: -8rem;
  right: -6rem;
  background: #42c2ff;
}

.orb-b {
  bottom: -8rem;
  left: -6rem;
  background: #5ff2c6;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.74rem;
}

.hero h1,
.card h2,
.card h3 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero-copy {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-card {
  max-width: 460px;
}

.auth-form,
.command-form,
.button-row,
.section-head,
.panel-layout {
  display: flex;
  gap: 14px;
}

.auth-form,
.command-form {
  margin-top: 18px;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

input:focus {
  border-color: rgba(124, 240, 196, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 240, 196, 0.12);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  color: #041016;
  background: linear-gradient(135deg, var(--accent), #c1ffe8);
  font-weight: 700;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    opacity 160ms ease;
}

button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.action-button.warn {
  background: linear-gradient(135deg, var(--accent-2), #ffe3aa);
}

.action-button.danger {
  background: linear-gradient(135deg, var(--danger), #ffc0c0);
}

.dashboard.hidden,
.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.helper-text {
  color: var(--muted);
  margin: 10px 0 0;
}

.panel-layout {
  align-items: stretch;
  margin-bottom: 16px;
}

.panel-layout > .card {
  flex: 1;
}

.section-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.button-row {
  flex-wrap: wrap;
}

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

.player-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.console-output {
  min-height: 260px;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 8, 16, 0.8);
  color: #dce8ff;
}

.chat-feed {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-line,
.command-line,
.chat-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-player {
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

.chat-message {
  color: var(--text);
}

.command-line {
  border-color: rgba(124, 240, 196, 0.2);
  background: rgba(124, 240, 196, 0.08);
}

.command-prefix {
  display: block;
  color: #9be8d0;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .hero,
  .panel-layout,
  .auth-form,
  .command-form {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
