.yui-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  isolation: isolate;
  --yui-guide-surface: rgba(255, 252, 248, 0.96);
  --yui-guide-surface-strong: rgba(255, 244, 235, 0.98);
  --yui-guide-text: #382b22;
  --yui-guide-muted: rgba(86, 71, 61, 0.68);
  --yui-guide-accent: #2f83ff;
  --yui-guide-accent-soft: rgba(47, 131, 255, 0.18);
  --yui-guide-mint: #20c7b5;
  --yui-guide-warm: #f08b54;
  --yui-guide-danger: #dc4f45;
  --yui-guide-shadow: 0 20px 52px rgba(58, 42, 30, 0.2), 0 8px 22px rgba(58, 42, 30, 0.12);
  --yui-guide-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.neko-niri-pet-physical-crop .yui-guide-overlay {
  transform: translate(
    calc(var(--neko-niri-pet-crop-offset-x, 0) * 1px),
    calc(var(--neko-niri-pet-crop-offset-y, 0) * 1px)
  );
  transform-origin: 0 0;
}

.yui-guide-overlay.is-interaction-shield-enabled,
.yui-guide-overlay.is-interaction-shield-enabled .yui-guide-stage {
  pointer-events: auto;
}

html[data-theme='dark'] .yui-guide-overlay,
html.dark .yui-guide-overlay {
  --yui-guide-surface: rgba(20, 27, 38, 0.94);
  --yui-guide-surface-strong: rgba(27, 36, 51, 0.98);
  --yui-guide-text: #f4f7fb;
  --yui-guide-muted: rgba(218, 226, 238, 0.66);
  --yui-guide-accent: #68b7ff;
  --yui-guide-accent-soft: rgba(104, 183, 255, 0.2);
  --yui-guide-mint: #5ee0cf;
  --yui-guide-warm: #ffb078;
  --yui-guide-danger: #ff7a70;
  --yui-guide-shadow: 0 26px 68px rgba(0, 0, 0, 0.38), 0 10px 28px rgba(0, 0, 0, 0.28);
}

#neko-tutorial-skip-btn {
  position: fixed;
  --neko-tutorial-crop-safe-area-top: max(var(--neko-tutorial-safe-area-top, 0px), calc(var(--neko-niri-pet-crop-offset-y, 0) * 1px));
  top: calc(max(14px, env(safe-area-inset-top)) + var(--neko-tutorial-crop-safe-area-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2147483647;
  width: auto;
  height: auto;
  min-width: 82px;
  min-height: 46px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 248, 0.78) !important;
  color: rgba(48, 59, 74, 0.82);
  border: 1px solid rgba(47, 131, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.36) inset;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  backdrop-filter: blur(12px) saturate(1.08);
  pointer-events: auto !important;
  user-select: none;
  outline: none !important;
  white-space: nowrap;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#neko-tutorial-skip-btn:hover {
  color: rgba(20, 33, 49, 0.96);
  border-color: rgba(47, 131, 255, 0.5);
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 14px 34px rgba(47, 131, 255, 0.16), 0 0 0 1px rgba(47, 131, 255, 0.12) inset;
  transform: translateY(-1px);
}

#neko-tutorial-skip-btn:active {
  opacity: 0.8;
  transform: translateY(0);
}

#neko-tutorial-skip-btn:focus-visible {
  outline: 2px solid rgba(68, 183, 254, 0.6) !important;
  outline-offset: 2px;
}

html[data-theme='dark'] #neko-tutorial-skip-btn,
html.dark #neko-tutorial-skip-btn {
  background: rgba(18, 25, 36, 0.78) !important;
  color: rgba(236, 243, 252, 0.86);
  border-color: rgba(104, 183, 255, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

html[data-theme='dark'] #neko-tutorial-skip-btn:hover,
html.dark #neko-tutorial-skip-btn:hover {
  color: #ffffff;
  border-color: rgba(104, 183, 255, 0.58);
  background: rgba(28, 38, 53, 0.94) !important;
}

.neko-day1-systray-intro-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: rgba(9, 15, 27, 0.64);
  backdrop-filter: blur(22px) saturate(0.92);
  box-sizing: border-box;
  pointer-events: auto;
}

body.neko-day1-systray-intro-open {
  overflow: hidden;
}

.neko-day1-systray-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fbfcff;
  border: 1px solid rgba(180, 195, 214, 0.56);
  box-shadow: 0 34px 90px rgba(5, 12, 24, 0.42), 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  color: #172033;
}

.neko-day1-systray-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.neko-day1-systray-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 174, 194, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(23, 32, 51, 0.66);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.neko-day1-systray-close:hover {
  color: #172033;
  border-color: rgba(47, 131, 255, 0.48);
  background: #ffffff;
  transform: translateY(-1px);
}

.neko-day1-systray-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px 28px;
  background: linear-gradient(180deg, #edf7ff 0%, #f7fbff 100%);
}

.neko-day1-systray-media img {
  display: block;
  width: min(304px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(161, 176, 198, 0.44);
  background: #ffffff;
}

.neko-day1-systray-location-copy h2 {
  margin: 0;
  color: #172033;
  letter-spacing: 0;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
}

.neko-day1-systray-location-copy p {
  margin: 12px 0 0;
  color: rgba(42, 54, 74, 0.82);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.neko-day1-systray-content {
  min-height: 0;
  overflow: auto;
  padding: 30px 30px 28px;
}

.neko-day1-systray-content h2 {
  margin: 0;
  color: #172033;
  letter-spacing: 0;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
}

.neko-day1-systray-content h3 {
  margin: 18px 0 0;
  color: #172033;
  letter-spacing: 0;
  font-size: 17px;
  line-height: 1.35;
}

.neko-day1-systray-content p {
  margin: 12px 0 0;
  color: rgba(42, 54, 74, 0.82);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.neko-day1-systray-note {
  margin-top: 14px !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(237, 247, 255, 0.78);
  color: rgba(42, 54, 74, 0.66) !important;
}

.neko-day1-systray-menu {
  margin-top: 0;
}

.neko-day1-systray-menu h3 {
  margin-top: 0;
}

.neko-day1-systray-menu p {
  text-align: left;
}

.neko-day1-systray-menu-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(176, 190, 209, 0.58);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.neko-day1-systray-menu-item {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(176, 190, 209, 0.42);
}

.neko-day1-systray-menu-item:last-child {
  border-bottom: 0;
}

.neko-day1-systray-menu-item strong {
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
}

.neko-day1-systray-menu-item span {
  color: rgba(42, 54, 74, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.neko-day1-systray-menu-item--danger strong {
  color: #b42318;
}

.neko-day1-systray-actions {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 30px 28px;
}

.neko-day1-systray-primary {
  min-width: 148px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #3f8cff 0%, #2675e7 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(47, 131, 255, 0.28);
  transition: box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.neko-day1-systray-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(47, 131, 255, 0.34);
  transform: translateY(-1px);
}

html[data-theme='dark'] .neko-day1-systray-card,
html.dark .neko-day1-systray-card {
  background: #151d2a;
  border-color: rgba(122, 186, 246, 0.28);
  color: #f4f7fb;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.56), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-theme='dark'] .neko-day1-systray-media,
html.dark .neko-day1-systray-media {
  background: linear-gradient(180deg, #19334b 0%, #17283a 100%);
}

html[data-theme='dark'] .neko-day1-systray-close,
html.dark .neko-day1-systray-close {
  background: rgba(28, 38, 53, 0.92);
  color: rgba(244, 247, 251, 0.78);
  border-color: rgba(104, 183, 255, 0.24);
}

html[data-theme='dark'] .neko-day1-systray-close:hover,
html.dark .neko-day1-systray-close:hover {
  color: #ffffff;
  border-color: rgba(104, 183, 255, 0.52);
}

html[data-theme='dark'] .neko-day1-systray-content h2,
html.dark .neko-day1-systray-content h2,
html[data-theme='dark'] .neko-day1-systray-content h3,
html.dark .neko-day1-systray-content h3,
html[data-theme='dark'] .neko-day1-systray-location-copy h2,
html.dark .neko-day1-systray-location-copy h2 {
  color: #f4f7fb;
}

html[data-theme='dark'] .neko-day1-systray-content p,
html.dark .neko-day1-systray-content p,
html[data-theme='dark'] .neko-day1-systray-location-copy p,
html.dark .neko-day1-systray-location-copy p {
  color: rgba(218, 226, 238, 0.82);
}

html[data-theme='dark'] .neko-day1-systray-note,
html.dark .neko-day1-systray-note {
  background: rgba(33, 52, 73, 0.86);
  color: rgba(218, 226, 238, 0.62) !important;
}

html[data-theme='dark'] .neko-day1-systray-menu-panel,
html.dark .neko-day1-systray-menu-panel {
  background: rgba(19, 28, 42, 0.96);
  border-color: rgba(104, 183, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .neko-day1-systray-menu-item,
html.dark .neko-day1-systray-menu-item {
  border-bottom-color: rgba(104, 183, 255, 0.18);
}

html[data-theme='dark'] .neko-day1-systray-menu-item strong,
html.dark .neko-day1-systray-menu-item strong {
  color: #f4f7fb;
}

html[data-theme='dark'] .neko-day1-systray-menu-item span,
html.dark .neko-day1-systray-menu-item span {
  color: rgba(218, 226, 238, 0.72);
}

html[data-theme='dark'] .neko-day1-systray-menu-item--danger strong,
html.dark .neko-day1-systray-menu-item--danger strong {
  color: #ff8f86;
}

@media (max-width: 620px) {
  .neko-day1-systray-intro-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .neko-day1-systray-card {
    max-height: min(720px, calc(100vh - 24px));
  }

  .neko-day1-systray-layout {
    grid-template-columns: 1fr;
  }

  .neko-day1-systray-media {
    gap: 12px;
    padding: 18px 18px 0;
    background: linear-gradient(180deg, #edf7ff 0%, #f7fbff 68%, rgba(251, 252, 255, 0) 100%);
  }

  html[data-theme='dark'] .neko-day1-systray-media,
  html.dark .neko-day1-systray-media {
    background: linear-gradient(180deg, #19334b 0%, #17283a 68%, rgba(21, 29, 42, 0) 100%);
  }

  .neko-day1-systray-media img {
    width: min(250px, 100%);
  }

  .neko-day1-systray-content {
    padding: 14px 18px 16px;
  }

  .neko-day1-systray-content h2,
  .neko-day1-systray-location-copy h2 {
    font-size: 20px;
  }

  .neko-day1-systray-content p,
  .neko-day1-systray-location-copy p {
    margin-top: 9px;
    line-height: 1.55;
  }

  .neko-day1-systray-note {
    margin-top: 10px !important;
    padding: 9px 10px;
  }

  .neko-day1-systray-menu {
    margin-top: 14px;
  }

  .neko-day1-systray-content h3 {
    margin-top: 14px;
  }

  .neko-day1-systray-menu-panel {
    margin-top: 10px;
  }

  .neko-day1-systray-menu-item {
    padding: 8px 12px;
    gap: 3px;
  }

  .neko-day1-systray-menu-item span {
    line-height: 1.35;
  }

  .neko-day1-systray-actions {
    padding: 0 18px 16px;
    margin-top: 0;
  }
}

body.yui-guide-live2d-preparing #live2d-container,
body.yui-guide-live2d-preparing #live2d-canvas,
body.yui-guide-live2d-preparing #vrm-container,
body.yui-guide-live2d-preparing #vrm-canvas,
body.yui-guide-live2d-preparing #mmd-container,
body.yui-guide-live2d-preparing #mmd-canvas {
  opacity: 0 !important;
  transition: none !important;
  pointer-events: none !important;
}

body.yui-guide-live2d-preparing #live2d-floating-buttons,
body.yui-guide-live2d-preparing #live2d-lock-icon,
body.yui-guide-live2d-preparing #live2d-return-button-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: none !important;
  pointer-events: none !important;
}

body.yui-guide-return-petal-fade #live2d-container,
body.yui-guide-return-petal-fade #live2d-canvas,
body.yui-guide-return-petal-fade #vrm-container,
body.yui-guide-return-petal-fade #vrm-canvas,
body.yui-guide-return-petal-fade #mmd-container,
body.yui-guide-return-petal-fade #mmd-canvas {
  opacity: var(--yui-guide-return-avatar-opacity, 1) !important;
}

.yui-guide-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.yui-guide-control-banner {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(520px, calc(100vw - 180px));
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(19, 28, 40, 0.9);
  box-shadow:
    0 12px 32px rgba(12, 18, 26, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff8ef;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -6px);
  --yui-guide-control-banner-emphasis-ease: cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    opacity 180ms var(--yui-guide-ease),
    top 420ms var(--yui-guide-control-banner-emphasis-ease),
    max-width 420ms var(--yui-guide-control-banner-emphasis-ease),
    padding 420ms var(--yui-guide-control-banner-emphasis-ease),
    font-size 420ms var(--yui-guide-control-banner-emphasis-ease),
    transform 420ms var(--yui-guide-control-banner-emphasis-ease);
  backdrop-filter: blur(10px) saturate(1.08);
}

.yui-guide-control-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.yui-guide-control-banner.is-interrupt-emphasis {
  top: 50%;
  max-width: min(720px, calc(100vw - 40px));
  padding: 16px 26px;
  font-size: 17px;
  transform: translate(-50%, -50%) scale(3);
}

.yui-guide-control-banner[hidden] {
  display: none !important;
}

.yui-guide-control-banner::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #38d6bb;
  box-shadow: 0 0 0 4px rgba(56, 214, 187, 0.18);
}

.yui-guide-interaction-shield {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  pointer-events: auto;
  background: transparent;
  cursor: auto !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.yui-guide-petal-transition {
  position: fixed;
  inset: 0;
  z-index: 24;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 460ms ease;
}

.yui-guide-petal-transition.is-exiting {
  opacity: 0;
}

.yui-guide-petal-sequence {
  position: absolute;
  left: -10vw;
  top: -10vh;
  width: 120vw;
  height: 120vh;
  object-fit: cover;
  transform: translate3d(
    calc(((var(--yui-guide-petal-origin-x, 50vw) - 50vw) * 0.16) + 6vw),
    calc((var(--yui-guide-petal-origin-y, 50vh) - 50vh) * 0.14),
    0
  ) scale(var(--yui-guide-petal-start-scale, 0.82));
  opacity: 1;
  will-change: opacity, transform;
  animation-name: yui-guide-petal-sequence-motion, yui-guide-petal-sequence-opacity;
  animation-duration: 5200ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

@keyframes yui-guide-petal-sequence-motion {
  from {
    transform: translate3d(
      calc(((var(--yui-guide-petal-origin-x, 50vw) - 50vw) * 0.16) + 6vw),
      calc((var(--yui-guide-petal-origin-y, 50vh) - 50vh) * 0.14),
      0
    ) scale(var(--yui-guide-petal-start-scale, 0.82));
  }
  to {
    transform: translate3d(
      calc(((var(--yui-guide-petal-origin-x, 50vw) - 50vw) * 0.16) + 6vw),
      calc((var(--yui-guide-petal-origin-y, 50vh) - 50vh) * 0.14),
      0
    ) scale(var(--yui-guide-petal-end-scale, 0.9));
  }
}

@keyframes yui-guide-petal-sequence-opacity {
  from { opacity: 1; }
  to { opacity: var(--yui-guide-petal-final-opacity, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .yui-guide-petal-transition {
    transition: none;
    opacity: 1;
    pointer-events: none;
  }

  .yui-guide-petal-transition.is-exiting {
    opacity: 1;
  }

  .yui-guide-petal-sequence {
    animation: none;
    animation-name: none;
    animation-duration: 0ms;
    transform: translate3d(
      calc(((var(--yui-guide-petal-origin-x, 50vw) - 50vw) * 0.16) + 6vw),
      calc((var(--yui-guide-petal-origin-y, 50vh) - 50vh) * 0.14),
      0
    ) scale(var(--yui-guide-petal-end-scale, 0.9));
    opacity: var(--yui-guide-petal-final-opacity, 1);
    will-change: auto;
  }
}

.yui-guide-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}

.yui-guide-backdrop-cutout {
  transition:
    x 220ms ease,
    y 220ms ease,
    width 220ms ease,
    height 220ms ease,
    rx 220ms ease,
    ry 220ms ease;
}

.yui-guide-backdrop.is-visible {
  opacity: 0 !important;
}

.yui-guide-spotlight-frame {
  position: fixed;
  opacity: 0;
  transform: translateY(0);
  transition:
    opacity 180ms var(--yui-guide-ease),
    top 260ms var(--yui-guide-ease),
    left 260ms var(--yui-guide-ease),
    width 260ms var(--yui-guide-ease),
    height 260ms var(--yui-guide-ease),
    border-radius 260ms var(--yui-guide-ease);
  pointer-events: none;
  overflow: visible;
  isolation: isolate;
}

.yui-guide-spotlight-frame.is-visible {
  opacity: 1;
  animation: yui-guide-spotlight-scale-pulse 1.5s ease-in-out infinite;
}

.yui-guide-spotlight-chrome {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(84, 133, 255, 0.09), rgba(32, 199, 181, 0.04));
  box-shadow:
    0 0 0 1px rgba(214, 243, 255, 0.72),
    0 0 16px rgba(104, 194, 255, 0.52),
    0 0 32px rgba(32, 199, 181, 0.2),
    inset 0 0 16px rgba(131, 214, 255, 0.14);
}

.yui-guide-spotlight-chrome::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.24) 48%, transparent 58% 100%);
  opacity: 0;
  animation: yui-guide-spotlight-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.yui-guide-spotlight-chrome::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  --yui-guide-spotlight-corner-size: min(34%, 138px);
  --yui-guide-spotlight-border-gap: min(68%, 144px);

  background:
    linear-gradient(rgba(39, 89, 228, 0.98), rgba(39, 89, 228, 0.98)) top center / calc(100% - var(--yui-guide-spotlight-border-gap)) 2px no-repeat,
    linear-gradient(rgba(39, 89, 228, 0.98), rgba(39, 89, 228, 0.98)) bottom center / calc(100% - var(--yui-guide-spotlight-border-gap)) 2px no-repeat,
    linear-gradient(90deg, rgba(39, 89, 228, 0.98), rgba(39, 89, 228, 0.98)) left center / 2px calc(100% - var(--yui-guide-spotlight-border-gap)) no-repeat,
    linear-gradient(90deg, rgba(39, 89, 228, 0.98), rgba(39, 89, 228, 0.98)) right center / 2px calc(100% - var(--yui-guide-spotlight-border-gap)) no-repeat,
    radial-gradient(circle at top left,
      rgba(235, 249, 255, 0.98) 0,
      rgba(186, 231, 255, 0.98) 13%,
      rgba(76, 137, 255, 0.95) 52%,
      rgba(39, 89, 228, 0.98) 96%,
      transparent 100%
    ) top left / var(--yui-guide-spotlight-corner-size) var(--yui-guide-spotlight-corner-size) no-repeat,
    radial-gradient(circle at top right,
      rgba(235, 249, 255, 0.98) 0,
      rgba(186, 231, 255, 0.98) 13%,
      rgba(76, 137, 255, 0.95) 52%,
      rgba(39, 89, 228, 0.98) 96%,
      transparent 100%
    ) top right / var(--yui-guide-spotlight-corner-size) var(--yui-guide-spotlight-corner-size) no-repeat,
    radial-gradient(circle at bottom right,
      rgba(235, 249, 255, 0.98) 0,
      rgba(186, 231, 255, 0.98) 13%,
      rgba(76, 137, 255, 0.95) 52%,
      rgba(39, 89, 228, 0.98) 96%,
      transparent 100%
    ) bottom right / var(--yui-guide-spotlight-corner-size) var(--yui-guide-spotlight-corner-size) no-repeat,
    radial-gradient(circle at bottom left,
      rgba(235, 249, 255, 0.98) 0,
      rgba(186, 231, 255, 0.98) 13%,
      rgba(76, 137, 255, 0.95) 52%,
      rgba(39, 89, 228, 0.98) 96%,
      transparent 100%
    ) bottom left / var(--yui-guide-spotlight-corner-size) var(--yui-guide-spotlight-corner-size) no-repeat;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.yui-guide-spotlight-sweep {
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.yui-guide-spotlight-sweep::before {
  content: '';
  position: absolute;
  top: -22%;
  bottom: -22%;
  left: -48%;
  width: 34%;
  background:
    linear-gradient(108deg, transparent 0 10%, rgba(255, 255, 255, 0.28) 45%, rgba(125, 225, 255, 0.12) 58%, transparent 100%);
  filter: blur(0.2px);
  opacity: 0;
  transform: translateX(0) skewX(-12deg);
  animation: yui-guide-spotlight-sweep-slide 3.8s ease-in-out infinite;
}

.yui-guide-spotlight-decoration,
.yui-guide-spotlight-circle-skin {
  position: absolute;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.yui-guide-spotlight-ear-left {
  top: -29px;
  left: 2px;
  width: 94.5px;
  height: 40.5px;
  background-image: url('/static/assets/tutorial/highlight/left-cat-ear.png');
}

.yui-guide-spotlight-ear-right {
  top: -30px;
  right: 2px;
  width: 94.5px;
  height: 40.5px;
  background-image: url('/static/assets/tutorial/highlight/right-cat-ear.png');
}

.yui-guide-spotlight-paw {
  right: -18px;
  bottom: -11px;
  width: 51px;
  height: 51px;
  background-image: url('/static/assets/tutorial/highlight/cat-paw.png');
  filter: drop-shadow(0 0 8px rgba(119, 211, 255, 0.58));
}

.yui-guide-spotlight-circle-skin {
  display: none;
  inset: -19px -18px -17px -18px;
  background-image: url('/static/assets/tutorial/highlight/circle-highlight.png');
}

.yui-guide-spotlight-frame-persistent {
  border-color: #93d6ff;
}

.yui-guide-spotlight-frame-action {
  z-index: 1;
}

.yui-guide-spotlight-frame.is-circular-mask,
.yui-guide-spotlight-frame.is-circle-image,
.yui-guide-spotlight-frame.is-plain-circle {
  box-shadow: none !important;
}

.yui-guide-spotlight-frame.is-circular-mask.is-visible,
.yui-guide-spotlight-frame.is-circle-image.is-visible,
.yui-guide-spotlight-frame.is-plain-circle.is-visible {
  animation: none !important;
  animation-name: none !important;
}

.yui-guide-spotlight-frame.is-circular-mask .yui-guide-spotlight-chrome,
.yui-guide-spotlight-frame.is-circle-image .yui-guide-spotlight-chrome,
.yui-guide-spotlight-frame.is-circle-image .yui-guide-spotlight-sweep,
.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-sweep,
.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-ear-left,
.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-ear-right,
.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-paw,
.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-circle-skin {
  display: none;
}

.yui-guide-spotlight-frame.is-circular-mask .yui-guide-spotlight-circle-skin,
.yui-guide-spotlight-frame.is-circle-image .yui-guide-spotlight-circle-skin {
  display: block;
}

.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-chrome {
  display: block;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.02);
  box-shadow:
    0 0 0 2px rgba(39, 89, 228, 0.96),
    0 0 0 6px rgba(39, 89, 228, 0.14),
    0 0 26px rgba(39, 89, 228, 0.34);
}

.yui-guide-spotlight-frame.is-plain-circle .yui-guide-spotlight-chrome::before {
  display: none;
}

.yui-guide-bubble {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 14px 16px 16px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, var(--yui-guide-surface), var(--yui-guide-surface-strong));
  border: 1px solid rgba(240, 139, 84, 0.28);
  box-shadow: var(--yui-guide-shadow);
  color: var(--yui-guide-text);
  backdrop-filter: blur(14px) saturate(1.08);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 180ms var(--yui-guide-ease), transform 220ms var(--yui-guide-ease);
  overflow: visible;
}

.yui-guide-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.yui-guide-bubble::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(90deg, var(--yui-guide-warm), var(--yui-guide-mint), var(--yui-guide-accent));
  opacity: 0.86;
}

.yui-guide-bubble::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  background: inherit;
  border: inherit;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.yui-guide-bubble.is-placement-right::after {
  left: -10px;
  top: calc(50% - 10px);
  transform: rotate(135deg);
}

.yui-guide-bubble.is-placement-left::after {
  right: -10px;
  top: calc(50% - 10px);
  transform: rotate(-45deg);
}

.yui-guide-bubble.is-placement-top::after {
  left: calc(50% - 10px);
  bottom: -10px;
  transform: rotate(45deg);
}

.yui-guide-bubble.is-placement-bottom::after,
.yui-guide-bubble.is-placement-floating::after {
  left: calc(50% - 10px);
  top: -10px;
  transform: rotate(225deg);
}

.yui-guide-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 8px;
}

.yui-guide-bubble-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--yui-guide-warm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yui-guide-bubble-meta {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--yui-guide-accent-soft);
  color: var(--yui-guide-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.yui-guide-bubble-body {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--yui-guide-text);
  overflow-wrap: anywhere;
}

.yui-guide-bubble[data-emotion='happy'] {
  background:
    linear-gradient(160deg, var(--yui-guide-surface), rgba(255, 243, 224, 0.96));
}

.yui-guide-bubble[data-emotion='surprised'] {
  background:
    linear-gradient(160deg, rgba(250, 252, 255, 0.96), rgba(232, 248, 255, 0.96));
  border-color: rgba(47, 131, 255, 0.3);
  --yui-guide-text: #223b58;
  --yui-guide-warm: #2f83ff;
}

.yui-guide-bubble.is-angry,
.yui-guide-bubble[data-emotion='angry'] {
  background:
    linear-gradient(160deg, rgba(255, 247, 244, 0.98), rgba(255, 226, 220, 0.98));
  border-color: rgba(220, 79, 69, 0.42);
  --yui-guide-text: #64241f;
  --yui-guide-warm: var(--yui-guide-danger);
}

html[data-theme='dark'] .yui-guide-bubble[data-emotion='happy'],
html.dark .yui-guide-bubble[data-emotion='happy'] {
  background:
    linear-gradient(160deg, rgba(20, 27, 38, 0.96), rgba(39, 37, 42, 0.98));
}

html[data-theme='dark'] .yui-guide-bubble[data-emotion='surprised'],
html.dark .yui-guide-bubble[data-emotion='surprised'] {
  background:
    linear-gradient(160deg, rgba(20, 30, 44, 0.96), rgba(23, 43, 58, 0.98));
  --yui-guide-text: #edf7ff;
  --yui-guide-warm: #68b7ff;
}

html[data-theme='dark'] .yui-guide-bubble.is-angry,
html[data-theme='dark'] .yui-guide-bubble[data-emotion='angry'],
html.dark .yui-guide-bubble.is-angry,
html.dark .yui-guide-bubble[data-emotion='angry'] {
  background:
    linear-gradient(160deg, rgba(42, 24, 25, 0.96), rgba(55, 29, 30, 0.98));
  --yui-guide-text: #ffeceb;
}

.yui-guide-bubble[data-bubble-variant='intro-activation'],
.yui-guide-bubble[data-bubble-variant='plugin-manual-open'] {
  width: min(392px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(43, 108, 176, 0.26);
  box-shadow:
    0 18px 44px rgba(20, 38, 68, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  color: #1c2f44;
  backdrop-filter: blur(10px) saturate(1.02);
}

.yui-guide-bubble[data-bubble-variant='intro-activation']::before,
.yui-guide-bubble[data-bubble-variant='plugin-manual-open']::before {
  content: none;
}

.yui-guide-bubble[data-bubble-variant='intro-activation']::after,
.yui-guide-bubble[data-bubble-variant='plugin-manual-open']::after {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(43, 108, 176, 0.26);
}

.yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-header,
.yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-header {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(43, 108, 176, 0.12);
}

.yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-title,
.yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: none;
  color: #22547e;
}

.yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-meta,
.yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-meta {
  display: none;
}

.yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-body,
.yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-body {
  font-size: 15px;
  line-height: 1.68;
  color: #20364d;
}

html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='intro-activation'],
html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='plugin-manual-open'],
html.dark .yui-guide-bubble[data-bubble-variant='intro-activation'],
html.dark .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] {
  background: rgba(21, 29, 41, 0.98);
  border-color: rgba(119, 190, 255, 0.28);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  color: #edf7ff;
}

html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='intro-activation']::after,
html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='plugin-manual-open']::after,
html.dark .yui-guide-bubble[data-bubble-variant='intro-activation']::after,
html.dark .yui-guide-bubble[data-bubble-variant='plugin-manual-open']::after {
  background: rgba(21, 29, 41, 0.98);
  border-color: rgba(119, 190, 255, 0.28);
}

html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-header,
html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-header,
html.dark .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-header,
html.dark .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-header {
  border-bottom-color: rgba(119, 190, 255, 0.16);
}

html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-title,
html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-title,
html.dark .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-title,
html.dark .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-title {
  color: #9bd8ff;
}

html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-body,
html[data-theme='dark'] .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-body,
html.dark .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-body,
html.dark .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-body {
  color: #edf7ff;
}

.yui-guide-preview {
  position: fixed;
  box-sizing: border-box;
  top: 88px;
  left: 50%;
  width: min(720px, calc(100vw - 48px));
  padding: 18px 20px 20px;
  border-radius: 14px;
  transform: translate(-50%, -12px) scale(0.98);
  opacity: 0;
  background:
    linear-gradient(155deg, rgba(15, 24, 38, 0.94), rgba(25, 43, 56, 0.92));
  border: 1px solid rgba(116, 193, 255, 0.28);
  box-shadow:
    0 26px 60px rgba(3, 10, 26, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 180ms var(--yui-guide-ease), transform 220ms var(--yui-guide-ease);
}

.yui-guide-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.yui-guide-preview-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(177, 227, 255, 0.94);
}

.yui-guide-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.yui-guide-preview-card {
  padding: 14px 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(164, 220, 255, 0.18);
  color: #eef8ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  animation: yui-guide-preview-float 1.2s ease both;
  animation-delay: calc(var(--yui-guide-preview-order, 0) * 80ms);
}

.yui-guide-preview-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(112, 214, 255, 0.16);
  color: #9de7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.yui-guide-preview-card-label {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

body.yui-taking-over .yui-guide-overlay,
body.yui-taking-over .yui-guide-stage,
body.yui-taking-over .yui-guide-backdrop,
body.yui-taking-over .yui-guide-backdrop *,
body.yui-taking-over .yui-guide-spotlight-frame,
body.yui-taking-over .yui-guide-bubble,
body.yui-taking-over .yui-guide-preview,
body.yui-taking-over .yui-guide-preview-card,
body.yui-taking-over [data-yui-cursor-hidden="true"] {
  cursor: auto !important;
}

body.yui-taking-over #neko-tutorial-skip-btn,
body.yui-taking-over #neko-tutorial-skip-btn *,
body.yui-taking-over [data-yui-skip-control],
body.yui-taking-over [data-yui-emergency-exit],
body.yui-taking-over button,
body.yui-taking-over a[href],
body.yui-taking-over input,
body.yui-taking-over select,
body.yui-taking-over textarea,
body.yui-taking-over summary,
body.yui-taking-over [role="button"],
body.yui-taking-over [role="link"],
body.yui-taking-over [tabindex]:not([tabindex="-1"]) {
  cursor: auto !important;
}

body.yui-taking-over #neko-tutorial-skip-btn:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
}

body.yui-guide-home-ui-suppressed #sidebar,
body.yui-guide-home-ui-suppressed #sidebarbox,
body.yui-guide-home-ui-suppressed #resetSessionButton,
body.yui-guide-home-ui-suppressed .side-btn,
body.yui-guide-home-ui-suppressed #status,
body.yui-guide-home-ui-suppressed #live2d-return-button-container,
body.yui-guide-home-ui-suppressed #vrm-return-button-container,
body.yui-guide-home-ui-suppressed #mmd-return-button-container,
body.yui-taking-over #sidebar,
body.yui-taking-over #sidebarbox,
body.yui-taking-over #resetSessionButton,
body.yui-taking-over .side-btn,
body.yui-taking-over #status,
body.yui-taking-over #live2d-return-button-container,
body.yui-taking-over #vrm-return-button-container,
body.yui-taking-over #mmd-return-button-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.yui-guide-home-ui-suppressed #live2d-container,
body.yui-guide-home-ui-suppressed #live2d-canvas,
body.yui-guide-home-ui-suppressed #vrm-container,
body.yui-guide-home-ui-suppressed #vrm-canvas,
body.yui-guide-home-ui-suppressed #mmd-container,
body.yui-guide-home-ui-suppressed #mmd-canvas,
body.yui-taking-over #live2d-container,
body.yui-taking-over #live2d-canvas,
body.yui-taking-over #vrm-container,
body.yui-taking-over #vrm-canvas,
body.yui-taking-over #mmd-container,
body.yui-taking-over #mmd-canvas {
  cursor: auto !important;
}

body.yui-guide-home-ui-suppressed #react-chat-window-drag-handle,
body.yui-taking-over #react-chat-window-drag-handle {
  cursor: auto !important;
}

.yui-guide-overlay.is-angry .yui-guide-cursor {
  background-color: transparent;
  filter:
    drop-shadow(0 14px 26px rgba(116, 33, 25, 0.34))
    saturate(1.08);
}

body.yui-taking-over #react-chat-window-root .composer-input-shell,
body.yui-taking-over #react-chat-window-root .composer-input-shell:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
}

body.yui-taking-over #react-chat-window-root .composer-input,
body.yui-taking-over #react-chat-window-root .composer-input:focus,
body.yui-taking-over #react-chat-window-root .composer-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Double .yui-taking-over to out-specificity earlier cursor:auto !important rules. */
body.yui-taking-over.yui-taking-over,
body.yui-taking-over.yui-taking-over *,
body.yui-taking-over .yui-guide-overlay,
body.yui-taking-over .yui-guide-stage,
body.yui-taking-over .yui-guide-backdrop,
body.yui-taking-over .yui-guide-backdrop *,
body.yui-taking-over .yui-guide-spotlight-frame,
body.yui-taking-over .yui-guide-bubble,
body.yui-taking-over .yui-guide-preview,
body.yui-taking-over .yui-guide-preview-card,
body.yui-taking-over [data-yui-cursor-hidden="true"],
body.yui-taking-over #neko-tutorial-skip-btn,
body.yui-taking-over #neko-tutorial-skip-btn *,
body.yui-taking-over [data-yui-skip-control],
body.yui-taking-over [data-yui-emergency-exit],
body.yui-taking-over button,
body.yui-taking-over a[href],
body.yui-taking-over input,
body.yui-taking-over select,
body.yui-taking-over textarea,
body.yui-taking-over summary,
body.yui-taking-over [role="button"],
body.yui-taking-over [role="link"],
body.yui-taking-over [tabindex]:not([tabindex="-1"]),
body.yui-taking-over #live2d-container,
body.yui-taking-over #live2d-canvas,
body.yui-taking-over #vrm-container,
body.yui-taking-over #vrm-canvas,
body.yui-taking-over #mmd-container,
body.yui-taking-over #mmd-canvas,
body.yui-taking-over #react-chat-window-drag-handle {
  cursor: none !important;
}

body.yui-taking-over.yui-taking-over #neko-tutorial-skip-btn,
body.yui-taking-over.yui-taking-over #neko-tutorial-skip-btn *,
body.yui-taking-over.yui-taking-over [data-yui-skip-control],
body.yui-taking-over.yui-taking-over [data-yui-skip-control] *,
body.yui-taking-over.yui-taking-over [data-yui-emergency-exit],
body.yui-taking-over.yui-taking-over [data-yui-emergency-exit] * {
  cursor: auto !important;
}

html.yui-interrupt-count-cursor-revealed body.yui-taking-over.yui-taking-over,
html.yui-interrupt-count-cursor-revealed body.yui-taking-over.yui-taking-over *,
body.yui-taking-over.yui-taking-over.yui-interrupt-count-cursor-revealed,
body.yui-taking-over.yui-taking-over.yui-interrupt-count-cursor-revealed * {
  cursor: auto !important;
}

body.yui-taking-over.yui-user-cursor-revealed,
body.yui-taking-over.yui-user-cursor-revealed *,
body.yui-taking-over.yui-resistance-cursor-reveal,
body.yui-taking-over.yui-resistance-cursor-reveal * {
  cursor: auto !important;
}

body.yui-taking-over.yui-user-cursor-revealed #neko-tutorial-skip-btn,
body.yui-taking-over.yui-user-cursor-revealed #neko-tutorial-skip-btn *,
body.yui-taking-over.yui-user-cursor-revealed #live2d-container,
body.yui-taking-over.yui-user-cursor-revealed #live2d-canvas,
body.yui-taking-over.yui-user-cursor-revealed #vrm-container,
body.yui-taking-over.yui-user-cursor-revealed #vrm-canvas,
body.yui-taking-over.yui-user-cursor-revealed #mmd-container,
body.yui-taking-over.yui-user-cursor-revealed #mmd-canvas,
body.yui-taking-over.yui-user-cursor-revealed #react-chat-window-drag-handle,
body.yui-taking-over.yui-resistance-cursor-reveal #neko-tutorial-skip-btn,
body.yui-taking-over.yui-resistance-cursor-reveal #neko-tutorial-skip-btn *,
body.yui-taking-over.yui-resistance-cursor-reveal #live2d-container,
body.yui-taking-over.yui-resistance-cursor-reveal #live2d-canvas,
body.yui-taking-over.yui-resistance-cursor-reveal #vrm-container,
body.yui-taking-over.yui-resistance-cursor-reveal #vrm-canvas,
body.yui-taking-over.yui-resistance-cursor-reveal #mmd-container,
body.yui-taking-over.yui-resistance-cursor-reveal #mmd-canvas,
body.yui-taking-over.yui-resistance-cursor-reveal #react-chat-window-drag-handle {
  cursor: auto !important;
}

@keyframes yui-guide-preview-float {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yui-guide-spotlight-scale-pulse {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.02;
  }
}

@keyframes yui-guide-spotlight-sheen {
  0%,
  62% {
    opacity: 0;
    transform: translateX(-18%) skewX(-8deg);
  }

  78% {
    opacity: 0.24;
  }

  100% {
    opacity: 0;
    transform: translateX(18%) skewX(-8deg);
  }
}

@keyframes yui-guide-spotlight-sweep-slide {
  0%,
  62% {
    opacity: 0;
    transform: translateX(0) skewX(-12deg);
  }

  78% {
    opacity: 0.24;
  }

  100% {
    opacity: 0;
    transform: translateX(420%) skewX(-12deg);
  }
}

/* 注意：脉冲效果不能用 transform，否则会覆盖宿主元素的 transform
 * （如居中弹层 translate(-50%, -50%)、图标 rotate 等），
 * 改用 box-shadow 强弱变化模拟"呼吸"高亮，宿主自带 transform 不受影响。 */
@keyframes yui-guide-chat-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(147, 214, 255, 0.98),
      0 0 0 5px rgba(161, 228, 255, 0.72),
      0 14px 28px rgba(147, 214, 255, 0.18) !important;
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(147, 214, 255, 1),
      0 0 0 8px rgba(161, 228, 255, 0.55),
      0 16px 32px rgba(147, 214, 255, 0.28) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yui-guide-backdrop,
  .yui-guide-backdrop-cutout,
  .yui-guide-spotlight-frame,
  .yui-guide-control-banner,
  .yui-guide-bubble,
  .yui-guide-preview,
  .yui-guide-preview-card,
  .yui-guide-spotlight-chrome::after,
  .yui-guide-spotlight-sweep::before {
    animation: none !important;
    transition: none !important;
  }

}

@media (max-width: 768px) {
  .yui-guide-control-banner {
    top: max(56px, calc(env(safe-area-inset-top) + 56px));
    max-width: calc(100vw - 28px);
    font-size: 12px;
  }

  .yui-guide-bubble {
    width: min(320px, calc(100vw - 24px));
    padding: 13px 14px 15px;
  }

  .yui-guide-bubble[data-bubble-variant='intro-activation'],
  .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] {
    width: min(352px, calc(100vw - 24px));
    padding: 16px;
  }

  .yui-guide-bubble-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .yui-guide-bubble[data-bubble-variant='intro-activation'] .yui-guide-bubble-header,
  .yui-guide-bubble[data-bubble-variant='plugin-manual-open'] .yui-guide-bubble-header {
    gap: 0;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .yui-guide-bubble-meta {
    max-width: 100%;
  }

  .yui-guide-preview {
    top: 72px;
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .yui-guide-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
