.stage {
  background: #041014;
  border: 1px solid rgba(201, 163, 106, .4);
  border-radius: 14px;
  overflow: hidden;
}
.stage svg { width: 100%; height: auto; display: block; }
.amita-picture { display: block; width: 100%; height: auto; }
.door-amita.stage, .teacher-frame.stage {
  display: block;
  background: linear-gradient(180deg, #2ea0d0 0 40%, #f3e6cf 40% 100%);
}
#stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: linear-gradient(180deg, #2ea0d0 0 46%, #f3e6cf 46% 100%);
}
#stage .amita-picture {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
}
#stage.doll-stage {
  display: block;
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #9fd4f5;
}
.doll-stage .sea {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  bottom: 0;
  background: #1c86c9;
}
.water-river { background: #d7ead4; }
.water-river .sea { background: #1d6a52; top: 42%; }
.water-lake { background: #d5eef5; }
.water-lake .sea { background: #14748a; }
.water-ocean { background: #b9dff5; }
.water-ocean .sea { background: #0a5684; top: 40%; }
.doll-stage.show-full .sea { top: 0; }
.doll-stage.show-shallow .sea { top: 64%; }
#stage.doll-stage.show-mouth {
  background: linear-gradient(180deg, #e7f6ff 0%, #c5e8f8 100%);
}
.doll-stage.show-mouth .sea {
  top: 24%;
  background: linear-gradient(180deg, #2b94c9 0%, #1876b4 20%, #0e568c 100%);
}
.doll-stage.show-mouth .sea:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(255, 255, 255, .8);
}
.doll-stage[data-move="breath"] .bubbles {
  left: 44%;
  top: 1%;
  width: 30px;
  height: 44px;
}
.doll-stage[data-move="breath"] .bubbles:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 14px 2px 0 -1px rgba(255, 255, 255, .92), 7px -4px 0 -2px rgba(255, 255, 255, .88);
}
.doll-stage .rig {
  position: absolute;
  width: 150px;
  height: 360px;
  left: 50%;
  top: 50%;
  margin-left: -75px;
  margin-top: -180px;
  z-index: 3;
}
.doll-stage .place-low { top: 64%; }
.doll-stage .place-high { top: 36%; }
.doll-stage .place-left { left: 34%; }
.doll-stage .place-right { left: 70%; }
.doll-stage .doll,
.doll-stage .limb,
.doll-stage .piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.doll-stage .arm.l { transform-origin: 26.4% 33.2%; z-index: 5; }
.doll-stage .arm.r { transform-origin: 78.9% 31.3%; z-index: 5; }
.doll-stage .limb.l { transform-origin: 33.6% 63.8%; z-index: 3; }
.doll-stage .limb.r { transform-origin: 62% 63.8%; z-index: 3; }
.doll-stage .calf.l { transform-origin: 28.8% 80.7%; }
.doll-stage .calf.r { transform-origin: 68% 80.7%; }
.doll-stage .body { z-index: 4; }
.doll-stage .board {
  position: absolute;
  height: 18px;
  border-radius: 20px;
  background: linear-gradient(#fffaf2, #e4d3ae);
  box-shadow: 0 4px 0 rgba(90, 60, 20, .18);
  z-index: 1;
}
.doll-stage .board-sit { left: -78px; right: -78px; top: 61%; }
.doll-stage .board-prone { left: -96px; right: -96px; top: 47%; height: 24px; }
.doll-stage .board-knee { left: -64px; right: -64px; top: 74%; }
.doll-stage .deck {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  background: #e6d3b8;
  border-bottom: 8px solid #c9b08a;
  z-index: 1;
}
.doll-stage .shore,
.doll-stage .shore-right {
  position: absolute;
  bottom: 0;
  top: 34%;
  width: 32%;
  background: #e4cf9e;
  z-index: 1;
}
.doll-stage .shore { left: 0; border-radius: 0 70px 0 0; }
.doll-stage .shore-right { right: 0; left: auto; border-radius: 70px 0 0 0; }
.doll-stage .face-cover {
  position: absolute;
  left: 34%;
  top: 9%;
  width: 32%;
  height: 15%;
  border-radius: 50%;
  background: rgba(12, 110, 170, .78);
  z-index: 6;
  opacity: 0;
}
.doll-stage.show-face .face-cover { opacity: 1; }
.doll-stage .bubbles {
  position: absolute;
  left: 46%;
  top: 16%;
  width: 40px;
  height: 54px;
  z-index: 7;
  pointer-events: none;
}
.doll-stage .bubbles i {
  position: absolute;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  animation: locked-bubble-rise 1.7s ease-in infinite;
}
.doll-stage .bubbles i:nth-child(2) { left: 16px; width: 8px; height: 8px; animation-delay: .3s; }
.doll-stage .bubbles i:nth-child(3) { left: 8px; width: 9px; height: 9px; animation-delay: .6s; }
.doll-stage .wave {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 38%;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  z-index: 4;
}
.doll-stage .foam { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.doll-stage .foam i {
  position: absolute;
  width: 18px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
}
.doll-stage .foam i:nth-child(1) { left: 18%; top: 58%; }
.doll-stage .foam i:nth-child(2) { left: 46%; top: 64%; width: 26px; }
.doll-stage .foam i:nth-child(3) { right: 16%; top: 54%; }
.doll-stage .arrows {
  position: absolute;
  right: 18px;
  top: 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.doll-stage .arrows i {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #fffaf2;
}
.doll-stage .friends { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.doll-stage .friends i {
  position: absolute;
  top: 42%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4efe4;
  box-shadow: 0 28px 0 -10px #9bb8b4;
}
.doll-stage .friends i:first-child { left: 8%; }
.doll-stage .friends i:last-child { right: 8%; }
.doll-stage .stick {
  position: absolute;
  left: 16%;
  top: 42%;
  width: 42%;
  height: 7px;
  border-radius: 7px;
  background: #c9a36a;
  transform: rotate(16deg);
  z-index: 4;
}
.doll-stage .ring {
  position: absolute;
  left: 10%;
  top: 58%;
  width: 34px;
  height: 34px;
  border: 5px solid #f4efe4;
  border-radius: 50%;
  z-index: 2;
}
.doll-stage .mark {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 8px;
  height: 42px;
  background: #c9a36a;
  z-index: 2;
}
.doll-stage .mark:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fffaf2;
}
@media (prefers-reduced-motion: reduce) {
  .doll-stage .rig,
  .doll-stage .doll,
  .doll-stage .limb,
  .doll-stage .piece,
  .doll-stage .board,
  .doll-stage .face-cover,
  .doll-stage .bubbles,
  .doll-stage .bubbles i { animation: none !important; }
}
.locked-move { position: relative; width: 100%; }
.locked-amita { display: block; width: 100%; height: auto; }
.locked-bubbles {
  position: absolute;
  left: 46%;
  top: 21%;
  width: 48px;
  height: 70px;
  z-index: 3;
  pointer-events: none;
}
.locked-bubbles span {
  position: absolute;
  top: 42px;
  left: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  animation: locked-bubble-rise 1.8s ease-in infinite;
}
.locked-bubbles span:nth-child(2) { left: 24px; top: 46px; width: 8px; height: 8px; animation-duration: 2.1s; animation-delay: .35s; }
.locked-bubbles span:nth-child(3) { left: 16px; top: 40px; width: 9px; height: 9px; animation-duration: 1.6s; animation-delay: .7s; }
@keyframes locked-bubble-rise {
  0% { transform: translate(0, 8px); opacity: 0; }
  18% { opacity: .98; }
  100% { transform: translate(6px, -78px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .locked-move, .locked-bubbles, .locked-bubbles span { animation: none !important; }
}
.girl-pos { transform-box: view-box; transform-origin: 0 0; }
.scene .sky { fill: #08323c; }
.scene .water-fill { fill: #0e6272; }
.scene[data-water="river"] .sky { fill: #102e28; }
.scene[data-water="river"] .water-fill { fill: #1d6a52; }
.scene[data-water="lake"] .sky { fill: #0c3340; }
.scene[data-water="lake"] .water-fill { fill: #14748a; }
.scene[data-water="ocean"] .sky { fill: #082433; }
.scene[data-water="ocean"] .water-fill { fill: #0a5684; }
.wave-line {
  fill: none;
  stroke: #d7ece8;
  stroke-opacity: .55;
  stroke-width: 2;
  animation: wave-slide 5s linear infinite;
}
.wave-b { stroke-opacity: .28; animation-duration: 7s; }
.scene[data-water="ocean"] .wave-line { stroke-width: 3; animation-duration: 3.2s; }
.tag, .where-label, .rip text {
  fill: #c9a36a;
  font-family: Georgia, serif;
  font-size: 16px;
}
.where-label { fill: #d7ece8; }
.shore path { fill: #cbb892; }
.wall rect { fill: #d7ece8; }
.wall-deep { fill: #07161c; }
.downstream path, .rip path { fill: #c9a36a; stroke: #c9a36a; stroke-width: 3; stroke-linecap: round; }
.foam circle { fill: #f4efe4; opacity: .85; }
.stick line { stroke: #cbb892; stroke-width: 5; stroke-linecap: round; }
.ring circle { fill: none; stroke: #c9a36a; stroke-width: 4; }
.friends circle { fill: #f4efe4; }
.friends rect { fill: #9bb8b4; }
.board-lie ellipse, .board-stand ellipse { fill: #f4efe4; }
.board-core { fill: #e4d3ae; }
.bubbles circle { fill: #f4efe4; }
.hair-back, .curl, .curl-front, .hair-cap { fill: #1a120e; }
.curl-lite { fill: #2e2016; }
.skin, .limb-shape, .neck, .foot { fill: #e88c4e; }
.suit, .sleeve, .shorts { fill: #c81016; }
.piping, .cuff, .cross { fill: #fff8f4; }
.hem { fill: none; stroke: #fff8f4; stroke-width: 1.7; stroke-linecap: round; }
.suit-neck { fill: none; stroke: #fff8f4; stroke-width: 1.5; stroke-linecap: round; }
.eye-soft { fill: #fffaf6; }
.iris { fill: #5c3018; }
.eye { fill: #1a100c; }
.eye-shine { fill: #fff; }
.blush { fill: #d46545; opacity: .42; }
.smile, .brow, .nose { fill: none; stroke: #6a341c; stroke-linecap: round; }
.smile { stroke-width: 1.45; }
.brow { stroke-width: 1.15; }
.nose { stroke-width: 1.1; }
.lanyard { fill: none; stroke: #1a120e; stroke-width: 1.7; stroke-linecap: round; }
.whistle-body { fill: #e10612; }
.whistle-top { fill: #1a120e; }
.whistle-slot { fill: #fff8f4; }
.finger { fill: none; stroke: #e88c4e; stroke-width: 3.1; stroke-linecap: round; }
.hair-cap, .hand-peace { display: none; }
.show-peace .arm-r .hand-peace { display: block; }
.show-peace .arm-r .hand-plain { display: none; }
.scene.face-down .face,
.scene.face-down .curl-front,
.scene.face-down .front { display: none; }
.scene.face-down .hair-cap { display: block; }
.shore, .wall, .downstream, .rip, .foam, .stick, .ring, .friends,
.board-lie, .board-stand, .bubbles { display: none; }
.show-shore .shore,
.show-wall .wall,
.show-downstream .downstream,
.show-rip .rip,
.show-foam .foam,
.show-stick .stick,
.show-ring .ring,
.show-friends .friends,
.show-board-lie .board-lie,
.show-board-stand .board-stand,
.show-bubbles .bubbles { display: block; }
.b1 { animation: bubble-rise 1.8s ease-in infinite; }
.b2 { animation: bubble-rise 2.1s ease-in infinite .4s; }
.b3 { animation: bubble-rise 1.6s ease-in infinite .8s; }
@keyframes wave-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-80px); }
}
@keyframes bubble-rise {
  from { transform: translate(0, 6px); opacity: .95; }
  to { transform: translate(3px, -26px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene * { animation: none !important; }
}
