body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#game-container {
  width: 100%;
  height: 100%;
}

#startup-overlay {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #03060d;
  z-index: 999999;
}

#startup-calibration-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#startup-overlay-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.92);
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* TEST HARNESS: temporary join/extract modals until the landing page flow replaces them. */
#test-session-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(54, 107, 181, 0.24), transparent 42%),
    rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  z-index: 999998;
}

#test-session-overlay.is-visible {
  display: flex;
}

.test-session-card {
  width: min(460px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid rgba(143, 154, 174, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(39, 46, 63, 0.98), rgba(16, 21, 31, 0.98));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.test-session-eyebrow {
  margin-bottom: 10px;
  color: #f7d35f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.test-session-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
}

.test-session-body,
.test-session-helper,
.test-session-error {
  margin: 0;
  line-height: 1.5;
}

.test-session-body {
  color: rgba(226, 232, 240, 0.88);
}

.test-session-helper {
  color: rgba(191, 219, 254, 0.84);
  font-size: 14px;
}

.test-session-error {
  min-height: 20px;
  color: #fca5a5;
  font-size: 14px;
}

.test-session-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.test-session-field {
  display: grid;
  gap: 8px;
}

.test-session-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.test-session-input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.66);
  color: #f8fafc;
  font: inherit;
  box-sizing: border-box;
  outline: none;
}

.test-session-input:focus {
  border-color: rgba(74, 222, 128, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.test-session-button {
  width: 100%;
  margin-top: 2px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #4ade80, #22c55e);
  color: #052e16;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.test-session-button:hover {
  filter: brightness(1.04);
}

.test-session-amount {
  margin: 8px 0 12px;
  color: #9bf5b6;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.16);
}

