/* ================================
   레이드 시스템 스타일 - 통합 다크 테마
================================ */

/* 레이드 컨테이너 */
.raid-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    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);
}

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

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

/* ================================
   미수령 보상 알림 배너
================================ */

.raid-pending-rewards-banner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.raid-pending-rewards-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.raid-pending-rewards-banner .banner-icon {
    font-size: 2.2rem;
}

.raid-pending-rewards-banner .banner-text h3 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.raid-pending-rewards-banner .banner-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.claim-all-rewards-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.claim-all-rewards-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ================================
   레이드 상태 정보 바
================================ */

.raid-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.raid-status-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 18px;
    text-align: center;
    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;
}

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

.raid-status-item .status-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.raid-status-item .status-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.raid-status-item .status-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.raid-status-item.attempts .status-value {
    color: var(--neon-cyan);
}

.raid-status-item.damage .status-value {
    color: #ff6b6b;
}

.raid-status-item.rank .status-value {
    color: var(--gold-primary);
}

.raid-status-item.reset .status-value {
    color: var(--neon-purple);
    font-size: 1.1rem;
}

/* ================================
   레이드 메인 레이아웃
================================ */

.raid-main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
}

/* ================================
   보스 카드
================================ */

.raid-boss-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-boss-header {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

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

.raid-boss-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

.raid-boss-image-container {
    position: relative;
    z-index: 1;
    margin: 24px 0;
}

.raid-boss-image {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

/* 보스 HP 바 */
.raid-boss-hp-bar {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-boss-hp-bar .hp-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.raid-boss-hp-bar .hp-bar-container {
    height: 18px;
    background: rgba(30, 30, 50, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-boss-hp-bar .hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #00cec9);
    width: 100%;
    border-radius: 10px;
}

.raid-boss-hp-bar .hp-text {
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-top: 6px;
    font-weight: 700;
}

/* 전투 시작 버튼 */
.raid-battle-btn {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: white;
    border: none;
    padding: 18px 56px;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.raid-battle-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.raid-battle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.raid-battle-btn.in-progress {
    background: linear-gradient(135deg, var(--gold-primary), #e67e22);
}

/* ================================
   레이드 랭킹 사이드바
================================ */

.raid-ranking-sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    max-height: 680px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-ranking-sidebar h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.raid-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raid-ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* 순위별 스타일 */
.raid-ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(240, 208, 96, 0.1));
    border: 1px solid var(--gold-primary);
}

.raid-ranking-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(220, 220, 220, 0.1));
    border: 1px solid rgba(192, 192, 192, 0.5);
}

.raid-ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(222, 184, 135, 0.1));
    border: 1px solid rgba(205, 127, 50, 0.5);
}

.raid-ranking-item.is-me {
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 206, 201, 0.1);
}

.raid-rank-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(100, 100, 120, 0.5), rgba(60, 60, 80, 0.5));
    color: white;
}

.raid-ranking-item.rank-1 .raid-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.raid-ranking-item.rank-2 .raid-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #1a1a2e;
}

.raid-ranking-item.rank-3 .raid-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b5651d);
    color: white;
}

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

.raid-ranking-nickname {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.raid-ranking-damage {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 3px;
    font-weight: 500;
}

/* ================================
   레이드 전투 모달
================================ */

.raid-battle-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 15, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

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

/* 배경 효과 */
.raid-battle-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: modalBgPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes modalBgPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(3deg); opacity: 0.8; }
}

.raid-battle-content {
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.95), rgba(10, 10, 20, 0.98));
    border-radius: 24px;
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.raid-battle-header {
    text-align: center;
    margin-bottom: 32px;
    animation: headerSlide 0.8s ease-out;
}

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

.raid-battle-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), #ff00d4, var(--gold-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 3s ease infinite;
    letter-spacing: 0.15em;
    margin: 0;
}

@keyframes titleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 배틀 필드 */
.raid-battle-field {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}

.raid-battle-field > .raid-vs-badge {
    align-self: center;
}

.raid-battle-team,
.raid-battle-boss-area {
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.9), rgba(10, 10, 20, 0.95));
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    animation: areaFade 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes areaFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.raid-battle-team::before,
.raid-battle-boss-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.raid-battle-boss-area::before {
    background: linear-gradient(90deg, transparent, #ff3366, transparent);
}

.raid-battle-team::after,
.raid-battle-boss-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.raid-battle-boss-area::after {
    background: linear-gradient(180deg, rgba(255, 51, 102, 0.04) 0%, transparent 50%);
}

.raid-battle-team h4,
.raid-battle-boss-area h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border-radius: 30px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    letter-spacing: 0.2em;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.raid-battle-boss-area h4 {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15), rgba(255, 51, 102, 0.05));
    color: #ff3366;
    text-shadow: 0 0 20px #ff3366;
    border-color: rgba(255, 51, 102, 0.25);
}

/* 팀 그리드 */
.raid-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.raid-team-pokemon {
    background: linear-gradient(145deg, rgba(35, 35, 55, 0.8), rgba(25, 25, 40, 0.9));
    border-radius: 16px;
    padding: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.raid-team-pokemon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s;
}

.raid-team-pokemon:hover::before {
    left: 100%;
}

.raid-team-pokemon:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 16px 36px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(0, 212, 255, 0.25),
        inset 0 0 25px rgba(0, 212, 255, 0.03);
}

.raid-team-pokemon.active-pokemon {
    border-color: var(--gold-primary);
    box-shadow: 
        0 0 35px rgba(212, 175, 55, 0.35),
        inset 0 0 35px rgba(212, 175, 55, 0.08);
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.35), inset 0 0 35px rgba(212, 175, 55, 0.08); }
    50% { box-shadow: 0 0 50px rgba(212, 175, 55, 0.5), inset 0 0 50px rgba(212, 175, 55, 0.12); }
}

.raid-team-pokemon img {
    width: 85px;
    height: 85px;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.raid-team-pokemon:hover img {
    transform: scale(1.12);
}

.raid-team-pokemon .pokemon-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.raid-team-pokemon .pokemon-level {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    text-align: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--neon-cyan), #0088aa);
    border-radius: 20px;
    color: #000;
    font-weight: 700;
    margin: 0 auto 10px;
    width: fit-content;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    display: block;
}

/* 레어리티 별 */
.battle-star-rank {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    line-height: 1;
}

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

.battle-star-rank .star.filled {
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-primary);
    animation: starBlink 1.5s ease-in-out infinite;
}

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

/* VS 배지 */
.raid-vs-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-primary), #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vsBounce 1.5s ease-in-out infinite;
}

.raid-vs-badge::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    animation: vsGlow 2s ease-in-out infinite;
}

@keyframes vsGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes vsBounce {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.7)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 32px rgba(255, 102, 0, 0.9)); }
}

.raid-battle-boss-image {
    width: 130px;
    height: 130px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 25px rgba(255, 107, 107, 0.5));
}

.raid-battle-boss-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 데미지 표시 */
.raid-damage-display {
    text-align: center;
    margin-bottom: 24px;
}

.raid-damage-display .damage-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.raid-damage-display .damage-value {
    color: #ff6b6b;
    font-size: 2.8rem;
    font-weight: 900;
    text-shadow: 0 0 35px rgba(255, 107, 107, 0.5);
    animation: damagePop 0.3s ease;
}

@keyframes damagePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 전투 로그 */
.raid-battle-log {
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.9), rgba(10, 10, 20, 0.95));
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 24px;
    border-left: 4px solid var(--neon-cyan);
    backdrop-filter: blur(10px);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.raid-battle-log .log-entry {
    font-size: 1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    animation: logAppear 0.3s ease-in;
}

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

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

.raid-battle-log .log-entry.damage {
    color: #ff3366;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}

.raid-battle-log .log-entry.info {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ================================
   보상 모달
================================ */

.raid-reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.raid-reward-modal.hidden {
    display: none;
}

.raid-reward-content {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.98), rgba(20, 20, 35, 0.99));
    border-radius: 24px;
    padding: 36px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.raid-reward-content h2 {
    color: var(--gold-primary);
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.raid-reward-rank {
    color: #ff6b6b;
    font-size: 1.6rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.raid-reward-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.raid-reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 14px 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-reward-item .reward-icon {
    font-size: 1.6rem;
}

.raid-reward-item .reward-text {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
}

.raid-reward-claim-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #000;
    border: none;
    padding: 16px 44px;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.raid-reward-claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

/* ================================
   순위별 보상 정보
================================ */

.raid-rewards-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.reward-tier:hover {
    background: rgba(255, 255, 255, 0.08);
}

.reward-tier .tier-label {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 65px;
}

.reward-tier .tier-rewards {
    color: var(--text-muted);
    text-align: right;
    font-size: 0.85rem;
}

.reward-tier.tier-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.35);
}

.reward-tier.tier-1 .tier-label {
    color: #ffd700;
}

.reward-tier.tier-1 .tier-rewards {
    color: var(--gold-primary);
}

.reward-tier.tier-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.reward-tier.tier-2 .tier-label {
    color: #c0c0c0;
}

.reward-tier.tier-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.reward-tier.tier-3 .tier-label {
    color: #cd7f32;
}

/* 달성/미달성 스타일 */
.reward-tier.achieved {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.18), rgba(0, 206, 201, 0.08)) !important;
    border-color: rgba(0, 206, 201, 0.45) !important;
}

.reward-tier.achieved .tier-label {
    color: #00cec9 !important;
}

.reward-tier.achieved .tier-rewards {
    color: #55efc4 !important;
}

.reward-tier.next-tier {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.18), rgba(253, 121, 168, 0.08)) !important;
    border-color: rgba(253, 121, 168, 0.45) !important;
    animation: nextTierGlow 2s ease-in-out infinite;
}

.reward-tier.next-tier .tier-label {
    color: #fd79a8 !important;
}

@keyframes nextTierGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(253, 121, 168, 0); }
    50% { box-shadow: 0 0 18px rgba(253, 121, 168, 0.4); }
}

/* ================================
   팀 포켓몬 HP바
================================ */

.raid-pokemon-hp-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-pokemon-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #00cc66);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 12px var(--neon-green);
}

.raid-pokemon-hp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
    border-radius: 10px 10px 0 0;
}

.raid-pokemon-hp-fill.low {
    background: linear-gradient(90deg, var(--gold-primary), #cc9900);
    box-shadow: 0 0 12px var(--gold-primary);
}

.raid-pokemon-hp-fill.critical {
    background: linear-gradient(90deg, #ff3366, #cc0033);
    box-shadow: 0 0 12px #ff3366;
    animation: hpCriticalPulse 0.5s ease-in-out infinite;
}

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

.raid-pokemon-hp-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

.raid-team-pokemon.fainted {
    opacity: 0.55;
}

.raid-team-pokemon.fainted::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: #ff3366;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* 전투 중인 포켓몬 */
.raid-team-pokemon.active-pokemon::before {
    content: '⚔️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 16px;
    z-index: 10;
    animation: battleIconFloat 1s ease infinite;
}

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

/* 대기 중인 포켓몬 */
.raid-team-pokemon.waiting-pokemon {
    opacity: 0.55;
    filter: grayscale(35%);
    transition: all 0.3s ease;
}

.raid-team-pokemon.waiting-pokemon:hover {
    opacity: 0.85;
    filter: grayscale(0%);
}

.raid-team-pokemon.waiting-pokemon img {
    opacity: 0.65;
}

/* 5성 인챈트 효과 */
.raid-team-pokemon.enchanted-glow-red {
    position: relative;
    box-shadow: 0 0 18px rgba(255, 71, 87, 0.55);
    border: 2px solid #ff4757;
    animation: redGlowPulse 2s ease-in-out infinite;
    overflow: visible;
}

.raid-team-pokemon.enchanted-glow-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(255, 71, 87, 0.1));
    pointer-events: none;
}

@keyframes redGlowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 71, 87, 0.65); }
}

/* ================================
   누적 데미지 보상 스타일
================================ */

.raid-cumulative-progress {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.raid-cumulative-progress .cumulative-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.raid-cumulative-progress .cumulative-value {
    color: var(--neon-cyan);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.cumulative-progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cumulative-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, var(--neon-cyan), #0984e3);
    border-radius: 8px;
    transition: width 0.6s ease;
}

.cumulative-tier-info {
    color: var(--gold-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

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

@media (max-width: 1100px) {
    .raid-main-layout {
        grid-template-columns: 1fr;
    }

    .raid-ranking-sidebar {
        max-height: none;
    }
}

@media (max-width: 900px) {
    .raid-battle-field {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .raid-vs-badge {
        transform: rotate(90deg);
        margin: 24px 0;
    }

    .raid-battle-header h2 {
        font-size: 2rem;
    }
}

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

    .raid-status-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .raid-pending-rewards-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .raid-pending-rewards-banner .banner-content {
        flex-direction: column;
    }

    .claim-all-rewards-btn {
        width: 100%;
    }

    .raid-boss-image {
        width: 180px;
        height: 180px;
    }

    .raid-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .raid-battle-header h2 {
        font-size: 1.5rem;
    }
    
    .raid-vs-badge {
        font-size: 2.2rem;
    }

    .raid-status-item .status-value {
        font-size: 1.2rem;
    }

    .raid-battle-btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* ================================
   레이드 전투 UI v2 스타일 (배틀 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 */
.raid-battle-field-v2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

/* 팀 박스 v2 */
.raid-team-box-v2,
.raid-boss-box-v2 {
  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-boss-box-v2 {
  border-color: rgba(255, 51, 102, 0.2);
}

/* 팀 라벨 v2 */
.team-label-v2 {
  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-boss-box-v2 .team-label-v2 {
  color: var(--neon-red);
}

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

/* 활성 포켓몬 카드 v2 */
.pokemon-card-active-v2 {
  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-v2.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* 썸네일 포켓몬 카드 v2 */
.pokemon-card-thumbnail-v2 {
  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-v2: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-v2.fainted {
  opacity: 0.4;
  filter: grayscale(1);
}

/* VS 텍스트 v2 */
.vs-text-v2 {
  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-v2 {
  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-v2 .log-entry {
  font-size: 0.8rem;
  color: #ffffff;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

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

/* 전투 애니메이션 v2 (battle.css와 중복 방지를 위해 여기서도 선언) */
.pokemon-card-active-v2.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-boss-box-v2 .pokemon-card-active-v2.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); }
}

.pokemon-card-active-v2.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); }
}

.pokemon-card-active-v2.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-v2.fainted .hp-bar {
  width: 0% !important;
}

.pokemon-card-active-v2.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); }
}

/* 파티클 효과 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-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-v2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .thumbnail-grid-v2 {
    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;
  }
  .hp-bar-bg {
    height: 6px;
  }
}

@media (max-width: 480px) {
  .pokemon-image-active {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 360px) {
  .thumbnail-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}
