/* ============================================
   游戏通用样式 - 鸭逃南京
   ============================================ */

/* 像素风数值条 */
.ya-stat-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  font-size: 11px;
}
.ya-stat-icon { font-size: 13px; width: 16px; text-align: center; line-height: 1; }
.ya-stat-name { color: #5a4510; min-width: 32px; font-weight: bold; font-size: 11px; }
.ya-stat-track {
  flex: 1;
  height: 8px;
  background: #c4a86b;
  border: 2px solid #8b6914;
  border-radius: 0;
  overflow: hidden;
}
.ya-stat-fill {
  height: 100%;
  border-radius: 0;
  transition: width 0.3s;
  image-rendering: pixelated;
}
.ya-stat-val { color: #5a4510; font-size: 11px; min-width: 24px; text-align: right; font-weight: bold; }

/* 大厅样式 */
.ya-hall {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
}

/* 顶部信息栏 */
.ya-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.ya-top-bar .logo {
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
  letter-spacing: 2px;
}

.ya-top-bar .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* 游戏列表 */
.ya-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 80px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.ya-game-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.ya-game-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.ya-game-card .cover {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.ya-game-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.ya-game-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* 浮动数值动画 */
.float-number {
  position: absolute;
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
  z-index: 16;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  animation: floatUp 1.4s ease-out forwards;
}

.float-number.up { color: #81C784; }
.float-number.down { color: #e94560; }

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 0.8; transform: translateY(-30px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-60px) scale(0.8); }
}

/* 游戏内数值面板 - 星露谷物语像素风 */
.ya-stats-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 170px;
  background: #f4e4bc;
  border: 4px solid #8b6914;
  border-radius: 0;
  padding: 8px 8px 6px;
  z-index: 100;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
  image-rendering: pixelated;
}
.ya-stats-panel h4 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  font-size: 11px;
  color: #5a4510;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid #c4a86b;
}
