/* ====== 团宠乐园 - 游戏UI样式 ====== */

/* ====== 基础样式 ====== */
:root {
  /* 稀有度颜色 */
  --rarity-common: #8B8B8B;
  --rarity-core: #4A90D9;
  --rarity-special1: #F5A623;
  --rarity-special2: #E74C3C;
  
  /* 主题色 */
  --primary-color: #667eea;
  --primary-light: #764ba2;
  --success-color: #48c774;
  --warning-color: #ffdd57;
  --danger-color: #f14668;
  
  /* 毛玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  
  /* 动画 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #333;
}

/* ====== 主容器 ====== */
.game-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}

/* ====== 顶部栏 ====== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 100;
}

.online-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.online-count .icon {
  font-size: 18px;
}

.pet-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 20px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.pet-indicator:hover {
  transform: scale(1.05);
}

/* ====== 宠物展示区 ====== */
.pet-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  min-height: 400px;
}

.pet-canvas-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  border: 2px solid var(--glass-border);
}

#petCanvas {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pet-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.pet-level {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* ====== 工作区展示 ====== */
.work-area {
  padding: 15px;
  margin: 0 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.work-area-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.working-pets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.working-pet {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 20px;
  font-size: 13px;
}

.working-pet .status-icon {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ====== 底部功能栏 ====== */
.bottom-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.bottom-bar.hidden {
  display: none;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: all var(--transition-fast);
  border-radius: 12px;
}

.action-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  transform: scale(1.05);
}

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

.action-btn .icon {
  font-size: 24px;
}

.action-btn .label {
  font-size: 12px;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
}

.action-btn.primary:hover {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ====== 面板通用样式 ====== */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  z-index: 201;
  border: 1px solid var(--glass-border);
  border-bottom: none;
}

.panel.active {
  transform: translateY(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all var(--transition-fast);
}

.panel-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.panel-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 60px);
}

/* ====== 番茄钟面板 ====== */
.pomodoro-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
  backdrop-filter: blur(20px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.pomodoro-panel.active {
  opacity: 1;
  visibility: visible;
}

.pomodoro-panel .back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.pomodoro-panel .back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pomodoro-round {
  font-size: 20px;
  color: white;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pomodoro-timer {
  text-align: center;
  margin-bottom: 30px;
}

.pomodoro-time {
  font-size: 72px;
  font-weight: 300;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

.pomodoro-progress {
  width: 280px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 20px auto;
  overflow: hidden;
}

.pomodoro-progress-bar {
  height: 100%;
  background: white;
  border-radius: 4px;
  transition: width 1s linear;
}

.pomodoro-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.pomodoro-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
}

.pomodoro-dot.completed {
  background: white;
}

.pomodoro-dot.current {
  background: white;
  box-shadow: 0 0 15px white;
  animation: pulse 1.5s infinite;
}

.work-type-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.work-type-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 15px;
}

.work-type-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.work-type-btn.selected {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.pomodoro-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.pomodoro-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
}

.pomodoro-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.pomodoro-btn.primary {
  background: white;
  color: var(--primary-color);
}

.pomodoro-btn.danger {
  background: rgba(241, 70, 104, 0.8);
}

.pomodoro-stats {
  margin-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* ====== 口袋面板 ====== */
.pocket-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pocket-tab {
  flex: 1;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  color: #666;
}

.pocket-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.pocket-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.1);
}

.pocket-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.pocket-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pocket-item:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.02);
}

.pocket-item.selected {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

.pocket-item .item-icon {
  font-size: 28px;
}

.pocket-item .item-info {
  flex: 1;
}

.pocket-item .item-name {
  font-size: 14px;
  font-weight: 500;
}

.pocket-item .item-count {
  font-size: 12px;
  color: #999;
}

.pocket-item .item-rarity {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  color: white;
}

.pocket-item .item-rarity.common { background: var(--rarity-common); }
.pocket-item .item-rarity.core { background: var(--rarity-core); }
.pocket-item .item-rarity.special1 { background: var(--rarity-special1); }
.pocket-item .item-rarity.special2 { background: var(--rarity-special2); }

.pocket-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
}

/* ====== 配方面板 ====== */
.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipe-item {
  padding: 15px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.recipe-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.recipe-item.can-craft {
  border-color: var(--success-color);
  background: rgba(72, 199, 116, 0.1);
}

.recipe-item .recipe-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.recipe-item .recipe-icon {
  font-size: 28px;
}

.recipe-item .recipe-name {
  font-size: 16px;
  font-weight: 500;
}

.recipe-item .recipe-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-item .ingredient {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 13px;
}

.recipe-item .ingredient.missing {
  color: var(--danger-color);
  text-decoration: line-through;
}

.recipe-item .ingredient.available {
  color: var(--success-color);
}

/* ====== 头衔面板 ====== */
.title-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-item {
  padding: 15px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.title-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.title-item.equipped {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

.title-item .title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.title-item .title-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.title-item .equipped-badge {
  padding: 4px 8px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-size: 11px;
}

.title-item .title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.title-item .title-tag {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 12px;
}

.title-item .title-desc {
  font-size: 13px;
  color: #666;
}

/* ====== 合成面板 ====== */
.synthesis-panel {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
}

.synthesis-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 60px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.selected-material {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.selected-material:hover {
  transform: scale(1.05);
}

.selected-material .remove-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 4px;
}

.synthesis-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.synthesis-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.synthesis-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ====== Toast 通知 ====== */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--danger-color);
}

.toast.info {
  border-left: 4px solid var(--primary-color);
}

.toast.warning {
  border-left: 4px solid var(--warning-color);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.toast .toast-icon {
  font-size: 20px;
}

.toast .toast-message {
  flex: 1;
  font-size: 14px;
}

/* ====== 确认对话框 ====== */
.confirm-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.confirm-dialog.active {
  opacity: 1;
  visibility: visible;
}

.confirm-content {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.confirm-dialog.active .confirm-content {
  transform: scale(1);
}

.confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirm-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.confirm-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.confirm-btn.cancel {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
}

.confirm-btn.confirm {
  background: var(--primary-color);
  color: white;
}

.confirm-btn:hover {
  transform: scale(1.05);
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
  .top-bar {
    padding: 10px 15px;
  }
  
  .pet-canvas-container {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .bottom-bar {
    padding: 12px 15px;
  }
  
  .action-btn {
    padding: 8px 12px;
  }
  
  .action-btn .icon {
    font-size: 20px;
  }
  
  .action-btn .label {
    font-size: 11px;
  }
  
  .panel {
    max-height: 85vh;
  }
  
  .pocket-items {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .pomodoro-time {
    font-size: 56px;
  }
  
  .pomodoro-progress {
    width: 240px;
  }
  
  .work-type-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pet-area {
    padding: 15px;
  }
  
  .pet-info {
    font-size: 12px;
    padding: 8px 15px;
  }
  
  .pocket-items {
    grid-template-columns: 1fr 1fr;
  }
  
  .pocket-item {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  
  .pocket-item .item-info {
    width: 100%;
  }
  
  .pomodoro-controls {
    flex-wrap: wrap;
  }
  
  .pomodoro-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ====== 动画类 ====== */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scale-in {
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* ====== 空状态 ====== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state .text {
  font-size: 14px;
}

/* ====== 加载状态 ====== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====== 材料选择器 ====== */
.material-selector {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin-top: 15px;
}

.material-selector-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* ====== 宠物状态动画 ====== */
.pet-status-work {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ====== 经验条 ====== */
.exp-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.exp-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  transition: width 0.5s ease;
}

/* ====== 番茄钟完成动画 ====== */
.tomato-complete {
  animation: tomatoBounce 0.5s ease;
}

@keyframes tomatoBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ====== 成功粒子效果 ====== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  font-size: 20px;
  animation: particleFall 1s ease-out forwards;
}

@keyframes particleFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100px) rotate(360deg);
  }
}
