/* Channel Run: 2043 — isolated lab theme (no live /shared/style.css) */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --bg: #eef6f8;
  --ink: #0f172a;
  --muted: #64748b;
  --panel: #ffffff;
  --danger: #b91c1c;
  --warn: #b45309;
  --ok: #047857;
  --chrome-border: #cbd5e1;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

#app {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.chrome {
  margin-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mark {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(200px, 1fr);
  gap: 1rem;
  align-items: start;
  position: relative;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 720;
  border: 2px solid var(--teal);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #07151a;
}

#game {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hud {
  background: var(--panel);
  border: 1px solid var(--chrome-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.92rem;
}

.hud-row strong {
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}

.session-card {
  margin-top: 0.9rem;
}

.session-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--teal-dark);
}

.placeholder-flag {
  font-size: 0.78rem;
  margin: 0 0 0.35rem;
}

.specimen-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-weight: 700;
}

.session-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

.session-card dt {
  color: var(--muted);
  font-weight: 600;
}

.session-card dd {
  margin: 0;
  word-break: break-word;
}

.muted { color: var(--muted); }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.panel {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
  text-align: left;
}

.panel.hidden { display: none; }

.panel h2 {
  margin: 0 0 0.5rem;
  color: var(--teal-dark);
}

.panel p { margin: 0.4rem 0; line-height: 1.45; font-size: 0.92rem; }

.controls {
  margin: 0.6rem 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink);
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
}

.btn {
  appearance: none;
  border: none;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.6rem;
}

.btn:hover, .btn:focus-visible {
  background: var(--teal-dark);
  outline: 2px solid var(--teal-soft);
  outline-offset: 2px;
}

.cta a, .panel a {
  color: var(--teal-dark);
  font-weight: 600;
}

.run-id-line code {
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.foot {
  margin-top: 1rem;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .stage-wrap {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 100%;
    margin: 0 auto;
  }
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 116, 144, 0.18);
  }
  .hud { order: 2; }
}

.spinoff-offer {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.95rem;
}
.spinoff-offer a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}
.spinoff-offer a:hover {
  color: var(--teal);
}
.foot a {
  color: var(--teal-dark);
}
