:root {
  --primary: #d35400;
  --primary-light: #e67e22;
  --secondary: #27ae60;
  --secondary-light: #2ecc71;
  --danger: #c0392b;
  --accent: #f39c12;
  --gold: #f1c40f;
  --dark: #2c3e50;
  --dark-wood: #2c1e18;
  --light: #faf7f2;
  --card-bg: #ffffff;
  --stage-aspect: 4 / 3;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: radial-gradient(circle at 50% 20%, #3e251a 0%, #20130d 100%);
  color: #fff;
  font-family: var(--font-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  padding: 8px;
}

/* Header HUD */
.app-header {
  width: 960px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(44, 30, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(243, 156, 18, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: width 0.15s ease;
}

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

.btn-back {
  background: rgba(230, 126, 34, 0.25);
  border: 1.5px solid rgba(243, 156, 18, 0.65);
  color: #f1c40f;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back:hover {
  background: #d35400;
  color: #fff;
  border-color: #f39c12;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(211, 84, 0, 0.45);
}

/* Tombol Kembali In-Stage (2 Alur Navigasi Terpadu di Layar Game) */
.stage-btn-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 16, 12, 0.9);
  border: 1.5px solid rgba(243, 156, 18, 0.75);
  color: #f1c40f;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.stage-btn-back:hover {
  background: #d35400;
  color: #fff;
  border-color: #f39c12;
  transform: translateX(-3px) scale(1.04);
  box-shadow: 0 6px 18px rgba(211, 84, 0, 0.6);
}

.stage-btn-back:active {
  transform: translateX(-1px) scale(0.98);
}

.brand-icon {
  font-size: 1.8rem;
  background: rgba(243, 156, 18, 0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(243, 156, 18, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.75rem;
  color: #f39c12;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.stat-chip {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-chip {
  color: #fcefe3;
  background: rgba(211, 84, 0, 0.35);
  border-color: rgba(230, 126, 34, 0.4);
}

.score-chip {
  color: #fff;
  background: rgba(241, 196, 15, 0.15);
  border-color: rgba(241, 196, 15, 0.4);
}

.score-icon {
  font-size: 1rem;
}

.score-label {
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  color: #f1c40f;
}

.score-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1c40f;
  min-width: 24px;
}

.score-pulse {
  animation: scoreBounce 0.4s ease;
}

@keyframes scoreBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); color: #2ecc71; }
  100% { transform: scale(1); }
}

.floating-score {
  position: absolute;
  color: #f1c40f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 9999;
  animation: floatUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUpFade {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  25% { opacity: 1; transform: translateY(-16px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-45px) scale(1); }
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(243, 156, 18, 0.3);
  border-color: #f39c12;
  transform: scale(1.08);
}

/* Fixed Virtual Canvas Scaler (960x720 Native Resolution) */
.stage-scaler-container {
  position: relative;
  width: 960px;
  height: 720px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(243, 156, 18, 0.2);
  touch-action: pan-x pan-y pinch-zoom;
}

.stage-wrapper {
  width: 960px !important;
  height: 720px !important;
  min-width: 960px !important;
  min-height: 720px !important;
  max-width: 960px !important;
  max-height: 720px !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transform-origin: 0 0 !important;
  background: #1a0f0a;
  border-radius: 20px;
  overflow: hidden;
}

/* Floating Zoom Controller on Stage */
.zoom-controls-floating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(26, 16, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(243, 156, 18, 0.6);
  border-radius: 24px;
  padding: 4px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  transition: opacity 0.25s ease, transform 0.25s ease;
  touch-action: auto;
  pointer-events: auto;
}

.btn-zoom-action {
  background: rgba(230, 126, 34, 0.25);
  border: 1px solid rgba(243, 156, 18, 0.55);
  color: #f1c40f;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-zoom-action:hover {
  background: #d35400;
  color: #fff;
  transform: scale(1.12);
}

.btn-zoom-action:active {
  transform: scale(0.92);
}

.zoom-pct {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 44px;
  text-align: center;
  padding: 0 2px;
  user-select: none;
}

.btn-zoom-reset {
  font-size: 0.92rem;
  background: rgba(39, 174, 96, 0.25);
  border-color: rgba(46, 204, 113, 0.55);
  color: #2ecc71;
}

.btn-zoom-reset:hover {
  background: #27ae60;
  color: #fff;
}

.mobile-orient-tip {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1c40f;
  background: rgba(30, 18, 14, 0.9);
  border: 1px solid rgba(243, 156, 18, 0.5);
  padding: 6px 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: fadeIn 0.4s ease;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.backdrop-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease;
  pointer-events: none;
}

.backdrop-layer.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Illustrated Kitchen Fallbacks */
.kitchen-station-backdrop {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.station-bg-tools {
  background: linear-gradient(180deg, #dfd7cc 0%, #c9bea9 55%, #8d7356 56%, #4e3629 100%);
}

.station-bg-wash {
  background: linear-gradient(180deg, #d2e4e8 0%, #b8d2d8 55%, #7a8b99 56%, #34495e 100%);
}

.station-bg-board {
  background: radial-gradient(circle at 50% 40%, #c89666 0%, #8d5b4c 65%, #3d2314 100%);
}

.station-bg-mortar {
  background: radial-gradient(circle at 50% 50%, #4a5568 0%, #2d3748 60%, #1a202c 100%);
}

.station-bg-cook {
  background: radial-gradient(circle at 50% 45%, #3c2415 0%, #211208 70%, #0a0502 100%);
}

.station-bg-storage {
  background: linear-gradient(180deg, #ede6d6 0%, #cfc4ac 50%, #7d6346 51%, #4a3622 100%);
}

.station-bg-eval {
  background: radial-gradient(circle at 50% 30%, #5c3826 0%, #2f190e 100%);
}

.station-wall-tiles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.station-counter-top {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  border-top: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.stage-transition-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(35, 20, 15, 0.9) 0%, rgba(15, 8, 5, 0.98) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.3s ease;
}

.stage-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.stage-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stage-content.scene-fade-exit {
  opacity: 0;
  transform: scale(0.98);
}

.stage-content * {
  pointer-events: auto;
}

/* Chef Jejes - Fixed proportional character */
.chef-container {
  position: absolute;
  left: 2%;
  bottom: 2%;
  width: 19%;
  max-width: 200px;
  height: auto;
  z-index: 10;
  transition: all 0.4s ease;
  pointer-events: none;
}

.chef-container.chef-enter {
  animation: chefBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes chefBounceIn {
  0% { opacity: 0; transform: translateX(-40px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.chef-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.chef-img.chef-idle-anim {
  animation: chefBreath 3s ease-in-out infinite alternate;
}

@keyframes chefBreath {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* Speech Bubble - Compact non-intrusive mentor toast docked beside Chef Jejes */
.speech-bubble {
  position: absolute;
  left: 16%;
  bottom: 12px;
  width: auto;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  color: #2c3e50;
  padding: 8px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 25;
  font-size: 13.5px;
  line-height: 1.4;
  border: 2.5px solid #e67e22;
  animation: bubblePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.speech-bubble.clickable {
  cursor: pointer;
}

.speech-bubble.clickable:hover {
  transform: translateY(-2px);
  border-color: #d35400;
  box-shadow: 0 14px 35px rgba(211, 84, 0, 0.4);
}

.dialog-speaker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #d35400;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dialog-prompt {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #d35400;
  text-align: right;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  animation: promptBounce 1s infinite alternate ease-in-out;
}

@keyframes promptBounce {
  from { transform: translateX(0); opacity: 0.85; }
  to { transform: translateX(4px); opacity: 1; }
}

/* Comic Tail pointing directly to the LEFT (towards Chef Jejes mouth) */
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 14px;
  border-width: 7px 10px 7px 0;
  border-style: solid;
  border-color: transparent #e67e22 transparent transparent;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  left: -7px;
  bottom: 15px;
  border-width: 6px 8px 6px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}

/* Dialog Scrim Overlay - Non-blocking to never interfere with stage tools */
.dialog-scrim-overlay {
  position: absolute;
  inset: 0;
  z-index: 24;
  cursor: pointer;
  pointer-events: none;
  background: transparent;
}

@keyframes bubblePop {
  0% { transform: scale(0.8) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(211, 84, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(211, 84, 0, 0.6);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4); }
  50% { box-shadow: 0 8px 28px rgba(230, 126, 34, 0.8), 0 0 14px rgba(243, 156, 18, 0.7); }
  100% { box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4); }
}

.corner-action-btn {
  position: absolute;
  right: 5%;
  bottom: 6%;
  z-index: 30;
}

/* Scene: Start */
.scene-start {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 22%;
}

.start-btn-wrapper {
  cursor: pointer;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65));
}

.start-btn-wrapper:hover {
  transform: scale(1.06);
}

.start-btn-wrapper.btn-clicked {
  transform: scale(0.92);
  filter: brightness(1.2);
}

.start-btn-img {
  max-width: 270px;
  height: auto;
}

/* Scene: Transition */
.stage-content > .scene-transition-hygiene {
  width: 100%;
  height: 100%;
  position: relative;
  pointer-events: auto;
}

.scene-dialog-scrim {
  position: absolute;
  inset: 0;
  z-index: 22;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
}

.dialog-tap-hint {
  background: rgba(30, 18, 14, 0.85);
  backdrop-filter: blur(8px);
  color: #f1c40f;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 24px;
  border: 1.5px solid rgba(243, 156, 18, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: promptPulse 1.6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes promptPulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; box-shadow: 0 10px 25px rgba(243, 156, 18, 0.6); }
  100% { transform: scale(1); opacity: 0.85; }
}

.scene-transition-hygiene .chef-container {
  left: 6%;
  bottom: 4%;
}

/* Scene: Hygiene Dressing */
.scene-hygiene-dressing {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-hygiene-dressing * {
  pointer-events: auto;
}

.dressing-station {
  position: absolute;
  left: 5%;
  bottom: 2%;
  width: 40%;
  height: 94%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 10;
}

.dressing-dialog {
  background: #ffffff;
  color: #2c3e50;
  border: 3px solid #27ae60;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 6px;
  text-align: center;
  max-width: 92%;
  position: relative;
  animation: bubblePop 0.3s ease;
  z-index: 25;
  pointer-events: auto;
}

.dressing-dialog::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #27ae60 transparent transparent transparent;
}

.dressing-doll {
  position: relative;
  height: 82%;
  aspect-ratio: 1696 / 2528;
  max-width: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doll-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.dressing-doll.fully-equipped .doll-base {
  opacity: 0;
  pointer-events: none;
}

.dressing-doll.fully-equipped .worn-apd {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.dressing-doll.fully-equipped .body-zone {
  opacity: 0;
  pointer-events: none;
}

.scene-hygiene-dressing.fully-equipped .wardrobe-hangers-area {
  opacity: 0.35;
  transition: opacity 0.8s ease;
}

.doll-uniform-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.55));
  z-index: 20;
}

.doll-uniform-overlay.active {
  opacity: 1;
  pointer-events: auto;
  filter: drop-shadow(0 0 25px rgba(241, 196, 15, 0.85)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

.worn-apd {
  position: absolute;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

.worn-apd.worn-active {
  opacity: 1;
  transform: scale(1);
}

.worn-apd.worn-hat { top: 1%; left: 28%; width: 44%; z-index: 10; }
.worn-apd.worn-necktie { top: 27%; left: 42.5%; width: 15%; z-index: 8; }
.worn-apd.worn-jacket { top: 31%; left: 21%; width: 58%; z-index: 6; }
.worn-apd.worn-apron { top: 48%; left: 28%; width: 44%; z-index: 9; }
.worn-apd.worn-napkin { top: 54%; left: 60%; width: 17%; z-index: 11; }
.worn-apd.worn-shoes { bottom: 0%; left: 29%; width: 44%; z-index: 5; }

.body-zone {
  position: absolute;
  border-radius: 14px;
  border: 2px dashed transparent;
  transition: all 0.25s ease;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.body-zone.zone-hat { top: 1%; left: 22%; width: 56%; height: 25%; }
.body-zone.zone-necktie { top: 25%; left: 36%; width: 28%; height: 11%; }
.body-zone.zone-jacket { top: 31%; left: 16%; width: 68%; height: 22%; }
.body-zone.zone-apron { top: 48%; left: 24%; width: 52%; height: 27%; }
.body-zone.zone-napkin { top: 52%; left: 56%; width: 25%; height: 18%; }
.body-zone.zone-shoes { bottom: 0%; left: 22%; width: 56%; height: 20%; }

.body-zone .zone-badge {
  background: rgba(39, 174, 96, 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.body-zone.zone-highlight {
  border-color: #27ae60;
  background: rgba(46, 204, 113, 0.25);
}

.body-zone.zone-highlight .zone-badge {
  opacity: 1;
  transform: scale(1);
}

.body-zone.zone-hover {
  border-color: #f1c40f;
  background: rgba(241, 196, 15, 0.35);
  transform: scale(1.05);
}

/* Area Gantungan APD Langsung pada Backdrop Lemari (Tanpa Kotak/Panel Lemari Palsu) */
.wardrobe-hangers-area {
  position: absolute;
  left: 48%;
  right: 5%;
  top: 15%;
  bottom: 12%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px 12px;
  align-items: center;
  justify-items: center;
  pointer-events: none;
  z-index: 10;
}

.apd-hanger-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: grab;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
  padding: 4px;
}

.apd-hanger-slot:hover:not(.equipped) {
  transform: translateY(-8px) scale(1.12);
  filter: drop-shadow(0 10px 20px rgba(243, 156, 18, 0.7));
}

.apd-hanger-slot:active:not(.equipped) {
  cursor: grabbing;
}

.apd-hanger-img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.apd-hanger-label {
  margin-top: 6px;
  background: rgba(30, 18, 14, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(243, 156, 18, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.2s ease;
}

.apd-hanger-slot:hover:not(.equipped) .apd-hanger-label {
  background: #d35400;
  border-color: #f39c12;
  color: #fff;
  transform: scale(1.05);
}

.apd-hanger-slot.equipped {
  opacity: 0.18;
  filter: grayscale(1);
  pointer-events: none;
  transform: scale(0.9);
}

.apd-hanger-slot.equipped .apd-hanger-label {
  background: rgba(39, 174, 96, 0.85);
  border-color: #2ecc71;
}

.apd-counter-badge {
  position: absolute;
  top: 4%;
  right: 6%;
  background: rgba(44, 30, 24, 0.85);
  backdrop-filter: blur(8px);
  color: #f1c40f;
  border: 1.5px solid rgba(243, 156, 18, 0.45);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  z-index: 15;
  pointer-events: none;
}

/* Floating Proxy for Drag */
.dragging-apd-proxy {
  position: absolute;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  background: #ffffff;
  border: 2px solid #27ae60;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 999;
  pointer-events: none;
  transform: scale(1.15);
}

.dragging-apd-proxy img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.dragging-apd-proxy span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 2px;
}

.dragging-apd-proxy.can-drop {
  border-color: #f1c40f;
  transform: scale(1.25);
  box-shadow: 0 0 25px rgba(241, 196, 15, 0.8);
}

/* Scene: Interactive Culinary Recipe Book (Jurnal Resep Kuliner Nusantara) */
.culinary-journal-stage {
  position: absolute;
  inset: 3% 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: auto;
}

.recipe-book-binder {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 560px;
  background: #3e2723;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 2px 6px rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 10px;
  border: 3px solid #5d4037;
}

.book-ribbon-tabs {
  position: absolute;
  top: -26px;
  left: 45px;
  display: flex;
  gap: 10px;
  z-index: 30;
}

.book-ribbon {
  padding: 6px 18px 10px;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.book-ribbon.ribbon-Putih { background: #7f8c8d; }
.book-ribbon.ribbon-Merah { background: #c0392b; }
.book-ribbon.ribbon-Kuning { background: #d4ac0d; }

.book-ribbon:hover,
.book-ribbon.active {
  transform: translateY(-5px);
  filter: brightness(1.15);
}

.book-page {
  flex: 1;
  height: 100%;
  background: linear-gradient(135deg, #fdfbf7 0%, #f4ede2 100%);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 30px rgba(139, 69, 19, 0.08), 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow-y: auto;
}

.page-header-decor {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.page-header-decor.right-align {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px dashed #d7ccc8;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.book-chapter-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: #b7950b;
  letter-spacing: 1.5px;
}

.book-recipe-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 1px 0;
}

.book-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: #7f8c8d;
}

.polaroid-dish-frame {
  position: relative;
  width: 100%;
  background: #ffffff;
  padding: 6px 6px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: rotate(-1.5deg);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.polaroid-pin {
  position: absolute;
  top: -12px;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.polaroid-dish-img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid-dish-caption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  margin-top: 5px;
}

.chef-parchment-note {
  background: #fff9db;
  border: 1px solid #ffe066;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #495057;
  line-height: 1.35;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: rotate(0.6deg);
  margin-bottom: 8px;
}

.note-header {
  font-weight: 700;
  color: #d9480f;
  margin-bottom: 2px;
}

.book-app-pills {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
  color: #333;
  line-height: 1.3;
  align-items: baseline;
}

.app-pills-label {
  font-weight: 700;
  color: #2c3e50;
  white-space: nowrap;
}

.app-pills-text {
  color: #555;
}

.wax-seal-badge {
  background: #c0392b;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1.5px solid #f1c40f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.recipe-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 6px 0 12px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.ingredient-journal-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.ingredient-journal-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #d4ac0d;
  flex-shrink: 0;
}

.ingredient-journal-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ingredient-journal-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2c3e50;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ingredient-journal-gram {
  font-size: 0.72rem;
  font-weight: 800;
  color: #d35400;
}

.culinary-stamp-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f8f5;
  border: 1.5px dashed #27ae60;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #16a085;
  margin-bottom: 12px;
}

.book-turn-page-btn {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid #f39c12;
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  margin-top: auto;
}

.book-turn-page-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(211, 84, 0, 0.55);
}

/* Scene: Bumbu Menu (Asset-First Culinary Plates on Table) */
.bumbu-menu-table {
  position: absolute;
  left: 20%;
  right: 4%;
  bottom: 10%;
  top: 20%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  z-index: 10;
  pointer-events: none;
}

.culinary-plate-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.culinary-plate-option:hover {
  transform: translateY(-12px) scale(1.08);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.7));
}

.plate-dish-graphic {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), inset 0 6px 14px rgba(255, 255, 255, 0.4);
  border: 5px solid #f1c40f;
  background: #1a0f0a;
  transition: all 0.3s ease;
}

.plate-dish-asset-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.35s ease;
}

.culinary-plate-option:hover .plate-dish-asset-img {
  transform: scale(1.18);
}

.plate-dish-graphic.dish-Putih {
  border-color: #ecf0f1;
}

.plate-dish-graphic.dish-Merah {
  border-color: #e74c3c;
}

.plate-dish-graphic.dish-Kuning {
  border-color: #f1c40f;
}

.plate-steam-drift {
  position: absolute;
  top: -24px;
  width: 70px;
  height: 35px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: aromaDrift 2s infinite ease-in-out alternate;
  pointer-events: none;
}

.plate-done-stamp {
  position: absolute;
  top: 38%;
  background: rgba(39, 174, 96, 0.95);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  border: 1.5px solid #2ecc71;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

@keyframes aromaDrift {
  0% { transform: translateY(0) scale(0.9); opacity: 0.4; }
  100% { transform: translateY(-12px) scale(1.2); opacity: 0.9; }
}

.plate-brass-label {
  margin-top: 14px;
  background: rgba(30, 18, 14, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(243, 156, 18, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  text-align: center;
  white-space: nowrap;
}

.plate-cook-tag {
  margin-top: 5px;
  background: #d35400;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Scene: Ingredients in Wall Shelves & Basket on Counter (Fitted to 3 - Meja Pemilihan Bahan.jpg) */
.kitchen-table-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Rak Dinding Atas - Pas di dalam bingkai kayu atas */
.wooden-frame-shelf {
  position: absolute;
  left: 21.5%;
  width: 44%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.wooden-frame-shelf.shelf-top {
  top: 14.0%;
  height: 19%;
}

/* Rak Dinding Bawah - Pas di dalam bingkai kayu bawah */
.wooden-frame-shelf.shelf-bottom {
  top: 40.0%;
  height: 19%;
}

/* Meja Kayu & Keranjang Belanja - Berada di atas permukaan meja kayu bawah */
.table-counter-basket {
  position: absolute;
  left: 32%;
  right: 18%;
  top: 78.5%;
  height: 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(30, 18, 14, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(243, 156, 18, 0.65);
  border-radius: 20px;
  padding: 6px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  z-index: 12;
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.basket-graphic {
  font-size: 3rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  animation: basketGentleBob 2s infinite ease-in-out alternate;
}

@keyframes basketGentleBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.basket-info {
  display: flex;
  flex-direction: column;
}

.basket-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1c40f;
  letter-spacing: 0.5px;
}

.basket-count {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #2ecc71;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.table-spice-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}

.table-spice-item:hover:not(.collected) {
  transform: translateY(-8px) scale(1.14);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7));
}

.table-spice-photo {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: #fff;
  transition: all 0.2s ease;
}

/* Jika jumlah bahan per rak 3 atau kurang, perbesar ukuran foto */
.wooden-frame-shelf.items-3 .table-spice-photo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.table-spice-item.defective .table-spice-photo {
  border-color: rgba(255, 255, 255, 0.95);
}

.table-spice-tag {
  margin-top: 4px;
  background: rgba(30, 18, 14, 0.92);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(243, 156, 18, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  white-space: normal;
  line-height: 1.15;
  max-width: 120px;
  text-align: center;
  pointer-events: none;
}

.table-spice-item.collected {
  opacity: 0.25;
  filter: grayscale(1);
  pointer-events: none;
  transform: scale(0.85);
}

.table-spice-item.anim-fly {
  animation: flyToBasketOnTable 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.table-spice-item.anim-shake {
  animation: rejectWiggle 0.5s ease;
}

@keyframes flyToBasketOnTable {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: translateY(-20px) scale(1.2); }
  100% { transform: translate(40px, 160px) scale(0.1); opacity: 0; }
}

@keyframes rejectWiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-6deg); }
  75% { transform: translateX(10px) rotate(6deg); }
}

/* ==========================================================================
   Tahap 5: Persiapan Alat Memasak (Natural Tabletop Mise En Place)
   ========================================================================== */

.tabletop-tools-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Elegant HUD chip at top right, matching game style */
.stage-hud-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(22, 14, 10, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(243, 156, 18, 0.7);
  color: #f1c40f;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  z-index: 50;
}

/* 3 Matras Area Meja Stainless (Presisi di atas lukisan matras meja kerja) */
.tabletop-mat-area {
  position: absolute;
  top: 34%;
  height: 27%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 8px 12px;
  padding: 6px 8px;
  pointer-events: auto;
  overflow: visible;
}

.tabletop-mat-area.mat-prep {
  left: 1.5%;
  width: 33%;
}

.tabletop-mat-area.mat-cook {
  left: 35.5%;
  width: 35.5%;
}

.tabletop-mat-area.mat-store {
  left: 71.5%;
  width: 27%;
}

/* Props Alat Dapur di Atas Meja - Prop Alami Berukuran Relatif Nyata (Bukan Kotak-Kotak) */
.table-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.table-tool-item:hover {
  transform: translateY(-6px) scale(1.08);
  z-index: 35;
}

.table-tool-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.table-tool-photo img {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* === PROPORSI UKURAN ASLI SETIAP ALAT (Realistic Proportional Sizing in 960x720 Fixed Canvas) === */

/* 1. Kompor Gas (Alat Terbesar di Meja Masak) */
.table-tool-item[data-id="stove"] .table-tool-photo {
  width: 136px;
  height: 94px;
}
.table-tool-item[data-id="stove"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* 2. Wajan Tumis (Cutout Alat Masak Utama Besar) */
.table-tool-item[data-id="saute_pan"] .table-tool-photo {
  width: 118px;
  height: 98px;
}

/* 3. Cobek Batu Andesit (Cutout Wadah Batu Bulat Tebal) */
.table-tool-item[data-id="mortar"] .table-tool-photo {
  width: 104px;
  height: 104px;
}

/* 4. Talenan Kayu (Papan Potong Kayu Bundar Lebar) */
.table-tool-item[data-id="cutting_board"] .table-tool-photo {
  width: 112px;
  height: 80px;
}
.table-tool-item[data-id="cutting_board"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(139, 69, 19, 0.6);
}

/* 5. Toples Kaca Kedap Udara (Silinder Simpan Tinggi) */
.table-tool-item[data-id="jar"] .table-tool-photo {
  width: 80px;
  height: 112px;
}
.table-tool-item[data-id="jar"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* 6. Saringan Peniris (Wadah Peniris Berongga) */
.table-tool-item[data-id="strainer"] .table-tool-photo {
  width: 90px;
  height: 74px;
}
.table-tool-item[data-id="strainer"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* 7. Timbangan Digital (Timbangan Gramatur Datar) */
.table-tool-item[data-id="scale"] .table-tool-photo {
  width: 80px;
  height: 68px;
}
.table-tool-item[data-id="scale"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* 8. Mangkuk Wadah (Wadah Keramik Cekung) */
.table-tool-item[data-id="bowl"] .table-tool-photo {
  width: 80px;
  height: 62px;
}
.table-tool-item[data-id="bowl"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* 9. Pisau Dapur (Cutout Pisau Koki Panjang) */
.table-tool-item[data-id="knife"] .table-tool-photo {
  width: 94px;
  height: 50px;
}

/* 10. Spatula Kayu (Cutout Spatula Panjang) */
.table-tool-item[data-id="spatula"] .table-tool-photo {
  width: 50px;
  height: 94px;
}

/* 11. Munthu / Ulekan (Cutout Ulekan Batu) */
.table-tool-item[data-id="pestle"] .table-tool-photo {
  width: 66px;
  height: 66px;
}

/* 12. Sendok Bersih (Sendok Stainless Ramping) */
.table-tool-item[data-id="spoon"] .table-tool-photo {
  width: 46px;
  height: 88px;
}
.table-tool-item[data-id="spoon"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* 13. Pengupas / Peeler (Alat Genggam Kecil) */
.table-tool-item[data-id="peeler"] .table-tool-photo {
  width: 62px;
  height: 48px;
}
.table-tool-item[data-id="peeler"] .table-tool-photo img {
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* Format Khusus Cutout Tanpa Background Kotak */
.table-tool-item.tool-cutout .table-tool-photo img {
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75));
}

.table-tool-item.tool-cutout:hover .table-tool-photo img {
  filter: drop-shadow(0 0 10px #f1c40f) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.85));
}

.table-tool-item.tool-cutout.checked .table-tool-photo img {
  filter: drop-shadow(0 0 10px #2ecc71) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
}

/* Efek Hover & Checked untuk Alat Photo */
.table-tool-item:not(.tool-cutout):hover .table-tool-photo img {
  box-shadow: 0 0 16px rgba(241, 196, 15, 0.8), 0 12px 24px rgba(0, 0, 0, 0.85);
  border-color: #f1c40f;
}

.table-tool-item:not(.tool-cutout).checked .table-tool-photo img {
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.8), 0 10px 20px rgba(0, 0, 0, 0.7);
  border-color: #2ecc71;
}

/* Badge Centang Kelayakan Alat */
.table-tool-check {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #27ae60;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  z-index: 25;
}

.table-tool-item.checked .table-tool-check {
  display: flex;
  animation: toolCheckPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toolCheckPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); }
}

/* Label Nama Alat di Bawah Prop */
.table-tool-name {
  margin-top: 5px;
  background: rgba(18, 14, 12, 0.92);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(243, 156, 18, 0.45);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  line-height: 1.2;
  transition: all 0.2s ease;
  z-index: 10;
}

.table-tool-item.checked .table-tool-name {
  border-color: rgba(46, 204, 113, 0.8);
  color: #2ecc71;
}

@keyframes toolBouncePop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.table-tool-item.anim-pop {
  animation: toolBouncePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Scene: Direct Wash & Special Treatment Station (Tahap 6) */
/* Scene: Direct Wash Strainer & Dry-Roasting Arcade Stations */
.peeling-arcade-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.peeling-hud-card {
  position: absolute;
  top: 14px;
  background: rgba(20, 24, 30, 0.94);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(52, 152, 219, 0.6);
  border-radius: 20px;
  padding: 8px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  z-index: 40;
  min-width: 380px;
  text-align: center;
}

.peeling-hud-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #5dade2;
  letter-spacing: 0.5px;
}

.peeling-hud-status {
  font-size: 0.78rem;
  color: #ecf0f1;
}

.prep-stations-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  padding: 40px 5% 0;
  pointer-events: none;
}

/* Stasiun 1: Wastafel Stainless Steel Pencucian Rempah Basah */
.sink-station-unit {
  position: relative;
  width: 330px;
  height: 430px;
  background: rgba(18, 25, 33, 0.92);
  border: 2.5px solid #3498db;
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease;
  user-select: none;
}

.sink-station-unit:hover {
  transform: translateY(-4px) scale(1.02);
}

.sink-faucet-wrapper {
  position: relative;
  width: 80px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.faucet-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 56px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #bdc3c7, #ecf0f1, #95a5a6);
  border: 2px solid #7f8c8d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.faucet-handle {
  position: absolute;
  top: 14px;
  right: -8px;
  width: 28px;
  height: 16px;
  background: #e74c3c;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.faucet-handle.running {
  transform: rotate(90deg);
  background: #2ecc71;
}

.faucet-water-stream {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 95px;
  background: linear-gradient(180deg, rgba(52, 152, 219, 0.95) 0%, rgba(129, 236, 236, 0.9) 60%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 6px;
  animation: waterFlowAnim 0.12s infinite linear;
  box-shadow: 0 0 14px #3498db;
  z-index: 10;
  pointer-events: none;
}

@keyframes waterFlowAnim {
  0% { opacity: 0.85; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.15); }
  100% { opacity: 0.85; transform: translateX(-50%) scaleX(1); }
}

.sink-basin {
  position: relative;
  width: 220px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sink-strainer-colander {
  position: relative;
  width: 190px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.colander-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 2.5px solid #3498db;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.sink-strainer-colander.shaking {
  animation: strainerShake 0.2s ease-in-out;
}

@keyframes strainerShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg) translateY(-3px); }
  75% { transform: rotate(5deg) translateY(3px); }
}

.colander-spices-cluster {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.colander-spice-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.sink-splash-sprite {
  position: absolute;
  width: 140px;
  height: 140px;
  object-fit: contain;
  pointer-events: none;
  z-index: 25;
  filter: drop-shadow(0 4px 14px rgba(52, 152, 219, 0.75));
  animation: splashBurst 0.42s ease-out forwards;
}

@keyframes splashBurst {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.15) rotate(15deg); }
  100% { opacity: 0; transform: scale(1.4) translateY(-15px) rotate(30deg); }
}

.sink-meter-wrapper {
  width: 100%;
  margin-top: 10px;
}

.sink-meter-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #5dade2;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sink-meter-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.sink-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2980b9, #2ecc71);
  transition: width 0.2s ease;
  border-radius: 8px;
}

.sink-hint {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f1c40f;
  margin-top: 6px;
  animation: pulseHint 1.2s infinite alternate;
}

.sink-floating-feedbacks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

/* Stasiun 2: Wajan Sangrai Kering & Bakar Aroma */
.roast-station-unit {
  position: relative;
  width: 330px;
  height: 430px;
  background: rgba(28, 18, 14, 0.92);
  border: 2.5px solid #e67e22;
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease;
  user-select: none;
}

.roast-station-unit:hover {
  transform: translateY(-4px) scale(1.02);
}

.roast-flame-ring {
  position: absolute;
  bottom: 128px;
  width: 170px;
  height: 52px;
  background: radial-gradient(ellipse, rgba(0, 168, 255, 0.95) 0%, rgba(230, 126, 34, 0.85) 60%, transparent 80%);
  border-radius: 50%;
  animation: flameFlicker 0.15s infinite alternate;
  z-index: 1;
}

.roast-pan-wrapper {
  position: relative;
  width: 220px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.15s ease;
}

.roast-pan-wrapper.shaking {
  animation: strainerShake 0.2s ease-in-out;
}

.roast-pan-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.roast-pan-inside {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.roast-pan-item {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid #f39c12;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  transition: all 0.4s ease;
}

.roast-smoke-drift {
  position: absolute;
  top: -15px;
  width: 110px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  animation: steamRiseAnim 1.6s infinite ease-out;
  pointer-events: none;
  z-index: 10;
}

.roast-meter-wrapper {
  width: 100%;
  margin-top: 10px;
}

.roast-meter-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #f39c12;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.roast-meter-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.roast-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d35400, #f1c40f);
  transition: width 0.2s ease;
  border-radius: 8px;
}

.roast-hint {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f1c40f;
  margin-top: 6px;
  animation: pulseHint 1.2s infinite alternate;
}

.roast-floating-feedbacks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

/* Scene: Direct Cutting Board Chopping (Asset-First Knife & Real Spices) */
.talenan-direct-stage {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.talenan-spices-pile {
  position: absolute;
  left: 28%;
  top: 32%;
  width: 380px;
  height: 240px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  z-index: 11;
}

.talenan-spice-photo {
  position: relative;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f1c40f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.cutting-guide-line {
  position: absolute;
  width: 85%;
  height: 4px;
  background: repeating-linear-gradient(90deg, #e74c3c, #e74c3c 8px, transparent 8px, transparent 14px);
  box-shadow: 0 0 10px #e74c3c;
  pointer-events: none;
  z-index: 12;
  animation: pulseCutLine 0.8s infinite alternate ease-in-out;
}

@keyframes pulseCutLine {
  0% { opacity: 0.6; transform: scaleY(0.9); }
  100% { opacity: 1; transform: scaleY(1.3); }
}

.knife-slash-fx {
  position: absolute;
  width: 140px;
  height: 10px;
  background: linear-gradient(90deg, transparent, #ffffff, #81ecec, transparent);
  box-shadow: 0 0 16px #00cec9;
  border-radius: 5px;
  transform: rotate(-35deg);
  animation: slashFade 0.25s ease-out forwards;
  pointer-events: none;
  z-index: 18;
}

@keyframes slashFade {
  0% { opacity: 1; transform: scale(1.3) rotate(-35deg); }
  100% { opacity: 0; transform: scale(0.7) rotate(-35deg) translateY(20px); }
}

.talenan-spice-slice {
  position: absolute;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
  pointer-events: none;
  animation: spiceSlicePop 0.22s ease-out;
  z-index: 14;
}

@keyframes spiceSlicePop {
  0% { transform: scale(0.4) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.talenan-knife-asset {
  position: absolute;
  top: 14%;
  right: 18%;
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.85));
  pointer-events: none;
  transform-origin: 85% 15%;
  transform: rotate(0deg);
  transition: transform 0.08s ease-out;
  z-index: 15;
}

.talenan-direct-stage:active .talenan-knife-asset,
.talenan-knife-asset.chopping {
  transform: translate(-65px, 75px) rotate(-32deg);
}

.talenan-hud-badge {
  position: absolute;
  top: 4%;
  background: rgba(30, 18, 14, 0.92);
  backdrop-filter: blur(6px);
  color: #f1c40f;
  padding: 8px 26px;
  border-radius: 20px;
  border: 1.5px solid rgba(243, 156, 18, 0.5);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 12;
}

.talenan-floating-feedbacks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

/* ==========================================================================
   Tahap 8: Mengulek di Cobek Batu (Arcade Mortar & Pestle Grinding)
   ========================================================================== */

.cobek-arcade-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* 1. HUD Arcade: Gauge Kehalusan Bumbu */
.smoothness-gauge-card {
  position: absolute;
  top: 16px;
  background: rgba(22, 14, 10, 0.94);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(243, 156, 18, 0.6);
  border-radius: 20px;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  z-index: 40;
  min-width: 320px;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gauge-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1c40f;
  letter-spacing: 0.5px;
}

.gauge-pct {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #2ecc71;
}

.gauge-bar-track {
  position: relative;
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.gauge-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e67e22 0%, #f1c40f 50%, #2ecc71 100%);
  border-radius: 10px;
  transition: width 0.18s ease-out;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.gauge-markers-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #bdc3c7;
}

/* 2. Prop Meja: Piring Keramik Garam Dapur (Bukan Kartu Kotak Web) */
.salt-dish-prop {
  position: absolute;
  left: 8%;
  top: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 25;
}

.salt-dish-prop:hover {
  transform: translateY(-5px) scale(1.06);
}

.salt-dish-asset-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.salt-dish-prop.salt-poured .salt-dish-asset-img {
  transform: scale(0.9) rotate(12deg);
  opacity: 0.35;
  filter: grayscale(0.6) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.salt-dish-plate {
  position: relative;
  width: 90px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #ffffff 0%, #dcdde1 70%, #718093 100%);
  border: 3px solid #f5f6fa;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.75), inset 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.salt-dish-pile {
  width: 55px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffffff 40%, #f1f2f6 80%, #ced6e0 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.salt-dish-prop.salt-poured .salt-dish-pile {
  opacity: 0.2;
}

.salt-dish-label {
  margin-top: 6px;
  background: rgba(22, 14, 10, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(243, 156, 18, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.salt-dish-prop.salt-poured .salt-dish-label {
  border-color: #2ecc71;
  color: #2ecc71;
}

.salt-dish-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f1c40f;
  margin-top: 3px;
  animation: pulseHint 1.2s infinite alternate;
}

.salt-dish-prop.salt-poured .salt-dish-hint {
  display: none;
}

/* 3. Stasiun Cobek Batu & Makanan di Dalamnya */
.cobek-stone-station {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
}

.cobek-stone-station:active {
  cursor: grabbing;
}

.cobek-mortar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.95));
  pointer-events: none;
}

.cobek-inner-basin {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 11;
  background: radial-gradient(circle, rgba(40, 42, 45, 0.7) 0%, rgba(20, 22, 25, 0.95) 100%);
}

/* Layer Potongan Makanan Rempah Nyata (Bukan Teks!) */
.cobek-food-pieces {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cobek-chunk-item {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.75);
  transition: all 0.3s ease;
}

/* Kristal Garam Dapur di Atas Rempah */
.cobek-salt-crystals {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background-image: radial-gradient(circle, #ffffff 2px, transparent 2.5px),
                    radial-gradient(circle, #f5f6fa 1.5px, transparent 2px);
  background-size: 16px 16px, 12px 12px;
  background-position: 0 0, 8px 8px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 13;
  animation: saltTwinkle 1.5s infinite alternate ease-in-out;
}

/* Layer Pasta Bumbu Halus yang Tumbuh Berwarna */
.cobek-paste-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.4s ease;
  pointer-events: none;
  z-index: 14;
}

/* Munthu Ulekan Batu */
.cobek-munthu-img {
  position: absolute;
  top: -35px;
  right: -25px;
  width: 270px;
  height: 270px;
  object-fit: contain;
  transform-origin: 75% 25%;
  transform: rotate(26deg);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.85));
  pointer-events: none;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  z-index: 20;
}

.cobek-stone-station:active .cobek-munthu-img,
.cobek-munthu-img.grinding {
  transform: rotate(5deg) translate(-50px, 60px) scale(0.96);
}

/* Floating Arcade Feedback Text Popups */
.cobek-floating-feedbacks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.arcade-floating-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #f1c40f;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(243, 156, 18, 0.8);
  animation: floatPopUp 0.85s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes floatPopUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  25% { transform: translateY(-15px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-45px) scale(1); opacity: 0; }
}

/* Animasi Guncangan Mikro Cobek saat Diulek Kencang */
@keyframes cobekRumble {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

.cobek-stone-station.rumble {
  animation: cobekRumble 0.15s ease;
}

/* ==========================================================================
   Tahap 9: Menumis di Wajan Kompor (Arcade Sizzle & Doneness Gauge)
   ========================================================================== */

.kompor-arcade-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* 1. HUD Arcade: Meteran Kematangan & Pecah Minyak */
.cooking-gauge-card {
  position: absolute;
  top: 16px;
  background: rgba(22, 14, 10, 0.94);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(243, 156, 18, 0.6);
  border-radius: 20px;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  z-index: 40;
  min-width: 380px;
}

.gauge-status-badge {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  background: #e67e22;
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.cooking-gauge-track {
  position: relative;
  width: 100%;
  height: 18px;
  background: #111;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  overflow: hidden;
}

.gauge-zone {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.zone-mentah {
  background: linear-gradient(90deg, #2980b9, #3498db);
}

.zone-harum {
  background: linear-gradient(90deg, #d35400, #f39c12);
}

.zone-tanak {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  box-shadow: inset 0 0 10px #f1c40f;
}

.zone-gosong {
  background: linear-gradient(90deg, #c0392b, #78281f);
}

.gauge-needle {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 24px;
  background: #ffffff;
  box-shadow: 0 0 8px #f1c40f, 0 0 14px #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s linear;
  z-index: 10;
}

/* 2. Prop Meja Kiri: Piring Keramik Bumbu Penyeimbang (Gula & Lada) */
.seasoning-dish-prop {
  position: absolute;
  left: 7%;
  top: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 25;
}

.seasoning-dish-prop:hover {
  transform: translateY(-5px) scale(1.06);
}

.seasoning-dish-asset-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.seasoning-dish-prop.seasoning-poured .seasoning-dish-asset-img {
  transform: scale(0.88) rotate(18deg) translateY(6px);
  opacity: 0.35;
  filter: grayscale(0.5);
}

.seasoning-dish-plate {
  position: relative;
  width: 95px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #ffffff 0%, #e0e0e0 70%, #9e9e9e 100%);
  border: 3px solid #f5f6fa;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.75), inset 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sugar-pile {
  width: 42px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffffff 40%, #f5f6fa 85%, #dcdde1 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pepper-pile {
  width: 28px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #2f3640 40%, #718093 85%, #1e272e 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.seasoning-dish-prop.seasoning-poured .sugar-pile,
.seasoning-dish-prop.seasoning-poured .pepper-pile {
  opacity: 0.15;
}

.seasoning-dish-label {
  margin-top: 6px;
  background: rgba(22, 14, 10, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(243, 156, 18, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.seasoning-dish-prop.seasoning-poured .seasoning-dish-label {
  border-color: #2ecc71;
  color: #2ecc71;
}

.seasoning-dish-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f1c40f;
  margin-top: 3px;
  animation: pulseHint 1.2s infinite alternate;
}

.seasoning-dish-prop.seasoning-poured .seasoning-dish-hint {
  display: none;
}

/* 3. Prop Meja Kanan: Botol Minyak Goreng Kaca (Interactive Oil Bottle) */
.oil-bottle-prop {
  position: absolute;
  right: 8%;
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 25;
}

.oil-bottle-prop:hover {
  transform: translateY(-6px) scale(1.06);
}

.oil-bottle-asset-img {
  width: 80px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.8));
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.oil-bottle-prop.oil-poured .oil-bottle-asset-img {
  transform: rotate(-38deg) translate(-18px, 14px) scale(0.92);
  opacity: 0.55;
}

.oil-bottle-graphic {
  position: relative;
  width: 60px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px 14px 20px 20px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.oil-bottle-graphic::before {
  content: '';
  position: absolute;
  top: -12px;
  width: 22px;
  height: 14px;
  background: #c0392b;
  border-radius: 4px 4px 0 0;
  border: 1px solid #e74c3c;
}

.oil-liquid-level {
  width: 100%;
  height: 75%;
  background: linear-gradient(180deg, #f1c40f 0%, #e67e22 100%);
  border-radius: 6px 6px 14px 14px;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
  transition: height 0.6s ease;
}

.oil-bottle-prop.oil-poured .oil-liquid-level {
  height: 10%;
}

.oil-bottle-label {
  margin-top: 6px;
  background: rgba(22, 14, 10, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(243, 156, 18, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.oil-bottle-prop.oil-poured .oil-bottle-label {
  border-color: #2ecc71;
  color: #2ecc71;
}

.oil-bottle-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f1c40f;
  margin-top: 3px;
  animation: pulseHint 1.2s infinite alternate;
}

.oil-bottle-prop.oil-poured .oil-bottle-hint {
  display: none;
}

/* 4. Unit Kompor Gas & Wajan Masak */
.kompor-station-unit {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.kompor-wok-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.95));
  pointer-events: none;
  transition: transform 0.25s ease;
}

.kompor-flames-ring {
  position: absolute;
  bottom: 12px;
  width: 260px;
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(0, 168, 255, 0.95) 0%, rgba(230, 126, 34, 0.85) 55%, transparent 75%);
  border-radius: 50%;
  animation: flameFlicker 0.15s infinite alternate;
  z-index: 1;
}

.kompor-wok-inside {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 11;
}

.wok-oil-pool {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.75) 0%, rgba(211, 84, 0, 0.5) 100%);
  animation: oilShimmer 1.5s infinite alternate ease-in-out;
}

.wok-bumbu-simmer {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.bumbu-bubbles-cluster {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 2px, transparent 3px),
                    radial-gradient(circle, rgba(255, 242, 0, 0.4) 3px, transparent 4px);
  background-size: 24px 24px, 18px 18px;
  background-position: 0 0, 12px 12px;
  animation: bubbleBoil 0.3s infinite linear;
}

@keyframes bubbleBoil {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.02) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.bumbu-glisten-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.6) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
  animation: glistenShine 1s infinite alternate ease-in-out;
  box-shadow: 0 0 20px #f1c40f;
}

@keyframes glistenShine {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1.04); }
}

.kompor-spatula-img {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 250px;
  height: 250px;
  object-fit: contain;
  transform-origin: 85% 15%;
  transform: rotate(35deg);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.8));
  pointer-events: none;
  transition: transform 0.15s ease;
  z-index: 15;
}

.kompor-station-unit:active .kompor-spatula-img,
.kompor-spatula-img.stirring {
  transform: rotate(10deg) translate(-55px, 50px);
}

.kompor-steam-drift {
  position: absolute;
  top: 5%;
  width: 200px;
  height: 140px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  animation: steamRiseAnim 2s infinite ease-out;
  pointer-events: none;
  z-index: 13;
}

/* Kenop Kompor Gas di Bagian Bawah */
.kompor-knob-wrapper {
  position: absolute;
  bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 15;
}

.knob-dial {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, #333 40%, #111 100%);
  border: 2px solid #e67e22;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: transform 0.3s ease;
}

.knob-dial::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: #f1c40f;
  border-radius: 2px;
}

.knob-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: #f39c12;
  margin-top: 3px;
  background: rgba(0, 0, 0, 0.85);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Action Badge: Angkat Bumbu saat Pecah Minyak */
.wok-lift-badge {
  position: absolute;
  bottom: -22px;
  background: #e74c3c;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 24px;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
  animation: pulseGlow 0.8s infinite alternate;
  pointer-events: auto;
  cursor: pointer;
  z-index: 30;
  white-space: nowrap;
}

/* Floating Arcade Feedback Text Popups di Wajan */
.wok-floating-feedbacks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

/* ==========================================================================
   Tahap 10: Pengemasan & Suhu Simpan (Chiller Fridge vs Room Table Storage)
   ========================================================================== */
.storage-arcade-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 40px 6% 20px;
  z-index: 10;
  pointer-events: none;
}

/* Stasiun Kiri: Meja Pantry Suhu Ruang */
.pantry-counter-unit {
  position: relative;
  width: 290px;
  height: 400px;
  background: rgba(26, 18, 14, 0.88);
  border: 2.5px solid #d35400;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pantry-counter-unit:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #f39c12;
}

.pantry-unit-header {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f39c12;
  text-align: center;
}

.pantry-shelf-graphic {
  position: relative;
  width: 200px;
  height: 150px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(160, 82, 45, 0.4) 0%, rgba(44, 28, 20, 0.8) 100%);
  border: 2px dashed rgba(243, 156, 18, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pantry-temp-pill {
  background: #d35400;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #f39c12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Stasiun Tengah: Meja Pendinginan Toples Kaca Bumbu */
.cooling-prep-station {
  position: relative;
  width: 260px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 15;
}

.cooling-jar-prop {
  position: relative;
  width: 170px;
  height: 210px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cooling-jar-prop:hover {
  transform: translateY(-6px) scale(1.05);
}

.jar-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.85));
  pointer-events: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cooling-jar-prop.jar-sealed .jar-photo-img {
  filter: drop-shadow(0 0 16px rgba(46, 204, 113, 0.6)) drop-shadow(0 18px 32px rgba(0, 0, 0, 0.85));
  animation: jarPulseSeal 0.5s ease-out;
}

@keyframes jarPulseSeal {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.jar-cooling-steam {
  position: absolute;
  top: -30px;
  width: 100px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  border-radius: 50%;
  animation: steamRiseAnim 1.4s infinite ease-out;
  pointer-events: none;
}

.jar-status-tag {
  margin-top: 10px;
  background: rgba(22, 14, 10, 0.95);
  color: #f1c40f;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(243, 156, 18, 0.6);
  white-space: nowrap;
}

.cooling-action-pill {
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2ecc71;
  animation: pulseHint 1.2s infinite alternate;
}

/* Stasiun Kanan: Kulkas Chiller Dua Pintu Interaktif */
.chiller-fridge-unit {
  position: relative;
  width: 290px;
  height: 400px;
  background: rgba(14, 22, 32, 0.92);
  border: 2.5px solid #3498db;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.chiller-fridge-unit:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #5dade2;
}

.chiller-unit-header {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #5dade2;
  text-align: center;
}

.fridge-door-cabinet {
  position: relative;
  width: 210px;
  height: 180px;
  background: linear-gradient(135deg, #2c3e50, #1a252f);
  border: 2.5px solid #3498db;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fridge-interior-shelf {
  position: absolute;
  inset: 8px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.25) 0%, rgba(20, 40, 60, 0.9) 100%);
  border-radius: 10px;
  border: 1.5px solid rgba(129, 236, 236, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(52, 152, 219, 0.3);
}

.chiller-frost-mist {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  animation: saltTwinkle 2s infinite alternate ease-in-out;
  pointer-events: none;
}

.chiller-temp-pill {
  background: #2980b9;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #5dade2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.storage-floating-feedbacks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

/* ==========================================================================
   Evaluasi Akhir: Sertifikat Bordir Emas Nusantara (Arcade Victory Screen)
   ========================================================================== */
.culinary-diploma-stage {
  position: absolute;
  right: 5%;
  top: 6%;
  bottom: 6%;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
}

.diploma-certificate-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdfbf7 0%, #fcf6ea 100%);
  border: 8px double #b7950b;
  border-radius: 24px;
  padding: 20px 28px;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), inset 0 0 35px rgba(183, 149, 11, 0.12);
  overflow-y: auto;
}

.diploma-header-ornament {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #b7950b;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.diploma-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 4px;
  text-align: center;
}

.diploma-stars-row {
  font-size: 2.2rem;
  margin: 2px 0 4px;
  filter: drop-shadow(0 4px 10px rgba(241, 196, 15, 0.6));
  animation: spiceSlicePop 0.4s ease-out;
}

.diploma-rank-badge {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 14px;
  border: 1.5px solid #f39c12;
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.35);
  margin-bottom: 8px;
}

.diploma-dish-showcase {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #f1c40f;
  padding: 6px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.diploma-dish-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid #e67e22;
}

.diploma-dish-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #2c3e50;
  margin-bottom: 2px;
}

.diploma-dish-info span {
  font-size: 0.78rem;
  color: #7f8c8d;
}

.diploma-score-counter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: #27ae60;
  line-height: 1;
  margin-bottom: 6px;
}

.diploma-score-counter small {
  font-size: 1.1rem;
  color: #7f8c8d;
  font-weight: 600;
}

.chef-review-stamps-cluster {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  max-height: 110px;
  overflow-y: auto;
}

.chef-review-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

.chef-review-stamp.stamp-success {
  background: #eafaf1;
  color: #27ae60;
  border: 1.5px dashed #2ecc71;
}

.chef-review-stamp.stamp-warning {
  background: #fdedec;
  color: #c0392b;
  border: 1.5px dashed #e74c3c;
}

.diploma-actions-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.confetti-canvas-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

/* ==========================================================================
   Mobile Portrait Native Responsive Styles (HP Tetap Tegak / Portrait)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 6px;
    height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .app-header {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 6px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    display: none;
  }

  .stage-chip {
    font-size: 0.72rem;
    padding: 3px 8px;
    max-width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .score-chip {
    font-size: 0.74rem;
    padding: 3px 8px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }
}
