:root {
  --ink: #f4efe6;
  --ink-2: rgb(244 239 230 / 0.7);
  --ink-3: rgb(244 239 230 / 0.46);
  --line: rgb(244 239 230 / 0.14);
  --accent: #f2b36d;
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1020; color: var(--ink); }
body { font: 400 14px/1.45 var(--kit-grotesk); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.boot, .boot * { transition: none !important; }
#stage { position: fixed; inset: 0; }
#stage canvas { cursor: grab; }
#stage canvas:active { cursor: grabbing; }
body.is-hot #stage canvas { cursor: pointer; }

.mast { position: fixed; left: 56px; top: 52px; z-index: 3; max-width: 520px; pointer-events: none; text-shadow: 0 1px 24px rgb(5 8 20 / 0.35); }
.over { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 500 12px/1 var(--kit-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.over::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
h1 { margin: 0; font: 400 74px/0.95 var(--kit-didone); letter-spacing: -0.015em; }
.sub { margin: 18px 0 0; max-width: 360px; font: 400 16px/1.5 var(--kit-grotesk); color: var(--ink-2); }

.bar {
  position: fixed; left: 50%; bottom: 40px; translate: -50% 0; z-index: 3;
  width: min(880px, calc(100vw - 80px)); box-sizing: border-box;
  display: grid; grid-template-columns: 1fr 1px auto 1px auto; align-items: center; gap: 0 26px;
  padding: 18px 26px 18px 28px;
  background: rgb(10 14 28 / 0.42); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.rule { width: 1px; align-self: stretch; background: var(--line); }
.label { font: 500 10.5px/1 var(--kit-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.time-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.time-head b { font: 500 15px/1 var(--kit-grotesk); color: var(--ink); }
.track { position: relative; padding-bottom: 22px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, #8fb6e0 0%, #f0b072 38%, #e07a52 48%, #3b3e78 66%, #0b1226 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fbf6ee; border: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 0.45), 0 0 0 4px rgb(255 255 255 / 0.12); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.ticks { position: absolute; left: 11px; right: 11px; bottom: 0; height: 14px; }
.ticks span { position: absolute; top: 0; translate: -50% 0; font: 400 11px/1 var(--kit-grotesk); color: var(--ink-3); white-space: nowrap; }
.ticks span:first-child { translate: -11px 0; }
.ticks span:last-child { translate: calc(-100% + 11px) 0; }

.lamp { display: grid; gap: 10px; justify-items: start; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 15px; background: rgb(255 255 255 / 0.16); transition: background 0.25s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.switch[aria-checked="true"] { background: linear-gradient(90deg, #e59a4c, #f6c47e); box-shadow: 0 0 18px rgb(246 196 126 / 0.45); }
.switch[aria-checked="true"] i { transform: translateX(22px); }

.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; gap: 4px; }
.facts dt { font: 500 10.5px/1 var(--kit-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font: 500 15px/1 var(--kit-mono); color: var(--ink); }
.imaginary { position: absolute; right: 22px; top: -14px; margin: 0; padding: 5px 10px; border-radius: 999px; background: rgb(10 14 28 / 0.7); border: 1px solid var(--line); font: 500 10px/1 var(--kit-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

.hint { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; z-index: 3; font: 400 12px/1 var(--kit-grotesk); color: var(--ink-3); white-space: nowrap; }
.is-capturing .kit-hint { display: none; }
.tip { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; padding: 9px 12px 10px; border-radius: 12px; background: rgb(8 10 20 / 0.82); color: #f5efe6; opacity: 0; transition: opacity 0.18s; display: grid; gap: 3px; }
.tip b { font: 600 13px/1.1 var(--kit-grotesk); }
.tip span { font: 400 11.5px/1.2 var(--kit-grotesk); color: rgb(245 239 230 / 0.66); }
.tip span:empty { display: none; }
.tip.is-on { opacity: 1; }
