* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --tb-bg: #050914;
  --tb-surface: rgba(11, 17, 32, 0.78);
  --tb-accent: #38bdf8;
  --tb-secondary: #a855f7;
  --tb-text: #f1f5f9;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--tb-bg);
  color: var(--tb-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background 0.35s ease;
}

.webgl-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.theme-stage-ui {
  position: relative;
  z-index: 15;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
}

.theme-panel {
  pointer-events: auto;
  width: min(440px, 100%);
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--tb-surface);
  border: 1px solid color-mix(in srgb, var(--tb-accent) 42%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52);
  transition: border-color 0.35s ease, background 0.35s ease;
}

.theme-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--tb-accent);
  margin-bottom: 6px;
}

.theme-panel h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.theme-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.theme-desc code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--tb-accent);
}

.swatch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.swatch-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.swatch-btn.is-active {
  border-color: var(--tb-accent);
  background: color-mix(in srgb, var(--tb-accent) 22%, transparent);
  font-weight: 600;
}

.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.uniform-readout {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
  overflow-x: auto;
}
