/* Game Arena Area */
.game-arena {
  width: 100%;
  height: 390px;
  background: radial-gradient(circle at center, hsla(38, 60%, 98%, 0.6) 0%, hsla(30, 40%, 93%, 0.4) 100%);
  border: 2px dashed hsla(28, 30%, 75%, 0.35);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 116px 14px 94px;
  transition: var(--transition-smooth);
}

.game-arena:hover {
  border-color: hsla(356, 100%, 81%, 0.5);
  background: radial-gradient(circle at center, hsla(38, 60%, 98%, 0.8) 0%, hsla(30, 40%, 93%, 0.5) 100%);
}

/* Hint overlay inside Arena */
.feed-hint {
  font-family: 'GangwonEducationModuche', 'Comfortaa', sans-serif;
  position: absolute;
  top: 124px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Hamster Container & SVG States */
.hamster-wrapper {
  position: relative;
  width: 176px;
  height: 176px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hamster-svg {
  width: 100%;
  height: 100%;
  transform-origin: bottom center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mouth Transition - Swapped path through dynamic JS triggers */
#hamster-mouth {
  transition: d 0.1s ease-in-out;
}

/* UI Elements & Controls */
.stats-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: hsla(38, 60%, 98%, 0.66);
  border: 1px solid hsla(28, 30%, 75%, 0.24);
  border-radius: 16px;
  padding: 8px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bar-header {
  font-family: 'GangwonEducationModuche', 'Comfortaa', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 2px;
  gap: 6px;
}

.mood-badge {
  font-family: 'GangwonEducationModuche', 'Comfortaa', sans-serif;
  background: var(--primary);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 4px 10px var(--primary-glow);
  transition: var(--bounce-elastic);
}

.mood-badge.happy-badge {
  background: var(--gold);
  box-shadow: 0 4px 10px var(--gold-glow);
}

.mood-badge.hungry-badge {
  background: var(--text-sub);
  box-shadow: none;
}

/* Satiety Progress Bar */
.progress-container {
  width: 100%;
  height: 14px;
  background: hsla(28, 30%, 75%, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 50%; /* JS controlled */
  background: linear-gradient(90deg, var(--primary) 0%, #FFAAAA 100%);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  position: relative;
  box-shadow: 0 0 8px var(--primary-glow);
}

.progress-bar.happy-bar {
  background: linear-gradient(90deg, var(--gold) 0%, #FFE082 100%);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Timing Slider Gauge Panel */
.timing-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: hsla(38, 60%, 98%, 0.7);
  border: 1px solid hsla(28, 30%, 75%, 0.24);
  border-radius: 16px;
  padding: 8px 10px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.item-preview {
  font-family: 'GangwonEducationModuche', 'Comfortaa', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--card-border);
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: var(--bounce-elastic);
}

.timing-track {
  width: 100%;
  height: 24px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zone {
  font-family: 'GangwonEducationModuche', 'Comfortaa', sans-serif;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  user-select: none;
}

.zone-bird {
  background: linear-gradient(180deg, #74B9FF 0%, #58A6FF 100%);
}

.zone-seed {
  background: linear-gradient(180deg, #FFE082 0%, #FFD166 100%);
}

.zone-chili {
  background: linear-gradient(180deg, #FF7675 0%, #FF4D4D 100%);
}

.timing-indicator {
  position: absolute;
  top: 1px;
  left: 50%; /* JS controlled */
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border: 2.5px solid var(--text-main);
  border-radius: 50%;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateX(-50%);
  z-index: 10;
  will-change: left;
}

/* Crisis Mode Arena Modifiers */
body.crisis-mode .game-arena {
  border-color: rgba(255, 77, 77, 0.45);
  background: radial-gradient(circle at center, hsla(356, 100%, 97%, 0.8) 0%, hsla(356, 80%, 93%, 0.6) 100%);
}
