.cl-play:is([data-world-game="9"],[data-world-game="40"],[data-world-game="66"],[data-world-game="43"],[data-world-game="33"],[data-world-game="5"],[data-world-game="179"],[data-world-game="61"]) :is(#cl-exit,#cl-settings,#cl-mute) {
  color:#4b2d1d;
  background:#fff0d6;
  border-color:#f0d5ad;
  box-shadow:0 3px 10px #3a28366b;
}
.cl-play:is([data-world-game="9"],[data-world-game="40"],[data-world-game="66"],[data-world-game="43"],[data-world-game="33"],[data-world-game="5"],[data-world-game="179"],[data-world-game="61"]) #cl-settings {
  width:clamp(24px,2.65vw,42px);
  height:clamp(46px,8.7dvh,82px);
  border-radius:15px 0 0 15px;
}

body.cl-running .breath-fullscreen {
  max-width:none;
  height:100dvh;
  overflow:hidden;
  background:#7ba996 var(--world-image) center / cover;
}
body .breath-fullscreen[data-world-game="40"] { background-image:url("assets/snow-gift/winter-clearing.webp"); }
body .breath-fullscreen[data-world-game="66"] { background-image:url("assets/mouse-rhythm/courtyard.webp"); }
body .breath-fullscreen[data-world-game="43"] { background-image:url("assets/birthday/room.webp"); }
.breath-fullscreen[data-world-game="61"] { --world-image:url("assets/monkey-rope/river.webp"); background-size:100% 100%; }
.breath-fullscreen[data-world-game="179"] { --world-image:url("assets/dragon-garden/garden.webp"); }
body .breath-fullscreen[data-world-game="5"] { background-image:url("assets/bouquet/veranda.webp"); }
.breath-fullscreen[data-world-game="33"] { --world-image:none; }
body.cl-running .breath-fullscreen[data-world-game="188"] { background-image:url("assets/mountain-echo.webp"); }
@media(max-aspect-ratio:3/4){
  body.cl-running .breath-fullscreen[data-world-game="43"] { background-image:url("assets/birthday/room-phone.webp"); }
  body.cl-running .breath-fullscreen[data-world-game="5"] { background-image:url("assets/bouquet/veranda-phone.webp"); }
  body.cl-running .breath-fullscreen[data-world-game="61"] { --world-image:url("assets/monkey-rope/river-phone.webp"); }
  body.cl-running .breath-fullscreen[data-world-game="179"] { --world-image:url("assets/dragon-garden/garden-phone.webp"); }
  body.cl-running .breath-fullscreen[data-world-game="188"] { background-image:url("assets/mountain-echo-phone.webp"); }
  body.cl-running .murt-stage .ag-board { background-image:url("assets/moustache/veranda-phone.webp") !important; }
}
.breath-fullscreen .cl-viewport { max-width:none; height:100%; padding:0; background:transparent; }
.breath-fullscreen .cl-head { height:0; min-height:0; margin:0; padding:0; }
.breath-fullscreen .cl-head h1,
.breath-stage .ag-mic { display:none; }
.breath-fullscreen #cl-stage { position:absolute; inset:0; }
.breath-fullscreen.cl-general-player #cl-stage > .breath-stage {
  position:absolute;
  inset:0;
  display:block;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#cl-stage > .breath-stage > .ag-board {
  position:absolute;
  inset:0;
  min-height:0;
  border:0;
  border-radius:0;
  padding:0;
  background:transparent;
}
.breath-fullscreen:has(#cl-drawer:not([hidden])) #cl-stage {
  right:clamp(210px,20.8vw,340px);
}
.breath-stage .ag-top {
  position:absolute;
  z-index:3;
  top:clamp(51px,9vh,94px);
  right:clamp(10px,2vw,22px);
  padding:.35em .85em;
  border:1px solid #ead5a5;
  border-radius:999px;
  background:#fff9e9;
  color:#184941;
  box-shadow:0 3px 10px #25413438;
  font:750 clamp(1rem,2.55vh,1.5rem)/1.1 "Segoe UI",sans-serif;
}
.breath-stage .ag-top:empty { display:none; }
.breath-instructions {
  position:absolute;
  z-index:4;
  left:50%;
  bottom:clamp(12px,2.2vh,28px);
  transform:translateX(-50%);
  width:min(850px,calc(100% - 72px));
  display:grid;
  gap:7px;
  pointer-events:none;
}
.breath-instructions .ag-controls > * { pointer-events:auto; }
.breath-instructions .ag-status {
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding:.65em 1em;
  background:#fffdf2;
  border:1px solid #d6ceb0;
  border-radius:16px;
  color:#19463f;
  box-shadow:0 5px 24px #203b3650;
  font:650 clamp(16px,2.35vh,25px)/1.28 "Segoe UI",sans-serif;
  text-align:center;
}
.breath-instructions .ag-blow-progress {
  width:100%;
  height:8px;
  overflow:hidden;
  border:0;
  border-radius:99px;
  background:#fffdf2b8;
}
.breath-instructions progress::-webkit-progress-bar { background:#fffdf2b8; }
.breath-instructions progress::-webkit-progress-value { background:#df9a30; }
.breath-instructions .ag-btn {
  background:#fffdf3;
  border:1px solid #b6c7a8;
  font-weight:700;
  box-shadow:0 2px 8px #304c4539;
}
.breath-instructions .ag-btn:disabled { opacity:.76; }
.breath-fullscreen #cl-stage .breath-stage .ag-world,
.breath-fullscreen #cl-stage .breath-stage .ag-rhythm {
  position:absolute;
  inset:0;
  max-width:none;
  width:100%;
  height:100%;
  min-height:0;
  border-radius:0;
  background:transparent;
}
.snow-gift-stage .ag-gift-reveal {
  position:absolute;
  left:50%;
  bottom:18%;
  width:min(64vw,105vh);
  height:min(55vh,68vw);
  transform:translateX(-50%);
  isolation:isolate;
  pointer-events:none;
}
.snow-gift-stage .ag-gift-reveal::before {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:71%;
  background:url("assets/snow-gift/stump.webp") center bottom / contain no-repeat;
  filter:drop-shadow(0 8px 9px #291d4166);
}
.snow-gift-stage .ag-gift-reveal .ag-reveal-item {
  position:absolute;
  bottom:33%;
  left:29%;
  width:42%;
  height:57%;
  object-fit:contain;
  object-position:center bottom;
  opacity:clamp(0,calc((var(--p,0) - .09)*10),1);
  clip-path:inset(0 0 0 clamp(0%,calc(114% - var(--p,0)*130%),100%));
  filter:drop-shadow(0 5px 5px #64505f4d);
  transition:opacity .14s linear,clip-path .14s linear;
}
.snow-gift-stage .ag-gift-reveal .ag-snow-cap {
  position:absolute;
  inset:0 2% 30%;
  background:url("assets/snow-gift/snow-cap.webp") center bottom / contain no-repeat;
  transform:translateX(calc(var(--p,0)*-11%)) scale(calc(1 - var(--p,0)*.22),calc(1 - var(--p,0)*.67));
  transform-origin:center bottom;
  opacity:clamp(0,calc(1.46 - var(--p,0)*1.62),1);
  transition:opacity .16s linear,transform .14s linear;
}
.snow-gift-stage .ag-gift-reveal .ag-snow {
  background:none;
  opacity:1;
}
.snow-gift-stage .ag-gift-reveal .ag-flake {
  font-size:clamp(8px,2.25vh,25px);
  color:#fff7ee;
  text-shadow:0 1px 4px #91778b9c;
  opacity:clamp(0,calc(var(--p,0)*1.6 - .10),.9);
  translate:calc(var(--p,0)*var(--drift-x)) calc(var(--p,0)*var(--drift-y));
  rotate:calc(var(--p,0)*var(--turn));
  transition:translate .13s linear,rotate .13s linear,opacity .16s linear;
}
.snow-gift-stage .ag-gift-reveal .ag-flake:nth-child(3n) { font-size:clamp(6px,1.3vh,15px); }
.snow-gift-stage .ag-world-40.ag-won .ag-flake { opacity:0; }
.snow-gift-stage .breath-instructions {
  width:max-content;
  max-width:calc(100% - 54px);
}
.snow-gift-stage .ag-status {
  padding:.55em clamp(.9rem,2.2vw,2.1rem);
  border:1px solid #f3d9af;
  border-radius:clamp(17px,2.5vh,34px);
  background:#fff0d6;
  color:#372217;
  box-shadow:0 6px 22px #33244255;
  font:750 clamp(17px,3.25vh,34px)/1.24 "Segoe UI",sans-serif;
}
#cl-stage > .snow-gift-stage[data-breath-phase="gift"] > .ag-board {
  display:block;
  container-type:size;
}
.snow-gift-stage[data-breath-phase="gift"] .ag-board::before {
  content:"";
  position:absolute;
  width:min(42cqw,63cqh);
  height:24%;
  left:50%;
  top:26%;
  transform:translateX(-50%);
  background:url("assets/snow-gift/stump.webp") center bottom / contain no-repeat;
  filter:drop-shadow(0 7px 9px #291d4166);
}
.snow-gift-stage[data-breath-phase="gift"] .ag-board > .ag-gift-token {
  position:absolute;
  top:7%;
  left:50%;
  transform:translateX(-50%);
  width:min(34cqw,41cqh);
  height:32%;
  min-height:0;
  max-width:none;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  cursor:grab;
  overflow:visible;
}
.snow-gift-stage[data-breath-phase="gift"] .ag-gift-token img.ag-cast-image {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 7px 7px #422c5a57);
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tiles {
  position:absolute;
  inset:auto 9% 15%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  place-items:stretch;
  width:auto;
  height:43%;
  gap:clamp(8px,3vw,46px);
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tiles .ag-tile {
  position:relative;
  min-width:0;
  max-width:none;
  width:100%;
  height:100%;
  padding:0 0 8%;
  background:transparent;
  border:0;
  box-shadow:none;
  isolation:isolate;
  overflow:visible;
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tiles .ag-tile::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:auto 4% 0;
  height:18%;
  border-radius:50%;
  background:#e2cfe4 url("assets/snow-gift/snow-cap.webp") center / 100% 100% no-repeat;
  box-shadow:0 6px 8px #56477b66,inset 0 -4px 4px #917fb26e;
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tiles .ag-tile img.ag-cast-image {
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 6px 5px #302b496e);
  transition:translate .17s ease,filter .17s ease;
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tile > span { display:none; }
.snow-gift-stage[data-breath-phase="gift"] .ag-tiles .ag-tile:is(:hover,:focus-visible) img { translate:0 -5px; }
.snow-gift-stage[data-breath-phase="gift"] .ag-gift-token:is(.ag-picked,:focus-visible,:hover) img {
  filter:drop-shadow(0 0 9px #fff2b9) drop-shadow(0 5px 7px #4d3d5b78);
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tile:focus-visible {
  outline:3px solid #fff7cb;
  outline-offset:4px;
}
.snow-gift-stage[data-breath-phase="gift"] .ag-tile:hover:not(:focus-visible) { outline:none; }
#cl-stage > .snow-gift-stage[data-breath-phase="won"] > .ag-board {
  flex-direction:row;
  gap:0;
  padding:6vh 4vw 18vh;
}
.snow-gift-stage[data-breath-phase="won"] .ag-board > img {
  width:min(46vw,53vh);
  height:min(46vw,53vh);
  max-height:none;
  object-fit:contain;
  filter:drop-shadow(0 7px 7px #3b325c65);
}
.snow-gift-stage[data-breath-phase="won"] .ag-board > .ag-delivered-gift {
  width:min(26vw,27vh);
  height:min(26vw,27vh);
  margin:19vh 0 0 max(-6vw,-5vh);
}
@media (max-width:620px) {
  .snow-gift-stage[data-breath-phase="gift"] .ag-tiles { inset-inline:4%; height:34%; }
  .snow-gift-stage .ag-gift-reveal { bottom:27%; }
}
@media (prefers-reduced-motion: reduce) {
  .snow-gift-stage .ag-gift-reveal :is(.ag-reveal-item,.ag-snow-cap,.ag-flake),
  .snow-gift-stage[data-breath-phase="gift"] .ag-tiles .ag-tile img.ag-cast-image { transition:none; }
}

.birthday-stage .ag-top {
  top:clamp(12px,2.1vh,25px);
  left:clamp(12px,1.8vw,27px);
  right:auto;
  color:#fff5e1;
  border-color:#fff2dc44;
  background:#603244e8;
}
.birthday-stage .breath-instructions { width:max-content; max-width:calc(100% - 56px); }
.birthday-stage .ag-status {
  padding:.56em clamp(.8rem,2vw,2rem);
  background:#fff2dd;
  border-color:#f2d6a4;
  border-radius:27px;
  color:#43221b;
  font:750 clamp(17px,3vh,32px)/1.24 "Segoe UI",sans-serif;
}
.breath-fullscreen #cl-stage .birthday-stage .ag-cake-tray {
  position:absolute;
  inset:auto 4% 22%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:end;
  gap:clamp(5px,2vw,35px);
  width:auto;
  height:auto;
  min-height:0;
  margin:0;
  padding:0;
  background:none;
}
.birthday-stage .ag-cake-choice {
  min-width:0;
  min-height:0;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  transition:translate .17s;
}
.birthday-stage .ag-cake-choice:hover:enabled,
.birthday-stage .ag-cake-choice:focus-visible {
  outline:0;
  background:transparent;
  box-shadow:none;
  translate:0 -7px;
}
.birthday-stage .ag-cake-choice:focus-visible { outline:3px solid #fff2c9; outline-offset:6px; }
.birthday-cake-thumb {
  display:block;
  width:100%;
  filter:drop-shadow(0 10px 8px #44271e68);
}
.birthday-stage .ag-world-43 .ag-cake {
  left:50%;
  bottom:12%;
  width:min(58vw,102vh);
  max-width:67%;
  height:auto;
  aspect-ratio:1.67;
  transform:translateX(-50%);
  background:none;
  box-shadow:none;
}
.birthday-cake-art {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  filter:drop-shadow(0 12px 10px #482c2355);
}
.birthday-stage .ag-world-43 .ag-party-child {
  width:min(26vw,44vh);
  height:58%;
  left:5%;
  bottom:25%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 7px 6px #59382632);
}
.birthday-stage .ag-candles { left:15%; right:15%; bottom:64%; height:42%; }
.birthday-stage .ag-cake[data-cake="orange"] .ag-candles { bottom:60%; }
.birthday-stage .ag-cake[data-cake="cherry"] .ag-candles { bottom:65%; }
.birthday-stage .ag-cake[data-cake="chocolate"] .ag-candles { bottom:59%; }
.birthday-stage .ag-candle {
  --wax:#ee83a0;
  width:clamp(5px,1.23vw,21px);
  background:repeating-linear-gradient(135deg,#fff7dfb2 0 11%,transparent 12% 21%) 0 0 / 100% 22%,
    linear-gradient(90deg,#7e4b3e42,transparent 45%,#fff7e662),var(--wax);
  box-shadow:1px 2px 2px #622e3544;
}
.birthday-stage .ag-candle:nth-child(4n + 2) { --wax:#f0b866; }
.birthday-stage .ag-candle:nth-child(4n + 3) { --wax:#a591db; }
.birthday-stage .ag-candle:nth-child(4n + 4) { --wax:#75b8d7; }
.birthday-stage .ag-candle::before {
  content:"";
  position:absolute;
  left:43%;
  bottom:100%;
  width:16%;
  min-width:1px;
  height:clamp(4px,.85vh,10px);
  border-radius:50% 50% 0 0;
  background:#58352d;
}
.birthday-stage .ag-flame {
  left:50%;
  bottom:calc(100% + clamp(3px,.75vh,8px));
  width:125%;
  height:54%;
  border-radius:68% 28% 55% 45% / 77% 31% 69% 23%;
  background:radial-gradient(ellipse at 52% 76%,#fffbe6 0 20%,#ffd66b 45%,#fa9c36 71%,#e77729);
  transform-origin:center bottom;
  transform:translateX(-50%) rotate(calc(var(--wind,0)*67deg)) scaleY(calc(1 - .79 * var(--flame-wear,0)));
  opacity:calc(1 - .60 * var(--flame-wear,0));
  box-shadow:0 0 14px #ffbc60a8;
  animation:none;
  transition:transform .11s ease-out,opacity .15s ease-out;
}
.birthday-stage .ag-out .ag-flame { opacity:0; box-shadow:none; }
.birthday-stage .ag-won .ag-party-child { animation:breath-celebrate .56s ease-in-out 2; }
@media(max-aspect-ratio:1/1){
  .breath-fullscreen #cl-stage .birthday-stage .ag-cake-tray {
    inset:11% 8% 20%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    align-items:center;
  }
  .birthday-stage .ag-cake-choice,.birthday-cake-thumb { max-height:100%; }
  .birthday-cake-thumb { object-fit:contain; }
  .birthday-stage .ag-world-43 .ag-cake { width:77vw; max-width:82%; bottom:23%; }
  .birthday-stage .ag-world-43 .ag-party-child { width:32vw; bottom:37%; }
}
@media(prefers-reduced-motion:reduce){
  .birthday-stage .ag-cake-choice,.birthday-stage .ag-flame { transition:none; }
  .birthday-stage .ag-won .ag-party-child { animation:none; }
}
.breath-stage .ag-character {
  flex:0 1 clamp(95px,16vw,205px);
  line-height:1.15;
  border-color:#cfcbac;
  padding:clamp(5px,1vw,14px);
  border-radius:18px;
  background:#fffcf0;
}
.breath-stage .ag-character .ag-emblem { height:clamp(62px,23vh,230px); width:100%; }
.breath-stage .ag-world-33 .ag-portrait-cast { height:min(84%,80vw); bottom:8%; }

.mouse-rhythm-stage .breath-instructions { display:none; }
.mouse-rhythm-stage .ag-rhythm[data-game="66"] {
  container-type:size;
}
.mouse-rhythm-art {
  position:absolute;
  left:50%;
  top:50%;
  width:max(100cqw,177.684cqh);
  aspect-ratio:1672 / 941;
  transform:translate(-50%,-50%);
  background:#162a4c url("assets/mouse-rhythm/courtyard.webp") center / contain no-repeat;
}
.mouse-rhythm-lamp {
  position:absolute;
  left:26.4354%;
  top:8.9267%;
  width:17.6435%;
  height:26.8863%;
  opacity:0;
}
.ag-rhythm[data-game="66"][data-breath-phase="lit"] .mouse-rhythm-lamp { opacity:1; }
.mouse-rhythm-cat,.mouse-rhythm-little {
  position:absolute;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 4px 4px #1d1b2660);
}
.mouse-rhythm-cat { left:11%; bottom:52%; width:12%; height:19%; }
.mouse-rhythm-little { left:83%; bottom:40%; width:9%; height:24%; transform-origin:center bottom; }
.ag-rhythm[data-game="66"] [data-talking="true"] {
  transform-origin:center bottom;
  animation:mouse-dialogue-nod .55s ease-in-out infinite alternate;
}
@keyframes mouse-dialogue-nod { to { transform:rotate(-2deg) translateY(-1%); } }
.ag-mouse-pull {
  position:absolute;
  left:calc(9% + 43% * var(--up,0));
  bottom:28%;
  width:44%;
  height:36%;
  scale:calc(1 - .16 * var(--up,0));
  transform-origin:left bottom;
}
.ag-pulling-mouse,.ag-mouse-dish,.ag-mouse-rope { position:absolute; }
.ag-pulling-mouse {
  inset:auto 0 0 auto;
  z-index:2;
  width:69%;
  height:100%;
  object-fit:contain;
  object-position:right bottom;
  transform-origin:78% 92%;
  filter:drop-shadow(0 5px 4px #2e261a77);
  animation:baursak-trot .32s ease-in-out infinite;
  animation-play-state:paused;
}
.ag-mouse-dish {
  inset:auto auto 0 0;
  width:40%;
  height:68%;
}
.ag-baursak {
  position:relative;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:right bottom;
  filter:drop-shadow(0 5px 3px #37201683);
}
.ag-rhythm[data-game="66"][data-breath-phase="lit"] .ag-baursak {
  filter:brightness(1.08) drop-shadow(0 5px 3px #37201683);
}
.ag-mouse-rope {
  z-index:3;
  left:38%;
  width:43%;
  bottom:24%;
  height:12%;
  border-bottom:clamp(3px,.42cqw,7px) solid #c79a64;
  border-radius:0 0 39% 46%;
  transform:rotate(-10deg);
  transform-origin:left bottom;
  filter:drop-shadow(0 2px 0 #58391c) drop-shadow(0 -1px 0 #f6d5a5);
}
.ag-mouse-blowing .ag-pulling-mouse { animation-play-state:running; }
.ag-mouse-blowing .ag-mouse-rope { height:0; border-radius:0; }
@keyframes baursak-trot {
  0%,100% { transform:none; }
  45% { transform:translateY(-2%) rotate(3deg); }
}
.ag-rhythm[data-game="66"].ag-rhythm-won .mouse-rhythm-little {
  z-index:4;
  animation:mouse-happy .32s ease 2;
}
@media (orientation:portrait) and (max-width:650px) {
  body .breath-fullscreen[data-world-game="66"] {
    background-image:url("assets/mouse-rhythm/courtyard-phone.webp");
  }
  .mouse-rhythm-art {
    width:100cqw;
    height:clamp(100cqh,211cqw,134cqh);
    aspect-ratio:auto;
    background:#162a4c url("assets/mouse-rhythm/courtyard-phone.webp") center / 100% 100% no-repeat;
  }
  .mouse-rhythm-lamp { display:none; }
  .mouse-rhythm-art::after {
    content:"";
    position:absolute;
    left:23%;top:21%;width:17%;height:8%;
    background:radial-gradient(ellipse,#ffffb5 0%,#ffc75b 24%,#ff9a2bd9 44%,#ec781e47 62%,transparent 76%);
    filter:drop-shadow(0 0 8px #ffa52c);
    opacity:0;
    pointer-events:none;
  }
  .ag-rhythm[data-game="66"][data-breath-phase="lit"] .mouse-rhythm-art::after { opacity:1; }
  .mouse-rhythm-cat { left:12%;bottom:49%;width:20%;height:11%; }
  .mouse-rhythm-little { left:75%;bottom:55.8%;width:15%;height:11%; }
  .ag-mouse-pull {
    left:calc(4% + 37% * var(--up,0));
    bottom:calc(27% + 27% * var(--up,0));
    width:68%;height:23%;
    scale:calc(1 - .35 * var(--up,0));
  }
  .ag-mouse-dish { bottom:-3%; }
  .ag-mouse-rope { left:34%;bottom:19%;transform:rotate(-18deg); }
}
@keyframes mouse-happy {
  50% { transform:translateY(-7%) rotate(-4deg); }
}
@media (prefers-reduced-motion:reduce) {
  .ag-rhythm[data-game="66"] [data-talking="true"],
  .ag-rhythm[data-game="66"].ag-rhythm-won .mouse-rhythm-little,
  .ag-pulling-mouse { animation:none; }
}
.bouquet-pattern-stage .breath-instructions {
  width:max-content;
  max-width:calc(100% - 55px);
}
.bouquet-pattern-stage .breath-instructions .ag-status {
  padding:.57em clamp(.8rem,2.2vw,2rem);
  border:1px solid #e0bd83;
  border-radius:28px;
  background:#fff0d5;
  color:#592934;
  box-shadow:0 5px 16px #4a30275f;
  font:700 clamp(17px,3.1vh,33px)/1.23 Georgia,serif;
}
.bouquet-pattern-frame {
  position:absolute;
  z-index:2;
  left:19.5%;
  top:2%;
  bottom:13%;
  width:50%;
  background:url("assets/bouquet/frame.webp") center / 100% 100% no-repeat;
  filter:drop-shadow(0 8px 9px #43301f68);
}
.ag-bouquet-display {
  position:absolute;
  inset:3.8% 3.5% 3.4%;
  transform-origin:50% 76%;
}
.ag-bouquet-display .bouquet-sketch {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.ag-bouquet-display .ag-bouquet-bloom {
  position:absolute;
  z-index:1;
  aspect-ratio:1;
  height:auto;
  max-height:none;
  object-fit:contain;
  translate:-50% -50%;
  transform-origin:center;
  filter:drop-shadow(0 3px 3px #77493772);
  animation:bouquet-bloom-in .33s cubic-bezier(.2,.73,.3,1) both;
}
.bouquet-pattern-stage [data-bouquet="aster"] .ag-bouquet-bloom:nth-of-type(2n + 1) {
  filter:brightness(1.24) saturate(.73) drop-shadow(0 3px 3px #77493772);
}
@keyframes bouquet-bloom-in {
  from { opacity:0; scale:.45; }
  to { opacity:1; scale:1; }
}
.ag-bouquet-display .ag-bouquet-wrap {
  position:absolute;
  bottom:-1%;
  left:50%;
  width:34%;
  height:27%;
  max-height:none;
  translate:-50% 0;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 4px 4px #7b503451);
}
.bouquet-pattern-stage .bouquet-recipient {
  position:absolute;
  z-index:1;
  right:5%;
  bottom:20%;
  width:min(33%,60dvh);
  aspect-ratio:687 / 830;
}
.bouquet-pattern-stage .ag-rhythm[data-game="5"] .ag-cast-image.ag-bouquet-mother {
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  filter:drop-shadow(0 6px 7px #3e302b49);
  transform-origin:center bottom;
}
.bouquet-pattern-stage .ag-bouquet-options {
  z-index:3;
  position:absolute;
  top:7%;
  left:5%;
  width:min(13vw,18vh);
  height:79%;
  display:grid;
  grid-template-rows:repeat(4,minmax(0,1fr));
  justify-items:stretch;
  align-items:stretch;
  gap:clamp(4px,1.3vh,12px);
}
.bouquet-pattern-stage .ag-flower-choice {
  position:relative;
  min-height:0;
  padding:2px;
  border:2px solid #f1dbaa;
  border-radius:clamp(9px,1.6vw,22px);
  overflow:hidden;
  background:#fff0ca;
  box-shadow:0 4px 12px #58372265;
  transition:translate .16s;
}
.bouquet-pattern-stage .ag-flower-choice > img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.breath-choice-group > button { position:relative; }
.breath-choice-name { display:none; }
.breath-choice-group .breath-choice-name {
  position:absolute; inset:0; display:grid; place-items:center;
  padding:3px; overflow-wrap:anywhere; text-align:center;
  font-size:clamp(10px,2vw,16px); color:#4b2d1d;
}
.breath-choice-group img { visibility:hidden; }
.breath-choice-group[data-loaded="true"] img[data-decoded="true"] { visibility:visible; }
.breath-choice-group[data-loaded="true"] button:has(img[data-decoded="true"]) .breath-choice-name { visibility:hidden; }
.bouquet-pattern-stage .ag-flower-choice[aria-pressed="true"] {
  border-color:#e29737;
  box-shadow:0 0 0 2px #ffd790,0 4px 12px #58372265;
}
.bouquet-pattern-stage .ag-flower-choice:hover:enabled { translate:0 -3px; background:#fff0ca; }
.bouquet-pattern-stage .ag-flower-choice:disabled { opacity:.73; }
.bouquet-pattern-stage .ag-flower-choice[aria-pressed="true"]:disabled { opacity:1; }
.bouquet-pattern-stage .ag-rhythm-won :is(.bouquet-pattern-frame,.ag-bouquet-options) {
  opacity:0;
  pointer-events:none;
  transition:opacity .35s;
}
.bouquet-pattern-stage .ag-rhythm-won .bouquet-recipient {
  z-index:4;
  inset:auto auto 19% 50%;
  translate:-50% 0;
  width:min(66vw,61dvh);
}
.bouquet-recipient .ag-bouquet-display {
  inset:auto auto 0 54%;
  width:62%;
  aspect-ratio:1;
  translate:-50% 0;
}
@media(max-aspect-ratio:1/1){
  .bouquet-pattern-frame{left:19%;top:7%;bottom:28%;width:77%;}
  .bouquet-pattern-stage .ag-bouquet-options {left:3%;width:14vw;height:54%;top:10%;}
  .bouquet-pattern-stage .bouquet-recipient { width:34%;bottom:16%;right:2%; }
}
@media(prefers-reduced-motion:reduce){
  .ag-bouquet-display .ag-bouquet-bloom { animation:none; }
  .bouquet-pattern-stage .ag-flower-choice { transition:none; }
}

#cl-stage .monkey-rope-stage .monkey-rope-scene.ag-rhythm {
  overflow:hidden;
  background:url("assets/monkey-rope/river.webp") center / 100% 100% no-repeat;
}
@media(max-aspect-ratio:3/4){
  #cl-stage .monkey-rope-stage .monkey-rope-scene.ag-rhythm { background-image:url("assets/monkey-rope/river-phone.webp"); }
}
.monkey-rope-climber,
.monkey-rope-lantern,
.monkey-rope-frog { position:absolute; }
.monkey-rope-climber {
  top:calc(48% - 39% * var(--up,0));
  left:calc(35.8% + 1.45% * var(--up,0));
  width:20%;
  height:31%;
  transform:translateX(-94%);
  filter:drop-shadow(0 4px 4px #1b332c55);
}
.monkey-rope-scene .monkey-rope-climber > img.ag-cast-image,
.monkey-rope-scene .monkey-rope-lantern > img.ag-cast-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
}
.monkey-rope-climber img { object-position:right center; }
.monkey-rope-climber .monkey-rope-next-grip { visibility:hidden; }
.monkey-rope-climber[data-grip="1"] img:first-child { visibility:hidden; }
.monkey-rope-climber[data-grip="1"] .monkey-rope-next-grip { visibility:visible; }
.monkey-rope-lantern {
  left:73%;
  bottom:27.4%;
  width:12%;
  height:26%;
  transform:translateX(-50%);
}
.monkey-rope-lantern::before {
  content:"";
  position:absolute;
  inset:14% -46% -14%;
  border-radius:50%;
  background:radial-gradient(ellipse,#ffd46ab0 0%,#ffad373c 46%,transparent 72%);
  opacity:0;
}
.monkey-rope-lantern img { object-position:center bottom; }
.monkey-rope-light { opacity:0; }
.monkey-rope-scene.ag-pulse .monkey-rope-light,
.monkey-rope-scene.ag-pulse .monkey-rope-lantern::before { opacity:1; }
.monkey-rope-scene img.monkey-rope-frog.ag-cast-image {
  left:83.1%;
  bottom:26.3%;
  width:17%;
  height:24.5%;
  object-fit:contain;
  object-position:center bottom;
  transform:translateX(-50%);
  transform-origin:50% 92%;
  filter:drop-shadow(0 4px 4px #142a2d8a);
}
.monkey-rope-scene.ag-pulse .monkey-rope-frog { animation:monkey-rope-frog-nod .4s ease-out both; }
.monkey-rope-scene.ag-rhythm-won .monkey-rope-frog { animation:monkey-rope-frog-cheer .55s ease-out both; }
.monkey-rope-stage .ag-status { background:#fff3df; border-color:#eac9a7; color:#4b2d1d; }
@keyframes monkey-rope-frog-nod {
  42% { rotate:-5deg; scale:1 .95; }
}
@keyframes monkey-rope-frog-cheer {
  45% { translate:0 -15%; rotate:-6deg; }
}
@media (prefers-reduced-motion:reduce) {
  .monkey-rope-scene .monkey-rope-frog { animation:none!important; }
}

.dragon-garden > svg { display:block; width:100%; height:100%; }
.dragon-garden-cast { filter:drop-shadow(0 5px 4px #4c2d2570); }
.dragon-head-blowing, .dragon-garden-fire,
.dragon-garden-blowing .dragon-head-resting { visibility:hidden; }
.dragon-garden-blowing :is(.dragon-head-blowing,.dragon-garden-fire) { visibility:visible; }
.dragon-garden-fire {
  filter:drop-shadow(0 0 4px #ffab36);
  animation:dragon-fire-flicker .18s ease-in-out infinite alternate;
}
.dragon-garden-weed {
  filter:drop-shadow(1px 4px 2px #5d32268a);
  transform-box:fill-box;
  transform-origin:center bottom;
  transition:transform .20s ease-out,opacity .23s ease-out,filter .18s linear;
}
.dragon-garden-blowing .dragon-garden-hit {
  filter:drop-shadow(0 0 4px #ffd778);
  transform:rotate(12deg);
}
.dragon-garden .dragon-garden-cleared {
  opacity:0;
  transform:rotate(23deg) scale(.36);
}
.dragon-garden-rose {
  opacity:0;
  transform-box:fill-box;
  transform:scale(.16);
  transform-origin:center bottom;
  transition:opacity .23s,transform .9s cubic-bezier(.17,.81,.3,1.14);
}
.dragon-garden-bloom .dragon-garden-rose { opacity:1; transform:scale(1); }
.dragon-rose-shadow { fill:#613922; opacity:0; filter:blur(2px); transition:opacity .7s; }
.dragon-garden-bloom .dragon-rose-shadow { opacity:.48; }
.dragon-garden-stage .ag-status { background:#fff3df; border-color:#eac9a7; color:#4b2d1d; }
@keyframes dragon-fire-flicker {
  from { opacity:.76; }
  to { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
  .dragon-garden-fire { animation:none; }
  .dragon-garden :is(.dragon-garden-weed,.dragon-garden-rose) { transition:none; }
}

.breath-stage .ag-mountains { background:none; }
.breath-stage .ag-mountains > img { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
.breath-stage .ag-mountains::before,
.breath-stage .ag-mountains::after {
  content:"";
  opacity:0;
  position:absolute;
  left:35%;
  top:61%;
  width:clamp(64px,14vw,206px);
  aspect-ratio:1;
  border:3px solid #e5fff0;
  border-radius:50%;
  pointer-events:none;
}
.breath-stage .ag-mountains[data-echo="recording"]::before,
.breath-stage .ag-mountains[data-echo="recording"]::after { animation:breath-ripple 1.2s ease-out infinite; }
.breath-stage .ag-mountains[data-echo="recording"]::after { animation-delay:.6s; }
@keyframes breath-ripple {
  from { opacity:.52; transform:translate(0,22%) scale(.25); }
  to { opacity:0; transform:translate(14%,-114%) scale(1.75); }
}
.breath-stage .ag-echo-voice {
  position:absolute;
  left:50%;
  bottom:27%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(3px,.58vw,8px);
  width:clamp(126px,17vw,245px);
  height:clamp(38px,7vh,69px);
  padding-left:clamp(10px,1vw,15px);
  box-sizing:border-box;
  border:1px solid #fff8dc80;
  border-radius:999px;
  background:#173c3de3;
  box-shadow:0 9px 26px #173c3d59;
  opacity:0;
  translate:-50% 9px;
  transition:opacity .18s ease-out,translate .18s ease-out;
  pointer-events:none;
}
.breath-stage [data-echo="recording"] .ag-echo-voice { opacity:1; translate:-50% 0; }
.breath-stage .ag-echo-voice::before {
  content:"";
  position:absolute;
  left:9%;
  width:clamp(6px,.66vw,9px);
  aspect-ratio:1;
  background:#ff9777;
  border-radius:50%;
  box-shadow:0 0 10px #ff9e77a8;
}
.breath-stage .ag-echo-voice i {
  width:clamp(3px,.47vw,7px);
  height:65%;
  border-radius:99px;
  background:linear-gradient(#ffecb6,#9de4c6);
  scale:1 calc(.14 + var(--voice-level,0) * var(--bar-height,1) * .86);
  transition:scale .085s ease-out;
}
.ag-echo-stage .ag-controls .ag-echo-restart {
  display:grid;
  place-items:center;
  width:clamp(48px,6.4vh,64px);
  height:clamp(48px,6.4vh,64px);
  min-height:0;
  padding:0;
  background:#225b53;
  border-color:#204e48;
  border-radius:50%;
  color:#fffaf0;
}
.ag-echo-stage .ag-echo-restart svg {
  width:55%;
  height:55%;
}
.ag-echo-stage .ag-controls .ag-echo-restart:disabled {
  opacity:.52;
  cursor:default;
}
.ag-echo-stage .ag-echo-restart:not(:disabled):hover {
  background:#337168;
}
.ag-echo-stage .ag-echo-restart:focus-visible {
  outline:3px solid #fff4ce;
  outline-offset:3px;
}
@keyframes breath-celebrate { 50% { transform:translateY(-6%) rotate(-4deg); } }

.breath-reward-motion {
  position:absolute;
  z-index:3;
  inset:0;
  pointer-events:none;
}
.birthday-stage .ag-candle-smoke {
  position:absolute;
  bottom:calc(100% + clamp(5px,1vh,10px));
  left:50%;
  width:205%;
  height:clamp(18px,6vh,56px);
  opacity:0;
  filter:blur(.85px);
  transform-origin:bottom left;
}
.birthday-stage .ag-candle-smoke::before,
.birthday-stage .ag-candle-smoke::after {
  content:"";
  position:absolute;
  width:55%;
  height:63%;
  border-radius:50% 0 0 50%;
  border-left:clamp(2px,.28vw,5px) solid #fff7e0a0;
}
.birthday-stage .ag-candle-smoke::before { bottom:0; left:0; rotate:28deg; }
.birthday-stage .ag-candle-smoke::after { top:0; left:23%; rotate:197deg; }
.birthday-stage .ag-out .ag-candle-smoke { animation:breath-wick-smoke .8s ease-out both; }
@keyframes breath-wick-smoke {
  15% { opacity:.88; }
  to { opacity:0; transform:translate(78%,-95%) rotate(17deg) scale(1.35); }
}
.ag-world-33 .ag-portrait-cast {
  --whisker-top:51.8%;
  --laugh-top:58.4%;
  transform-origin:center bottom;
}
.ag-world-33 [data-character="detective"] { --whisker-top:52.5%; --laugh-top:59%; }
.ag-world-33 [data-character="captain"] { --whisker-top:51.1%; --laugh-top:58%; }
.ag-world-33 [data-character="elder"] { --whisker-top:46.7%; --laugh-top:52.6%; }
.ag-world-33 [data-character="rancher"] { --whisker-top:45.8%; --laugh-top:51.4%; }
.ag-world-33 .ag-whiskers {
  position:absolute;
  inset:var(--whisker-top) auto auto 50%;
  width:28%;
  aspect-ratio:490 / 142;
  transform:translate(-50%,calc(var(--tickle,0) * -11%));
  transition:transform .14s ease-out;
}
.ag-whiskers > i {
  position:absolute;
  inset:0 auto 0 0;
  width:50%;
  background:url("../../assets/worlds/cast/moustache.webp") left center / 200% 100% no-repeat;
  transform:rotate(calc(35deg * var(--tickle,0)));
  transform-origin:right 43%;
  transition:transform .15s ease-out;
}
.ag-whiskers > .ag-whisker-right {
  inset:0 0 0 auto;
  background-position:right center;
  transform:rotate(calc(-38deg * var(--tickle,0)));
  transform-origin:left 43%;
}
.ag-tickle-blowing .ag-whiskers { animation:whisker-flutter .26s ease-in-out infinite alternate; }
@keyframes whisker-flutter { to { translate:0 -5%; rotate:1.6deg; } }
.ag-tickle-gust {
  position:absolute;
  top:calc(var(--whisker-top) - 3%);
  left:8%;
  width:24%;
  height:13%;
  opacity:0;
  pointer-events:none;
}
.ag-tickle-gust i {
  display:block;
  width:72%;
  height:23%;
  border-top:clamp(2px,.3vw,5px) solid #fff2c6;
  border-radius:50%;
  filter:drop-shadow(0 1px 1px #60452473);
  animation:tickle-gust .6s ease-out infinite;
}
.ag-tickle-gust i:nth-child(2) { width:96%; animation-delay:.13s; }
.ag-tickle-gust i:nth-child(3) { width:65%; animation-delay:.24s; }
.ag-tickle-blowing .ag-tickle-gust { opacity:1; }
@keyframes tickle-gust {
  0% { opacity:0; translate:-20% 3%; }
  38% { opacity:.9; }
  100% { opacity:0; translate:42% -9%; }
}
.ag-tickle-cheeks {
  position:absolute;
  left:31%;
  right:31%;
  top:calc(var(--whisker-top) - 1%);
  height:9%;
  opacity:0;
  background:radial-gradient(ellipse 26% 58% at 12% 55%,#de786fbb,transparent),
    radial-gradient(ellipse 26% 58% at 88% 55%,#de786fbb,transparent);
  transition:opacity .25s;
}
[data-reaction="tickle"] .ag-tickle-cheeks,
[data-reaction="laugh"] .ag-tickle-cheeks { opacity:.82; }
.ag-laugh-mouth {
  position:absolute;
  inset:var(--laugh-top) auto auto 50%;
  width:16%;
  height:6.5%;
  translate:-50% 0;
  transform-origin:center top;
  overflow:hidden;
  border-radius:22% 22% 49% 49% / 22% 22% 70% 70%;
  background:radial-gradient(ellipse at 50% 85%,#9f513c 0 21%,#632a20 52%,#421915);
  box-shadow:0 0 2px .12vw #a75a4099;
  opacity:0;
  scale:1 0;
}
.ag-laugh-mouth::before {
  content:"";
  position:absolute;
  inset:0 13% 70%;
  border-radius:0 0 37% 37%;
  background:linear-gradient(#f6dfb4,#fff4d2);
}
.ag-world-33 .ag-grinning { animation:portraitLaugh .25s ease-in-out 7 alternate; }
.ag-grinning .ag-laugh-mouth { opacity:1; scale:1; animation:tickle-laugh .32s ease-in-out 5 alternate; }
@keyframes tickle-laugh { from { scale:.92 .55; } to { scale:1; } }
.ag-laugh-glint {
  position:absolute;
  top:calc(var(--whisker-top) - 7%);
  left:30%;
  width:6%;
  height:4%;
  opacity:0;
  border-top:3px solid #ffdc90;
  border-radius:65%;
}
.ag-laugh-glint:last-child { left:64%; }
[data-reaction="tickle"] .ag-laugh-glint { animation:breath-glint .65s ease-out both; }
.ag-grinning .ag-laugh-glint { animation:breath-glint .65s ease-out 2; }
@keyframes breath-glint {
  38% { opacity:.8; }
  to { opacity:0; transform:translateY(-85%) scale(1.4); }
}
.breath-stage .ag-rhythm[data-game="5"] .ag-story-gnome {
  transform-origin:60% bottom;
  transition:transform .2s ease-out;
}
.breath-stage .ag-bouquet-blowing .ag-story-gnome { transform:rotate(3deg); }
.breath-stage .ag-rhythm[data-game="5"] .ag-bouquet-mother { transform-origin:center bottom; }
.breath-stage .ag-echo-wave {
  opacity:0;
  position:absolute;
  translate:-50% -50%;
  width:clamp(62px,15vw,220px);
  aspect-ratio:1;
  border:2px solid #fff2ca;
  border-radius:50%;
  box-shadow:0 0 12px #fff1b685,inset 0 0 14px #ffd4815c;
  filter:drop-shadow(0 0 8px #ffe8a8aa);
  pointer-events:none;
}
.breath-stage .ag-echo-wave::after {
  content:"";
  position:absolute;
  inset:12%;
  border:1px solid #fff9dfa6;
  border-radius:50%;
}

@media (max-width:600px) {
  .breath-stage .ag-character { flex-basis:25%; }
  .breath-stage[data-breath-phase="gift"] .ag-tiles .ag-tile { flex-basis:28%; }
  .breath-instructions { width:calc(100% - 42px); }
}
@media (prefers-reduced-motion:reduce) {
  .breath-stage *, .breath-stage *::before, .breath-stage *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .breath-stage .ag-mountains:is([data-echo="recording"],[data-echo="playing"])::before { opacity:.8; }
}
