: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: 6px;
    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-giggle .gugu-deskpet-figure-img {
  animation: gugu-deskpet-giggle 820ms 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-sob .gugu-deskpet-figure-img {
  animation: gugu-deskpet-sob 1180ms ease-in-out;
  transform-origin: center bottom;
}

.gugu-deskpet.pose-cute .gugu-deskpet-figure-img {
  animation: gugu-deskpet-cute 1120ms cubic-bezier(.28, .82, .22, 1);
  transform-origin: center bottom;
}

.gugu-deskpet.pose-bonk .gugu-deskpet-figure-img {
  animation: gugu-deskpet-bonk 920ms cubic-bezier(.24, .84, .28, 1);
  transform-origin: center center;
}

.gugu-deskpet.pose-joy .gugu-deskpet-figure-img {
  animation: gugu-deskpet-joy 980ms cubic-bezier(.28, .82, .24, 1);
  transform-origin: center bottom;
}

.gugu-deskpet.pose-gloom .gugu-deskpet-figure-img {
  animation: gugu-deskpet-gloom 1180ms ease-in-out;
  transform-origin: center bottom;
}

.gugu-deskpet.pose-sideeye .gugu-deskpet-figure-img {
  animation: gugu-deskpet-sideeye 860ms ease-in-out;
  transform-origin: center bottom;
}

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

.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);
  }
}

@keyframes gugu-deskpet-giggle {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate3d(-2px, -4px, 0) rotate(-3deg) scale(1.03);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(0deg) scale(1.05);
  }
  75% {
    transform: translate3d(2px, -4px, 0) rotate(3deg) scale(1.03);
  }
}

@keyframes gugu-deskpet-sob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  20% {
    transform: translate3d(-3px, 1px, 0) rotate(-2deg) scale(1.01, 0.99);
  }
  40% {
    transform: translate3d(3px, 0, 0) rotate(2deg) scale(0.99, 1.01);
  }
  60% {
    transform: translate3d(-2px, 2px, 0) rotate(-1.6deg);
  }
  82% {
    transform: translate3d(2px, -1px, 0) rotate(1.4deg);
  }
}

@keyframes gugu-deskpet-cute {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  28% {
    transform: translate3d(-3px, -5px, 0) rotate(-5deg) scale(1.05);
  }
  58% {
    transform: translate3d(3px, -7px, 0) rotate(4deg) scale(1.07);
  }
  78% {
    transform: translate3d(0, -2px, 0) rotate(0deg) scale(1.02);
  }
}

@keyframes gugu-deskpet-bonk {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  16% {
    transform: translate3d(2px, 5px, 0) rotate(5deg) scale(0.98, 1.03);
  }
  42% {
    transform: translate3d(-5px, -2px, 0) rotate(-6deg) scale(1.04, 0.97);
  }
  70% {
    transform: translate3d(2px, 1px, 0) rotate(2deg) scale(1.01);
  }
}

@keyframes gugu-deskpet-joy {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  24% {
    transform: translate3d(0, -10px, 0) scale(1.05);
  }
  48% {
    transform: translate3d(0, -2px, 0) scale(0.98, 1.03);
  }
  72% {
    transform: translate3d(0, -7px, 0) scale(1.03);
  }
}

@keyframes gugu-deskpet-gloom {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  30% {
    transform: translate3d(0, 7px, 0) rotate(-2deg) scale(0.98, 1.03);
  }
  66% {
    transform: translate3d(-2px, 10px, 0) rotate(-3deg) scale(0.97, 1.04);
  }
}

@keyframes gugu-deskpet-sideeye {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  34% {
    transform: translate3d(6px, 0, 0) rotate(-2deg) scale(1.02);
  }
  68% {
    transform: translate3d(4px, -2px, 0) rotate(-1deg) scale(1.01);
  }
}

@keyframes gugu-deskpet-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  24% {
    transform: translate3d(-8px, 12px, 0) rotate(-12deg) scale(1.04, 0.96);
  }
  48% {
    transform: translate3d(6px, 20px, 0) rotate(10deg) scale(1.06, 0.92);
  }
  68% {
    transform: translate3d(-3px, 8px, 0) rotate(-5deg) scale(0.98, 1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) 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;
  }
}

/* Anime homepage refresh */
body.gugu-home-body {
  --gugu-text: #271c3a;
  --gugu-subtle: rgba(39, 28, 58, 0.72);
  --gugu-line: rgba(255, 255, 255, 0.42);
  --gugu-line-strong: rgba(255, 255, 255, 0.7);
  --gugu-panel: rgba(255, 250, 255, 0.64);
  --gugu-panel-strong: rgba(255, 255, 255, 0.82);
  --gugu-soft: rgba(255, 255, 255, 0.52);
  --gugu-surface-soft: rgba(255, 250, 255, 0.48);
  --gugu-surface-card: rgba(255, 255, 255, 0.74);
  --gugu-scribble: rgba(255, 255, 255, 0.48);
  --gugu-search-shadow: 0 24px 70px rgba(63, 86, 153, 0.2), 0 10px 28px rgba(255, 147, 188, 0.12);
  --gugu-search-shadow-strong: 0 30px 86px rgba(63, 86, 153, 0.26), 0 12px 34px rgba(255, 147, 188, 0.18);
  min-height: 100vh;
  color: var(--gugu-text);
  background:
    linear-gradient(90deg, rgba(255, 247, 252, 0.58) 0%, rgba(255, 247, 252, 0.42) 30%, rgba(255, 247, 252, 0.04) 58%, rgba(255, 247, 252, 0) 100%),
    linear-gradient(180deg, rgba(25, 26, 75, 0.06) 0%, rgba(255, 208, 222, 0.06) 46%, rgba(255, 251, 242, 0.34) 100%),
    url("/assets/gugu-anime-hero.png") center center / cover no-repeat fixed,
    #f8f0ff;
}

body.gugu-home-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 244, 219, 0.34)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 58px);
  mix-blend-mode: soft-light;
}

body.gugu-home-body[data-theme="dark"] {
  --gugu-text: #fbf7ff;
  --gugu-subtle: rgba(251, 247, 255, 0.72);
  --gugu-panel: rgba(19, 17, 42, 0.62);
  --gugu-panel-strong: rgba(26, 24, 54, 0.8);
  --gugu-soft: rgba(25, 28, 58, 0.62);
  --gugu-surface-soft: rgba(23, 23, 55, 0.54);
  --gugu-surface-card: rgba(36, 34, 75, 0.72);
  background:
    linear-gradient(90deg, rgba(11, 12, 33, 0.68) 0%, rgba(18, 17, 48, 0.48) 34%, rgba(18, 17, 48, 0.1) 62%, rgba(18, 17, 48, 0) 100%),
    linear-gradient(180deg, rgba(10, 14, 39, 0.18) 0%, rgba(21, 17, 45, 0.38) 100%),
    url("/assets/gugu-anime-hero.png") center center / cover no-repeat fixed,
    #11102a;
}

.gugu-home-shell {
  width: min(1440px, calc(100vw - 48px));
}

.gugu-home-wrap {
  min-height: 100vh;
  padding: 24px 42px 44px;
}

.gugu-home-topbar {
  position: relative;
  min-height: 56px;
  padding: 10px 12px 10px 70px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 48px rgba(48, 60, 122, 0.12);
  backdrop-filter: blur(20px) saturate(1.2);
}

.gugu-home-topbar::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255, 211, 236, 0.38)),
    url("/assets/gugu-deskpet-icon.png") center 42% / 142% auto no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 10px 24px rgba(255, 137, 181, 0.2),
    0 0 0 1px rgba(255,255,255,0.54);
  transform: translateY(-50%);
  pointer-events: none;
}

body[data-theme="dark"] .gugu-home-topbar {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 43, 0.42);
}

.gugu-home-audio-toggle,
.gugu-home-nav-icon,
.gugu-home-theme-toggle,
.gugu-home-easter-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255, 232, 247, 0.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 8px 18px rgba(74, 64, 126, 0.1);
}

.gugu-home-audio-toggle:hover,
.gugu-home-nav-icon:hover,
.gugu-home-theme-toggle:hover,
.gugu-home-easter-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
}

.gugu-whisper-text {
  color: var(--gugu-subtle);
  text-shadow: 0 1px 10px rgba(255,255,255,0.3);
}

.gugu-home-hero {
  width: min(760px, 58vw);
  min-height: 360px;
  align-items: flex-start;
  justify-content: center;
  margin: clamp(54px, 10vh, 104px) 0 0;
}

.gugu-home-brand {
  margin: 0 0 24px;
  text-align: left;
}

.gugu-home-brand h1 {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  color: #fff8ff;
  -webkit-text-stroke: 1px rgba(116, 78, 155, 0.26);
  text-shadow:
    0 2px 0 rgba(255, 151, 192, 0.72),
    0 8px 24px rgba(69, 67, 151, 0.22),
    0 18px 54px rgba(255, 190, 114, 0.2);
}

body[data-theme="dark"] .gugu-home-brand h1 {
  color: #fffaff;
  text-shadow:
    0 2px 0 rgba(255, 151, 192, 0.54),
    0 12px 32px rgba(100, 169, 255, 0.28);
}

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

.gugu-search-form {
  min-height: 58px !important;
  height: 58px !important;
  max-height: 58px !important;
  padding: 5px 9px 5px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255, 247, 254, 0.62));
  box-shadow: var(--gugu-search-shadow);
  backdrop-filter: blur(22px) saturate(1.25);
}

.gugu-search-form:hover,
.gugu-search-form:focus-within {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255, 247, 254, 0.78));
  box-shadow: var(--gugu-search-shadow-strong);
  transform: translateY(-2px);
}

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

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

.gugu-search-placeholder {
  left: 22px !important;
  right: 62px !important;
  height: 38px !important;
  line-height: 38px !important;
  color: rgba(62, 49, 86, 0.56);
}

.gugu-search-submit {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8ab3, #ffd36e 52%, #76dcff);
  box-shadow: 0 12px 24px rgba(255, 126, 174, 0.26);
}

.gugu-search-submit img {
  filter: invert(1) brightness(2.8) drop-shadow(0 1px 4px rgba(77, 43, 100, 0.28));
}

body[data-theme="dark"] .gugu-search-submit img {
  filter: invert(1) brightness(2.8) drop-shadow(0 1px 4px rgba(77, 43, 100, 0.28));
}

.gugu-home-links,
.gugu-home-events {
  width: min(760px, 58vw);
  margin-left: 0;
  margin-right: auto;
}

.gugu-home-links {
  margin-top: 34px;
  gap: 16px;
}

.gugu-link-card,
.gugu-home-choice,
.gugu-home-reward,
.gugu-home-drop {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255, 247, 254, 0.36));
  box-shadow: 0 18px 46px rgba(63, 72, 140, 0.13);
  backdrop-filter: blur(20px) saturate(1.2);
}

.gugu-link-card::before,
.gugu-home-choice::before,
.gugu-home-reward::before,
.gugu-home-drop::before {
  display: none;
}

.gugu-link-card {
  padding: 17px;
}

.gugu-link-card h2 {
  color: rgba(56, 42, 82, 0.76);
  font-weight: 800;
}

.gugu-link-pill {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
}

.gugu-link-pill:hover {
  transform: translateY(-2px) scale(1.01);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 26px rgba(74, 70, 145, 0.16);
}

.gugu-link-pill img {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(65, 54, 118, 0.12);
}

.gugu-link-pill span {
  font-weight: 700;
  color: rgba(38, 30, 58, 0.86);
}

body[data-theme="dark"] .gugu-link-card,
body[data-theme="dark"] .gugu-home-choice,
body[data-theme="dark"] .gugu-home-reward,
body[data-theme="dark"] .gugu-home-drop {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(34, 33, 72, 0.68), rgba(19, 20, 48, 0.48));
}

body[data-theme="dark"] .gugu-link-card h2,
body[data-theme="dark"] .gugu-link-pill span {
  color: rgba(251, 247, 255, 0.86);
}

body[data-theme="dark"] .gugu-link-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.gugu-deskpet {
  width: 272px;
  height: 190px;
  filter: drop-shadow(0 18px 28px rgba(58, 52, 116, 0.18));
}

.gugu-deskpet.is-snapped {
  width: 272px;
  height: 190px;
}

.gugu-deskpet-sprite {
  width: 138px;
  height: 162px;
  filter: drop-shadow(0 16px 24px rgba(73, 60, 126, 0.22));
}

.gugu-deskpet.is-snapped .gugu-deskpet-sprite {
  width: 150px;
  height: 174px;
}

.gugu-deskpet-dock {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 10px 22px rgba(75, 60, 125, 0.18);
}

.gugu-deskpet-dock-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  object-position: center 35%;
}

.gugu-deskpet-bubble {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 250, 255, 0.82);
  box-shadow: 0 18px 42px rgba(80, 68, 132, 0.14);
  backdrop-filter: blur(18px);
}

.gugu-deskpet-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.54);
  border-bottom: 1px solid rgba(255, 255, 255, 0.54);
  transform: rotate(45deg);
}

.gugu-deskpet-bubble-text {
  color: rgba(44, 35, 64, 0.86);
  font-weight: 700;
}

.gugu-link-star-drop {
  filter: drop-shadow(0 0 10px rgba(255, 221, 121, 0.72));
}

@media (max-width: 960px) {
  body.gugu-home-body,
  body.gugu-home-body[data-theme="dark"] {
    background-position: 58% center;
    background-attachment: scroll;
  }

  .gugu-home-shell {
    width: min(100vw - 24px, 760px);
  }

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

  .gugu-home-topbar {
    border-radius: 18px;
    padding-left: 62px;
  }

  .gugu-home-topbar::before {
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .gugu-home-hero,
  .gugu-home-links,
  .gugu-home-events {
    width: 100%;
  }

  .gugu-home-hero {
    min-height: 320px;
    margin-top: 52px;
  }

  .gugu-home-brand h1 {
    font-size: clamp(48px, 13vw, 74px);
  }
}

@media (max-width: 640px) {
  body.gugu-home-body,
  body.gugu-home-body[data-theme="dark"] {
    background:
      linear-gradient(180deg, rgba(255, 249, 253, 0.72) 0%, rgba(255, 249, 253, 0.42) 44%, rgba(255, 249, 253, 0.66) 100%),
      url("/assets/gugu-anime-hero.png") 62% top / auto 52vh no-repeat,
      #f8f0ff;
  }

  body.gugu-home-body[data-theme="dark"] {
    background:
      linear-gradient(180deg, rgba(16, 16, 44, 0.78) 0%, rgba(16, 16, 44, 0.5) 44%, rgba(16, 16, 44, 0.72) 100%),
      url("/assets/gugu-anime-hero.png") 62% top / auto 52vh no-repeat,
      #11102a;
  }

  .gugu-home-topbar {
    align-items: flex-start;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 10px 10px 58px;
  }

  .gugu-home-topbar-main {
    order: 0;
    width: 100%;
    min-width: 0;
    min-height: 34px;
  }

  .gugu-whisper-text {
    display: none;
  }

  .gugu-home-actions {
    order: 0;
    min-width: 0;
    width: 100%;
    gap: 6px;
    display: grid;
    grid-template-columns: max-content repeat(7, 28px);
    justify-content: start;
    align-items: center;
    overflow: visible;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .gugu-home-actions::-webkit-scrollbar {
    display: none;
  }

  .gugu-home-audio-toggle,
  .gugu-home-nav-icon,
  .gugu-home-theme-toggle,
  .gugu-home-easter-toggle {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

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

  .gugu-heartbar {
    gap: 4px;
    font-size: 12px;
  }

  .gugu-home-actions a.gugu-home-nav-icon:nth-last-of-type(-n+2) {
    display: none;
  }

  .gugu-home-hero {
    min-height: 280px;
    margin-top: 42px;
  }

  .gugu-search-form {
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    padding-left: 16px !important;
    border-radius: 18px;
  }

  .gugu-search-placeholder {
    left: 16px !important;
  }

  .gugu-search-submit {
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px;
  }

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

/* Anime pet overlays, notes, and rewards */
.gugu-deskpet-bubble {
  width: min(210px, calc(100vw - 128px));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px 22px 22px 22px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 224, 243, 0.64) 48%, rgba(205, 235, 255, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 16px 38px rgba(90, 70, 140, 0.18),
    0 0 0 1px rgba(255,255,255,0.28);
  color: rgba(42, 33, 64, 0.9);
}

.gugu-deskpet-bubble::before {
  content: "";
  display: block;
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255, 224, 243, 0.66));
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
}

.gugu-deskpet-bubble::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffe27a, #ff8bb7 58%, #77ddff);
  box-shadow: 0 0 14px rgba(255, 196, 111, 0.62);
  transform: rotate(45deg);
}

.gugu-deskpet.has-bubble-heart .gugu-deskpet-bubble::after {
  content: "♥";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.gugu-deskpet.is-thought-bubble .gugu-deskpet-bubble::before {
  left: 22px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: none;
}

.gugu-deskpet.is-drop-bubble .gugu-deskpet-bubble {
  border-style: solid;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 226, 122, 0.54), transparent 26%),
    linear-gradient(145deg, rgba(255, 249, 255, 0.9), rgba(224, 242, 255, 0.62));
}

.gugu-home-drop,
.gugu-home-reward,
.gugu-home-choice {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 224, 244, 0.46) 52%, rgba(210, 238, 255, 0.46));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 18px 44px rgba(70, 61, 128, 0.18);
}

.gugu-home-drop::after,
.gugu-home-reward::after,
.gugu-home-choice::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 139, 181, 0.26), rgba(118, 220, 255, 0.22)),
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.72), transparent 34%);
  transform: rotate(18deg);
  pointer-events: none;
  z-index: -1;
}

.gugu-home-drop-image,
.gugu-home-reward-image {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(83, 65, 134, 0.22));
}

.gugu-home-drop-kicker,
.gugu-home-reward-kicker,
.gugu-home-choice-title {
  color: rgba(73, 52, 110, 0.78);
  font-weight: 900;
  letter-spacing: 0;
}

.gugu-home-drop-text,
.gugu-home-reward-text,
.gugu-home-choice-text {
  color: rgba(44, 35, 64, 0.88);
  font-weight: 700;
}

.gugu-home-choice-button {
  border: 1px solid rgba(255,255,255,0.56);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255, 230, 246, 0.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 10px 20px rgba(80, 66, 135, 0.12);
  color: rgba(52, 40, 78, 0.88);
}

.gugu-home-choice-button-positive {
  background: linear-gradient(135deg, rgba(255, 139, 181, 0.82), rgba(255, 211, 110, 0.72));
  color: #fff;
  text-shadow: 0 1px 8px rgba(89, 44, 85, 0.28);
}

body[data-theme="dark"] .gugu-deskpet-bubble,
body[data-theme="dark"] .gugu-home-drop,
body[data-theme="dark"] .gugu-home-reward,
body[data-theme="dark"] .gugu-home-choice {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(39, 35, 82, 0.84), rgba(24, 24, 58, 0.72));
}

body[data-theme="dark"] .gugu-deskpet-bubble-text,
body[data-theme="dark"] .gugu-home-drop-text,
body[data-theme="dark"] .gugu-home-reward-text,
body[data-theme="dark"] .gugu-home-choice-text,
body[data-theme="dark"] .gugu-home-drop-kicker,
body[data-theme="dark"] .gugu-home-reward-kicker,
body[data-theme="dark"] .gugu-home-choice-title {
  color: rgba(251, 247, 255, 0.9);
}

@media (max-width: 640px) {
  .gugu-deskpet-bubble {
    width: min(220px, calc(100vw - 112px));
    top: 52px;
    left: 78px;
  }

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

  .gugu-home-drop-image,
  .gugu-home-reward-image {
    width: 62px;
    height: 62px;
  }
}

/* Anime toolbar icon refresh */
.gugu-home-topbar {
  padding-left: 12px;
}

.gugu-home-topbar::before {
  display: none;
  content: none;
}

.gugu-home-audio-toggle,
.gugu-home-nav-icon,
.gugu-home-theme-toggle,
.gugu-home-easter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.gugu-home-audio-toggle::before,
.gugu-home-nav-icon::before,
.gugu-home-theme-toggle::before,
.gugu-home-easter-toggle::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 5px 9px rgba(85, 70, 136, 0.18));
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.gugu-home-audio-toggle:hover::before,
.gugu-home-nav-icon:hover::before,
.gugu-home-theme-toggle:hover::before,
.gugu-home-easter-toggle:hover::before {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 8px 12px rgba(255, 137, 181, 0.26));
}

.gugu-home-audio-toggle::before {
  background-image: url("/assets/gugu-ui-audio.png");
}

.gugu-home-audio-toggle[data-enabled="1"]::before {
  background-image: url("/assets/gugu-ui-audio-on.png");
}

.gugu-home-theme-toggle::before {
  background-image: url("/assets/gugu-ui-theme.png");
}

.gugu-home-easter-toggle::before {
  background-image: url("/assets/gugu-ui-sparkle.png");
}

  .gugu-home-easter-toggle[aria-pressed="false"]::before {
  opacity: 0.58;
  filter: grayscale(0.12) drop-shadow(0 4px 8px rgba(85, 70, 136, 0.12));
}

.gugu-home-nav-icon[href="/sub"]::before {
  background-image: url("/assets/gugu-ui-switch.png");
}

.gugu-home-nav-icon[href="/drive"]::before {
  background-image: url("/assets/gugu-ui-folder.png");
}

.gugu-home-nav-icon[href*=":21443"]::before {
  background-image: url("/assets/gugu-ui-chat.png");
}

.gugu-home-nav-icon[href*=":22443"]::before {
  background-image: url("/assets/gugu-ui-cube.png");
}

.gugu-home-nav-icon[href*=":22643"]::before {
  background-image: url("/assets/gugu-ui-terminal.png");
}

.gugu-heartbar {
  color: #ff86b7;
  text-shadow: 0 2px 8px rgba(255, 137, 181, 0.28);
}

.gugu-heartbar .filled {
  color: #ff86b7;
}

.gugu-heartbar .empty {
  color: rgba(116, 100, 156, 0.24);
}

body[data-theme="dark"] .gugu-heartbar .filled {
  color: #ffc4e1;
}

body[data-theme="dark"] .gugu-heartbar .empty {
  color: rgba(247, 234, 255, 0.28);
}

.gugu-deskpet-dock {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255, 232, 247, 0.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 8px 18px rgba(74, 64, 126, 0.1);
}

.gugu-deskpet-dock-img {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.gugu-deskpet.is-minimized {
  width: 38px;
  height: 38px;
}

@media (max-width: 960px) {
  .gugu-home-topbar {
    padding-left: 12px;
  }
}

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

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

  .gugu-deskpet-dock {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .gugu-deskpet.is-minimized {
    width: 28px;
    height: 28px;
  }

  .gugu-deskpet-dock-img {
    width: 25px;
    height: 25px;
    border-radius: 9px;
  }
}

/* Anime affection hearts */
.gugu-heartbar {
  gap: 4px;
  min-height: 20px;
  color: transparent;
  text-shadow: none;
}

.gugu-heartbar span {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  overflow: hidden;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  text-indent: -999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 4px 7px rgba(255, 137, 181, 0.22));
}

.gugu-heartbar .filled {
  background-image: url("/assets/gugu-ui-heart-filled.png");
}

.gugu-heartbar .empty {
  background-image: url("/assets/gugu-ui-heart-empty.png");
  opacity: 0.72;
  filter: drop-shadow(0 3px 6px rgba(116, 100, 156, 0.13));
}

body[data-theme="dark"] .gugu-heartbar .filled {
  filter: drop-shadow(0 4px 8px rgba(255, 184, 222, 0.22));
}

body[data-theme="dark"] .gugu-heartbar .empty {
  opacity: 0.62;
  filter: drop-shadow(0 3px 7px rgba(185, 174, 255, 0.14));
}

.gugu-chat-header-actions-minimal .gugu-heartbar span {
  width: 17px;
  height: 17px;
}

@media (max-width: 640px) {
  .gugu-heartbar {
    gap: 2px;
    transform: none;
  }

  .gugu-heartbar span,
  .gugu-chat-header-actions-minimal .gugu-heartbar span {
    width: 13px;
    height: 13px;
  }
}

/* Anime search submit button */
.gugu-search-submit {
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/assets/gugu-ui-search-button.png") center / contain no-repeat !important;
  box-shadow: none !important;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(255, 137, 181, 0.24));
}

.gugu-search-submit:hover,
.gugu-search-form:hover .gugu-search-submit,
.gugu-search-form:focus-within .gugu-search-submit {
  background: url("/assets/gugu-ui-search-button.png") center / contain no-repeat !important;
  filter: drop-shadow(0 10px 18px rgba(255, 137, 181, 0.3));
}

.gugu-search-submit img {
  display: none !important;
}

body[data-theme="dark"] .gugu-search-submit,
body[data-theme="dark"] .gugu-search-submit:hover,
body[data-theme="dark"] .gugu-search-form:hover .gugu-search-submit,
body[data-theme="dark"] .gugu-search-form:focus-within .gugu-search-submit {
  background: url("/assets/gugu-ui-search-button.png") center / contain no-repeat !important;
  filter: drop-shadow(0 8px 16px rgba(185, 174, 255, 0.22));
}

body.gugu-home-body[data-theme="dark"] .gugu-search-form {
  border-color: rgba(236, 241, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(29, 28, 64, 0.92), rgba(18, 19, 47, 0.82)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 10px 28px rgba(95, 114, 210, 0.16);
}

body.gugu-home-body[data-theme="dark"] .gugu-search-form:hover,
body.gugu-home-body[data-theme="dark"] .gugu-search-form:focus-within {
  background:
    linear-gradient(135deg, rgba(39, 38, 82, 0.96), rgba(22, 23, 56, 0.9)) !important;
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.44), 0 12px 34px rgba(116, 136, 238, 0.22);
}

body.gugu-home-body[data-theme="dark"] .gugu-search-form input {
  color: #fffaff;
  -webkit-text-fill-color: #fffaff;
  caret-color: #ffd7ef;
}

body.gugu-home-body[data-theme="dark"] .gugu-search-form input::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  opacity: 0 !important;
}

body.gugu-home-body[data-theme="dark"] .gugu-search-form input::selection {
  color: #14122d;
  background: #ffd7ef;
}

body.gugu-home-body[data-theme="dark"] .gugu-search-placeholder {
  color: rgba(251, 247, 255, 0.66);
}

/* Anime chat page */
body.gugu-chat-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(92, 111, 183, 0.2), rgba(255, 210, 235, 0.18)),
    url("/assets/gugu-chat-bg-anime.png") center / cover fixed no-repeat,
    #dfe8ff;
}

body.gugu-chat-body[data-theme="dark"] {
  background:
    linear-gradient(180deg, rgba(30, 36, 78, 0.48), rgba(68, 42, 86, 0.34)),
    url("/assets/gugu-chat-bg-anime.png") center / cover fixed no-repeat,
    #141a38;
}

body.gugu-chat-body .gugu-page-shell.gugu-chat-shell {
  width: min(1460px, calc(100vw - 28px));
  height: calc(100vh - 28px);
  min-height: 620px;
  margin: 14px auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(222, 230, 255, 0.14));
  box-shadow: 0 24px 68px rgba(65, 78, 148, 0.2);
  backdrop-filter: blur(26px) saturate(1.18);
}

body.gugu-chat-body .gugu-chat-page-minimal,
body.gugu-chat-body .gugu-chat-main {
  height: 100%;
  min-height: 0;
  background: transparent;
}

body.gugu-chat-body .gugu-chat-header-minimal {
  min-height: 86px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.48), rgba(219, 231, 255, 0.34) 48%, rgba(255, 221, 244, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 12px 32px rgba(85, 96, 170, 0.08);
  backdrop-filter: blur(24px) saturate(1.2);
}

body.gugu-chat-body .gugu-chat-header-minimal::before {
  content: "";
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: url("/assets/gugu-chat-avatar-assistant.png") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 8px 18px rgba(111, 96, 174, 0.16);
}

body.gugu-chat-body .gugu-chat-thread-picker {
  flex: 1 1 auto;
}

body.gugu-chat-body .gugu-chat-thread-toggle {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 10px 22px rgba(88, 96, 166, 0.08);
  color: rgba(59, 61, 96, 0.92);
}

body.gugu-chat-body .gugu-chat-thread-toggle:hover {
  background: rgba(255, 255, 255, 0.52);
  color: rgba(48, 49, 83, 0.98);
}

body.gugu-chat-body .gugu-chat-thread-current {
  font-size: 19px;
  color: inherit;
}

body.gugu-chat-body .gugu-chat-header-actions-minimal {
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.gugu-chat-body .gugu-chat-top-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(236, 226, 255, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 8px 16px rgba(74, 64, 126, 0.1);
  color: transparent;
}

body.gugu-chat-body .gugu-chat-top-icon svg {
  display: none !important;
}

body.gugu-chat-body .gugu-chat-top-icon::before {
  content: "";
  width: 26px;
  height: 26px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 4px 8px rgba(95, 82, 154, 0.18));
}

body.gugu-chat-body #gugu-chat-theme-toggle::before {
  background-image: url("/assets/gugu-ui-theme.png");
}

body.gugu-chat-body #gugu-chat-audio-toggle::before {
  background-image: url("/assets/gugu-ui-audio.png");
}

body.gugu-chat-body #gugu-chat-audio-toggle[data-enabled="1"]::before {
  background-image: url("/assets/gugu-ui-audio-on.png");
}

body.gugu-chat-body a.gugu-chat-top-icon::before {
  background-image: url("/assets/gugu-ui-switch.png");
}

body.gugu-chat-body .gugu-chat-header-actions-minimal .gugu-heartbar {
  order: -1;
  gap: 3px;
  padding: 0 4px 0 0;
}

body.gugu-chat-body .gugu-chat-header-actions-minimal .gugu-heartbar span {
  width: 16px;
  height: 16px;
}

body.gugu-chat-body .gugu-chat-thread-menu {
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(236, 230, 255, 0.5));
  box-shadow: 0 18px 46px rgba(74, 64, 126, 0.16);
}

body.gugu-chat-body .gugu-chat-menu-new,
body.gugu-chat-body .gugu-chat-page-minimal .gugu-chat-thread {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(58, 59, 92, 0.94);
}

body.gugu-chat-body .gugu-chat-menu-new:hover,
body.gugu-chat-body .gugu-chat-page-minimal .gugu-chat-thread.active {
  border-color: rgba(255, 195, 226, 0.78);
  background: linear-gradient(135deg, rgba(255, 244, 253, 0.78), rgba(224, 236, 255, 0.64));
  box-shadow: 0 10px 26px rgba(255, 145, 194, 0.12);
}

body.gugu-chat-body .gugu-chat-scroll {
  padding: 26px 32px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(208, 220, 255, 0.06));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.42) transparent;
}

body.gugu-chat-body .gugu-chat-scroll::-webkit-scrollbar,
body.gugu-chat-body .gugu-chat-thread-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.gugu-chat-body .gugu-chat-scroll::-webkit-scrollbar-track,
body.gugu-chat-body .gugu-chat-thread-list::-webkit-scrollbar-track {
  background: transparent;
}

body.gugu-chat-body .gugu-chat-scroll::-webkit-scrollbar-thumb,
body.gugu-chat-body .gugu-chat-thread-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  background-clip: padding-box;
}

body.gugu-chat-body .gugu-chat-empty {
  align-items: center;
  justify-content: center;
}

body.gugu-chat-body .gugu-chat-empty[hidden] {
  display: none !important;
}

body.gugu-chat-body .gugu-chat-empty p,
body.gugu-chat-body .gugu-time-chip {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(70, 71, 108, 0.66);
  box-shadow: 0 8px 22px rgba(78, 82, 150, 0.08);
  backdrop-filter: blur(14px);
}

body.gugu-chat-body .gugu-chat-empty p {
  padding: 10px 18px;
  border-radius: 999px;
}

body.gugu-chat-body .gugu-msg-row {
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

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

body.gugu-chat-body .gugu-msg-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 10px 18px rgba(74, 64, 126, 0.14);
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -999px;
  overflow: hidden;
}

body.gugu-chat-body .gugu-msg-avatar.is-assistant {
  background-image: url("/assets/gugu-chat-avatar-assistant.png");
}

body.gugu-chat-body .gugu-msg-avatar.is-user {
  background-image: url("/assets/gugu-chat-avatar-user.png");
}

body.gugu-chat-body .gugu-msg-stack {
  max-width: min(72%, 780px);
  gap: 9px;
}

body.gugu-chat-body .gugu-bubble {
  min-width: 190px;
  min-height: 64px;
  padding: 18px 28px 18px 36px;
  border: 0;
  border-radius: 0;
  background: url("/assets/gugu-chat-bubble-assistant.png") center / 100% 100% no-repeat;
  color: rgba(66, 68, 103, 0.98);
  box-shadow: none;
  line-height: 1.72;
}

body.gugu-chat-body .gugu-msg-row.user .gugu-bubble {
  padding: 18px 36px 18px 28px;
  background: url("/assets/gugu-chat-bubble-user.png") center / 100% 100% no-repeat;
  color: rgba(74, 56, 94, 0.98);
}

body.gugu-chat-body .gugu-msg-row.user.blocked .gugu-bubble {
  color: rgba(108, 48, 74, 0.98);
  filter: saturate(0.86);
}

body.gugu-chat-body .gugu-msg-alert {
  background: linear-gradient(145deg, #ff8ab6, #ffcf74);
  box-shadow: 0 8px 16px rgba(255, 112, 156, 0.24);
}

body.gugu-chat-body .gugu-msg-attachment {
  border-color: rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(58, 59, 92, 0.94);
  box-shadow: 0 12px 28px rgba(78, 82, 150, 0.1);
  backdrop-filter: blur(18px);
}

body.gugu-chat-body .gugu-msg-row.user .gugu-msg-attachment {
  background: rgba(255, 229, 246, 0.56);
  border-color: rgba(255, 255, 255, 0.56);
}

body.gugu-chat-body .gugu-msg-attachment-icon {
  background: linear-gradient(145deg, rgba(190, 225, 255, 0.64), rgba(255, 213, 239, 0.56));
  color: rgba(77, 67, 122, 0.86);
}

body.gugu-chat-body .gugu-chat-composer-wrap {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.42), rgba(225, 235, 255, 0.28) 48%, rgba(255, 226, 246, 0.34));
  backdrop-filter: blur(22px) saturate(1.16);
}

body.gugu-chat-body .gugu-chat-attachment {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 8px 20px rgba(78, 82, 150, 0.08);
}

body.gugu-chat-body .gugu-chat-input-shell {
  min-height: 86px;
  grid-template-columns: 50px minmax(0, 1fr) 56px;
  gap: 10px;
  padding: 13px 12px 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 12px 34px rgba(74, 64, 126, 0.1);
}

body.gugu-chat-body .gugu-chat-input {
  min-height: 48px;
  max-height: 260px;
  color: rgba(50, 52, 83, 0.96);
}

body.gugu-chat-body .gugu-chat-input::placeholder {
  color: rgba(80, 78, 128, 0.44);
}

body.gugu-chat-body .gugu-chat-plus,
body.gugu-chat-body .gugu-chat-send {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  color: transparent;
  filter: drop-shadow(0 8px 14px rgba(255, 137, 181, 0.22));
  overflow: visible;
}

body.gugu-chat-body .gugu-chat-plus {
  background-image: url("/assets/gugu-chat-upload-button.png") !important;
}

body.gugu-chat-body .gugu-chat-send {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background-image: url("/assets/gugu-chat-send-button.png") !important;
}

body.gugu-chat-body .gugu-chat-plus svg,
body.gugu-chat-body .gugu-chat-send svg {
  display: none !important;
}

body.gugu-chat-body .gugu-chat-plus:hover,
body.gugu-chat-body .gugu-chat-send:hover {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 10px 18px rgba(255, 137, 181, 0.28));
}

body.gugu-chat-body .gugu-chat-plus:disabled,
body.gugu-chat-body .gugu-chat-send:disabled {
  opacity: 0.54;
  filter: grayscale(0.16) drop-shadow(0 6px 10px rgba(100, 96, 150, 0.14));
}

body.gugu-chat-body .gugu-chat-composer-hint {
  padding-left: 8px;
  color: rgba(70, 71, 108, 0.52);
}

body.gugu-chat-body[data-theme="dark"] .gugu-page-shell.gugu-chat-shell,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-main,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-page-minimal .gugu-chat-main {
  background:
    linear-gradient(145deg, rgba(32, 38, 72, 0.44), rgba(44, 34, 74, 0.28));
}

body.gugu-chat-body[data-theme="dark"] .gugu-chat-header-minimal,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-composer-wrap {
  background:
    linear-gradient(100deg, rgba(38, 45, 86, 0.52), rgba(48, 49, 92, 0.36) 48%, rgba(77, 48, 94, 0.38));
  border-color: rgba(255, 255, 255, 0.18);
}

body.gugu-chat-body[data-theme="dark"] .gugu-chat-thread-toggle,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-top-icon,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-input-shell,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-thread-menu {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.12);
}

body.gugu-chat-body[data-theme="dark"] .gugu-chat-header-actions-minimal {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.gugu-chat-body[data-theme="dark"] .gugu-chat-thread-current,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-input,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-attachment-name {
  color: rgba(249, 248, 255, 0.94);
}

body.gugu-chat-body[data-theme="dark"] .gugu-chat-input::placeholder,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-composer-hint,
body.gugu-chat-body[data-theme="dark"] .gugu-chat-empty p,
body.gugu-chat-body[data-theme="dark"] .gugu-time-chip {
  color: rgba(249, 248, 255, 0.62);
}

body.gugu-chat-body[data-theme="dark"] .gugu-bubble {
  background: url("/assets/gugu-chat-bubble-assistant-dark.png") center / 100% 100% no-repeat;
  color: rgba(248, 250, 255, 0.98);
  filter: none;
  text-shadow: 0 1px 3px rgba(4, 7, 22, 0.68);
}

body.gugu-chat-body[data-theme="dark"] .gugu-msg-row.user .gugu-bubble {
  background: url("/assets/gugu-chat-bubble-user-dark.png") center / 100% 100% no-repeat;
  color: rgba(255, 248, 253, 0.98);
}

@media (max-width: 960px) {
  body.gugu-chat-body {
    background-attachment: scroll;
  }

  body.gugu-chat-body .gugu-page-shell.gugu-chat-shell {
    width: calc(100vw - 16px);
    height: calc(100svh - 16px);
    min-height: 0;
    margin: 8px auto;
    border-radius: 22px;
  }

  body.gugu-chat-body .gugu-chat-header-minimal {
    min-height: 74px;
    padding: 10px 12px;
  }

  body.gugu-chat-body .gugu-chat-header-minimal::before {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 16px;
  }

  body.gugu-chat-body .gugu-chat-thread-toggle {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 16px;
  }

  body.gugu-chat-body .gugu-chat-thread-current {
    max-width: min(34vw, 180px);
    font-size: 16px;
  }

  body.gugu-chat-body .gugu-chat-header-actions-minimal {
    gap: 8px;
    padding: 0;
    border-radius: 0;
  }

  body.gugu-chat-body .gugu-chat-top-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 13px;
  }

  body.gugu-chat-body .gugu-chat-top-icon::before {
    width: 22px;
    height: 22px;
  }

  body.gugu-chat-body .gugu-chat-scroll {
    padding: 18px 16px 12px;
  }
}

@media (max-width: 640px) {
  body.gugu-chat-body .gugu-page-shell.gugu-chat-shell {
    width: 100%;
    height: 100svh;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  body.gugu-chat-body .gugu-chat-header-minimal {
    gap: 7px;
    padding: 8px 8px 7px;
  }

  body.gugu-chat-body .gugu-chat-header-minimal::before {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 13px;
  }

  body.gugu-chat-body .gugu-chat-thread-toggle {
    min-height: 36px;
    padding: 0 8px;
    gap: 4px;
  }

  body.gugu-chat-body .gugu-chat-thread-current {
    max-width: min(24vw, 112px);
    font-size: 14px;
  }

  body.gugu-chat-body .gugu-chat-header-actions-minimal {
    gap: 5px;
    padding: 0;
  }

  body.gugu-chat-body .gugu-chat-top-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 12px;
  }

  body.gugu-chat-body .gugu-chat-top-icon::before {
    width: 20px;
    height: 20px;
  }

  body.gugu-chat-body .gugu-chat-header-actions-minimal .gugu-heartbar {
    gap: 1px;
    padding: 0 2px;
  }

  body.gugu-chat-body .gugu-chat-header-actions-minimal .gugu-heartbar span {
    width: 11px;
    height: 11px;
  }

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

  body.gugu-chat-body .gugu-msg-row {
    gap: 8px;
    margin-bottom: 14px;
  }

  body.gugu-chat-body .gugu-msg-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 14px;
  }

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

  body.gugu-chat-body .gugu-bubble,
  body.gugu-chat-body .gugu-msg-row.user .gugu-bubble {
    min-width: 120px;
    min-height: 54px;
    padding: 15px 23px;
    line-height: 1.62;
  }

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

  body.gugu-chat-body .gugu-chat-input-shell {
    min-height: 70px;
    grid-template-columns: 42px minmax(0, 1fr) 46px;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 21px;
  }

  body.gugu-chat-body .gugu-chat-plus {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  body.gugu-chat-body .gugu-chat-send {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
}

/* Anime chat login */
body.gugu-chat-login-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(71, 87, 166, 0.08), rgba(255, 209, 236, 0.16)),
    url("/assets/gugu-chat-login-bg-anime.png") center / cover fixed no-repeat,
    #dfe8ff;
}

.gugu-chat-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}

.gugu-chat-login-card {
  position: relative;
  width: min(450px, calc(100vw - 32px));
  padding: 132px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(238, 232, 255, 0.46));
  box-shadow: 0 28px 72px rgba(64, 76, 150, 0.22);
  backdrop-filter: blur(26px) saturate(1.18);
}

.gugu-chat-login-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.gugu-chat-login-mascot {
  position: absolute;
  top: -112px;
  left: 50%;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
  background: url("/assets/gugu-chat-login-mascot.png") center / contain no-repeat;
  filter: drop-shadow(0 16px 28px rgba(100, 82, 158, 0.22));
  pointer-events: none;
}

.gugu-chat-login-copy {
  position: relative;
  text-align: center;
}

.gugu-chat-login-kicker,
.gugu-chat-login-copy p {
  margin: 0;
  color: rgba(85, 82, 132, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.gugu-chat-login-copy h1 {
  margin: 4px 0 6px;
  color: rgba(54, 56, 94, 0.96);
  font-size: 30px;
  line-height: 1.2;
}

.gugu-chat-login-error {
  margin: 18px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 169, 197, 0.72);
  border-radius: 16px;
  background: rgba(255, 234, 244, 0.68);
  color: rgba(142, 47, 86, 0.94);
  font-size: 13px;
  line-height: 1.6;
}

.gugu-chat-login-field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: rgba(70, 69, 112, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.gugu-chat-login-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  outline: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(43, 45, 76, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 10px 24px rgba(79, 84, 156, 0.08);
}

.gugu-chat-login-field input:focus {
  border-color: rgba(255, 171, 216, 0.82);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 178, 218, 0.18), 0 12px 28px rgba(79, 84, 156, 0.1);
}

.gugu-chat-login-submit {
  position: relative;
  width: 100%;
  min-height: 70px;
  margin-top: 22px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: url("/assets/gugu-chat-login-button.png") center / 100% 100% no-repeat;
  color: #ffffff;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(255, 137, 181, 0.26));
}

.gugu-chat-login-submit span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 0 24px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(96, 62, 132, 0.38);
}

.gugu-chat-login-submit:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 18px 30px rgba(255, 137, 181, 0.32));
}

@media (max-width: 640px) {
  body.gugu-chat-login-body {
    background-attachment: scroll;
  }

  .gugu-chat-login-screen {
    min-height: 100svh;
    padding: 112px 16px 24px;
    place-items: start center;
  }

  .gugu-chat-login-card {
    padding: 112px 18px 20px;
    border-radius: 24px;
  }

  .gugu-chat-login-mascot {
    top: -98px;
    width: 188px;
    height: 188px;
  }

  .gugu-chat-login-copy h1 {
    font-size: 25px;
  }

  .gugu-chat-login-field input {
    min-height: 52px;
  }

  .gugu-chat-login-submit,
  .gugu-chat-login-submit span {
    min-height: 64px;
  }
}

/* Mobile homepage toolbar repair */
@media (max-width: 640px) {
  .gugu-home-topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 10px;
  }

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

  .gugu-home-topbar-main .gugu-whisper-text {
    display: none;
  }

  .gugu-home-actions {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    display: flex;
    grid-template-columns: none;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gugu-home-actions > * {
    flex: 0 0 auto;
  }

  .gugu-home-actions a.gugu-home-nav-icon:nth-last-of-type(-n+2) {
    display: inline-flex;
  }

  .gugu-home-actions::-webkit-scrollbar {
    display: none;
  }
}

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

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

  .gugu-home-actions .gugu-heartbar {
    display: none;
  }

  .gugu-home-audio-toggle,
  .gugu-home-nav-icon,
  .gugu-home-theme-toggle,
  .gugu-home-easter-toggle {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

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