/* ================================
   던전 페이지 스타일 - 통합 다크 테마
================================ */

/* 던전 컨테이너 */
.dungeon-container {
    padding: 24px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto;
    max-width: 1200px;
}

.dungeon-container h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.dungeon-container .page-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* 던전 리스트 */
.dungeon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* 던전 카드 */
.dungeon-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dungeon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 던전 헤더 */
.dungeon-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dungeon-header h3 {
    margin: 0;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.dungeon-limit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 던전 바디 */
.dungeon-body {
    padding: 20px;
}

.dungeon-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dungeon-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.dungeon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dungeon-card:hover .dungeon-image img {
    transform: scale(1.08);
}

.dungeon-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 보상 섹션 */
.dungeon-rewards {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-tag {
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1rem;
}

/* 던전 푸터 */
.dungeon-footer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* 입장 버튼 기본 스타일 */
.dungeon-enter-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.dungeon-enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.dungeon-enter-btn:not(:disabled):hover::before {
    left: 100%;
}

/* ================================
   테마별 던전 카드 스타일
================================ */

/* 골드 광산 */
.dungeon-card.gold-mine {
    border-color: rgba(255, 255, 255, 0.1);
}

.dungeon-card.gold-mine:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.dungeon-card.gold-mine .dungeon-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dungeon-card.gold-mine .dungeon-header h3 {
    color: var(--text-primary);
}

.dungeon-card.gold-mine .dungeon-enter-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* 경험의 숲 */
.dungeon-card.exp-forest {
    border-color: rgba(255, 255, 255, 0.1);
}

.dungeon-card.exp-forest:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.dungeon-card.exp-forest .dungeon-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dungeon-card.exp-forest .dungeon-header h3 {
    color: var(--text-primary);
}

.dungeon-card.exp-forest .dungeon-rewards {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dungeon-card.exp-forest .reward-tag {
    color: var(--gold-primary);
}

.dungeon-card.exp-forest .dungeon-enter-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* 진화의 동굴 */
.dungeon-card.evo-cave {
    border-color: rgba(255, 255, 255, 0.1);
}

.dungeon-card.evo-cave:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.dungeon-card.evo-cave .dungeon-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dungeon-card.evo-cave .dungeon-header h3 {
    color: var(--text-primary);
}

.dungeon-card.evo-cave .dungeon-rewards {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dungeon-card.evo-cave .reward-tag {
    color: var(--gold-primary);
}

.dungeon-card.evo-cave .dungeon-enter-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ================================
   상태 스타일
================================ */

/* 비활성화 버튼 */
.dungeon-enter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dungeon-enter-btn:disabled::before {
    display: none;
}

/* 한도 초과 */
.dungeon-limit.reached {
    color: var(--neon-red);
    background: rgba(255, 51, 102, 0.2);
    border-color: rgba(255, 51, 102, 0.3);
}

/* ================================
   전투력 입장 조건
================================ */

.dungeon-requirement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dungeon-requirement .requirement-icon {
    font-size: 1.3rem;
}

.dungeon-requirement strong {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.dungeon-requirement .requirement-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

/* 조건 미충족 */
.dungeon-requirement.requirement-not-met {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dungeon-requirement.requirement-not-met strong {
    color: var(--neon-red);
}

/* ================================
   반응형 스타일
================================ */

@media (max-width: 768px) {
    .dungeon-container {
        padding: 16px;
        border-radius: 16px;
    }

    .dungeon-container h2 {
        font-size: 1.6rem;
    }

    .dungeon-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dungeon-card {
        border-radius: 14px;
    }

    .dungeon-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dungeon-header h3 {
        font-size: 1.15rem;
    }

    .dungeon-limit {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .dungeon-body {
        padding: 16px;
    }

    .dungeon-image {
        height: 140px;
    }

    .dungeon-body p {
        font-size: 0.9rem;
    }

    .dungeon-footer {
        padding: 14px 16px;
    }

    .dungeon-enter-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .dungeon-requirement {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .dungeon-requirement .requirement-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .dungeon-container {
        padding: 12px;
    }

    .dungeon-container h2 {
        font-size: 1.4rem;
    }

    .dungeon-header h3 {
        font-size: 1.05rem;
    }

    .dungeon-limit {
        font-size: 0.8rem;
    }

    .dungeon-image {
        height: 120px;
    }

    .dungeon-body p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .reward-tag {
        font-size: 0.9rem;
    }

    .dungeon-rewards::before {
        display: none;
    }

    .dungeon-requirement {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

/* ================================
   전투 UI v2 스타일 (배틀 공통)
   던전, 탑, 레이드 전투에 적용
================================ */

/* 전투 모달 컨테이너 v2 */
.raid-battle-modal,
#battle-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.raid-battle-modal.hidden,
#battle-modal.hidden {
  display: none;
}

.raid-battle-content {
  background: rgba(18, 18, 18, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 16px 20px;
  position: relative;
  backdrop-filter: blur(10px);
  max-width: 920px;
  width: 100%;
  margin: 20px;
}

/* 헤더 v2 */
.raid-battle-header h2,
.battle-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* 전투 모달 컨테이너 v2 */
#battle-modal .modal-content {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 920px;
  width: 100%;
}

/* 전투 필드 - v2 컴팩트 좌우 배치 */
.raid-battle-field {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

/* 팀 박스 v2 */
.raid-battle-team,
.raid-battle-boss-area {
  background: linear-gradient(145deg, rgba(25, 25, 40, 0.9), rgba(15, 15, 28, 0.95));
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-battle-boss-area {
  border-color: rgba(255, 51, 102, 0.2);
}

/* 팀 라벨 v2 */
.raid-battle-team h4,
.raid-battle-boss-area h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--neon-cyan);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
}

.raid-battle-boss-area h4 {
  color: var(--neon-red);
}

/* 팀 그리드 v2 */
.raid-team-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 활성 포켓몬 섹션 */
.active-pokemon-section {
  margin-bottom: 12px;
}

/* 활성 포켓몬 카드 v2 */
.pokemon-card-active {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.9));
  border-radius: 12px;
  padding: 12px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  position: relative;
  transition: all 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.pokemon-card-active.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* 레어리티 별 */
.rarity-stars {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-bottom: 6px;
  font-size: 0.55rem;
}

.star {
  color: rgba(255, 255, 255, 0.2);
}

.star.filled {
  color: var(--gold-primary);
}

/* 활성 포켓몬 이미지 - 크게 */
.pokemon-image-active {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pokemon-image-active img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.pokemon-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 4px;
}

.level-badge {
  font-size: 0.65rem;
  text-align: center;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--neon-cyan), #0088aa);
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  margin: 0 auto 8px;
  width: fit-content;
  display: block;
}

/* 썸네일 그리드 */
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

/* 썸네일 포켓몬 카드 v2 */
.pokemon-card-thumbnail {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.6), rgba(20, 20, 35, 0.7));
  border-radius: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.pokemon-card-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.9));
}

.pokemon-card-thumbnail.fainted {
  opacity: 0.4;
  filter: grayscale(1);
}

.thumbnail-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thumbnail-image img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.thumbnail-info {
  flex: 1;
  min-width: 0;
}

.thumbnail-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.thumbnail-level {
  font-size: 0.55rem;
  color: #a0a0a0;
}

.thumbnail-hp-bar {
  height: 3px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  margin-top: 3px;
  overflow: hidden;
}

.thumbnail-hp-fill {
  height: 100%;
  background: var(--neon-green);
  border-radius: 2px;
  transition: width 0.4s ease-out;
}

.thumbnail-hp-fill.low {
  background: var(--neon-yellow);
}

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

/* VS 디바이더 v2 */
.raid-vs-badge,
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.raid-vs-badge .vs-text,
.vs-divider .vs-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* 배틀 로그 v2 */
.raid-battle-log,
.battle-log {
  background: rgba(18, 18, 30, 0.95);
  border-radius: 12px;
  padding: 12px 16px;
  border-left: 4px solid var(--neon-cyan);
  max-height: 100px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.raid-battle-log .log-entry,
.battle-log .log-entry {
  font-size: 0.8rem;
  color: #ffffff;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.raid-battle-log .log-entry:last-child,
.battle-log .log-entry:last-child {
  border-bottom: none;
}

.raid-battle-log .log-entry.damage,
.battle-log .log-entry.damage {
  color: var(--neon-red);
}

.raid-battle-log .log-entry.attack,
.battle-log .log-entry.attack {
  color: var(--neon-cyan);
}

.raid-battle-log .log-entry.faint,
.battle-log .log-entry.faint {
  color: var(--neon-green);
}

/* ================================
   전투 애니메이션 v2
================================ */

/* 1. 공격 애니메이션 v2 */
.pokemon-card-active.attack {
  animation: attackLunge 0.3s ease-out;
}

@keyframes attackLunge {
  0% { transform: translateX(0) scale(1); }
  40% { transform: translateX(15px) scale(1.08); }
  100% { transform: translateX(0) scale(1); }
}

/* 상대방 공격 (반대 방향) */
.raid-battle-boss-area .pokemon-card-active.attack {
  animation: attackLungeEnemy 0.3s ease-out;
}

@keyframes attackLungeEnemy {
  0% { transform: translateX(0) scale(1); }
  40% { transform: translateX(-15px) scale(1.08); }
  100% { transform: translateX(0) scale(1); }
}

/* 2. 피격 애니메이션 v2 */
.pokemon-card-active.hit {
  animation: hitShake 0.5s ease-out;
}

@keyframes hitShake {
  0% { transform: translateX(0); filter: brightness(1); }
  15% { transform: translateX(-4px); filter: brightness(2); }
  30% { transform: translateX(4px); filter: brightness(1.5); }
  45% { transform: translateX(-3px); filter: brightness(1.2); }
  60% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); filter: brightness(1); }
}

/* 3. 쓰러짐 애니메이션 v2 */
.pokemon-card-active.fainted {
  opacity: 0.5;
  filter: grayscale(0.9);
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.1) !important;
  animation: faintFall 0.6s ease-out forwards !important;
  box-shadow: none !important;
}

.pokemon-card-active.fainted .hp-bar {
  width: 0% !important;
}

.pokemon-card-active.fainted .thumbnail-hp-fill {
  width: 0% !important;
}

.pokemon-card-active.fainted::after {
  content: '쓰러졌다';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-red);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 6px var(--neon-red);
  z-index: 5;
  animation: faintText 0.5s ease-out 0.3s both;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

@keyframes faintFall {
  0% { transform: scale(1) rotate(0deg); opacity: 1; filter: grayscale(0); }
  30% { transform: scale(1.05) rotate(5deg); opacity: 0.8; }
  60% { transform: scale(0.98) rotate(-3deg); opacity: 0.6; }
  100% { transform: scale(0.92) rotate(0deg); opacity: 0.5; filter: grayscale(0.9); }
}

@keyframes faintText {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 4. 파티클 효과 v2 */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
}

/* 피격 파티클 (빨간색) */
.particle-hit {
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  animation: particleExplode 0.6s ease-out forwards;
}

@keyframes particleExplode {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* 쓰러짐 파티클 (회색) */
.particle-faint {
  background: #666666;
  box-shadow: 0 0 6px rgba(100, 100, 100, 0.5);
  animation: particleFade 0.8s ease-out forwards;
}

@keyframes particleFade {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* HP바 감소 애니메이션 v2 */
.hp-container { margin-top: 4px; }

.hp-bar-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-bar-bg .hp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), #00cc66) !important;
  border-radius: 8px;
  position: relative;
  transition: width 0.4s ease-out;
}

.hp-bar-bg .hp-bar.low {
  background: linear-gradient(90deg, var(--neon-yellow), #cc9900) !important;
}

.hp-bar-bg .hp-bar.critical {
  background: linear-gradient(90deg, var(--neon-red), #cc0033) !important;
  animation: hpCritical 0.5s ease-in-out infinite;
}

@keyframes hpCritical {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hp-bar-bg .hp-bar.dropping {
  animation: hpDropFlash 0.3s ease-out;
}

@keyframes hpDropFlash {
  0% { filter: brightness(2); background: linear-gradient(90deg, var(--neon-red), #cc0033); }
  100% { filter: brightness(1); }
}

/* 전투 반응형 v2 */
@media (max-width: 768px) {
  .raid-battle-field {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .raid-vs-badge {
    transform: rotate(90deg);
    margin: 8px 0;
  }
  .thumbnail-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
  }
  .pokemon-image-active {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .pokemon-image-active {
    width: 90px;
    height: 90px;
  }
  .pokemon-name {
    font-size: 0.8rem;
  }
  .level-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
  }
  .hp-bar-bg {
    height: 6px;
  }
  .hp-text {
    font-size: 0.55rem;
  }
  .vs-text {
    font-size: 1.5rem;
  }
  .thumbnail-image {
    width: 32px;
    height: 32px;
  }
  .thumbnail-image img {
    width: 24px;
    height: 24px;
  }
  .raid-battle-log {
    padding: 10px 12px;
    max-height: 80px;
  }
  .raid-battle-log .log-entry {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .pokemon-image-active {
    width: 80px;
    height: 80px;
  }
  .pokemon-name {
    font-size: 0.75rem;
  }
  .level-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    margin: 0 auto 6px;
  }
  .hp-bar-bg {
    height: 5px;
    border-radius: 5px;
  }
  .hp-text {
    font-size: 0.5rem;
    margin-top: 2px;
  }
  .vs-text {
    font-size: 1.3rem;
  }
  .thumbnail-image {
    width: 28px;
    height: 28px;
  }
  .thumbnail-image img {
    width: 20px;
    height: 20px;
  }
  .thumbnail-name {
    font-size: 0.6rem;
  }
  .thumbnail-level {
    font-size: 0.5rem;
  }
  .thumbnail-hp-bar {
    height: 2px;
    margin-top: 2px;
  }
  .raid-battle-log {
    padding: 8px 10px;
    max-height: 70px;
  }
  .raid-battle-log .log-entry {
    font-size: 0.7rem;
    padding: 2px 0;
  }
}

@media (max-width: 360px) {
  .pokemon-image-active {
    width: 70px;
    height: 70px;
  }
  .pokemon-name {
    font-size: 0.7rem;
  }
  .level-badge {
    font-size: 0.5rem;
    padding: 2px 5px;
  }
  .hp-text {
    font-size: 0.45rem;
  }
  .vs-text {
    font-size: 1.1rem;
  }
  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .thumbnail-image {
    width: 24px;
    height: 24px;
  }
  .thumbnail-image img {
    width: 18px;
    height: 18px;
  }
  .thumbnail-name {
    font-size: 0.5rem;
  }
  .thumbnail-level {
    font-size: 0.4rem;
  }
  .raid-battle-log .log-entry {
    font-size: 0.65rem;
  }
}
