:root {
  --bg: #0b0d10;
  --steel: #8a93a3;
  --steel-dark: #3a424f;
  --chrome: linear-gradient(145deg, #dfe6f0, #9aa3b2 40%, #6b7382 70%, #c5ccd8);
  --enamel: #1a1f28;
  --accent: #ff6a3d;
  --gas: #3dd68c;
  --warn: #f5c542;
  --font: "Space Grotesk", system-ui, sans-serif;
  --display: "Russo One", "RussoOneGameloft", Impact, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.pech-body {
  font-family: var(--font);
  color: #e8edf5;
  background: var(--bg);
  min-height: 100vh;
  padding: 16px 16px 48px;
  overflow-x: hidden;
}
.kitchen-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 20% -10%, #3a2218 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 10%, #1a2838 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px);
}

.pech-top, .pech-main { position: relative; z-index: 1; }
.pech-top {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  justify-content: space-between;
}
.back {
  color: #9aa3b2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.back:hover { color: #fff; }
.pech-brand h1 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pech-brand em { font-style: normal; color: var(--accent); }
.epic-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 700;
}
.sandbox-badge {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed #4a5568;
  color: #9aa3b2;
}

.pech-main {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .pech-main { grid-template-columns: 1fr; }
}

.panel {
  background: linear-gradient(180deg, #171c24, #12161c);
  border: 1px solid #2c3544;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b95a7;
}
.stats { margin: 0; display: grid; gap: 8px; }
.stats > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #0d1117;
  border-radius: 8px;
  border: 1px solid #1e2633;
}
.stats dt { margin: 0; color: #8b95a7; font-size: 0.72rem; }
.stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #e8edf5;
  text-align: right;
}
.stats dd.on { color: var(--gas); }
.stats dd.off { color: #ff8f78; }
.stats dd.warn { color: var(--warn); }
.st-msg {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--warn);
  line-height: 1.4;
}
.key-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #9aa3b2;
  line-height: 1.4;
}
.key-hint b { color: var(--warn); }
.quick-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.btn-auto {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #3dd68c, #1f9a5c);
  color: #062416;
}
.btn-auto-alt {
  background: linear-gradient(180deg, #f5d76e, #e0a800);
  color: #1a1408;
}
.btn-auto:hover { filter: brightness(1.06); }

/* ignition key */
.ignition {
  max-width: 720px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.ignition.keys-row {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
@media (max-width: 900px) {
  .ignition.keys-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ignition,
  .ignition.keys-row { grid-template-columns: 1fr; }
}
.owner-key .owner-bow {
  border-color: #f5c542;
  background: #c9a227;
  box-shadow: inset 0 0 0 5px #12161c;
}
.owner-slot.is-armed {
  border-color: var(--warn);
  box-shadow:
    inset 0 0 20px rgba(0,0,0,.5),
    0 0 20px rgba(245,197,66,.35);
}
.owner-slot.is-armed .ign-lock { color: var(--warn); }
.owner-key.is-in {
  border-color: var(--warn);
  background: #1a160c;
}
.owner-key.is-in .ign-label { color: var(--warn); }
.btn-sandbox-reset,
.btn-auto.btn-sandbox-reset {
  background: linear-gradient(180deg, #5a6a80, #3a4456);
  color: #e8edf5;
  border: 1px solid #8b95a7;
}
.btn-sandbox-reset:hover,
.btn-auto.btn-sandbox-reset:hover {
  filter: brightness(1.08);
  border-color: var(--warn);
}
#btn-sandbox-reset-top {
  border: 1px solid #8b95a7;
  background: linear-gradient(180deg, #3a4456, #2a303a);
  color: #e8edf5;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ign-key {
  border: 1px dashed #5a6578;
  background: #12161c;
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, background .2s, transform .25s;
}
.ign-key:hover { border-color: var(--warn); }
.ign-key.is-in {
  border-style: solid;
  border-color: var(--gas);
  background: #0d1a14;
  transform: translateX(8px);
}
.ign-key-body {
  position: relative;
  width: 140px;
  height: 44px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  transform-origin: 12% 50%;
}
.ign-key.is-in .ign-key-body {
  transform: translateX(28px) rotate(90deg);
}
.ign-bow {
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border: 4px solid #c5ccd8;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #12161c;
  background: #8a93a3;
}
.ign-shaft {
  position: absolute;
  left: 26px; top: 50%;
  width: 90px; height: 10px;
  margin-top: -5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #dfe6f0, #8a93a3 55%, #6b7382);
}
.ign-teeth {
  position: absolute;
  left: 78px; top: 50%;
  width: 40px; height: 18px;
  margin-top: -2px;
  background:
    linear-gradient(#8a93a3, #8a93a3) 0 0 / 8px 8px no-repeat,
    linear-gradient(#8a93a3, #8a93a3) 12px 0 / 8px 12px no-repeat,
    linear-gradient(#8a93a3, #8a93a3) 24px 0 / 8px 6px no-repeat,
    linear-gradient(180deg, #dfe6f0, #8a93a3) 0 0 / 40px 6px no-repeat;
}
.ign-label {
  font-size: 0.72rem;
  color: #8b95a7;
  font-weight: 600;
  text-align: center;
}
.ign-key.is-in .ign-label { color: var(--gas); }
.ign-slot {
  border-radius: 14px;
  border: 2px solid #3a4456;
  background:
    radial-gradient(circle at 50% 50%, #0a0c10 0 18%, transparent 19%),
    linear-gradient(180deg, #2a303a, #151920);
  min-height: 88px;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,.5);
}
.ign-slot.is-armed {
  border-color: var(--gas);
  box-shadow:
    inset 0 0 20px rgba(0,0,0,.5),
    0 0 20px rgba(61,214,140,.35);
}
.ign-lock {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6578;
  font-weight: 700;
}
.ign-slot.is-armed .ign-lock { color: var(--gas); }
.manual { margin-top: 12px; }
.manual summary {
  cursor: pointer;
  color: #9aa3b2;
  font-size: 0.8rem;
  font-weight: 600;
}
.manual-body {
  margin-top: 10px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}
.manual-body h3 {
  margin: 12px 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.manual-body h3:first-child { margin-top: 0; }
.manual-body p,
.manual ol,
.manual ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.75rem;
  color: #8b95a7;
  line-height: 1.45;
}
.manual-body p { padding-left: 0; }
.manual b { color: #e8edf5; font-family: var(--mono); }

/* вЂ”вЂ”вЂ” stove layout + side rail вЂ”вЂ”вЂ” */
.stove-stage { position: relative; }
.stove-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}
.side-rail {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-block {
  background: linear-gradient(180deg, #1c222c, #12161d);
  border: 1px solid #3a4456;
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b95a7;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
}
.side-btn {
  border: 1px solid #4a5568;
  background: #1a2030;
  color: #e8edf5;
  border-radius: 10px;
  padding: 11px 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

/* gas feed levers */
.lever-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lever {
  border: 1px solid #4a5568;
  background: linear-gradient(180deg, #1a2030, #12161d);
  border-radius: 12px;
  padding: 10px 8px 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lever:hover { border-color: var(--accent); }
.lever.is-on {
  border-color: var(--gas);
  background: linear-gradient(180deg, #14301f, #0d1a14);
  box-shadow: 0 0 14px rgba(61,214,140,.25);
}
.lever-track {
  grid-row: 1 / span 2;
  width: 28px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0a0c10, #2a303a);
  border: 1px solid #5a6578;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0,0,0,.6);
}
.lever-arm {
  position: absolute;
  left: 4px; right: 4px;
  top: 4px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(180deg, #dfe6f0, #8a93a3 55%, #6b7382);
  box-shadow: 0 2px 4px rgba(0,0,0,.45);
  transform-origin: 50% 50%;
  transition: top .28s cubic-bezier(.2,.8,.2,1), background .2s;
}
.lever.is-on .lever-arm {
  top: 24px;
  background: linear-gradient(180deg, #7dffb5, #3dd68c 55%, #1f9a5c);
}
.lever-cap {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8edf5;
  text-align: left;
}
.lever-state {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #8b95a7;
  font-weight: 700;
  text-align: left;
}
.lever.is-on .lever-state { color: var(--gas); }

.mode-block { align-items: center; }
.mode-wrap { width: 100%; align-items: center; }
.mode-knob {
  width: 72px !important;
  height: 72px !important;
}
.mode-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 0.62rem;
  color: #6a7382;
  line-height: 1.35;
}
.mode-legend li {
  padding: 2px 0 2px 10px;
  position: relative;
}
.mode-legend li::before {
  content: "В·";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.side-btn:hover { border-color: var(--accent); }
.side-btn.is-on {
  border-color: var(--gas);
  background: #0f2418;
  color: var(--gas);
}
.side-btn-both {
  border-color: #6a5a40;
  background: #241c12;
  color: var(--warn);
}
.side-btn-off { color: #c98a8a; }
.igt-block { align-items: center; }
.igt-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  --level: 0;
}
.igt-dial {
  position: relative;
  width: 108px;
  height: 108px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #4a5568, #1a1f28 55%, #0a0c10);
  box-shadow:
    inset 0 0 0 2px #6a7588,
    0 6px 14px rgba(0,0,0,.45);
  cursor: grab;
  touch-action: none;
  padding: 0;
}
.igt-dial:active { cursor: grabbing; }
.igt-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed transparent;
  pointer-events: none;
}
.igt-ring.r1 {
  inset: 8px;
  border-color: #7a8496;
  border-style: solid;
  border-top-color: var(--accent);
  border-right-color: transparent;
  transform: rotate(calc(var(--igt1, 0) * 1deg));
}
.igt-ring.r2 {
  inset: 18px;
  border: 2px dotted #5a6578;
  border-left-color: var(--warn);
  transform: rotate(calc(var(--igt2, 0) * 1deg));
}
.igt-ring.r3 {
  inset: 28px;
  border: 1px solid #3a4456;
  border-bottom: 3px solid var(--gas);
  transform: rotate(calc(var(--igt3, 0) * 1deg));
}
.igt-hub {
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
}
.igt-hub i {
  width: 3px;
  height: 14px;
  background: #1a1f28;
  border-radius: 1px;
  transform: translateY(-4px);
}
.igt-tick {
  position: absolute;
  top: 4px; left: 50%;
  width: 3px; height: 10px;
  margin-left: -1.5px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255,106,61,.6);
}
.igt-lamp {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #5a2a30;
  background: #2a1216;
  color: #c98a8a;
}
.igt-lamp.is-sync {
  border-color: var(--gas);
  background: #0f2418;
  color: var(--gas);
  box-shadow: 0 0 12px rgba(61,214,140,.35);
}
.igt-hint {
  margin: 0;
  font-size: 0.62rem;
  color: #6a7382;
  text-align: center;
  line-height: 1.3;
}
.igt-dial-wrap.is-on .igt-dial {
  box-shadow:
    inset 0 0 0 2px #6a7588,
    0 0 18px rgba(61,214,140,.35),
    0 6px 14px rgba(0,0,0,.45);
}

.stove {
  flex: 1 1 auto;
  background: linear-gradient(180deg, #2a303a, #151920 55%, #0f1218);
  border: 2px solid #4a5568;
  border-radius: 18px 18px 10px 10px;
  padding: 10px 14px 8px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08);
  max-width: 720px;
  margin: 0;
  min-width: 0;
}

/* mechanical gas meter */
.gas-meter {
  margin: 0 0 10px;
  border-radius: 10px;
  border: 1px solid #3a4456;
  background: linear-gradient(180deg, #2e3542, #171b22);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.gas-meter.is-running {
  border-color: #5a6a40;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 16px rgba(245,197,66,.15);
}
.gas-meter.is-long {
  animation: meterRemind 1.1s ease-in-out infinite;
}
@keyframes meterRemind {
  0%, 100% { box-shadow: 0 0 8px rgba(255,106,61,.2); }
  50% { box-shadow: 0 0 18px rgba(255,106,61,.55); }
}
.meter-plate {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 12px;
  align-items: center;
}
.meter-brand {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b95a7;
  font-weight: 700;
}
.meter-brand small {
  letter-spacing: 0.04em;
  color: #5a6578;
  text-transform: none;
  font-weight: 600;
}
.meter-reels {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  font-family: var(--mono);
}
.reel {
  width: 22px;
  height: 32px;
  border-radius: 3px;
  background: linear-gradient(180deg, #0a0c10, #1a1f28 40%, #0a0c10);
  border: 1px solid #4a5568;
  box-shadow: inset 0 0 6px rgba(0,0,0,.7);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.reel b {
  font-size: 1.15rem;
  font-weight: 700;
  color: #dfe6f0;
  line-height: 1;
  transition: transform .12s steps(2);
}
.gas-meter.is-running .reel b {
  animation: reelTick .35s steps(2) infinite;
}
@keyframes reelTick {
  0% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
  100% { transform: translateY(1px); }
}
.reel-dec {
  background: linear-gradient(180deg, #1a1208, #2a1c0c 40%, #1a1208);
  border-color: #6a5a40;
}
.reel-dec b { color: var(--warn); }
.reel-dot {
  font-size: 1.1rem;
  color: #c5ccd8;
  padding: 0 1px 2px;
  font-weight: 700;
}
.meter-unit {
  margin-left: 4px;
  font-size: 0.7rem;
  color: #8b95a7;
  font-weight: 700;
  padding-bottom: 4px;
}
.meter-spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #4a5568;
  background: #0e1116;
  display: grid;
  place-items: center;
  position: relative;
}
.spin-disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    conic-gradient(#3dd68c 0 25%, #1a1f28 0 50%, #f5c542 0 75%, #1a1f28 0);
  box-shadow: inset 0 0 0 3px #0e1116;
  transition: transform .2s linear;
}
.gas-meter.is-running .spin-disc {
  animation: spinGas .7s linear infinite;
}
@keyframes spinGas {
  to { transform: rotate(360deg); }
}
.meter-session {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 72px;
}
.session-label {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7382;
  font-weight: 700;
}
.session-time {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8edf5;
  letter-spacing: 0.04em;
}
.gas-meter.is-running .session-time { color: var(--warn); }
.gas-meter.is-long .session-time { color: var(--accent); }
.session-note {
  font-size: 0.62rem;
  color: #6a7382;
  font-weight: 600;
  text-align: right;
}
@media (max-width: 720px) {
  .stove-layout { flex-direction: column; align-items: stretch; }
  .side-rail {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-block { flex: 1 1 140px; }
  .meter-plate { grid-template-columns: 1fr auto; }
  .meter-session { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; gap: 10px; }
}

.cooktop {
  background: linear-gradient(180deg, #1c2129, #12161d);
  border-radius: 12px;
  padding: 16px 18px 12px;
  border: 1px solid #2c3544;
  position: relative;
}
.cooktop-plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 8px 20px 18px;
}
.brand-badge {
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #c5ccd8;
  opacity: 0.7;
}
.brand-badge small { display: block; letter-spacing: 0.08em; font-size: 0.62rem; color: var(--accent); }

.burner {
  --fire: 0;
  position: relative;
  width: min(180px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .25s ease;
}
.burner.is-on { transform: scale(calc(1 + var(--fire) * 0.08)); }
.heat-halo {
  position: absolute; inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,40, calc(var(--fire) * 0.45)) 0%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  filter: blur(6px);
  z-index: 0;
}
.burner.is-on .heat-halo {
  opacity: 1;
  animation: haloPulse calc(0.9s - var(--fire) * 0.4s) ease-in-out infinite alternate;
}
.grate-ring {
  position: absolute; inset: 8%;
  border-radius: 50%;
  border: 3px solid #5a6578;
  box-shadow:
    inset 0 0 0 10px #1a1f28,
    inset 0 0 0 13px #6a7588,
    0 0 0 4px #2a303a;
  background:
    radial-gradient(circle at 50% 50%, #0e1116 0 28%, transparent 29%),
    repeating-conic-gradient(from 0deg, #4a5568 0 8deg, #2a303a 8deg 16deg);
  z-index: 1;
  transition: box-shadow .2s;
}
.burner-cap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 28%; height: 28%;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: 0 2px 4px rgba(0,0,0,.4);
  font-size: 0.65rem;
  font-weight: 800;
  color: #1a1f28;
  display: grid; place-items: center;
  z-index: 5;
}
.flame-layer, .flame-core {
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  z-index: 2;
  transition: opacity .2s, transform .2s;
}
.flame-layer.outer {
  top: 40%;
  width: calc(22% + var(--fire) * 28%);
  height: calc(28% + var(--fire) * 32%);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 75%, rgba(255,60,10,.15), rgba(255,40,0,.55) 50%, transparent 72%);
  filter: blur(2px);
}
.flame-layer.mid {
  top: 42%;
  width: calc(16% + var(--fire) * 20%);
  height: calc(24% + var(--fire) * 26%);
  border-radius: 45% 45% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #ffb347, #ff6a1a 55%, rgba(255,40,0,.0) 78%);
  filter: blur(0.5px);
  z-index: 3;
}
.flame-core {
  top: 44%;
  width: calc(10% + var(--fire) * 12%);
  height: calc(16% + var(--fire) * 18%);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 65%, #fffce8, #ffe566 40%, #ff9a3d 70%, transparent 78%);
  z-index: 4;
  filter: blur(0.3px);
}
.flame-sparks {
  position: absolute; inset: 18%;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 30% 40%, #ffe566 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 35%, #ff9a3d 0 1.2px, transparent 2px),
    radial-gradient(circle at 45% 25%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 60% 50%, #ff6a1a 0 1.4px, transparent 2px);
  animation: sparks 0.55s steps(2) infinite;
}
.burner.is-on .flame-layer,
.burner.is-on .flame-core {
  opacity: calc(0.55 + var(--fire) * 0.45);
  transform: translate(-50%, -50%) scale(1);
  animation: flicker calc(0.35s - var(--fire) * 0.15s) ease-in-out infinite alternate;
}
.burner.is-on .flame-layer.outer { animation-duration: calc(0.45s - var(--fire) * 0.18s); }
.burner.is-on .flame-sparks {
  opacity: calc(var(--fire) * 0.9);
}
.burner.is-on .grate-ring {
  box-shadow:
    inset 0 0 0 10px #1a1f28,
    inset 0 0 0 13px #6a7588,
    0 0 calc(12px + var(--fire) * 28px) rgba(255,100,40, calc(0.25 + var(--fire) * 0.55)),
    0 0 0 4px #2a303a;
}
@keyframes flicker {
  from { transform: translate(-50%, -50%) scale(0.92) rotate(-3deg); }
  to { transform: translate(-50%, -54%) scale(1.1) rotate(3deg); }
}
@keyframes haloPulse {
  from { transform: scale(0.92); opacity: 0.7; }
  to { transform: scale(1.08); opacity: 1; }
}
@keyframes sparks {
  0% { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(-10px) scale(1.15); opacity: 0.35; }
}

.burner-knobs {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  padding: 8px 20px 12px;
  position: relative;
  z-index: 20;
}
.burner-knobs .knob-wrap {
  z-index: 21;
  pointer-events: auto;
}
.burner-knobs .knob {
  width: 68px;
  height: 68px;
  touch-action: none;
  pointer-events: auto;
}

.oven-body {
  margin-top: 12px;
  background: linear-gradient(180deg, #222833, #141820);
  border-radius: 10px;
  border: 1px solid #2c3544;
  padding: 10px 10px 8px;
  position: relative;
}
.oven-window {
  height: 160px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0a0c10, #151a22);
  border: 3px solid #3a4456;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
}
.oven-rack {
  position: absolute;
  left: 8%; right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #5a6578 0 8px, transparent 8px 12px);
  opacity: 0.55;
}
.rack-1 { top: 38%; }
.rack-2 { top: 62%; transition: top .35s ease; }
.oven-heat {
  position: absolute;
  left: 10%; right: 10%; bottom: 8%;
  height: 10px;
  border-radius: 4px;
  background: #2a303a;
  transition: background .3s, box-shadow .3s;
}
.oven-heat.on {
  background: linear-gradient(90deg, #ff3d1a, #ff8a3d, #ff3d1a);
  box-shadow: 0 0 20px rgba(255,80,30,.6);
  animation: heatPulse 1.2s ease-in-out infinite;
}
@keyframes heatPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.oven-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(255,90,30,0) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.oven-glow.on {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 85%, rgba(255,90,30,.35), transparent 55%);
}
.oven-label {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #5a6578;
  font-weight: 700;
  z-index: 3;
}
.oven-hud {
  position: absolute;
  left: 10px; right: 10px; bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}
.oven-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(20,24,32,.75);
  color: #8b95a7;
  border: 1px solid #3a4456;
}
.oven-status.is-on {
  color: #062416;
  background: rgba(61,214,140,.9);
  border-color: #3dd68c;
  box-shadow: 0 0 16px rgba(61,214,140,.55);
  animation: statusBlink 1.2s ease-in-out infinite;
}
.oven-temp-hud, .oven-timer-hud {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #e8edf5;
  background: rgba(10,12,16,.7);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #2c3544;
}
.oven-temp-hud.is-hot { color: #ffb347; border-color: #ff6a3d; }
.oven-timer-hud.is-run { color: var(--warn); border-color: #a08030; }
@keyframes statusBlink {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.oven-embers {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 20% 70%, rgba(255,200,80,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 60%, rgba(255,120,40,.4) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 75%, rgba(255,240,180,.35) 0 1.5px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,80,20,.3) 0 2px, transparent 3px);
  transition: opacity .3s;
}
.oven-window.has-fire .oven-embers {
  opacity: 1;
  animation: emberFloat 1.1s ease-in-out infinite alternate;
}
.oven-window.has-fire {
  box-shadow:
    inset 0 0 40px rgba(255,90,30,.35),
    inset 0 -20px 50px rgba(255,60,10,.25),
    0 0 30px rgba(255,90,30,.25);
  border-color: #c45a30;
}
.oven-window.has-fire .oven-label { color: #ffb347; }
@keyframes emberFloat {
  from { transform: translateY(4px); opacity: 0.65; }
  to { transform: translateY(-6px); opacity: 1; }
}
.oven-handle {
  display: block;
  width: 46%;
  margin: 8px auto 0;
  border: 0;
  border-radius: 6px;
  padding: 8px;
  background: var(--chrome);
  color: #1a1f28;
  font-weight: 800;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: 0 4px 0 #5a6578;
}
.oven-handle:active { transform: translateY(2px); box-shadow: 0 2px 0 #5a6578; }
.oven-body.door-open .oven-window {
  transform: perspective(600px) rotateX(-18deg);
  transform-origin: bottom center;
  border-color: var(--accent);
}

/* knobs */
.knob-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding: 8px 4px 4px;
}
@media (max-width: 640px) {
  .knob-row { grid-template-columns: repeat(4, 1fr); }
}
.knob-wrap {
  --level: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  transition: transform .2s ease;
  transform: scale(calc(1 + var(--level) * 0.28));
  z-index: calc(1 + var(--level) * 10);
}
.knob-wrap.is-on {
  filter: drop-shadow(0 0 calc(4px + var(--level) * 10px) rgba(255,120,40, calc(0.2 + var(--level) * 0.55)));
}
.knob-wrap label {
  font-size: 0.58rem;
  text-align: center;
  color: #8b95a7;
  line-height: 1.2;
  font-weight: 600;
}
.knob-wrap.is-on label { color: #ffc49a; }
.knob-val {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--warn);
}
.knob {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #6a7588;
  background: var(--chrome);
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,.35),
    0 4px 8px rgba(0,0,0,.35);
  transition: box-shadow .15s, border-color .15s;
}
.knob:active { cursor: grabbing; }
.knob:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.knob-mark {
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 12px;
  margin-left: -1.5px;
  background: #1a1f28;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
  z-index: 2;
}
.knob-glow {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,40, calc(var(--level) * 0.55)), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 0;
}
.knob-wrap.is-on .knob-glow { opacity: 1; animation: knobPulse 1s ease-in-out infinite alternate; }
.knob-wrap.is-on .knob {
  border-color: #ff8a3d;
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,.35),
    0 0 calc(6px + var(--level) * 14px) rgba(255,100,40, calc(0.25 + var(--level) * 0.5));
}
.burner-knob { border-color: #7a889c; }
.code-knob {
  border-color: var(--accent);
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,.35),
    0 0 12px rgba(255,90,54,.35);
}
.knob-wrap.is-active .knob {
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,.35),
    0 0 14px rgba(61,214,140,.45);
  border-color: var(--gas);
}
.knob-wrap.is-locked .knob {
  filter: grayscale(0.5) brightness(0.75);
}
@keyframes knobPulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.15); opacity: 1; }
}

/* oven fire when on */
.oven-window.has-fire::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: 14%;
  height: 28%;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(255,180,60,.55), transparent 55%),
    radial-gradient(ellipse at 70% 85%, rgba(255,80,20,.5), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(255,240,180,.4), transparent 45%);
  filter: blur(2px);
  animation: ovenFire 0.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ovenFire {
  from { opacity: 0.65; transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1.15); }
}

.stove-legs {
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
  margin-top: 6px;
}
.stove-legs span {
  width: 18px; height: 22px;
  background: linear-gradient(180deg, #5a6578, #2a303a);
  border-radius: 0 0 4px 4px;
}

/* code terminal */
.code-terminal {
  margin: 16px auto 0;
  max-width: 640px;
  background: #0a120e;
  border: 1px solid #1f6b45;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.code-terminal[hidden] { display: none !important; }
.term-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #123322;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gas);
}
.term-bar button {
  border: 0; background: #3a2230; color: #ffb4c0;
  width: 24px; height: 24px; border-radius: 4px; cursor: pointer;
}
.term-hint {
  margin: 8px 10px;
  font-size: 0.72rem;
  color: #6a9a7a;
}
.term-display {
  margin: 0 10px;
  padding: 12px;
  background: #06100a;
  border: 1px solid #1f6b45;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--gas);
  min-height: 1.6em;
  letter-spacing: 0.06em;
  outline: none;
  cursor: text;
}
.term-display:focus {
  border-color: var(--warn);
  box-shadow: 0 0 0 2px rgba(245,197,66,.25);
}
.caret { opacity: 0.7; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-chars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 10px;
}
.term-chars button {
  border: 1px solid #1f6b45;
  background: #0d1c14;
  color: var(--gas);
  font-family: var(--mono);
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.term-chars button:hover { background: #153826; }
.term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}
.term-actions button {
  flex: 1 1 auto;
  min-width: 90px;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #1f6b45;
  color: #e8fff0;
}
.term-actions #term-back { background: #3a4456; }
.term-actions #term-clear { background: #5a2a30; }
.term-actions .term-auto,
.term-actions #term-auto,
.term-actions #term-autolimit {
  background: linear-gradient(180deg, #3dd68c, #1f9a5c);
  color: #062416;
}
.term-actions #term-autolimit {
  background: linear-gradient(180deg, #f5d76e, #e0a800);
  color: #1a1408;
}
.term-log {
  margin: 0 10px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #8bca9a;
  min-height: 1.2em;
}

/* ——— SMS gate + 90s phone + valve + water ——— */
.sms-gate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 20px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #3a4456;
  background: linear-gradient(180deg, #1a2030, #12161d);
}
.sms-gate.is-ok { border-color: rgba(61,214,140,.45); }
.sms-gate.is-locked {
  border-color: #3a6a9a;
  box-shadow: 0 0 24px rgba(80,160,220,.2);
}
.sms-controls h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.sms-lead {
  margin: 0 0 12px;
  color: #8b95a7;
  font-size: 0.82rem;
}
.sms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.btn-start-use {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #3dd68c, #1f9a5c);
  color: #062416;
}
.btn-start-use:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-start-use.is-done {
  background: #1a2a22;
  color: var(--gas);
  border: 1px solid var(--gas);
}
.valve {
  border: 1px dashed #5a6578;
  background: #10141a;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  transition: border-color .2s, background .2s, transform .2s;
}
.valve:disabled { opacity: 0.5; cursor: not-allowed; }
.valve:not(:disabled):hover { border-color: var(--warn); }
.valve.is-in {
  border-style: solid;
  border-color: var(--gas);
  background: #0d1a14;
}
.valve-body {
  position: relative;
  width: 54px;
  height: 54px;
}
.valve-screw {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #c5ccd8 0 12%, #6b7382 0 25%, #c5ccd8 0 37%, #6b7382 0 50%, #c5ccd8 0 62%, #6b7382 0 75%, #c5ccd8 0 87%, #6b7382 0);
  box-shadow: inset 0 0 0 6px #1a1f28, 0 2px 6px rgba(0,0,0,.45);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.valve.is-in .valve-screw { transform: rotate(420deg); }
.valve-stem {
  position: absolute;
  left: 50%; bottom: -2px;
  width: 10px; height: 14px;
  margin-left: -5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8a93a3, #4a5568);
}
.valve-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9aa3b2;
  text-align: left;
  max-width: 140px;
  line-height: 1.25;
}
.valve.is-in .valve-label { color: var(--gas); }
.sms-panel label {
  display: block;
  font-size: 0.72rem;
  color: #8b95a7;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sms-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#sms-input {
  flex: 1 1 120px;
  min-width: 0;
  border: 1px solid #4a5568;
  border-radius: 8px;
  background: #0a0c10;
  color: #e8edf5;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 12px;
}
#sms-input:disabled { opacity: 0.45; }
#btn-sms-enter {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #2a3548;
  color: #e8edf5;
}
#btn-sms-enter:disabled { opacity: 0.45; cursor: not-allowed; }
#btn-sms-enter:not(:disabled):hover { background: #3a4a62; }
.sms-tries {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #6a7382;
}
.sms-tries.is-warn { color: var(--accent); }
.sms-status {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #9aa3b2;
  min-height: 1.2em;
}

.phone90 {
  width: 168px;
  flex-shrink: 0;
}
.phone90-shell {
  background: linear-gradient(160deg, #3a424f, #1a1f28 55%, #0e1116);
  border-radius: 22px 22px 28px 28px;
  padding: 12px 12px 10px;
  border: 2px solid #5a6578;
  box-shadow:
    0 16px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.phone90-ear {
  width: 42px; height: 6px;
  margin: 0 auto 10px;
  border-radius: 4px;
  background: #0a0c10;
  box-shadow: inset 0 0 0 1px #4a5568;
}
.phone90-screen {
  background: #031a0a;
  border: 3px solid #1a2e20;
  border-radius: 6px;
  min-height: 132px;
  padding: 8px 8px 10px;
  position: relative;
  box-shadow: inset 0 0 18px rgba(0,255,80,.12);
  font-family: var(--mono);
  color: #39ff14;
  text-shadow: 0 0 4px rgba(57,255,20,.45);
}
.phone90-statusbar {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(57,255,20,.25);
  padding-bottom: 3px;
}
.phone90-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 5.4em;
}
.phone90-cursor {
  position: absolute;
  right: 8px; bottom: 6px;
  font-size: 0.7rem;
  animation: phoneBlink 1s steps(1) infinite;
  opacity: 0.85;
}
@keyframes phoneBlink {
  0%, 49% { opacity: 0.9; }
  50%, 100% { opacity: 0; }
}
.phone90-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 10px 2px 6px;
}
.phone90-keys span {
  height: 10px;
  border-radius: 3px;
  background: #2a303a;
  border: 1px solid #4a5568;
}
.phone90-brand {
  text-align: center;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: #6a7382;
  font-weight: 700;
}

.stove { position: relative; overflow: hidden; }
.water-flood {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.water-surface {
  position: absolute;
  left: -10%; right: -10%;
  bottom: 0;
  height: 78%;
  background:
    linear-gradient(180deg, rgba(120,200,255,.15), rgba(40,120,180,.55) 35%, rgba(20,70,120,.82));
  animation: waterRise 1.4s ease-out both, waterWave 2.4s ease-in-out infinite;
  box-shadow: inset 0 8px 20px rgba(200,240,255,.25);
}
.water-label {
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #e8f6ff;
  text-shadow: 0 2px 10px rgba(0,40,80,.6);
  z-index: 2;
}
.water-label small {
  display: block;
  margin-top: 6px;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0.9;
}
@keyframes waterRise {
  from { height: 0%; opacity: 0.2; }
  to { height: 78%; opacity: 1; }
}
@keyframes waterWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.stove.is-flooded {
  border-color: #4a7aaa;
  filter: saturate(0.7);
}
@media (max-width: 720px) {
  .sms-gate { grid-template-columns: 1fr; }
  .phone90 { width: 100%; max-width: 200px; margin: 0 auto; }
}

/* ——— boot: micro + MSK sync ——— */
.boot-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #3a4456;
  background: linear-gradient(180deg, #161c28, #10141a);
}
.boot-gate.is-ready { border-color: rgba(61,214,140,.5); }
.boot-gate.is-locked { border-color: #3a6a9a; opacity: 0.85; }
.boot-gate h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 0.95rem;
}
.boot-lead {
  margin: 0 0 10px;
  color: #8b95a7;
  font-size: 0.78rem;
}
.micro-lever { width: 100%; }
.boot-micro-status {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #6a7382;
}
.msk-clock-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
}
.msk-clock {
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: grab;
  touch-action: none;
  background: transparent;
}
.msk-clock:disabled { opacity: 0.45; cursor: not-allowed; }
.msk-clock:not(:disabled):active { cursor: grabbing; }
.msk-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #2a3344, #0e1218 62%);
  border: 3px solid #5a6578;
  box-shadow:
    inset 0 0 0 2px #1a1f28,
    0 8px 18px rgba(0,0,0,.45);
}
.msk-clock.is-sync .msk-face {
  border-color: var(--gas);
  box-shadow:
    inset 0 0 0 2px #1a1f28,
    0 0 18px rgba(61,214,140,.4),
    0 8px 18px rgba(0,0,0,.45);
}
.msk-tick {
  position: absolute;
  left: 50%; top: 8px;
  width: 2px; height: 8px;
  margin-left: -1px;
  background: #8b95a7;
  transform-origin: 50% 58px;
  transform: rotate(calc(var(--i) * 30deg));
}
.msk-nums b {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px;
  font-size: 0.62rem;
  color: #c5ccd8;
  font-weight: 700;
  transform: rotate(calc((var(--n)) * 30deg)) translateY(-48px) rotate(calc(var(--n) * -30deg));
  display: grid;
  place-items: center;
}
.msk-hand {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px;
  height: 42px;
  margin-left: -2px;
  margin-top: -42px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff8a3d, #c45a30);
  transform-origin: 50% 100%;
  box-shadow: 0 0 6px rgba(255,106,61,.45);
  transition: background .2s;
}
.msk-clock.is-sync .msk-hand {
  background: linear-gradient(180deg, #7dffb5, #3dd68c);
  box-shadow: 0 0 8px rgba(61,214,140,.55);
}
.msk-hub {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: #e8edf5;
  box-shadow: 0 0 0 2px #1a1f28;
}
.msk-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.msk-lamp {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #5a2a30;
  background: #2a1216;
  color: #c98a8a;
}
.msk-lamp.is-sync {
  border-color: var(--gas);
  background: #0f2418;
  color: var(--gas);
  box-shadow: 0 0 12px rgba(61,214,140,.35);
}
.msk-val, .msk-now {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #e8edf5;
  font-weight: 700;
}
.msk-now { color: #8b95a7; font-size: 0.75rem; }
@media (max-width: 720px) {
  .boot-gate { grid-template-columns: 1fr; }
}

/* ——— special spool ——— */
.boot-gate {
  grid-template-columns: 1.1fr 1fr 1fr;
}
.boot-spool { min-width: 0; }
.spool-unit {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #3a4456;
  background: #0e1218;
}
.spool-unit.is-charged { border-color: var(--warn); }
.spool-unit.is-running {
  border-color: var(--gas);
  box-shadow: 0 0 16px rgba(61,214,140,.25);
}
.spool-dial {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: grab;
  touch-action: none;
  position: relative;
  background:
    radial-gradient(circle at 40% 35%, #3a4456, #12161d 60%);
  box-shadow:
    inset 0 0 0 3px #5a6578,
    0 6px 14px rgba(0,0,0,.4);
}
.spool-dial:active { cursor: grabbing; }
.spool-coil {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #c45a30 0 8deg, #2a1a10 8deg 16deg);
  box-shadow: inset 0 0 0 6px #1a1f28;
  transition: transform .08s linear;
}
.spool-unit.is-running .spool-coil {
  animation: spoolSpin .55s linear infinite;
  background:
    repeating-conic-gradient(from 0deg, #3dd68c 0 8deg, #0f2418 8deg 16deg);
}
@keyframes spoolSpin {
  to { transform: rotate(360deg); }
}
.spool-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.4);
  z-index: 2;
}
.spool-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.spool-bar {
  height: 8px;
  border-radius: 999px;
  background: #1a1f28;
  border: 1px solid #3a4456;
  overflow: hidden;
}
.spool-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c45a30, #f5c542);
  transition: width .12s linear;
}
.spool-unit.is-running .spool-bar i {
  background: linear-gradient(90deg, #1f9a5c, #3dd68c);
}
.spool-charge {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8edf5;
}
.btn-spool-start,
.btn-spool-stop {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-spool-start {
  background: linear-gradient(180deg, #f5d76e, #e0a800);
  color: #1a1408;
}
.btn-spool-start:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-spool-stop {
  background: #5a2a30;
  color: #ffd0d0;
}
.spool-status {
  font-size: 0.68rem;
  color: #8b95a7;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .boot-gate { grid-template-columns: 1fr; }
}

/* ——— start pedal ——— */
.pedal-dock {
  max-width: 720px;
  margin: 14px auto 0;
}
.pedal {
  width: 100%;
  border: 1px dashed #5a6578;
  background: #12161c;
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  touch-action: none;
  user-select: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pedal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pedal-dock.is-armed .pedal:not(:disabled) {
  border-color: var(--warn);
}
.pedal:not(:disabled):hover { border-color: var(--accent); }
.pedal.is-down {
  border-style: solid;
  border-color: var(--gas);
  background: #0d1a14;
  box-shadow: 0 0 22px rgba(61,214,140,.3);
}
.pedal-plate {
  position: relative;
  width: min(280px, 100%);
  height: 78px;
  perspective: 400px;
}
.pedal-hinge {
  position: absolute;
  left: 12%; right: 12%;
  top: 8px;
  height: 8px;
  border-radius: 4px;
  background: #5a6578;
}
.pedal-pad {
  position: absolute;
  left: 8%; right: 8%;
  top: 18px;
  height: 48px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #4a5568, #2a303a 55%, #1a1f28);
  border: 2px solid #6a7588;
  box-shadow: 0 10px 0 #0a0c10, 0 14px 18px rgba(0,0,0,.45);
  transform-origin: 50% 0%;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.pedal.is-down .pedal-pad {
  transform: rotateX(28deg) translateY(8px);
  border-color: var(--gas);
  box-shadow: 0 4px 0 #0a0c10, 0 8px 12px rgba(0,0,0,.4);
  background: linear-gradient(180deg, #2a6a48, #1a4030 55%, #0f2418);
}
.pedal-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9aa3b2;
  text-align: center;
}
.pedal.is-down .pedal-label { color: var(--gas); }
.pedal-hint {
  font-size: 0.7rem;
  color: #6a7382;
  font-weight: 600;
}

.pedal-gas-bar {
  width: min(280px, 100%);
  height: 10px;
  border-radius: 999px;
  background: #1a1f28;
  border: 1px solid #3a4456;
  overflow: hidden;
}
.pedal-gas-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3a6aaa, #3dd68c);
  transition: width .1s linear;
}
.pedal-dock.is-low .pedal-gas-bar i {
  background: linear-gradient(90deg, #c45a30, #f5c542);
}
.pedal-gas-val {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8edf5;
}
.pedal.has-gas { border-color: rgba(61,214,140,.45); }
.stats dd.warn { color: var(--warn); }
