.gpu-stage-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gt-line);
  border-radius: 15px;
  background: #07111f;
  aspect-ratio: 12 / 7;
}

.gpu-stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
}

.gpu-stage-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  color: #e2e8f0;
  background: rgba(7, 17, 31, 0.92);
  text-align: center;
}

.gpu-stage-overlay[hidden] { display: none; }
.gpu-stage-overlay span { color: #a5b4c7; font-size: .86rem; }

.gpu-status {
  min-height: 24px;
  margin: 13px 0 0;
  color: var(--gt-muted);
  font-size: .84rem;
}

.gpu-status[data-tone="success"] { color: #a7f3d0; }
.gpu-status[data-tone="warning"] { color: #fde68a; }

.gpu-controls {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.gpu-scene-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gpu-scene-picker legend {
  margin-bottom: 8px;
  color: var(--gt-muted);
  font-size: .8rem;
  font-weight: 700;
}

.gpu-scene-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.gpu-scene-options label { position: relative; cursor: pointer; }
.gpu-scene-options input { position: absolute; opacity: 0; }
.gpu-scene-options label span {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--gt-line);
  border-radius: 12px;
  color: var(--gt-text);
  background: var(--gt-bg-soft);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.gpu-scene-options label:hover span,
.gpu-scene-options input:focus-visible + span,
.gpu-scene-options input:checked + span {
  border-color: var(--gt-accent);
  background: var(--gt-accent-soft);
}

.gpu-scene-options input:focus-visible + span { outline: 2px solid var(--gt-accent); outline-offset: 2px; }
.gpu-scene-options input:checked + span { transform: translateY(-1px); }
.gpu-scene-options small { color: var(--gt-subtle); font-size: .73rem; line-height: 1.35; }

.gpu-range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gpu-range { display: grid; gap: 7px; color: var(--gt-muted); font-size: .8rem; font-weight: 680; }
.gpu-range span { display: flex; justify-content: space-between; gap: 12px; }
.gpu-range output { color: var(--gt-text); font-variant-numeric: tabular-nums; }
.gpu-range input { width: 100%; accent-color: var(--gt-accent); }

.gpu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gpu-actions .gt-button { min-height: 38px; padding: 8px 12px; font-size: .8rem; }
.gpu-note { margin: 14px 0 0; color: var(--gt-subtle); font-size: .76rem; }

@media (max-width: 640px) {
  .gpu-stage { min-height: 210px; }
  .gpu-scene-options, .gpu-range-row { grid-template-columns: minmax(0, 1fr); }
  .gpu-scene-options label span { min-height: 0; }
  .gpu-actions .gt-button { flex: 1 1 calc(50% - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .gpu-scene-options label span { transition: none; }
}
