:root {
  --gugu-bg: #f6f7f8;
  --gugu-text: #1f2328;
  --gugu-subtle: #6e7681;
  --gugu-line: rgba(31, 35, 40, 0.1);
  --gugu-line-strong: rgba(31, 35, 40, 0.16);
  --gugu-panel: rgba(255, 255, 255, 0.86);
  --gugu-panel-strong: rgba(255, 255, 255, 0.94);
  --gugu-soft: rgba(246, 248, 250, 0.82);
  --gugu-shadow: 0 12px 36px rgba(20, 27, 38, 0.06);
  --gugu-shadow-strong: 0 18px 52px rgba(20, 27, 38, 0.08);
  --gugu-radius-xl: 30px;
  --gugu-radius-lg: 24px;
  --gugu-radius-md: 18px;
  --gugu-radius-sm: 14px;
  --gugu-accent: #a8ec72;
  --gugu-surface-soft: rgba(248, 249, 250, 0.92);
  --gugu-surface-card: rgba(255, 255, 255, 0.96);
  --gugu-scribble: rgba(31, 35, 40, 0.12);
  --gugu-search-shadow: 0 8px 26px rgba(32, 33, 36, 0.08);
  --gugu-search-shadow-strong: 0 1px 6px rgba(32, 33, 36, 0.28), 0 10px 28px rgba(32, 33, 36, 0.12);
}

body[data-theme="dark"] {
  --gugu-bg: #0e1116;
  --gugu-text: #edf1f6;
  --gugu-subtle: #9da7b3;
  --gugu-line: rgba(237, 241, 246, 0.1);
  --gugu-line-strong: rgba(237, 241, 246, 0.18);
  --gugu-panel: rgba(17, 21, 28, 0.82);
  --gugu-panel-strong: rgba(20, 24, 32, 0.92);
  --gugu-soft: rgba(18, 23, 31, 0.76);
  --gugu-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  --gugu-shadow-strong: 0 26px 68px rgba(0, 0, 0, 0.34);
  --gugu-surface-soft: rgba(23, 28, 37, 0.9);
  --gugu-surface-card: rgba(29, 35, 46, 0.96);
  --gugu-scribble: rgba(190, 223, 255, 0.18);
  --gugu-search-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  --gugu-search-shadow-strong: 0 1px 6px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--gugu-text);
  background:
    radial-gradient(circle at 15% 80%, rgba(198, 222, 255, 0.24), transparent 26%),
    radial-gradient(circle at 82% 82%, rgba(255, 232, 187, 0.18), transparent 22%),
    radial-gradient(circle at 72% 18%, rgba(214, 224, 255, 0.22), transparent 28%),
    var(--gugu-bg);
  transition: background-color 240ms ease, color 200ms ease;
}

body {
  min-height: 100vh;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 18% 82%, rgba(72, 106, 173, 0.22), transparent 26%),
    radial-gradient(circle at 84% 80%, rgba(132, 101, 44, 0.18), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(65, 84, 130, 0.22), transparent 28%),
    var(--gugu-bg);
}

.gugu-home-body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.gugu-page-shell {
  width: min(1320px, calc(100vw - 36px));
  margin: 18px auto;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--gugu-shadow-strong);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.gugu-home-shell {
  width: min(1420px, calc(100vw - 64px));
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.gugu-chat-shell {
  min-height: calc(100vh - 36px);
}

.gugu-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gugu-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--gugu-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.gugu-icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--gugu-line-strong);
  background: rgba(255, 255, 255, 0.98);
}

.gugu-icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gugu-heartbar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gugu-text);
  font-size: 16px;
  line-height: 1;
}

.gugu-heartbar .filled {
  color: var(--gugu-text);
}

.gugu-heartbar .empty {
  color: rgba(31, 35, 40, 0.28);
}

body[data-theme="dark"] .gugu-heartbar .filled {
  color: rgba(247, 250, 255, 0.96);
}

body[data-theme="dark"] .gugu-heartbar .empty {
  color: rgba(237, 241, 246, 0.34);
}

.gugu-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.gugu-home-wrap {
  min-height: 100vh;
  padding: 28px 42px 42px;
  display: flex;
  flex-direction: column;
}

.gugu-home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.gugu-home-topbar-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gugu-home-audio-toggle {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, color 140ms ease;
}

.gugu-home-audio-toggle:hover {
  transform: translateY(-1px);
  color: #111418;
}

.gugu-home-audio-toggle svg {
  width: 21px;
  height: 21px;
  display: block;
}

.gugu-home-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 2px;
}

.gugu-home-theme-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, color 140ms ease, opacity 140ms ease;
}

.gugu-home-easter-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, color 140ms ease, opacity 140ms ease;
}

body[data-theme="dark"] .gugu-home-theme-toggle,
body[data-theme="dark"] .gugu-home-easter-toggle,
body[data-theme="dark"] .gugu-home-nav-icon,
body[data-theme="dark"] .gugu-home-audio-toggle {
  color: rgba(237, 241, 246, 0.86);
}

.gugu-home-theme-toggle:hover,
.gugu-home-easter-toggle:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.gugu-home-theme-toggle svg,
.gugu-home-easter-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gugu-home-nav-icon {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, color 140ms ease;
}

.gugu-home-nav-icon:hover {
  transform: translateY(-1px);
  color: #111418;
}

body[data-theme="dark"] .gugu-home-nav-icon:hover,
body[data-theme="dark"] .gugu-home-theme-toggle:hover,
body[data-theme="dark"] .gugu-home-easter-toggle:hover,
body[data-theme="dark"] .gugu-home-audio-toggle:hover {
  color: #f7fbff;
}

.gugu-home-easter-toggle[aria-pressed="false"] {
  opacity: 0.42;
}

.gugu-home-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gugu-whisper-text {
  display: inline-block;
  max-width: min(760px, 100%);
  color: rgba(31, 35, 40, 0.54);
  font-size: 14px;
  line-height: 1.72;
}

body[data-theme="dark"] .gugu-whisper-text {
  color: rgba(237, 241, 246, 0.64);
}

.gugu-home-hero {
  width: min(980px, 100%);
  margin: 0 auto;
}

.gugu-home-brand {
  margin: 120px 0 28px;
  text-align: center;
}

.gugu-home-brand h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(56px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.gugu-home-title-breathe {
  animation: gugu-title-breathe 7.4s ease-in-out infinite;
}

.gugu-dynamic-text,
.gugu-search-placeholder {
  will-change: opacity, transform;
}

.gugu-search-block {
  width: 100%;
  margin: 0 auto;
}

.gugu-search-form {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 22px;
  min-height: 76px;
  border-radius: 999px;
  border: 0;
  background: var(--gugu-surface-card);
  box-shadow: var(--gugu-search-shadow);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
  scale: var(--gugu-squash-x, 1) var(--gugu-squash-y, 1);
  transform-origin: center bottom;
}

.gugu-search-form:hover,
.gugu-search-form:focus-within {
  background: var(--gugu-surface-card);
  box-shadow: var(--gugu-search-shadow-strong);
  transform: translateY(-1px);
}

.gugu-search-form input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 54px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gugu-text);
  font-size: 18px;
  line-height: 1.5;
  padding: 0;
  align-self: stretch;
}

.gugu-search-form input::placeholder {
  color: transparent;
}

.gugu-search-placeholder {
  position: absolute;
  left: 22px;
  right: 72px;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  color: rgba(31, 35, 40, 0.5);
  font-size: 18px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 1;
  transition: opacity 200ms ease, transform 200ms ease;
}

body[data-theme="dark"] .gugu-search-placeholder {
  color: rgba(237, 241, 246, 0.42);
}

.gugu-search-placeholder.is-hidden {
  opacity: 0;
  transform: translateY(-2px);
}

.gugu-search-submit {
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gugu-search-submit img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.88;
}

.gugu-home-links {
  width: min(800px, 100%);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gugu-link-card,
.gugu-home-choice,
.gugu-home-reward,
.gugu-home-drop {
  position: relative;
  isolation: isolate;
}

.gugu-link-card::before,
.gugu-home-choice::before,
.gugu-home-reward::before,
.gugu-home-drop::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.2px solid var(--gugu-scribble);
  transform: rotate(-0.45deg) scale(0.998);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.gugu-link-card:hover::before,
.gugu-home-choice:hover::before,
.gugu-home-reward:hover::before,
.gugu-home-drop.is-visible::before {
  opacity: 1;
  transform: rotate(0.18deg) scale(1);
}

.gugu-link-card {
  padding: 18px 18px 16px;
  border-radius: var(--gugu-radius-lg);
  border: 0;
  background: var(--gugu-surface-soft);
  box-shadow: 0 14px 32px rgba(20, 27, 38, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  scale: var(--gugu-squash-x, 1) var(--gugu-squash-y, 1);
  transform-origin: center bottom;
  filter: saturate(var(--gugu-squash-shadow, 1)) blur(var(--gugu-fall-blur, 0px));
  opacity: var(--gugu-fall-opacity, 1);
}

.gugu-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(20, 27, 38, 0.06);
}

.gugu-link-card h2 {
  margin: 0 0 12px;
  color: rgba(31, 35, 40, 0.74);
  font-size: 15px;
  font-weight: 600;
}

body[data-theme="dark"] .gugu-link-card h2,
body[data-theme="dark"] .gugu-home-choice-title,
body[data-theme="dark"] .gugu-home-reward-kicker {
  color: rgba(237, 241, 246, 0.54);
}

.gugu-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gugu-link-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--gugu-surface-card);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  scale: var(--gugu-squash-x, 1) var(--gugu-squash-y, 1);
  transform-origin: center bottom;
  opacity: var(--gugu-fall-opacity, 1);
  filter: blur(var(--gugu-fall-blur, 0px));
}

.gugu-link-pill:hover {
  transform: translateY(-1px);
  background: var(--gugu-surface-card);
  box-shadow: 0 10px 22px rgba(20, 27, 38, 0.08);
}

.gugu-link-pill img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.gugu-home-events {
  width: min(800px, 100%);
  min-height: 172px;
  margin: 22px auto 0;
  display: grid;
  align-items: start;
}

.gugu-home-choice {
  width: 100%;
  padding: 20px 20px 18px;
  border: 0;
  border-radius: 24px;
  background: var(--gugu-surface-soft);
  box-shadow: 0 16px 34px rgba(20, 27, 38, 0.05);
}

.gugu-home-choice-title {
  color: rgba(31, 35, 40, 0.48);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.gugu-home-choice-text {
  margin-top: 8px;
  color: var(--gugu-text);
  font-size: 16px;
  line-height: 1.8;
}

.gugu-home-choice-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gugu-home-choice-button {
  min-height: 54px;
  padding: 12px 15px;
  border: 0;
  border-radius: 18px;
  background: var(--gugu-surface-card);
  color: var(--gugu-text);
  text-align: left;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.gugu-home-choice-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 27, 38, 0.08);
}

.gugu-home-choice-button-positive {
  background: rgba(168, 236, 114, 0.14);
}

.gugu-home-choice-button-negative {
  background: rgba(255, 255, 255, 0.82);
}

.gugu-home-drop {
  justify-self: center;
  width: fit-content;
  max-width: min(88vw, 620px);
  padding: 16px 18px;
  border-radius: 24px;
  border: 0;
  background: var(--gugu-surface-soft);
  color: rgba(31, 35, 40, 0.78);
  font-size: 14px;
  line-height: 1.72;
  box-shadow: 0 16px 34px rgba(20, 27, 38, 0.05);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gugu-home-drop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gugu-home-reward {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 24px;
  background: var(--gugu-surface-soft);
  box-shadow: 0 16px 34px rgba(20, 27, 38, 0.05);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gugu-home-reward.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gugu-home-reward-image {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 22px;
  border: 0;
  background: var(--gugu-surface-card);
  box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.05);
}

.gugu-home-reward-kicker {
  color: rgba(31, 35, 40, 0.44);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.gugu-home-reward-text {
  margin-top: 6px;
  color: var(--gugu-text);
  font-size: 15px;
  line-height: 1.8;
}

body[data-theme="dark"] .gugu-home-choice-button-negative {
  background: rgba(52, 59, 72, 0.92);
}

body[data-theme="dark"] .gugu-search-submit img {
  filter: invert(1);
  opacity: 0.92;
}

.gugu-home-choice[hidden],
.gugu-home-reward[hidden],
.gugu-home-drop[hidden] {
  display: none;
}

.gugu-whisper-text.is-changing,
.gugu-dynamic-text.is-changing {
  animation: gugu-fade-swap 280ms cubic-bezier(.22,.61,.36,1);
}

@keyframes gugu-fade-swap {
  0% {
    opacity: 0.32;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gugu-title-breathe {
  0%, 100% {
    opacity: 0.82;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 780px) {
  .gugu-page-shell {
    width: calc(100vw - 12px);
    margin: 6px auto;
    border-radius: 24px;
  }

  .gugu-home-wrap {
    padding: 18px 12px 20px;
  }

  .gugu-home-topbar {
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .gugu-home-topbar-main {
    order: 2;
    width: 100%;
    align-items: flex-start;
  }

  .gugu-home-actions {
    order: 1;
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 0;
  }

  .gugu-whisper-text {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
  }

  .gugu-home-brand {
    margin: 66px 0 18px;
  }

  .gugu-home-brand h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .gugu-search-form {
    min-height: 66px;
    padding: 8px 10px 8px 16px;
  }

  .gugu-search-form input {
    height: 46px;
    font-size: 16px;
  }

  .gugu-search-placeholder {
    left: 16px;
    right: 58px;
    font-size: 16px;
  }

  .gugu-search-submit {
    width: 40px;
    height: 40px;
  }

  .gugu-home-links {
    width: 100%;
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gugu-link-card {
    padding: 16px 16px 14px;
  }

  .gugu-link-grid {
    gap: 10px;
  }

  .gugu-link-pill {
    min-height: 52px;
    padding: 0 14px;
  }

  .gugu-home-events {
    width: 100%;
    min-height: 0;
    margin-top: 16px;
  }

  .gugu-home-choice,
  .gugu-home-reward,
  .gugu-home-drop {
    border-radius: 20px;
  }

  .gugu-home-choice {
    padding: 16px;
  }

  .gugu-home-choice-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .gugu-home-choice-actions {
    grid-template-columns: 1fr;
  }

  .gugu-home-choice-button {
    min-height: 48px;
  }

  .gugu-home-reward {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .gugu-home-reward-image {
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }

  .gugu-home-drop {
    max-width: 92vw;
    padding: 14px 16px;
    font-size: 13px;
  }
}

.gugu-chat-page {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.36);
}

.gugu-chat-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(248, 250, 252, 0.82);
}

.gugu-chat-sidebar-head {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gugu-chat-sidebar-copy {
  min-width: 0;
}

.gugu-chat-sidebar-kicker {
  margin: 0 0 7px;
  color: rgba(31, 35, 40, 0.36);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gugu-chat-sidebar-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.gugu-chat-new {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gugu-text);
}

.gugu-chat-thread-list {
  padding: 14px 12px 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gugu-chat-thread {
  width: 100%;
  padding: 14px 14px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.gugu-chat-thread:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 35, 40, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.gugu-chat-thread.active {
  border-color: rgba(31, 35, 40, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(20, 27, 38, 0.05);
}

.gugu-chat-thread-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.gugu-chat-thread-preview {
  margin-top: 6px;
  color: rgba(31, 35, 40, 0.56);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gugu-chat-thread-meta {
  margin-top: 10px;
  color: rgba(31, 35, 40, 0.34);
  font-size: 12px;
}

.gugu-chat-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(246, 247, 248, 0.72);
}

.gugu-chat-header {
  min-height: 84px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.44);
}

.gugu-chat-header-main {
  min-width: 0;
}

.gugu-chat-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.gugu-chat-header-main p {
  margin: 6px 0 0;
  color: rgba(31, 35, 40, 0.44);
  font-size: 13px;
}

.gugu-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gugu-chat-scroll {
  min-height: 0;
  overflow: auto;
  padding: 30px 30px 18px;
  background:
    radial-gradient(circle at 14% 82%, rgba(198, 222, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 86%, rgba(255, 232, 187, 0.14), transparent 22%),
    rgba(250, 250, 250, 0.48);
}

.gugu-chat-empty {
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
}

.gugu-chat-empty p {
  margin: 0;
  color: rgba(31, 35, 40, 0.36);
  font-size: 14px;
}

.gugu-time-chip {
  margin: 12px auto 18px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(31, 35, 40, 0.42);
  font-size: 12px;
}

.gugu-msg-row {
  margin: 0 0 16px;
  display: flex;
  gap: 12px;
}

.gugu-msg-row.user {
  justify-content: flex-end;
}

.gugu-msg-row.user.blocked {
  align-items: center;
}

.gugu-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 35, 40, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gugu-msg-stack {
  max-width: min(78%, 760px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gugu-msg-alert {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d13c3c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(209, 60, 60, 0.22);
}

.gugu-msg-row.user .gugu-msg-stack {
  align-items: flex-end;
}

.gugu-bubble {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(250, 251, 252, 0.92);
  color: var(--gugu-text);
  line-height: 1.72;
  box-shadow: 0 10px 22px rgba(20, 27, 38, 0.04);
  word-break: break-word;
  white-space: pre-wrap;
}

.gugu-msg-row.user .gugu-bubble {
  background: rgba(31, 35, 40, 0.94);
  color: #f5f7fb;
}

.gugu-msg-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: min(76vw, 420px);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gugu-text);
  box-shadow: 0 12px 30px rgba(20, 27, 38, 0.06);
}

.gugu-msg-row.user .gugu-msg-attachment {
  background: rgba(31, 35, 40, 0.08);
  border-color: rgba(31, 35, 40, 0.08);
}

.gugu-msg-attachment-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 35, 40, 0.08);
  color: rgba(31, 35, 40, 0.86);
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}

.gugu-msg-attachment.is-image .gugu-msg-attachment-icon {
  background: rgba(157, 230, 74, 0.18);
}

.gugu-msg-attachment-meta {
  min-width: 0;
}

.gugu-msg-attachment-title {
  font-size: 12px;
  color: rgba(31, 35, 40, 0.5);
}

.gugu-msg-attachment-name {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.gugu-msg-row.user.blocked .gugu-bubble {
  background: rgba(31, 35, 40, 0.86);
  border: 1px solid rgba(209, 60, 60, 0.18);
}

.gugu-chat-composer-wrap {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(246, 247, 248, 0.8);
  position: sticky;
  bottom: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
}

.gugu-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.gugu-chat-attachment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 35, 40, 0.08);
}

.gugu-chat-attachment[hidden] {
  display: none;
}

.gugu-chat-attachment-name {
  max-width: min(420px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gugu-text);
  font-size: 13px;
}

.gugu-chat-attachment-clear {
  border: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.46);
  font-size: 13px;
}

.gugu-chat-input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px 12px 12px 14px;
  border-radius: 28px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(250, 251, 252, 0.92);
  box-shadow: 0 12px 32px rgba(20, 27, 38, 0.05);
}

.gugu-chat-plus,
.gugu-chat-send {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gugu-chat-plus {
  border: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.88);
}

.gugu-chat-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 24px;
  max-height: 220px;
  border: 0;
  outline: 0;
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
  color: var(--gugu-text);
  font-size: 16px;
  line-height: 1.65;
  padding: 10px 0 8px;
}

.gugu-chat-input::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gugu-chat-input::placeholder {
  color: rgba(31, 35, 40, 0.34);
}

.gugu-chat-send {
  border: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.92);
  box-shadow: none;
}

.gugu-chat-send svg {
  display: block;
  margin: 0 auto;
}

.gugu-chat-send:hover {
  transform: translateY(-1px);
}

.gugu-chat-send:disabled,
.gugu-chat-plus:disabled {
  opacity: 0.56;
  cursor: default;
  transform: none;
}

.gugu-chat-composer-hint {
  margin: 0;
  padding: 0 8px;
  color: rgba(31, 35, 40, 0.34);
  font-size: 12px;
}

.gugu-chat-page-minimal {
  min-height: calc(100vh - 36px);
  display: block;
  background: transparent;
}

.gugu-chat-header-minimal {
  min-height: 0;
  padding: 22px 26px 16px;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(246, 248, 250, 0.82);
  backdrop-filter: blur(20px);
  align-items: center;
}

.gugu-chat-thread-picker {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
}

.gugu-chat-thread-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.gugu-chat-thread-toggle:hover {
  color: #111418;
}

.gugu-chat-thread-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.gugu-chat-thread-current {
  display: inline-block;
  max-width: min(36vw, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.gugu-chat-thread-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(320px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(20, 27, 38, 0.08);
  backdrop-filter: blur(24px);
  z-index: 20;
}

.gugu-chat-menu-new {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 16px;
  background: rgba(247, 249, 251, 0.96);
  color: var(--gugu-text);
}

.gugu-chat-menu-new:hover {
  border-color: rgba(31, 35, 40, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

.gugu-chat-page-minimal .gugu-chat-thread-list {
  max-height: min(56vh, 420px);
  padding: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gugu-chat-page-minimal .gugu-chat-thread {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid transparent;
}

.gugu-chat-page-minimal .gugu-chat-thread.active {
  border-color: rgba(31, 35, 40, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(20, 27, 38, 0.05);
}

.gugu-chat-page-minimal .gugu-chat-thread-preview {
  -webkit-line-clamp: 2;
}

.gugu-chat-header-actions-minimal {
  width: auto;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.gugu-chat-top-icon {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(31, 35, 40, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, color 140ms ease;
}

.gugu-chat-top-icon:hover {
  transform: translateY(-1px);
  color: #111418;
}

.gugu-chat-top-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gugu-chat-header-actions-minimal .gugu-heartbar {
  gap: 7px;
  font-size: 16px;
}

.gugu-chat-page-minimal .gugu-chat-main {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: transparent;
}

.gugu-chat-page-minimal .gugu-chat-scroll {
  padding-top: 8px;
}

.gugu-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(31, 35, 40, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 14px 36px rgba(15, 18, 22, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 100;
}

.gugu-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gugu-fade-up {
  from {
    opacity: 0.45;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .gugu-page-shell {
    width: calc(100vw - 18px);
    margin: 9px auto;
    border-radius: 24px;
  }

  .gugu-home-shell {
    width: calc(100vw - 18px);
    margin: 9px auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: var(--gugu-shadow);
    backdrop-filter: blur(24px);
    overflow: hidden;
  }

  .gugu-home-wrap {
    padding: 20px 18px 24px;
  }

  .gugu-home-topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .gugu-home-topbar-main {
    min-width: 0;
    flex: 1 1 auto;
    gap: 10px;
  }

  .gugu-home-actions {
    flex: 0 0 auto;
    gap: 14px;
    margin-right: 8px;
  }

  .gugu-whisper-text {
    display: block;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gugu-home-brand {
    margin-top: 84px;
  }

  .gugu-home-brand h1 {
    font-size: clamp(42px, 16vw, 72px);
  }

  .gugu-search-form input {
    font-size: 16px;
  }

  .gugu-home-links {
    margin-top: 32px;
    grid-template-columns: 1fr;
  }

  .gugu-home-events {
    width: 100%;
    min-height: 0;
    margin-top: 16px;
  }

  .gugu-home-reward {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .gugu-home-reward-image {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .gugu-home-choice-actions {
    grid-template-columns: 1fr;
  }

  .gugu-chat-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .gugu-chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 35, 40, 0.08);
    max-height: 142px;
    background: rgba(248, 250, 252, 0.92);
  }

  .gugu-chat-sidebar-head {
    padding: 12px 12px 8px;
  }

  .gugu-chat-sidebar-copy p {
    display: none;
  }

  .gugu-chat-sidebar-copy h2 {
    font-size: 15px;
  }

  .gugu-chat-thread-list {
    display: flex;
    overflow: auto;
    padding: 6px 12px 10px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .gugu-chat-thread {
    min-width: 152px;
    max-width: 188px;
    padding: 11px 12px 10px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .gugu-chat-thread-title {
    font-size: 14px;
  }

  .gugu-chat-thread-preview {
    margin-top: 4px;
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .gugu-chat-thread-meta {
    margin-top: 8px;
    font-size: 11px;
  }

  .gugu-chat-header {
    padding: 12px 14px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 12px;
  }

  .gugu-chat-header-main {
    flex: 1 1 100%;
  }

  .gugu-chat-header h1 {
    font-size: 18px;
    line-height: 1.22;
  }

  .gugu-chat-header-main p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
  }

  .gugu-chat-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .gugu-chat-header-actions .gugu-heartbar {
    font-size: 14px;
    gap: 5px;
  }

  .gugu-chat-scroll {
    padding: 14px 12px 8px;
  }

  .gugu-msg-stack {
    max-width: calc(100% - 50px);
  }

  .gugu-chat-composer-wrap {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 249, 251, 0.82);
  }

  .gugu-chat-plus,
  .gugu-chat-send,
  .gugu-icon-button {
    min-width: 42px;
    min-height: 42px;
  }

  .gugu-chat-new {
    min-width: 54px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .gugu-chat-input-shell {
    gap: 8px;
    padding: 8px 8px 8px 10px;
    min-height: 62px;
    border-radius: 24px;
  }

  .gugu-chat-input {
    font-size: 16px;
    line-height: 1.55;
    padding: 10px 0 8px;
  }

  .gugu-chat-composer-hint {
    display: none;
  }

  .gugu-chat-attachment {
    width: 100%;
    padding: 10px 12px;
  }

  .gugu-chat-attachment-name {
    max-width: calc(100vw - 130px);
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .gugu-page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .gugu-chat-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .gugu-chat-sidebar {
    max-height: 126px;
  }

  .gugu-chat-page,
  .gugu-chat-page-minimal,
  .gugu-chat-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .gugu-chat-sidebar-head {
    padding: 10px 10px 6px;
  }

  .gugu-chat-sidebar-copy h2 {
    font-size: 14px;
  }

  .gugu-chat-new {
    min-width: 50px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .gugu-chat-thread-list {
    padding: 4px 10px 8px;
    gap: 7px;
  }

  .gugu-chat-thread {
    min-width: 142px;
    max-width: 170px;
    padding: 10px 11px 9px;
  }

  .gugu-chat-thread-preview,
  .gugu-chat-thread-meta {
    display: none;
  }

  .gugu-chat-header {
    padding: 10px 10px 8px;
    gap: 8px 10px;
  }

  .gugu-chat-header h1 {
    font-size: 17px;
  }

  .gugu-chat-header-main p {
    font-size: 11px;
    margin-top: 3px;
  }

  .gugu-chat-header-actions {
    align-items: center;
  }

  .gugu-chat-header-actions .gugu-heartbar {
    font-size: 13px;
    gap: 4px;
  }

  .gugu-chat-scroll {
    padding: 12px 10px 6px;
  }

  .gugu-msg-row {
    gap: 10px;
    margin-bottom: 14px;
  }

  .gugu-msg-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .gugu-msg-stack {
    max-width: calc(100% - 40px);
  }

  .gugu-msg-attachment {
    min-width: 0;
    max-width: calc(100vw - 84px);
    padding: 11px 12px;
    gap: 10px;
  }

  .gugu-msg-attachment-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .gugu-bubble {
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.65;
  }

  .gugu-chat-composer-wrap {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .gugu-chat-composer {
    gap: 8px;
  }

  .gugu-chat-input-shell {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    min-height: 58px;
    padding: 7px 7px 7px 9px;
    border-radius: 22px;
  }

  .gugu-chat-plus,
  .gugu-chat-send,
  .gugu-icon-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .gugu-chat-input {
    min-height: 22px;
    max-height: 132px;
    font-size: 16px;
    padding: 8px 0 7px;
  }
}

/* Homepage minimal restore */
.gugu-home-body {
  background:
    radial-gradient(circle at 14% 82%, rgba(205, 224, 255, 0.26), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(255, 232, 187, 0.2), transparent 24%),
    radial-gradient(circle at 72% 18%, rgba(220, 228, 255, 0.22), transparent 28%),
    var(--gugu-bg);
}

body.gugu-home-body[data-theme="dark"] {
  background:
    radial-gradient(circle at 18% 82%, rgba(72, 106, 173, 0.22), transparent 26%),
    radial-gradient(circle at 84% 80%, rgba(132, 101, 44, 0.18), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(65, 84, 130, 0.22), transparent 28%),
    var(--gugu-bg);
}

.gugu-home-shell {
  width: min(1420px, calc(100vw - 64px));
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.gugu-home-wrap {
  padding: 28px 42px 42px;
}

.gugu-home-wrap::before {
  display: none;
}

.gugu-home-topbar {
  align-items: center;
  gap: 28px;
}

.gugu-home-topbar-main {
  gap: 14px;
}

.gugu-home-audio-toggle,
.gugu-home-nav-icon,
.gugu-home-theme-toggle,
.gugu-home-easter-toggle {
  position: static;
  color: rgba(31, 35, 40, 0.84);
  opacity: 1;
}

.gugu-home-audio-toggle::after,
.gugu-home-nav-icon::after,
.gugu-home-theme-toggle::after,
.gugu-home-easter-toggle::after {
  display: none;
}

body[data-theme="dark"] .gugu-home-audio-toggle,
body[data-theme="dark"] .gugu-home-nav-icon,
body[data-theme="dark"] .gugu-home-theme-toggle,
body[data-theme="dark"] .gugu-home-easter-toggle {
  color: rgba(237, 241, 246, 0.86);
}

.gugu-home-audio-toggle svg,
.gugu-home-nav-icon svg,
.gugu-home-theme-toggle svg,
.gugu-home-easter-toggle svg {
  width: 21px;
  height: 21px;
}

.gugu-whisper-text {
  max-width: min(760px, 100%);
  padding-top: 0;
  color: rgba(31, 35, 40, 0.54);
  font-size: 14px;
  line-height: 1.72;
  letter-spacing: 0;
}

body[data-theme="dark"] .gugu-whisper-text {
  color: rgba(237, 241, 246, 0.64);
}

.gugu-home-brand {
  margin: 120px 0 28px;
  text-align: center;
}

.gugu-home-brand h1 {
  display: inline-block;
  width: auto;
  max-width: 100%;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(56px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.gugu-search-block {
  width: min(980px, 100%);
}

.gugu-search-form {
  min-height: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  padding: 1px 8px 1px 14px !important;
  align-items: center !important;
  text-align: left !important;
  border-radius: 999px;
  background: var(--gugu-surface-card);
  box-shadow: var(--gugu-search-shadow);
  backdrop-filter: blur(18px);
}

.gugu-search-form::before,
.gugu-search-form::after {
  display: none;
}

.gugu-search-form:hover,
.gugu-search-form:focus-within {
  background: var(--gugu-surface-card);
  box-shadow: var(--gugu-search-shadow-strong);
  transform: translateY(-1px);
}

.gugu-search-form input,
.gugu-search-placeholder {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px !important;
}

.gugu-search-form input {
  height: 26px !important;
  min-height: 26px !important;
  line-height: 26px !important;
  padding-left: 0;
  text-align: left !important;
  transform: translate(var(--gugu-collide-x, 0px), var(--gugu-collide-y, 0px));
}

.gugu-search-placeholder {
  left: 14px !important;
  right: 48px !important;
  top: 50% !important;
  bottom: auto !important;
  height: 26px !important;
  transform: translate(var(--gugu-collide-x, 0px), calc(var(--gugu-collide-y, 0px) - 50%));
  justify-content: flex-start !important;
  text-align: left !important;
  color: rgba(31, 35, 40, 0.52);
  line-height: 26px !important;
}

body[data-theme="dark"] .gugu-search-placeholder {
  color: rgba(237, 241, 246, 0.42);
}

.gugu-search-submit {
  width: 28px !important;
  height: 28px !important;
}

.gugu-search-submit img {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.88;
  filter: none;
}

.gugu-search-form input,
.gugu-search-placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gugu-search-form {
  overflow: hidden;
}

body[data-theme="dark"] .gugu-search-submit img {
  filter: invert(1);
}

.gugu-home-links {
  width: min(800px, 100%);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gugu-link-card,
.gugu-home-choice,
.gugu-home-reward,
.gugu-home-drop {
  position: relative;
  isolation: isolate;
}

.gugu-link-card::before,
.gugu-home-choice::before,
.gugu-home-reward::before,
.gugu-home-drop::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.2px solid var(--gugu-scribble);
  transform: rotate(-0.45deg) scale(0.998);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.gugu-link-card:hover::before,
.gugu-home-choice:hover::before,
.gugu-home-reward:hover::before,
.gugu-home-drop.is-visible::before {
  opacity: 1;
  transform: rotate(0.18deg) scale(1);
}

.gugu-link-card {
  padding: 18px 18px 16px;
  border-radius: var(--gugu-radius-lg);
  border: 0;
  background: var(--gugu-surface-soft);
  box-shadow: 0 14px 32px rgba(20, 27, 38, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.gugu-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(20, 27, 38, 0.06);
}

.gugu-link-card h2 {
  margin: 0 0 12px;
  color: rgba(31, 35, 40, 0.74);
  font-size: 15px;
  font-weight: 600;
}

body[data-theme="dark"] .gugu-link-card h2 {
  color: rgba(237, 241, 246, 0.54);
}

.gugu-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gugu-link-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--gugu-surface-card);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.gugu-link-pill:hover {
  transform: translateY(-1px);
  background: var(--gugu-surface-card);
  box-shadow: 0 10px 22px rgba(20, 27, 38, 0.08);
}

.gugu-link-pill::before {
  display: none;
}

.gugu-link-pill img {
  width: 18px;
  height: 18px;
  position: static;
}

.gugu-link-pill span {
  position: static;
  font-size: 16px;
  line-height: 1.2;
  color: inherit;
}

.gugu-home-events {
  width: min(800px, 100%);
  min-height: 0;
  margin: 18px auto 0;
}

.gugu-home-drop,
.gugu-home-choice,
.gugu-home-reward {
  width: min(var(--gugu-float-width, 308px), calc(100vw - 24px));
  justify-self: start;
  align-self: start;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--gugu-surface-soft);
  box-shadow: var(--gugu-shadow);
}

.gugu-home-drop.is-floating-card,
.gugu-home-choice.is-floating-card,
.gugu-home-reward.is-floating-card {
  position: fixed;
  left: var(--gugu-float-left, 20px);
  top: var(--gugu-float-top, 20px);
  z-index: 22;
}

.gugu-home-drop {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.gugu-home-drop-image {
  width: 78px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.gugu-home-drop-kicker,
.gugu-home-choice-title,
.gugu-home-reward-kicker {
  color: rgba(31, 35, 40, 0.4);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.gugu-home-drop-text,
.gugu-home-reward-text,
.gugu-home-choice-text {
  margin-top: 6px;
  color: var(--gugu-text);
  font-size: 14px;
  line-height: 1.7;
}

body[data-theme="dark"] .gugu-home-choice-title,
body[data-theme="dark"] .gugu-home-reward-kicker,
body[data-theme="dark"] .gugu-home-drop-kicker {
  color: rgba(237, 241, 246, 0.54);
}

.gugu-home-choice-actions {
  margin-top: 12px;
  gap: 10px;
}

.gugu-home-choice-button {
  min-height: 46px;
  padding: 10px 13px;
  border: 0;
  border-radius: 16px;
  background: var(--gugu-surface-card);
  color: var(--gugu-text);
  text-align: left;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.gugu-home-choice-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 27, 38, 0.08);
}

.gugu-home-choice-button-positive {
  background: rgba(168, 236, 114, 0.14);
}

.gugu-home-choice-button-negative {
  background: rgba(255, 255, 255, 0.82);
}

body[data-theme="dark"] .gugu-home-choice-button-negative {
  background: rgba(52, 59, 72, 0.92);
}

.gugu-home-reward {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
}

.gugu-home-reward-image {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: var(--gugu-surface-card);
  box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.05);
}

body[data-theme="dark"] .gugu-chat-shell,
body[data-theme="dark"] .gugu-chat-main,
body[data-theme="dark"] .gugu-chat-page-minimal .gugu-chat-main {
  background: rgba(9, 12, 18, 0.9);
}

body[data-theme="dark"] .gugu-chat-header,
body[data-theme="dark"] .gugu-chat-header-minimal {
  background: rgba(20, 24, 32, 0.94);
  border-bottom-color: rgba(237, 241, 246, 0.08);
}

body[data-theme="dark"] .gugu-chat-thread-toggle,
body[data-theme="dark"] .gugu-chat-top-icon {
  color: rgba(237, 241, 246, 0.88);
}

body[data-theme="dark"] .gugu-chat-thread-toggle:hover,
body[data-theme="dark"] .gugu-chat-top-icon:hover {
  color: #ffffff;
}

body[data-theme="dark"] .gugu-chat-thread-menu {
  border-color: rgba(237, 241, 246, 0.08);
  background: rgba(22, 27, 36, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .gugu-chat-menu-new,
body[data-theme="dark"] .gugu-chat-page-minimal .gugu-chat-thread {
  background: rgba(31, 37, 48, 0.92);
  color: rgba(237, 241, 246, 0.92);
}

body[data-theme="dark"] .gugu-chat-menu-new {
  border-color: rgba(237, 241, 246, 0.08);
}

body[data-theme="dark"] .gugu-chat-menu-new:hover,
body[data-theme="dark"] .gugu-chat-page-minimal .gugu-chat-thread.active {
  background: rgba(42, 49, 63, 0.96);
  border-color: rgba(237, 241, 246, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] .gugu-chat-thread-preview,
body[data-theme="dark"] .gugu-chat-thread-meta,
body[data-theme="dark"] .gugu-chat-empty p {
  color: rgba(237, 241, 246, 0.58);
}

body[data-theme="dark"] .gugu-msg-avatar {
  background: rgba(31, 37, 48, 0.98);
  border-color: rgba(237, 241, 246, 0.12);
  color: rgba(247, 250, 255, 0.96);
}

body[data-theme="dark"] .gugu-bubble {
  background: rgba(12, 16, 23, 0.72);
  color: rgba(244, 247, 251, 0.96);
  border: 1px solid rgba(237, 241, 246, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

body[data-theme="dark"] .gugu-msg-row.user .gugu-bubble {
  background: rgba(55, 64, 80, 0.98);
  color: rgba(247, 250, 255, 0.96);
}

body[data-theme="dark"] .gugu-msg-attachment {
  background: rgba(244, 247, 251, 0.98);
  border-color: rgba(237, 241, 246, 0.08);
  color: #1b2028;
}

body[data-theme="dark"] .gugu-msg-row.user .gugu-msg-attachment {
  background: rgba(55, 64, 80, 0.96);
  border-color: rgba(237, 241, 246, 0.08);
  color: rgba(247, 250, 255, 0.96);
}

body[data-theme="dark"] .gugu-msg-attachment-icon {
  background: rgba(31, 35, 40, 0.08);
  color: #1f2328;
}

body[data-theme="dark"] .gugu-msg-row.user .gugu-msg-attachment-icon {
  background: rgba(247, 250, 255, 0.14);
  color: rgba(247, 250, 255, 0.94);
}

body[data-theme="dark"] .gugu-msg-attachment-title {
  color: rgba(31, 35, 40, 0.56);
}

body[data-theme="dark"] .gugu-msg-row.user .gugu-msg-attachment-title {
  color: rgba(247, 250, 255, 0.62);
}

body[data-theme="dark"] .gugu-time-chip {
  background: rgba(247, 250, 255, 0.12);
  color: rgba(247, 250, 255, 0.86);
}

body[data-theme="dark"] .gugu-chat-composer-wrap {
  border-top-color: rgba(237, 241, 246, 0.08);
  background: rgba(18, 23, 31, 0.9);
}

body[data-theme="dark"] .gugu-chat-attachment,
body[data-theme="dark"] .gugu-chat-input-shell {
  background: rgba(28, 34, 44, 0.96);
  border-color: rgba(237, 241, 246, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .gugu-chat-plus {
  border: 0;
  background: transparent;
  color: rgba(247, 250, 255, 0.94);
}

body[data-theme="dark"] .gugu-chat-input,
body[data-theme="dark"] .gugu-chat-attachment-name {
  color: rgba(247, 250, 255, 0.96);
}

body[data-theme="dark"] .gugu-chat-send {
  background: transparent;
  color: rgba(247, 250, 255, 0.96);
}

body[data-theme="dark"] .gugu-chat-input::placeholder,
body[data-theme="dark"] .gugu-chat-composer-hint,
body[data-theme="dark"] .gugu-chat-attachment-clear {
  color: rgba(237, 241, 246, 0.56);
}

@media (max-width: 960px) {
  .gugu-home-shell {
    width: calc(100vw - 18px);
    margin: 9px auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: var(--gugu-shadow);
    backdrop-filter: blur(24px);
    overflow: hidden;
  }

  .gugu-home-wrap {
    padding: 20px 18px 24px;
  }

  .gugu-home-topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .gugu-home-topbar-main {
    gap: 10px;
  }

  .gugu-home-actions {
    gap: 11px;
    margin-right: 4px;
  }

  .gugu-whisper-text {
    display: block;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gugu-home-brand {
    margin-top: 84px;
  }

  .gugu-home-brand h1 {
    font-size: clamp(42px, 16vw, 72px);
  }

  .gugu-search-form input,
  .gugu-search-placeholder {
    font-size: 16px;
  }

  .gugu-home-links {
    margin-top: 32px;
    grid-template-columns: 1fr;
  }

  .gugu-home-events {
    width: 100%;
    min-height: 0;
    margin-top: 22px;
  }

  .gugu-home-drop,
  .gugu-home-reward {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .gugu-home-drop-image,
  .gugu-home-reward-image {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .gugu-home-choice-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gugu-home-topbar {
    gap: 10px;
  }

  .gugu-home-topbar-main {
    gap: 8px;
  }

  .gugu-home-actions {
    gap: 8px;
    margin-right: 2px;
  }

  .gugu-whisper-text {
    font-size: 12px;
  }

  .gugu-home-audio-toggle svg,
  .gugu-home-nav-icon svg,
  .gugu-home-theme-toggle svg,
  .gugu-home-easter-toggle svg {
    width: 18px;
    height: 18px;
  }

  .gugu-heartbar {
    gap: 1px;
    transform: scale(0.9);
    transform-origin: center;
  }

  .gugu-home-drop,
  .gugu-home-reward {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.gugu-chat-page-minimal .gugu-chat-header-actions-minimal {
  width: auto;
}

/* Homepage mascot stage */
.gugu-stage-host {
  position: relative;
}

.gugu-mascot-actor {
  position: absolute;
  left: var(--gugu-actor-left, 0px);
  top: var(--gugu-actor-top, 0px);
  width: 74px;
  height: 74px;
  opacity: 0;
  transform: translate3d(-6px, 14px, 0) scale(0.82);
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 8px 16px rgba(24, 34, 29, 0.1));
}

.gugu-mascot-actor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gugu-mascot-actor.is-active {
  opacity: 1;
}

.gugu-mascot-actor.mode-wipe.is-active {
  animation: gugu-mascot-wipe 680ms cubic-bezier(.22, .61, .36, 1);
}

.gugu-mascot-actor.mode-write.is-active {
  animation: gugu-mascot-write 420ms cubic-bezier(.22, .61, .36, 1);
}

.gugu-mascot-actor.mode-peek.is-active {
  animation: gugu-mascot-peek 900ms cubic-bezier(.22, .61, .36, 1);
}

.gugu-home-drop > .gugu-mascot-actor,
.gugu-home-reward > .gugu-mascot-actor,
.gugu-home-choice > .gugu-mascot-actor {
  left: auto;
  top: auto;
  right: 14px;
  bottom: calc(100% - 24px);
  width: 86px;
  height: 86px;
  z-index: 4;
}

.gugu-home-drop > .gugu-mascot-actor {
  left: 10px;
  right: auto;
}

.gugu-text-wiping {
  animation: gugu-text-wiping 260ms ease forwards;
}

.gugu-text-writing {
  animation: gugu-text-writing 420ms cubic-bezier(.22, .61, .36, 1);
}

.gugu-home-drop.is-tossing .gugu-home-drop-image {
  animation: gugu-note-fly 860ms cubic-bezier(.18, .89, .32, 1.28);
}

.gugu-home-reward.is-presenting .gugu-home-reward-image,
.gugu-home-reward.is-bumped .gugu-home-reward-image {
  animation: gugu-reward-pop 780ms cubic-bezier(.18, .89, .32, 1.18);
}

.gugu-home-choice.is-peeking {
  animation: gugu-choice-rise 560ms cubic-bezier(.22, .61, .36, 1);
}

@keyframes gugu-text-wiping {
  0% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0 round 10px);
  }
  100% {
    opacity: 0.2;
    filter: blur(5px);
    clip-path: inset(0 0 0 88% round 10px);
  }
}

@keyframes gugu-text-writing {
  0% {
    opacity: 0.2;
    filter: blur(4px);
    clip-path: inset(0 100% 0 0 round 10px);
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0 round 10px);
    transform: translateY(0);
  }
}

@keyframes gugu-mascot-wipe {
  0% {
    opacity: 0;
    transform: translate3d(-12px, 16px, 0) rotate(-5deg) scale(0.75);
  }
  25% {
    opacity: 1;
    transform: translate3d(4px, 2px, 0) rotate(4deg) scale(0.88);
  }
  60% {
    opacity: 1;
    transform: translate3d(-18px, -4px, 0) rotate(-6deg) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate3d(10px, 10px, 0) rotate(4deg) scale(0.76);
  }
}

@keyframes gugu-mascot-write {
  0% {
    opacity: 0.5;
    transform: translate3d(4px, 8px, 0) rotate(6deg) scale(0.82);
  }
  45% {
    opacity: 1;
    transform: translate3d(-2px, -1px, 0) rotate(-3deg) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate3d(8px, 12px, 0) rotate(3deg) scale(0.78);
  }
}

@keyframes gugu-mascot-peek {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.74);
  }
  20% {
    opacity: 1;
  }
  45% {
    transform: translate3d(0, -4px, 0) scale(0.9);
  }
  70% {
    transform: translate3d(0, 2px, 0) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.78);
  }
}

@keyframes gugu-note-fly {
  0% {
    opacity: 0;
    transform: translate3d(-22px, 30px, 0) rotate(-18deg) scale(0.82);
  }
  55% {
    opacity: 1;
    transform: translate3d(8px, -8px, 0) rotate(8deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes gugu-reward-pop {
  0% {
    transform: translateY(12px) scale(0.82) rotate(-8deg);
  }
  50% {
    transform: translateY(-4px) scale(1.05) rotate(4deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes gugu-choice-rise {
  0% {
    opacity: 0.5;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .gugu-mascot-actor {
    width: 64px;
    height: 64px;
  }

  .gugu-home-drop > .gugu-mascot-actor,
  .gugu-home-reward > .gugu-mascot-actor,
  .gugu-home-choice > .gugu-mascot-actor {
    width: 72px;
    height: 72px;
    bottom: calc(100% - 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gugu-mascot-actor,
  .gugu-home-drop.is-tossing .gugu-home-drop-image,
  .gugu-home-reward.is-presenting .gugu-home-reward-image,
  .gugu-home-reward.is-bumped .gugu-home-reward-image,
  .gugu-home-choice.is-peeking,
  .gugu-text-wiping,
  .gugu-text-writing {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .gugu-chat-page-minimal .gugu-chat-header-minimal {
    padding: 14px 14px 10px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .gugu-chat-page-minimal .gugu-chat-header-actions-minimal {
    width: auto;
    justify-content: flex-end;
    gap: 10px;
  }

  .gugu-chat-page-minimal .gugu-chat-thread-current {
    max-width: min(42vw, 180px);
    font-size: 18px;
  }

  .gugu-chat-page-minimal .gugu-chat-thread-menu {
    width: min(300px, calc(100vw - 28px));
  }
}

@media (max-width: 640px) {
  .gugu-chat-page-minimal .gugu-chat-header-minimal {
    padding: 12px 10px 8px;
    gap: 10px;
  }

  .gugu-home-topbar {
    gap: 10px;
  }

  .gugu-home-topbar-main {
    gap: 8px;
  }

  .gugu-home-actions {
    gap: 10px;
    margin-right: 6px;
  }

  .gugu-whisper-text {
    font-size: 12px;
  }

  .gugu-chat-page-minimal .gugu-chat-thread-current {
    max-width: min(30vw, 108px);
    font-size: 15px;
  }

  .gugu-chat-page-minimal .gugu-chat-thread-menu {
    top: calc(100% + 10px);
    width: min(280px, calc(100vw - 20px));
    padding: 9px;
    border-radius: 20px;
  }

  .gugu-chat-page-minimal .gugu-chat-thread-list {
    max-height: min(52vh, 320px);
  }

  .gugu-chat-page-minimal .gugu-chat-thread {
    padding: 11px 12px;
  }

  .gugu-chat-page-minimal .gugu-chat-thread-preview,
  .gugu-chat-page-minimal .gugu-chat-thread-meta {
    display: block;
  }

  .gugu-chat-page-minimal .gugu-chat-header-actions-minimal {
    gap: 6px;
  }

  .gugu-chat-page-minimal .gugu-chat-header-actions-minimal .gugu-heartbar {
    gap: 2px;
    font-size: 11px;
  }

  .gugu-chat-page-minimal .gugu-chat-top-icon svg {
    width: 18px;
    height: 18px;
  }

  .gugu-chat-page-minimal .gugu-chat-top-icon,
  .gugu-chat-page-minimal #gugu-chat-audio-toggle {
    flex: 0 0 auto;
  }

  .gugu-chat-page-minimal .gugu-chat-composer,
  .gugu-chat-page-minimal .gugu-chat-input-shell,
  .gugu-chat-page-minimal .gugu-chat-composer-wrap {
    width: 100%;
    max-width: 100%;
  }
}

.gugu-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gugu-deskpet {
  --gugu-pet-line: rgba(37, 43, 38, 0.9);
  --gugu-pet-fill: rgba(255, 252, 244, 0.94);
  --gugu-pet-soft: rgba(245, 240, 223, 0.94);
  --gugu-pet-accent: #f4c86a;
  --gugu-pet-accent-soft: rgba(244, 200, 106, 0.22);
  --gugu-pet-blush: rgba(245, 157, 157, 0.42);
  position: fixed;
  top: var(--gugu-pet-top, 22px);
  left: var(--gugu-pet-left, 28px);
  width: 244px;
  height: 168px;
  z-index: 45;
  pointer-events: none;
  transform: translate3d(calc(var(--gugu-hop-x, 0px) + var(--gugu-collision-x, 0px)), calc(var(--gugu-hop-y, 0px) + var(--gugu-collision-y, 0px)), 0) scale(var(--gugu-pet-scale, 1));
  transition: transform 240ms cubic-bezier(.22, .61, .36, 1), filter 180ms ease;
}

body[data-theme="dark"] .gugu-deskpet {
  --gugu-pet-line: rgba(245, 248, 252, 0.92);
  --gugu-pet-fill: rgba(27, 32, 42, 0.96);
  --gugu-pet-soft: rgba(38, 45, 56, 0.96);
  --gugu-pet-accent: #f0c768;
  --gugu-pet-accent-soft: rgba(240, 199, 104, 0.22);
  --gugu-pet-blush: rgba(236, 145, 145, 0.28);
}

.gugu-deskpet-stage,
.gugu-deskpet-dock,
.gugu-deskpet-minimize {
  pointer-events: auto;
}

.gugu-deskpet-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translate3d(var(--gugu-chase-x, 0px), var(--gugu-chase-y, 0px), 0);
  transition: transform 180ms ease;
}

.gugu-home-title,
.gugu-whisper-text,
.gugu-home-audio-toggle,
.gugu-heartbar,
.gugu-home-easter-toggle,
.gugu-home-theme-toggle,
.gugu-home-nav-icon,
.gugu-link-pill,
.gugu-home-drop,
.gugu-home-reward,
.gugu-home-choice,
#gugu-google-form,
#gugu-group-search,
#gugu-group-read {
  position: relative;
  left: var(--gugu-collide-x, 0px);
  top: var(--gugu-collide-y, 0px);
  scale: var(--gugu-squash-x, 1) var(--gugu-squash-y, 1);
  transform-origin: center bottom;
  opacity: var(--gugu-fall-opacity, 1);
  filter: blur(var(--gugu-fall-blur, 0px));
}

.gugu-deskpet-dock {
  position: absolute;
  top: 0;
  left: 0;
  width: 21px;
  height: 21px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: none;
  align-items: center;
  justify-content: center;
  color: inherit;
  padding: 0;
}

.gugu-deskpet-dock-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gugu-deskpet-dock-img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
  transform: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gugu-deskpet-dock-eye,
.gugu-deskpet-eye {
  position: absolute;
  top: 8px;
  width: 10px;
  height: 12px;
  border: 2.6px solid var(--gugu-pet-line);
  border-top-width: 3px;
  border-radius: 50%;
  background: transparent;
}

.gugu-deskpet-dock-eye.left,
.gugu-deskpet-eye.left {
  left: 0;
}

.gugu-deskpet-dock-eye.right,
.gugu-deskpet-eye.right {
  right: 0;
}

.gugu-deskpet-dock-mouth,
.gugu-deskpet-mouth {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2.4px solid var(--gugu-pet-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: transparent;
}

.gugu-deskpet-dock-mouth {
  bottom: 1px;
  width: 12px;
  height: 8px;
}

.gugu-deskpet.is-minimized {
  top: var(--gugu-dock-top, 16px);
  left: var(--gugu-dock-left, calc(100vw - 42px));
  width: 21px;
  height: 21px;
  transform: none;
}

.gugu-deskpet.is-minimized .gugu-deskpet-stage {
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
}

.gugu-deskpet.is-minimized .gugu-deskpet-dock {
  display: inline-flex;
}

.gugu-deskpet.has-unread .gugu-deskpet-dock::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff8479;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.gugu-deskpet-bubble {
  position: absolute;
  top: 4px;
  left: 74px;
  width: min(170px, calc(100vw - 128px));
  min-height: 56px;
  padding: 16px 18px 14px;
  border: 2px solid var(--gugu-pet-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 34px rgba(26, 32, 28, 0.1);
  opacity: 0;
  transform: translate3d(-8px, 6px, 0) scale(0.92);
  transform-origin: left bottom;
  transition: opacity 180ms ease, transform 220ms ease;
}

body[data-theme="dark"] .gugu-deskpet-bubble {
  background: rgba(19, 24, 34, 0.96);
}

.gugu-deskpet.show-bubble .gugu-deskpet-bubble {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.gugu-deskpet-bubble::before {
  display: none;
}

.gugu-deskpet.is-thought-bubble .gugu-deskpet-bubble {
  border-radius: 30px;
}

.gugu-deskpet.is-thought-bubble .gugu-deskpet-bubble::before {
  display: none;
}

.gugu-deskpet.is-thought-bubble .gugu-deskpet-bubble::after {
  display: none;
}

.gugu-deskpet.is-drop-bubble .gugu-deskpet-bubble {
  border-style: dashed;
  border-width: 1.8px;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(20, 27, 38, 0.1);
}

.gugu-deskpet.has-bubble-heart .gugu-deskpet-bubble::after {
  content: "♥";
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 14px;
  line-height: 1;
  color: #ef8ca4;
  text-shadow: 0 2px 6px rgba(239, 140, 164, 0.22);
  animation: gugu-bubble-heart 1200ms ease-in-out infinite alternate;
}

.gugu-deskpet-bubble-text {
  font-size: 13px;
  line-height: 1.52;
  color: var(--gugu-text);
  min-height: 1.52em;
}

.gugu-deskpet.is-snapped {
  width: 244px;
  height: 168px;
  z-index: 45;
  transform: translate3d(calc(var(--gugu-hop-x, 0px) + var(--gugu-collision-x, 0px)), calc(var(--gugu-hop-y, 0px) + var(--gugu-collision-y, 0px)), 0) scale(calc(var(--gugu-pet-scale, 1) * var(--gugu-floor-scale-x, 1)), calc(var(--gugu-pet-scale, 1) * var(--gugu-floor-scale-y, 1)));
  transform-origin: center bottom;
}

.gugu-deskpet.is-snapped .gugu-deskpet-stage {
  overflow: visible;
}

.gugu-deskpet.is-crushed-burst .gugu-deskpet-stage::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 88px;
  height: 34px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 60%, rgba(255,255,255,0.88) 0 2px, transparent 2.4px),
    radial-gradient(circle at 32% 46%, rgba(255,255,255,0.74) 0 2px, transparent 2.5px),
    radial-gradient(circle at 54% 68%, rgba(255,255,255,0.82) 0 2.4px, transparent 2.9px),
    radial-gradient(circle at 74% 44%, rgba(255,255,255,0.72) 0 2px, transparent 2.5px),
    radial-gradient(circle at 88% 58%, rgba(255,255,255,0.64) 0 1.8px, transparent 2.3px);
  filter: blur(0.2px);
  animation: gugu-deskpet-crush-burst 720ms ease-out forwards;
}

.gugu-deskpet.is-snapped .gugu-deskpet-bubble {
  top: 4px;
  left: 74px;
  width: min(170px, calc(100vw - 128px));
  min-height: 56px;
  padding: 16px 18px 14px;
}

.gugu-deskpet.is-snapped .gugu-deskpet-minimize {
  display: none;
}

.gugu-deskpet-minimize {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--gugu-subtle);
  font-size: 11px;
  line-height: 1;
  padding: 4px 2px;
}

.gugu-deskpet-sprite {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 110px;
  height: 134px;
  transform-origin: center bottom;
  filter: drop-shadow(0 10px 18px rgba(31, 36, 33, 0.09));
  cursor: grab;
}

.gugu-deskpet.is-snapped .gugu-deskpet-sprite {
  left: 2px;
  bottom: -2px;
  width: 126px;
  height: 144px;
}

.gugu-deskpet-head {
  position: absolute;
  top: 8px;
  left: 18px;
  width: 70px;
  height: 62px;
  border: 3px solid var(--gugu-pet-line);
  border-radius: 34px 34px 30px 30px;
  background: linear-gradient(180deg, var(--gugu-pet-fill), rgba(255, 255, 255, 0.84));
}

.gugu-deskpet-hair {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 20px;
  background: var(--gugu-pet-accent);
  border: 3px solid var(--gugu-pet-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.gugu-deskpet-hair.left {
  left: 12px;
  transform: rotate(-12deg);
}

.gugu-deskpet-hair.right {
  right: 12px;
  transform: rotate(12deg);
}

.gugu-deskpet-face {
  position: absolute;
  inset: 0;
}

.gugu-deskpet-eye {
  top: 22px;
}

.gugu-deskpet-mouth {
  bottom: 14px;
  width: 16px;
  height: 10px;
}

.gugu-deskpet-blush {
  position: absolute;
  top: 34px;
  width: 16px;
  height: 10px;
  border-radius: 50%;
  background: var(--gugu-pet-blush);
}

.gugu-deskpet-blush.left {
  left: 8px;
}

.gugu-deskpet-blush.right {
  right: 8px;
}

.gugu-deskpet-body {
  position: absolute;
  top: 62px;
  left: 28px;
  width: 50px;
  height: 44px;
  border: 3px solid var(--gugu-pet-line);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), var(--gugu-pet-soft));
}

.gugu-deskpet-skirt {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 38px;
  height: 22px;
  transform: translateX(-50%);
  border: 3px solid var(--gugu-pet-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(168, 236, 114, 0.26);
}

.gugu-deskpet-arm,
.gugu-deskpet-foot,
.gugu-deskpet-tail {
  position: absolute;
  border: 3px solid var(--gugu-pet-line);
  background: var(--gugu-pet-fill);
}

.gugu-deskpet-arm {
  top: 72px;
  width: 14px;
  height: 30px;
  border-radius: 12px;
}

.gugu-deskpet-arm.left {
  left: -8px;
  transform: rotate(18deg);
}

.gugu-deskpet-arm.right {
  right: -8px;
  transform: rotate(-18deg);
}

.gugu-deskpet-foot {
  bottom: 12px;
  width: 18px;
  height: 12px;
  border-radius: 12px;
}

.gugu-deskpet-foot.left {
  left: 26px;
}

.gugu-deskpet-foot.right {
  right: 26px;
}

.gugu-deskpet-tail {
  right: 6px;
  top: 80px;
  width: 24px;
  height: 10px;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
}

.gugu-deskpet-carry {
  position: absolute;
  left: 54px;
  top: 92px;
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--gugu-pet-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.gugu-deskpet-carry svg {
  width: 18px;
  height: 18px;
  display: block;
}

.gugu-deskpet.is-carrying .gugu-deskpet-carry {
  display: inline-flex;
}

.gugu-home-nav-icon.is-stolen-by-gugu {
  opacity: 0.14;
  transform: translateY(-8px) scale(0.88);
  filter: blur(1px);
  pointer-events: none;
}

.gugu-deskpet-star {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gugu-pet-line);
  border-radius: 50%;
  opacity: 0;
}

.gugu-deskpet-star.star-a {
  top: 8px;
  right: 4px;
}

.gugu-deskpet-star.star-b {
  top: 24px;
  right: -6px;
}

.gugu-deskpet-star.star-c {
  top: 40px;
  right: 10px;
}

.gugu-deskpet.face-happy .gugu-deskpet-mouth {
  width: 18px;
  height: 12px;
}

.gugu-deskpet.face-angry .gugu-deskpet-eye.left {
  transform: rotate(-18deg);
}

.gugu-deskpet.face-angry .gugu-deskpet-eye.right {
  transform: rotate(18deg);
}

.gugu-deskpet.face-angry .gugu-deskpet-mouth {
  width: 14px;
  height: 6px;
  border-radius: 12px 12px 0 0;
  border-top: 2.4px solid var(--gugu-pet-line);
  border-bottom: 0;
  bottom: 12px;
}

.gugu-deskpet.face-grumpy .gugu-deskpet-eye {
  height: 8px;
  top: 25px;
}

.gugu-deskpet.is-speaking .gugu-deskpet-mouth,
.gugu-deskpet.pose-laugh .gugu-deskpet-mouth {
  animation: gugu-deskpet-mouth-talk 420ms ease-in-out infinite alternate;
}

.gugu-deskpet.pose-talk .gugu-deskpet-sprite {
  animation: gugu-deskpet-bob 700ms ease-in-out infinite;
}

.gugu-deskpet.pose-think .gugu-deskpet-sprite {
  animation: gugu-deskpet-think 980ms ease-in-out infinite;
}

.gugu-deskpet.pose-think .gugu-deskpet-arm.left {
  top: 46px;
  left: 10px;
  transform: rotate(-36deg);
}

.gugu-deskpet.pose-think .gugu-deskpet-arm.right {
  top: 46px;
  right: 10px;
  transform: rotate(36deg);
}

.gugu-deskpet.pose-sleep .gugu-deskpet-sprite {
  animation: gugu-deskpet-sleep 1800ms ease-in-out infinite;
}

.gugu-deskpet.pose-sleep .gugu-deskpet-eye,
.gugu-deskpet.pose-pet .gugu-deskpet-eye {
  height: 7px;
  top: 25px;
}

.gugu-deskpet.pose-sleep .gugu-deskpet-star,
.gugu-deskpet.pose-think .gugu-deskpet-star {
  animation: gugu-deskpet-star 1.4s ease-in-out infinite;
}

.gugu-deskpet.pose-roll .gugu-deskpet-sprite {
  animation: gugu-deskpet-roll 1100ms cubic-bezier(.44, .03, .56, .97);
}

.gugu-deskpet.pose-parkour .gugu-deskpet-sprite {
  animation: gugu-deskpet-parkour 1300ms cubic-bezier(.32, .72, .16, 1);
}

.gugu-deskpet.pose-wipe .gugu-deskpet-sprite {
  animation: gugu-deskpet-wipe 940ms ease-in-out;
}

.gugu-deskpet.pose-wipe .gugu-deskpet-arm.right {
  height: 34px;
  top: 58px;
  right: -14px;
}

.gugu-deskpet.pose-laugh .gugu-deskpet-sprite {
  animation: gugu-deskpet-laugh 700ms ease-in-out 2;
}

.gugu-deskpet.pose-peek .gugu-deskpet-sprite {
  animation: gugu-deskpet-peek 900ms cubic-bezier(.21, .65, .24, 1);
}

.gugu-deskpet.pose-carry .gugu-deskpet-sprite {
  animation: gugu-deskpet-carry 950ms ease-in-out;
}

.gugu-deskpet.pose-pet .gugu-deskpet-sprite {
  animation: gugu-deskpet-pet 820ms ease-in-out;
}

.gugu-deskpet.pose-chase .gugu-deskpet-stage {
  transition: transform 90ms linear;
}

.gugu-deskpet.pose-return .gugu-deskpet-sprite {
  animation: gugu-deskpet-return 900ms ease;
}

.gugu-home-drop {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, max-width 220ms ease;
}

.gugu-home-drop:hover {
  transform: translateY(-2px);
}

.gugu-home-drop-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.gugu-home-drop.is-expanded {
  max-width: min(520px, 94vw);
  box-shadow: var(--gugu-shadow-strong);
}

.gugu-home-drop.is-expanded .gugu-home-drop-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

@keyframes gugu-deskpet-mouth-talk {
  0% { width: 12px; height: 6px; }
  100% { width: 16px; height: 13px; }
}

@keyframes gugu-deskpet-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes gugu-deskpet-think {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -3px, 0) rotate(-4deg); }
}

@keyframes gugu-deskpet-sleep {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(4px) rotate(4deg); }
}

@keyframes gugu-deskpet-star {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  50% { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.8); }
}

@keyframes gugu-deskpet-roll {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  45% { transform: translate3d(16px, -8px, 0) rotate(145deg); }
  100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

@keyframes gugu-deskpet-parkour {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  28% { transform: translate3d(18px, -18px, 0) scale(1.04); }
  55% { transform: translate3d(40px, -4px, 0) scale(0.98); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes gugu-deskpet-wipe {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  30% { transform: translate3d(20px, -6px, 0) rotate(10deg); }
  60% { transform: translate3d(-14px, 0, 0) rotate(-8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes gugu-deskpet-laugh {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-4deg); }
  75% { transform: translateX(5px) rotate(4deg); }
}

@keyframes gugu-deskpet-peek {
  0% { transform: translate3d(-6px, 12px, 0) scale(0.88); opacity: 0.6; }
  50% { transform: translate3d(0, -2px, 0) scale(1); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes gugu-deskpet-carry {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-6deg); }
}

@keyframes gugu-deskpet-pet {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-8deg); }
}

@keyframes gugu-deskpet-return {
  0% { transform: translateY(-12px) scale(0.9); }
  55% { transform: translateY(0) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes gugu-deskpet-crush-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  24% {
    opacity: 0.95;
    transform: translate3d(0, -4px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(1.16);
  }
}

@media (max-width: 960px) {
  .gugu-deskpet {
    width: 212px;
    height: 152px;
  }

  .gugu-deskpet-bubble {
    left: 66px;
    width: min(156px, calc(100vw - 112px));
    min-height: 52px;
    padding: 14px 16px 12px;
  }

  .gugu-deskpet-sprite {
    width: 98px;
    height: 122px;
  }

  .gugu-deskpet-head {
    left: 16px;
    width: 64px;
    height: 58px;
  }

  .gugu-deskpet-body {
    left: 26px;
    width: 46px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .gugu-deskpet {
    width: 188px;
    height: 142px;
  }

  .gugu-deskpet.is-snapped {
    width: 112px;
    height: 78px;
  }

  .gugu-deskpet.is-minimized {
    top: var(--gugu-dock-top, 10px);
    left: var(--gugu-dock-left, calc(100vw - 32px));
  }

  .gugu-deskpet-bubble {
    left: 60px;
    width: min(138px, calc(100vw - 94px));
    min-height: 48px;
    padding: 12px 14px 10px;
    border-radius: 20px;
  }

  .gugu-deskpet-bubble-text {
    font-size: 12px;
  }

  .gugu-deskpet.is-snapped .gugu-deskpet-bubble {
    left: 42px;
    width: min(144px, calc(100vw - 70px));
    padding: 10px 12px 8px;
  }

  .gugu-deskpet-minimize {
    top: 6px;
    right: 8px;
    font-size: 10px;
  }

  .gugu-deskpet-sprite {
    width: 88px;
    height: 112px;
  }

  .gugu-deskpet.is-snapped .gugu-deskpet-sprite {
    left: 2px;
    bottom: -10px;
    width: 78px;
    height: 84px;
  }

  .gugu-deskpet-head {
    top: 10px;
    left: 16px;
    width: 56px;
    height: 52px;
  }

  .gugu-deskpet-body {
    top: 58px;
    left: 24px;
    width: 40px;
    height: 36px;
  }

  .gugu-deskpet-foot.left {
    left: 20px;
  }

  .gugu-deskpet-foot.right {
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gugu-deskpet *,
  .gugu-home-drop {
    animation: none !important;
    transition: none !important;
  }
}

.gugu-deskpet-sprite {
  left: 2px;
  bottom: -2px;
  width: 126px;
  height: 144px;
}

.gugu-deskpet-figure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gugu-deskpet-figure-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center bottom;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 180ms ease;
}

.gugu-deskpet.is-snapped .gugu-deskpet-figure-img {
  clip-path: none;
  object-position: center bottom;
  transform: none;
}

.gugu-deskpet.is-dragging .gugu-deskpet-sprite {
  cursor: grabbing;
}

.gugu-deskpet.is-dragging {
  filter: drop-shadow(0 14px 28px rgba(23, 29, 26, 0.14));
}

.gugu-deskpet.is-dragging .gugu-deskpet-stage {
  transform: translate3d(var(--gugu-chase-x, 0px), var(--gugu-chase-y, 0px), 0) scale(1.045);
}

.gugu-deskpet-figure-img[data-pet-key="cry"] {
  transform: translate3d(0, 5px, 0) scale(0.9);
}

.gugu-deskpet-figure-img[data-pet-key="peek"] {
  transform: translate3d(-6px, 5px, 0) scale(0.84);
}

.gugu-deskpet.is-snapped .gugu-deskpet-figure-img[data-pet-key="peek"] {
  transform: translate3d(-6px, 5px, 0) scale(0.84);
}

.gugu-deskpet.is-star-boosted {
  --gugu-pet-scale: 1.08;
}

.gugu-link-star-drop {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  z-index: 44;
  pointer-events: none;
  background: #ffd75a;
  clip-path: polygon(50% 0%, 62% 34%, 100% 38%, 72% 58%, 82% 100%, 50% 76%, 18% 100%, 28% 58%, 0% 38%, 38% 34%);
  border: 1.8px solid rgba(37, 43, 38, 0.88);
  filter: drop-shadow(0 6px 12px rgba(31, 36, 33, 0.18));
}

.gugu-deskpet-stage,
.gugu-deskpet-sprite,
.gugu-deskpet-figure-img {
  touch-action: none;
}

.gugu-deskpet-carry {
  left: 72px;
  top: 84px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.74);
}

body[data-theme="dark"] .gugu-deskpet-carry {
  background: rgba(20, 25, 35, 0.84);
}

.gugu-deskpet.is-speaking .gugu-deskpet-figure-img {
  animation: gugu-deskpet-bob 560ms ease-in-out infinite;
}

.gugu-deskpet.pose-think .gugu-deskpet-figure-img {
  animation: gugu-deskpet-think 980ms ease-in-out infinite;
}

.gugu-deskpet.pose-sleep .gugu-deskpet-figure-img {
  animation: gugu-deskpet-sleep 1800ms ease-in-out infinite;
}

.gugu-deskpet.pose-roll .gugu-deskpet-figure-img {
  animation: gugu-deskpet-roll 1100ms cubic-bezier(.44, .03, .56, .97);
}

.gugu-deskpet.pose-parkour .gugu-deskpet-figure-img {
  animation: gugu-deskpet-parkour 1300ms cubic-bezier(.32, .72, .16, 1);
}

.gugu-deskpet.pose-wipe .gugu-deskpet-figure-img {
  animation: gugu-deskpet-wipe 940ms ease-in-out;
}

.gugu-deskpet.pose-laugh .gugu-deskpet-figure-img {
  animation: gugu-deskpet-laugh 700ms ease-in-out 2;
}

.gugu-deskpet.pose-peek .gugu-deskpet-figure-img {
  animation: gugu-deskpet-peek 900ms cubic-bezier(.21, .65, .24, 1);
}

.gugu-deskpet.pose-carry .gugu-deskpet-figure-img {
  animation: gugu-deskpet-carry 950ms ease-in-out;
}

.gugu-deskpet.pose-pet .gugu-deskpet-figure-img {
  animation: gugu-deskpet-pet 820ms ease-in-out;
}

.gugu-deskpet.pose-yawn .gugu-deskpet-figure-img {
  animation: gugu-deskpet-yawn 1400ms ease-in-out;
}

.gugu-deskpet.pose-flatten .gugu-deskpet-figure-img {
  animation: gugu-deskpet-flatten 1180ms cubic-bezier(.22, .88, .26, 1);
  transform-origin: center bottom;
}

.gugu-deskpet.pose-return .gugu-deskpet-figure-img {
  animation: gugu-deskpet-return 980ms cubic-bezier(.2, .82, .24, 1);
}

@keyframes gugu-bubble-heart {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.82;
  }
  100% {
    transform: translate3d(0, -4px, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes gugu-deskpet-yawn {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  22% {
    transform: translate3d(0, 4px, 0) scale(0.97, 1.03);
  }
  54% {
    transform: translate3d(0, 7px, 0) scale(1.03, 0.96);
  }
  78% {
    transform: translate3d(0, 2px, 0) scale(0.99, 1.01);
  }
}

@keyframes gugu-deskpet-flatten {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  18% {
    transform: translate3d(0, 8px, 0) scale(1.08, 0.84);
  }
  42% {
    transform: translate3d(0, 16px, 0) scale(1.28, 0.58);
  }
  62% {
    transform: translate3d(0, -5px, 0) scale(0.9, 1.1);
  }
  78% {
    transform: translate3d(0, 2px, 0) scale(1.06, 0.94);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 960px) {
  .gugu-deskpet-sprite {
    width: 112px;
    height: 130px;
  }

  .gugu-deskpet-carry {
    left: 64px;
    top: 76px;
  }
}

@media (max-width: 640px) {
  .gugu-deskpet-sprite {
    width: 96px;
    height: 112px;
  }

  .gugu-deskpet-carry {
    left: 56px;
    top: 68px;
    width: 28px;
    height: 28px;
  }

  .gugu-deskpet-dock-img {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 640px) {
  .gugu-search-form {
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    padding: 1px 7px 1px 12px !important;
  }

  .gugu-search-form input,
  .gugu-search-placeholder {
    font-size: 13px !important;
  }

  .gugu-search-form input {
    height: 24px !important;
    min-height: 24px !important;
    line-height: 24px !important;
  }

  .gugu-search-placeholder {
    left: 12px !important;
    right: 42px !important;
    height: 24px !important;
    line-height: 24px !important;
  }

  .gugu-search-submit {
    width: 24px !important;
    height: 24px !important;
  }

  .gugu-search-submit img {
    width: 14px !important;
    height: 14px !important;
  }

  .gugu-deskpet-bubble {
    left: 56px;
    width: min(128px, calc(100vw - 88px));
    min-height: 44px;
    padding: 10px 12px 9px;
  }

  .gugu-deskpet-bubble-text {
    font-size: 11px;
  }

  .gugu-home-drop,
  .gugu-home-choice,
  .gugu-home-reward {
    width: min(var(--gugu-float-width, 198px), calc(100vw - 18px));
    padding: 12px 12px 11px;
    border-radius: 18px;
  }

  .gugu-home-drop,
  .gugu-home-reward {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .gugu-home-drop-image,
  .gugu-home-reward-image {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .gugu-home-choice-text,
  .gugu-home-drop-text,
  .gugu-home-reward-text {
    font-size: 12px;
    line-height: 1.55;
  }

  .gugu-home-choice-actions {
    gap: 8px;
  }

  .gugu-home-choice-button {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 14px;
    font-size: 12px;
  }

  .gugu-link-star-drop {
    width: 14px;
    height: 14px;
  }
}
