:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #0e1116;
  color: #f3f6ff;
  font-family: "Oxanium", "Orbitron", "Rajdhani", "Trebuchet MS", sans-serif;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  background: #0f131a;
}

#ui-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#sanctum-overlay-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#sanctum-overlay-root::before,
#sanctum-overlay-root::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

#sanctum-overlay-root.is-active::before {
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(10, 18, 24, 0.18), rgba(4, 7, 10, 0.62)),
    linear-gradient(180deg, rgba(2, 4, 6, 0.22), rgba(2, 3, 5, 0.42));
}

#sanctum-overlay-root.is-active::after {
  opacity: 1;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 1px,
      rgba(0, 0, 0, 0.035) 2px,
      rgba(0, 0, 0, 0.035) 4px
    );
  mix-blend-mode: normal;
}

.terminal-root {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-root::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(24, 46, 58, 0.04), rgba(4, 8, 12, 0.08));
  opacity: 1;
  pointer-events: none;
}

.terminal-root::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.02) 2px,
      rgba(0, 0, 0, 0.06) 4px
    );
  mix-blend-mode: screen;
  opacity: 0.1;
  pointer-events: none;
}

.terminal-canvas {
  position: relative;
  z-index: 1;
}

.terminal-panel {
  background: rgba(10, 18, 26, 0.9);
  border: 1px solid rgba(120, 220, 255, 0.4);
  box-shadow: 0 0 24px rgba(80, 200, 255, 0.2);
  padding: 18px 20px;
  border-radius: 12px;
}

.terminal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d9f6ff;
}

.terminal-btn {
  background: rgba(12, 24, 36, 0.85);
  border: 1px solid rgba(120, 220, 255, 0.4);
  color: #d7f2ff;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
}

.terminal-btn:hover {
  box-shadow: 0 0 12px rgba(120, 220, 255, 0.35);
}

.terminal-hint {
  font-size: 12px;
  color: rgba(190, 230, 255, 0.8);
}

#pack-tools-overlay {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 320px;
  max-height: 60vh;
  overflow: auto;
  background: rgba(8, 12, 18, 0.9);
  border: 1px solid rgba(120, 220, 255, 0.4);
  box-shadow: 0 0 20px rgba(60, 180, 255, 0.2);
  padding: 12px;
  font-size: 12px;
  color: #e3f4ff;
  z-index: 20;
}

.pack-tools-header {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.pack-tools-section {
  margin-bottom: 10px;
}

.pack-tools-row {
  opacity: 0.85;
  margin-top: 4px;
}
