/* ==========================================================================
   Cozy Barista - Design System & Styles
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --color-bg: #f9f5f0;
  --color-wood: #8c5b3e;
  --color-wood-light: #b07c58;
  --color-wood-dark: #663e26;
  --color-coffee-dark: #3a2212;
  --color-cream: #fbf8f3;
  --color-sage: #5c6e58;
  --color-sage-light: #7c9078;
  --color-terracotta: #d37556;
  --color-terracotta-light: #e09278;
  --color-gold: #e5a93c;
  --color-gold-light: #f1c565;
  
  /* Text colors */
  --color-text: #2f1b0e;
  --color-text-light: #6d5241;
  
  /* UI Panels */
  --color-panel-bg: rgba(251, 248, 243, 0.82);
  --color-glass-border: rgba(140, 91, 62, 0.15);
  --shadow-cozy: 0 10px 25px rgba(92, 59, 39, 0.1);
  --shadow-hover: 0 15px 30px rgba(92, 59, 39, 0.18);
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

/* Main Container */
.game-container {
  width: 100%;
  max-width: 1280px;
  height: 95vh;
  min-height: 720px;
  background-color: var(--color-bg);
  border: 4px solid var(--color-wood-dark);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(58, 34, 18, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Header */
.game-header {
  height: 70px;
  background-color: var(--color-cream);
  border-bottom: 3px solid var(--color-wood-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  animation: float-cup 4s ease-in-out infinite;
}

.logo h1 {
  font-family: var(--font-header);
  font-weight: 800;
  color: var(--color-coffee-dark);
  font-size: 24px;
  letter-spacing: -0.5px;
}

.btn-cozy {
  background-color: var(--color-sage);
  color: white;
  border: 2px solid var(--color-coffee-dark);
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--color-coffee-dark);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cozy:hover {
  background-color: var(--color-sage-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-coffee-dark);
}

.btn-cozy:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-coffee-dark);
}

/* Main Gameplay Stage */
.game-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  height: calc(100% - 70px);
}

/* LEFT SIDE: Tasting & Backdrops */
.tasting-area {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0e6da;
  border-right: 3px solid var(--color-wood-dark);
}

.shop-backdrop {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Barista Sprite and Speech bubble */
.character-wrapper {
  position: absolute;
  bottom: 0px;
  left: 5%;
  width: 55%;
  height: 85%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.barista-sprite {
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

/* dialogue Bubble */
.dialogue-bubble {
  position: absolute;
  top: 15%;
  left: 70%;
  width: 180px;
  background: var(--color-cream);
  border: 3px solid var(--color-coffee-dark);
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-coffee-dark);
  box-shadow: var(--shadow-cozy);
  z-index: 3;
  animation: dialogue-wobble 8s ease-in-out infinite;
}

.dialogue-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 20px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: var(--color-cream) transparent;
  display: block;
  width: 0;
  z-index: 1;
}

.dialogue-bubble::before {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 18px;
  border-width: 14px 14px 0;
  border-style: solid;
  border-color: var(--color-coffee-dark) transparent;
  display: block;
  width: 0;
  z-index: 0;
}

/* Counter & Brewing Station Overlay */
.counter-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 55%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 25px;
  z-index: 4;
}

.cup-station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Steam particles */
.steam-container {
  display: flex;
  gap: 8px;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.steam-container.steaming {
  opacity: 0.7;
}

.steam-particle {
  width: 4px;
  height: 25px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  display: inline-block;
  filter: blur(2px);
}

.steam-particle.s-0 { animation: steam-rise 2s infinite ease-in; }
.steam-particle.s-1 { animation: steam-rise 2.3s infinite ease-in 0.3s; }
.steam-particle.s-2 { animation: steam-rise 1.8s infinite ease-in 0.6s; }

/* The Glass Cup rendering */
.cup-wrapper {
  position: relative;
  width: 140px;
  height: 120px;
  cursor: default;
}

.cup {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 95px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-top: none;
  border-bottom-left-radius: 45px;
  border-bottom-right-radius: 45px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -10px 15px rgba(255, 255, 255, 0.2), 
              inset -4px 0 10px rgba(255, 255, 255, 0.1),
              0 8px 12px rgba(92, 59, 39, 0.08);
  overflow: hidden;
  z-index: 5;
}

/* Inner Cup Highlight */
.cup::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10px;
  width: 8px;
  height: 75%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  pointer-events: none;
}

.cup-handle {
  position: absolute;
  right: 5px;
  top: 25px;
  width: 30px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-left: none;
  border-radius: 0 20px 20px 0;
  z-index: 4;
}

.saucer {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(92, 59, 39, 0.05);
  z-index: 3;
}

/* Liquid container & dynamic layering */
.liquid-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Fills from JS */
  display: flex;
  flex-direction: column-reverse;
  transition: height 0.1s linear;
}

.liquid-layer {
  width: 100%;
  transition: height 0.1s linear, background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Froth/Steam Cap */
.foam-cap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: height 0.3s ease;
  z-index: 6;
  pointer-events: none;
}

.foam-cap.frothed {
  height: 15px;
  animation: bubble-float 1.5s infinite ease-in-out;
}

/* Ice representation inside cup */
.ice-cube-visual {
  position: absolute;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.8);
  z-index: 8;
  pointer-events: none;
}

/* Toppings visual sprinkles overlay */
.topping-sprinkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

.topping-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.topping-leaf {
  position: absolute;
  width: 12px;
  height: 6px;
  border-radius: 6px 0;
  transform: rotate(30deg);
}

/* Brewing Control Bar */
.brewing-controls {
  height: 80px;
  background-color: var(--color-cream);
  border-top: 3px solid var(--color-wood-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  z-index: 5;
}

.btn-control {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border: 2px solid var(--color-coffee-dark);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 var(--color-coffee-dark);
  transition: all 0.15s ease;
}

.btn-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-coffee-dark);
}

.btn-control:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-coffee-dark);
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: white;
}
.btn-primary:hover { background-color: var(--color-terracotta-light); }

.btn-secondary {
  background-color: var(--color-gold);
  color: var(--color-coffee-dark);
}
.btn-secondary:hover { background-color: var(--color-gold-light); }

.btn-danger {
  background-color: #e26868;
  color: white;
}
.btn-danger:hover { background-color: #eb8787; }


/* RIGHT SIDE: Ingredients shelves */
.shelves-area {
  background: radial-gradient(circle at 70% 30%, #f4eae0, #eae0d3);
  padding: 16px 20px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shelf-container {
  background: var(--color-panel-bg);
  border: 2px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow-cozy);
  backdrop-filter: blur(5px);
  position: relative;
}

.shelf-container::after {
  content: '';
  display: block;
  height: 6px;
  background: var(--color-wood-light);
  border-radius: 3px;
  margin-top: 12px;
  border-bottom: 2px solid var(--color-wood-dark);
}

.shelf-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-coffee-dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shelf-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: none;
}

/* Grid layout for shelf ingredient buttons */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}

.ingredient-btn {
  background: white;
  border: 2px solid var(--color-glass-border);
  border-radius: 14px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  -webkit-user-select: none;
}

.ingredient-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 15px rgba(92, 59, 39, 0.08);
  border-color: var(--color-wood-light);
}

.ingredient-btn.pouring-active {
  transform: scale(0.95);
  background-color: var(--color-cream);
  border-color: var(--color-terracotta);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
  animation: button-vibrate 0.15s infinite linear;
}

.ing-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ing-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ing-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-coffee-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}


/* ==========================================================================
   MODALS AND INTERACTIVE OVERLAYS
   ========================================================================== */

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 27, 14, 0.45);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: var(--color-bg);
  border: 4px solid var(--color-wood-dark);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  max-width: 90%;
  width: 780px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-content {
  transform: translateY(30px) scale(0.95);
}

.modal-header {
  padding: 16px 24px;
  background: var(--color-cream);
  border-bottom: 3px solid var(--color-wood-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-header);
  color: var(--color-coffee-dark);
  font-size: 22px;
  font-weight: 800;
}

.close-button {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-light);
  cursor: pointer;
}
.close-button:hover { color: var(--color-coffee-dark); }

/* Recipe Book Grid styles */
.recipe-progress-bar {
  height: 8px;
  background: #e2dbd0;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: var(--color-sage);
  transition: width 0.5s ease;
}

.recipe-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  height: 400px;
  overflow: hidden;
}

.recipe-list {
  border-right: 2px solid var(--color-glass-border);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 2px solid var(--color-glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recipe-item:hover {
  border-color: var(--color-wood-light);
  background: var(--color-cream);
}

.recipe-item.active-recipe {
  border-color: var(--color-sage);
  background-color: rgba(92, 110, 88, 0.08);
}

.recipe-item.locked {
  opacity: 0.65;
  background: #ece7de;
}

.recipe-item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-ing-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

.recipe-item-name {
  font-weight: 700;
  font-size: 14px;
}

.recipe-item-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 8px;
}
.locked .recipe-item-status { background: #d0c8bd; color: var(--color-text-light); }
.unlocked .recipe-item-status { background: rgba(92, 110, 88, 0.18); color: var(--color-sage); }

/* Recipe Detail Panel */
.recipe-detail {
  padding: 20px;
  overflow-y: auto;
  background: var(--color-cream);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-light);
  text-align: center;
  gap: 12px;
}

.placeholder-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.25;
}

.stat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

.recipe-detail h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-coffee-dark);
}

.recipe-desc {
  font-size: 13.5px;
  color: var(--color-text-light);
  line-height: 1.4;
}

.recipe-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.recipe-tag {
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(140, 91, 62, 0.1);
  color: var(--color-coffee-dark);
  padding: 4px 8px;
  border-radius: 6px;
}

.recipe-ratio-list {
  background: white;
  border: 2px solid var(--color-glass-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ratio-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--color-glass-border);
}
.ratio-row:last-child { border-bottom: none; }

.ratio-label { display: flex; align-items: center; gap: 6px; }


/* ==========================================================================
   RESULT CARD OVERLAY
   ========================================================================== */

.result-card {
  width: 520px;
  text-align: center;
  overflow: visible;
  position: relative;
}

.result-celebration {
  height: 160px;
  background: radial-gradient(circle, var(--color-gold-light), transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
  position: relative;
}

.result-sprite {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: float-cup 3s ease-in-out infinite;
  z-index: 10;
}

.result-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-bg);
}

.result-recipe-status {
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(92, 110, 88, 0.15);
  color: var(--color-sage);
}

.result-card h2 {
  font-family: var(--font-header);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-coffee-dark);
  line-height: 1.2;
}

.review-quote-box {
  background: var(--color-cream);
  border: 2px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.quote-mark {
  position: absolute;
  top: -12px;
  left: 12px;
  font-size: 40px;
  color: var(--color-wood-light);
  opacity: 0.35;
  font-family: serif;
}

.review-quote-box p {
  font-size: 14.5px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Stats progress bars */
.result-stats {
  text-align: left;
  background: white;
  border: 2px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 14px 16px;
}

.result-stats h3 {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-coffee-dark);
  margin-bottom: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.stat-row:last-child { margin-bottom: 0; }

.stat-label { width: 100px; color: var(--color-text-light); }

.stat-bar {
  flex: 1;
  height: 8px;
  background: #ece7de;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 12px;
}

.stat-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.fill-bitter { background: #603d27; }
.fill-sweet { background: var(--color-terracotta); }
.fill-creamy { background: #eadbc8; border: 1px solid rgba(0,0,0,0.05); }
.fill-sour { background: var(--color-gold); }
.fill-salty { background: #b0c2d3; }

.stat-val { width: 35px; text-align: right; color: var(--color-coffee-dark); }

.result-actions {
  display: flex;
  justify-content: center;
}

.btn-large {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  background-color: var(--color-sage);
}


/* Sound control */
.audio-control-fixed {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 50;
}

.btn-audio-mute {
  background: var(--color-cream);
  border: 2px solid var(--color-coffee-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--color-coffee-dark);
  transition: all 0.15s ease;
}

.btn-audio-mute:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--color-coffee-dark);
}

.btn-audio-mute:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--color-coffee-dark);
}


/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* Bubbles shaking animation for active pour */
@keyframes button-vibrate {
  0% { transform: scale(0.95) translate(1px, 1px) rotate(0deg); }
  10% { transform: scale(0.95) translate(-1px, -2px) rotate(-1deg); }
  20% { transform: scale(0.95) translate(-3px, 0px) rotate(1deg); }
  30% { transform: scale(0.95) translate(0px, 2px) rotate(0deg); }
  40% { transform: scale(0.95) translate(1px, -1px) rotate(1deg); }
  50% { transform: scale(0.95) translate(-1px, 2px) rotate(-1deg); }
  60% { transform: scale(0.95) translate(-3px, 1px) rotate(0deg); }
  70% { transform: scale(0.95) translate(2px, 1px) rotate(-1deg); }
  85% { transform: scale(0.95) translate(-1px, -1px) rotate(1deg); }
  100% { transform: scale(0.95) translate(2px, -2px) rotate(0deg); }
}

/* Dialogue box wobble */
@keyframes dialogue-wobble {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-3px) rotate(-0.5deg); }
  75% { transform: translateY(2px) rotate(0.5deg); }
}

/* Floating animation for result sprite */
@keyframes float-cup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Steam rise */
@keyframes steam-rise {
  0% {
    transform: translateY(15px) scaleY(0.5) translateX(0);
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  60% {
    transform: translateY(-15px) scaleY(1.2) translateX(4px);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-30px) scaleY(1.5) translateX(-4px);
    opacity: 0;
  }
}

/* Bubble float animation for frothed foam */
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
