/* 灵宠 / 斗兽场 */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(0.6rem, 2vh, 1.2rem);
  min-height: 100dvh;
  overflow: auto;
}

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-top h1 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  background: linear-gradient(120deg, #00d4ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.pet-card {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(12, 20, 40, 0.55);
  backdrop-filter: blur(16px);
}

.pet-card.selected {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.pet-card.vip-frame {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
}

.pet-card .name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #e8f1ff;
  margin-bottom: 0.35rem;
}

.pet-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pet-card .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}

.pet-card .stats span {
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 0.25rem;
  text-align: center;
}

.badge-vip {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1a1000;
  font-weight: 700;
  margin-left: 0.35rem;
}

.arena-panel {
  display: grid;
  gap: 0.85rem;
}

.arena-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(10, 16, 32, 0.65);
  backdrop-filter: blur(18px);
}

.difficulty-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.difficulty-row .glass-btn.active {
  border-color: #00d4ff;
  color: #d9f8ff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}

.match-status {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: var(--neon-cyan);
  text-align: center;
  min-height: 2.5rem;
  margin: 0.75rem 0;
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.fighter {
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.fighter.ai {
  border-color: rgba(251, 191, 36, 0.45);
}

.fighter .tag {
  font-size: 0.7rem;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.hp-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-top: 0.4rem;
}

.hp-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #06d6a0, #00d4ff);
  transition: width 0.35s ease;
}

.battle-log {
  max-height: 180px;
  overflow: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.form-inline input {
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(0,0,0,0.3);
  color: #fff;
  width: 120px;
}

@media (orientation: landscape) and (max-height: 500px) {
  .page-shell { padding: 0.4rem 0.6rem; }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
