/* Cocktail Master Styles - GorbaTech Promo-Tech Demo */

.cm-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.15), transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(236, 72, 153, 0.1), transparent 50%);
  z-index: 0;
}

/* Toast Message */
.cm-toast {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  padding: 10px 22px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 100;
  white-space: nowrap;
}
.cm-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cm-toast.error {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}
.cm-toast.success {
  border-color: rgba(52, 211, 153, 0.6);
  color: #6ee7b7;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* ================= SCREEN 1: WELCOME ================= */
.cm-welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 44px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  gap: 36px;
  z-index: 1;
}

.cm-welcome-copy {
  flex: 1;
  max-width: 580px;
}
.cm-welcome-copy h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}
.cm-welcome-copy p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cm-sub-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.cm-recipe-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cm-recipe-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cm-recipe-chip:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
}
.cm-recipe-chip.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.2));
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
.cm-recipe-chip .chip-icon {
  font-size: 18px;
}

.cm-welcome-visual {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Shaker Illustration */
.cm-hero-shaker {
  position: relative;
  width: 170px;
  height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.hero-shaker-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.7));
}
.hero-cap {
  width: 50px;
  height: 38px;
  background: linear-gradient(135deg, #f1f5f9, #94a3b8 50%, #475569);
  border-radius: 12px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}
.hero-strainer {
  width: 90px;
  height: 48px;
  background: linear-gradient(180deg, #e2e8f0, #64748b 60%, #334155);
  border-radius: 8px 8px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: -4px;
  position: relative;
}
.hero-tin {
  width: 124px;
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(15, 23, 42, 0.6));
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top: none;
  border-radius: 4px 4px 34px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.2);
  margin-top: -6px;
}
.hero-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.8), rgba(99, 102, 241, 0.95));
  border-radius: 0 0 32px 32px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
  animation: liquidWave 3s ease-in-out infinite alternate;
}
@keyframes liquidWave {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(-4px) scaleY(1.04); }
}
.hero-ice {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.hero-ice.i1 { bottom: 50px; left: 24px; transform: rotate(15deg); }
.hero-ice.i2 { bottom: 65px; right: 28px; transform: rotate(-25deg); }
.hero-garnish {
  position: absolute;
  top: 15px;
  right: -10px;
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.hero-sparkles span {
  position: absolute;
  color: var(--primary);
  font-size: 20px;
  animation: sparkleTwinkle 2s infinite ease-in-out;
}
.hero-sparkles span:nth-child(1) { top: 20px; left: -10px; animation-delay: 0.2s; }
.hero-sparkles span:nth-child(2) { bottom: 40px; right: -15px; animation-delay: 0.8s; color: var(--gold); }
.hero-sparkles span:nth-child(3) { top: 120px; left: -25px; animation-delay: 1.4s; color: #ec4899; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ================= SCREEN 2: RECIPE MEMORIZE ================= */
#recipeScreen {
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}

.cm-recipe-header {
  text-align: center;
  margin-bottom: 8px;
}
.cm-recipe-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cm-recipe-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 2px 0 4px;
}
.cm-recipe-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.cm-memo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.cm-memo-icon {
  font-size: 28px;
  flex: none;
}
.cm-memo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cm-memo-text b {
  font-size: 14px;
  color: var(--text-main);
}
.cm-memo-text span {
  font-size: 13px;
  color: var(--text-muted);
}
.cm-memo-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid var(--primary);
  border-radius: 50%;
  flex: none;
}
.cm-memo-timer-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.cm-memo-timer-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Steps Sequence Display */
.cm-steps-display {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.cm-step-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cm-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}
.cm-step-order-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #06090e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.5);
}
.cm-step-icon {
  font-size: 34px;
  margin-top: 6px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.cm-step-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}
.cm-step-qty {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.cm-memo-footer {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cm-memo-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.cm-memo-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: 999px;
  transition: width 1s linear;
}

/* ================= SCREEN 3: GAME SCREEN ================= */
#gameScreen {
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
  height: 100%;
  z-index: 1;
}

.cm-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  flex: none;
}

.cm-game-cocktail-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-cocktail-icon {
  font-size: 22px;
}
.hud-cocktail-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.cm-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cm-step-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.cm-step-dots {
  display: flex;
  gap: 8px;
}
.cm-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.cm-step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transform: scale(1.2);
}
.cm-step-dot.done {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.cm-hud-stats {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cm-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.cm-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.cm-stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.cm-lives-rack {
  display: flex;
  gap: 4px;
}
.cm-life {
  font-size: 16px;
  opacity: 0.25;
  transition: opacity 0.2s, transform 0.2s;
}
.cm-life.active {
  opacity: 1;
}
.cm-life.shake-out {
  animation: lifeShake 0.4s ease forwards;
}
@keyframes lifeShake {
  0% { transform: scale(1.3) rotate(15deg); color: #ef4444; }
  100% { transform: scale(0.9) rotate(0); opacity: 0.2; }
}

/* Arena Layout */
.cm-bar-arena {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  position: relative;
}

/* Side Shelves for Ingredients */
.cm-shelf {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.cm-ing-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.cm-ing-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}
.cm-ing-btn:hover:not(:disabled) {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.95);
}
.left-shelf .cm-ing-btn:hover:not(:disabled) {
  transform: translateX(4px);
}
.right-shelf .cm-ing-btn:hover:not(:disabled) {
  transform: translateX(-4px);
}
.cm-ing-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.cm-ing-btn:disabled {
  opacity: 0.35;
  filter: grayscale(0.8);
  cursor: not-allowed;
  border-color: transparent;
}
.cm-ing-btn.done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.1);
  opacity: 0.6;
}
.cm-ing-btn.error-buzz {
  animation: btnBuzz 0.4s ease;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}
@keyframes btnBuzz {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.cm-ing-icon {
  font-size: 26px;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.cm-ing-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cm-ing-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
}
.cm-ing-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Center Stage & Shaker */
.cm-center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.cm-shaker-assembly {
  position: relative;
  width: 190px;
  height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s ease;
}
.cm-shaker-assembly.shake-anim {
  animation: shakerShake 0.15s infinite alternate ease-in-out;
}
@keyframes shakerShake {
  0% { transform: rotate(-8deg) translateY(-8px) scale(1.02); }
  100% { transform: rotate(8deg) translateY(8px) scale(0.98); }
}
.cm-shaker-assembly.buzz-wrong {
  animation: shakerBuzz 0.4s ease;
}
@keyframes shakerBuzz {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-12px) rotate(-3deg); filter: drop-shadow(0 0 20px #ef4444); }
  50% { transform: translateX(12px) rotate(3deg); filter: drop-shadow(0 0 20px #ef4444); }
  75% { transform: translateX(-6px) rotate(-1deg); }
}

/* Shaker Components */
.cm-pour-stream {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 0;
  background: linear-gradient(180deg, #38bdf8, #818cf8);
  border-radius: 999px;
  opacity: 0;
  transition: height 0.2s ease, opacity 0.2s ease;
  z-index: 20;
}
.cm-pour-stream.pouring {
  height: 140px;
  opacity: 1;
}

.cm-shaker-cap {
  position: relative;
  width: 68px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cap-knob {
  width: 32px;
  height: 14px;
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  border-radius: 6px 6px 2px 2px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.cap-dome {
  width: 68px;
  height: 34px;
  background: linear-gradient(180deg, #e2e8f0, #64748b 60%, #334155);
  border-radius: 12px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
}
.cm-shaker-cap.cap-off {
  transform: translateY(-80px) rotate(-25deg);
  opacity: 0;
  pointer-events: none;
}
.cm-shaker-cap.cap-on {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

.cm-shaker-strainer {
  width: 124px;
  height: 42px;
  background: linear-gradient(180deg, #94a3b8, #475569 50%, #1e293b);
  border-radius: 6px 6px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: -6px;
  z-index: 9;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.strainer-ridge {
  position: absolute;
  bottom: 6px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Glass Tumbler */
.cm-shaker-tumbler {
  position: relative;
  width: 154px;
  height: 220px;
  margin-top: -6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(15, 23, 42, 0.5));
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px 6px 36px 36px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.15), 0 16px 35px rgba(0, 0, 0, 0.6);
  z-index: 8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cm-shaker-tumbler.drop-target-hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 35px rgba(56, 189, 248, 0.45), 0 0 35px rgba(56, 189, 248, 0.6);
  transform: scale(1.04);
}
.cm-drop-hint {
  position: absolute;
  bottom: 10px;
  left: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 14;
}

.glass-reflection {
  position: absolute;
  top: 0;
  left: 12px;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
  z-index: 12;
}

.glass-ticks {
  position: absolute;
  top: 20px;
  right: 8px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 12;
}
.glass-ticks span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}

/* Liquid Body */
.cm-shaker-liquid-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
}
.cm-shaker-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.85), rgba(99, 102, 241, 0.95));
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.8s ease;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}
.cm-liquid-surface {
  position: absolute;
  top: -6px;
  left: -20px;
  right: -20px;
  height: 12px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: surfaceWave 2s infinite ease-in-out alternate;
}
@keyframes surfaceWave {
  0% { transform: rotate(-2deg) scaleY(1); }
  100% { transform: rotate(2deg) scaleY(1.3); }
}

/* Bubbles in liquid */
.cm-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cm-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: bubbleRise 2s infinite ease-in;
}
@keyframes bubbleRise {
  0% { transform: translateY(100%) scale(0.6); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-20px) scale(1.1); opacity: 0; }
}

/* Ice cubes in shaker */
.cm-shaker-ice-box {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.cm-ice-cube {
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: iceBob 2.5s infinite ease-in-out alternate;
}
@keyframes iceBob {
  0% { transform: translateY(0) rotate(var(--rot, 10deg)); }
  100% { transform: translateY(-6px) rotate(calc(var(--rot, 10deg) + 6deg)); }
}

/* Floating Added Ingredients tag */
.cm-added-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 15;
  pointer-events: none;
}
.cm-tag-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  animation: tagPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tagPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cm-shaker-base {
  width: 110px;
  height: 12px;
  background: linear-gradient(180deg, #475569, #1e293b);
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: -2px;
  z-index: 7;
}

/* Shake Phase Prompt Panel (Overlay) */
.cm-shake-prompt-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 24px;
  z-index: 50;
  text-align: center;
  animation: panelFadeIn 0.3s ease;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cm-shake-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.cm-shake-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cm-shake-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.cm-shake-meter {
  position: relative;
  width: 260px;
  height: 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
.cm-shake-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8 50%, #ec4899);
  border-radius: 999px;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}
.cm-shake-meter-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-shake-pulse {
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #38bdf8, #2563eb 50%, #7c3aed);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
  animation: shakeBtnPulse 1.2s infinite alternate;
}
@keyframes shakeBtnPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
  100% { transform: scale(1.06); box-shadow: 0 0 40px rgba(56, 189, 248, 0.8); }
}

.cm-shelf-mobile-bar {
  display: none;
}

/* Drag & Drop Ghost Pill */
.cm-ing-btn {
  touch-action: none;
}
.cm-ing-btn.dragging-source {
  opacity: 0.45;
  border-color: var(--primary);
}
.cm-drag-ghost {
  position: fixed;
  transform: translate(-50%, -50%) scale(1.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.5);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

/* ================= SCREEN 4: RESULTS ================= */
#resultScreen {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.cm-result {
  max-width: 680px;
  width: 100%;
}
.cm-result-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.cm-result-card h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0 4px;
}
.cm-result-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.cm-served-glass-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: rgba(6, 9, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 22px;
}

.cm-glass-presentation {
  position: relative;
  width: 90px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-cocktail-glass-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-cocktail-glass-svg svg {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}
.cm-glass-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}

.cm-recipe-card-summary {
  text-align: left;
  flex: 1;
}
.cm-recipe-card-summary h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.cm-summary-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cm-summary-step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-main);
}
.cm-summary-step-item b {
  color: var(--emerald);
}

.cm-stats-ribbon {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
}
.cm-ribbon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cm-ribbon-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.cm-ribbon-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}
.text-emerald {
  color: var(--emerald);
}

.cm-promo-cta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.cm-result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.cm-countdown {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .stage.landscape {
    --ar: auto;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
  }
  .screen {
    overflow-y: auto;
    justify-content: flex-start;
  }
  .cm-welcome {
    flex-direction: column-reverse;
    padding: 16px;
    gap: 16px;
    text-align: center;
  }
  .cm-welcome-copy {
    max-width: 100%;
  }
  .cm-welcome-copy h1 {
    font-size: 24px;
  }
  .cm-recipe-grid {
    justify-content: center;
  }
  .cm-welcome-visual {
    flex: none;
    transform: scale(0.75);
    margin: -24px 0;
  }

  #recipeScreen {
    padding: 16px;
  }
  .cm-steps-display {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  #gameScreen {
    padding: 10px 14px;
    justify-content: space-between;
  }
  .cm-bar-arena {
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 220px;
  }
  .cm-shelf {
    display: none;
  }
  .cm-shelf-mobile-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    padding-top: 8px;
    z-index: 10;
    flex: none;
  }
  .cm-shelf-mobile-bar .cm-ing-btn {
    padding: 8px 10px;
    gap: 8px;
  }
  .cm-shelf-mobile-bar .cm-ing-icon {
    font-size: 20px;
  }
  .cm-shelf-mobile-bar .cm-ing-title {
    font-size: 12px;
  }
  .cm-shelf-mobile-bar .cm-ing-desc {
    font-size: 10px;
  }
  .cm-shaker-assembly {
    transform: scale(0.78);
    margin: -28px 0;
  }
}

@media (max-width: 600px) {
  .cm-steps-display {
    grid-template-columns: repeat(2, 1fr);
  }
  .cm-shelf-mobile-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .cm-game-head {
    padding: 6px 10px;
    margin-bottom: 6px;
  }
  .hud-cocktail-name {
    font-size: 13px;
  }
  .cm-shaker-assembly {
    transform: scale(0.68);
    margin: -42px 0;
  }
  .cm-result-card {
    padding: 20px 16px;
  }
  .cm-served-glass-showcase {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .cm-recipe-card-summary {
    text-align: center;
  }
  .cm-summary-steps {
    justify-content: center;
  }
}
