:root {
  --gold: #ffd166; --pink: #ff4d6d; --cyan: #00e5d0; --cream: #fff8f0;
  --gpt: #0d9f6e; --grok: #2c2c34; --claude: #c45c3e;
  --ease: cubic-bezier(.22,.82,.2,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; background: #07040e; color: var(--cream); overflow: hidden;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#app {
  height: 100%; height: 100dvh; max-width: 1680px; margin: 0 auto;
  display: grid; grid-template-rows: 1fr auto;
  padding: var(--safe-t) 0 var(--safe-b);
}
#stage {
  position: relative;
  margin: clamp(4px, 1vw, 12px) clamp(6px, 1.2vw, 14px) 0;
  border-radius: clamp(14px, 2vw, 22px); overflow: hidden;
  background: #0c0614; min-height: 0;
  box-shadow:
    0 28px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,210,160,.12),
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -80px 120px rgba(255,120,80,.06);
  width: calc(100% - clamp(12px, 2.4vw, 28px));
  height: 100%;
  max-height: calc(100dvh - 68px - var(--safe-b) - var(--safe-t));
  justify-self: center; align-self: stretch;
}

/* layers — 多层天空 + 氛围 */
.sky { position: absolute; inset: 0; z-index: 0; transition: background 1.15s ease; }
#stage.cam-drift { animation: camDrift 14s ease-in-out infinite alternate; }
@keyframes camDrift {
  from { transform: scale(1.015) translate3d(-0.25%, -0.12%, 0); }
  to { transform: scale(1.028) translate3d(0.25%, 0.15%, 0); }
}
#stage.rip-nudge { animation: ripNudge .85s cubic-bezier(.22,.7,.2,1); }
@keyframes ripNudge {
  0% { transform: scale(1.02) translate(0,0); }
  35% { transform: scale(1.028) translate(-0.35%, 0.15%); }
  100% { transform: scale(1.02) translate(0,0); }
}
.sky.s-sail {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #4a78b8 0%, transparent 55%),
    linear-gradient(180deg, #122848 0%, #2a5888 28%, #6aa0c8 48%, #f0b060 72%, #e07048 100%);
}
.sky.s-lonely {
  background:
    radial-gradient(ellipse 70% 40% at 70% 10%, #3a2060 0%, transparent 50%),
    linear-gradient(180deg, #080e1c, #162848 45%, #3a2858 78%, #2a1838);
}
.sky.s-think {
  background:
    radial-gradient(ellipse 60% 45% at 30% 20%, #e07090aa 0%, transparent 55%),
    linear-gradient(180deg, #241040, #a05078 42%, #e8a868 78%, #f0c878);
}
.sky.s-brave {
  background:
    radial-gradient(ellipse 55% 40% at 60% 15%, #40c0d888 0%, transparent 50%),
    linear-gradient(180deg, #0c1c48, #1e78a0 40%, #e86868 78%, #f09060);
}
.sky.s-crowd {
  background:
    radial-gradient(circle at 20% 30%, #ff90b088 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #80e0d088 0%, transparent 35%),
    linear-gradient(180deg, #e890a8, #e06068 40%, #f0c060 72%, #7850a8);
}
.sky.s-leave {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, #c06080aa 0%, transparent 50%),
    linear-gradient(180deg, #3a1848, #c06850 48%, #f0c070);
}
.sky.s-thanks {
  background:
    radial-gradient(ellipse 60% 35% at 50% 10%, #ff9040aa 0%, transparent 55%),
    linear-gradient(180deg, #201030, #c06838 42%, #f0c070);
}
.sky.s-eyes {
  background:
    radial-gradient(circle at 50% 45%, #50a0e0aa 0%, transparent 45%),
    linear-gradient(180deg, #0a0614, #285888 48%, #583890);
}
.sky.s-rain {
  background:
    linear-gradient(180deg, #0c101c, #222838 50%, #3a3050 85%, #2a2038);
}
.sky.s-outro {
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, #ffc060cc 0%, transparent 55%),
    linear-gradient(180deg, #142038, #d09050 50%, #c05060);
}
.sky.s-park {
  background:
    radial-gradient(ellipse 50% 40% at 70% 15%, #ffb0c8aa 0%, transparent 50%),
    linear-gradient(180deg, #4a78b8 0%, #88c0e0 35%, #f0c8a0 70%, #e09070);
}
.sky.s-cafe {
  background:
    radial-gradient(ellipse 60% 40% at 40% 20%, #e8a07088 0%, transparent 55%),
    linear-gradient(180deg, #3a2848, #8a5060 40%, #d09070 75%, #c07050);
}
.sky.s-city {
  background:
    radial-gradient(ellipse 40% 30% at 80% 20%, #ff40a066 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 20% 30%, #40e0ff44 0%, transparent 50%),
    linear-gradient(180deg, #0a0820, #1a1440 45%, #3a2060 80%, #1a1028);
}
.sky.s-break {
  background:
    linear-gradient(180deg, #1a1020, #3a2840 40%, #5a4050 70%, #2a2030);
}
.sky.s-lab {
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, #2060a088 0%, transparent 55%),
    linear-gradient(180deg, #061018, #0c2038 40%, #143050 75%, #0a1828);
}
.sky.s-roof {
  background:
    radial-gradient(ellipse 60% 35% at 50% 10%, #ff806088 0%, transparent 50%),
    linear-gradient(180deg, #1a1030, #3a2860 40%, #c07060 78%, #2a1830);
}

/* —— 场景层：只淡入淡出，禁止 visibility 切断过渡 —— */
.city, .park, .cafe, .fork, .lab, .rooftop {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .95s ease, transform .95s var(--ease);
  transform: scale(1.05) translateY(10px);
  will-change: opacity, transform;
}
.city.on, .park.on, .cafe.on, .fork.on, .lab.on, .rooftop.on {
  opacity: 1; transform: scale(1) translateY(0);
}
.rooftop .roof-edge {
  position: absolute; left: -5%; right: -5%; bottom: 22%; height: 18%;
  background: linear-gradient(180deg, #4a3848, #2a1c28);
  clip-path: polygon(0 40%, 100% 20%, 100% 100%, 0 100%);
  box-shadow: 0 -12px 30px rgba(0,0,0,.35);
}
.rooftop .antenna {
  position: absolute; bottom: 38%; width: 4px; height: 70px;
  background: #c8d0e0; box-shadow: 0 0 10px #80c0ff;
}
.rooftop .antenna::after {
  content: ""; position: absolute; top: -6px; left: -5px; width: 14px; height: 14px;
  border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 12px #ff4d6d;
  animation: twinkle 1.2s ease-in-out infinite;
}
.rooftop .a1 { left: 22%; } .rooftop .a2 { right: 26%; left: auto; height: 90px; }
.rooftop .roof-glow {
  position: absolute; left: 20%; right: 20%; bottom: 28%; height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,120,80,.35), transparent 70%);
  pointer-events: none;
}

/* 撕裂：细裂缝，不做满屏黑闪 */
.rip {
  position: absolute; inset: 0; z-index: 25; pointer-events: none;
  opacity: 0;
}
.rip.on { opacity: 1; }
.rip-l, .rip-r {
  position: absolute; top: 0; bottom: 0; width: 52%;
  background: rgba(6, 4, 12, .22);
  opacity: 0;
}
.rip-l { left: 0; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.rip-r { right: 0; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.rip.on .rip-l { animation: ripDimL .9s ease forwards; }
.rip.on .rip-r { animation: ripDimR .9s ease forwards; }
.rip-crack {
  position: absolute; left: 49%; top: -8%; width: 2px; height: 116%;
  background: linear-gradient(180deg, transparent, rgba(255,200,160,.55) 25%, rgba(255,90,90,.7) 50%, rgba(255,200,160,.45) 75%, transparent);
  box-shadow: 0 0 10px rgba(255,120,100,.35);
  transform: rotate(-6deg); opacity: 0;
}
.rip.on .rip-crack { animation: crackDraw .9s ease forwards; }
@keyframes ripDimL {
  0% { opacity: 0; transform: translateX(0); }
  25% { opacity: .55; }
  100% { opacity: 0; transform: translateX(-8%); }
}
@keyframes ripDimR {
  0% { opacity: 0; transform: translateX(0); }
  25% { opacity: .55; }
  100% { opacity: 0; transform: translateX(8%); }
}
@keyframes crackDraw {
  0% { opacity: 0; transform: rotate(-6deg) scaleY(.15); }
  28% { opacity: .85; transform: rotate(-6deg) scaleY(1); }
  100% { opacity: 0; transform: rotate(-6deg) scaleY(1); }
}
.smear { display: none; }

.lab-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(40,180,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,180,255,.08) 1px, transparent 1px);
  background-size: 36px 36px;
}
.lab .server {
  position: absolute; bottom: 22%; width: 48px; height: 90px;
  background: linear-gradient(180deg, #2a4058, #121c28);
  border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(80,200,255,.2);
}
.lab .server::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 60%;
  background: repeating-linear-gradient(0deg, #40e0ff55 0 4px, transparent 4px 12px);
}
.lab .s1 { left: 10%; } .lab .s2 { left: 22%; height: 110px; } .lab .s3 { right: 12%; left: auto; height: 100px; }
.lab .desk {
  position: absolute; bottom: 20%; height: 10px; border-radius: 3px;
  background: linear-gradient(180deg, #3a5068, #1a2838);
  box-shadow: 0 8px 14px rgba(0,0,0,.35);
}
.lab .desk::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: -7px; height: 5px;
  border-radius: 2px; background: #121820; box-shadow: 0 0 10px rgba(80,200,255,.25);
}
.lab .d1 { left: 14%; width: 16%; }
.lab .d2 { left: 42%; width: 16%; }
.lab .d3 { left: 70%; width: 16%; }

/* IDE 写码屏 */
.ide {
  position: absolute; left: 50%; top: 8%;
  width: min(52vw, 460px); height: min(48%, 280px);
  transform: translateX(-50%);
  background: #0b1220; border-radius: 12px;
  border: 2px solid #2a4a72;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 36px rgba(40,160,255,.18);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .7s ease, transform .7s var(--ease);
  z-index: 6;
}
.lab.on .ide { opacity: 1; }
.ide-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; background: #121a2a; border-bottom: 1px solid #1e3048;
  flex-shrink: 0;
}
.ide-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57;
}
.ide-bar i:nth-child(2) { background: #febc2e; }
.ide-bar i:nth-child(3) { background: #28c840; }
.ide-bar b {
  margin-left: 8px; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; font-weight: 400; color: #8aa0b8; letter-spacing: .02em;
}
.ide-tabs {
  display: flex; gap: 2px; padding: 0 6px; background: #0e1624;
  border-bottom: 1px solid #1a2a40; flex-shrink: 0;
}
.ide-tabs span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; color: #6a8098; padding: 5px 10px;
  border-radius: 6px 6px 0 0;
}
.ide-tabs span.on {
  color: #e8f0ff; background: #0b1220;
  box-shadow: inset 0 -2px 0 #40c0ff;
}
.ide-body {
  flex: 1; display: flex; min-height: 0; overflow: hidden;
  background: #0b1220;
}
.ide-gutter {
  flex: 0 0 28px; padding: 8px 0; text-align: right;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; line-height: 1.55; color: #3a5070;
  background: #0a101c; border-right: 1px solid #152238;
  user-select: none;
}
.ide-gutter b { display: block; padding-right: 6px; font-weight: 400; }
.ide-code {
  flex: 1; margin: 0; padding: 8px 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(10px, 1.35vw, 12.5px); line-height: 1.55;
  color: #c8d6e8; white-space: pre-wrap; word-break: break-word;
  overflow: hidden;
}
.ide-code .kw { color: #c792ea; }
.ide-code .fn { color: #82aaff; }
.ide-code .str { color: #c3e88d; }
.ide-code .num { color: #f78c6c; }
.ide-code .cm { color: #546e7a; font-style: italic; }
.ide-code .ty { color: #ffcb6b; }
.ide-code .op { color: #89ddff; }
.ide-code .caret {
  display: inline-block; width: 7px; height: 1.05em;
  margin-left: 1px; vertical-align: text-bottom;
  background: #40e0ff; box-shadow: 0 0 8px #40e0ff;
  animation: caretBlink .9s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.ide-term {
  flex: 0 0 28%; min-height: 52px; max-height: 78px;
  background: #060a12; border-top: 1px solid #1a3048;
  padding: 6px 10px; overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; line-height: 1.45; color: #7a9088;
}
.ide-term em { color: #40e0ff; font-style: normal; display: block; margin-bottom: 2px; }
.ide-term .ok { color: #7dffa0; }
.ide-term .warn { color: #ffd166; }
.ide-term .err { color: #ff6b7a; }
.ide.err {
  border-color: #803040;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 28px rgba(255,60,80,.2);
}

.city .bldg {
  position: absolute; bottom: 18%; background: #1a1438;
  box-shadow: inset -8px 0 0 rgba(255,255,255,.06), 0 0 20px rgba(255,80,160,.15);
}
.city .bldg::after {
  content: ""; position: absolute; inset: 8% 12%;
  background:
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(255,220,120,.35) 10px 12px),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(120,220,255,.25) 10px 12px);
  opacity: .85;
}
.b1 { left: 4%; width: 11%; height: 38%; border-radius: 4px 4px 0 0; }
.b2 { left: 16%; width: 9%; height: 48%; }
.b3 { left: 28%; width: 13%; height: 32%; }
.b4 { right: 28%; width: 10%; height: 44%; left: auto; }
.b5 { right: 14%; width: 12%; height: 56%; left: auto; }
.b6 { right: 4%; width: 8%; height: 36%; left: auto; }
.neon {
  position: absolute; top: 22%; font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(14px, 2.5vw, 22px); letter-spacing: .2em;
  text-shadow: 0 0 12px currentColor, 0 0 28px currentColor;
}
.neon.n1 { left: 12%; color: #ff4d9a; animation: neonFlick 2.4s infinite; }
.neon.n2 { right: 14%; color: #40e0ff; top: 28%; animation: neonFlick 3s infinite .4s; }
@keyframes neonFlick {
  0%, 100% { opacity: 1; } 48% { opacity: 1; } 50% { opacity: .35; } 52% { opacity: 1; } 92% { opacity: .7; }
}

.park .tree {
  position: absolute; bottom: 20%; width: 56px; height: 90px;
}
.park .tree::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 10px; height: 40%;
  margin-left: -5px; background: #5a3820; border-radius: 4px;
}
.park .tree::after {
  content: ""; position: absolute; left: 50%; bottom: 28%; width: 54px; height: 54px;
  margin-left: -27px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffb0c8, #e06090 60%, #a04068);
  box-shadow: -18px 8px 0 -8px #f090b0, 16px 10px 0 -10px #e878a0;
}
.t1 { left: 8%; transform: scale(1.1); }
.t2 { left: 42%; transform: scale(.85); bottom: 22%; }
.t3 { right: 10%; left: auto; transform: scale(1.05); }
.petals { position: absolute; inset: 0; overflow: hidden; }
.petals i {
  position: absolute; top: -10%; width: 10px; height: 8px; border-radius: 50% 0 50% 0;
  background: #ff9ab8; opacity: .85; animation: petalFall 5s linear infinite;
}
@keyframes petalFall {
  to { transform: translateY(110vh) rotate(360deg); opacity: .2; }
}

.cafe-wall {
  position: absolute; left: 8%; right: 8%; top: 12%; bottom: 28%;
  background: linear-gradient(180deg, #5a3848, #3a2430);
  border-radius: 16px; box-shadow: inset 0 0 0 3px rgba(255,220,180,.12);
}
.cafe-wall::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 12%; height: 28%;
  background: linear-gradient(180deg, #87b8e0, #c8e0f4);
  border-radius: 8px; box-shadow: inset 0 -8px 0 rgba(0,0,0,.08);
}
.cafe-table {
  position: absolute; left: 28%; right: 28%; bottom: 30%; height: 14px;
  background: #8a5a38; border-radius: 6px;
  box-shadow: 0 10px 0 #5a3820;
}
.cafe-cups {
  position: absolute; left: 36%; right: 36%; bottom: 36%; display: flex; justify-content: space-around;
}
.cafe-cups i {
  width: 14px; height: 16px; background: #fff6e8; border-radius: 3px 3px 6px 6px;
  box-shadow: 0 0 0 2px #d0b090;
}
.cafe-chair {
  position: absolute; bottom: 26%; width: 28px; height: 22px;
  background: #4a3020; border-radius: 4px;
}
.cafe-chair.cA { left: 22%; }
.cafe-chair.cB { left: 48%; }
.cafe-chair.cC { right: 22%; left: auto; }
.cafe.empty .cafe-cups i:nth-child(2),
.cafe.empty .cafe-cups i:nth-child(3) { opacity: .25; }
.cafe.empty .cafe-chair.cB,
.cafe.empty .cafe-chair.cC { opacity: .35; }

.fork {
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0;
}
.fork-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 2.5%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(20,12,18,.35) 30%, rgba(28,18,22,.55) 100%);
  pointer-events: none;
}
.fork .road {
  position: relative;
  height: 88%;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 -8px 24px rgba(0,0,0,.25);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10%;
  transform-origin: 50% 100%;
}
.fork .road::before {
  content: ""; position: absolute; inset: 12% 38% 0;
  background: repeating-linear-gradient(180deg, rgba(255,220,160,.35) 0 10px, transparent 10px 22px);
  border-radius: 2px; opacity: .55;
}
.fork .road span {
  position: relative; z-index: 1;
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(11px, 1.5vw, 14px); letter-spacing: .12em;
  color: rgba(255,240,220,.72); text-shadow: 0 2px 6px rgba(0,0,0,.5);
  background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.fork .road-l {
  width: 18%;
  background: linear-gradient(180deg, #3a6a58, #1a3028);
  transform: perspective(420px) rotateY(28deg) skewX(-4deg);
}
.fork .road-c {
  width: 20%;
  background: linear-gradient(180deg, #4a4a58, #222230);
  transform: perspective(420px) scaleY(1.02);
}
.fork .road-r {
  width: 18%;
  background: linear-gradient(180deg, #8a5040, #3a2018);
  transform: perspective(420px) rotateY(-28deg) skewX(4deg);
}

/* 连接点 / 分歧符 */
.hearts, .hate {
  position: absolute; inset: 0; z-index: 15; pointer-events: none;
  opacity: 0; transition: opacity .45s ease;
}
.hearts.on, .hate.on { opacity: 1; }
.hearts .h {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #00e5d0; box-shadow: 0 0 14px #00e5d0;
  animation: heartPop .7s var(--ease) both;
}
.hearts .h.broken {
  background: #8a9aa8; box-shadow: 0 0 8px #8a9aa8; border-radius: 2px;
  transform: rotate(45deg);
}
@keyframes heartPop {
  from { transform: scale(0) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.hate .x {
  position: absolute; width: 22px; height: 22px;
  border: 3px solid #ff6a40; border-radius: 50%;
  animation: hateIn .55s var(--ease) both;
  box-shadow: 0 0 10px rgba(255,106,64,.3);
}
@keyframes hateIn {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.hate .x::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 3px;
  margin-top: -1.5px; background: #ff6a40; border-radius: 2px;
}
.story-tag {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 21; pointer-events: none;
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(11px, 1.6vw, 14px); letter-spacing: .28em;
  color: rgba(255,246,232,.82); text-shadow: 0 2px 8px rgba(0,0,0,.45);
  opacity: 0; transition: opacity .45s ease, transform .45s var(--ease); white-space: nowrap;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(8,4,14,.42); border: 1px solid rgba(255,210,160,.16);
  backdrop-filter: blur(6px);
}
.story-tag.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.story-tag:not(.on) { transform: translateX(-50%) translateY(-4px); }

.char.glow { filter: drop-shadow(0 0 14px rgba(0,229,208,.7)) drop-shadow(0 12px 10px rgba(0,0,0,.4)); }
.char.dim { filter: grayscale(.3) brightness(.88) drop-shadow(0 12px 10px rgba(0,0,0,.4)); }
.char.back { transform: scaleX(-1); }
.char.jump { animation: charJump .55s ease-in-out infinite alternate; }
.char.spin-arm .arm.L { animation: hiArm .4s ease-in-out infinite alternate; }
.char.spin-arm .arm.R { animation: hiArm .4s ease-in-out infinite alternate-reverse; }
@keyframes charJump {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}
.whale { display: none !important; }

.aurora {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(ellipse 90% 35% at 50% 100%, rgba(255,120,80,.32), transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 40%, rgba(0,220,200,.1), transparent 70%),
    radial-gradient(ellipse 35% 28% at 85% 35%, rgba(255,80,140,.08), transparent 70%);
  transition: opacity .5s;
}
.stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px #fff8; opacity: .55;
  animation: twinkle 2.8s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: .9; transform: scale(1.2); }
}
.grain {
  position: absolute; inset: 0; z-index: 18; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px; mix-blend-mode: overlay;
}
.hills {
  position: absolute; left: -2%; right: -2%; bottom: 18%; height: 28%; z-index: 2;
  pointer-events: none; opacity: .85; transition: opacity .4s, bottom .4s;
}
.hills svg { width: 100%; height: 100%; display: block; }
.hills .far { fill: #1e3a5c; opacity: .5; }
.hills .mid { fill: #254868; opacity: .65; }
.hills .near { fill: #2e5478; opacity: .8; }
.sky.s-crowd .hills .far, .sky.s-leave .hills .far { fill: #5a2850; }
.sky.s-crowd .hills .mid, .sky.s-leave .hills .mid { fill: #6a3060; }
.sky.s-crowd .hills .near, .sky.s-leave .hills .near { fill: #7a3870; }
.sky.s-thanks .hills .far { fill: #4a2030; }
.sky.s-thanks .hills .mid { fill: #5a2840; }
.sky.s-thanks .hills .near { fill: #6a3050; }
.birds {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden;
}
.birds i {
  position: absolute; width: 14px; height: 6px; opacity: 0;
  background: transparent;
  border-radius: 50%;
}
.birds i::before, .birds i::after {
  content: ""; position: absolute; top: 0; width: 8px; height: 3px;
  border: 2px solid rgba(20,16,28,.55); border-bottom: 0; border-radius: 10px 10px 0 0;
}
.birds i::before { left: 0; transform: rotate(-18deg); }
.birds i::after { right: 0; transform: rotate(18deg); }
.birds.on i { opacity: .7; animation: birdFly 9s linear infinite; }
.birds i:nth-child(1) { top: 18%; left: -10%; animation-delay: 0s; }
.birds i:nth-child(2) { top: 24%; left: -10%; animation-delay: 2.2s; transform: scale(.7); }
.birds i:nth-child(3) { top: 14%; left: -10%; animation-delay: 4.5s; transform: scale(.85); }
.birds i:nth-child(4) { top: 28%; left: -10%; animation-delay: 6s; transform: scale(.6); }
.birds i:nth-child(5) { top: 20%; left: -10%; animation-delay: 7.5s; transform: scale(.75); }
@keyframes birdFly {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  8% { opacity: .75; }
  50% { transform: translateX(55vw) translateY(-18px); }
  92% { opacity: .6; }
  100% { transform: translateX(110vw) translateY(8px); opacity: 0; }
}
.sparks {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden;
}
.sparks b {
  position: absolute; bottom: 8%; width: 5px; height: 5px; border-radius: 50%;
  background: #ffd166; box-shadow: 0 0 10px #ff8c42;
  opacity: 0;
}
.sparks.on b { animation: sparkUp 4.5s ease-out infinite; }
@keyframes sparkUp {
  0% { transform: translateY(0) scale(.4); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-55vh) scale(1.1); opacity: 0; }
}

.vignette {
  position: absolute; inset: 0; z-index: 19; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 36%, transparent 42%, rgba(0,0,0,.34) 100%),
    linear-gradient(180deg, rgba(8,4,16,.18), transparent 18%, transparent 55%, rgba(6,3,12,.55));
}
.moon {
  position: absolute; left: 50%; top: 9%; z-index: 3;
  width: min(20vw, 210px); height: min(20vw, 210px);
  margin-left: calc(min(20vw, 210px) / -2); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff8e8, #ffd166 52%, #e09040);
  box-shadow: 0 0 56px rgba(255,200,80,.58), 0 18px 36px rgba(0,0,0,.28),
    inset -12px -8px 0 rgba(200,120,40,.15);
  transition: transform .35s var(--ease), filter .35s;
  will-change: transform, filter;
}
.moon.dim { filter: brightness(.48); transform: scale(.88); }
.moon.big { transform: scale(1.28); }
.sunburst {
  position: absolute; left: 50%; top: 4%; width: min(58vw, 620px); height: min(58vw, 620px);
  margin-left: calc(min(58vw, 620px) / -2);
  border-radius: 50%; z-index: 2; opacity: 0; pointer-events: none;
  background: conic-gradient(from 15deg, #ffd16633, transparent 20%, #ff4d6d22, transparent 45%, #00e5d022, transparent 70%, #ffd16633);
  animation: spin 28s linear infinite;
}
.sunburst.on { opacity: .28; }
@keyframes spin { to { transform: rotate(360deg); } }

.rain {
  position: absolute; inset: 0; z-index: 7; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(108deg, transparent 0 14px, rgba(190,210,255,.14) 14px 15px);
  transition: opacity .4s;
}
.rain.on { opacity: .55; animation: rainMove 1.1s linear infinite; }
@keyframes rainMove { to { background-position: 18px 28px; } }

.waves {
  position: absolute; left: -5%; right: -5%; bottom: -3%; height: 28%; z-index: 4;
  pointer-events: none; overflow: hidden;
}
.wave {
  position: absolute; left: 0; right: 0; height: 72%;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  box-shadow: 0 -10px 20px rgba(0,0,0,.22);
  transform: translateY(112%);
  transition: transform .22s var(--ease);
}
.w1 { bottom: 0; background: linear-gradient(180deg, #ff6a85, #ff4d6d); }
.w2 { bottom: 7%; background: linear-gradient(180deg, #ff9c58, #ff8c42); }
.w3 { bottom: 14%; background: linear-gradient(180deg, #ffe08a, #ffd166); }
.w4 { bottom: 21%; background: linear-gradient(180deg, #40e0d0, #00cfc0); }
.w5 { bottom: 28%; background: linear-gradient(180deg, #68b8f0, #4ca8e8); }
.w6 { bottom: 35%; background: linear-gradient(180deg, #a070e8, #8a5ad8); }
.wave.up { transform: translateY(20%); animation: waveBob 2.4s ease-in-out infinite; }
.wave.up.w2 { animation-delay: .15s; } .wave.up.w3 { animation-delay: .3s; }
.wave.up.w4 { animation-delay: .45s; } .wave.up.w5 { animation-delay: .6s; }
.wave.up.w6 { animation-delay: .75s; }
.wave.down { transform: translateY(118%); animation: none; }
@keyframes waveBob {
  0%, 100% { transform: translateY(20%) scaleX(1); }
  50% { transform: translateY(14%) scaleX(1.02); }
}

/* 剪纸层叠白云 */
.clouds {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
}
.cloud-svg {
  position: absolute; opacity: 0;
  filter: drop-shadow(0 12px 10px rgba(30,16,8,.28));
  transition: opacity .55s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}
.clouds.ambient .cloud-svg { opacity: .72; }
.clouds.ambient.on .cloud-svg { opacity: .78; }
.clouds.heavy .cloud-svg { opacity: 0; transform: translateX(-24px) scale(.96); }
.clouds.heavy.on .cloud-svg { opacity: .95; transform: translateX(0) scale(1); }

.c-a1 { width: min(34vw, 280px); top: 10%; left: 2%; animation: driftA 28s ease-in-out infinite; }
.c-a2 { width: min(40vw, 320px); top: 16%; right: 4%; left: auto; animation: driftB 34s ease-in-out infinite; }
.c-a3 { width: min(28vw, 220px); top: 7%; left: 38%; animation: driftA 40s ease-in-out infinite reverse; }
.clouds.heavy .c1 { width: min(36vw, 300px); top: 12%; left: 4%; }
.clouds.heavy .c2 { width: min(42vw, 340px); top: 18%; left: 32%; transition-delay: .08s; }
.clouds.heavy .c3 { width: min(30vw, 240px); top: 8%; right: 6%; left: auto; transition-delay: .14s; }
.clouds.heavy .c4 { width: min(24vw, 190px); top: 22%; right: 22%; left: auto; transition-delay: .2s; }
@keyframes driftA {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(18px) translateY(-8px); }
}
@keyframes driftB {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-22px) translateY(6px); }
}

.lanterns, .letters { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.kong {
  position: absolute; bottom: 10%; width: 34px; height: 48px;
  background: linear-gradient(180deg, #fff0b0, #ff8c42);
  border-radius: 40% 40% 14% 14%; box-shadow: 0 0 18px rgba(255,140,66,.7);
  opacity: 0; transform: translate3d(0,20px,0) scale(.75);
  transition: transform .55s var(--ease), opacity .25s;
}
.kong::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 10px;
  background: #4a2808; transform: translateX(-50%);
}
.kong.fly { opacity: 1; transform: translate3d(0,-44vh,0) scale(1); }
.letter {
  position: absolute; width: 26px; height: 34px; background: #fff6e0; border: 1px solid #e0c8a0;
  box-shadow: 0 6px 10px rgba(0,0,0,.2); opacity: 0; transform: translateY(16px) rotate(-6deg);
  transition: transform .4s var(--ease), opacity .3s;
}
.letter.show { opacity: .95; transform: translateY(0) rotate(3deg); }

.dock {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17%; z-index: 7; opacity: 0;
  background: linear-gradient(180deg, #d09058, #6a3818);
  clip-path: polygon(0 30%, 100% 12%, 100% 100%, 0 100%);
  transition: opacity .9s ease, transform .9s var(--ease); box-shadow: 0 -10px 24px rgba(0,0,0,.25);
  transform: translateY(10px);
}
.dock.on { opacity: 1; transform: translateY(0); }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 44%; z-index: 8; opacity: 0;
  transition: transform .7s var(--ease), opacity .45s ease;
}
.curtain.left { left: 0; background: linear-gradient(90deg, #8a4ad0, #e05070); clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%); }
.curtain.right { right: 0; background: linear-gradient(270deg, #20d0c0, #40a0e0); clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); }
.curtain.on { opacity: 1; }
.curtain.splitL { transform: translateX(-36%); }
.curtain.splitR { transform: translateX(36%); }

/* —— 船：甲板人在上，船体在下，脚踩甲板不穿模 —— */
.boat {
  position: absolute; left: 28%; bottom: 22%; width: min(52vw, 460px); z-index: 12;
  opacity: 0; transform: translate3d(0,28px,0);
  transition: left .9s var(--ease), bottom .9s var(--ease),
    transform .9s var(--ease), opacity .65s ease;
  filter: drop-shadow(0 16px 14px rgba(0,0,0,.38)); pointer-events: none;
}
.boat.on {
  opacity: 1; transform: translate3d(0,0,0);
  animation: boatBob 3.2s ease-in-out infinite;
}
.boat.climb { left: 40%; bottom: 36%; animation: none; transform: rotate(-8deg); }
.boat.into-moon { left: 34%; bottom: 44%; animation: none; transform: scale(.7); }
@keyframes boatBob {
  0%, 100% { transform: translate3d(0,0,0) rotate(-1deg); }
  50% { transform: translate3d(0,-6px,0) rotate(1.2deg); }
}
.boat .hull { width: 100%; display: block; position: relative; z-index: 1; }
.boat .deck {
  position: absolute; left: 8%; right: 8%; bottom: 46%; height: clamp(130px, 22vw, 168px);
  z-index: 5; display: flex; justify-content: center; align-items: flex-end; gap: 2%;
  overflow: visible;
}
.boat .char {
  position: relative; left: auto !important; bottom: auto !important;
  opacity: 0; visibility: hidden; width: clamp(72px, 11vw, 96px);
  transform: none; margin-bottom: 0;
}
.boat.show-gpt .char.gpt,
.boat.show-grok .char.grok,
.boat.show-claude .char.claude,
.boat.show-gpt-grok .char.gpt,
.boat.show-gpt-grok .char.grok,
.boat.show-all .char { opacity: 1; visibility: visible; }
.boat .char .face { width: clamp(40px, 6vw, 52px); height: clamp(40px, 6vw, 52px); }
.boat .char .label { display: none; }
.boat .char .neck { width: 14px; height: 8px; }
.boat .char .rig { width: 72%; }
.boat .char .arms { height: 46px; }
.boat .char .torso { height: 44px; }
.boat .char .limb.arm { height: 40px; width: 13px; }
.boat .char .hips { width: 38px; height: 12px; }
.boat .char .pair { height: 62px; gap: 10px; }
.boat .char .leg { height: 62px; width: 15px; }
.boat .char .leg .thigh { height: 26px; width: 14px; }
.boat .char .leg .shin { height: 24px; width: 13px; }
.boat .char .leg .shoe { width: 18px; height: 9px; }

#land { position: absolute; inset: 0; z-index: 13; pointer-events: none; }

/* ========== 连体纸偶：头-颈-身-臂-髋-腿-脚 一体 ========== */
.char {
  position: absolute; width: clamp(96px, 12vw, 118px); opacity: 0;
  transition: left .95s cubic-bezier(.22,.7,.2,1), bottom .95s cubic-bezier(.22,.7,.2,1),
    opacity .55s ease, filter .55s ease, transform .7s cubic-bezier(.22,.7,.2,1);
  filter: drop-shadow(0 0 0.5px rgba(255,255,255,.55)) drop-shadow(0 12px 10px rgba(0,0,0,.4));
  will-change: left, bottom, opacity, transform;
  isolation: isolate;
}
.char.grok .torso,
.char.grok .limb,
.char.grok .hips,
.char.grok .leg i {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.char.on { opacity: 1 !important; }
.char-stack {
  display: flex; flex-direction: column; align-items: center; width: 100%;
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.face {
  width: clamp(54px, 7vw, 66px); height: clamp(54px, 7vw, 66px);
  max-width: 66px; max-height: 66px; flex-shrink: 0;
  border-radius: 50%; border: 3px solid #fff;
  background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.14); z-index: 6; display: block;
  object-fit: cover;
}
.neck {
  width: 16px; height: 10px; margin-top: -3px; border-radius: 0 0 6px 6px; z-index: 5;
}
.char.gpt .neck { background: #0a7a54; }
.char.grok .neck { background: #6a6a78; }
.char.claude .neck { background: #b05038; }

.rig { width: 78%; margin-top: -1px; position: relative; display: flex; flex-direction: column; align-items: center; }
.arms {
  display: grid; grid-template-columns: 18px 1fr 18px; align-items: start;
  width: 100%; height: 56px; position: relative; z-index: 3;
}
.torso {
  height: 52px; border-radius: 14px 14px 10px 10px; margin-top: 0; z-index: 2;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12);
}
.char.gpt .torso { background-color: #0d9f6e; background-image: linear-gradient(180deg, #34e0b0, #0d9f6e 55%, #086b4a); }
.char.grok .torso { background-color: #4a4a58; background-image: linear-gradient(180deg, #8a8a98, #4a4a58 55%, #2a2a34); }
.char.claude .torso { background-color: #c45c3e; background-image: linear-gradient(180deg, #e89070, #c45c3e 55%, #8a3a28); }

.limb.arm {
  width: 15px; height: 48px; border-radius: 10px; margin-top: 6px;
  transform-origin: 50% 4px; position: relative; z-index: 4;
}
.char.gpt .limb.arm { background: linear-gradient(180deg, #1bc48f, #0a6b4c); }
.char.grok .limb.arm { background: linear-gradient(180deg, #7a7a88, #3a3a48); }
.char.claude .limb.arm { background: linear-gradient(180deg, #e08060, #a04830); }
.arm.L { transform: rotate(14deg); justify-self: end; margin-right: -2px; }
.arm.R { transform: rotate(-14deg); justify-self: start; margin-left: -2px; }
.palm {
  position: absolute; left: 50%; bottom: -5px; width: 14px; height: 14px;
  margin-left: -7px; border-radius: 50%; background: inherit; filter: brightness(1.18);
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.lamp {
  position: absolute; left: 50%; bottom: -26px; width: 16px; height: 22px;
  margin-left: -8px; border-radius: 4px;
  background: linear-gradient(180deg, #fff2b0, #ffb020);
  box-shadow: 0 0 16px #ff8c42; opacity: 0;
}
.char.lantern .arm.R { transform: rotate(-46deg); }
.char.lantern .lamp { opacity: 1; }
.char.hi .arm.R { animation: hiArm .6s ease-in-out infinite alternate; }
@keyframes hiArm {
  from { transform: rotate(-16deg); }
  to { transform: rotate(-62deg); }
}

.hips {
  width: 42px; height: 13px; margin: -1px auto 0; border-radius: 0 0 8px 8px; z-index: 2;
}
.char.gpt .hips { background: #086b4a; }
.char.grok .hips { background: #2a2a34; }
.char.claude .hips { background: #8a3a28; }

/* 腿：大腿-小腿-鞋 连续无缝 */
.pair {
  display: flex; justify-content: center; gap: 12px; height: 78px; margin-top: -1px;
  position: relative; z-index: 1;
}
.leg {
  width: 16px; height: 78px; position: relative;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: top center;
}
.leg .thigh {
  width: 16px; height: 32px; border-radius: 9px 9px 6px 6px; display: block;
  transform-origin: top center;
}
.leg .shin {
  width: 14px; height: 30px; border-radius: 6px; display: block; margin-top: -3px;
}
.leg .shoe {
  width: 22px; height: 11px; border-radius: 3px 9px 4px 3px; display: block; margin-top: -2px;
  filter: brightness(1.2); box-shadow: 0 2px 0 rgba(0,0,0,.28);
}
.char.gpt .leg .thigh, .char.gpt .leg .shin { background: #064a36; }
.char.grok .leg .thigh, .char.grok .leg .shin { background: #3a3a48; }
.char.claude .leg .thigh, .char.claude .leg .shin { background: #6a2818; }
.char.gpt .leg .shoe { background: #0a6b4c; }
.char.grok .leg .shoe { background: #5a5a6a; }
.char.claude .leg .shoe { background: #a04830; }

.char.walk .leg.L { animation: stepLegA .48s ease-in-out infinite alternate; }
.char.walk .leg.R { animation: stepLegB .48s ease-in-out infinite alternate; }
@keyframes stepLegA { from { transform: rotate(-11deg); } to { transform: rotate(13deg); } }
@keyframes stepLegB { from { transform: rotate(11deg); } to { transform: rotate(-13deg); } }

/* —— 互动动作：握手 / 击掌 / 拥抱 / 贴贴 / 欢呼 / 鞠躬 / 指点 —— */
.char.shake-r .arm.R {
  animation: none !important;
  transform: rotate(-92deg) translate(4px, 2px);
}
.char.shake-l .arm.L {
  animation: none !important;
  transform: rotate(92deg) translate(-4px, 2px);
}
.char.shake-r, .char.shake-l {
  animation: shakeBob .55s ease-in-out infinite alternate;
}
@keyframes shakeBob {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}
.char.highfive .arm.L {
  animation: none !important;
  transform: rotate(48deg) translateY(-8px);
}
.char.highfive .arm.R {
  animation: none !important;
  transform: rotate(-48deg) translateY(-8px);
}
.char.highfive {
  animation: hfPop .7s var(--ease) both;
}
@keyframes hfPop {
  0% { transform: translateY(8px) scale(.96); }
  40% { transform: translateY(-10px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
.char.hug .arm.L {
  animation: none !important;
  transform: rotate(70deg) translate(6px, 4px);
}
.char.hug .arm.R {
  animation: none !important;
  transform: rotate(-70deg) translate(-6px, 4px);
}
.char.hug { animation: hugSway 1.1s ease-in-out infinite alternate; }
@keyframes hugSway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(2deg); }
}
.char.bump {
  animation: bumpIn .7s var(--ease) both;
}
.char.bump.lean-l .char-stack { transform: rotate(-10deg) translateX(6px); }
.char.bump.lean-r .char-stack { transform: rotate(10deg) translateX(-6px); }
.char.bump.lean-c .char-stack { transform: translateY(-4px) scale(1.04); }
@keyframes bumpIn {
  0% { transform: scale(.94); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.char.cheer .arm.L {
  animation: cheerArm .55s ease-in-out infinite alternate;
  transform-origin: 50% 4px;
}
.char.cheer .arm.R {
  animation: cheerArm .55s ease-in-out infinite alternate-reverse;
}
@keyframes cheerArm {
  from { transform: rotate(28deg) translateY(-2px); }
  to { transform: rotate(62deg) translateY(-10px); }
}
.char.bow .char-stack {
  animation: bowDown .9s ease-in-out infinite alternate;
  transform-origin: 50% 70%;
}
@keyframes bowDown {
  from { transform: rotate(0deg); }
  to { transform: rotate(16deg); }
}
.char.point .arm.R {
  animation: none !important;
  transform: rotate(-100deg) translate(2px, -2px);
}
.char.type .arm.L {
  animation: typeArm .22s ease-in-out infinite alternate;
}
.char.type .arm.R {
  animation: typeArm .22s ease-in-out infinite alternate-reverse;
}
@keyframes typeArm {
  from { transform: rotate(8deg) translateY(0); }
  to { transform: rotate(-18deg) translateY(3px); }
}
.char.kick .leg.R {
  animation: kickLeg .55s ease-in-out infinite alternate;
}
@keyframes kickLeg {
  from { transform: rotate(0deg); }
  to { transform: rotate(-28deg); }
}

.label {
  display: block; text-align: center; margin-top: 5px;
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(10px, 1.2vw, 12px); letter-spacing: .14em; font-weight: 400;
  color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45);
}

.bubble {
  position: absolute; right: 7%; top: 12%; width: min(22vw, 170px); height: min(22vw, 170px); z-index: 15;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe0f0 55%, #ff8fab);
  box-shadow: 0 12px 30px rgba(255,77,109,.3), inset 0 0 0 5px rgba(255,255,255,.5);
  display: grid; place-items: center; opacity: 0; transform: scale(.4);
  transition: transform .25s var(--ease), opacity .2s;
}
.bubble img { width: 52%; border-radius: 50%; }
.bubble.on { opacity: 1; }
.bubble.b0 { transform: scale(.55); } .bubble.b1 { transform: scale(.75); }
.bubble.b2 { transform: scale(.95); } .bubble.b3 { transform: scale(1.1); }
.bubble.b4 { transform: scale(1.22); }

.eye {
  position: absolute; left: 50%; top: 40%; z-index: 16;
  width: min(34vw, 280px); height: min(34vw, 280px);
  margin: calc(min(34vw, 280px)/-2) 0 0 calc(min(34vw, 280px)/-2);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6e8, #4cc9f0 45%, #1a1020 78%);
  box-shadow: 0 0 40px rgba(76,201,240,.4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(.55); transition: transform .28s var(--ease), opacity .2s, visibility .2s;
  display: grid; place-items: center;
}
.iris {
  width: 62%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9b5de5, #2b1055);
  display: grid; place-items: center;
}
.pupil {
  width: 64%; height: 64%; border-radius: 50%; background: #12081f;
  display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden;
}
.pupil img { width: 28%; border-radius: 50%; }
.eye.on { opacity: 1; visibility: visible; transform: scale(1); }
.eye.push { transform: scale(1.85); }

/* 人潮剪影：实心不透明，无脸无 logo，不吓人 */
.crowd {
  position: absolute; left: 0; right: 0; bottom: 14%; height: 32%; z-index: 11;
  display: flex; justify-content: space-evenly; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .85s ease, transform .85s var(--ease);
  transform: translateY(12px);
  padding: 0 4%;
}
.crowd.on { opacity: 1; transform: translateY(0); }
.sil {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: clamp(28px, 4.5vw, 42px);
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.35));
  transition: transform .2s var(--ease);
  opacity: 1 !important;
}
.sil-head {
  width: 16px; height: 16px; border-radius: 50%; display: block;
  margin-bottom: 2px;
}
.sil-body {
  width: 22px; height: 28px; border-radius: 8px 8px 5px 5px; display: block;
}
.sil-legs {
  display: flex; gap: 5px; margin-top: 1px;
}
.sil-legs i {
  display: block; width: 7px; height: 18px; border-radius: 4px;
}
.sil-warm .sil-head, .sil-warm .sil-body, .sil-warm .sil-legs i { background: #c45c3e; }
.sil-warm .sil-body { background: linear-gradient(180deg, #e07050, #a04028); }
.sil-cool .sil-head, .sil-cool .sil-body, .sil-cool .sil-legs i { background: #3a6a8a; }
.sil-cool .sil-body { background: linear-gradient(180deg, #5a90b0, #2a5070); }
.sil-dusk .sil-head, .sil-dusk .sil-body, .sil-dusk .sil-legs i { background: #7a4a68; }
.sil-dusk .sil-body { background: linear-gradient(180deg, #a06088, #5a3048); }
.sil.s0 { width: clamp(22px, 3.5vw, 32px); }
.sil.s1 { width: clamp(30px, 4.8vw, 44px); }
.sil.s2 { width: clamp(20px, 3.2vw, 28px); }
.sil.s3 { width: clamp(32px, 5vw, 46px); }
.sil.s4 { width: clamp(26px, 4vw, 36px); }
.sil.s0 .sil-head { width: 12px; height: 12px; }
.sil.s0 .sil-body { width: 16px; height: 22px; }
.sil.s0 .sil-legs i { height: 14px; width: 5px; }
.crowd.on .sil { animation: silBob 1.15s ease-in-out infinite alternate; }
.crowd.on .sil.s1 { animation-delay: .12s; }
.crowd.on .sil.s2 { animation-delay: .24s; }
.crowd.on .sil.s3 { animation-delay: .36s; }
.crowd.on .sil.s4 { animation-delay: .48s; }
@keyframes silBob {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 17; pointer-events: none; }

.lyrics {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 32px) clamp(30px, 4.2vw, 44px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(6,3,12,.35) 28%, rgba(6,3,12,.9) 72%);
  pointer-events: none;
}
.ly-sub {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  color: var(--gold); letter-spacing: .28em; font-size: clamp(11px, 1.3vw, 13px); min-height: 16px;
  text-shadow: 0 0 18px rgba(255,209,102,.35);
}
.ly-main {
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(22px, 4.2vw, 48px); line-height: 1.28; letter-spacing: .08em;
  color: rgba(255,246,232,.28);
  text-shadow: 0 3px 0 rgba(0,0,0,.45);
  transition: none;
}
.ly-main span {
  display: inline-block; color: rgba(255,246,232,.28);
  transition: color .05s linear, opacity .05s linear, text-shadow .1s;
}
.ly-main span.on {
  color: #fff8f0;
  text-shadow: 0 3px 0 rgba(0,0,0,.5), 0 0 16px rgba(255,190,120,.35);
}
.ly-main span.half {
  color: #ffe8d0;
  text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 10px rgba(255,180,120,.22);
}
.ly-main.pop { animation: pop .35s var(--ease); }
@keyframes pop {
  from { transform: translateY(4px); opacity: .75; }
  to { transform: none; opacity: 1; }
}
.ly-next {
  margin-top: 8px; font-size: clamp(11px, 1.4vw, 15px);
  color: rgba(255,246,232,.34); letter-spacing: .08em; min-height: 1.3em;
}
.copy {
  position: absolute; right: clamp(10px, 1.5vw, 16px); bottom: clamp(6px, 1vw, 10px); z-index: 21;
  font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .18em;
  color: rgba(255,246,232,.5); pointer-events: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}

.gate {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center;
  background: radial-gradient(520px 360px at 50% 40%, rgba(217,119,87,.2), transparent 70%), rgba(6,3,12,.84);
  backdrop-filter: blur(10px); transition: opacity .4s, visibility .4s;
  padding: 16px;
}
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner {
  text-align: center; padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 40px);
  border-radius: 22px; max-width: min(540px, 92vw);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.logo-row { display: flex; gap: 14px; justify-content: center; margin-bottom: 14px; }
.logo-row img {
  width: clamp(52px, 10vw, 64px); height: clamp(52px, 10vw, 64px);
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.gate-inner h1 {
  font-family: "Ma Shan Zheng", cursive; font-size: clamp(36px, 8vw, 52px); letter-spacing: .16em;
  background: linear-gradient(90deg, #ffd166, #ff4d6d, #d97757);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-inner p {
  margin: 12px 0 20px; color: rgba(255,246,232,.74); line-height: 1.75;
  font-size: clamp(13px, 2.2vw, 15px);
}
#playBtn {
  border: 0; cursor: pointer; padding: 14px 30px; border-radius: 999px;
  font-size: clamp(14px, 2.4vw, 16px); font-weight: 700; letter-spacing: .12em;
  background: linear-gradient(90deg, #ff4d6d, #ffd166); color: #1a1020;
  box-shadow: 0 12px 28px rgba(255,77,109,.42);
  transition: transform .2s var(--ease), box-shadow .2s;
}
#playBtn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255,77,109,.5); }
#playBtn:active { transform: translateY(0); }

.bar {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(8px, 1.5vw, 14px);
  align-items: center; padding: 8px clamp(8px, 1.5vw, 14px) 10px;
}
.bar button, .chips {
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: var(--cream); padding: 9px 12px; border-radius: 12px; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.bar button:hover { background: rgba(255,255,255,.12); }
.chips { display: flex; gap: 6px; padding: 5px 8px; }
.chips img { width: 24px; height: 24px; border-radius: 50%; }
.track { display: grid; gap: 5px; min-width: 0; }
.meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: clamp(10px, 1.2vw, 12px); color: rgba(255,246,232,.62);
}
.meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail {
  height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
#prog {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #00e5d0, #ffd166, #d97757, #ff4d6d);
  box-shadow: 0 0 12px rgba(255,209,102,.35);
  transition: width .05s linear;
}

@media (max-width: 640px) {
  .bar { grid-template-columns: auto 1fr; padding-bottom: max(10px, var(--safe-b)); }
  .chips { display: none; }
  .boat { width: min(90vw, 420px); left: 5%; bottom: 20%; }
  .ly-main { font-size: clamp(20px, 6.2vw, 32px); }
  .lyrics { padding: 14px 14px 30px; }
  .hills { bottom: 16%; height: 24%; }
  .c-a1, .clouds.heavy .c1 { width: min(48vw, 220px); }
  .c-a2, .clouds.heavy .c2 { width: min(55vw, 260px); }
  .c-a3, .clouds.heavy .c3 { width: min(40vw, 180px); }
  .clouds.heavy .c4 { display: none; }
  .birds i:nth-child(4), .birds i:nth-child(5) { display: none; }
  .moon { width: min(28vw, 140px); height: min(28vw, 140px); margin-left: calc(min(28vw, 140px) / -2); }
  .char { width: clamp(78px, 18vw, 96px); }
  .gate-inner { padding: 20px 16px; }
}
@media (max-width: 400px) {
  .ly-sub { letter-spacing: .16em; }
  .copy { font-size: 9px; }
  .replayBtn, #replayBtn { padding: 8px 10px; font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  #stage { aspect-ratio: auto; height: calc(100dvh - 56px); margin-top: 4px; }
  .bar { padding: 4px 8px 6px; }
  .lyrics { padding-bottom: 22px; }
  .ly-main { font-size: clamp(18px, 4.5vh, 28px); }
}
