:root {
  --ink: #f3e9d8;
  --ink-2: rgb(240 226 204 / 0.66);
  --ink-3: rgb(236 220 196 / 0.42);
  --amber: #f2b66b;
  --line: rgb(240 220 190 / 0.14);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 55%, rgb(5 6 8 / 0) 55%, rgb(5 6 8 / 0.55) 100%),
    linear-gradient(to bottom, rgb(5 6 8 / 0.55), rgb(5 6 8 / 0) 22%, rgb(5 6 8 / 0) 80%, rgb(5 6 8 / 0.75));
}
html, body { margin: 0; height: 100%; background: #050608; color: var(--ink); overflow: hidden; }
body { font: 400 14px/1.5 var(--kit-sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }

.mast { position: fixed; left: 48px; top: 46px; z-index: 3; max-width: 470px; pointer-events: none; }
.overline { margin: 0 0 16px; font: 500 11.5px/1 var(--kit-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
h1 { margin: 0; font: 400 50px/1.04 var(--kit-serif); letter-spacing: -0.015em; color: #fbf3e6; }
.sub { margin: 16px 0 0; max-width: 360px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.specs { position: fixed; left: 48px; right: 48px; bottom: 40px; z-index: 3; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 22px; pointer-events: none; }
.specs div { padding-top: 12px; border-top: 1px solid var(--line); }
.specs dt { font: 500 10.5px/1.4 var(--kit-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); opacity: 0.8; margin-bottom: 6px; }
.specs dd { margin: 0; font: 400 13px/1.45 var(--kit-sans); color: var(--ink-2); }

.controls { position: fixed; right: 44px; top: 48px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.toggle {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px 0 10px; border-radius: 22px; cursor: pointer;
  background: rgb(22 18 14 / 0.6); border: 1px solid rgb(242 182 107 / 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, background 0.3s;
}
.toggle:hover { border-color: rgb(242 182 107 / 0.7); }
.track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: linear-gradient(#2a221a, #1a1510); box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.6); }
.thumb { position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff4dc, #f2b66b 60%, #c78434); box-shadow: 0 0 14px rgb(255 180 100 / 0.8); transition: left 0.25s cubic-bezier(.3,.7,.2,1), background 0.3s, box-shadow 0.3s; }
.is-off .thumb { left: 3px; background: radial-gradient(circle at 40% 35%, #8a8378, #4b463f); box-shadow: none; }
.lbl { font: 500 11px/1 var(--kit-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.state { font: 400 17px/1 var(--kit-serif); color: var(--ink); min-width: 52px; }
.dim { display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--kit-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.dim input { -webkit-appearance: none; appearance: none; width: 150px; height: 2px; background: linear-gradient(90deg, rgb(242 182 107 / 0.25), rgb(242 182 107 / 0.8)); border-radius: 1px; cursor: pointer; }
.dim input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #f6e6cc; border: 0; box-shadow: 0 0 0 4px rgb(242 182 107 / 0.18); }
.is-off .dim { opacity: 0.45; }

.tip {
  position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; translate: -50% calc(-100% - 22px);
  padding: 5px 10px; border-radius: 12px; background: rgb(20 16 12 / 0.75); border: 1px solid rgb(242 182 107 / 0.4);
  font: 500 11px/1 var(--kit-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber);
  opacity: 0; transition: opacity 0.2s;
}
.tip.is-on { opacity: 1; }
.hint { position: fixed; right: 48px; bottom: 120px; margin: 0; z-index: 3; font-size: 12px; color: var(--ink-3); }
.is-capturing .hint { display: none; }
@media (max-width: 1100px) and (min-aspect-ratio: 1/1) { h1 { font-size: 42px; } }
