@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');
.play-body {
  font-family: 'Ma Shan Zheng', serif;
  background: linear-gradient(to bottom, hsl(220, 60%, 15%), hsl(220, 40%, 10%));
  color: hsl(60, 80%, 95%);
  font-size: 16px;
  --bg: hsl(220, 60%, 15%);
  --surface: hsl(220, 30%, 20%);
  --text: hsl(60, 80%, 95%);
  --accent: hsl(160, 60%, 50%);
  --border: hsl(160, 40%, 40%);
  --shadow: hsl(160, 60%, 30%);
}
.play-bubble-ai {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2em 1.5em;
  box-shadow: 0 4px 12px var(--shadow);
  position: relative;
  color: var(--text);
  max-width: 85%;
}
.play-bubble-ai::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="hsl(160, 60%, 50%)" d="M12 2L2 22h20z"/></svg>');
  filter: drop-shadow(0 2px 4px hsl(160, 60%, 30%));
}
.play-bubble-user {
  background: linear-gradient(to right, hsl(160, 60%, 30%), hsl(160, 50%, 40%));
  color: hsl(60, 80%, 95%);
  border-radius: 12px;
  padding: 1.2em 1.5em;
  box-shadow: 0 4px 8px hsl(160, 60%, 20%);
  max-width: 85%;
}
.play-avatar {
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px var(--shadow);
}
.play-avatar-ai {
  background: linear-gradient(135deg, hsl(220, 40%, 20%), hsl(160, 40%, 30%));
}
.play-avatar-user {
  background: linear-gradient(135deg, hsl(160, 60%, 30%), hsl(160, 50%, 40%));
}
.play-bubble-ai h1, .play-bubble-ai h2, .play-bubble-ai h3 {
  color: hsl(160, 60%, 70%);
  border-bottom: 1px solid hsl(160, 40%, 40%);
  padding-bottom: 0.3em;
}
.play-bubble-ai h1 {
  font-size: 1.8em;
}
.play-bubble-ai h2 {
  font-size: 1.5em;
}
.play-bubble-ai h3 {
  font-size: 1.3em;
}
.play-bubble-ai p {
  line-height: 1.8;
}
.play-bubble-ai strong {
  color: hsl(160, 60%, 70%);
  font-weight: bold;
}
.play-bubble-ai em {
  color: hsl(60, 80%, 85%);
  font-style: italic;
}
.play-bubble-ai blockquote {
  background: hsl(220, 30%, 25%);
  color: hsl(60, 80%, 90%);
  border-left: 4px solid hsl(160, 60%, 50%);
  padding: 0.8em 1em;
  margin: 1em 0;
  border-radius: 4px;
}
.play-bubble-ai code {
  background: hsl(220, 40%, 25%);
  color: hsl(160, 60%, 70%);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}
.play-bubble-ai pre {
  background: hsl(220, 40%, 20%);
  color: hsl(160, 60%, 75%);
  padding: 1em;
  border-radius: 6px;
  border: 1px solid hsl(160, 40%, 40%);
  overflow: auto;
  font-family: monospace;
}
.play-bubble-ai a {
  color: hsl(160, 60%, 60%);
  text-decoration: none;
  border-bottom: 1px dotted hsl(160, 60%, 60%);
}
.play-bubble-ai a:hover {
  color: hsl(160, 80%, 80%);
  border-bottom: 1px solid hsl(160, 80%, 80%);
}
.play-bubble-ai table {
  background: hsl(220, 30%, 22%);
  color: hsl(60, 80%, 95%);
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
.play-bubble-ai th, .play-bubble-ai td {
  border: 1px solid hsl(160, 40%, 40%);
  padding: 0.6em 0.8em;
}
.play-bubble-ai th {
  background: hsl(160, 40%, 30%);
  color: hsl(60, 80%, 95%);
  font-weight: bold;
}
.play-bubble-ai ul, .play-bubble-ai ol {
  padding-left: 1.5em;
}
.play-bubble-ai li {
  margin-bottom: 0.5em;
}
.play-bubble-ai hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(160, 60%, 50%), transparent);
  margin: 1.5em 0;
}
.play-loading-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(220, 30%, 20%), hsl(160, 40%, 30%), hsl(220, 30%, 20%));
  animation: pulse 1.5s infinite ease-in-out;
  border-radius: 12px;
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.next-prompts-row {
  background: hsl(220, 30%, 22%);
  color: hsl(60, 80%, 95%);
  border: 1px solid hsl(160, 40%, 40%);
  border-radius: 8px;
  padding: 0.8em 1em;
}
.next-prompts-num {
  color: hsl(160, 60%, 60%);
  font-weight: bold;
}
.next-prompts-copy {
  color: hsl(160, 60%, 60%);
  background: hsl(220, 40%, 25%);
  border-radius: 4px;
  padding: 0.3em 0.5em;
}
.play-quick-cmd {
  background: hsl(220, 30%, 22%);
  color: hsl(60, 80%, 95%);
  border: 1px solid hsl(160, 40%, 40%);
  border-radius: 6px;
  padding: 0.5em 1em;
}
.play-quick-cmd:hover {
  background: hsl(160, 40%, 30%);
  color: hsl(60, 80%, 95%);
}
.play-textarea {
  background: hsl(220, 30%, 20%);
  color: hsl(60, 80%, 95%);
  border: 1px solid hsl(160, 40%, 40%);
  border-radius: 8px;
  padding: 0.8em 1em;
}
.play-send-btn {
  background: linear-gradient(to right, hsl(160, 60%, 30%), hsl(160, 50%, 40%));
  color: hsl(60, 80%, 95%);
  border-radius: 8px;
  padding: 0.8em 1.2em;
}
.play-send-btn--active {
  background: linear-gradient(to right, hsl(160, 70%, 40%), hsl(160, 60%, 50%));
  box-shadow: 0 0 8px hsl(160, 60%, 50%);
}
.play-scroll-fab {
  background: hsl(160, 60%, 40%);
  color: hsl(60, 80%, 95%);
  border-radius: 50%;
  box-shadow: 0 4px 8px hsl(160, 60%, 20%);
}
.play-content::-webkit-scrollbar {
  width: 8px;
}
.play-content::-webkit-scrollbar-track {
  background: hsl(220, 40%, 15%);
}
.play-content::-webkit-scrollbar-thumb {
  background: hsl(160, 40%, 40%);
  border-radius: 4px;
}
@media (max-width: 768px) {
  .play-body {
    font-size: 14px;
  }
  .play-bubble-ai, .play-bubble-user {
    padding: 1em 1.2em;
    max-width: 92%;
  }
  .play-bubble-ai::before {
    top: -6px;
    left: 15px;
    width: 16px;
    height: 16px;
  }
  .play-quick-cmd, .play-textarea, .play-send-btn {
    padding: 0.6em 0.8em;
  }
}
.play-body.dark {
  background: linear-gradient(to bottom, hsl(220, 70%, 8%), hsl(220, 60%, 5%));
  color: hsl(60, 70%, 90%);
  --bg: hsl(220, 70%, 8%);
  --surface: hsl(220, 40%, 15%);
  --text: hsl(60, 70%, 90%);
  --accent: hsl(160, 60%, 45%);
  --border: hsl(160, 40%, 35%);
  --shadow: hsl(160, 60%, 25%);
}
.dark .play-bubble-ai {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  color: var(--text);
}
.dark .play-bubble-ai::before {
  filter: drop-shadow(0 2px 4px hsl(160, 60%, 25%));
}
.dark .play-bubble-user {
  background: linear-gradient(to right, hsl(160, 60%, 25%), hsl(160, 50%, 35%));
  color: hsl(60, 70%, 90%);
  box-shadow: 0 4px 8px hsl(160, 60%, 15%);
}
.dark .play-bubble-ai h1, .dark .play-bubble-ai h2, .dark .play-bubble-ai h3 {
  color: hsl(160, 60%, 65%);
}
.dark .play-bubble-ai blockquote {
  background: hsl(220, 40%, 18%);
  color: hsl(60, 70%, 85%);
}
.dark .play-bubble-ai code {
  background: hsl(220, 50%, 20%);
}
.dark .play-bubble-ai pre {
  background: hsl(220, 50%, 15%);
}
.dark .play-bubble-ai th {
  background: hsl(160, 40%, 25%);
}
.dark .next-prompts-row {
  background: hsl(220, 40%, 18%);
}
.dark .play-quick-cmd {
  background: hsl(220, 40%, 18%);
}
.dark .play-textarea {
  background: hsl(220, 40%, 15%);
}
.dark .play-send-btn {
  background: linear-gradient(to right, hsl(160, 60%, 25%), hsl(160, 50%, 35%));
}
.dark .play-send-btn--active {
  background: linear-gradient(to right, hsl(160, 70%, 35%), hsl(160, 60%, 45%));
}
.dark .play-scroll-fab {
  background: hsl(160, 60%, 35%);
}
.dark .play-content::-webkit-scrollbar-track {
  background: hsl(220, 50%, 10%);
}
.dark .play-content::-webkit-scrollbar-thumb {
  background: hsl(160, 40%, 35%);
}
