:root {
  color-scheme: dark;
  --bg: #06070b;
  --panel: rgba(9, 12, 19, 0.82);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #c2c8d6;
  --accent: #68a3ff;
  --accent-strong: #8a7cff;
  --warning: #ffd66e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow: hidden;
}

a-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: grid;
  align-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.hud,
.targets-panel {
  pointer-events: auto;
}

.hud {
  display: grid;
  gap: 12px;
}

.panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.intro-panel,
.status-panel {
  max-width: 640px;
}

.targets-panel {
  width: min(100%, 840px);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #a8b4cf;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.125rem;
}

h3 {
  font-size: 1rem;
}

.copy {
  color: var(--muted);
  line-height: 1.5;
}

.hint,
.target-meta {
  color: #a8b4cf;
  font-size: 0.85rem;
  line-height: 1.45;
}

.status-label {
  font-size: 1rem;
  font-weight: 600;
}

.warning {
  margin-top: 10px;
  color: var(--warning);
}

.primary-button,
.secondary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  font: inherit;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
  width: fit-content;
}

.primary-button {
  margin: 18px 0 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 700;
}

.secondary-button {
  margin: 8px 0 10px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 600;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.targets-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.targets-list {
  display: grid;
  gap: 12px;
}

.target-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.target-preview {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.target-card__body {
  display: grid;
  gap: 8px;
}

code {
  font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

body.ar-running .targets-panel {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .app-shell {
    padding-inline: 12px;
  }

  .targets-header {
    flex-direction: column;
  }

  .target-card {
    grid-template-columns: 72px 1fr;
  }

  .target-preview {
    width: 72px;
  }
}
