/* Shared coffee mascot props and poses for the landing and event card. */

  .pup--coffee.is-home { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .pup.pup--coffee .pup__big, .pup.pup--coffee .pup__dot { background: rgb(var(--sds-accent)); }
  .pup.pup--coffee .pup__eyes i { background: rgb(var(--sds-white)); }
  .pup--coffee { --cup-surface: rgb(var(--sds-lienzo)); color: rgb(var(--sds-nucleo)); }
  .pup--coffee .pup__coffee { position: absolute; left: -120%; top: -45%; width: 180%; height: 198%; opacity: 0; pointer-events: none; }
  .pup__coffee svg { width: 100%; height: 100%; overflow: visible; }
  .pup__laptop { position: absolute; left: -5%; top: 46%; width: 146%; height: 104%; opacity: 0; transform: translateY(12px); transition: opacity 150ms var(--ease-smooth), transform 200ms var(--ease-smooth); pointer-events: none; z-index: 3; }
  .pup__laptop svg { width: 100%; height: 100%; }
  .pup--coffee.is-typing .pup__laptop { opacity: 1; transform: none; }
  .pup--coffee.is-working .pup__goo { display: contents; filter: none; }
  .pup--coffee.is-working .pup__big { z-index: 1; }
  .pup--coffee.is-working .pup__eyes { z-index: 2; }
  .pup--coffee.is-working .pup__dot { z-index: 4; }
  .pup--coffee.is-drinking .pup__dot { z-index: 4; }
  .pup__sweat { position: absolute; inset: -4% -5% 0 0; width: 105%; height: 105%; color: #477db5; opacity: 0; pointer-events: none; z-index: 6; }
  .pup__sweat svg { width: 100%; height: 100%; overflow: visible; }
  .is-sweating .pup__sweat { opacity: 1; }
  .is-sweating .cp-drop { animation: cp-sweat 850ms var(--ease-smooth) infinite; transform-origin: center; }
  .is-sweating .cp-drop--2 { animation-delay: -300ms; }
  .is-sweating .cp-drop--3 { animation-delay: -600ms; }
  @keyframes cp-sweat { 0% { opacity: 0; transform: translateY(-5px) scale(.7); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(15px) scale(1); } }
  .cp-steam { animation: coffee-steam 3s var(--ease-smooth) infinite; }
  @keyframes coffee-steam { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: .6; transform: translateY(-3px); } }
  .pup--coffee:focus-visible { outline-offset: 12px; border-radius: 4px; }
.pup--coffee.is-typing .pup__big { transform: skewY(-5deg) scaleX(.93); transform-origin: right bottom; }
.pup--coffee .pup__laptop { z-index: 5; }
.pup--coffee.is-working .pup__dot { z-index: 4; }
.pup--coffee .pup__sweat { color: #a2bdd5; }

.cp-cup-eyes { transform-origin: 38px 48px; animation: cp-cup-blink 4s infinite; }
@keyframes cp-cup-blink { 0%,42%,46%,100% { transform: scaleY(1); } 44% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .cp-cup-eyes, .cp-steam, .cp-drop { animation: none !important; } }
.pup__sparks { position: absolute; inset: -50% -65%; pointer-events: none; opacity: 0; color: #d0b5c9; z-index: 0; }
.pup__sparks i { position: absolute; font: normal 10px/1 var(--font-mono); opacity: 0; }
.pup__sparks i:nth-child(1) { left: 8%; top: 30%; }
.pup__sparks i:nth-child(2) { right: 0; top: 37%; color: #ff00b4; }
.pup__sparks i:nth-child(3) { left: 18%; top: 67%; }
.pup__sparks i:nth-child(4) { right: 12%; top: 8%; }
.is-sweating .pup__sparks { opacity: 1; }
.is-sweating .pup__sparks i { animation: cp-code-burst 1.4s ease-out infinite; }
.is-sweating .pup__sparks i:nth-child(2) { animation-delay: -.35s; }
.is-sweating .pup__sparks i:nth-child(3) { animation-delay: -.7s; }
.is-sweating .pup__sparks i:nth-child(4) { animation-delay: -1.05s; }
@keyframes cp-code-burst { 0% { opacity: 0; transform: translateY(9px); } 20% { opacity: .65; } 100% { opacity: 0; transform: translateY(-22px); } }
@media (prefers-reduced-motion: reduce) { .pup__sparks { display: none; } }

.pup.pup--coffee.is-working .pup__dot { background: transparent; }
.pup--coffee.is-working .pup__dot::before { content: ''; position: absolute; inset: 0; background: rgb(var(--sds-accent)); border-radius: var(--grip-round, 0); transform: scale(var(--grip-stretch, 1), var(--grip-squash, 1)); }
.pup__laptop { transform:translate(16px,22px) rotate(14deg) scale(.65); transform-origin:70% 90%; transition:opacity .3s,transform .55s cubic-bezier(.2,.9,.2,1.1); }
.pup--coffee.is-typing .pup__laptop { transform:translate(0,0) rotate(0) scale(1); }
.pup--coffee .pup__laptop { left:4%; top:45%; width:132%; height:100%; }
.pup--coffee .pup__laptop { left:-23%; top:73%; width:117%; height:80%; }
.pup--coffee.is-typing .pup__big { transform:none; }
@media(prefers-reduced-motion:reduce) { .pup__laptop {transition:none;} }
.cp-confetti { position:fixed; width:6px; height:9px; pointer-events:none; z-index:10000; }
@media(prefers-reduced-motion:reduce) { .cp-confetti {display:none;} }

.pup--coffee:not(.is-working) .pup__dot { border-radius:var(--grip-round,0); }

.codexpresso-playground .pup--inline { position:absolute; left:24px; top:16px; width:48px; height:48px; margin:0; z-index:2; }
