/* === ХРОНИКИ РУНЕТА — Стиль раннего рунета 2000-х === */

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

:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --text-primary: #c8d6e5;
  --text-secondary: #8395a7;
  --accent: #e94560;
  --accent-hover: #ff6b81;
  --accent-text: #ffffff;
  --gold: #f5a623;
  --hp-green: #27ae60;
  --hp-red: #e74c3c;
  --border: #2c3e50;
  --button-bg: #0f3460;
  --button-hover: #1a4a7a;
  --link-color: #5dade2;
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --tg-content-safe-top: 0px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.4;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 8px;
  padding-top: calc(8px + var(--tg-content-safe-top));
  padding-bottom: calc(8px + var(--tg-safe-bottom));
  min-height: 100vh;
}

/* === Loading Screen === */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.loading-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.loading-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 13px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 30%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 10%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 10%; margin-left: 90%; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--button-bg);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  background: var(--button-hover);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: bold;
}

.btn-primary:active {
  background: var(--accent-hover);
}

.btn-block {
  display: block;
  width: 100%;
}

/* === Cards === */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
}

/* === HP Bar === */
.hp-bar {
  width: 100%;
  height: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.hp-bar-fill {
  height: 100%;
  background: var(--hp-green);
  transition: width 0.5s ease;
}

.hp-bar-fill.low {
  background: var(--gold);
}

.hp-bar-fill.critical {
  background: var(--hp-red);
}

.hp-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* === Stat Row === */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.stat-value {
  font-weight: bold;
  color: var(--gold);
}

/* === Screen transitions === */
.screen {
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Input === */
.input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: var(--accent);
}

.input-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.error-text {
  color: var(--hp-red);
  font-size: 12px;
  margin-top: 4px;
}

/* === Avatar Grid === */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: border-color 0.2s;
}

.avatar-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.4);
}

/* === Leaderboard === */
.lb-row {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lb-rank {
  width: 30px;
  font-weight: bold;
  color: var(--gold);
}

.lb-name {
  flex: 1;
}

.lb-value {
  font-weight: bold;
  color: var(--accent);
}

/* === EXP Bar Container === */
.hp-bar-container {
  width: 100%;
  height: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin: 4px 0;
}

.hp-bar-container .hp-bar {
  height: 100%;
  background: var(--accent);
  border: none;
  border-radius: 0;
  transition: width 0.5s ease;
}

.hp-bar-container .hp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  white-space: nowrap;
}

/* === Stat Up Button === */
.btn-stat-up {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.btn-stat-up:hover {
  background: var(--accent);
  color: white;
}

/* === Battle Screen === */
.battle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.battle-player {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.battle-player-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-player-level {
  font-size: 11px;
  color: var(--text-secondary);
}

.battle-avatar {
  font-size: 32px;
  margin: 4px 0;
}

.battle-vs {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent);
  padding: 0 4px;
  flex-shrink: 0;
}

.battle-hp {
  margin-top: 4px;
}

.battle-hp .hp-bar {
  height: 12px;
}

.battle-hp .hp-bar-text {
  font-size: 9px;
}

/* Zone Selector */
.zone-selector {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0;
}

.zone-btn {
  flex: 1;
  max-width: 120px;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.zone-btn .zone-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

.zone-btn.selected {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.15);
}

.zone-btn.selected-block {
  border-color: var(--hp-green);
  background: rgba(39, 174, 96, 0.15);
}

.zone-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Round Timer */
.battle-timer {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  margin: 8px 0;
}

.battle-timer.urgent {
  color: var(--hp-red);
  animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* Round Log */
.round-log {
  padding: 8px;
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.6;
  background: var(--bg-primary);
  border-radius: 4px;
}

.round-log-hit {
  color: var(--hp-red);
}

.round-log-miss {
  color: var(--text-secondary);
}

.round-log-crit {
  color: var(--gold);
  font-weight: bold;
}

.round-log-block {
  color: #3498db;
}

.round-log-dodge {
  color: var(--hp-green);
}

/* Battle Result */
.battle-result {
  text-align: center;
  padding: 16px;
}

.battle-result-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.battle-result-title.win {
  color: var(--hp-green);
}

.battle-result-title.loss {
  color: var(--hp-red);
}

.battle-result-title.draw {
  color: var(--gold);
}

.battle-result-rewards {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.battle-result-rewards .reward-positive {
  color: var(--hp-green);
}

.battle-result-rewards .reward-negative {
  color: var(--hp-red);
}

/* Waiting screen */
.battle-searching {
  text-align: center;
  padding: 32px 0;
}

.battle-searching .spinner {
  font-size: 32px;
  animation: spin 2s linear infinite;
  margin-bottom: 12px;
}

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

/* Battle History */
.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.history-win { border-left: 3px solid var(--hp-green); }
.history-loss { border-left: 3px solid var(--hp-red); }
.history-draw { border-left: 3px solid var(--gold); }
.history-result { font-size: 16px; flex-shrink: 0; }

.history-result {
  font-weight: bold;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
}

.history-result.win {
  color: var(--hp-green);
  background: rgba(39, 174, 96, 0.15);
}

.history-result.loss {
  color: var(--hp-red);
  background: rgba(231, 76, 60, 0.15);
}

.history-result.draw {
  color: var(--gold);
  background: rgba(245, 166, 35, 0.15);
}

/* === Utility === */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 12px; }
.hidden { display: none !important; }
.skeleton-card { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* === Inventory === */
.item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px; margin: 4px 0; border-radius: 6px;
  border-left: 3px solid var(--text-secondary);
}
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: bold; font-size: 14px; }
.item-desc { margin-top: 2px; }
.item-actions { margin-left: 8px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.btn-sm { padding: 4px 10px; font-size: 11px; }

.rarity-common { border-left-color: #888; }
.rarity-uncommon { border-left-color: #2ecc71; }
.rarity-uncommon .item-name { color: #2ecc71; }
.rarity-rare { border-left-color: #3498db; }
.rarity-rare .item-name { color: #3498db; }
.rarity-epic { border-left-color: #9b59b6; }
.rarity-epic .item-name { color: #9b59b6; }
.rarity-legendary { border-left-color: var(--gold); }
.rarity-legendary .item-name { color: var(--gold); }

/* === Drop Card === */
.drop-card { border: 1px solid var(--gold); }
.drop-title { font-size: 18px; color: var(--gold); margin-bottom: 4px; }
.drop-item { font-size: 16px; font-weight: bold; }

/* === Referral === */
.referral-code {
  font-size: 28px; font-weight: bold; letter-spacing: 6px;
  color: var(--gold); font-family: monospace;
  padding: 8px 16px; background: rgba(255,215,0,0.1);
  border-radius: 8px; display: inline-block;
}

/* === Leaderboard === */
.leaderboard-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.leaderboard-row:last-child { border-bottom: none; }
.lb-rank { width: 32px; text-align: center; font-weight: bold; }
.lb-avatar { font-size: 20px; }
.lb-name { flex: 1; font-size: 14px; }
.lb-stats { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }

/* === Quests === */
.quest-row {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.quest-row:last-child { border-bottom: none; }
.quest-row.quest-done { opacity: 0.6; }
.quest-info { margin-bottom: 6px; }
.quest-desc { font-size: 14px; }
.quest-progress-text { margin-top: 2px; }
.quest-bar {
  height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden;
}
.quest-bar-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width 0.3s;
}

/* === Daily Bonus / Streak === */
.streak-info {
  font-size: 18px;
  color: var(--gold);
  margin-top: 4px;
}
.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.streak-day {
  text-align: center;
  padding: 6px 2px;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  font-size: 10px;
}
.streak-day.current {
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(245, 166, 35, 0.3);
}
.streak-day.claimed {
  background: rgba(39, 174, 96, 0.15);
  border-color: var(--hp-green);
}
.streak-day.past {
  opacity: 0.5;
}
.streak-day-num {
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.streak-day-exp {
  color: var(--gold);
  font-size: 9px;
}
.streak-check {
  font-size: 12px;
  margin-top: 2px;
}

/* === Achievements === */
.achievement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0.6;
}
.achievement-item:last-child { border-bottom: none; }
.achievement-item.unlocked { opacity: 1; }
.achievement-icon { font-size: 24px; flex-shrink: 0; width: 32px; text-align: center; }
.achievement-info { flex: 1; min-width: 0; }
.achievement-name { font-weight: bold; font-size: 13px; }
.achievement-desc { margin-top: 1px; }
.achievement-reward { flex-shrink: 0; font-weight: bold; }
.achievement-progress { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.achievement-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.achievement-bar-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width 0.3s;
}

/* === League === */
.league-icon { font-size: 48px; margin: 8px 0; }
.league-name { font-size: 22px; font-weight: bold; margin-bottom: 8px; }
.league-progress { text-align: center; }

/* === Duel === */
.duel-code {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: var(--gold);
  padding: 12px;
  margin: 8px 0;
  background: var(--bg-primary);
  border: 2px dashed var(--gold);
  border-radius: 8px;
  letter-spacing: 4px;
  font-family: monospace;
}

/* === Enchant Button === */
.btn-enchant {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
}
.btn-enchant:active {
  background: rgba(245, 166, 35, 0.2);
}
.btn-sell {
  background: none;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  cursor: pointer;
}
.btn-sell:active {
  background: rgba(231, 76, 60, 0.2);
}

/* === Titles === */
.title-card { margin-bottom: 4px; }
.title-active { border: 1px solid var(--gold); }
.title-locked { opacity: 0.6; }
.btn-sm {
  padding: 4px 10px; font-size: 12px;
  background: none; border: 1px solid var(--primary);
  color: var(--primary); border-radius: 4px; cursor: pointer;
}
.btn-sm:active { background: rgba(0, 123, 255, 0.2); }

/* === Achievement Toast === */
.achievement-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 360px;
  width: 90%;
  background: var(--bg-secondary);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  z-index: 1000;
  animation: toastIn 0.4s ease-out;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}
.achievement-toast.toast-hide {
  animation: toastOut 0.5s ease-in forwards;
}
.toast-title {
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 6px;
  font-size: 14px;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 13px;
}
.toast-icon { font-size: 18px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* === Home League Card === */
.home-league {
  cursor: pointer;
  transition: border-color 0.2s;
}
.home-league:active {
  border-color: var(--accent);
}
.home-league-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-league-icon { font-size: 24px; }
.home-league-name { font-weight: bold; font-size: 16px; flex: 1; }

/* === UX Polish === */

/* Кнопки: scale при нажатии */
.btn { transition: background 0.2s, border-color 0.2s, transform 0.1s; }
.btn:active { transform: scale(0.97); }
.btn:disabled {
  opacity: 0.5; cursor: not-allowed;
  transform: none !important;
}

/* Primary пульсация */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Карточки: stagger appear */
.screen .card { animation: slideUp 0.3s ease-out backwards; }
.screen .card:nth-child(1) { animation-delay: 0s; }
.screen .card:nth-child(2) { animation-delay: 0.05s; }
.screen .card:nth-child(3) { animation-delay: 0.1s; }
.screen .card:nth-child(4) { animation-delay: 0.15s; }
.screen .card:nth-child(5) { animation-delay: 0.2s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Группировка кнопок на главной */
.btn-group { margin-bottom: 12px; }
.btn-group .btn { margin-bottom: 6px; }
.btn-group-label {
  font-size: 11px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px; padding-left: 2px;
}

/* Рейтинг скобки */
.stat-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 10px; font-size: 11px; font-weight: bold;
}
.stat-badge-win { background: rgba(39,174,96,0.2); color: #27ae60; }
.stat-badge-loss { background: rgba(231,76,60,0.2); color: #e74c3c; }
.stat-badge-draw { background: rgba(245,166,35,0.2); color: var(--gold); }

/* Rarity цвета */
.rarity-common { color: #95a5a6; }
.rarity-uncommon { color: #2ecc71; }
.rarity-rare { color: #3498db; }
.rarity-epic { color: #9b59b6; }
.rarity-legendary { color: #f39c12; }

/* Skeleton loading pulse */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* Divider */
.divider {
  height: 1px; background: var(--border);
  margin: 8px 0; opacity: 0.3;
}

/* === Mail === */
.mail-item { position: relative; }
.mail-item-unread { border-left: 3px solid var(--accent); }
.mail-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mail-icon { font-size: 1.1em; }
.mail-subject { flex: 1; font-weight: bold; font-size: 0.95em; }
.mail-date { white-space: nowrap; font-size: 0.8em; }
.mail-body { margin-top: 4px; }
.mail-reward { margin-top: 4px; color: var(--gold); font-size: 0.9em; }
.mail-actions { display: flex; gap: 6px; }
.mail-unread-badge { color: var(--accent); font-weight: bold; font-size: 0.85em; }

/* === Settings === */
.settings-avatars { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.settings-avatar { font-size: 2em; cursor: pointer; padding: 6px; border-radius: 8px; border: 2px solid transparent; transition: all 0.2s; }
.settings-avatar:hover { border-color: var(--border); }
.settings-avatar-active { border-color: var(--accent); background: rgba(233,69,96,0.15); }
.text-danger { color: var(--hp-red); }

/* === Battle Cries === */
.battlecry-banner { background: rgba(233,69,96,0.15); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-style: italic; text-align: center; animation: fadeIn 0.5s ease; }
.battlecry-icon { font-style: normal; }
.battlecry-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.battlecry-active { border-left: 3px solid var(--accent); }
.battlecry-text { flex: 1; font-style: italic; font-size: 0.95em; }
.battlecry-actions { flex-shrink: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* === Pets === */
.pet-card { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.pet-card.pet-active { border-color: var(--accent); box-shadow: 0 0 8px rgba(233,69,96,0.3); }
.pet-icon { font-size: 2em; line-height: 1; }
.pet-info { flex: 1; }
.pet-name { font-weight: 600; font-size: 0.95em; }
.pet-exp-bar { width: 100%; height: 4px; background: var(--bg-primary); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.pet-exp-fill { height: 100%; background: var(--success); border-radius: 2px; transition: width 0.3s; }
.battle-pet { font-size: 0.85em; opacity: 0.9; margin-top: 2px; }

/* === Dungeons === */
.dungeon-card { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.dungeon-card.dungeon-locked { opacity: 0.5; }
.dungeon-icon { font-size: 2em; line-height: 1; }
.dungeon-info { flex: 1; }
.dungeon-name { font-weight: 600; font-size: 0.95em; }

/* === Reputation === */
.rep-bar { width: 100%; height: 6px; background: var(--bg-primary); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.rep-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }

/* === Bestiary === */
.bestiary-card { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.bestiary-card.bestiary-locked { opacity: 0.4; }
.bestiary-icon { font-size: 2em; line-height: 1; }
.bestiary-info { flex: 1; }
.bestiary-name { font-weight: 600; font-size: 0.95em; }
