.arrocito {
  --mascot-height: 170px;
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 132px;
  font-family: var(--ff-body, sans-serif);
  font-size: 13px;
  letter-spacing: 0;
  pointer-events: none;
}
.arrocito[hidden], .arrocito [hidden] { display: none !important; }
.arrocito.is-entering .arrocito__stage { animation: arrocito-entry 900ms both; }
.arrocito__figure { animation: arrocito-idle 7s ease-in-out infinite; }
.arrocito__action { transform-origin: 50% 95%; }
.arrocito__character {
  display: block;
  position: relative;
  width: 100%;
  height: var(--mascot-height);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  border-radius: 8px;
}
.arrocito button:focus-visible { outline: 3px solid #c97d3e; outline-offset: 3px; }
.arrocito__pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translateY(3px);
  transition: transform 220ms ease;
  pointer-events: none;
  user-select: none;
}
.arrocito__pose.is-active { opacity: 1; transform: translateY(0); }
.arrocito__pose[data-pose="WAVING"] { width: 120%; max-width: none; left: -10%; }
.arrocito[data-state="CELEBRATING"] .arrocito__action { animation: arrocito-jump 950ms ease-in-out both; }
.arrocito[data-state="WAVING"] .arrocito__action { animation: arrocito-wave 1100ms ease-in-out both; }
.arrocito[data-state="THINKING"] .arrocito__action { animation: arrocito-think 3s ease-in-out both; }
.arrocito[data-state="POINTING"] .arrocito__action { animation: arrocito-point 1100ms ease-in-out both; }
.arrocito__controls { display: flex; justify-content: center; gap: 6px; margin-top: 8px; pointer-events: auto; }
.arrocito__control {
  pointer-events: auto;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d2ddd6;
  border-radius: 50%;
  background: #fff;
  color: #1b4332;
  cursor: pointer;
  box-shadow: 0 2px 6px #0001;
}
.arrocito__control img { width: 16px; height: 16px; }
.arrocito__control::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 190px;
  padding: 5px 8px;
  background: #1b4332;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
}
.arrocito__control:hover::after, .arrocito__control:focus-visible::after { opacity: 1; }
.arrocito__bubble {
  position: absolute;
  bottom: 55px;
  left: calc(100% + 8px);
  width: 220px;
  max-width: calc(100vw - 180px);
  padding: 12px 14px;
  background: #fff;
  color: #1b4332;
  border: 1px solid #d2ddd6;
  border-radius: 8px;
  box-shadow: 0 4px 14px #0001;
  line-height: 1.5;
  animation: arrocito-message 200ms ease both;
}
.arrocito__restore { width: 44px; height: 44px; }
.arrocito__restore img { width: 34px; height: 40px; object-fit: contain; }
.arrocito.is-minimized { width: 44px; }
.arrocito.is-paused *, .arrocito.is-suspended * { animation-play-state: paused !important; }
.arrocito.is-paused .arrocito__pose { transition: none; }
@keyframes arrocito-entry {
  0% { transform: translateY(12px); }
  70% { opacity: 1; transform: translateY(-7px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes arrocito-idle {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(1px, -4px) rotate(.6deg); }
  50% { transform: translate(1px, -4px) rotate(.6deg); }
  80% { transform: translate(-1px, 0) rotate(-.5deg); }
}
@keyframes arrocito-jump {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-18px) rotate(-2deg); }
  60% { transform: translateY(0); }
  78% { transform: translateY(-5px) rotate(1deg); }
}
@keyframes arrocito-wave {
  0%, 100% { transform: rotate(0); }
  35% { transform: translateY(-5px) rotate(-2deg); }
  70% { transform: rotate(1.5deg); }
}
@keyframes arrocito-think {
  0%, 100% { transform: rotate(0); }
  40%, 65% { transform: rotate(2deg) translateX(2px); }
}
@keyframes arrocito-point {
  0%, 100% { transform: translateX(0); }
  40%, 65% { transform: translateX(5px) rotate(1deg); }
}
@keyframes arrocito-message {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1024px) { .arrocito { --mascot-height: 135px; width: 110px; } }
@media (max-width: 768px) {
  .arrocito { --mascot-height: 95px; width: 96px; left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .arrocito__control { width: 44px; height: 44px; }
  .arrocito__restore { width: 44px; height: 44px; }
  .arrocito__bubble { width: 185px; max-width: calc(100vw - 180px); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .arrocito *, .arrocito *::after { animation: none !important; transition: none !important; }
}
.station-mascot { flex:none; }
.station-mascot .arrocito {
  --mascot-height:52px;
  position:relative; inset:auto; z-index:auto; width:100%; padding:4px 14px;
  background:#f1f4e9; border-top:1px solid #d4dfcd;
}
.station-mascot .arrocito__expanded { display:flex; gap:12px; align-items:center; }
.station-mascot .arrocito__stage { order:-1; flex:0 0 42px; }
.station-mascot .arrocito__bubble {
  position:static; width:auto; max-width:none; padding:0; border:0; box-shadow:none;
  background:transparent; color:#173d30; line-height:1.35;
}
.station-mascot .arrocito__controls { flex:none; margin:0 0 0 auto; }
.station-mascot .arrocito__control::after { left:auto; right:0; }
