/* "Try a fart sound" (Paul, 13 Nov 2026): hero button, sticky copy, and the get-the-app popup.
   Colours come from brand.css (--brand-yellow, --brand-black) and the page tokens (--ink, --white, --font-rounded). */
.fart-try{display:flex;justify-content:center;margin:28px auto 28px}
.fart-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-height:64px;padding:0 30px;border:3px solid var(--brand-black);border-radius:18px;background:var(--brand-yellow);color:var(--brand-black);font-family:var(--font-rounded);font-size:clamp(20px,2.4vw,24px);font-weight:900;letter-spacing:-.015em;line-height:1;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:transform .15s ease,background-color .15s ease}
.fart-btn:hover{background:var(--brand-yellow-hover);transform:translateY(-2px)}
.fart-btn:active{transform:translateY(1px) scale(.98)}
.fart-btn:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.fart-btn .fart-emoji{font-size:1.25em;line-height:1}
.fart-btn.is-tooting{animation:fart-wobble .5s ease}
@keyframes fart-wobble{0%,100%{transform:none}20%{transform:scale(1.06,.92)}45%{transform:scale(.96,1.05) rotate(-2deg)}70%{transform:scale(1.02,.98) rotate(1deg)}}

/* Sticky copy: appears once the hero button has scrolled away, hides near the final download section. */
.fart-sticky{position:fixed;z-index:55;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,0);transition:transform .3s ease,opacity .3s ease,visibility 0s}
.fart-sticky:not(.on){transform:translate(-50%,calc(100% + 40px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .3s ease,opacity .3s ease,visibility 0s .3s}
.fart-sticky .fart-btn{min-height:56px;padding:0 24px;font-size:19px;box-shadow:0 8px 24px rgba(20,16,12,.18)}
/* Between phone and wide desktop the Ask-AI pill (bottom start) could meet a centred button: sit one row higher. */
@media(min-width:641px) and (max-width:1279px){.fart-sticky{bottom:84px}}
@media(max-width:640px){
 .fart-sticky{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));transform:none}
 .fart-sticky:not(.on){transform:translateY(calc(100% + 40px))}
 .fart-sticky .fart-btn{width:100%}
 /* The Ask-AI card is pinned to the bottom on phones; lift it above the bar while the bar shows. */
 .footer .ask-ai{transition:opacity .3s ease,transform .3s ease,bottom .3s ease}
 html.fart-sticky-on .footer .ask-ai{bottom:calc(84px + env(safe-area-inset-bottom))}
 .fart-try{margin-top:22px;margin-bottom:24px}
 .fart-try .fart-btn{width:100%;max-width:360px}
}

/* Popup */
.fart-modal{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:16px;border:0;background:transparent;color:var(--ink);overflow:auto}
.fart-modal[open]{display:grid;place-items:center}
.fart-modal::backdrop{background:rgba(20,16,12,.74);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.fart-card{position:relative;width:min(600px,100%);padding:64px 32px 44px;border-radius:28px;background:var(--white);text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.35);animation:fart-pop .42s cubic-bezier(.2,1.3,.4,1)}
@keyframes fart-pop{from{opacity:0;transform:translateY(24px) scale(.92)}to{opacity:1;transform:none}}
.fart-card .fart-burst{display:block;font-size:56px;line-height:1;margin:0 0 16px}
.fart-title{margin:0 auto 36px;max-width:16ch;font-family:var(--font-rounded);font-size:clamp(34px,6.4vw,54px);font-weight:900;line-height:1.04;letter-spacing:-.03em;color:var(--ink);text-wrap:balance}
.fart-title .nw{white-space:nowrap}
.fart-title:lang(ko){word-break:keep-all}
.fart-title:lang(ja),.fart-title:lang(zh),.fart-title:lang(th){max-width:none}
.fart-title:lang(ja){font-size:clamp(28px,6.4vw,54px)}
.fart-badges{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px}
.fart-badges a{display:block;border-radius:14px;transition:transform .15s ease}
.fart-badges a:hover{transform:translateY(-2px)}
.fart-badges a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.fart-badges a[hidden]{display:none}
.fart-badges img{display:block;height:80px;width:auto;max-width:100%}
.fart-badges.is-single img{height:96px}
.fart-close{position:absolute;top:12px;inset-inline-end:12px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-soft);line-height:1;cursor:pointer}
.fart-close:hover{background:var(--sand)}
.fart-close:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.fart-close svg{display:block;width:22px;height:22px}
html.fart-locked,html.fart-locked body{overflow:hidden}
@media(max-width:600px){
 .fart-card{padding:56px 20px 32px;border-radius:24px}
 .fart-badges{flex-direction:column;gap:12px}
 .fart-badges img{height:68px}
 .fart-badges.is-single img{height:84px}
}

/* Wind puffs: absolutely positioned emoji, removed after the burst. */
.fart-puff{position:fixed;left:0;top:0;z-index:1000;font-size:30px;line-height:1;pointer-events:none;will-change:transform,opacity}

@media(prefers-reduced-motion:reduce){
 .fart-btn,.fart-sticky,.fart-sticky:not(.on),.fart-badges a,.footer .ask-ai{transition:none}
 .fart-btn.is-tooting,.fart-card{animation:none}
}
