.gg-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .gg-grid { grid-template-columns: minmax(0, 1fr); } }
.lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

.stage { position: relative; height: 460px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #1a1446 center / cover no-repeat; isolation: isolate; }
.blob { position: absolute; border-radius: 50%; z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 260px; height: 260px; left: 6%; top: 8%; background: linear-gradient(135deg, #ff6f91, #ff9671); }
.b2 { width: 220px; height: 220px; right: 8%; top: 14%; background: linear-gradient(135deg, #3dd6d0, #2193b0); animation-duration: 17s; animation-delay: -4s; }
.b3 { width: 200px; height: 200px; left: 30%; bottom: 4%; background: linear-gradient(135deg, #ffc75f, #f9f871); animation-duration: 12s; animation-delay: -7s; }
.b4 { width: 150px; height: 150px; right: 24%; bottom: 10%; background: linear-gradient(135deg, #845ec2, #d65db1); animation-duration: 19s; animation-delay: -2s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 35px) scale(.92); }
}
.stage.paused .blob { animation-play-state: paused; }
.stage[data-bg="mesh"] { background:
  radial-gradient(at 15% 20%, #ff6f91 0, transparent 45%), radial-gradient(at 85% 15%, #3dd6d0 0, transparent 45%),
  radial-gradient(at 70% 85%, #845ec2 0, transparent 50%), radial-gradient(at 20% 85%, #ffc75f 0, transparent 45%), #2c1e5c; }
.stage[data-bg="stripes"] { background: repeating-linear-gradient(120deg, #ff6f91 0 40px, #ffc75f 40px 80px, #3dd6d0 80px 120px, #845ec2 120px 160px); }
.stage[data-bg="mesh"] .blob, .stage[data-bg="stripes"] .blob, .stage[data-bg="image"] .blob { display: none; }

.glass { width: min(340px, 80%); padding: 22px; display: grid; gap: 8px; color: #fff; transition: background var(--dur), border-radius var(--dur); }
.glass.ink-dark { color: #12161b; }
.g-top { display: flex; gap: 6px; margin-bottom: 6px; }
.g-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .35; }
.g-title { font-size: 22px; letter-spacing: -.02em; }
.g-sub { opacity: .8; font-size: 14px; }
.g-pill { justify-self: start; margin-top: 8px; padding: 5px 12px; border-radius: 999px; font: 600 12px var(--mono); background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
.glass.ink-dark .g-pill { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); }

.ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ctl .v { font-family: var(--mono); color: var(--text); font-weight: 600; }
.tint-row { align-self: end; }
@media (max-width: 420px) { .ctl { grid-template-columns: 1fr; } }
.presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 520px) { .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.preset {
  display: grid; justify-items: center; gap: 5px; padding: 10px 4px 7px; border-radius: 11px; font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: linear-gradient(135deg, #ff6f91, #845ec2 55%, #3dd6d0); border: 1px solid var(--line);
}
.preset span:last-child { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.preset .pv { width: 34px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.preset[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
#css { margin: 0; white-space: pre; overflow-x: auto; word-break: normal; }
