.df-rig {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}
.df-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0b1020;
  line-height: 0;
  box-shadow: 0 0 0 5px #1f2937, 0 0 0 6px #0f172a, 0 16px 30px -16px rgba(15, 23, 42, 0.7);
  margin: 6px;
}
.df-screen canvas { display: block; width: 100% !important; height: auto; }
.df-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}
.df-tag {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 1;
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 237, 213, 0.72);
}
.df-mini { width: 96px; flex: none; margin: 4px; border-radius: 12px; box-shadow: 0 0 0 3px #1f2937, 0 0 0 4px #0f172a; }
.df-start { display: flex; align-items: center; gap: 14px; margin: 2px 0 4px; }

.df-side { min-width: 0; }
.df-label {
  font: 700 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 4px;
}
.df-side > .df-label:first-child { margin-top: 2px; }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.interactive .df-chips button {
  margin: 0;
  min-height: 40px;
  padding: 7px 15px;
  font-size: 14.5px;
  font-weight: 500;
  background: #fff;
  color: var(--fg);
  border: 1.5px solid var(--border-strong, #cfc5ae);
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}
.interactive .df-chips button:not([aria-pressed="true"]):hover:not(:disabled) { border-color: var(--accent); background: #fff; }
.interactive .df-chips button[aria-pressed="true"],
.interactive .df-chips button[aria-pressed="true"]:hover { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.df-side .slider-row { flex-wrap: wrap; gap: 0 10px; margin: 6px 0 8px; }
.df-side .slider-row label { width: 100%; }
.df-side .slider-row .value { width: 34px; }
.interactive .df-side p { font-size: 13.5px; margin: 8px 0; }
.df-status { font: 13px/1.5 var(--font-mono); color: var(--muted); }
.df-recipe {
  font: 600 13.5px/1.6 var(--font-mono);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0 0;
  color: #7c2d12;
}
.df-recipe b { color: #c2410c; font-size: 15px; }
.df-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #38bdf8; box-shadow: 0 0 0 1.5px #fff; }

.df-figure { margin: 22px 0; }
.df-figure svg { margin: 0 auto; }
.df-figure figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }

@media (max-width: 760px) {
  .df-rig { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .df-screen { max-width: 420px; margin: 6px auto; }
  .df-screen.df-mini { margin: 4px; }
}
