:root {
  --total: 33.6s;
  --ink: #2c3038;
  --paper: #ffffff;
  --radius: 18px;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #f5f5f7;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 76px 8vw 92px;
  opacity: 0;
  background: var(--bg);
  color: var(--ink);
  animation-duration: var(--total);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.deco {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: .12;
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}
.deco:nth-child(1) { width: 220px; height: 220px; top: -70px; left: -60px; }
.deco:nth-child(2) { width: 140px; height: 140px; bottom: 40px; right: -40px; animation-delay: -2.4s; }
.deco:nth-child(3) { width: 56px; height: 56px; border-radius: 12px; transform: rotate(18deg); top: 26%; right: 12%; background: var(--ink); opacity: .06; animation: none; }
.animal-wrap { position: relative; z-index: 2; animation: bob 2.8s ease-in-out infinite; }
.animal { width: 190px; height: auto; display: block; }
.animal .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.4s infinite; }
.bubble {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 26px 30px 24px;
  background: var(--paper);
  border-left: 8px solid var(--accent);
  border-radius: 14px;
  box-shadow: 12px 12px 0 0 rgba(0, 0, 0, .06);
}
.bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 24px;
  height: 24px;
  background: var(--paper);
  border-radius: 4px;
  transform: translateX(-50%) rotate(45deg);
}
.bubble p {
  margin: 0;
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: .02em;
  word-break: break-word;
}
.say {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 600;
}
.hud {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  font-size: 12px;
  letter-spacing: .12em;
  z-index: 5;
  pointer-events: none;
}
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1.5px solid rgba(0, 0, 0, .1);
  font-weight: 600;
  color: #2c3038;
}
.cta { pointer-events: auto; text-decoration: none; }
.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(0, 0, 0, .45);
  z-index: 5;
  pointer-events: none;
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(0, 0, 0, .06);
  z-index: 6;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  animation: progress var(--total) linear infinite;
}
.badge {
  position: absolute;
  right: 28px;
  bottom: 64px;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(0, 0, 0, .5);
  z-index: 5;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes sc0{
  0%, 0.00% { opacity: 0; transform: translateY(16px) scale(.985); }
  2.00% { opacity: 1; transform: translateY(0) scale(1); }
  10.50% { opacity: 1; transform: translateY(0) scale(1); }
  12.50%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc1{
  0%, 12.49% { opacity: 0; transform: translateY(16px) scale(.985); }
  14.50% { opacity: 1; transform: translateY(0) scale(1); }
  23.00% { opacity: 1; transform: translateY(0) scale(1); }
  25.00%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc2{
  0%, 24.99% { opacity: 0; transform: translateY(16px) scale(.985); }
  27.00% { opacity: 1; transform: translateY(0) scale(1); }
  35.50% { opacity: 1; transform: translateY(0) scale(1); }
  37.50%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc3{
  0%, 37.49% { opacity: 0; transform: translateY(16px) scale(.985); }
  39.50% { opacity: 1; transform: translateY(0) scale(1); }
  48.00% { opacity: 1; transform: translateY(0) scale(1); }
  50.00%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc4{
  0%, 49.99% { opacity: 0; transform: translateY(16px) scale(.985); }
  52.00% { opacity: 1; transform: translateY(0) scale(1); }
  60.50% { opacity: 1; transform: translateY(0) scale(1); }
  62.50%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc5{
  0%, 62.49% { opacity: 0; transform: translateY(16px) scale(.985); }
  64.50% { opacity: 1; transform: translateY(0) scale(1); }
  73.00% { opacity: 1; transform: translateY(0) scale(1); }
  75.00%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc6{
  0%, 74.99% { opacity: 0; transform: translateY(16px) scale(.985); }
  77.00% { opacity: 1; transform: translateY(0) scale(1); }
  85.50% { opacity: 1; transform: translateY(0) scale(1); }
  87.50%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@keyframes sc7{
  0%, 87.49% { opacity: 0; transform: translateY(16px) scale(.985); }
  89.50% { opacity: 1; transform: translateY(0) scale(1); }
  98.00% { opacity: 1; transform: translateY(0) scale(1); }
  100.00%, 100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
@media (max-width: 640px) {
  .animal { width: 136px; }
  .bubble { padding: 20px 20px 18px; max-width: 100%; }
  .bubble p { font-size: 17px; }
  .scene { gap: 18px; padding: 64px 20px 84px; }
  .hud { padding: 14px 16px; }
  .chip { font-size: 11px; }
  .badge { right: 16px; bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .animal-wrap, .deco, .animal .eyes { animation: none; }
}
