:root {
  --bg: #000;
  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.3);
  --cyan-strong: rgba(0, 229, 255, 0.72);
  --red: #ff355d;
  --pink: #ff5cc8;
  --yellow: #ffe66d;
  --green: #7cffb2;
  --blue-dim: rgba(0, 84, 110, 0.25);
  --eye-size: clamp(4.9rem, 13vw, 8.5rem);
  --eye-gap: clamp(3.1rem, 9vw, 8rem);
  --mouth-w: clamp(3.2rem, 8vw, 5.7rem);
  --intensity: 0.7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 40, 55, 0.25), transparent 34%), #000;
  color: #fff;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 24px;
  isolation: isolate;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: -2;
}
.stage::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.08), transparent 18%),
    radial-gradient(circle at 70% 60%, rgba(255, 92, 200, 0.045), transparent 20%);
  filter: blur(20px);
}
.stage::after {
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle, black, transparent 68%);
  opacity: .45;
  z-index: -3;
}

.face-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.8rem);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, filter;
  transform: translate3d(var(--face-x, 0px), var(--face-y, 0px), 0) scale(var(--face-scale, 1));
  transition: filter 280ms ease, opacity 280ms ease;
  filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.25));
}

.eyes-wrapper {
  display: flex;
  gap: var(--eye-gap);
  align-items: center;
  justify-content: center;
}

.eye-tracker {
  display: grid;
  place-items: center;
  width: calc(var(--eye-size) * 1.12);
  height: calc(var(--eye-size) * 1.12);
}

.eye-shape {
  width: var(--eye-size);
  height: var(--eye-size);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 28px rgba(0, 229, 255, 0.55),
    0 0 80px rgba(0, 229, 255, 0.18),
    inset 0 0 22px rgba(255,255,255,.2),
    inset 0 -10px 26px rgba(0,40,60,.22);
  transform-origin: 50% 50%;
  transition:
    width 220ms cubic-bezier(.2,.9,.2,1),
    height 220ms cubic-bezier(.2,.9,.2,1),
    border-radius 220ms cubic-bezier(.2,.9,.2,1),
    background-color 220ms ease,
    box-shadow 220ms ease,
    rotate 220ms ease,
    transform 120ms ease;
}

.eye-shape::before {
  content: "";
  position: absolute;
  inset: 12% 18% auto auto;
  width: 32%;
  height: 25%;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
  filter: blur(1px);
}

.eye-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.82), rgba(255,255,255,.42) 35%, rgba(255,255,255,.12) 70%, transparent 72%);
  transform: translate(calc(-50% + var(--eye-x, 0px)), calc(-50% + var(--eye-y, 0px)));
  opacity: .75;
  transition: opacity 170ms ease, width 220ms ease, height 220ms ease;
}

.heart-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 46%;
  transform: translate(-50%, -45%) rotate(-45deg) scale(.65);
  background: var(--pink);
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255, 92, 200, .9));
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,1.5,.35,1);
}
.heart-shape::before,
.heart-shape::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}
.heart-shape::before { top: -50%; left: 0; }
.heart-shape::after { left: 50%; top: 0; }

.cheeks {
  position: absolute;
  display: flex;
  gap: calc(var(--eye-gap) + var(--eye-size) * .72);
  transform: translateY(calc(var(--eye-size) * .78));
  pointer-events: none;
}
.cheek {
  width: clamp(1.7rem, 4vw, 3rem);
  height: clamp(.55rem, 1.4vw, .95rem);
  border-radius: 999px;
  background: rgba(255, 92, 200, .55);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.mouth-tracker { display: grid; place-items: center; min-height: clamp(2rem, 5vw, 3.2rem); }
.mouth-shape {
  width: var(--mouth-w);
  height: clamp(1.2rem, 3vw, 2rem);
  border: clamp(.31rem, .8vw, .48rem) solid transparent;
  border-bottom-color: currentColor;
  color: var(--cyan);
  border-radius: 50%;
  filter: drop-shadow(0 .35rem .7rem rgba(0, 229, 255, .38));
  transform-origin: 50% 50%;
  transition: width 210ms ease, height 210ms ease, border-color 210ms ease, filter 210ms ease, transform 100ms linear, color 210ms ease;
}

.status-text, .heard-text, .debug-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  max-width: min(88vw, 780px);
  color: rgba(255,255,255,.64);
  letter-spacing: .02em;
  pointer-events: none;
}
.status-text { bottom: 3.5rem; font-size: .94rem; }
.heard-text { bottom: 1.8rem; font-size: .8rem; color: rgba(255,255,255,.38); }
.debug-text { top: 1rem; font-size: .72rem; color: rgba(124,255,178,.7); }
.clean .status-text, .clean .heard-text, .clean .debug-text { opacity: 0; }

.camera-video, .hidden-canvas {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.human-debug-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  object-fit: cover;
  transition: opacity .2s ease;
}

body.show-human-overlay .human-debug-canvas {
  opacity: .78;
}

body.show-human-overlay .face-container {
  opacity: .28;
}

.permission-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 30;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,229,255,.14), transparent 28%),
    rgba(0,0,0,.82);
  backdrop-filter: blur(20px);
  padding: 18px;
}
.permission-panel[hidden] { display: none; }
.permission-card {
  width: min(92vw, 460px);
  padding: 28px;
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8,22,28,.78), rgba(0,0,0,.86));
  box-shadow: 0 26px 90px rgba(0,0,0,.55), 0 0 60px rgba(0,229,255,.12);
  text-align: center;
}
.permission-face { display: flex; gap: 22px; justify-content: center; margin-bottom: 18px; }
.permission-face span {
  width: 36px;
  height: 36px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,229,255,.7);
  animation: permissionBlink 3s infinite;
}
.permission-face span:nth-child(2) { animation-delay: .08s; }
.permission-kicker {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .28em;
  margin: 0 0 10px;
}
.permission-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.04;
}
.permission-card p {
  margin: 0 auto 18px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}
.permission-note { font-size: .78rem; color: rgba(255,255,255,.44) !important; margin-top: 14px !important; }
.primary-button, .ghost-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  min-width: 180px;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.primary-button {
  background: var(--cyan);
  color: #001016;
  box-shadow: 0 0 25px rgba(0,229,255,.3);
}
.ghost-button {
  margin-left: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.primary-button:hover, .ghost-button:hover { transform: translateY(-1px); }
.primary-button:active, .ghost-button:active { transform: translateY(1px) scale(.99); }

/* Emotion states */
.emotion-listening {
  --face-scale: 1.035;
  filter: drop-shadow(0 0 48px rgba(0, 229, 255, .48));
}
.emotion-listening .eye-shape { width: calc(var(--eye-size) * 1.07); height: calc(var(--eye-size) * 1.07); }
.emotion-thinking .eye-shape,
.emotion-serious .eye-shape {
  height: calc(var(--eye-size) * .34);
  border-radius: 999px;
}
.emotion-thinking .mouth-shape,
.emotion-serious .mouth-shape {
  width: calc(var(--mouth-w) * .66);
  height: .55rem;
  border-bottom-color: var(--cyan);
}
.emotion-speaking .mouth-shape { height: clamp(1.5rem, 4vw, 2.8rem); }
.emotion-happy .eye-shape,
.emotion-excited .eye-shape,
.emotion-proud .eye-shape {
  height: calc(var(--eye-size) * .72);
  border-radius: 50% 50% 54% 54%;
}
.emotion-happy .mouth-shape,
.emotion-excited .mouth-shape,
.emotion-proud .mouth-shape { width: calc(var(--mouth-w) * 1.15); }
.emotion-love .eye-shape,
.emotion-shy .eye-shape {
  background: #ffd7f2;
  box-shadow: 0 0 34px rgba(255,92,200,.54), 0 0 90px rgba(255,92,200,.18), inset 0 0 18px rgba(255,255,255,.34);
}
.emotion-love .eye-core,
.emotion-shy .eye-core { opacity: 0; }
.emotion-love .heart-shape,
.emotion-shy .heart-shape { opacity: 1; transform: translate(-50%, -45%) rotate(-45deg) scale(1); }
.emotion-love .mouth-shape,
.emotion-shy .mouth-shape { color: var(--pink); width: calc(var(--mouth-w) * .78); }
.emotion-love .cheek,
.emotion-shy .cheek { opacity: .82; }
.emotion-angry .eye-shape {
  background: var(--red);
  height: calc(var(--eye-size) * .34);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(255,53,93,.58), 0 0 90px rgba(255,53,93,.18);
}
.emotion-angry .eye-left { rotate: 9deg; }
.emotion-angry .eye-right { rotate: -9deg; }
.emotion-angry .mouth-shape {
  color: var(--red);
  width: calc(var(--mouth-w) * .72);
  height: .7rem;
  border-bottom-color: transparent;
  border-top-color: currentColor;
  transform: translateY(.9rem);
}
.emotion-sad .eye-shape {
  height: calc(var(--eye-size) * .46);
  border-radius: 45% 45% 52% 52%;
  background: #46dfff;
  filter: saturate(.8);
  transform: translateY(.55rem);
}
.emotion-sad .mouth-shape {
  color: #46dfff;
  border-bottom-color: transparent;
  border-top-color: currentColor;
  transform: translateY(1rem);
  width: calc(var(--mouth-w) * .76);
}
.emotion-confused .eye-left { width: calc(var(--eye-size) * .72); height: calc(var(--eye-size) * .72); }
.emotion-confused .eye-right { width: calc(var(--eye-size) * 1.05); height: calc(var(--eye-size) * 1.05); }
.emotion-confused .mouth-shape { width: calc(var(--mouth-w) * .55); opacity: .8; }
.emotion-curious .eye-left { transform: translateY(-.25rem); }
.emotion-curious .eye-right { transform: translateY(.18rem); }
.emotion-curious .mouth-shape { width: calc(var(--mouth-w) * .86); }
.emotion-sleepy .eye-shape {
  height: calc(var(--eye-size) * .14);
  border-radius: 999px;
  opacity: .86;
}
.emotion-sleepy .mouth-shape { width: calc(var(--mouth-w) * .45); opacity: .75; }
.emotion-surprised .eye-shape {
  width: calc(var(--eye-size) * 1.08);
  height: calc(var(--eye-size) * 1.08);
}
.emotion-surprised .mouth-shape {
  width: clamp(1.6rem, 4.4vw, 2.8rem);
  height: clamp(1.6rem, 4.4vw, 2.8rem);
  border: clamp(.28rem, .7vw, .42rem) solid var(--cyan);
  border-radius: 50%;
}
.emotion-error .eye-shape {
  background: var(--red);
  box-shadow: 0 0 34px rgba(255,53,93,.55), inset 0 0 18px rgba(255,255,255,.18);
}
.emotion-error .mouth-shape { color: var(--red); }

@keyframes permissionBlink {
  0%, 87%, 100% { transform: scaleY(1); }
  90%, 94% { transform: scaleY(.12); }
}

@media (max-width: 520px) {
  :root { --eye-size: clamp(4.35rem, 22vw, 6.4rem); --eye-gap: clamp(2.45rem, 12vw, 4rem); }
  .permission-card { padding: 24px 20px; border-radius: 24px; }
  .ghost-button { margin-left: 0; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Standby Clock & Weather Station */
.standby-screen {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(0,229,255,.14), transparent 32%),
    radial-gradient(circle at 72% 66%, rgba(255,92,200,.08), transparent 26%),
    rgba(0,0,0,.88);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 520ms ease, transform 520ms ease;
}
.standby-screen:not([hidden]) {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.standby-glow {
  position: absolute;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.15), transparent 58%);
  filter: blur(22px);
  animation: standbyBreath 4s ease-in-out infinite;
}
.standby-card {
  width: min(92vw, 720px);
  min-height: min(68svh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0,229,255,.20);
  border-radius: clamp(28px, 5vw, 54px);
  background: linear-gradient(180deg, rgba(7,20,27,.72), rgba(0,0,0,.78));
  box-shadow: 0 36px 120px rgba(0,0,0,.62), inset 0 0 80px rgba(0,229,255,.035);
  padding: clamp(26px, 6vw, 56px);
  position: relative;
  overflow: hidden;
}
.standby-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .35;
  mask-image: radial-gradient(circle, black, transparent 72%);
}
.standby-kicker, .standby-clock, .standby-date, .weather-card, .weather-meta, .standby-controls { position: relative; z-index: 1; }
.standby-kicker {
  margin: 0 0 .8rem;
  color: rgba(0,229,255,.86);
  font-weight: 900;
  letter-spacing: .32em;
  font-size: clamp(.72rem, 2vw, .94rem);
}
.standby-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .88;
  font-size: clamp(5.2rem, 20vw, 12.5rem);
  color: #ecfdff;
  text-shadow: 0 0 22px rgba(0,229,255,.45), 0 0 80px rgba(0,229,255,.22);
}
.standby-date {
  margin: 1rem 0 1.8rem;
  color: rgba(255,255,255,.62);
  font-size: clamp(.92rem, 2.2vw, 1.2rem);
}
.weather-card {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 42px rgba(0,229,255,.035);
}
.weather-label { margin: 0 0 5px; color: rgba(255,255,255,.45); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; text-align: left; }
.weather-desc { margin: 0; color: rgba(255,255,255,.82); font-size: clamp(.94rem, 2.8vw, 1.1rem); text-align: left; }
.weather-temp-wrap { display: flex; align-items: baseline; gap: 10px; }
.weather-icon { color: var(--cyan); font-size: clamp(1.4rem, 4vw, 2rem); filter: drop-shadow(0 0 14px rgba(0,229,255,.5)); }
.weather-temp { font-variant-numeric: tabular-nums; color: #fff; font-weight: 900; font-size: clamp(2rem, 6vw, 3.2rem); }
.weather-meta { margin-top: 14px; color: rgba(255,255,255,.42); font-size: .82rem; }
.standby-controls { display: flex; gap: 8px; margin-top: 18px; }
.standby-controls button {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.standby-controls button.active { color: #001016; background: var(--cyan); border-color: transparent; }
body.standby .face-container,
body.standby .status-text,
body.standby .heard-text,
body.standby .debug-text { opacity: 0; }

/* Biomimetic micro-behavior */
.face-container {
  rotate: var(--bio-tilt, 0deg);
  --bio-eye-brightness: 1;
}
.eye-shape { filter: brightness(var(--bio-eye-brightness, 1)); }
.face-container.bio-attention { animation: bioAttention 850ms cubic-bezier(.2,.9,.2,1); }
.face-container.bio-curious { animation: bioCurious 1100ms cubic-bezier(.2,.9,.2,1); }
.face-container.bio-breath { animation: bioBreath 1800ms ease-in-out; }
.face-container.bio-jolt { animation: bioJolt 420ms cubic-bezier(.3,1.7,.45,1); }
.eye-shape.bio-glimmer::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.36), transparent 65%);
  transform: translateX(-80%) rotate(15deg);
  animation: bioGlimmer 680ms ease-out;
}
@keyframes standbyBreath { 0%,100% { transform: scale(.96); opacity: .72; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes bioAttention { 0%,100% { scale: 1; } 40% { scale: 1.035; } }
@keyframes bioCurious { 0%,100% { translate: 0 0; } 35% { translate: 0 -7px; } 70% { translate: 0 3px; } }
@keyframes bioBreath { 0%,100% { scale: 1; } 50% { scale: 1.018; } }
@keyframes bioJolt { 0%,100% { translate: 0 0; } 28% { translate: 8px 0; } 58% { translate: -5px 0; } }
@keyframes bioGlimmer { to { transform: translateX(85%) rotate(15deg); } }

@media (max-width: 520px) {
  .standby-card { min-height: 62svh; }
  .weather-card { border-radius: 22px; padding: 15px 16px; }
}


/* === VECTOR 2.2 visual upgrade: clearer gaze + premium standby === */
.eye-shape {
  background:
    radial-gradient(circle at calc(50% + var(--eye-x, 0px) * .28) calc(50% + var(--eye-y, 0px) * .28), rgba(255,255,255,.36), transparent 18%),
    radial-gradient(circle at 50% 50%, #42f3ff 0 36%, #00e5ff 52%, #00a4c9 100%);
  transform: translate3d(calc(var(--eye-x, 0px) * .10), calc(var(--eye-y, 0px) * .10), 0) scaleX(calc(1 + var(--gaze-stretch-x, 0))) scaleY(calc(1 + var(--gaze-stretch-y, 0)));
}
.eye-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74%;
  height: 74%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.16);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 26px rgba(0, 20, 30, .18);
  pointer-events: none;
}
.eye-core {
  width: 42%;
  height: 42%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255,255,255,.95) 0 10%, transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(0, 14, 20, .88) 0 37%, rgba(0, 82, 100, .72) 39% 58%, rgba(255,255,255,.42) 60% 66%, transparent 69%);
  opacity: .95;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.18)) drop-shadow(0 0 18px rgba(0,229,255,.42));
  transition: opacity 170ms ease, width 220ms ease, height 220ms ease, filter 220ms ease;
}
.eye-core::after {
  content: "";
  position: absolute;
  inset: 62% 20% 14% 20%;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  filter: blur(1px);
}
.face-container.gaze-camera .eye-shape { box-shadow: 0 0 34px rgba(0,229,255,.72), 0 0 100px rgba(0,229,255,.24), inset 0 0 22px rgba(255,255,255,.22), inset 0 -10px 26px rgba(0,40,60,.22); }
.face-container.gaze-mouse .eye-core,
.face-container.gaze-touch .eye-core { filter: drop-shadow(0 0 14px rgba(255,255,255,.22)) drop-shadow(0 0 20px rgba(0,229,255,.55)); }
.face-container.react-object { animation: vectorObjectNotice 640ms cubic-bezier(.2,1.3,.35,1); }
.face-container.react-activity { animation: vectorActivityNotice 720ms cubic-bezier(.2,.9,.2,1); }
.face-container.react-focus { animation: vectorFocusNotice 1400ms ease-in-out; }
.face-container.react-dark { filter: drop-shadow(0 0 28px rgba(70,223,255,.18)) brightness(.78); }
@keyframes vectorObjectNotice { 0%,100% { scale: 1; } 45% { scale: 1.045; } }
@keyframes vectorActivityNotice { 0%,100% { translate: 0 0; } 35% { translate: 0 -6px; } 70% { translate: 0 2px; } }
@keyframes vectorFocusNotice { 0%,100% { --bio-eye-brightness: 1; } 50% { --bio-eye-brightness: .88; } }

.clock-deck {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(.55rem, 1.4vw, 1rem);
  padding: clamp(.35rem, 1.4vw, .8rem) clamp(1rem, 3vw, 1.8rem);
  border-radius: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    radial-gradient(circle at 50% 0%, rgba(0,229,255,.16), transparent 58%);
  border: 1px solid rgba(255,255,255,.095);
  box-shadow: inset 0 0 48px rgba(0,229,255,.04), 0 18px 60px rgba(0,0,0,.28);
}
.standby-seconds {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 4vw, 2.4rem);
  line-height: 1;
  margin-top: clamp(.65rem, 3vw, 1.5rem);
  color: rgba(0,229,255,.86);
  text-shadow: 0 0 18px rgba(0,229,255,.42);
  font-weight: 900;
  letter-spacing: -.03em;
}
.standby-orbit {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.standby-orbit span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,229,255,.72);
  box-shadow: 0 0 14px rgba(0,229,255,.62);
  animation: standbyDot 1.6s ease-in-out infinite;
}
.standby-orbit span:nth-child(2) { animation-delay: .18s; opacity: .75; }
.standby-orbit span:nth-child(3) { animation-delay: .36s; opacity: .55; }
@keyframes standbyDot { 0%,100% { transform: translateY(0) scale(.75); opacity: .45; } 50% { transform: translateY(-6px) scale(1); opacity: 1; } }
.standby-card {
  background:
    linear-gradient(180deg, rgba(5,19,28,.78), rgba(0,0,0,.80)),
    radial-gradient(circle at 50% 6%, rgba(0,229,255,.14), transparent 45%);
  border-color: rgba(0,229,255,.28);
}
.standby-card::after {
  content: "";
  position: absolute;
  inset: auto 12% 0 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.68), transparent);
  box-shadow: 0 0 30px rgba(0,229,255,.8);
}
.weather-card {
  padding: clamp(16px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.028)),
    radial-gradient(circle at 100% 0%, rgba(0,229,255,.15), transparent 45%);
  border-color: rgba(0,229,255,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.24), inset 0 0 50px rgba(0,229,255,.045);
}
.weather-main { min-width: 0; }
.weather-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.weather-details span,
.forecast-chip {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.68);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.weather-forecast {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.forecast-chip {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 70px;
  justify-content: center;
}
.forecast-day { color: rgba(255,255,255,.54); font-size: .68rem; letter-spacing: .04em; }
.forecast-icon { color: var(--cyan); font-size: 1.15rem; filter: drop-shadow(0 0 12px rgba(0,229,255,.5)); }
.forecast-temp { color: rgba(255,255,255,.86); font-size: .83rem; }
body.standby-exiting .standby-screen { opacity: 0; transform: scale(.985); }
@media (max-width: 520px) {
  .weather-card { align-items: stretch; }
  .weather-forecast { grid-template-columns: 1fr; }
  .forecast-chip { flex-direction: row; min-height: auto; justify-content: space-between; }
}


/* === VECTOR 2.3 stability + compact responsive weather === */
:root {
  --eye-size: clamp(3.55rem, min(12.5vw, 18svh), 8.1rem);
  --eye-gap: clamp(2rem, min(8.5vw, 12svh), 7.2rem);
  --mouth-w: clamp(2.55rem, min(7vw, 9svh), 5.2rem);
}
.stage {
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.face-container {
  max-width: 96vw;
  max-height: 74svh;
}
.human-debug-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  object-fit: cover;
  transition: opacity .2s ease;
}

body.show-human-overlay .human-debug-canvas {
  opacity: .78;
}

body.show-human-overlay .face-container {
  opacity: .28;
}

.permission-panel {
  overflow-y: auto;
}
.permission-card {
  max-height: calc(100svh - 32px);
  overflow: auto;
}
.standby-screen {
  padding: clamp(10px, 2.5vw, 22px);
}
.standby-card {
  width: min(94vw, 560px);
  min-height: auto;
  max-height: calc(100svh - 24px);
  padding: clamp(16px, 3.8vw, 32px);
  border-radius: clamp(22px, 4vw, 38px);
}
.standby-kicker {
  margin-bottom: .42rem;
  font-size: clamp(.62rem, 1.7vw, .78rem);
}
.standby-orbit {
  margin-bottom: 8px;
}
.clock-deck {
  padding: clamp(.18rem, .9vw, .5rem) clamp(.78rem, 2.2vw, 1.3rem);
  border-radius: clamp(18px, 3.4vw, 34px);
}
.standby-clock {
  font-size: clamp(3.65rem, min(15vw, 18svh), 8rem);
  letter-spacing: -.065em;
}
.standby-seconds {
  font-size: clamp(.95rem, min(3vw, 4svh), 1.75rem);
  margin-top: clamp(.42rem, 2vw, 1rem);
}
.standby-date {
  margin: .72rem 0 1rem;
  font-size: clamp(.78rem, 1.9vw, .98rem);
}
.weather-card {
  width: min(100%, 430px);
  gap: 12px;
  padding: clamp(10px, 2.1vw, 15px);
  border-radius: 20px;
}
.weather-label {
  font-size: .64rem;
  letter-spacing: .13em;
  margin-bottom: 3px;
}
.weather-desc {
  font-size: clamp(.78rem, 2vw, .94rem);
}
.weather-temp-wrap {
  gap: 5px;
  flex-shrink: 0;
}
.weather-icon {
  font-size: clamp(1rem, 3vw, 1.42rem);
}
.weather-temp {
  font-size: clamp(1.45rem, 4.2vw, 2.25rem);
}
.weather-details {
  gap: 5px;
  margin-top: 7px;
}
.weather-details span,
.forecast-chip {
  padding: 5px 8px;
  font-size: .66rem;
}
.weather-forecast {
  width: min(100%, 430px);
  gap: 7px;
  margin-top: 8px;
}
.forecast-chip {
  min-height: 52px;
  border-radius: 14px;
  gap: 2px;
}
.forecast-icon { font-size: .96rem; }
.forecast-temp { font-size: .72rem; }
.weather-meta {
  margin-top: 8px;
  font-size: .68rem;
}
.standby-controls {
  margin-top: 10px;
}
.standby-controls button {
  padding: 6px 10px;
  font-size: .72rem;
}

@media (max-width: 760px) {
  :root {
    --eye-size: clamp(3.25rem, 20vw, 6.1rem);
    --eye-gap: clamp(1.7rem, 10vw, 3.7rem);
    --mouth-w: clamp(2.35rem, 12vw, 4rem);
  }
  .face-container { gap: clamp(.75rem, 3.2vw, 1.2rem); }
  .weather-card { flex-direction: row; align-items: center; }
  .weather-forecast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .forecast-chip { min-height: 48px; }
}

@media (max-width: 420px) {
  .standby-card { width: min(96vw, 390px); padding: 14px; }
  .weather-card { border-radius: 16px; }
  .weather-details span:nth-child(2) { display: none; }
  .weather-forecast { display: none; }
  .weather-meta { max-width: 88vw; margin-inline: auto; }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --eye-size: clamp(2.8rem, 18svh, 4.6rem);
    --eye-gap: clamp(1.4rem, 12svh, 3rem);
    --mouth-w: clamp(2.1rem, 14svh, 3.6rem);
  }
  .stage { padding: 10px; }
  .status-text, .heard-text { display: none; }
  .standby-card { width: min(92vw, 700px); padding: 12px 18px; }
  .standby-clock { font-size: clamp(3rem, 22svh, 5.4rem); }
  .standby-date { margin: .45rem 0 .65rem; }
  .weather-card { width: min(100%, 560px); padding: 9px 12px; }
  .weather-forecast, .standby-controls, .standby-orbit { display: none; }
}

/* Tri-Sync output actions from multimodal Groq response */
.face-container.tri-look-object .eye-core,
.face-container.tri-look-object .eye-highlight {
  transform: translate(13px, 3px) scale(1.08);
}
.face-container.tri-look-user .eye-core,
.face-container.tri-look-user .eye-highlight {
  transform: translate(0, 0) scale(1.12);
}
.face-container.tri-focus .eye-shape {
  transform: scaleY(.72) scaleX(1.08);
  filter: brightness(1.15) saturate(1.18);
}
.face-container.tri-pop .eye-shape {
  animation: triPop .35s ease-out 1;
}
.face-container.tri-shy {
  animation: triShy .8s cubic-bezier(.2,.9,.2,1) 1;
}
.face-container.tri-sad {
  filter: brightness(.82) saturate(.75);
}
.face-container.tri-angry .eye-shape {
  transform: scaleY(.58) skewX(-7deg);
  filter: hue-rotate(135deg) saturate(1.25);
}
@keyframes triPop {
  0% { transform: scale(.82); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes triShy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(8px) rotate(-2deg); }
  70% { transform: translateY(2px) rotate(2deg); }
}


/* === VECTOR 2.5 interaction engine: mouse/touch/stroke/punch/shake === */
.emotion-pained .eye-shape {
  height: calc(var(--eye-size) * .38);
  border-radius: 999px;
  background: linear-gradient(135deg, #8ff7ff, #ff6b6b);
  box-shadow: 0 0 34px rgba(255, 82, 82, .45), 0 0 90px rgba(0,229,255,.15), inset 0 0 18px rgba(255,255,255,.24);
}
.emotion-pained .mouth-shape {
  width: calc(var(--mouth-w) * .48);
  height: .55rem;
  border-bottom-color: #ff7676;
  transform: rotate(2deg);
}
.emotion-dizzy .eye-shape {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.42), transparent 20%),
    repeating-radial-gradient(circle at 50% 50%, #00e5ff 0 12%, #007f9c 13% 20%, #8ff7ff 21% 29%);
  box-shadow: 0 0 38px rgba(0,229,255,.65), 0 0 110px rgba(126,255,230,.22);
}
.emotion-dizzy .eye-core { animation: vectorDizzyCore .42s linear infinite; }
.emotion-dizzy .mouth-shape {
  width: calc(var(--mouth-w) * .55);
  border-bottom-color: #9effff;
  transform: rotate(-8deg) scaleY(.72);
}
.face-container.react-touch { animation: vectorTouchPop .48s cubic-bezier(.2, 1.45, .35, 1); }
.face-container.react-stroke { animation: vectorStrokeSoft 1.15s ease-in-out; }
.face-container.react-punch { animation: vectorPunchHit .9s cubic-bezier(.12, .9, .18, 1); }
.face-container.react-dizzy { animation: vectorDizzyFace 1.45s ease-in-out; }
.face-container.react-stroke .cheek { opacity: .85; transform: scale(1.12); }
.face-container.react-punch .eye-core { transform: translate(calc(-50% + var(--eye-x, 0px)), calc(-50% + var(--eye-y, 0px))) scale(.72) !important; }
.face-container.gaze-mouse .eye-shape,
.face-container.gaze-touch .eye-shape {
  box-shadow: 0 0 40px rgba(0,229,255,.78), 0 0 120px rgba(0,229,255,.25), inset 0 0 22px rgba(255,255,255,.24), inset 0 -10px 26px rgba(0,40,60,.22);
}
@keyframes vectorTouchPop {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(var(--face-scale, 1)); }
  45% { transform: translate(var(--face-x, 0px), calc(var(--face-y, 0px) - 8px)) scale(calc(var(--face-scale, 1) + .035)); }
}
@keyframes vectorStrokeSoft {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(0deg) scale(var(--face-scale, 1)); }
  25% { transform: translate(calc(var(--face-x, 0px) - 10px), calc(var(--face-y, 0px) + 4px)) rotate(-2deg) scale(calc(var(--face-scale, 1) + .02)); }
  65% { transform: translate(calc(var(--face-x, 0px) + 10px), calc(var(--face-y, 0px) + 2px)) rotate(2deg) scale(calc(var(--face-scale, 1) + .02)); }
}
@keyframes vectorPunchHit {
  0% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(var(--face-scale, 1)); filter: none; }
  18% { transform: translate(calc(var(--face-x, 0px) + 26px), calc(var(--face-y, 0px) - 9px)) rotate(5deg) scale(.96); filter: hue-rotate(130deg) saturate(1.4); }
  38% { transform: translate(calc(var(--face-x, 0px) - 17px), calc(var(--face-y, 0px) + 8px)) rotate(-4deg) scale(1.01); }
  68% { transform: translate(calc(var(--face-x, 0px) + 8px), var(--face-y, 0px)) rotate(2deg); }
  100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(0deg) scale(var(--face-scale, 1)); filter: none; }
}
@keyframes vectorDizzyFace {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(0deg) scale(var(--face-scale, 1)); }
  12% { transform: translate(calc(var(--face-x, 0px) - 18px), var(--face-y, 0px)) rotate(-5deg) scale(.98); }
  25% { transform: translate(calc(var(--face-x, 0px) + 18px), calc(var(--face-y, 0px) - 4px)) rotate(5deg) scale(1.01); }
  38% { transform: translate(calc(var(--face-x, 0px) - 14px), calc(var(--face-y, 0px) + 5px)) rotate(-4deg); }
  52% { transform: translate(calc(var(--face-x, 0px) + 12px), calc(var(--face-y, 0px) - 3px)) rotate(3deg); }
  72% { transform: translate(calc(var(--face-x, 0px) - 6px), var(--face-y, 0px)) rotate(-2deg); }
}
@keyframes vectorDizzyCore {
  0% { filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(255,255,255,.28)); }
  100% { filter: hue-rotate(360deg) drop-shadow(0 0 14px rgba(0,229,255,.55)); }
}

/* === VECTOR 2.6 gesture, mood, emoji SFX, richer eye expressions === */
.eye-shine {
  position: absolute;
  width: 18%;
  height: 18%;
  right: 18%;
  top: 18%;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  filter: blur(.4px) drop-shadow(0 0 10px rgba(255,255,255,.35));
  transform: translate(calc(var(--eye-x, 0px) * .22), calc(var(--eye-y, 0px) * .22));
  opacity: .62;
  transition: opacity 220ms ease, transform 160ms ease;
}
.star-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 48%;
  transform: translate(-50%, -50%) scale(.45) rotate(12deg);
  background: var(--yellow);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(255,230,109,.85));
  transition: opacity 200ms ease, transform 250ms cubic-bezier(.2,1.45,.35,1);
}
.tear-drop {
  position: absolute;
  left: 66%;
  top: 66%;
  width: 14%;
  height: 24%;
  border-radius: 70% 70% 70% 12%;
  background: rgba(140,240,255,.92);
  transform: rotate(25deg) translateY(-8px) scale(.2);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.6));
  transition: opacity 220ms ease, transform 260ms ease;
}

.emotion-excited .eye-core,
.emotion-starry .eye-core { opacity: 0; }
.emotion-excited .star-shape,
.emotion-starry .star-shape,
.mood-playful .star-shape { opacity: 1; transform: translate(-50%, -50%) scale(.9) rotate(18deg); }
.emotion-proud .star-shape { opacity: .72; transform: translate(-50%, -50%) scale(.66) rotate(8deg); }
.emotion-sad .tear-drop,
.emotion-teary .tear-drop,
.mood-sad .tear-drop { opacity: .9; transform: rotate(25deg) translateY(5px) scale(1); }
.emotion-suspicious .eye-shape {
  height: calc(var(--eye-size) * .42);
  border-radius: 999px 999px 52% 52%;
  transform: skewX(-4deg);
}
.emotion-suspicious .eye-left { rotate: -3deg; }
.emotion-suspicious .eye-right { rotate: 3deg; }
.emotion-bored .eye-shape,
.mood-sleepy .eye-shape {
  height: calc(var(--eye-size) * .24);
  border-radius: 999px;
  filter: brightness(.86) saturate(.85);
}
.emotion-teary .eye-shape {
  background: linear-gradient(180deg, #8cf4ff, #24bfe1);
  height: calc(var(--eye-size) * .62);
  transform: translateY(.4rem);
}
.emotion-starry .eye-shape {
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.35), transparent 22%), var(--cyan);
  box-shadow: 0 0 42px rgba(255,230,109,.42), 0 0 110px rgba(0,229,255,.24), inset 0 0 22px rgba(255,255,255,.24);
}

.face-container.gaze-camera .eye-shape {
  box-shadow: 0 0 46px rgba(0,229,255,.9), 0 0 135px rgba(0,229,255,.28), inset 0 0 24px rgba(255,255,255,.27), inset 0 -10px 26px rgba(0,40,60,.22);
}
.face-container.gaze-camera .eye-shine { opacity: .84; }

.reaction-layer {
  position: fixed;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: min(70vw, 560px);
  height: min(40svh, 340px);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.reaction-emoji {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px))) scale(.62);
  font-size: clamp(2.15rem, 7.5vw, 4.8rem);
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(0,229,255,.35));
  opacity: 0;
  animation: vectorEmojiFloat 1.25s cubic-bezier(.2,.9,.2,1) forwards;
}
.reaction-bonk, .reaction-punch { animation-name: vectorEmojiBonk; }
.reaction-wave, .reaction-highfive, .reaction-thumbs, .reaction-peace { animation-name: vectorEmojiPop; }
@keyframes vectorEmojiFloat {
  0% { opacity: 0; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px) + 18px)) scale(.45) rotate(-8deg); }
  18% { opacity: 1; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px) - 8px)) scale(1.04) rotate(4deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px) - 82px)) scale(.92) rotate(12deg); }
}
@keyframes vectorEmojiPop {
  0% { opacity: 0; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px))) scale(.1) rotate(-20deg); }
  28% { opacity: 1; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px) - 12px)) scale(1.18) rotate(8deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px) - 70px)) scale(.9) rotate(18deg); }
}
@keyframes vectorEmojiBonk {
  0% { opacity: 0; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px))) scale(.2); }
  16% { opacity: 1; transform: translate(calc(-50% + var(--emoji-x, 0px) + 10px), calc(-50% + var(--emoji-y, 0px) - 8px)) scale(1.18) rotate(18deg); }
  34% { transform: translate(calc(-50% + var(--emoji-x, 0px) - 10px), calc(-50% + var(--emoji-y, 0px) - 20px)) scale(.98) rotate(-10deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--emoji-x, 0px)), calc(-50% + var(--emoji-y, 0px) - 62px)) scale(.8) rotate(25deg); }
}

.face-container.mood-playful { filter: drop-shadow(0 0 45px rgba(255,230,109,.18)) drop-shadow(0 0 42px rgba(0,229,255,.32)); }
.face-container.mood-affectionate { filter: drop-shadow(0 0 44px rgba(255,92,200,.28)); }
.face-container.mood-annoyed { filter: drop-shadow(0 0 45px rgba(255,53,93,.28)); }
.face-container.mood-curious { filter: drop-shadow(0 0 48px rgba(0,229,255,.38)); }
.face-container.mood-dizzy { animation: vectorMoodDizzy 2.8s ease-in-out infinite; }
.face-container.mood-sad { filter: brightness(.9) saturate(.82) drop-shadow(0 0 35px rgba(70,223,255,.18)); }
.mood-affectionate .cheek { opacity: .44; }
.mood-annoyed .mouth-shape { filter: drop-shadow(0 .35rem .7rem rgba(255,53,93,.28)); }
.mood-curious .eye-core { width: 36%; height: 36%; opacity: .82; }
@keyframes vectorMoodDizzy {
  0%,100% { rotate: 0deg; }
  35% { rotate: -1.4deg; }
  70% { rotate: 1.4deg; }
}

.face-container.react-wave { animation: vectorWaveFace .95s ease-in-out; }
.face-container.react-highfive { animation: vectorHighFiveFace .82s cubic-bezier(.2,1.4,.35,1); }
.face-container.react-thumbs,
.face-container.react-peace,
.face-container.react-object-show { animation: vectorHappyPop .86s cubic-bezier(.2,1.35,.35,1); }
.face-container.react-point { animation: vectorPointFocus .78s ease-out; }
.face-container.react-food { animation: vectorFoodCurious 1s ease-in-out; }
.face-container.react-face-close { animation: vectorFaceClose .75s cubic-bezier(.2,1.4,.35,1); }
.face-container.react-highfive .star-shape,
.face-container.react-thumbs .star-shape,
.face-container.react-peace .star-shape { opacity: 1; transform: translate(-50%, -50%) scale(.95) rotate(16deg); }
.face-container.react-face-close .eye-shape { width: calc(var(--eye-size) * 1.12); height: calc(var(--eye-size) * 1.12); }
@keyframes vectorWaveFace {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(0deg) scale(var(--face-scale, 1)); }
  25% { transform: translate(calc(var(--face-x, 0px) - 8px), var(--face-y, 0px)) rotate(-3deg) scale(1.02); }
  55% { transform: translate(calc(var(--face-x, 0px) + 8px), var(--face-y, 0px)) rotate(3deg) scale(1.02); }
}
@keyframes vectorHighFiveFace {
  0% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(1); }
  55% { transform: translate(var(--face-x, 0px), calc(var(--face-y, 0px) - 18px)) scale(1.08); }
  100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(1); }
}
@keyframes vectorHappyPop {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(1); }
  40% { transform: translate(var(--face-x, 0px), calc(var(--face-y, 0px) - 9px)) scale(1.045); }
}
@keyframes vectorPointFocus {
  0%,100% { filter: drop-shadow(0 0 35px rgba(0,229,255,.25)); }
  45% { filter: drop-shadow(0 0 60px rgba(0,229,255,.58)); }
}
@keyframes vectorFoodCurious {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(0deg); }
  33% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(-2deg); }
  66% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(2deg); }
}
@keyframes vectorFaceClose {
  0%,100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(1); }
  50% { transform: translate(var(--face-x, 0px), calc(var(--face-y, 0px) + 8px)) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-emoji,
  .face-container.react-wave,
  .face-container.react-highfive,
  .face-container.react-thumbs,
  .face-container.react-peace,
  .face-container.react-object-show,
  .face-container.react-point,
  .face-container.react-food,
  .face-container.react-face-close,
  .face-container.mood-dizzy {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* === VECTOR 2.8: living lip-sync + premium neon mouth === */
.mouth-tracker {
  min-height: clamp(2.3rem, 5.4vw, 3.8rem);
  perspective: 500px;
}
.face-container .mouth-shape {
  --lip-open: .12;
  --lip-wide: .86;
  --lip-teeth: 0;
  --lip-smile: 0;
  --lip-tilt: 0deg;
  --lip-glow: 1;
  --mouth-base-y: 0rem;
  --mouth-base-rot: 0deg;
  position: relative;
  width: calc(var(--mouth-w) * var(--lip-wide));
  height: clamp(.78rem, calc(.72rem + (var(--lip-open) * 1.72rem)), 3.05rem);
  border: clamp(.23rem, .62vw, .42rem) solid currentColor;
  border-top-color: rgba(0, 229, 255, calc(.2 + var(--lip-open) * .36));
  border-left-color: rgba(0, 229, 255, calc(.62 + var(--lip-open) * .28));
  border-right-color: rgba(0, 229, 255, calc(.62 + var(--lip-open) * .28));
  border-bottom-color: currentColor;
  border-radius: 999px 999px calc(70% + var(--lip-smile) * 18%) calc(70% + var(--lip-smile) * 18%) / 74% 74% 100% 100%;
  background:
    radial-gradient(ellipse at 50% calc(100% - 18%), rgba(255,255,255,.18), transparent 20%),
    radial-gradient(ellipse at 50% 70%, rgba(0,229,255,calc(.1 + var(--lip-open) * .15)), rgba(0,45,60,calc(.15 + var(--lip-open) * .48)) 64%, transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
  box-shadow:
    0 0 calc(18px * var(--lip-glow)) rgba(0, 229, 255, .34),
    0 0 calc(56px * var(--lip-glow)) rgba(0, 229, 255, .14),
    inset 0 0 18px rgba(255,255,255,.08),
    inset 0 -10px 24px rgba(0, 229, 255, calc(.08 + var(--lip-open) * .12));
  overflow: hidden;
  transform-origin: 50% 52%;
  transform:
    translateY(var(--mouth-base-y))
    rotate(calc(var(--mouth-base-rot) + var(--lip-tilt)))
    scaleX(calc(.96 + var(--lip-wide) * .055))
    scaleY(calc(.82 + var(--lip-open) * .22));
  transition:
    width 95ms linear,
    height 95ms linear,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 120ms linear,
    border-radius 120ms ease,
    transform 85ms linear,
    background 160ms ease;
}
.face-container .mouth-shape > span {
  position: absolute;
  display: block;
  pointer-events: none;
}
.mouth-glow {
  inset: -45%;
  background: radial-gradient(circle, rgba(0,229,255,calc(.13 * var(--lip-glow))) 0 18%, transparent 52%);
  filter: blur(18px);
  opacity: calc(.55 + var(--lip-open) * .26);
}
.mouth-cavity {
  left: 13%;
  right: 13%;
  top: calc(20% - var(--lip-open) * 6%);
  bottom: calc(12% - var(--lip-open) * 4%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(0,229,255,.25), transparent 38%),
    radial-gradient(ellipse at 50% 55%, rgba(2,18,24,.92), rgba(0,0,0,.68) 72%);
  opacity: calc(.08 + var(--lip-open) * .86);
  transform: scaleY(calc(.28 + var(--lip-open) * .85));
  filter: saturate(1.15);
}
.mouth-teeth {
  left: 20%;
  right: 20%;
  top: 18%;
  height: clamp(.18rem, 22%, .65rem);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.82), rgba(255,255,255,.18));
  opacity: calc(var(--lip-teeth) * .72);
  transform: translateY(calc(var(--lip-open) * -.08rem));
  filter: blur(.15px) drop-shadow(0 0 8px rgba(255,255,255,.2));
}
.mouth-line {
  left: 10%;
  right: 10%;
  bottom: calc(11% + var(--lip-smile) * 9%);
  height: 38%;
  border-bottom: clamp(.22rem, .54vw, .38rem) solid currentColor;
  border-radius: 0 0 999px 999px;
  opacity: calc(.92 - var(--lip-open) * .38);
  transform: translateY(calc(var(--lip-open) * .18rem)) scaleY(calc(.72 + var(--lip-smile) * .22));
  filter: drop-shadow(0 0 calc(13px * var(--lip-glow)) currentColor);
}
.mouth-shine {
  left: 18%;
  top: 14%;
  width: 31%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.38), rgba(255,255,255,.02));
  opacity: calc(.2 + var(--lip-open) * .2);
  filter: blur(.7px);
}

.face-container .mouth-shape[data-mouth="closed"] { --lip-open: .05; }
.face-container .mouth-shape[data-mouth="rest"] { --lip-open: .11; --lip-wide: .82; }
.face-container .mouth-shape[data-mouth="small"] { --lip-open: .34; }
.face-container .mouth-shape[data-mouth="wide"] { --lip-wide: 1.24; --lip-open: .46; }
.face-container .mouth-shape[data-mouth="open"] { --lip-open: .96; --lip-wide: 1.02; }
.face-container .mouth-shape[data-mouth="round"] {
  --lip-open: .76;
  --lip-wide: .66;
  border-radius: 50%;
}
.face-container .mouth-shape[data-mouth="teeth"] { --lip-open: .32; --lip-wide: 1.08; }
.face-container.lip-sync-active .mouth-shape {
  animation: vectorMouthNeonPulse .72s ease-in-out infinite alternate;
}
.face-container.lip-sync-active .mouth-cavity {
  animation: vectorMouthCavityBreath .22s linear infinite alternate;
}
.face-container.lip-sync-active .mouth-line {
  animation: vectorMouthLineVibrate .18s linear infinite alternate;
}

.emotion-speaking .mouth-shape {
  height: clamp(.95rem, calc(.8rem + var(--lip-open) * 2.2rem), 3.15rem);
}
.emotion-happy .mouth-shape,
.emotion-excited .mouth-shape,
.emotion-proud .mouth-shape,
.emotion-starry .mouth-shape {
  --lip-smile: .58;
  --lip-wide: 1.16;
}
.emotion-love .mouth-shape,
.emotion-shy .mouth-shape {
  color: var(--pink);
  --lip-smile: .46;
  --lip-wide: .9;
  border-top-color: rgba(255, 92, 200, calc(.2 + var(--lip-open) * .28));
  border-left-color: rgba(255, 92, 200, .82);
  border-right-color: rgba(255, 92, 200, .82);
  box-shadow: 0 0 20px rgba(255,92,200,.36), 0 0 60px rgba(255,92,200,.15), inset 0 -10px 24px rgba(255,92,200,.1);
}
.emotion-angry .mouth-shape,
.emotion-suspicious .mouth-shape {
  color: var(--red);
  --lip-wide: .76;
  --lip-open: .15;
  --lip-smile: -.5;
  --mouth-base-y: .42rem;
  --mouth-base-rot: 180deg;
  border-top-color: rgba(255,53,93,.2);
  border-left-color: rgba(255,53,93,.82);
  border-right-color: rgba(255,53,93,.82);
}
.emotion-sad .mouth-shape,
.emotion-teary .mouth-shape {
  color: #46dfff;
  --lip-wide: .78;
  --lip-open: .18;
  --lip-smile: -.55;
  --mouth-base-y: .78rem;
  --mouth-base-rot: 180deg;
  filter: drop-shadow(0 .35rem .7rem rgba(70,223,255,.2));
}
.emotion-confused .mouth-shape,
.emotion-curious .mouth-shape {
  --lip-wide: .72;
  --lip-tilt: 3deg;
}
.emotion-sleepy .mouth-shape,
.emotion-bored .mouth-shape {
  --lip-wide: .56;
  --lip-open: .07;
  opacity: .78;
}
.emotion-surprised .mouth-shape {
  --lip-wide: .62;
  --lip-open: 1.04;
  width: clamp(1.7rem, 4.4vw, 3.05rem);
  border-radius: 50%;
}
.emotion-dizzy .mouth-shape {
  --lip-wide: .62;
  --lip-open: .32;
  --mouth-base-rot: -8deg;
}
.emotion-pained .mouth-shape {
  --lip-wide: .58;
  --lip-open: .14;
  color: #ff7676;
}
.emotion-error .mouth-shape { color: var(--red); }

@keyframes vectorMouthNeonPulse {
  from { filter: drop-shadow(0 0 10px rgba(0,229,255,.26)); }
  to { filter: drop-shadow(0 0 22px rgba(0,229,255,.48)); }
}
@keyframes vectorMouthCavityBreath {
  from { transform: scaleY(calc(.22 + var(--lip-open) * .72)); }
  to { transform: scaleY(calc(.36 + var(--lip-open) * .98)); }
}
@keyframes vectorMouthLineVibrate {
  from { translate: 0 0; }
  to { translate: 0 calc(var(--lip-open) * .08rem); }
}

@media (max-width: 520px) {
  .mouth-tracker { min-height: clamp(2rem, 12vw, 3.1rem); }
  .face-container .mouth-shape { border-width: clamp(.2rem, 1.2vw, .33rem); }
}

/* === VECTOR 2.9 hand motion responsiveness === */
.face-container.react-hand-move {
  animation: vectorHandMotionReact .46s cubic-bezier(.2, 1.35, .35, 1);
}
.face-container.react-hand-move .eye-shape {
  box-shadow: 0 0 48px rgba(0,229,255,.92), 0 0 128px rgba(0,229,255,.25), inset 0 0 26px rgba(255,255,255,.28);
}
.face-container.react-hand-move .eye-core {
  width: 38%;
  height: 38%;
  opacity: .92;
}
.face-container.react-hand-move .mouth-shape {
  filter: drop-shadow(0 0 14px rgba(0,229,255,.45));
}
.reaction-hand_move { animation-name: vectorEmojiPop; }
@keyframes vectorHandMotionReact {
  0%, 100% { transform: translate(var(--face-x, 0px), var(--face-y, 0px)) scale(var(--face-scale, 1)); }
  44% { transform: translate(var(--face-x, 0px), calc(var(--face-y, 0px) - 6px)) scale(calc(var(--face-scale, 1) + .018)); }
}
@media (prefers-reduced-motion: reduce) {
  .face-container.react-hand-move { animation-duration: .01ms !important; }
}

/* === VECTOR 3.2 Cute Robot Skin (inspired by uploaded robot face UI) === */
:root {
  --bg-deep: #0a0816;
  --bg-mid: #161230;
  --eye-base: #0b132b;
  --eye-pupil: #050a1a;
  --cyan-glow: #2ce5ff;
  --cyan-soft-cute: rgba(44, 229, 255, 0.4);
  --pink-blush: #ff66a3;
  --pink-soft-cute: rgba(255, 102, 163, 0.6);
  --tongue: #ff4d88;
  --cute-eye-size: clamp(6.4rem, 18vw, 10.3rem);
  --cute-eye-gap: clamp(2.2rem, 5vw, 3.4rem);
}

body.vector-cute-skin {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 46%, rgba(44, 229, 255, .12) 0%, transparent 35%),
    radial-gradient(circle at 30% 18%, rgba(255, 102, 163, .08) 0%, transparent 24%),
    radial-gradient(circle at 50% 50%, var(--bg-mid) 0%, var(--bg-deep) 100%);
  transition: background .8s ease;
}

.vector-cute-skin .stage::before,
.vector-cute-skin .stage::after { opacity: .22; }

.ambient-glow {
  position: absolute;
  width: min(72vw, 680px);
  height: min(72vw, 680px);
  background: radial-gradient(circle, var(--cyan-soft-cute) 0%, transparent 55%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: .42;
  filter: blur(8px);
  animation: vectorCuteAmbient 4.8s ease-in-out infinite;
}

.vector-cute-skin .face-container.cute-robot {
  position: relative;
  z-index: 10;
  gap: clamp(.28rem, 1.8vw, .9rem);
  transform-style: preserve-3d;
  animation: vectorCuteFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 42px rgba(44, 229, 255, .18));
}

.ears-container {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 142%;
  display: flex;
  justify-content: space-between;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ear {
  width: clamp(1.55rem, 4.7vw, 3rem);
  height: clamp(3.2rem, 9vw, 6rem);
  background: linear-gradient(180deg, var(--cyan-glow) 0%, rgba(44,229,255,.12) 52%, transparent 100%);
  border-radius: 3rem;
  opacity: .8;
  filter: drop-shadow(0 0 13px rgba(44,229,255,.74));
  transform-origin: top center;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), background .5s ease, opacity .4s ease;
  animation: vectorCuteEarTwitch 6s infinite;
}
.ear.left { transform: rotate(25deg); }
.ear.right { transform: rotate(-25deg); }

.vector-cute-skin .eyes-wrapper {
  gap: var(--cute-eye-gap);
  position: relative;
  z-index: 10;
  align-items: center;
}

.vector-cute-skin .eye-tracker {
  width: calc(var(--cute-eye-size) * 1.14);
  height: calc(var(--cute-eye-size) * 1.16);
  perspective: 420px;
}

.vector-cute-skin .eye-shape.eye-socket {
  width: var(--cute-eye-size) !important;
  height: calc(var(--cute-eye-size) * 1.05) !important;
  background: var(--eye-base) !important;
  border-radius: 45% 45% 50% 50% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid rgba(255, 255, 255, .055);
  box-shadow:
    0 15px 30px rgba(0,0,0,.5),
    0 0 36px rgba(44,229,255,.16),
    inset 0 -10px 20px rgba(44, 229, 255, .20),
    inset 0 10px 20px rgba(0,0,0,.82) !important;
  overflow: hidden;
  transition:
    transform .22s cubic-bezier(.34, 1.56, .64, 1),
    border-radius .36s ease,
    height .22s cubic-bezier(.34,1.56,.64,1),
    width .22s cubic-bezier(.34,1.56,.64,1),
    background .22s ease,
    filter .2s ease,
    box-shadow .22s ease;
  transform-origin: center;
}

.vector-cute-skin .eye-shape::before { display: none; }

.eye-ball {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
  z-index: 1;
  transform: translate(calc(var(--eye-x, 0px) * 1.35), calc(var(--eye-y, 0px) * 1.35));
  transition: opacity .25s ease;
}

.eye-iris {
  width: calc(var(--cute-eye-size) * .72);
  height: calc(var(--cute-eye-size) * .72);
  background: radial-gradient(circle at 50% 50%, var(--cyan-glow) 0%, #0077aa 80%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 25px rgba(44,229,255,.9),
    inset 0 0 20px rgba(255,255,255,.18),
    inset 0 -20px 22px rgba(0,0,0,.22);
  transition: width .2s ease, height .2s ease, background .25s ease, box-shadow .25s ease;
}

.vector-cute-skin .eye-iris .eye-core,
.vector-cute-skin .eye-pupil {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: calc(var(--cute-eye-size) * .38) !important;
  height: calc(var(--cute-eye-size) * .44) !important;
  display: block !important;
  background: var(--eye-pupil) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  box-shadow: inset 0 0 15px rgba(0,0,0,.92), 0 0 18px rgba(0,0,0,.2) !important;
  transition: transform .13s ease, opacity .2s ease, width .2s ease, height .2s ease;
}

.eye-highlights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
  transform: translate(calc(var(--eye-x, 0px) * .36), calc(var(--eye-y, 0px) * .36));
  transition: opacity .25s ease;
}

.highlight-main,
.highlight-sub {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,255,255,.9);
}
.highlight-main { top: 20%; right: 25%; width: 34%; height: 34%; }
.highlight-sub { bottom: 25%; left: 25%; width: 15%; height: 15%; opacity: .9; }

.vector-cute-skin .eye-shine {
  width: 0;
  height: 0;
  opacity: 0;
}

.vector-cute-skin .blush {
  position: absolute;
  bottom: calc(var(--cute-eye-size) * -.04);
  width: calc(var(--cute-eye-size) * .50);
  height: calc(var(--cute-eye-size) * .22);
  background: var(--pink-blush);
  border-radius: 50%;
  filter: blur(12px);
  opacity: .33;
  transition: all .35s ease;
  z-index: 6;
  pointer-events: none;
}
.vector-cute-skin .blush.left { left: calc(var(--cute-eye-size) * -.11); transform: rotate(-15deg); }
.vector-cute-skin .blush.right { right: calc(var(--cute-eye-size) * -.11); transform: rotate(15deg); }
.vector-cute-skin .cheeks { display: none; }

.vector-cute-skin .heart-shape {
  width: calc(var(--cute-eye-size) * .56);
  height: calc(var(--cute-eye-size) * .56);
  z-index: 5;
}
.vector-cute-skin .star-shape {
  width: calc(var(--cute-eye-size) * .48);
  height: calc(var(--cute-eye-size) * .48);
  z-index: 5;
}

.vector-cute-skin .mouth-tracker {
  min-height: clamp(3.1rem, 6.6vw, 4.7rem);
  margin-top: clamp(-.8rem, -1.2vw, -.25rem);
}

.vector-cute-skin .mouth-shape.cute-mouth {
  --mouth-base-y: 0rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: clamp(5.9rem, 13vw, 8.9rem) !important;
  height: clamp(2.55rem, 6vw, 4.35rem) !important;
  overflow: visible !important;
  filter: drop-shadow(0 3px 9px rgba(44,229,255,.52));
  transform:
    translateY(var(--mouth-base-y))
    rotate(calc(var(--mouth-base-rot, 0deg) + var(--lip-tilt, 0deg)))
    scaleX(calc(.92 + var(--lip-wide, .86) * .08))
    scaleY(calc(.9 + var(--lip-open, .12) * .22));
}

.mouth-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 3;
}

.vector-cute-skin .mouth-path {
  stroke: currentColor;
  stroke-width: calc(8px + var(--lip-open, .12) * 2.4px);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: rgba(5, 10, 26, calc(var(--lip-open, .12) * .42));
  transition: d .28s cubic-bezier(.34,1.56,.64,1), stroke .25s ease, fill .25s ease, stroke-width .1s linear;
  filter: drop-shadow(0 0 calc(12px * var(--lip-glow, 1)) currentColor);
}

.vector-cute-skin .mouth-glow,
.vector-cute-skin .mouth-cavity,
.vector-cute-skin .mouth-line,
.vector-cute-skin .mouth-shine { display: none !important; }

.vector-cute-skin .mouth-teeth {
  z-index: 4;
  left: 31% !important;
  right: 31% !important;
  top: 35% !important;
  height: 7px !important;
  opacity: calc(var(--lip-teeth, 0) * .8) !important;
  border-radius: 999px;
}

.vector-cute-skin .tongue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12%;
  width: 30%;
  height: 34%;
  background: var(--tongue);
  border-radius: 50% 50% 18px 18px;
  opacity: 0;
  transform: translateX(-50%) scale(0) translateY(10px);
  transition: all .26s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 0 10px rgba(255,77,136,.55));
}

.vector-cute-skin .is-blinking .eye-socket,
.vector-cute-skin .face-container.is-blinking .eye-socket {
  transform: scaleY(.1) scaleX(1.15) !important;
  border-radius: 40% !important;
}

.vector-cute-skin .face-container.emotion-listening .eye-socket {
  transform: scale(1.045);
  box-shadow:
    0 18px 36px rgba(0,0,0,.5),
    0 0 48px rgba(44,229,255,.34),
    inset 0 -10px 20px rgba(44,229,255,.24),
    inset 0 10px 20px rgba(0,0,0,.82) !important;
}

.vector-cute-skin .face-container.emotion-thinking .eye-socket,
.vector-cute-skin .face-container.emotion-serious .eye-socket {
  height: calc(var(--cute-eye-size) * .38) !important;
  border-radius: 999px !important;
}
.vector-cute-skin .face-container.emotion-thinking .eye-ball,
.vector-cute-skin .face-container.emotion-serious .eye-ball { opacity: .72; }

.vector-cute-skin .face-container.emotion-happy .eye-socket,
.vector-cute-skin .face-container.emotion-excited .eye-socket,
.vector-cute-skin .face-container.emotion-proud .eye-socket {
  height: calc(var(--cute-eye-size) * .76) !important;
  border-radius: 50% 50% 54% 54% !important;
  transform: translateY(.18rem) scale(1.02);
}
.vector-cute-skin .face-container.emotion-happy .eye-iris,
.vector-cute-skin .face-container.emotion-excited .eye-iris,
.vector-cute-skin .face-container.emotion-proud .eye-iris {
  height: calc(var(--cute-eye-size) * .58);
}

.vector-cute-skin .face-container.emotion-love .eye-socket,
.vector-cute-skin .face-container.emotion-shy .eye-socket {
  background: #1e0b22 !important;
  border-radius: 50% 50% 32% 32% !important;
  box-shadow:
    0 18px 36px rgba(0,0,0,.5),
    0 0 54px rgba(255,102,163,.42),
    inset 0 -10px 22px rgba(255,102,163,.22),
    inset 0 10px 20px rgba(0,0,0,.82) !important;
}
.vector-cute-skin .face-container.emotion-love .eye-ball,
.vector-cute-skin .face-container.emotion-love .eye-highlights,
.vector-cute-skin .face-container.emotion-shy .eye-ball,
.vector-cute-skin .face-container.emotion-shy .eye-highlights { opacity: 0; transform: scale(.2); }
.vector-cute-skin .face-container.emotion-love .heart-shape,
.vector-cute-skin .face-container.emotion-shy .heart-shape {
  opacity: 1;
  transform: translate(-50%, -45%) rotate(-45deg) scale(1);
  animation: vectorHeartBeat .82s infinite cubic-bezier(.34,1.56,.64,1);
}
.vector-cute-skin .face-container.emotion-love .blush,
.vector-cute-skin .face-container.emotion-shy .blush {
  opacity: 1;
  transform: scale(1.38);
  filter: blur(14px);
}
.vector-cute-skin .face-container.emotion-love .tongue,
.vector-cute-skin .face-container.emotion-shy .tongue {
  opacity: 1;
  transform: translateX(-50%) scale(.9) translateY(0);
}

.vector-cute-skin .face-container.emotion-angry .eye-socket,
.vector-cute-skin .face-container.emotion-suspicious .eye-socket {
  height: calc(var(--cute-eye-size) * .38) !important;
  border-radius: 999px !important;
  background: #23101b !important;
  box-shadow: 0 0 44px rgba(255,53,93,.4), inset 0 -10px 22px rgba(255,53,93,.22), inset 0 10px 20px rgba(0,0,0,.85) !important;
}
.vector-cute-skin .face-container.emotion-angry .eye-left { rotate: 8deg; }
.vector-cute-skin .face-container.emotion-angry .eye-right { rotate: -8deg; }
.vector-cute-skin .face-container.emotion-angry .eye-iris,
.vector-cute-skin .face-container.emotion-suspicious .eye-iris { background: radial-gradient(circle, #ff6b86, #8d1832 80%); box-shadow: 0 0 22px rgba(255,53,93,.8); }

.vector-cute-skin .face-container.emotion-sad .eye-socket,
.vector-cute-skin .face-container.emotion-teary .eye-socket {
  height: calc(var(--cute-eye-size) * .56) !important;
  border-radius: 45% 45% 52% 52% !important;
  transform: translateY(.4rem);
  filter: saturate(.84) brightness(.9);
}
.vector-cute-skin .face-container.emotion-teary .tear-drop,
.vector-cute-skin .face-container.emotion-sad .tear-drop {
  opacity: .9;
  transform: rotate(25deg) translateY(0) scale(1);
}

.vector-cute-skin .face-container.emotion-surprised .eye-socket {
  transform: scale(1.06);
  border-radius: 50% !important;
}
.vector-cute-skin .face-container.emotion-sleepy .eye-socket,
.vector-cute-skin .face-container.emotion-bored .eye-socket {
  height: calc(var(--cute-eye-size) * .14) !important;
  border-radius: 999px !important;
  background: #070716 !important;
  opacity: .86;
}
.vector-cute-skin .face-container.emotion-sleepy .eye-ball,
.vector-cute-skin .face-container.emotion-sleepy .eye-highlights,
.vector-cute-skin .face-container.emotion-bored .eye-ball,
.vector-cute-skin .face-container.emotion-bored .eye-highlights { opacity: 0; }
.vector-cute-skin .face-container.emotion-sleepy .zzz-group { opacity: 1; }

.vector-cute-skin .face-container.emotion-dizzy .eye-iris {
  background: repeating-radial-gradient(circle at 50% 50%, #2ce5ff 0 11%, #0b6f96 12% 19%, #f8ffff 20% 26%);
}

.vector-cute-skin .face-container.emotion-error .eye-iris,
.vector-cute-skin .face-container.emotion-pained .eye-iris {
  background: radial-gradient(circle, #ff7b7b, #861a2f 78%);
  box-shadow: 0 0 24px rgba(255,83,93,.8);
}

.zzz-group {
  position: absolute;
  top: clamp(-3rem, -6vw, -1.6rem);
  right: clamp(-4.2rem, -6vw, -2.2rem);
  font-weight: 900;
  color: rgba(44,229,255,.45);
  font-size: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.zzz-group span { position: absolute; display: block; }
.z1 { top: 0; right: 0; animation: vectorFloatZ 3s ease-in infinite; }
.z2 { top: 25px; right: 34px; font-size: 22px; animation: vectorFloatZ 3s ease-in infinite 1s; }
.z3 { top: 48px; right: 54px; font-size: 16px; animation: vectorFloatZ 3s ease-in infinite 2s; }

.vector-cute-skin body.standby .face-container,
body.vector-cute-skin.standby .face-container { opacity: 0; }

.vector-cute-skin .permission-card {
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(15,20,45,.86), rgba(5,5,16,.9));
  border-color: rgba(44,229,255,.28);
}
.vector-cute-skin .permission-face span {
  background: radial-gradient(circle at 45% 38%, #2ce5ff, #0077aa 82%);
  box-shadow: 0 0 20px rgba(44,229,255,.75);
}

@keyframes vectorCuteFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes vectorCuteAmbient {
  0%, 100% { transform: scale(.95); opacity: .38; }
  50% { transform: scale(1.08); opacity: .54; }
}
@keyframes vectorCuteEarTwitch {
  0%, 90%, 100% { transform: rotate(var(--rot)); }
  95% { transform: rotate(calc(var(--rot) + 13deg)); }
}
@keyframes vectorHeartBeat {
  0%, 100% { transform: translate(-50%, -45%) rotate(-45deg) scale(1); }
  50% { transform: translate(-50%, -52%) rotate(-45deg) scale(1.18); }
}
@keyframes vectorFloatZ {
  0% { transform: translate(0, 0) scale(.5) rotate(-10deg); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: .5; }
  100% { transform: translate(40px, -60px) scale(1.5) rotate(20deg); opacity: 0; }
}

@media (max-width: 760px) {
  :root {
    --cute-eye-size: clamp(5.2rem, 31vw, 7.6rem);
    --cute-eye-gap: clamp(1.25rem, 6vw, 2.2rem);
  }
  .ears-container { width: 134%; top: 8%; }
  .vector-cute-skin .mouth-shape.cute-mouth { width: clamp(5.3rem, 26vw, 7.2rem) !important; }
}

@media (max-width: 420px) {
  :root {
    --cute-eye-size: clamp(4.65rem, 33vw, 6.1rem);
    --cute-eye-gap: clamp(.8rem, 4.8vw, 1.5rem);
  }
  .vector-cute-skin .stage { padding: 12px; }
  .ear { opacity: .7; }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --cute-eye-size: clamp(3.6rem, 23svh, 5.3rem);
    --cute-eye-gap: clamp(1rem, 7svh, 2rem);
  }
  .ears-container { display: none; }
  .vector-cute-skin .mouth-tracker { min-height: 2.2rem; }
  .vector-cute-skin .mouth-shape.cute-mouth { width: clamp(4.3rem, 24svh, 6.3rem) !important; height: clamp(2rem, 12svh, 3.2rem) !important; }
}
.ear.left { --rot: 25deg; }
.ear.right { --rot: -25deg; }

/* === VECTOR 3.1: front-focused gaze + restored expressive pack === */
.vector-cute-skin .face-container.gaze-front .eye-socket {
  filter: brightness(1.02) saturate(1.05);
}
.vector-cute-skin .face-container.gaze-glance .eye-socket {
  filter: brightness(1.08) saturate(1.1);
}
.vector-cute-skin .face-container.gaze-camera .eye-socket {
  box-shadow:
    0 18px 36px rgba(0,0,0,.5),
    0 0 54px rgba(44,229,255,.52),
    inset 0 -10px 22px rgba(44,229,255,.28),
    inset 0 10px 20px rgba(0,0,0,.82) !important;
}
.vector-cute-skin .face-container.gaze-camera::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,229,255,.12), transparent 58%);
  z-index: -1;
  pointer-events: none;
  opacity: .9;
  animation: vectorVisionPulse 1.2s ease-out infinite;
}
@keyframes vectorVisionPulse {
  0%, 100% { transform: scale(.98); opacity: .42; }
  50% { transform: scale(1.04); opacity: .72; }
}

/* clearer front-facing pupils */
.vector-cute-skin .eye-iris .eye-core,
.vector-cute-skin .eye-pupil {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.16), transparent 18%),
    var(--eye-pupil) !important;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,.95),
    0 0 16px rgba(0,0,0,.24),
    0 0 5px rgba(44,229,255,.22) !important;
}

/* restored expressive states for cute UI */
.vector-cute-skin .face-container.emotion-speaking .eye-socket {
  transform: translateY(.08rem) scale(1.01);
}
.vector-cute-skin .face-container.emotion-speaking .mouth-shape {
  filter: drop-shadow(0 5px 14px rgba(44,229,255,.68));
}
.vector-cute-skin .face-container.emotion-happy .blush,
.vector-cute-skin .face-container.emotion-excited .blush,
.vector-cute-skin .face-container.emotion-proud .blush,
.vector-cute-skin .face-container.mood-playful .blush {
  opacity: .72;
  transform: scale(1.18);
}
.vector-cute-skin .face-container.emotion-excited .star-shape,
.vector-cute-skin .face-container.emotion-starry .star-shape,
.vector-cute-skin .face-container.emotion-proud .star-shape {
  opacity: 1;
  transform: translate(-50%, -50%) scale(.9) rotate(18deg);
  animation: vectorStarTwinkle .78s ease-in-out infinite alternate;
}
@keyframes vectorStarTwinkle {
  from { filter: drop-shadow(0 0 10px rgba(255,230,109,.65)); transform: translate(-50%, -50%) scale(.78) rotate(8deg); }
  to { filter: drop-shadow(0 0 22px rgba(255,230,109,.95)); transform: translate(-50%, -50%) scale(1.02) rotate(22deg); }
}
.vector-cute-skin .face-container.emotion-confused .eye-left {
  transform: translateY(.22rem) scale(.72) !important;
}
.vector-cute-skin .face-container.emotion-confused .eye-right {
  transform: translateY(-.1rem) scale(1.06) !important;
}
.vector-cute-skin .face-container.emotion-curious .eye-left {
  transform: translateY(-.28rem) scale(.95) !important;
}
.vector-cute-skin .face-container.emotion-curious .eye-right {
  transform: translateY(.16rem) scale(1.04) !important;
}
.vector-cute-skin .face-container.emotion-suspicious .eye-left { rotate: -5deg; }
.vector-cute-skin .face-container.emotion-suspicious .eye-right { rotate: 5deg; }
.vector-cute-skin .face-container.emotion-suspicious .mouth-path {
  stroke: #ff7b94;
  d: path('M 43 30 Q 60 24 77 30');
}
.vector-cute-skin .face-container.emotion-bored .mouth-path,
.vector-cute-skin .face-container.emotion-sleepy .mouth-path {
  stroke: rgba(44,229,255,.55);
  stroke-width: 6px;
  d: path('M 44 28 Q 60 25 76 28');
}
.vector-cute-skin .face-container.emotion-surprised .mouth-path {
  stroke-width: 9px;
  fill: rgba(5,10,26,.58);
  d: path('M 55 25 Q 60 14 65 25 Q 60 38 55 25 Z');
}
.vector-cute-skin .face-container.emotion-teary .tear-drop,
.vector-cute-skin .face-container.emotion-sad .tear-drop {
  opacity: 1;
  transform: rotate(25deg) translateY(5px) scale(1);
}
.vector-cute-skin .face-container.emotion-pained {
  animation: vectorPainedShake .52s ease-in-out 1;
}
@keyframes vectorPainedShake {
  0%, 100% { transform: translate3d(var(--face-x,0px), var(--face-y,0px), 0) rotate(0deg) scale(var(--face-scale,1)); }
  25% { transform: translate3d(calc(var(--face-x,0px) - 8px), var(--face-y,0px), 0) rotate(-2deg) scale(.99); }
  55% { transform: translate3d(calc(var(--face-x,0px) + 8px), var(--face-y,0px), 0) rotate(2deg) scale(1.01); }
}
.vector-cute-skin .face-container.emotion-dizzy .eye-socket {
  animation: vectorDizzyEye 1s linear infinite;
}
@keyframes vectorDizzyEye {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.vector-cute-skin .face-container.emotion-error .mouth-path,
.vector-cute-skin .face-container.emotion-angry .mouth-path,
.vector-cute-skin .face-container.emotion-pained .mouth-path {
  stroke: #ff355d;
}
.vector-cute-skin .face-container.react-stroke .blush,
.vector-cute-skin .face-container.react-touch .blush {
  opacity: .95;
  transform: scale(1.35);
}
.vector-cute-skin .face-container.react-punch .eye-socket,
.vector-cute-skin .face-container.react-dizzy .eye-socket {
  filter: saturate(1.18) brightness(1.05);
}
