/* The Chopsticks: a pair of lacquered characters, and a conversation that travels. */
:root{--mascot-red:#d92c28;--mascot-red-light:#ff8974;--mascot-ink:#272623;--mascot-paper:#fff;--mascot-shadow:0 10px 40px #4020161a;--mascot-ease:cubic-bezier(.16,1,.3,1)}
.mascot-pair{--look-x:0px;--look-y:0px;position:relative;display:block;width:128px;height:166px;flex:none;pointer-events:none;isolation:isolate;filter:drop-shadow(2px 8px 5px #6d161828)}
.mascot-stick{position:absolute;display:block;top:7px;left:29px;width:28px;height:147px;transform:rotate(15deg);transform-origin:50% 66%;transition:transform .65s var(--mascot-ease)}
.mascot-stick--two{top:17px;left:73px;transform:rotate(25deg);height:139px}
.mascot-stick-body{position:absolute;inset:0;display:block;border-radius:8px 8px 5px 5px;clip-path:polygon(2% 0,98% 0,76% 97%,68% 100%,31% 100%,25% 97%);background:linear-gradient(90deg,#8f191e 0%,#c52625 12%,#f24b40 34%,#ff7965 45%,#dc302a 68%,#aa2022 92%,#85181b 100%);box-shadow:inset 0 2px 1px #ffb5a5,inset 0 -2px 2px #5f0d1640}
.mascot-stick-body:before{content:'';position:absolute;inset:4px 5px auto 4px;height:5px;border-radius:50%;background:linear-gradient(180deg,#ffa18b,#ef4a3b);box-shadow:0 1px 0 #7c112320}
.mascot-stick-body:after{content:'';position:absolute;top:11px;bottom:15px;width:2px;left:8px;background:linear-gradient(#ffb09b88,#ffb09b05);border-radius:50%}
.mascot-face{position:absolute;top:36px;left:-3px;display:flex;gap:2px;transform:rotate(-8deg);transform-origin:50% 0;transition:transform .5s var(--mascot-ease)}
.mascot-stick--two .mascot-face{top:32px;transform:rotate(-16deg)}
.mascot-eye{position:relative;display:block;width:17px;height:22px;border-radius:55% 48% 52% 45%;background:radial-gradient(ellipse at 32% 25%,#fff 0 30%,#f5f1eb 50%,#d7c8be 77%,#ac8675 100%);box-shadow:1px 3px 3px #6e171855,inset -1px -1px 1px #fff6;transform-origin:50% 50%;animation:mascot-blink 6.9s infinite}
.mascot-eye:nth-child(2){width:16px;height:21px;margin-top:1px}
.mascot-stick--two .mascot-eye{animation-delay:1.15s}
.mascot-pupil{position:absolute;display:block;width:8px;height:11px;top:5px;left:5px;border-radius:50%;background:radial-gradient(ellipse at 40% 45%,#181d20 25%,#2b3437 48%,#0b1014 75%);transform:translate(var(--look-x),var(--look-y));transition:transform .16s ease-out;box-shadow:0 0 0 .6px #19252b}
.mascot-pupil:before{content:'';position:absolute;top:1px;left:1px;width:3px;height:3px;border-radius:50%;background:#fff}
.mascot-pupil:after{content:'';position:absolute;bottom:2px;right:1px;width:1px;height:1px;border-radius:50%;background:#dfeefa}
.mascot-mouth{position:absolute;display:block;top:64px;left:7px;width:9px;height:5px;border-bottom:2px solid #77171c;border-radius:0 0 60% 60%;transform:rotate(-8deg);transition:all .3s ease}
.mascot-stick--two .mascot-mouth{top:59px;transform:rotate(-16deg)}
.mascot-pair:after{content:'';position:absolute;width:84px;height:11px;bottom:0;left:25px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#55142120,transparent 70%);transform:rotate(-8deg)}
@keyframes mascot-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}46%{transform:scaleY(.9)}}
@keyframes mascot-bob{0%,100%{translate:0 0}50%{translate:0 -5px}}
@keyframes mascot-pop{from{opacity:0;transform:translateY(7px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mascot-word{from{opacity:0;filter:blur(2px);transform:translateY(3px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}
@keyframes mascot-dot{0%,65%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@keyframes mascot-cheer{0%,100%{translate:0 0}35%{translate:0 -13px}65%{translate:0 2px}}

/* The launch invitation stays small enough to leave the page in charge. */
.mascot-launcher{position:fixed;z-index:45;right:20px;bottom:15px;width:150px;height:128px;padding:0;border:0;background:none;color:var(--mascot-ink);display:flex;flex-direction:column;align-items:center;justify-content:end;cursor:pointer;animation:mascot-pop .7s var(--mascot-ease) both;animation-delay:.8s;filter:none}
.mascot-launcher .mascot-pair{width:128px;height:166px;position:absolute;right:0;bottom:0;transform:scale(.62);transform-origin:right bottom;animation:mascot-bob 4s ease-in-out infinite}
.mascot-launcher-label{position:absolute;right:6px;bottom:103px;white-space:nowrap;font-size:12px;font-weight:500;background:#fff;border:1px solid #e9e3df;box-shadow:0 5px 24px #3b271912;border-radius:25px;padding:10px 13px;transition:transform .2s}
.mascot-launcher-label span{display:inline-block;margin-left:6px;color:var(--mascot-red)}
.mascot-launcher:hover .mascot-launcher-label{transform:translateY(-4px)}
.mascot-launcher:hover .mascot-stick--two{transform:rotate(37deg) translateY(-6px)}
body.tour-active .mascot-launcher,body.modal-open .mascot-launcher{display:none}
.mascot-launcher:focus-visible{outline:2px solid var(--mascot-red);outline-offset:3px;border-radius:15px}

/* No full-width dock: only the little pair and its 285px speech bubble move. */
#tour-guide.mascot-guide{position:fixed;inset:0 auto auto 0;bottom:auto;left:0;z-index:70;display:block;width:128px;height:166px;margin:0;padding:0;gap:0;transform:translate3d(var(--mascot-x,calc(100vw - 155px)),var(--mascot-y,calc(100vh - 200px)),0);filter:none;pointer-events:none;will-change:transform}
#tour-guide.mascot-guide[hidden]{display:none}
.mascot-guide>.mascot-pair{position:relative;width:128px;height:166px;transform:rotate(var(--mascot-lean,0deg));transform-origin:50% 70%;animation:mascot-bob 4s ease-in-out infinite}
.mascot-bubble{--bubble-width:285px;position:absolute;width:var(--bubble-width);left:auto;right:calc(100% - 5px);bottom:50px;display:block;background:var(--mascot-paper);color:var(--mascot-ink);border:1px solid #e9e2df;border-radius:19px 19px 5px 19px;box-shadow:var(--mascot-shadow);padding:12px 15px 11px;pointer-events:auto;transform-origin:100% 80%;isolation:isolate;animation:mascot-pop .38s var(--mascot-ease) both;overflow:visible}
.mascot-bubble:after{content:'';position:absolute;right:-6px;bottom:17px;width:12px;height:12px;transform:rotate(-45deg);background:var(--mascot-paper);border-right:1px solid #e9e2df;border-bottom:1px solid #e9e2df;z-index:-1}
.mascot-guide[data-bubble-side=right] .mascot-bubble{right:auto;left:calc(100% - 4px);border-radius:19px 19px 19px 5px;transform-origin:0 80%}
.mascot-guide[data-bubble-side=right] .mascot-bubble:after{right:auto;left:-6px;transform:rotate(135deg)}
.mascot-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px;font-size:10px;letter-spacing:.025em;color:#766d66}
.mascot-meta>span{font-weight:500}
.mascot-meta button{display:grid;place-items:center;width:26px;height:26px;padding:0;margin:-4px -6px 0 0;border-radius:50%;font:22px/1 'DM Sans',sans-serif;color:#625951;background:transparent}
.mascot-meta button:hover{background:#f3efec;color:#151515}
.mascot-speech-wrap{position:relative;min-height:66px;margin:4px 0 12px}
#tour-words{font-size:15px;line-height:1.48;letter-spacing:-.016em;margin:0;min-height:0;font-weight:450;color:var(--mascot-ink);overflow-wrap:anywhere;transition:opacity .16s}
#tour-words .mascot-word{display:inline-block;max-width:100%;overflow-wrap:anywhere;animation:mascot-word .26s var(--mascot-ease) both;animation-delay:calc(var(--word-index) * 18ms)}
.mascot-guide.is-thinking #tour-words{opacity:0}
.mascot-typing{display:none;position:absolute;top:21px;left:3px;gap:5px}
.mascot-typing i{width:6px;height:6px;border-radius:50%;background:var(--mascot-red);animation:mascot-dot 1s ease-in-out infinite}
.mascot-typing i:nth-child(2){animation-delay:.14s}.mascot-typing i:nth-child(3){animation-delay:.28s}
.mascot-guide.is-thinking .mascot-typing{display:flex}
.mascot-controls{display:flex;align-items:center;gap:5px;padding-top:2px}
.mascot-controls button{display:flex;align-items:center;justify-content:center;flex:none;min-width:30px;height:30px;padding:0 8px;border-radius:50%;background:#f5f2ef;color:#514c47;font-size:13px;line-height:1}
.mascot-controls button:hover{background:#e9e2dd}
.mascot-controls button:disabled{opacity:.3;cursor:default}
.mascot-controls #tour-next{margin-left:auto;width:auto;padding:0 12px;gap:12px;background:var(--mascot-red);color:#fff;border-radius:18px;font-size:11px;font-weight:500}
.mascot-controls #tour-next:hover{background:#bb2622}
#tour-status{font-size:9px;line-height:1.3;color:#8c827a;max-width:65px;margin-left:3px}
.mascot-guide button:focus-visible{outline:2px solid var(--mascot-red);outline-offset:3px}
.mascot-timer{position:absolute;bottom:0;left:16px;right:16px;height:2px;background:#f6ede8;overflow:hidden}
.mascot-timer i{display:block;width:0;height:100%;background:#e79588;transition:width .1s linear}
.mascot-thought{position:absolute;left:30px;top:-30px;display:flex;gap:5px;opacity:0;transition:opacity .2s;transform:rotate(-12deg)}
.mascot-thought i{width:7px;height:7px;border-radius:50%;background:#e4a99d;animation:mascot-dot 1s infinite}
.mascot-thought i:nth-child(2){width:10px;height:10px;margin-top:-8px;animation-delay:.15s}.mascot-thought i:nth-child(3){width:13px;height:13px;margin-top:-18px;animation-delay:.3s}
.mascot-guide.is-thinking .mascot-thought{opacity:1}
.mascot-guide[data-mood=hello] .mascot-stick--two{transform:rotate(38deg) translate(2px,-8px)}
.mascot-guide[data-mood=curious] .mascot-stick--one{transform:rotate(7deg) translate(-3px,-4px)}
.mascot-guide[data-mood=curious] .mascot-stick--two{transform:rotate(33deg) translate(2px,2px)}
.mascot-guide[data-mood=point] .mascot-stick--one{transform:rotate(53deg) translate(-15px,-5px)}
.mascot-guide[data-bubble-side=right][data-mood=point] .mascot-stick--two{transform:rotate(-20deg) translate(4px,-8px)}
.mascot-guide[data-mood=point] .mascot-stick--two{transform:rotate(21deg) translate(0,-7px)}
.mascot-guide[data-mood=watch] .mascot-stick--one{transform:rotate(9deg) translate(-2px,0)}
.mascot-guide[data-mood=watch] .mascot-stick--two{transform:rotate(14deg) translate(-7px,4px)}
.mascot-guide[data-mood=watch] .mascot-mouth{height:6px;width:5px;border:1.5px solid #77171c;border-radius:50%;left:10px}
.mascot-guide[data-mood=celebrate] .mascot-stick--one{transform:rotate(-17deg) translate(-6px,-10px)}
.mascot-guide[data-mood=celebrate] .mascot-stick--two{transform:rotate(39deg) translate(8px,-12px)}
.mascot-guide[data-mood=celebrate]>.mascot-pair{animation:mascot-cheer .9s ease-in-out 2}
.mascot-guide[data-mood=thinking] .mascot-stick--one{transform:rotate(24deg) translate(5px,2px)}
.mascot-guide[data-mood=thinking] .mascot-stick--two{transform:rotate(12deg) translate(-5px,-7px)}
.mascot-guide[data-paused=true] .mascot-pair,.mascot-guide[data-paused=true] .mascot-eye{animation-play-state:paused}
.mascot-guide[data-paused=true] .mascot-timer i{background:#b8ada6}
.mascot-guide[data-paused=true] #tour-status{color:#79685e}

/* The invitation shares the same character, without an extra interface metaphor. */
.mascot-tour-dialog{width:min(820px,calc(100% - 40px));border-radius:23px}
.mascot-tour-dialog[open]{display:grid;grid-template-columns:.95fr 1.05fr}
.mascot-tour-dialog .tour-welcome{position:relative;padding:40px 32px 34px;background:#fff5f1;justify-content:start;overflow:hidden}
.mascot-tour-dialog .mascot-pair--welcome{margin:0 auto 15px;transform:scale(1.2);transform-origin:center center;height:195px;animation:mascot-bob 4s ease-in-out infinite}
.mascot-tour-dialog .tour-kicker{font-size:10px;letter-spacing:.02em;color:#a06450;margin:15px 0 12px;line-height:1.5}
.mascot-tour-dialog .tour-welcome h2{font-size:54px;line-height:1.03;margin:0;letter-spacing:-.065em}
.mascot-tour-dialog .tour-welcome h2+p{font-size:15px;line-height:1.5;color:#7f665d;margin-top:18px}
.mascot-tour-dialog #tour-form{padding:65px 28px 28px}
.mascot-tour-dialog .persona-options{border:0;padding:0;margin:0;gap:9px}
.mascot-tour-dialog .persona-options label{padding:16px 12px;gap:11px;background:white;border-color:#ece5e0;border-radius:10px;transition:background .2s,border-color .2s}
.mascot-tour-dialog .persona-options label:has(input:checked){background:#fff8f5;border-color:#d92c28}
.mascot-tour-dialog .persona-options strong{font-size:14px}
.mascot-tour-dialog .persona-options small{font-size:11px;line-height:1.4;margin-top:3px}
.mascot-tour-dialog .persona-options b{font-size:15px;margin-left:auto;font-weight:400;opacity:0;color:#d92c28}
.mascot-tour-dialog .persona-options label:has(input:checked) b{opacity:1}
.mascot-tour-dialog .persona-dot{width:10px;height:10px}
.mascot-tour-dialog .name-label{font-size:12px;margin-top:23px}
.mascot-tour-dialog .name-label input{font-size:14px;padding-block:9px}
.mascot-tour-dialog #tour-form>.button{font-size:13px;margin-top:24px;background:var(--mascot-red)}
.mascot-tour-dialog .tour-privacy{font-size:10px;line-height:1.5;margin-top:12px}

@media(max-width:760px){
 .mascot-launcher{right:9px;bottom:10px;width:125px;height:104px}
 .mascot-launcher .mascot-pair{transform:scale(.49)}
 .mascot-launcher-label{bottom:81px;right:0;font-size:10px;padding:8px 10px}
 #tour-guide.mascot-guide{width:90px;height:117px}
 .mascot-guide>.mascot-pair{width:128px;height:166px;scale:.7;transform-origin:0 0}
 .mascot-bubble{--bubble-width:258px;right:-3px;left:auto;bottom:calc(100% + 4px);border-radius:18px 18px 5px 18px;padding:11px 13px 10px;transform-origin:85% 100%}
 .mascot-bubble:after{right:27px;left:auto;bottom:-6px;transform:rotate(45deg)}
 .mascot-guide[data-bubble-side=right] .mascot-bubble{right:auto;left:-3px;bottom:calc(100% + 4px);border-radius:18px 18px 18px 5px;transform-origin:15% 100%}
 .mascot-guide[data-bubble-side=right] .mascot-bubble:after{right:auto;left:27px;bottom:-6px;transform:rotate(45deg)}
 .mascot-speech-wrap{min-height:57px;margin:2px 0 9px}
 #tour-words{font-size:13px;line-height:1.46}
 .mascot-meta{font-size:9px;min-height:22px}
 .mascot-controls button{height:30px;min-width:30px}
 .mascot-controls #tour-next{font-size:10px}
 .mascot-thought{left:27px;top:-18px;display:none}
 .mascot-tour-dialog{width:calc(100% - 24px);max-height:93dvh}
 .mascot-tour-dialog[open]{display:block}
 .mascot-tour-dialog .tour-welcome{min-height:0;padding:29px 24px 23px;display:block}
 .mascot-tour-dialog .tour-welcome h2{font-size:43px;padding-right:55px}
 .mascot-tour-dialog .tour-kicker{margin:0 0 10px;font-size:9px;max-width:210px}
 .mascot-tour-dialog .tour-welcome h2+p{font-size:13px;margin-top:12px;padding-right:75px}
 .mascot-tour-dialog .mascot-pair--welcome{position:absolute;top:24px;right:22px;margin:0;width:128px;height:166px;transform:scale(.65);transform-origin:right top;animation:none}
 .mascot-tour-dialog #tour-form{padding:20px 24px 24px}
 .mascot-tour-dialog .persona-options label{padding:13px 12px}
 .mascot-tour-dialog .name-label{margin-top:18px}
 .mascot-tour-dialog .name-label input{font-size:16px}
 .mascot-tour-dialog #tour-form>.button{margin-top:20px}
 .mascot-tour-dialog .tour-close{top:10px;right:10px;width:30px;height:30px;font-size:21px}
}
@media(max-width:360px){.mascot-bubble{--bubble-width:245px}.mascot-tour-dialog .mascot-pair--welcome{right:7px;scale:.85}.mascot-tour-dialog .tour-welcome,.mascot-tour-dialog #tour-form{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){.mascot-pair,.mascot-pair *,.mascot-launcher,.mascot-bubble,.mascot-bubble *,.mascot-thought *{animation:none!important;transition:none!important}.mascot-guide>.mascot-pair{transform:none}.mascot-launcher{opacity:1}.mascot-thought{display:none}}
.motion-paused .mascot-pair,.motion-paused .mascot-pair *,.motion-paused .mascot-launcher,.motion-paused .mascot-bubble *,.motion-paused .mascot-thought *{animation-play-state:paused!important}

.motion-paused .mascot-launcher{animation:none!important}
.motion-paused #tour-words .mascot-word{animation:none!important}
