:root {
  --ink: #f3ece2;
  --ink-2: rgb(243 236 226 / 0.68);
  --ink-3: rgb(243 236 226 / 0.44);
  --line: rgb(255 246 232 / 0.14);
  --glass: rgb(30 24 20 / 0.42);
  --accent: #d8a26a;
  --bg: #2c2420;
}
body.finish-steel { --bg: #20252b; --glass: rgb(18 22 28 / 0.45); --accent: #a9c0d6; }
body.finish-black { --ink: #221d19; --ink-2: rgb(34 29 25 / 0.7); --ink-3: rgb(34 29 25 / 0.5); --line: rgb(34 29 25 / 0.16); --glass: rgb(255 248 238 / 0.32); --accent: #5a3a24; --bg: #8a786a; }

html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); transition: background 0.8s; }
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; }
#stage { position: fixed; inset: 0; }
#stage canvas { cursor: grab; }
#stage canvas:active { cursor: grabbing; }
body.is-hot #stage canvas { cursor: pointer; }

.mast, .specs, .config, .hint { transition: color 0.6s; }
.boot, .boot * { transition: none !important; }
.mast { position: fixed; left: 56px; top: 50px; z-index: 3; max-width: 480px; pointer-events: none; }
.over { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 12px/1 var(--kit-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); transition: color 0.6s; }
.over i { width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.over .series { color: var(--ink-3); letter-spacing: 0.14em; }
h1 { margin: 0; font: 400 92px/0.92 var(--kit-didone); letter-spacing: -0.02em; }
.sub { margin: 18px 0 0; font: 400 16px/1.5 var(--kit-grotesk); color: var(--ink-2); max-width: 340px; }

.specs { position: fixed; right: 56px; top: 56px; z-index: 3; text-align: right; }
.specs dl { margin: 0; display: grid; gap: 12px; }
.specs dl div { display: grid; gap: 3px; }
.specs dt { font: 500 10.5px/1 var(--kit-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 0; font: 500 17px/1.1 var(--kit-grotesk); letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sample { display: inline-block; margin: 16px 0 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font: 500 10px/1 var(--kit-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.config {
  position: fixed; left: 50%; bottom: 40px; z-index: 3; translate: -50% 0;
  width: min(860px, calc(100vw - 80px)); box-sizing: border-box;
  display: grid; grid-template-columns: auto 1px auto 1px 1fr; align-items: center; gap: 0 26px;
  padding: 20px 22px 20px 28px;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.08);
  transition: background 0.8s, border-color 0.8s;
}
.rule { width: 1px; align-self: stretch; background: var(--line); }
.label { margin: 0 0 10px; font: 500 10.5px/1 var(--kit-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.cfg-finish { display: grid; grid-template-columns: auto; }
.swatches { display: flex; gap: 10px; }
.sw { position: relative; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25), inset -4px -6px 10px rgb(0 0 0 / 0.25), inset 3px 4px 6px rgb(255 255 255 / 0.25); transition: transform 0.2s; }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color 0.25s; }
.sw[aria-checked="true"]::after { border-color: var(--ink); }
.sw:hover { transform: scale(1.06); }
.sw-steel { background: linear-gradient(160deg, #eef0f2, #a5a9ae 55%, #d5d8db); }
.sw-black { background: linear-gradient(160deg, #3a3b3e, #151617 60%, #26272a); }
.sw-cream { background: linear-gradient(160deg, #fbf5ea, #e4d8c2 60%, #f1e8d8); }
.value { margin: 10px 0 0; font: 500 14px/1 var(--kit-grotesk); color: var(--ink); white-space: nowrap; }

.cfg-wood { display: grid; justify-items: start; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 15px; background: rgb(128 128 128 / 0.35); 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, #6b4428, #8a5a35); }
.switch[aria-checked="true"] i { transform: translateX(22px); }

.cfg-act { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.readout { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; }
.readout .label { grid-column: 1 / -1; }
.readout b { font: 500 30px/1 var(--kit-grotesk); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 2.1em; }
.readout small { font: 500 12px/1 var(--kit-mono); color: var(--ink-3); }
.buttons { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 23px; font: 500 14.5px/1 var(--kit-grotesk); white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-steam { border: 1px solid var(--line); color: var(--ink-2); }
.btn-steam svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.btn-steam[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-3); background: rgb(255 255 255 / 0.06); }
.btn-shot { background: var(--ink); color: var(--bg); padding: 0 22px 0 14px; }
.btn-shot:hover { filter: brightness(1.06); }
.ring { position: relative; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), rgb(128 128 128 / 0.35) 0); }
.ring i { position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.btn-shot.is-on { cursor: default; }

.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; }
.tip { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; padding: 9px 12px 10px; border-radius: 12px; background: rgb(20 16 14 / 0.78); color: #f5efe6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 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; }

@media (max-width: 1100px) and (min-aspect-ratio: 1/1) {
  h1 { font-size: 76px; }
}
.is-capturing .kit-hint { display: none; }
