.game-shell {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  align-items: start;
}

.play-space-card,
.telemetry-card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #334155;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 0.7rem;
}

.play-space-header,
.telemetry-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.play-space-header h2,
.telemetry-header h3 {
  margin-bottom: 0.35rem;
}

.sub-note,
.hint-row,
.cell-label,
.note-cell span {
  color: #94a3b8;
}

.status-pill {
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}

.status-idle { background: #1e293b; color: #cbd5e1; }
.status-live { background: rgba(8, 145, 178, 0.16); color: #67e8f9; }
.status-good { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.status-bad  { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

.svg-shell {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  border: 1px solid #233044;
  border-radius: 12px;
  cursor: crosshair;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.svg-shell:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.play-space {
  aspect-ratio: 12 / 7;
  display: block;
  height: auto;
  min-height: 520px;
  width: 100%;
}

.hint-row {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.55rem;
}

.telemetry-grid {
  border: 1px solid #1f2937;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.telemetry-cell {
  background: #111827;
  border-right: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  min-height: 68px;
  padding: 0.55rem 0.65rem;
}

.telemetry-cell:nth-child(2n) {
  border-right: 0;
}

.cell-label {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cell-value {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.2rem;
  word-break: break-word;
}

.telemetry-actions {
  margin-top: 0.6rem;
}

.button-grid {
  display: grid;
  gap: 0.45rem;
}

.button-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0.65rem;
}

.note-cell {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
}

.note-cell strong { color: #e2e8f0; }

@media (max-width: 1100px) {
  .game-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .telemetry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .telemetry-cell:nth-child(2n) {
    border-right: 1px solid #1f2937;
  }

  .telemetry-cell:nth-child(4n) {
    border-right: 0;
  }

  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .telemetry-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-cell:nth-child(4n) {
    border-right: 1px solid #1f2937;
  }

  .telemetry-cell:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .telemetry-grid,
  .note-grid,
  .button-grid-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .telemetry-cell {
    border-right: 0 !important;
  }
}

.lander-hud.hud-green rect { stroke: #6fdc6f; }
.lander-hud.hud-amber rect { stroke: #f0c04a; }
.lander-hud.hud-red   rect { stroke: #ef6a6a; }

.telemetry-toolbar {
    margin-bottom: 0.4rem;
}

.debug-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}