/* Layout: full-bleed 3D floor, HUD as warehouse signage pinned to the edges. */
:root {
  --graphite: #20252b;
  --panel: #2a3038;
  --panel-2: #353c46;
  --line: #4a525e;
  --ink: #eef0ea;
  --ink-dim: #a9b0b8;
  --safety: #ffc21a;
  --safety-ink: #1d1a12;
  --safety-shadow: #a37a00;
  --alert: #ff6a5a;
  --ok: #5fd08a;
  --font-display: "Saira Stencil One", Impact, "Arial Narrow Bold", sans-serif;
  --font-ui: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, var(--safety) 0 10px, var(--graphite) 10px 20px);
  color-scheme: dark;
}
/* Halloween skin: night purple and pumpkin orange. Set on <html data-skin>. */
:root[data-skin="halloween"] {
  --graphite: #150c20;
  --panel: #24173a;
  --panel-2: #33224d;
  --line: #4d3a6b;
  --ink: #f4ecff;
  --ink-dim: #b9a8d3;
  --safety: #ff8a1f;
  --safety-ink: #200b00;
  --safety-shadow: #9a4a00;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--graphite);
  color: var(--ink);
  font: 600 15px/1.3 var(--font-ui);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
#app { position: fixed; inset: 0; }
#view { display: block; width: 100%; height: 100%; touch-action: none; cursor: pointer; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }

.chip {
  background: var(--panel); border: 0; border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.level-chip {
  display: flex; align-items: stretch; padding: 0; cursor: pointer; overflow: hidden; min-width: 0;
}
.level-no {
  background: var(--safety); color: var(--safety-ink);
  font: 400 26px/1 var(--font-display); padding: 8px 10px 6px;
  font-variant-numeric: tabular-nums;
}
.level-name {
  padding: 0 14px; display: flex; align-items: center;
  font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.level-chip:hover .level-name, .level-chip:focus-visible .level-name { color: var(--safety); }

.meter { display: flex; background: var(--panel); border-radius: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.meter-cell { display: flex; flex-direction: column; align-items: center; padding: 5px 12px 4px; min-width: 56px; }
.meter-cell + .meter-cell { border-left: 1px solid var(--line); }
.meter-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.meter-val { font: 400 22px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.meter-val.over { color: var(--alert); }

.tools { display: flex; gap: 6px; margin-left: auto; }
.tool {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 0; border-radius: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.tool:hover { background: var(--panel-2); color: var(--safety); }
.tool:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.tool:disabled { opacity: .4; cursor: default; color: inherit; background: var(--panel); }
#btn-sound[aria-pressed="false"] .wave { display: none; }
button:focus-visible { outline: 2px solid var(--safety); outline-offset: 2px; }

.fit-btn {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.fit-btn:hover { color: var(--safety); }
.fit-btn svg { width: 20px; height: 20px; }
.ticket {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: stretch; background: var(--panel);
  border-radius: 4px; overflow: hidden; box-shadow: 0 3px 0 rgba(0,0,0,.35);
  transition: opacity .25s;
  pointer-events: none;
}
.ticket.empty { opacity: 0; }
.ticket-tag {
  flex: none; display: flex; align-items: center; padding: 0 12px;
  background: var(--hazard); color: var(--safety-ink);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  writing-mode: vertical-rl; transform: rotate(180deg); text-shadow: 0 0 3px var(--safety), 0 0 3px var(--safety);
}
.ticket-text { padding: 12px 16px; font-size: 16px; font-weight: 500; min-width: 0; }
.ticket.error .ticket-tag { background: var(--alert); text-shadow: none; }
.ticket.error .ticket-text { color: #ffd6d0; }

.loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 28px var(--font-display); color: var(--safety); letter-spacing: .04em;
  background: var(--graphite);
}

.overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(20, 23, 27, .62); backdrop-filter: blur(3px);
}
.card {
  position: relative; background: var(--panel); border-radius: 6px;
  padding: 28px 28px 24px; width: min(420px, 100%);
  box-shadow: 0 6px 0 rgba(0,0,0,.4);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--hazard); border-radius: 6px 6px 0 0; }
.card h2 { margin: 6px 0 6px; font: 400 40px/1 var(--font-display); letter-spacing: .02em; text-wrap: balance; }
.win-card { text-align: center; animation: drop-in .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes drop-in { from { transform: translateY(-24px) scale(.96); opacity: 0; } }
.win-line { color: var(--ink-dim); font-size: 18px; margin: 0 0 22px; }
.stamp {
  display: inline-block; margin-top: 10px; padding: 4px 12px 2px;
  border: 3px solid var(--safety); color: var(--safety); border-radius: 4px;
  font: 400 22px/1.1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-4deg);
}
.stamp.over { border-color: var(--ink-dim); color: var(--ink-dim); }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 4px; cursor: pointer; padding: 12px 22px;
  background: var(--safety); color: var(--safety-ink);
  font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--safety-shadow);
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--safety-shadow); }
.btn.ghost { background: var(--panel-2); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.4); }

.menu-card { width: min(560px, 100%); max-height: calc(100% - 8px); overflow-y: auto; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-head .tool { background: var(--panel-2); }
.brand { color: var(--safety); }
.menu-sub { color: var(--ink-dim); font-weight: 500; margin: 0 0 18px; max-width: 60ch; }
.chapters { display: flex; flex-direction: column; gap: 22px; }
.chapter h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 2px; padding-bottom: 6px; border-bottom: 2px solid var(--line);
  font: 400 22px/1.1 var(--font-display); letter-spacing: .03em;
}
.ch-count { font: 700 13px var(--font-ui); letter-spacing: .12em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.ch-sub { margin: 6px 0 10px; color: var(--ink-dim); font-weight: 500; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.lvl {
  position: relative; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 0; border-radius: 4px; padding: 8px 10px 9px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.lvl:hover:not(:disabled) { background: #404854; }
.lvl .n { font: 400 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.lvl .t { font-size: 13px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl .s { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.lvl.done .s { color: var(--ink); }
.lvl.par .s { color: var(--safety); }
.lvl.par::after { content: ""; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; background: var(--safety); transform: rotate(45deg); }
.lvl.current { outline: 2px solid var(--safety); outline-offset: 1px; }
.lvl:not(.done):not(.next) .n { color: var(--ink-dim); }
.keys { color: var(--ink-dim); font-size: 13px; font-weight: 500; margin: 18px 0 0; }

@media (max-width: 640px) {
  .hud-top { gap: 8px; }
  .tools { margin-left: 0; width: 100%; justify-content: flex-start; order: 3; }
  .level-name { font-size: 15px; max-width: 34vw; }
  .meter-cell { min-width: 46px; padding: 4px 8px 3px; }
  .tool { width: 42px; height: 42px; }
  .ticket-text { font-size: 15px; padding: 10px 12px; }
  .keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .win-card { animation: none; }
  .ticket { transition: none; }
}

/* ---- Workshop tiles in the level menu ---- */
.lvl.new { background: transparent; border: 2px dashed var(--line); box-shadow: none; }
.lvl.new .n { color: var(--safety); }
.lvl.new:hover { border-color: var(--safety); background: transparent; }
.lvl-wrap { position: relative; display: grid; min-width: 0; }
.lvl-wrap .lvl { padding-right: 34px; }
.lvl-edit {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 4px; cursor: pointer; color: var(--ink-dim);
}
.lvl-edit svg { width: 18px; height: 18px; }
.lvl-edit:hover { color: var(--safety); background: var(--panel); }
.workshop .lvl .n { font-size: 20px; }

/* ---- Level editor ---- */
/* Layout: floor grid on the left, tool rail on the right; stacks to one column on phones. */
.editor { place-items: start center; overflow-y: auto; }
.ed-card { width: min(1080px, 100%); padding: 24px 24px 20px; margin-block: auto; }
.ed-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ed-head h2 { margin: 6px 0; font-size: 34px; white-space: nowrap; }
.ed-name {
  flex: 1 1 180px; min-width: 0; padding: 9px 12px; border-radius: 4px; border: 2px solid var(--line);
  background: var(--graphite); color: var(--ink); font: 700 17px var(--font-ui); letter-spacing: .03em;
}
.ed-name:focus { outline: none; border-color: var(--safety); }
.ed-head .tool { background: var(--panel-2); }
.ed-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 16px; align-items: start; }
.ed-gridwrap {
  min-width: 0; min-height: 260px; display: grid; place-items: center; padding: 14px;
  background: var(--graphite); border-radius: 4px; overflow: auto;
}
.ed-grid { display: grid; gap: 2px; touch-action: none; user-select: none; }
.ed-cell {
  --c: transparent;
  position: relative; width: var(--cs); height: var(--cs); border-radius: 2px; cursor: crosshair;
  display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 3px;
}
.ed-cell.floor { background: #b9bab4; }
.ed-cell.low { background: #b9bab4 repeating-linear-gradient(-45deg, rgba(255,194,26,.75) 0 4px, rgba(29,31,34,.55) 4px 8px); }
.ed-cell.wall { background: #3b424b; box-shadow: inset 0 0 0 1px #4d5560; }
.ed-cell.order { box-shadow: inset 0 0 0 3px var(--safety); }
.ed-cell.keepclear { background: #b9bab4 repeating-linear-gradient(-45deg, rgba(255,106,90,.85) 0 3px, transparent 3px 8px); box-shadow: inset 0 0 0 3px var(--alert); }
.ed-cell.fork::after {
  content: ""; position: absolute; inset: 18%; background: #ec7a1c; border-radius: 3px;
  clip-path: polygon(50% 100%, 0 25%, 30% 25%, 30% 0, 70% 0, 70% 25%, 100% 25%);
}
.ed-cell:hover { outline: 2px solid var(--ink); outline-offset: -1px; z-index: 1; }
.stk { display: flex; flex-direction: column-reverse; gap: 2px; width: 40%; }
.pip {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 2px; background: var(--c);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
  font: 700 9px/1 var(--font-ui); color: rgba(255,255,255,.85); display: grid; place-items: center; font-style: normal;
}
.goal .pip { background: transparent; box-shadow: inset 0 0 0 2px var(--c); background-image: linear-gradient(var(--c), var(--c)); background-size: 40% 40%; background-repeat: no-repeat; background-position: center; }
.c-r { --c: #e2483b; } .c-b { --c: #3d7bd9; } .c-y { --c: #f2bd2c; } .c-g { --c: #3fae68; } .c-k { --c: #8b949e; } .c-w { --c: #bfe7f2; }
.ed-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ed-group { display: flex; flex-direction: column; gap: 8px; }
.ed-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.ed-label.inline { margin-right: 2px; }
.ed-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-tool, .ed-step, .ed-seg {
  border: 0; border-radius: 4px; cursor: pointer; background: var(--panel-2); color: var(--ink);
  padding: 8px 6px; font-size: 14px; font-weight: 700; letter-spacing: .04em; min-height: 38px;
}
.ed-tool:hover, .ed-step:hover, .ed-seg:hover { background: #404854; }
.ed-tool[aria-pressed="true"], .ed-seg[aria-pressed="true"] { background: var(--safety); color: var(--safety-ink); }
.ed-step:disabled { opacity: .4; cursor: default; }
.ed-step.confirm { background: var(--alert); color: var(--safety-ink); }
.ed-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ed-sw {
  aspect-ratio: 1; border-radius: 4px; cursor: pointer; border: 0; background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.ed-sw.goal { background: var(--panel-2); box-shadow: inset 0 0 0 3px var(--c); background-image: linear-gradient(var(--c), var(--c)); background-size: 36% 36%; background-repeat: no-repeat; background-position: center; }
.ed-sw[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.ed-help { margin: 0; color: var(--ink-dim); font-size: 13px; font-weight: 500; }
.ed-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ed-row .ed-step, .ed-dim .ed-step { width: 34px; padding: 6px 0; }
.ed-row .ed-step.wide { width: auto; padding: 6px 14px; }
.ed-size { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ed-dim { display: flex; align-items: center; gap: 6px; }
.ed-dim .ed-label, .ed-row > .ed-label:first-child { min-width: 82px; }
.ed-sw { display: grid; place-items: center; font: 700 16px/1 var(--font-ui); color: rgba(255,255,255,.9); }
.ed-sw.start.c-y, .ed-sw.start.c-w { color: rgba(0,0,0,.55); }
.ed-sw.c-r::after { content: "●"; } .ed-sw.c-b::after { content: "■"; } .ed-sw.c-y::after { content: "▲"; }
.ed-sw.c-g::after { content: "✚"; } .ed-sw.c-k::after { content: "≡"; } .ed-sw.c-w::after { content: "◇"; }
.ed-sw.goal::after { display: none; }
.ed-val { min-width: 22px; text-align: center; font: 400 20px var(--font-display); font-variant-numeric: tabular-nums; margin-right: 8px; }
.ed-seg { padding: 6px 12px; }
.ed-status { margin-top: 16px; min-height: 44px; display: flex; flex-direction: column; gap: 8px; }
.ed-probs { margin: 0; padding-left: 18px; color: #ffd6d0; font-weight: 500; }
.ed-probs li + li { margin-top: 2px; }
.ed-msg { margin: 0; padding: 10px 14px; border-radius: 4px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-msg.ok { background: rgba(95,208,138,.14); color: #bff0cf; }
.ed-msg.bad { background: rgba(255,106,90,.14); color: #ffd6d0; }
.ed-msg.warn { background: rgba(255,194,26,.12); color: #ffe7a8; }
.ed-msg.busy { background: var(--panel-2); color: var(--ink); }
.ed-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ed-actions .btn { padding: 11px 18px; font-size: 15px; }
.ed-actions .btn:disabled { opacity: .4; cursor: default; transform: none; }
.ed-dialog { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(20,23,27,.7); }
.ed-dlg-card { width: min(520px, 100%); }
.ed-dlg-card h3 { margin: 8px 0 6px; font: 400 26px var(--font-display); }
.ed-code {
  width: 100%; margin-top: 10px; padding: 10px; border-radius: 4px; border: 2px solid var(--line); resize: vertical;
  background: var(--graphite); color: var(--ink); font: 500 13px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; word-break: break-all;
}
.ed-code:focus { outline: none; border-color: var(--safety); }
.ed-dlg-msg { min-height: 1.3em; margin: 8px 0 12px; color: var(--safety); font-weight: 600; }
@media (max-width: 820px) {
  .ed-body { grid-template-columns: 1fr; }
  .ed-card { padding: 20px 14px 16px; }
  .ed-head h2 { font-size: 28px; }
  .ed-gridwrap { padding: 8px; }
}

/* ---- Garage ---- */
/* Docked right on wide screens so the forklift stays visible; a bottom sheet on phones. */
.garage {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 100%); z-index: 5;
  display: flex; flex-direction: column; background: var(--panel);
  box-shadow: -6px 0 0 rgba(0,0,0,.25);
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) 18px;
}
.garage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--hazard); }
.garage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 6px; }
.garage-head h2 { margin: 0; font: 400 34px/1 var(--font-display); }
.garage-head .tool { background: var(--panel-2); }
.garage-body { overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 18px 2px 4px 6px; }
.g-sec { display: flex; flex-direction: column; gap: 10px; }
.g-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.theme-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  padding: 10px 12px 12px; border-radius: 4px; border: 2px solid transparent; background: var(--panel-2); min-width: 0;
}
.theme-card:hover { border-color: var(--line); }
.theme-card[aria-pressed="true"] { border-color: var(--safety); }
.tc-dots { display: flex; gap: 4px; margin-bottom: 4px; }
.tc-dots i { width: 16px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.tc-name { font: 400 20px/1.1 var(--font-display); }
.tc-blurb { font-size: 13px; font-weight: 500; color: var(--ink-dim); line-height: 1.3; }
.g-swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
#beacon-row { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 75%; }
.g-sw {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px var(--panel);
}
.g-sw.off { background: var(--panel-2); position: relative; }
.g-sw.off::after { content: ""; position: absolute; inset: 45% 18%; background: var(--ink-dim); transform: rotate(-45deg); border-radius: 2px; }
.g-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.g-custom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  padding: 6px 6px 6px 12px; border-radius: 4px; background: var(--panel-2); font-size: 14px; font-weight: 600;
}
.g-custom.on { box-shadow: inset 0 0 0 2px var(--safety); }
.g-custom input { width: 44px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.g-toppers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.g-top {
  border: 0; border-radius: 4px; cursor: pointer; background: var(--panel-2); color: var(--ink);
  padding: 10px 8px; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-align: left;
}
.g-top:hover { background: var(--line); }
.g-top[aria-pressed="true"] { background: var(--safety); color: var(--safety-ink); }
.g-reset { align-self: flex-start; padding: 9px 16px; font-size: 14px; }
@media (max-width: 640px) {
  .garage { top: auto; left: 0; width: 100%; max-height: 50%; box-shadow: 0 -6px 0 rgba(0,0,0,.25); border-radius: 10px 10px 0 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .garage::before { inset: 0 0 auto 0; width: auto; height: 6px; border-radius: 10px 10px 0 0; }
  .garage-head h2 { font-size: 28px; }
  .garage-body { padding-top: 12px; gap: 16px; }
}

/* While the perfect run plays, the controls step back. */
body.replaying .tools .tool:not(#btn-sound) { opacity: .35; }
body.replaying #view { cursor: pointer; }
