/* $SEED — THE VOICE + THE HUNTER CLI (site/fx/voice.css). Everything is prefixed .vc- */

/* ---------- header controls ---------- */
.vc-dock{display:inline-flex;gap:6px;align-items:center}
.vc-voice,.vc-cli-btn{
  display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 9px;cursor:pointer;
  border:2px solid var(--ink);background:#fff;box-shadow:3px 3px 0 var(--ink);
  font-family:var(--stencil);font-weight:900;font-size:15px;letter-spacing:.06em;text-transform:uppercase;line-height:1;
  transition:transform .1s,box-shadow .1s,background .2s
}
.vc-voice:active,.vc-cli-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.vc-voice:hover,.vc-cli-btn:hover{background:var(--plate)}
.vc-cli-btn{font-family:var(--mono);font-weight:600;font-size:14px;letter-spacing:0;gap:2px;padding:0 8px;background:var(--ink);color:#fff}
.vc-cli-btn:hover{background:#2a2a2a}
.vc-cli-btn .vc-gt{color:var(--orange)}
.vc-cli-btn .vc-us{animation:vcBlink 1s steps(2) infinite}

/* the level meter: four bars that stand still when idle, jump while the vault talks, and lie slashed when off */
.vc-bars{display:inline-flex;align-items:flex-end;gap:2px;width:16px;height:14px;position:relative}
.vc-bars b{flex:1;background:var(--ink);height:30%;transform-origin:bottom;transition:height .25s}
.vc-bars b:nth-child(1){height:40%}.vc-bars b:nth-child(2){height:70%}.vc-bars b:nth-child(3){height:55%}.vc-bars b:nth-child(4){height:30%}
.vc-speaking .vc-bars b{background:var(--orange-d);animation:vcBar .5s ease-in-out infinite alternate}
.vc-speaking .vc-bars b:nth-child(2){animation-duration:.37s;animation-delay:-.1s}
.vc-speaking .vc-bars b:nth-child(3){animation-duration:.44s;animation-delay:-.25s}
.vc-speaking .vc-bars b:nth-child(4){animation-duration:.31s;animation-delay:-.05s}
@keyframes vcBar{from{height:18%}to{height:100%}}
.vc-off{color:var(--mute);background:repeating-linear-gradient(-45deg,#fff 0 5px,#ececea 5px 10px)}
.vc-off .vc-bars b{background:var(--mute);animation:none!important}
.vc-off .vc-bars::after{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:3px;background:var(--orange-d);transform:rotate(-35deg)}
.vc-speaking{box-shadow:3px 3px 0 var(--orange-d);border-color:var(--orange-d)}

/* subtitle plate: the line being spoken, printed */
.vc-sub{
  position:fixed;right:clamp(12px,3vw,32px);top:112px;z-index:45;pointer-events:none;
  display:flex;align-items:stretch;max-width:min(420px,calc(100vw - 24px));
  border:3px solid var(--ink);background:var(--plate);box-shadow:5px 5px 0 var(--ink);
  opacity:0;transform:translateY(-10px) rotate(.4deg);transition:opacity .22s,transform .32s cubic-bezier(.2,1.2,.3,1)
}
.vc-sub.vc-show{opacity:1;transform:none}
.vc-sub b{display:flex;align-items:center;padding:0 8px;background:var(--orange);color:#fff;font-family:var(--stencil);font-weight:900;font-size:14px;letter-spacing:.1em}
.vc-sub span{padding:7px 12px;font-family:var(--mono);font-size:13px;font-weight:600;color:var(--ink)}

/* ---------- the command strip ---------- */
.vc-cli{
  --vc-h:min(46vh,420px);
  position:fixed;left:0;right:0;bottom:0;z-index:55;
  display:flex;flex-direction:column;
  border-top:4px solid var(--ink);
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.22) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#d3d6d2,#bfc3bf);
  box-shadow:0 -10px 30px rgba(18,18,18,.22);
  transform:translateY(102%);
  transition:transform .34s cubic-bezier(.2,.9,.2,1),bottom .18s
}
.vc-cli.vc-open{transform:translateY(0)}
/* bodies and toasts step back while the strip is up */
body.vc-open{padding-bottom:min(46vh,420px)}
body.vc-open .toast{bottom:calc(min(46vh,420px) + 14px)}

.vc-bar{
  position:relative;display:flex;align-items:center;gap:12px;height:30px;padding:0 54px 0 56px;
  background:var(--ink);color:#fff;font-size:11px;overflow:hidden
}
.vc-bar::before,.vc-bar::after{content:"";position:absolute;top:0;bottom:0;width:40px;
  background:repeating-linear-gradient(-45deg,var(--ink) 0 8px,var(--yellow) 8px 16px)}
.vc-bar::before{left:0}.vc-bar::after{right:0}
.vc-bar-tag{font-family:var(--stencil);font-weight:900;font-size:16px;letter-spacing:.08em;color:var(--yellow);white-space:nowrap}
.vc-bar-status{font-family:var(--mono);font-size:11px;color:#cfd3cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.vc-bar-status.vc-hot{color:var(--yellow);font-weight:600}
.vc-bar-hint{margin-left:auto;font-family:var(--mono);font-size:10px;color:#9a9e9b;white-space:nowrap}
.vc-close{
  position:absolute;right:44px;top:3px;width:24px;height:24px;padding:0;cursor:pointer;z-index:2;
  border:2px solid #fff;background:var(--orange);color:#fff;font:900 16px/1 var(--body)
}
.vc-close:hover{background:var(--orange-d)}

.vc-log{
  flex:1;min-height:110px;max-height:calc(min(46vh,420px) - 76px);overflow:auto;overscroll-behavior:contain;
  margin:8px 10px 0;padding:10px 12px;
  border:3px solid var(--ink);border-bottom:0;background:#f3f4f1;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6),inset 4px 4px 0 rgba(0,0,0,.05);
  font-family:var(--mono);font-size:13px;line-height:1.5;color:var(--ink-2);
  white-space:pre-wrap;overflow-wrap:anywhere;scrollbar-width:thin
}
.vc-line{min-height:1.5em}
/* the line being typed carries a small orange block that vanishes when it finishes */
.vc-line:not(.vc-done)::after{content:"";display:inline-block;width:7px;height:.85em;margin-left:1px;background:var(--orange);vertical-align:-1px}
.vc-cmd{color:var(--ink);font-weight:600;margin-top:4px}
.vc-out{color:var(--ink-2)}
.vc-dim{color:var(--mute)}
.vc-err{color:var(--orange-d);font-weight:600}
.vc-ok{color:var(--won);font-weight:600}
.vc-hot{color:var(--orange-d);font-weight:600}
.vc-head.vc-line{color:var(--ink);font-weight:600;letter-spacing:.04em;margin-top:2px}
.vc-live{color:var(--orange-d);border-left:3px solid var(--orange);padding-left:6px;margin:2px 0}
.vc-live.vc-hot{background:#fff1ec}

.vc-in{
  display:flex;align-items:center;gap:8px;margin:0 10px 10px;height:46px;padding:0 6px 0 10px;
  border:3px solid var(--ink);background:#fff;box-shadow:5px 5px 0 var(--ink)
}
.vc-prompt{font-family:var(--mono);font-weight:600;font-size:15px;color:var(--orange-d);white-space:nowrap;user-select:none}
.vc-field{position:relative;flex:1;min-width:0;height:100%}
.vc-input{
  width:100%;height:100%;margin:0;padding:0 6px;border:0;outline:0;background:transparent;
  font-family:var(--mono);font-size:16px;font-weight:600;color:var(--ink);caret-color:transparent
}
.vc-input::placeholder{color:#c3c7c3;font-weight:400}
.vc-mirror{position:absolute;left:6px;top:0;visibility:hidden;white-space:pre;font-family:var(--mono);font-size:16px;font-weight:600;pointer-events:none}
.vc-caret{
  position:absolute;left:6px;top:50%;width:9px;height:19px;margin-top:-10px;background:var(--orange);
  opacity:0;pointer-events:none;transition:transform .04s linear
}
.vc-caret.vc-blink{opacity:1;animation:vcBlink 1.1s steps(2) infinite}
@keyframes vcBlink{50%{opacity:0}}
.vc-run{
  height:30px;padding:0 10px;cursor:pointer;border:2px solid var(--ink);background:var(--ink);color:var(--yellow);
  font-family:var(--stencil);font-weight:900;font-size:14px;letter-spacing:.08em
}
.vc-run:hover{background:var(--orange);color:#fff;border-color:var(--orange)}

/* "watch <vault>": the card gets an orange ring that pulses four times — a data attribute, so the core's re-render keeps it */
.vault[data-vc-watch]{outline:4px solid var(--orange);outline-offset:6px;animation:vcWatch 1s ease-out 4}
@keyframes vcWatch{0%{outline-offset:22px;outline-color:var(--yellow)}60%{outline-offset:6px;outline-color:var(--orange)}}

/* ---------- mobile ---------- */
@media (max-width:720px){
  /* on phones the core gives #mount-head its own full-width row: the buttons stay in it, same 34px as the sound toggle */
  .vc-voice .vc-lbl{display:none}
  .vc-voice,.vc-cli-btn{height:34px;padding:0 9px;justify-content:center;min-width:38px}
  .vc-sub{top:auto;bottom:150px;right:12px;max-width:calc(100vw - 24px)}
  .vc-cli{--vc-h:min(52vh,420px)}
  body.vc-open{padding-bottom:min(52vh,420px)}
  body.vc-open .toast{bottom:calc(min(52vh,420px) + 14px)}
  .vc-bar{padding:0 44px 0 46px;gap:8px}
  .vc-bar::before,.vc-bar::after{width:32px}
  .vc-bar-hint{display:none}
  .vc-close{right:36px}
  .vc-log{max-height:calc(min(52vh,var(--vc-vvh,100vh) - 20px) - 96px);font-size:12px;margin:6px 6px 0;padding:8px 9px}
  .vc-in{margin:0 6px 6px;height:44px;box-shadow:3px 3px 0 var(--ink)}
  .vc-prompt{font-size:14px}
}
@media (max-width:420px){
  .vc-log{font-size:11.5px}
}
