* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: #FFF7E6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #4A4238;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.card {
  background: #FFFDF8;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.animal-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 8px;
}

.animal-img {
  width: 160px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.badge {
  position: absolute;
  top: 8px;
  font-size: 28px;
}

.badge-mood {
  right: calc(50% + 60px);
}

.badge-sleep {
  left: calc(50% + 60px);
}

.name {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
}

.stage {
  font-size: 12px;
  letter-spacing: 1px;
  color: #8A8272;
}

.stats {
  margin-top: 16px;
}

.stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stat-label {
  width: 60px;
  font-size: 14px;
  font-weight: 600;
}

.stat-track {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: #E8E1D3;
  overflow: hidden;
  margin: 0 10px;
}

.stat-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.stat-fill.hunger {
  background: #F2A65A;
}

.stat-fill.happiness {
  background: #5AA9E6;
}

.stat-fill.energy {
  background: #7FC29B;
}

.stat-value {
  width: 30px;
  text-align: right;
  font-size: 12px;
  color: #8A8272;
}

.actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  flex: 1;
  padding: 16px 8px;
  border: none;
  border-radius: 16px;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  color: #4A4238;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-btn:active {
  background: #F3EEE1;
}

.action-btn:disabled {
  opacity: 0.4;
}
