/* Run six seconds, rest visibly for 3.2 seconds, then continue from the same spot. */
.duo-rest{display:none}
@media(min-width:901px){
 .brice-guide .header-mascot-duo[data-active="false"] .header-mascot-chase{animation-play-state:paused}
 .brice-guide .header-mascot-duo[data-resting="true"] .header-mascot-chase{animation-play-state:paused}
 .brice-guide .header-mascot-duo[data-resting="true"] :is(.header-mascot-brice,.header-mascot-key,.chase-speed){visibility:hidden;animation-play-state:paused}
 .brice-guide .header-mascot-duo[data-resting="true"] .duo-rest{display:block}
 .duo-rest{position:absolute;bottom:0;width:130px;height:130px;background-image:url('/assets/duo-rest-v755.webp');background-size:200% 196.551724%;background-repeat:no-repeat;background-position:0% var(--rest-row,0%);animation-fill-mode:both;transform-origin:50% 95%;animation:duo-breath-swell .95s ease-in-out infinite alternate}
 .duo-rest-brice{left:0;--rest-row:0%}
 .duo-rest-key{right:0;--rest-row:100%;background-size:200% 203.571429%;animation-delay:0s;animation-fill-mode:both;background-position:0% 100%}
 .duo-breath{position:absolute;right:6px;top:36%;width:10px;height:7px;border-radius:50%;background:#fff;border:1px solid #87c8dc;box-shadow:5px -2px 0 -1px #fff,9px 1px 0 -2px #fff;animation:duo-exhale .8s ease-out infinite}
 .duo-rest-key .duo-breath{top:27%;animation-delay:.2s}
}
@keyframes duo-breath-swell{from{transform:scaleY(.94)}to{transform:scaleY(1.04)}}
@keyframes duo-exhale{0%{opacity:0;transform:translateX(0) scale(.4)}25%{opacity:.9}100%{opacity:0;transform:translateX(17px) translateY(-5px) scale(1.5)}}
@media(prefers-reduced-motion:reduce){.duo-rest,.duo-breath{display:none!important}}
/* Desktop flag buttons match the navigation's height and proportions. */
@media(min-width:901px){
 html body main .language-switcher a,html body header .header-actions.has-language-flags>.language-switcher a{height:48px;min-height:48px;width:72px;border-radius:14px;padding:8px 10px}
 html body main .language-switcher svg,html body header .header-actions.has-language-flags>.language-switcher svg{width:46px;height:28px}
}
/* Visible exhalation starts at each mouth and disperses into the air. */
@media(min-width:901px){
 .duo-rest .duo-breath{left:71%;right:auto;top:27%;width:24px;height:14px;border-radius:45%;background:#fff;border:1px solid #58a9c5;box-shadow:0 1px 3px #075d8830;animation:duo-visible-exhale 1s ease-out infinite;z-index:2}
 .duo-rest-key .duo-breath{left:70%;top:37%;animation-delay:.25s}
 .duo-breath::before,.duo-breath::after{content:"";position:absolute;background:#fff;border-radius:50%;border-top:1px solid #58a9c5}
 .duo-breath::before{width:13px;height:13px;left:5px;top:-6px}
 .duo-breath::after{width:10px;height:9px;right:-5px;top:3px}
}
@keyframes duo-visible-exhale{0%{opacity:0;transform:translateX(-8px) scale(.25)}18%{opacity:1;transform:translateX(0) scale(.65)}55%{opacity:.95;transform:translateX(15px) translateY(-4px) scale(1)}100%{opacity:0;transform:translateX(34px) translateY(-12px) scale(1.45)}}

/* V530: both rest sprites must have the correct row before the first frame. */
.duo-rest-brice{background-position:0% 0%;animation-fill-mode:both}
.duo-rest-key{background-position:0% 100%;animation-delay:0s;animation-fill-mode:both}
