.studio-mascot {
  --mascot-x: calc(100vw - 150px);
  --mascot-y: calc(100vh - 190px);
  --mascot-accent: #42e6e8;
  position: fixed;
  left: 0;
  top: 0;
  width: 156px;
  height: 190px;
  z-index: 75;
  transform: translate3d(var(--mascot-x), var(--mascot-y), 0);
  touch-action: none;
  user-select: none;
  cursor: grab;
  filter: drop-shadow(0 22px 18px rgba(6, 25, 38, 0.34));
  transition: transform 1.35s cubic-bezier(0.22, 0.78, 0.28, 1);
  contain: layout style;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.studio-mascot::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 37px;
  width: 62px;
  height: 80px;
  border-radius: 45%;
  background: radial-gradient(circle, rgba(62, 230, 232, .25), transparent 68%);
  filter: blur(9px);
  opacity: .72;
  pointer-events: none;
  animation: mascot-aura 3.2s ease-in-out infinite;
}

.studio-mascot.is-dragging {
  cursor: grabbing;
  transition: none;
}

.studio-mascot.is-hidden {
  display: none;
}

.studio-mascot-return {
  position: fixed;
  right: 0;
  bottom: 96px;
  z-index: 74;
  width: 38px;
  height: 52px;
  padding: 0 3px 0 0;
  border: 1px solid rgba(54, 210, 213, .32);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  color: #fff;
  background: linear-gradient(145deg, #48e9e7, #168a9b);
  box-shadow: 0 8px 24px rgba(22, 126, 145, .3);
  font: 700 18px/1 sans-serif;
  cursor: pointer;
  transform: translateX(0);
  transition: transform .2s ease, width .2s ease;
}

.studio-mascot-return:hover,
.studio-mascot-return:focus-visible {
  width: 44px;
}

.studio-mascot-return[hidden] {
  display: none;
}

.studio-mascot-guide-focus {
  position: fixed;
  z-index: 29980;
  border: 2px solid rgba(51, 220, 224, .95);
  border-radius: 15px;
  background: rgba(255, 255, 255, .04);
  box-shadow:
    0 0 0 5px rgba(52, 222, 225, .15),
    0 0 0 9999px rgba(20, 23, 43, .23),
    0 12px 34px rgba(24, 142, 158, .24);
  pointer-events: none;
  transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease;
  animation: mascot-guide-pulse 1.7s ease-in-out infinite;
}

.studio-mascot-guide-focus[hidden] {
  display: none;
}

.studio-mascot-guide-target {
  position: relative;
  z-index: 29990 !important;
}

.studio-mascot__stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 420px;
}

.studio-mascot__shadow {
  position: absolute;
  left: 30px;
  bottom: 4px;
  width: 96px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(11, 31, 42, 0.38) 0%, rgba(31, 152, 163, .12) 43%, rgba(15, 44, 55, 0) 74%);
  animation: mascot-shadow 2.4s ease-in-out infinite;
}

.studio-mascot__figure {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 156px;
  height: 180px;
  transform-origin: 50% 78%;
  animation: mascot-render-breathe 2.35s ease-in-out infinite;
}

.studio-mascot__render {
  position: absolute;
  left: 3px;
  top: 0;
  z-index: 2;
  width: 150px;
  height: 177px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transform-origin: 50% 78%;
  filter:
    drop-shadow(0 5px 2px rgba(1, 18, 25, .2))
    drop-shadow(0 10px 9px rgba(9, 39, 49, .24));
  animation: none;
}

/* Full code-native robot: every visible body part is an independent CSS layer. */
.studio-mascot__cssbot {
  --bot-shell-hi: #ffffff;
  --bot-shell-mid: #dce8eb;
  --bot-shell-low: #879da5;
  --bot-edge: #405b66;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 156px;
  height: 180px;
  transform-origin: 50% 78%;
  animation: mascot-render-breathe 2.35s ease-in-out infinite;
}

.studio-mascot__bot-head {
  position: absolute;
  left: 5px;
  top: 0;
  z-index: 8;
  width: 146px;
  height: 102px;
  border: 2px solid rgba(55, 78, 88, .78);
  border-radius: 72px 72px 58px 58px;
  background:
    radial-gradient(ellipse at 24% 4%, #fff 0 5%, rgba(255, 255, 255, .72) 12%, transparent 27%),
    radial-gradient(circle at 88% 18%, rgba(255, 247, 221, .48), transparent 25%),
    radial-gradient(circle at 78% 78%, rgba(39, 225, 231, .25), transparent 34%),
    linear-gradient(132deg, #fff 0%, #fbfdfd 24%, #e3ecee 47%, #a9bbc0 70%, #6d858e 88%, #425f6a 100%);
  box-shadow:
    inset 9px 9px 15px rgba(255, 255, 255, .98),
    inset -13px -13px 20px rgba(30, 65, 77, .34),
    inset 0 -3px 0 rgba(55, 79, 88, .34),
    0 7px 12px rgba(8, 35, 46, .34),
    0 0 22px rgba(50, 226, 230, .16);
  transform: perspective(260px) rotateY(-4deg) rotateZ(-.5deg);
  transform-origin: 50% 65%;
}

.studio-mascot__bot-head::before {
  content: "";
  position: absolute;
  inset: 4px 7px auto;
  height: 34px;
  border-radius: 50%;
  border-top: 2px solid rgba(255, 255, 255, .9);
  background: linear-gradient(172deg, rgba(255, 255, 255, .38), transparent 68%);
  pointer-events: none;
}

.studio-mascot__bot-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 41px;
  height: 11px;
  border: 2px solid #4d6872;
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(90deg, #6d858d, #f8ffff 48%, #718a93);
  transform: translateX(-50%);
  box-shadow: inset 0 -3px 4px rgba(33, 63, 73, .26);
}

.studio-mascot__bot-helmet-line {
  position: absolute;
  left: 49px;
  top: 8px;
  width: 48px;
  height: 9px;
  border-radius: 50%;
  border-top: 3px solid #3ce4e7;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .92), 0 0 7px rgba(55, 224, 228, .5);
  transform: rotate(-3deg);
}

.studio-mascot__bot-ear {
  position: absolute;
  top: 34px;
  z-index: 9;
  width: 20px;
  height: 43px;
  border: 2px solid #48636d;
  border-radius: 13px;
  background: linear-gradient(90deg, #728a92, #f7ffff 44%, #9eb1b6 65%, #536e77);
  box-shadow: inset 3px 2px 4px rgba(255, 255, 255, .85), 0 4px 7px rgba(12, 42, 53, .28);
}

.studio-mascot__bot-ear--left { left: -8px; width: 18px; transform: scale(.92); }
.studio-mascot__bot-ear--right { right: -11px; width: 22px; transform: scaleX(-1); }

.studio-mascot__bot-ear i {
  position: absolute;
  left: 4px;
  top: 5px;
  width: 9px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 45% 28%, #eaffff 0 8%, #62f5f3 20%, #22ccd3 58%, #08778c 100%);
  box-shadow: 0 0 7px #5af6f4, 0 0 13px rgba(47, 231, 233, .75), inset 1px 1px 2px #fff;
}

.studio-mascot__cssbot .studio-mascot__face-overlay {
  left: 15px;
  top: 25px;
  width: 113px;
  height: 60px;
  border-radius: 36px 36px 29px 30px;
  box-shadow:
    inset 0 7px 15px rgba(0, 0, 0, .9),
    inset 0 -6px 15px rgba(21, 218, 226, .16),
    0 0 0 2px rgba(4, 19, 25, .76),
    0 0 15px rgba(30, 226, 233, .3);
}

.studio-mascot__cssbot .studio-mascot__dynamic-eyes {
  left: 21px;
  top: 17px;
  width: 71px;
  height: 21px;
}

.studio-mascot__cssbot .studio-mascot__dynamic-eye {
  width: 16px;
  height: 20px;
}

.studio-mascot__cssbot .studio-mascot__dynamic-mouth {
  left: 48px;
  top: 43px;
}

.studio-mascot__bot-torso {
  position: absolute;
  left: 39px;
  top: 96px;
  z-index: 5;
  width: 78px;
  height: 58px;
  border: 2px solid #526d77;
  border-radius: 28px 28px 34px 34px;
  background:
    radial-gradient(circle at 24% 8%, #fff 0 7%, rgba(255, 255, 255, .62) 15%, transparent 29%),
    radial-gradient(circle at 84% 83%, rgba(47, 225, 229, .2), transparent 31%),
    linear-gradient(132deg, #fff 0%, #edf3f4 38%, #b4c5c9 68%, #718a93 100%);
  box-shadow:
    inset 6px 5px 8px rgba(255, 255, 255, .9),
    inset -9px -9px 13px rgba(42, 72, 83, .32),
    0 7px 11px rgba(12, 42, 53, .27),
    0 0 12px rgba(44, 223, 227, .09);
}

.studio-mascot__bot-torso::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 4px;
  width: 46px;
  height: 18px;
  border-bottom: 1px solid rgba(66, 94, 104, .45);
  border-radius: 0 0 22px 22px;
  box-shadow: inset 0 -4px 7px rgba(44, 73, 83, .1);
}

.studio-mascot__bot-collar {
  position: absolute;
  left: 13px;
  top: -3px;
  width: 46px;
  height: 13px;
  border: 2px solid #526d77;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(180deg, #f8ffff, #8299a0 82%);
  box-shadow: inset 0 3px 3px #fff;
}

.studio-mascot__bot-chest {
  position: absolute;
  left: 11px;
  top: 13px;
  width: 52px;
  height: 34px;
  border: 1px solid rgba(65, 91, 101, .48);
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(158, 181, 187, .22));
  box-shadow: inset -3px -4px 7px rgba(53, 82, 92, .16);
}

.studio-mascot__bot-core {
  position: absolute;
  left: 25px;
  top: 17px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 2px solid #4d6972;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff 0 8%, #baffff 16%, #3ae9e9 48%, #1297a8 72%, #07566d 100%);
  box-shadow: inset -2px -3px 5px rgba(5, 69, 83, .42), 0 0 9px rgba(52, 232, 233, .72);
  animation: mascot-core-pulse 2.1s ease-in-out infinite;
}

.studio-mascot__bot-core b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font: 900 11px/1 sans-serif;
  text-shadow: 0 1px 2px rgba(3, 85, 97, .7);
}

.studio-mascot__bot-waist {
  position: absolute;
  left: 21px;
  bottom: -7px;
  width: 33px;
  height: 12px;
  border: 2px solid #4d6872;
  border-radius: 5px 5px 12px 12px;
  background: linear-gradient(90deg, #6d858e, #f7ffff 50%, #708991);
}

.studio-mascot__bot-arm {
  position: absolute;
  top: 99px;
  z-index: 4;
  width: 31px;
  height: 59px;
  transform-origin: 50% 8px;
}

.studio-mascot__bot-arm--left { left: 21px; transform: rotate(42deg); }
.studio-mascot__bot-arm--right { right: 19px; transform: scaleX(-1) rotate(10deg); }

.studio-mascot__bot-shoulder {
  position: absolute;
  right: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border: 2px solid #4e6973;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #fff, #dce8ea 45%, #80969e 76%, #506a74);
  box-shadow: inset 3px 3px 4px #fff, 0 3px 5px rgba(17, 48, 58, .25);
}

.studio-mascot__bot-upper-arm {
  position: absolute;
  left: 7px;
  top: 14px;
  width: 20px;
  height: 21px;
  border: 2px solid #506b74;
  border-radius: 10px 9px 8px 10px;
  background: linear-gradient(115deg, #fff, #d4e0e3 48%, #718991);
  transform: rotate(13deg);
  box-shadow: inset 3px 2px 4px #fff;
}

.studio-mascot__bot-elbow {
  position: absolute;
  left: 2px;
  top: 30px;
  width: 16px;
  height: 16px;
  border: 2px solid #4e6973;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, #a9bcc1 55%, #5f7881);
}

.studio-mascot__bot-forearm {
  position: absolute;
  left: -1px;
  top: 39px;
  width: 20px;
  height: 18px;
  border: 2px solid #4e6973;
  border-radius: 9px 9px 11px 11px;
  background: linear-gradient(120deg, #fff, #d6e2e4 48%, #748b93);
  transform: rotate(-7deg);
  box-shadow: inset 3px 2px 4px #fff;
}

.studio-mascot__bot-hand {
  position: absolute;
  left: -4px;
  top: 52px;
  width: 21px;
  height: 15px;
  border: 2px solid #4d6872;
  border-radius: 8px 8px 10px 10px;
  background: linear-gradient(140deg, #fff, #c8d7da 62%, #748b93);
  box-shadow: inset 2px 2px 3px #fff;
}

.studio-mascot__bot-hand b {
  position: absolute;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border: 1px solid #4d6872;
  border-radius: 0 0 4px 4px;
  background: #dce7e9;
}

.studio-mascot__bot-hand b:nth-child(1) { left: 1px; transform: rotate(12deg); }
.studio-mascot__bot-hand b:nth-child(2) { left: 7px; }
.studio-mascot__bot-hand b:nth-child(3) { right: 0; transform: rotate(-12deg); }

.studio-mascot__bot-leg {
  position: absolute;
  top: 145px;
  z-index: 3;
  width: 31px;
  height: 34px;
  transform-origin: 50% 2px;
}

.studio-mascot__bot-leg--left { left: 48px; transform: rotate(5deg); }
.studio-mascot__bot-leg--right { right: 47px; transform: rotate(-5deg); }

.studio-mascot__bot-thigh {
  position: absolute;
  left: 7px;
  top: 0;
  width: 20px;
  height: 15px;
  border: 2px solid #4d6872;
  border-radius: 8px 8px 10px 10px;
  background: linear-gradient(140deg, #fff, #cedcdf 56%, #718991);
  box-shadow: inset 3px 2px 4px #fff;
}

.studio-mascot__bot-knee {
  position: absolute;
  left: 8px;
  top: 12px;
  z-index: 2;
  width: 18px;
  height: 14px;
  border: 2px solid #4d6872;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, #a8bbc0 58%, #5c747d);
}

.studio-mascot__bot-shin {
  position: absolute;
  left: 7px;
  top: 22px;
  width: 20px;
  height: 14px;
  border: 2px solid #4d6872;
  border-radius: 7px 7px 9px 9px;
  background: linear-gradient(135deg, #fff, #cbdadd 58%, #6d858e);
}

.studio-mascot__bot-foot {
  position: absolute;
  left: 2px;
  top: 31px;
  width: 30px;
  height: 12px;
  border: 2px solid #4d6872;
  border-radius: 12px 14px 8px 8px;
  background: linear-gradient(155deg, #fff, #c8d7da 64%, #667e87);
  box-shadow: inset 3px 2px 3px #fff, 0 3px 4px rgba(15, 45, 56, .24);
}

.studio-mascot__face-overlay {
  position: absolute;
  left: 31px;
  top: 37px;
  z-index: 4;
  width: 89px;
  height: 50px;
  overflow: hidden;
  border: 1px solid rgba(159, 244, 248, .3);
  border-radius: 28px 27px 23px 24px;
  background:
    radial-gradient(circle at 50% 120%, rgba(14, 226, 232, .2), transparent 58%),
    linear-gradient(156deg, rgba(25, 55, 67, .98) 0%, #06151c 48%, #01070b 100%);
  box-shadow:
    inset 0 5px 12px rgba(0, 0, 0, .86),
    inset 0 -5px 13px rgba(21, 218, 226, .13),
    0 0 0 2px rgba(4, 19, 25, .7),
    0 0 12px rgba(30, 226, 233, .25);
  transform: rotate(.4deg) translateZ(18px);
  pointer-events: none;
}

.studio-mascot__face-overlay::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 68px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(221, 255, 255, .24), rgba(255, 255, 255, .015));
  transform: rotate(-4deg);
  filter: blur(.15px);
}

.studio-mascot__face-overlay::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(85, 242, 244, .09);
  border-radius: inherit;
  box-shadow: inset 0 0 13px rgba(55, 239, 243, .08);
}

.studio-mascot__face-scan {
  position: absolute;
  z-index: 1;
  left: -20%;
  top: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(105, 255, 255, .16), transparent);
  transform: skewX(-14deg);
  animation: mascot-face-scan 4.8s ease-in-out infinite;
}

.studio-mascot__dynamic-eyes {
  position: absolute;
  z-index: 3;
  left: 15px;
  top: 14px;
  width: 58px;
  height: 19px;
}

.studio-mascot__dynamic-eye {
  position: absolute;
  top: 0;
  width: 15px;
  height: 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 27%, #f4ffff 0 9%, #bbffff 15%, #55f1ee 42%, #17b8c4 72%, #087086 100%);
  box-shadow:
    0 0 5px rgba(150, 255, 255, .96),
    0 0 12px rgba(47, 239, 239, .8),
    inset -2px -3px 4px rgba(2, 89, 106, .36);
  transform: translate(var(--mascot-eye-x, 0), var(--mascot-eye-y, 0));
  transform-origin: center;
  animation: mascot-dynamic-blink 5.2s infinite;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), width .2s ease, height .2s ease;
}

.studio-mascot__dynamic-eye b {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  filter: blur(.2px);
}

.studio-mascot__dynamic-eye--left { left: 0; }
.studio-mascot__dynamic-eye--right { right: 0; animation-delay: .035s; }

.studio-mascot__dynamic-mouth {
  position: absolute;
  z-index: 3;
  left: 38px;
  top: 35px;
  width: 13px;
  height: 5px;
  border: solid #64f4f1;
  border-width: 0 0 2px;
  border-radius: 0 0 12px 12px;
  filter: drop-shadow(0 0 4px rgba(83, 250, 247, .9));
  transition: all .22s ease;
}

.studio-mascot__orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(73, 231, 235, .25);
  border-radius: 50%;
  pointer-events: none;
}

.studio-mascot__orbit::before,
.studio-mascot__orbit::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8fffff;
  box-shadow: 0 0 8px #42e6e8;
}

.studio-mascot__orbit--outer {
  left: 1px;
  top: 11px;
  width: 151px;
  height: 122px;
  border-left-color: transparent;
  border-right-color: rgba(74, 238, 241, .08);
  transform: rotate(-17deg);
  animation: mascot-orbit-outer 8s linear infinite;
}

.studio-mascot__orbit--outer::before { left: 10px; top: 29px; }
.studio-mascot__orbit--outer::after { right: 15px; bottom: 24px; width: 2px; height: 2px; }

.studio-mascot__orbit--inner {
  left: 18px;
  top: 28px;
  width: 118px;
  height: 89px;
  border-top-color: transparent;
  border-bottom-color: rgba(68, 236, 239, .12);
  transform: rotate(11deg);
  animation: mascot-orbit-inner 6s linear infinite reverse;
}

.studio-mascot__orbit--inner::before { right: 4px; top: 20px; width: 3px; height: 3px; }
.studio-mascot__orbit--inner::after { display: none; }

.studio-mascot__spark {
  position: absolute;
  z-index: 5;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #baffff;
  box-shadow: 0 0 7px #42e6e8;
  pointer-events: none;
  animation: mascot-spark 2.8s ease-in-out infinite;
}

.studio-mascot__spark--one { left: 12px; top: 55px; }
.studio-mascot__spark--two { right: 8px; top: 32px; animation-delay: -.9s; }
.studio-mascot__spark--three { right: 22px; top: 112px; animation-delay: -1.7s; }

.studio-mascot__body {
  display: none;
  position: absolute;
  left: 19px;
  top: 24px;
  width: 79px;
  height: 105px;
  transform-style: preserve-3d;
  transform-origin: 50% 88%;
  animation: mascot-breathe 2.4s ease-in-out infinite;
}

.studio-mascot__body::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 58px;
  width: 59px;
  height: 45px;
  border-radius: 25px;
  background: linear-gradient(110deg, rgba(255,255,255,.58), transparent 42%, rgba(43,211,214,.12));
  transform: translateZ(11px);
  pointer-events: none;
}

.studio-mascot__antenna {
  display: none;
}

.studio-mascot__antenna::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff 0 9%, #d5d0ff 13%, #9e8eff 27%, #654ee9 64%, #302082 100%);
  box-shadow: inset -2px -3px 5px rgba(28, 17, 99, .35), 0 0 13px rgba(120, 103, 255, 0.78);
}

.studio-mascot__head {
  position: absolute;
  left: -2px;
  top: 0;
  width: 81px;
  height: 69px;
  border: 2px solid rgba(48, 72, 84, 0.52);
  border-radius: 39px 39px 32px 32px;
  background:
    radial-gradient(circle at 28% 13%, rgba(255,255,255,1) 0 8%, rgba(255,255,255,.42) 17%, transparent 29%),
    radial-gradient(circle at 80% 74%, rgba(42,220,222,.18), transparent 38%),
    linear-gradient(145deg, #fff 0%, #edf3f3 36%, #bdcbce 70%, #718993 100%);
  box-shadow:
    inset -9px -10px 15px rgba(35, 67, 77, 0.28),
    inset 7px 7px 10px rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(255,255,255,.7),
    0 4px 0 #627c85,
    0 8px 13px rgba(20,48,60,.3);
  transform: translateZ(16px);
}

.studio-mascot__helmet-stripe {
  position: absolute;
  left: 23px;
  top: 5px;
  width: 35px;
  height: 7px;
  border-radius: 50%;
  border-top: 2px solid rgba(41, 195, 201, .78);
  box-shadow: 0 -1px 0 rgba(255,255,255,.9);
  transform: rotate(-5deg);
}

.studio-mascot__ear {
  position: absolute;
  top: 23px;
  z-index: 3;
  width: 15px;
  height: 27px;
  border: 2px solid #4b6670;
  border-radius: 10px;
  background: linear-gradient(90deg, #95a9ad, #f9ffff 45%, #7e969c);
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.9), 0 3px 5px rgba(14,45,57,.28);
}

.studio-mascot__ear--left { left: -8px; }
.studio-mascot__ear--right { right: -8px; transform: scaleX(-1); }

.studio-mascot__ear i {
  position: absolute;
  left: 3px;
  top: 4px;
  width: 7px;
  height: 15px;
  border-radius: 6px;
  background: linear-gradient(#8fffff, #23d9dc 55%, #087d91);
  box-shadow: 0 0 8px rgba(52, 238, 239, .9), inset 1px 1px 2px rgba(255,255,255,.75);
}

.studio-mascot__face {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 61px;
  height: 40px;
  overflow: hidden;
  border: 2px solid rgba(22, 54, 65, 0.72);
  border-radius: 22px 22px 18px 18px;
  background:
    radial-gradient(circle at 50% 118%, rgba(35, 216, 218, 0.34), transparent 58%),
    radial-gradient(circle at 27% 15%, rgba(101, 245, 246, .12), transparent 34%),
    linear-gradient(155deg, #12303a 0%, #07161d 54%, #02080d 100%);
  box-shadow:
    inset 0 5px 11px rgba(0,0,0,.75),
    inset 0 -2px 9px rgba(38,228,230,.18),
    0 2px 2px rgba(255,255,255,.9),
    0 0 0 2px rgba(37,174,181,.18);
}

.studio-mascot__face::after {
  content: "";
  position: absolute;
  inset: 2px 7px auto 7px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.29), rgba(255,255,255,.03));
  transform: rotate(-4deg);
}

.studio-mascot__visor-glow {
  position: absolute;
  inset: 2px;
  border-radius: 19px 19px 15px 15px;
  box-shadow: inset 0 0 11px rgba(75, 244, 244, .12), 0 0 9px rgba(42, 219, 223, .18);
}

.studio-mascot__eyes {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 37px;
  height: 8px;
}

.studio-mascot__eyes::before,
.studio-mascot__eyes::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 24%, #fff 0 14%, #c9ffff 22%, #5df4f2 58%, #1aa6b3 100%);
  box-shadow: 0 0 5px #79ffff, 0 0 11px rgba(68,239,239,.78);
  animation: mascot-blink 4.8s infinite;
}

.studio-mascot__eyes::before { left: 1px; }
.studio-mascot__eyes::after { right: 1px; }

.studio-mascot__cheeks::before,
.studio-mascot__cheeks::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 6px;
  height: 3px;
  border-radius: 50%;
  background: #48e6e3;
  box-shadow: 0 0 6px rgba(61, 235, 233, .58);
  opacity: .42;
}

.studio-mascot__cheeks::before { left: 8px; transform: rotate(9deg); }
.studio-mascot__cheeks::after { right: 8px; transform: rotate(-9deg); }

.studio-mascot__mouth {
  position: absolute;
  left: 25px;
  top: 28px;
  width: 11px;
  height: 5px;
  border: solid #62efee;
  border-width: 0 0 2px;
  border-radius: 0 0 10px 10px;
  opacity: .85;
}

.studio-mascot__torso {
  position: absolute;
  left: 12px;
  top: 62px;
  width: 54px;
  height: 47px;
  border: 2px solid rgba(47, 75, 85, 0.52);
  border-radius: 20px 20px 25px 25px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.96) 0 9%, transparent 25%),
    radial-gradient(circle at 75% 76%, rgba(40,214,216,.16), transparent 34%),
    linear-gradient(145deg, #fff 0%, #e8f0f0 43%, #b9c8cb 76%, #718991 100%);
  box-shadow: inset 7px 6px 10px #fff, inset -8px -8px 12px rgba(41,70,80,.28), 0 5px 8px rgba(17,48,60,.25);
  transform: translateZ(5px);
}

.studio-mascot__collar {
  position: absolute;
  left: 7px;
  top: 1px;
  width: 35px;
  height: 8px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, #157f90, #72ffff 48%, #137d8d);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.55), 0 2px 4px rgba(20,122,137,.28);
}

.studio-mascot__belly-panel {
  position: absolute;
  left: 8px;
  top: 13px;
  width: 35px;
  height: 27px;
  border: 1px solid rgba(46, 80, 88, .38);
  border-radius: 45% 45% 52% 52%;
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(178,199,202,.42));
  box-shadow: inset 2px 2px 4px rgba(255,255,255,.8), inset -2px -3px 5px rgba(48,79,88,.15);
}

.studio-mascot__core {
  position: absolute;
  left: 20px;
  top: 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(20, 132, 145, .62);
  background: radial-gradient(circle at 35% 30%, #fff, #b9ffff 20%, var(--mascot-accent) 58%, #08778a);
  box-shadow: 0 0 9px rgba(57,230,231,.72), inset 0 0 2px #fff;
}

.studio-mascot__chest-mark {
  position: absolute;
  left: 23px;
  top: 29px;
  color: rgba(19, 111, 125, .72);
  font: 900 7px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 1px 0 #fff;
}

.studio-mascot__arm,
.studio-mascot__leg {
  position: absolute;
  background:
    radial-gradient(circle at 28% 16%, #fff 0 8%, transparent 24%),
    linear-gradient(145deg, #fff 0%, #dce7e8 45%, #a9bec2 76%, #69828b 100%);
  border: 1px solid rgba(37, 72, 82, .48);
  box-shadow: inset 3px 3px 5px #fff, inset -3px -4px 5px rgba(40,72,82,.24), 0 3px 5px rgba(15,48,59,.2);
}

.studio-mascot__arm {
  top: 68px;
  width: 17px;
  height: 35px;
  border-radius: 13px;
  transform-origin: 50% 9px;
}

.studio-mascot__arm--left { left: -1px; transform: rotate(27deg); }
.studio-mascot__arm--right { right: -1px; transform: rotate(-27deg); }

.studio-mascot__arm::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -2px;
  width: 12px;
  height: 13px;
  border-radius: 48% 48% 55% 55%;
  background: linear-gradient(145deg, #fff, #c1d2d4 70%, #728b92);
  box-shadow: inset 2px 2px 3px #fff;
}

.studio-mascot__leg {
  top: 101px;
  width: 20px;
  height: 21px;
  border-radius: 8px 8px 11px 11px;
  transform-origin: 50% 2px;
}

.studio-mascot__leg--left { left: 16px; transform: rotate(3deg); }
.studio-mascot__leg--right { right: 16px; transform: rotate(-3deg); }

.studio-mascot__leg::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 24px;
  height: 12px;
  border-radius: 50% 54% 45% 48%;
  background: linear-gradient(160deg, #fefeff, #bed0d2 68%, #718a91);
  box-shadow: inset 3px 2px 4px #fff, 0 3px 4px rgba(16,48,58,.22);
}

.studio-mascot__bubble {
  position: absolute;
  right: 116px;
  top: -13px;
  width: max-content;
  max-width: 190px;
  padding: 9px 12px;
  border: 1px solid rgba(92, 84, 180, .16);
  border-radius: 14px 14px 3px 14px;
  color: #393653;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(38, 39, 69, .16), 0 0 0 1px rgba(117, 128, 154, .08);
  font: 600 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(7px) scale(.94);
  transform-origin: 100% 100%;
  transition: opacity .2s ease, transform .24s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.studio-mascot__bubble-copy {
  display: block;
}

.studio-mascot__guide-step,
.studio-mascot__guide-title,
.studio-mascot__guide-actions {
  display: none;
}

.studio-mascot.is-guiding {
  z-index: 30000;
  cursor: default;
}

.studio-mascot.is-choosing-guide {
  z-index: 30000;
  cursor: default;
}

/* The workspace scales the idle mascot down to .72. Keep instructional text
   at device-pixel scale so the chooser stays sharp instead of looking soft. */
.studio-mascot.is-guiding,
.studio-mascot.is-choosing-guide {
  transform: translate3d(var(--mascot-x), var(--mascot-y), 0) scale(1) !important;
  opacity: 1 !important;
}

/* Match the workspace selector's specificity so the 1:1 guide scale wins
   over the compact idle-mascot scale declared in workspace.css. */
body:has(.app.workspace-mode) .studio-mascot.is-guiding,
body:has(.app.workspace-mode) .studio-mascot.is-choosing-guide {
  transform: translate3d(var(--mascot-x), var(--mascot-y), 0) scale(1) !important;
  opacity: 1 !important;
}

.studio-mascot.is-guiding .studio-mascot__bubble {
  z-index: 30;
  top: -32px;
  right: 148px;
  width: 230px;
  max-width: 230px;
  padding: 13px 14px 12px;
  border-color: rgba(103, 87, 222, .25);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(35,36,67,.22), 0 0 0 1px rgba(116, 128, 153, .12);
  pointer-events: auto;
}

.studio-mascot.is-choosing-guide .studio-mascot__bubble {
  z-index: 30;
  top: auto;
  right: 142px;
  bottom: 46px;
  width: 320px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(430px, calc(100vh - 40px));
  padding: 14px;
  border-color: rgba(103, 87, 222, .25);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(35,36,67,.24), 0 0 0 1px rgba(116, 128, 153, .12);
  pointer-events: auto;
  overflow: hidden;
}

.studio-mascot.is-guiding .studio-mascot__guide-step {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  margin-bottom: 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #48e5e3, #168a9b);
  font-size: 10px;
  letter-spacing: .04em;
}

.studio-mascot.is-choosing-guide .studio-mascot__guide-step {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  margin-bottom: 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #48e5e3, #168a9b);
  font-size: 10px;
  letter-spacing: .04em;
}

.studio-mascot.is-guiding .studio-mascot__guide-title {
  display: block;
  margin-bottom: 5px;
  color: #26243f;
  font-size: 14px;
  line-height: 1.35;
}

.studio-mascot.is-choosing-guide .studio-mascot__guide-title {
  display: block;
  margin-bottom: 5px;
  color: #26243f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.studio-mascot.is-guiding .studio-mascot__bubble-copy {
  color: #66627d;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.55;
}

.studio-mascot.is-choosing-guide .studio-mascot__bubble-copy {
  color: #4f5b70;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
}

.studio-mascot__guide-consent {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.studio-mascot__guide-consent[hidden],
.studio-mascot__guide-menu[hidden] {
  display: none !important;
}

.studio-mascot__guide-consent button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  font: 750 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.studio-mascot__guide-decline {
  color: #747087;
  background: #f0eff6;
}

.studio-mascot__guide-choose {
  color: #fff;
  background: linear-gradient(135deg, #42dedf, #168b9c);
  box-shadow: 0 5px 12px rgba(21, 136, 151, .27);
}

.studio-mascot__guide-menu {
  max-height: 300px;
  margin-top: 10px;
  padding-right: 4px;
  display: grid;
  gap: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.studio-mascot__guide-menu-group {
  display: grid;
  gap: 5px;
}

.studio-mascot__guide-menu-group > span {
  color: #39455d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.studio-mascot__guide-menu-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.studio-mascot__guide-menu button {
  min-width: 0;
  min-height: 50px;
  padding: 7px 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  background: #f8fbff;
  color: #243047;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.studio-mascot__guide-menu button:hover,
.studio-mascot__guide-menu button:focus-visible {
  border-color: #61cfd1;
  background: #eafcff;
  transform: translateY(-1px);
  outline: none;
}

.studio-mascot__guide-menu button strong {
  overflow: hidden;
  color: #243047;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-mascot__guide-menu button small {
  overflow: hidden;
  color: #66748b;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-mascot.is-guiding .studio-mascot__guide-actions {
  position: relative;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 36px;
  margin-top: 11px;
}

.studio-mascot__guide-actions[hidden] {
  display: none !important;
}

.studio-mascot__guide-actions button {
  position: relative;
  z-index: 33;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.studio-mascot__guide-skip {
  color: #747087;
  background: #f0eff6;
}

.studio-mascot__guide-next {
  color: #fff;
  background: linear-gradient(135deg, #42dedf, #168b9c);
  box-shadow: 0 5px 12px rgba(21, 136, 151, .27);
}

.studio-mascot__bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.studio-mascot[data-bubble-side="right"] .studio-mascot__bubble {
  right: auto;
  left: 116px;
  border-radius: 14px 14px 14px 3px;
  transform-origin: 0 100%;
}

@media (min-width: 721px) {
  /* The idle robot is compacted to .72 by workspace.css. Apply the inverse
     scale only to its idle bubble so text renders at a crisp 1:1 size while
     the robot itself remains small and unobtrusive. */
  body:has(.app.workspace-mode) .studio-mascot:not(.is-guiding):not(.is-choosing-guide) .studio-mascot__bubble {
    transform: translateY(7px) scale(1.32);
  }

  body:has(.app.workspace-mode) .studio-mascot:not(.is-guiding):not(.is-choosing-guide) .studio-mascot__bubble.is-visible {
    transform: translateY(0) scale(1.388889);
  }
}

.studio-mascot.is-guiding[data-bubble-side="right"] .studio-mascot__bubble {
  right: auto;
  left: 148px;
}

.studio-mascot.is-choosing-guide[data-bubble-side="right"] .studio-mascot__bubble {
  right: auto;
  left: 142px;
}

.studio-mascot__close,
.studio-mascot__help {
  position: absolute;
  top: 24px;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(34, 35, 61, .72);
  font: 16px/23px sans-serif;
  cursor: pointer;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .18s ease, transform .18s ease;
}

.studio-mascot__close { right: 3px; }

.studio-mascot__help {
  right: 29px;
  color: #087f91;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 10px rgba(51,44,119,.2);
  font-size: 13px;
}

.studio-mascot:hover .studio-mascot__close,
.studio-mascot:focus-within .studio-mascot__close,
.studio-mascot:hover .studio-mascot__help,
.studio-mascot:focus-within .studio-mascot__help {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.studio-mascot.is-guiding .studio-mascot__close,
.studio-mascot.is-guiding .studio-mascot__help {
  display: none;
}

.studio-mascot.is-choosing-guide .studio-mascot__help {
  display: none;
}

.studio-mascot__ball {
  position: absolute;
  left: -2px;
  bottom: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, #fff 0 7%, #ffca64 12%, #ff7c5c 58%, #c93770);
  box-shadow: inset -3px -4px 5px rgba(84,20,60,.22), 0 5px 8px rgba(48,34,75,.2);
  opacity: 0;
}

.studio-mascot[data-mood="happy"] .studio-mascot__body { animation: mascot-hop .62s ease-in-out 2; }
.studio-mascot[data-mood="happy"] .studio-mascot__arm--left { animation: mascot-wave .3s ease-in-out 4 alternate; }
.studio-mascot[data-mood="walk"] .studio-mascot__body { animation: mascot-walk-body .46s ease-in-out infinite alternate; }
.studio-mascot[data-mood="walk"] .studio-mascot__leg--left { animation: mascot-walk-leg .46s ease-in-out infinite alternate; }
.studio-mascot[data-mood="walk"] .studio-mascot__leg--right { animation: mascot-walk-leg .46s ease-in-out infinite alternate-reverse; }
.studio-mascot[data-mood="play"] .studio-mascot__ball { opacity: 1; animation: mascot-ball 1s ease-in-out infinite; }
.studio-mascot[data-mood="play"] .studio-mascot__arm--left { animation: mascot-reach .5s ease-in-out infinite alternate; }
.studio-mascot[data-mood="play"] .studio-mascot__head { animation: mascot-watch-ball 1s ease-in-out infinite; }
.studio-mascot[data-mood="sleep"] .studio-mascot__body { animation: mascot-sleep 2.7s ease-in-out infinite; }
.studio-mascot[data-mood="sleep"] .studio-mascot__eyes::before,
.studio-mascot[data-mood="sleep"] .studio-mascot__eyes::after { height: 2px; top: 4px; border-radius: 4px; animation: none; }
.studio-mascot[data-mood="sleep"] .studio-mascot__mouth { width: 6px; height: 6px; left: 24px; border: 1.5px solid #aef7ff; border-radius: 50%; }
.studio-mascot[data-mood="sleep"] .studio-mascot__head::after {
  content: "Z";
  position: absolute;
  right: -8px;
  top: -10px;
  color: #25cfd1;
  font: 800 15px/1 sans-serif;
  animation: mascot-z 1.8s ease-out infinite;
}

.studio-mascot[data-mood="guide"] .studio-mascot__body {
  animation: mascot-guide-body 1.15s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="guide"] .studio-mascot__arm--right {
  animation: mascot-point-right .85s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="guide"] .studio-mascot__head {
  animation: mascot-guide-head 1.15s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="happy"] .studio-mascot__cssbot {
  animation: mascot-render-hop .62s cubic-bezier(.2,.75,.28,1) 2;
}

.studio-mascot[data-mood="walk"] .studio-mascot__cssbot {
  animation: mascot-render-walk .46s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="play"] .studio-mascot__cssbot {
  animation: mascot-render-play 1s ease-in-out infinite;
}

.studio-mascot[data-mood="sleep"] .studio-mascot__cssbot {
  animation: mascot-render-sleep 2.7s ease-in-out infinite;
  filter: grayscale(.18) brightness(.86) drop-shadow(0 8px 8px rgba(9,39,49,.2));
}

.studio-mascot[data-mood="guide"] .studio-mascot__cssbot {
  animation: mascot-render-guide 1.05s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="happy"] .studio-mascot__bot-arm--left {
  animation: mascot-cssbot-wave .32s ease-in-out 4 alternate;
}

.studio-mascot[data-mood="happy"] .studio-mascot__bot-head {
  animation: mascot-cssbot-head-happy .62s ease-in-out 2;
}

.studio-mascot[data-mood="walk"] .studio-mascot__bot-leg--left {
  animation: mascot-cssbot-leg-left .46s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="walk"] .studio-mascot__bot-leg--right {
  animation: mascot-cssbot-leg-right .46s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="walk"] .studio-mascot__bot-arm--left {
  animation: mascot-cssbot-arm-left .46s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="walk"] .studio-mascot__bot-arm--right {
  animation: mascot-cssbot-arm-right .46s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="play"] .studio-mascot__bot-arm--left {
  animation: mascot-cssbot-reach .52s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="guide"] .studio-mascot__bot-arm--right {
  animation: mascot-cssbot-point .8s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="happy"] .studio-mascot__dynamic-eye {
  height: 16px;
  border-radius: 50% 50% 44% 44%;
}

.studio-mascot[data-mood="happy"] .studio-mascot__dynamic-mouth {
  left: 45px;
  top: 39px;
  width: 19px;
  height: 8px;
  border-width: 0 0 3px;
}

.studio-mascot[data-mood="sleep"] .studio-mascot__dynamic-eye {
  top: 8px;
  height: 2px;
  border-radius: 5px;
  background: #77f8f5;
  animation: none;
  box-shadow: 0 0 7px rgba(72, 239, 237, .8);
  transform: translateX(var(--mascot-eye-x, 0));
}

.studio-mascot[data-mood="sleep"] .studio-mascot__dynamic-mouth {
  left: 50px;
  top: 40px;
  width: 7px;
  height: 7px;
  border: 1.5px solid #aefcff;
  border-radius: 50%;
}

.studio-mascot[data-mood="guide"] .studio-mascot__dynamic-eye {
  transform: translate(3px, -1px);
}

.studio-mascot[data-mood="play"] .studio-mascot__dynamic-eye {
  transform: translate(-2px, 2px) scale(.92);
}

.studio-mascot[data-mood="sleep"] .studio-mascot__stage::after {
  content: "Z";
  position: absolute;
  left: 91px;
  top: 7px;
  z-index: 3;
  color: #54eeec;
  font: 900 15px/1 sans-serif;
  text-shadow: 0 0 7px rgba(52,230,230,.7);
  animation: mascot-z 1.8s ease-out infinite;
}

@keyframes mascot-breathe { 0%,100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-4px) rotateX(2deg); } }
@keyframes mascot-shadow { 0%,100% { transform: scale(1); opacity: .75; } 50% { transform: scale(.84); opacity: .5; } }
@keyframes mascot-blink { 0%,45%,49%,100% { transform: scaleY(1); } 47% { transform: scaleY(.08); } }
@keyframes mascot-hop { 0%,100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-18px) rotate(-5deg); } 65% { transform: translateY(-5px) rotate(5deg); } }
@keyframes mascot-wave { from { transform: rotate(22deg); } to { transform: rotate(122deg); } }
@keyframes mascot-walk-body { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
@keyframes mascot-walk-leg { from { transform: rotate(15deg); } to { transform: rotate(-15deg); } }
@keyframes mascot-ball { 0%,100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-14px, -27px) rotate(180deg); } }
@keyframes mascot-reach { from { transform: rotate(22deg); } to { transform: rotate(55deg); } }
@keyframes mascot-watch-ball { 0%,100% { transform: rotate(0) translateZ(16px); } 50% { transform: rotate(-9deg) translateZ(16px); } }
@keyframes mascot-sleep { 0%,100% { transform: translateY(7px) rotate(7deg) scaleY(.95); } 50% { transform: translateY(9px) rotate(8deg) scaleY(.92); } }
@keyframes mascot-z { 0% { opacity: 0; transform: translate(0, 6px) scale(.7); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(13px, -20px) scale(1.15); } }
@keyframes mascot-aura { 0%,100% { opacity: .42; transform: scale(.92); } 50% { opacity: .8; transform: scale(1.1); } }
@keyframes mascot-guide-pulse { 0%,100% { border-color: rgba(45,207,211,.76); } 50% { border-color: rgba(111,255,252,.98); } }
@keyframes mascot-guide-body { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
@keyframes mascot-guide-head { from { transform: rotate(-3deg) translateZ(16px); } to { transform: rotate(4deg) translateZ(16px); } }
@keyframes mascot-point-right { from { transform: rotate(-35deg); } to { transform: rotate(-72deg); } }
@keyframes mascot-render-breathe { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(.8deg); } }
@keyframes mascot-render-hop { 0%,100% { transform: translateY(0) rotate(0) scale(1); } 38% { transform: translateY(-18px) rotate(-5deg) scale(1.03); } 68% { transform: translateY(-5px) rotate(4deg) scale(.99); } }
@keyframes mascot-render-walk { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-5px) rotate(3deg); } }
@keyframes mascot-render-play { 0%,100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-7deg) translateY(-4px); } }
@keyframes mascot-render-sleep { 0%,100% { transform: translateY(7px) rotate(7deg) scale(.98); } 50% { transform: translateY(9px) rotate(8deg) scale(.95); } }
@keyframes mascot-render-guide { from { transform: scaleX(-1) translateY(0) rotate(-2deg); } to { transform: scaleX(-1) translateY(-5px) rotate(2deg); } }
@keyframes mascot-dynamic-blink {
  0%, 43%, 47%, 76%, 80%, 100% { transform: translate(var(--mascot-eye-x, 0), var(--mascot-eye-y, 0)) scaleY(1); }
  45%, 78% { transform: translate(var(--mascot-eye-x, 0), var(--mascot-eye-y, 0)) scaleY(.08); }
}
@keyframes mascot-face-scan { 0%, 58% { left: -24%; opacity: 0; } 66% { opacity: 1; } 82% { left: 112%; opacity: .7; } 100% { left: 112%; opacity: 0; } }
@keyframes mascot-orbit-outer { to { transform: rotate(343deg); } }
@keyframes mascot-orbit-inner { to { transform: rotate(371deg); } }
@keyframes mascot-spark { 0%, 100% { opacity: .2; transform: translateY(3px) scale(.65); } 45% { opacity: 1; transform: translateY(-4px) scale(1.2); } }
@keyframes mascot-core-pulse { 0%, 100% { filter: brightness(.9); transform: scale(.94); } 50% { filter: brightness(1.2); transform: scale(1.06); } }
@keyframes mascot-cssbot-wave { from { transform: rotate(42deg); } to { transform: rotate(72deg); } }
@keyframes mascot-cssbot-head-happy {
  0%, 100% { transform: perspective(260px) rotateY(-4deg) rotateZ(-.5deg); }
  45% { transform: perspective(260px) rotateY(-4deg) rotateZ(-5deg); }
  75% { transform: perspective(260px) rotateY(-4deg) rotateZ(3deg); }
}
@keyframes mascot-cssbot-leg-left { from { transform: rotate(13deg) translateY(0); } to { transform: rotate(-12deg) translateY(-2px); } }
@keyframes mascot-cssbot-leg-right { from { transform: rotate(-12deg) translateY(-2px); } to { transform: rotate(13deg) translateY(0); } }
@keyframes mascot-cssbot-arm-left { from { transform: rotate(31deg); } to { transform: rotate(48deg); } }
@keyframes mascot-cssbot-arm-right { from { transform: scaleX(-1) rotate(1deg); } to { transform: scaleX(-1) rotate(20deg); } }
@keyframes mascot-cssbot-reach { from { transform: rotate(42deg); } to { transform: rotate(64deg); } }
@keyframes mascot-cssbot-point { from { transform: scaleX(-1) rotate(14deg); } to { transform: scaleX(-1) rotate(-62deg); } }

/* Reference-shape pass: rounded shell, continuous limbs, tucked feet. */
.studio-mascot__bot-torso {
  left: 40px;
  top: 93px;
  width: 77px;
  height: 68px;
  border-radius: 28px 28px 39px 39px / 23px 23px 48px 48px;
  transform: perspective(240px) rotateY(-5deg) rotateZ(-1deg);
  transform-origin: 50% 45%;
}

.studio-mascot__bot-torso::after {
  left: 11px;
  bottom: 7px;
  width: 51px;
  height: 22px;
}

.studio-mascot__bot-chest { top: 15px; }
.studio-mascot__bot-core { top: 19px; }
.studio-mascot__bot-waist { display: none; }

.studio-mascot__bot-arm {
  top: 98px;
  width: 33px;
  height: 60px;
}

.studio-mascot__bot-arm--left { left: 25px; transform: rotate(10deg); }
.studio-mascot__bot-arm--right { right: 20px; transform: scaleX(-1) rotate(7deg); }

.studio-mascot__bot-arm--left .studio-mascot__bot-elbow { top: 26px; }
.studio-mascot__bot-arm--left .studio-mascot__bot-forearm { top: 33px; }
.studio-mascot__bot-arm--left .studio-mascot__bot-hand { top: 45px; }

.studio-mascot__bot-arm::before,
.studio-mascot__bot-arm::after {
  content: "";
  position: absolute;
  border: 1.5px solid #4d6872;
  background:
    radial-gradient(circle at 28% 17%, #fff 0 10%, transparent 31%),
    linear-gradient(125deg, #fff 0%, #e2ecee 46%, #a1b5bb 72%, #667f88 100%);
  box-shadow: inset 3px 3px 4px rgba(255,255,255,.92), inset -4px -5px 6px rgba(44,75,85,.24), 0 3px 5px rgba(14,45,56,.2);
}

.studio-mascot__bot-arm::before {
  right: 1px;
  top: 3px;
  z-index: 1;
  width: 24px;
  height: 34px;
  border-radius: 15px 15px 13px 14px;
  transform: rotate(8deg);
}

.studio-mascot__bot-arm::after {
  left: 0;
  top: 26px;
  z-index: 2;
  width: 22px;
  height: 32px;
  border-radius: 13px 13px 16px 16px;
  transform: rotate(-8deg);
}

.studio-mascot__bot-shoulder,
.studio-mascot__bot-upper-arm,
.studio-mascot__bot-elbow,
.studio-mascot__bot-forearm { display: none; }

.studio-mascot__bot-shoulder {
  width: 25px;
  height: 25px;
  border-width: 1.5px;
}

.studio-mascot__bot-upper-arm {
  left: 7px;
  top: 11px;
  width: 23px;
  height: 30px;
  border-width: 1.5px;
  border-radius: 14px 13px 12px 15px;
  transform: rotate(10deg);
}

.studio-mascot__bot-elbow {
  left: 1px;
  top: 29px;
  z-index: 2;
  width: 21px;
  height: 21px;
  border-width: 1.5px;
}

.studio-mascot__bot-forearm {
  left: -2px;
  top: 38px;
  z-index: 3;
  width: 23px;
  height: 25px;
  border-width: 1.5px;
  border-radius: 13px 12px 15px 15px;
}

.studio-mascot__bot-hand {
  left: -5px;
  top: 54px;
  z-index: 4;
  width: 23px;
  height: 18px;
  border-width: 1.5px;
  border-radius: 11px 11px 12px 12px;
}

.studio-mascot__bot-hand b {
  bottom: -3px;
  height: 5px;
}

.studio-mascot__bot-leg {
  top: 151px;
  width: 30px;
  height: 24px;
}

.studio-mascot__bot-leg--left { left: 49px; transform: rotate(5deg); }
.studio-mascot__bot-leg--right { right: 48px; transform: rotate(-5deg); }
.studio-mascot__bot-thigh,
.studio-mascot__bot-knee,
.studio-mascot__bot-shin { display: none; }

.studio-mascot__bot-foot {
  left: 1px;
  top: 2px;
  width: 28px;
  height: 18px;
  border-width: 1.5px;
  border-radius: 15px 16px 11px 12px;
  background:
    radial-gradient(circle at 30% 20%, #fff 0 9%, transparent 28%),
    linear-gradient(155deg, #fff, #d5e2e4 57%, #728a93 100%);
  box-shadow: inset 3px 2px 4px #fff, inset -3px -3px 5px rgba(48, 77, 87, .24), 0 3px 5px rgba(15, 45, 56, .26);
}

@keyframes mascot-cssbot-wave { from { transform: rotate(10deg); } to { transform: rotate(72deg); } }
@keyframes mascot-cssbot-leg-left { from { transform: rotate(7deg) translateY(0); } to { transform: rotate(1deg) translateY(-2px); } }
@keyframes mascot-cssbot-leg-right { from { transform: rotate(-1deg) translateY(-2px); } to { transform: rotate(-7deg) translateY(0); } }
@keyframes mascot-cssbot-arm-left { from { transform: rotate(3deg); } to { transform: rotate(18deg); } }
@keyframes mascot-cssbot-arm-right { from { transform: scaleX(-1) rotate(1deg); } to { transform: scaleX(-1) rotate(14deg); } }
@keyframes mascot-cssbot-reach { from { transform: rotate(10deg); } to { transform: rotate(48deg); } }

.studio-mascot[data-mood="idle"] .studio-mascot__bot-arm--left {
  animation: mascot-cssbot-idle-arm-left 3.8s ease-in-out infinite alternate;
}

.studio-mascot[data-mood="idle"] .studio-mascot__bot-arm--right {
  animation: mascot-cssbot-idle-arm-right 4.1s ease-in-out infinite alternate;
}

@keyframes mascot-cssbot-idle-arm-left {
  from { transform: rotate(8deg); }
  to { transform: rotate(13deg); }
}

@keyframes mascot-cssbot-idle-arm-right {
  from { transform: scaleX(-1) rotate(5deg); }
  to { transform: scaleX(-1) rotate(10deg); }
}

@media (max-width: 720px) {
  .studio-mascot { transform: translate3d(var(--mascot-x), var(--mascot-y), 0) scale(.68); transform-origin: top right; }
  .studio-mascot__bubble,
  .studio-mascot[data-bubble-side="right"] .studio-mascot__bubble {
    left: 50%;
    right: auto;
    top: -44px;
    max-width: 155px;
    border-radius: 14px 14px 4px 14px;
    transform: translate(-50%, 7px) scale(.94);
    transform-origin: 50% 100%;
  }
  .studio-mascot__bubble.is-visible,
  .studio-mascot[data-bubble-side="right"] .studio-mascot__bubble.is-visible {
    transform: translate(-50%, 0) scale(1);
  }
  .studio-mascot.is-guiding .studio-mascot__bubble {
    z-index: 30;
    right: 78px;
    left: auto;
    top: -180px;
    width: 270px;
    max-width: 270px;
    transform-origin: 100% 100%;
  }
  .studio-mascot.is-guiding .studio-mascot__bubble.is-visible {
    transform: translateY(0) scale(1.12);
  }
  .studio-mascot.is-guiding[data-bubble-side="right"] .studio-mascot__bubble {
    right: 78px;
    left: auto;
  }
  .studio-mascot.is-guiding .studio-mascot__guide-actions button {
    min-height: 44px;
    padding: 0 15px;
  }
  .studio-mascot.is-guiding .studio-mascot__guide-title { font-size: 13px; }
  .studio-mascot.is-choosing-guide .studio-mascot__bubble,
  .studio-mascot.is-choosing-guide[data-bubble-side="right"] .studio-mascot__bubble {
    right: 74px;
    left: auto;
    top: auto;
    bottom: 34px;
    width: min(300px, calc(100vw - 96px));
    max-width: min(300px, calc(100vw - 96px));
    max-height: min(68vh, 430px);
    transform: translateY(7px) scale(.96);
    transform-origin: 100% 100%;
  }
  .studio-mascot.is-choosing-guide .studio-mascot__bubble.is-visible {
    transform: translateY(0) scale(1);
  }
  .studio-mascot__guide-menu {
    max-height: min(43vh, 280px);
  }
  .studio-mascot__guide-menu-group > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-mascot-return { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-mascot,
  .studio-mascot * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
