/* The alarm is an isolated, temporary stage above the existing conversation. */
#bear-alarm {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff4df;
  background: radial-gradient(ellipse at 50% 108%, #ed5c1a 0, #9d2014 38%, #420d17 75%);
  text-align: center;
  font-family: var(--sans), sans-serif;
  isolation: isolate;
  box-shadow: inset 0 0 130px #16050a80;
}
#bear-alarm::backdrop { background: #420d17; }
#bear-alarm .bear-alarm-content { position: relative; z-index: 2; width: min(100%, 650px); min-height: 100%; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
#bear-alarm .bear-alarm-warning { display: flex; align-items: center; gap: 9px; border: 1px solid #ffad6659; padding: 8px 14px; border-radius: 100px; font-size: 10px; font-weight: 750; letter-spacing: 1.5px; color: #ffd48e; background: #57101888; }
#bear-alarm .bear-alarm-warning > span { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
#bear-alarm .bear-alarm-cow { position: relative; width: 166px; height: 166px; margin: 25px 0 19px; border: 3px solid #fda74f; border-radius: 50%; background: #f7d899; box-shadow: 0 0 0 9px #ff9f3218, 0 0 50px #ff701958; animation: bear-cow-grumble 1.4s ease-in-out infinite; }
#bear-alarm .bear-alarm-cow > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: sepia(.15) saturate(1.25); }
#bear-alarm .bear-alarm-anger { position: absolute; top: 5px; right: 2px; color: #b41420; font: 900 38px/1 sans-serif; transform: rotate(17deg); text-shadow: 1px 1px 0 #ffe6bd, -1px -1px 0 #ffe6bd; }
#bear-alarm .bear-alarm-muuu { position: absolute; bottom: 5px; left: -28px; padding: 8px 12px; border: 2px solid #ffd690; border-radius: 14px 14px 2px 14px; background: #781827; transform: rotate(-12deg); color: #fff1cc; font-size: 15px; font-weight: 850; }
#bear-alarm p.bear-alarm-eyebrow { margin: 0 0 9px; color: #ffc07f; font-size: 10px; font-weight: 750; line-height: 1.6; letter-spacing: 2px; }
#bear-alarm h2 { margin: 0; color: #fff3d5; font-family: var(--sans), sans-serif; font-size: clamp(47px, 8vw, 76px); font-weight: 950; line-height: .97; letter-spacing: -3px; text-shadow: 0 5px 0 #7f1c1c, 0 8px 26px #30051070; }
#bear-alarm p.bear-alarm-order { margin: 22px 0 8px; color: #ffda93; font-size: clamp(21px, 4vw, 27px); font-weight: 800; line-height: 1.25; }
#bear-alarm #bear-alarm-description { margin: 0; color: #ffe9cf; font-size: 15px; font-weight: 450; line-height: 1.6; }
#bear-alarm .bear-alarm-countdown { display: flex; align-items: center; gap: 12px; margin-top: 23px; padding: 10px 19px; border: 1px solid #ffc28b60; background: #4e101868; border-radius: 16px; }
#bear-alarm .bear-alarm-count { min-width: 44px; font-size: 38px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; color: #ffdf9a; }
#bear-alarm .bear-alarm-countdown > span:last-child { text-align: left; font-size: 11px; font-weight: 550; line-height: 1.5; color: #ffe5c9; }
#bear-alarm .bear-alarm-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 23px; }
#bear-alarm .bear-alarm-actions button { min-height: 44px; padding: 9px 4px; color: #fff0da; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; border: 0; background: none; border-radius: 5px; }
#bear-alarm .bear-alarm-actions button:focus-visible { outline: 3px solid #ffdd9c; outline-offset: 3px; }
#bear-alarm .bear-alarm-actions button:disabled { opacity: .7; cursor: default; text-decoration: none; }
#bear-alarm .bear-alarm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#bear-alarm .bear-alarm-flames { position: fixed; z-index: -1; pointer-events: none; bottom: -80px; left: -10%; width: 120%; height: min(40vh, 340px); opacity: .62; filter: drop-shadow(0 -16px 24px #f9872640); }
#bear-alarm .bear-flame { position: absolute; bottom: 0; left: 0; width: 17%; height: 88%; background: linear-gradient(5deg, #ffd05d, #f79726 54%, #ff6d2200); border-radius: 3% 77% 30% 64%; transform-origin: 50% 100%; animation: bear-fire 2.4s ease-in-out infinite alternate; }
#bear-alarm .bear-flame::after { content: ''; position: absolute; inset: 25% 25% 0; border-radius: inherit; background: linear-gradient(0deg, #fff2a4, #ffba4166 70%, transparent); }
#bear-alarm .bear-flame-1 { left: 8%; height: 66%; animation-delay: -.6s; }
#bear-alarm .bear-flame-2 { left: 17%; height: 105%; animation-delay: -1.5s; }
#bear-alarm .bear-flame-3 { left: 27%; height: 69%; animation-delay: -2s; }
#bear-alarm .bear-flame-4 { left: 36%; height: 84%; animation-delay: -.8s; }
#bear-alarm .bear-flame-5 { left: 45%; height: 59%; animation-delay: -1.8s; }
#bear-alarm .bear-flame-6 { left: 54%; height: 97%; animation-delay: -.2s; }
#bear-alarm .bear-flame-7 { left: 63%; height: 68%; animation-delay: -1.3s; }
#bear-alarm .bear-flame-8 { left: 72%; height: 110%; animation-delay: -2.2s; }
#bear-alarm .bear-flame-9 { left: 81%; height: 77%; animation-delay: -.4s; }
#bear-alarm .bear-flame-10 { left: 90%; height: 95%; animation-delay: -1.1s; }
#bear-alarm .bear-alarm-embers { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
#bear-alarm .bear-alarm-embers i { position: absolute; bottom: 0; left: 7%; width: 4px; height: 11px; border-radius: 50%; background: #ffc46c; box-shadow: 0 0 12px #ff973f; animation: bear-ember 4.5s linear infinite; }
#bear-alarm .bear-alarm-embers i:nth-child(2) { left: 23%; animation-delay: -2.8s; }
#bear-alarm .bear-alarm-embers i:nth-child(3) { left: 39%; animation-delay: -.9s; }
#bear-alarm .bear-alarm-embers i:nth-child(4) { left: 62%; animation-delay: -3.5s; }
#bear-alarm .bear-alarm-embers i:nth-child(5) { left: 78%; animation-delay: -1.5s; }
#bear-alarm .bear-alarm-embers i:nth-child(6) { left: 92%; animation-delay: -4s; }
@keyframes bear-cow-grumble { 0%, 45%, 100% { transform: rotate(0); } 52% { transform: rotate(-3deg) translateX(-2px); } 59% { transform: rotate(3deg) translateX(2px); } 66% { transform: rotate(-2deg); } 73% { transform: rotate(2deg); } }
@keyframes bear-fire { from { transform: rotate(-8deg) scaleY(.8); } to { transform: rotate(8deg) scaleY(1.1); } }
@keyframes bear-ember { 0% { transform: translate(0, 0) rotate(-25deg); opacity: 0; } 15% { opacity: .8; } 100% { transform: translate(30px, -90vh) rotate(20deg); opacity: 0; } }
@media (max-width: 480px) { #bear-alarm { padding: max(16px, env(safe-area-inset-top)) 18px max(13px, env(safe-area-inset-bottom)); } #bear-alarm h2 { font-size: clamp(47px, 13vw, 61px); letter-spacing: -2px; } #bear-alarm .bear-alarm-warning { font-size: 8px; letter-spacing: 1.2px; } #bear-alarm .bear-alarm-cow { width: 143px; height: 143px; margin-top: 22px; } #bear-alarm .bear-alarm-actions { gap: 8px 17px; margin-top: 16px; } }
@media (max-height: 690px) { #bear-alarm .bear-alarm-cow { width: 100px; height: 100px; margin: 14px 0 12px; } #bear-alarm h2 { font-size: 46px; } #bear-alarm p.bear-alarm-order { margin-top: 14px; font-size: 20px; } #bear-alarm .bear-alarm-countdown { margin-top: 13px; padding-block: 8px; } #bear-alarm .bear-alarm-actions { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { #bear-alarm *, #bear-alarm *::before, #bear-alarm *::after { animation: none !important; transition: none !important; } #bear-alarm .bear-alarm-embers { display: none; } }
