/* Engineer A: pointer family and tutorial kit. Colours and type from tokens.css. */

/* ------------------------------------------------------------ pointer */
.tap-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.arm-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 0.15s ease; }
.arm-svg.is-away { opacity: 0; }
.arm-body { filter: drop-shadow(1px 3px 3px rgba(0, 0, 0, 0.34)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }

/* ------------------------------------------------------- shared bits */
.a-kbd {
  display: inline-block; min-width: 1.5em; padding: 1px 5px 2px; border-radius: 5px; text-align: center;
  font: 600 0.92em/1.25 var(--font-round); color: var(--paper);
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 1px 0 rgba(0, 0, 0, 0.4);
}
.a-pill {
  position: absolute; left: 50%; top: 66px; translate: -50% 0; display: flex; align-items: center; gap: 9px;
  padding: 8px 16px 9px 13px; border-radius: var(--r-pill); white-space: nowrap; pointer-events: none !important;
  font: 600 13px/1 var(--font-round); color: rgba(245, 242, 234, 0.92);
  background: rgba(24, 24, 27, 0.72);
}
.a-pill .a-quiet { font: 500 12.5px/1 var(--font-body); color: rgba(245, 242, 234, 0.58); }
.a-pill .a-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--red)); box-shadow: 0 0 8px var(--dot, var(--red)); }
.a-pill svg { display: block; }

.a-coach {
  position: absolute; width: 252px; padding: 12px 15px 13px; border-radius: 14px;
  background: rgba(24, 24, 27, 0.8); color: var(--paper); transform-origin: 0 50%;
  border-left: 0.5px solid var(--glass-edge);
}
.a-coach::before {   /* a yellow tab: it is uzeful talking */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--yellow);
}
.a-coach-right { translate: 22px -50%; }
.a-coach-left { translate: calc(-100% - 22px) -50%; transform-origin: 100% 50%; }
.a-coach-above { translate: -50% calc(-100% - 22px); transform-origin: 50% 100%; }
.a-coach-above.is-pinned { translate: -50% 0; }
.a-coach-below { translate: -50% 22px; transform-origin: 50% 0; }
.a-coach-label { display: block; margin-bottom: 4px; font: 700 11px/1 var(--font-round); letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.a-coach-text { margin: 0; font-size: 13.5px; line-height: 1.42; color: rgba(245, 242, 234, 0.9); }

/* ---------------------------------------------------------------- draw */
.layer-overlays > .a-draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.a-stroke { filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.38)); }
.a-stroke-highlighter { filter: none; mix-blend-mode: multiply; }
.a-step-num { font: 800 10px var(--font-round); font-variant-numeric: tabular-nums; }

.a-chip {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 2px; padding: 7px 8px 7px 9px;
  border-radius: 16px; background: rgba(24, 24, 27, 0.74); pointer-events: none !important;
  opacity: 0; scale: 0.94; transform-origin: 0 0; transition: opacity 0.08s ease-out, scale 0.08s ease-out;
}
.a-chip.is-shown { opacity: 1; scale: 1; transition: opacity 0.18s ease-out, scale 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
.a-chip-keys {
  margin-right: 6px; padding: 4px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font: 600 11px/1 var(--font-mono); color: rgba(255, 255, 255, 0.55);
}
.a-chip-cell {
  width: 38px; height: 40px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: rgba(255, 255, 255, 0.82);
}
.a-chip-cell.is-on { background: var(--ink, var(--red)); color: #fff; box-shadow: 0 1px 6px color-mix(in srgb, var(--ink, var(--red)) 45%, transparent); }
.a-chip-n { font: 600 10px/1 var(--font-mono); opacity: 0.45; }
.a-chip-cell.is-on .a-chip-n { opacity: 0.85; }

/* ---------------------------------------------------------- keystrokes */
.a-keys {
  position: absolute; left: 50%; bottom: 104px; translate: -50% 0; display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 9px; border-radius: 16px; background: rgba(20, 20, 22, 0.78); pointer-events: none !important;
  opacity: 0; scale: 0.94; transition: opacity 0.2s ease, scale 0.2s ease;
}
.a-keys.is-shown { opacity: 1; scale: 1; }
.a-keys-sep { width: 1.5px; height: 18px; border-radius: 1px; background: rgba(255, 255, 255, 0.14); }
.a-combo { display: flex; align-items: center; gap: 4px; }
.a-cap {
  position: relative; min-width: 30px; height: 28px; padding: 0 7px; box-sizing: border-box; margin-bottom: 2.5px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 7px;
  font: 700 14px/1 var(--font-mono); color: #F7F4EC; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #4A4A52, #37373E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2.5px 0 #050506, 0 4px 6px rgba(0, 0, 0, 0.35);
}
.a-cap-mod, .a-cap-glyph { min-width: 29px; padding: 0; font: 600 14.5px/1 var(--font-round); }
.a-cap-word { font-size: 12.5px; letter-spacing: 0.02em; padding: 0 10px; }
.a-times { margin-left: 2px; font: 800 13px/1 var(--font-round); color: var(--yellow); font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- spotlight */
.layer-overlays > .a-spot { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; }
.a-spot.is-on { opacity: 1; }
.a-spot-hole { position: absolute; left: 0; top: 0; border-radius: 0; will-change: transform; }

/* --------------------------------------------------------------- laser */
.stage.is-lasering .layer-pointer > .pointer, .stage.is-lasering .layer-pointer > .arm-svg { opacity: 0 !important; }
.layer-overlays > .a-laser { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* ----------------------------------------------------------- countdown */
.a-count {
  --d: min(340px, 42vh);
  position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%; display: grid; place-items: center; pointer-events: none !important;
  background: radial-gradient(circle, rgba(28, 28, 32, 0.86), rgba(16, 16, 18, 0.9) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; scale: 0.92; transition: opacity 0.2s ease, scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.a-count.is-shown { opacity: 1; scale: 1; }
.a-count-ring { position: absolute; inset: 6.5%; width: 87%; height: 87%; overflow: visible; rotate: -90deg; }
.a-count-track { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 3.6; }
.a-count-arc { fill: none; stroke: var(--yellow); stroke-width: 3.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 200, 61, 0.45)); }
.a-count-n {
  font: 900 calc(var(--d) * 0.56)/1 var(--font-round); color: #F7F4EC; font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); translate: 0 -2%;
}
.a-rec {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px;
  padding: 14px 24px 15px 20px; border-radius: var(--r-pill); pointer-events: none !important;
  font: 800 20px/1 var(--font-round); color: var(--paper); background: rgba(24, 24, 27, 0.8);
  opacity: 0; scale: 0.9;
}
.a-rec.is-shown { animation: a-rec 1.1s ease forwards; }
.a-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
@keyframes a-rec { 0% { opacity: 0; scale: 0.9; } 18% { opacity: 1; scale: 1.04; } 30% { scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; scale: 1; } }

/* -------------------------------------------------------- frame guides */
.layer-overlays > .a-guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.a-guides.is-on { opacity: 1; }
.a-guide-shade { fill: rgba(20, 20, 22, 0.5); }
.a-guide-thirds { fill: none; stroke: rgba(245, 242, 234, 0.32); stroke-width: 1; }
.a-guide-border { fill: none; stroke: rgba(245, 242, 234, 0.92); stroke-width: 1.5; }
.a-guide-ticks { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: square; }
.a-guide-chip {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; pointer-events: none !important;
  opacity: 0; transition: opacity 0.2s ease; font: 500 12px/1 var(--font-body); color: rgba(245, 242, 234, 0.85);
}
.a-guide-chip.is-on { opacity: 1; }
.a-guide-chip b { padding: 5px 9px 6px; border-radius: 7px; background: var(--yellow); color: var(--ink); font: 700 13px/1 var(--font-round); }
.a-guide-chip span { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .a-keys, .a-count, .a-chip, .a-chip.is-shown { transition: opacity 0.15s ease; scale: 1; }
}

/* ------------------------------------------------------------ settings */
.win-settings .win-body { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.as { padding: 4px 26px 26px; }
.as-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.as-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--yellow-hi), var(--yellow-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.as-h { margin: 0; font: 800 23px/1.1 var(--font-round); letter-spacing: -0.012em; color: var(--paper); }
.as-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--paper-dim); }

.as-pad {
  position: relative; height: 216px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.4px) 0 0 / 18px 18px, #19191C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 10px 30px rgba(0, 0, 0, 0.35);
}
.as-live {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 9px; border-radius: var(--r-pill);
  font: 700 10.5px/1 var(--font-round); letter-spacing: 0.2em; color: rgba(245, 242, 234, 0.66); background: rgba(255, 255, 255, 0.06);
}
.as-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.as-pad-hint { position: absolute; left: 14px; bottom: 12px; font-size: 12.5px; color: rgba(245, 242, 234, 0.55); }
.as-sheet {
  position: absolute; right: 26px; top: 26px; width: 168px; height: 168px; padding: 18px 16px; box-sizing: border-box; border-radius: 6px;
  background: #F5F2EA; rotate: 2deg; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 9px;
}
.as-sheet i { display: block; height: 4px; border-radius: 2px; background: rgba(20, 20, 22, 0.16); }
.as-sheet i:first-child { height: 7px; width: 62%; background: rgba(20, 20, 22, 0.7); margin-bottom: 4px; }
.as-sheet i:nth-child(3) { width: 84%; } .as-sheet i:nth-child(5) { width: 70%; }
.as-pad-art { position: absolute; left: 0; top: 0; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35)); }
.as-pad-art svg { display: block; }
.as-pad-arm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }

.as-section-h {
  display: flex; align-items: center; gap: 12px; margin: 20px 2px 9px;
  font: 700 13px/1 var(--font-round); color: rgba(245, 242, 234, 0.7);
}
.as-section-h::after { content: ""; flex: 1; height: 0.5px; background: rgba(255, 255, 255, 0.1); }
.as-card { padding: 4px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08); }

.as-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 12px 0 14px; }
.as-tile {
  appearance: none; height: 98px; padding: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 9px; padding-bottom: 11px; overflow: hidden; position: relative;
  background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(255, 255, 255, 0.08); color: rgba(245, 242, 234, 0.72);
  font: 650 13px/1 var(--font-round);
}
.as-tile:hover { background: rgba(255, 255, 255, 0.07); }
.as-tile[aria-checked="true"] { border: 2px solid var(--yellow); background: rgba(255, 255, 255, 0.075); color: var(--paper); }
.as-tile-art { height: 46px; display: grid; place-items: center; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.as-tile-art svg { display: block; }
.as-tile[data-style="arm"] .as-tile-art { position: absolute; inset: 0; height: auto; display: block; filter: none; }
.as-tile-arm { width: 100%; height: 78px; display: block; }
.as-tile-label { position: relative; padding: 2px 7px; border-radius: 6px; }
.as-tile[data-style="arm"] .as-tile-label { background: rgba(24, 24, 27, 0.72); }

.as-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
.as-card > .as-row:first-child, .as-group > .as-row:nth-child(2) { border-top: 0; }
.as-row-title { font: 650 14px/1.25 var(--font-round); color: var(--paper); }
.as-row-note { margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: rgba(245, 242, 234, 0.58); }
.as-arm-only { display: none; }
.is-arm .as-arm-only { display: flex; }
.as-ctl { display: flex; align-items: center; gap: 12px; flex: none; }
.as-value { min-width: 52px; text-align: right; font: 600 13px/1 var(--font-mono); color: rgba(245, 242, 234, 0.72); font-variant-numeric: tabular-nums; }

.as-swatches { display: flex; gap: 10px; flex: none; }
.as-swatch {
  appearance: none; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 0; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.as-swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 2.5px #232327, 0 0 0 4.5px var(--yellow); }

.as-switch {
  appearance: none; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 12px; position: relative;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1); transition: background 0.18s ease;
}
.as-knob {
  position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #F7F4EC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: translate 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.as-switch[aria-checked="true"] { background: var(--yellow); }
.as-switch[aria-checked="true"] .as-knob { translate: 16px 0; background: #fff; }

.as-slider { position: relative; width: 210px; height: 24px; touch-action: none; outline: none; }
.as-track { position: absolute; left: 11px; right: 11px; top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.as-fill { position: absolute; inset: 0; background: var(--yellow); transform-origin: 0 50%; }
.as-thumb {
  position: absolute; top: 1px; width: 22px; height: 22px; margin-left: 0; border-radius: 50%; background: #fff;
  translate: calc(-50% * 0) 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.as-slider .as-thumb { left: 0; transform: translateX(calc(-50% + 11px)); }
.as-slider:focus-visible .as-thumb, .as-switch:focus-visible, .as-tile:focus-visible, .as-swatch:focus-visible, .as-seg-b:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.as-seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.055); flex: none; }
.as-seg-b { appearance: none; border: 0; background: none; padding: 6px 12px; border-radius: 6px; font: 650 12.5px/1 var(--font-round); color: var(--paper-dim); }
.as-seg-b[aria-checked="true"] { background: rgba(255, 255, 255, 0.14); color: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }

.as-group { padding: 4px 0 2px; }
.as-group + .as-group { border-top: 0.5px solid rgba(255, 255, 255, 0.1); }
.as-group-h { padding: 10px 0 2px; font: 700 11px/1 var(--font-round); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 242, 234, 0.45); }
.as-kbd { font: 500 12px/1 var(--font-body); letter-spacing: 0.06em; color: rgba(245, 242, 234, 0.5); }
.as-foot { margin: 14px 2px 0; font-size: 12px; color: rgba(245, 242, 234, 0.45); }
