:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --ink: #f4f0e7;
  --muted: #a7adba;
  --line: rgba(255, 255, 255, 0.1);
  --brass: #e4b15a;
  --panel: rgba(14, 16, 22, 0.82);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
}

button, input { font: inherit; color: inherit; }

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.brand {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 2;
  pointer-events: none;
}

.brand__mark {
  margin: 0;
  font-family: Outfit, Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 14px;
}

.brand__sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hint {
  position: fixed;
  left: 26px;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.tag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  opacity: 0;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.tag.is-active {
  border-color: rgba(228, 177, 90, 0.8);
  color: var(--brass);
}

.panel {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #8ee0b5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

h1, h2, p { margin: 0; }

h1 {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 650;
}

.lede {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sample {
  position: relative;
  height: 92px;
  margin: 16px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, #ffe3a3, transparent 42%),
    linear-gradient(180deg, #7eafd0, #e4d0ae 58%, #6a5646);
}

.sample__bust {
  position: absolute;
  left: 46px;
  bottom: 14px;
  width: 34px;
  height: 36px;
  border-radius: 8px 8px 4px 4px;
  background: #ff3b30;
}

.sample__head {
  position: absolute;
  left: 52px;
  bottom: 46px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e0aa84;
}

.sample__glass {
  position: absolute;
  inset: 0;
  background: #1c212b;
  opacity: 0.55;
  box-shadow: inset 0 0 0 7px rgba(12, 14, 18, 0.88);
}

section { margin-top: 16px; }

h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.row strong {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 18px;
  color: var(--brass);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7e6f4, #8ea0b5 32%, #2c323c 68%, #07080b);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #f6f1e7;
  border: 3px solid var(--brass);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7e6f4, #8ea0b5 32%, #2c323c 68%, #07080b);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f6f1e7;
  border: 3px solid var(--brass);
}

.scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.presets, .models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.presets button, .models button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.presets button.is-active, .models button.is-active {
  background: var(--brass);
  border-color: var(--brass);
  color: #1b140c;
}

.colors {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.colors button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
}

.colors button.is-active {
  border-color: #f6f1e7;
  box-shadow: 0 0 0 2px var(--brass), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.color-name {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metrics div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px 12px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 4px;
  font-family: Outfit, Manrope, sans-serif;
  font-size: 22px;
  font-weight: 650;
}

.privacy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.fine {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.intensity-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brass);
}

.view-toggle {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.view-toggle button,
.glass-grid button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.view-toggle button {
  flex: 1;
}

.view-toggle button.is-active,
.glass-grid button.is-active {
  background: var(--brass);
  border-color: var(--brass);
  color: #1b140c;
}

.glass-picker {
  margin-top: 12px;
}

.picker-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.glass-grid button {
  border-radius: 12px;
  text-align: left;
  line-height: 1.25;
}

.glass-targets {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  transition: opacity 0.35s ease;
}

.boot.is-done {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 920px) {
  .brand { top: 14px; left: 14px; }
  .brand__sub, .hint { display: none; }
  .panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 46dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .boot { transition: none; }
}
.showcase-embed .panel{max-height:86vh;overflow:auto}
@media(max-width:920px){.showcase-embed .panel{max-height:32vh}.showcase-embed .panel .lede,.showcase-embed .sample,.showcase-embed .fine,.showcase-embed .glass-targets{display:none}.showcase-embed .panel{padding:14px}.showcase-embed .panel h1{font-size:20px}.showcase-embed .panel section:first-of-type{display:none}}
