﻿/* ===================================
   마블 라이벌즈 한국 - 프리미엄 스타일시트
   Premium Gaming UI v2.0
   =================================== */

/* ---- CSS 변수 ---- */
:root {
    --mr-red: #e62429;
    --mr-red-dark: #b91c1c;
    --mr-red-light: #ff4d52;
    --mr-red-glow: rgba(230, 36, 41, 0.4);
    --mr-gold: #f0b232;
    --mr-gold-light: #ffd700;
    --mr-cyan: #00d4ff;
    --mr-purple: #8b5cf6;
    --mr-dark: #05080f;
    --mr-dark-card: #0c1018;
    --mr-dark-card-hover: #111827;
    --mr-dark-surface: #0f1520;
    --mr-dark-hover: #1c2333;
    --mr-border: rgba(255, 255, 255, 0.06);
    --mr-border-light: rgba(255, 255, 255, 0.1);
    --mr-text: #e0e6ed;
    --mr-text-secondary: #6b7a8d;
    --mr-vanguard: #3b8bff;
    --mr-duelist: #ff4655;
    --mr-strategist: #2dde98;
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --glass-bg: rgba(12, 16, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-glow: 0 0 40px rgba(230, 36, 41, 0.08);
    --shadow-heavy: 0 25px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 글로벌 ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--mr-dark);
    color: var(--mr-text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

::selection { background-color: var(--mr-red); color: white; }
a { color: var(--mr-red-light); }
a:hover { color: var(--mr-gold); }

/* ---- 스크롤바 ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--mr-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--mr-red), var(--mr-red-dark));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--mr-red-light); }

/* ---- 글로우 유틸리티 ---- */
.glow-red { text-shadow: 0 0 20px var(--mr-red-glow), 0 0 40px rgba(230, 36, 41, 0.15); }
.glow-underline { position: relative; display: inline-block; }
.glow-underline::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--mr-red), transparent);
    box-shadow: 0 0 10px var(--mr-red-glow);
}

/* ---- 메인 콘텐츠 ---- */
.main-content {
    padding-top: 76px;
    min-height: calc(100vh - 300px);
    position: relative;
}

/* ============================================
   네비게이션 - 글래스모피즘
   ============================================ */
.navbar {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.95), rgba(5, 8, 15, 0.85)) !important;
    border-bottom: 1px solid var(--mr-border-light);
    transition: all 0.4s var(--transition-smooth);
    padding: 0.6rem 0;
    z-index: 1040;
}

.navbar.scrolled {
    background: rgba(5, 8, 15, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(230, 36, 41, 0.05);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--mr-red-light) 50%, var(--mr-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
    font-size: 1.2rem;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.navbar .nav-link {
    color: var(--mr-text-secondary) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    letter-spacing: 0.2px;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(230, 36, 41, 0.1);
}

.navbar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(230, 36, 41, 0.15), rgba(230, 36, 41, 0.05));
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 20%; width: 60%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--mr-red), transparent);
    box-shadow: 0 0 8px var(--mr-red-glow);
    border-radius: 1px;
}

.navbar .badge.bg-danger {
    background: linear-gradient(135deg, var(--mr-red), var(--mr-red-dark)) !important;
    font-size: 0.6rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--mr-red-glow);
}

.dropdown-menu-dark {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 8px;
}

.dropdown-menu-dark .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--mr-text);
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(230, 36, 41, 0.15);
    color: white;
}

/* ============================================
   히어로 배너 - 시네마틱 풀스크린
   ============================================ */
.hero-banner {
    background: var(--mr-dark);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(230, 36, 41, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59, 139, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 90% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--mr-dark) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-banner .hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(230, 36, 41, 0.15), transparent 70%);
    top: -10%; right: -5%;
}

.hero-orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    bottom: 10%; left: 5%;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(240, 178, 50, 0.06), transparent 70%);
    top: 30%; left: 40%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.min-vh-50 { min-height: 55vh; }

.hero-banner .container {
    position: relative;
    z-index: 3;
}

.hero-stats-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mr-border);
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--mr-red), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--mr-border-light);
    background: rgba(230, 36, 41, 0.05);
}

.stat-item:hover::before { opacity: 1; }

/* ============================================
   페이지 헤더
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--mr-dark) 0%, #0a0e18 50%, #10080a 100%);
    border-bottom: 1px solid var(--mr-border);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(ellipse at right center, rgba(230, 36, 41, 0.06), transparent 60%);
    pointer-events: none;
}

/* ============================================
   카드 공통
   ============================================ */
.bg-card {
    background: linear-gradient(145deg, rgba(12, 16, 24, 0.9), rgba(15, 21, 32, 0.95)) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(10px);
}

.card {
    transition: all 0.4s var(--transition-smooth);
    border: none;
    background: transparent;
}

/* ============================================
   영웅 카드
   ============================================ */
.hero-card {
    background: linear-gradient(160deg, var(--mr-dark-card), rgba(15, 21, 32, 0.95));
    border-radius: 16px !important;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--mr-border) !important;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mr-red), var(--mr-purple), var(--mr-cyan));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-card:hover::before { opacity: 1; }

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(230, 36, 41, 0.15), 0 0 60px rgba(230, 36, 41, 0.08);
    border-color: transparent !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0c1220 0%, #0a0e18 100%);
    aspect-ratio: 181 / 329;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.5s var(--transition-smooth);
    filter: brightness(0.9);
}

.col-lg-2 .card-img-wrapper { aspect-ratio: auto; height: 340px; }

.col-lg-2 .card-img-wrapper img {min-height: 340px;}

.hero-card:hover .card-img-wrapper img {
    transform: scale(1.12);
    filter: brightness(1.1);
}

.card-img-overlay-custom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(5, 8, 15, 0.95) 0%, rgba(5, 8, 15, 0.5) 50%, transparent 100%);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.hero-card .card-body {
    background: var(--mr-dark-card);
    border-top: 1px solid var(--mr-border);
}

/* ============================================
   역할군 배지
   ============================================ */
.bg-vanguard { background: linear-gradient(135deg, #2563eb, #3b8bff) !important; box-shadow: 0 2px 10px rgba(59, 139, 255, 0.3); }
.bg-duelist { background: linear-gradient(135deg, #dc2626, #ff4655) !important; box-shadow: 0 2px 10px rgba(255, 70, 85, 0.3); }
.bg-strategist { background: linear-gradient(135deg, #16a34a, #2dde98) !important; box-shadow: 0 2px 10px rgba(45, 222, 152, 0.3); }

.btn-vanguard { background: linear-gradient(135deg, #2563eb, #3b8bff); border: none; color: white; box-shadow: 0 4px 15px rgba(59, 139, 255, 0.3); }
.btn-duelist { background: linear-gradient(135deg, #dc2626, #ff4655); border: none; color: white; box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3); }
.btn-strategist { background: linear-gradient(135deg, #16a34a, #2dde98); border: none; color: white; box-shadow: 0 4px 15px rgba(45, 222, 152, 0.3); }

.badge { font-weight: 600; letter-spacing: 0.3px; }
.badge-sm { font-size: 0.65rem; padding: 0.25em 0.6em; }

/* ============================================
   역할군 카드 (게임정보)
   ============================================ */
.role-icon-circle {
    width: 110px; height: 110px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.role-icon-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.2;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0; }
}

.role-card {
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid var(--mr-border) !important;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card[data-role="vanguard"]::before { background: linear-gradient(90deg, transparent, var(--mr-vanguard), transparent); }
.role-card[data-role="duelist"]::before { background: linear-gradient(90deg, transparent, var(--mr-duelist), transparent); }
.role-card[data-role="strategist"]::before { background: linear-gradient(90deg, transparent, var(--mr-strategist), transparent); }

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.role-card:hover::before { opacity: 1; }

/* ============================================
   퀵 메뉴
   ============================================ */
.quick-menu-card {
    background: linear-gradient(160deg, var(--mr-dark-card), var(--mr-dark-surface));
    border: 1px solid var(--mr-border) !important;
    border-radius: 20px !important;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.quick-menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(230, 36, 41, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(230, 36, 41, 0.12), 0 0 80px rgba(230, 36, 41, 0.05);
    border-color: rgba(230, 36, 41, 0.3) !important;
}

.quick-menu-card:hover::before { opacity: 1; }

.icon-circle {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, rgba(230, 36, 41, 0.08), rgba(230, 36, 41, 0.02));
    border: 1px solid rgba(230, 36, 41, 0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--transition-smooth);
}

.quick-menu-card:hover .icon-circle {
    background: linear-gradient(135deg, rgba(230, 36, 41, 0.15), rgba(230, 36, 41, 0.05));
    transform: scale(1.12);
    box-shadow: 0 0 30px rgba(230, 36, 41, 0.2);
    border-color: rgba(230, 36, 41, 0.3);
}

.bg-dark-subtle {
    background: linear-gradient(180deg, rgba(10, 14, 24, 0.8), var(--mr-dark)) !important;
    position: relative;
}

.bg-dark-subtle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--mr-border-light), transparent);
}

/* ============================================
   맵 카드
   ============================================ */
.map-card {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid var(--mr-border) !important;
    background: var(--mr-dark-card);
}

.map-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--mr-border-light) !important;
}

.map-card .card-img-top {
    transition: all 0.5s var(--transition-smooth);
    filter: brightness(0.85) saturate(1.1);
}

.map-card:hover .card-img-top {
    transform: scale(1.08);
    filter: brightness(1);
}

/* ============================================
   팀업 카드
   ============================================ */
.teamup-card {
    border-radius: 16px !important;
    border: 1px solid var(--mr-border) !important;
    background: linear-gradient(160deg, var(--mr-dark-card), var(--mr-dark-surface));
    position: relative;
}

.teamup-card::after {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 36, 41, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teamup-card:hover {
    border-color: rgba(230, 36, 41, 0.2) !important;
    box-shadow: 0 15px 35px rgba(230, 36, 41, 0.08);
    transform: translateY(-4px);
}

.teamup-card:hover::after { opacity: 1; }

/* ============================================
   패치 카드
   ============================================ */
.patch-card {
    border-radius: 16px !important;
    transition: all 0.3s var(--transition-smooth);
    background: var(--mr-dark-card);
    border: 1px solid var(--mr-border) !important;
}

.patch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--mr-border-light) !important;
}

/* 패치노트 본문 */
.patch-content {
    font-size: 0.93rem;
    line-height: 2;
    word-break: break-word;
}

.patch-section-header {
    display: block;
    margin: 28px 0 12px;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(230,36,41,0.12), transparent);
    border-left: 3px solid var(--mr-red);
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff8a8a;
    white-space: normal;
}

.patch-role-header {
    display: block;
    margin: 22px 0 8px;
    padding: 6px 14px;
    background: rgba(240,178,50,0.07);
    border-left: 3px solid var(--mr-gold);
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mr-gold);
    white-space: normal;
}

/* 패치노트 본문 내 코스튬 이미지 */
.patch-costume-img {
    display: inline-block;
    max-height: 120px;
    max-width: 100px;
    object-fit: contain;
    border-radius: 8px;
    margin: 4px 8px 4px 4px;
    vertical-align: middle;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================
   영웅 상세
   ============================================ */
.hero-detail-header {
    background: linear-gradient(135deg, var(--mr-dark) 0%, #0a0e18 40%, #120a10 60%, var(--mr-dark) 100%);
    border-bottom: 1px solid var(--mr-border);
    position: relative;
    overflow: hidden;
}

.hero-detail-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%; height: 100%;
    background: radial-gradient(ellipse at right, rgba(230, 36, 41, 0.06), transparent 70%);
    pointer-events: none;
}

.hero-detail-image img {
    border: 2px solid var(--mr-border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s var(--transition-smooth);
}

.hero-detail-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(230, 36, 41, 0.15);
}

.hero-bio {
    border-left: 3px solid var(--mr-red);
    background: rgba(230, 36, 41, 0.03);
    border-radius: 0 12px 12px 0;
}

.ability-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mr-border-light);
}
.ability-icon img {
    border-radius: 8px;
}

.stat-box {
    border: 1px solid var(--mr-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.stat-box:hover {
    border-color: var(--mr-border-light);
    background: rgba(230, 36, 41, 0.05);
}

/* ============================================
   테이블
   ============================================ */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(230, 36, 41, 0.06);
    --bs-table-border-color: var(--mr-border);
}

.table-dark th {
    font-weight: 600;
    color: var(--mr-text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

.table-dark td { border-bottom: 1px solid var(--mr-border); }

/* ============================================
   폼
   ============================================ */
.form-control, .form-select {
    transition: all 0.3s var(--transition-smooth);
    border-radius: 10px;
}

.form-control.bg-dark, .form-select.bg-dark {
    background: rgba(5, 8, 15, 0.8) !important;
    border-color: var(--mr-border) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--mr-red) !important;
    box-shadow: 0 0 0 3px rgba(230, 36, 41, 0.15), 0 0 20px rgba(230, 36, 41, 0.05);
    background: rgba(10, 14, 24, 0.95) !important;
}

.input-group-text { border-radius: 10px 0 0 10px; }

/* ============================================
   버튼
   ============================================ */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-danger {
    background: linear-gradient(135deg, var(--mr-red), var(--mr-red-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(230, 36, 41, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--mr-red-light), var(--mr-red));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 36, 41, 0.4);
}

.btn-danger:active { transform: translateY(0); }

.btn-danger::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    transition: transform 0.6s ease;
    transform: translateX(-100%);
}

.btn-danger:hover::after { transform: translateX(100%); }

.btn-outline-danger {
    color: var(--mr-red-light);
    border: 1px solid rgba(230, 36, 41, 0.4);
    background: transparent;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--mr-red), var(--mr-red-dark));
    border-color: var(--mr-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 36, 41, 0.3);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary { border-color: var(--mr-border-light); color: var(--mr-text-secondary); }

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--mr-text-secondary);
    color: var(--mr-text);
}

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ============================================
   링크 & 호버
   ============================================ */
.hover-link { transition: all 0.2s ease; }
.hover-link:hover { color: var(--mr-red-light) !important; text-shadow: 0 0 10px rgba(230, 36, 41, 0.2); }
.hover-bg:hover { background-color: rgba(230, 36, 41, 0.05) !important; }

.list-group-item.bg-transparent { transition: all 0.2s ease; }
.list-group-item.bg-transparent:hover {
    background: rgba(230, 36, 41, 0.05) !important;
    padding-left: 1.2rem;
}

/* ============================================
   페이지네이션
   ============================================ */
.pagination .page-link {
    background: var(--mr-dark-card);
    border: 1px solid var(--mr-border);
    color: var(--mr-text-secondary);
    border-radius: 10px !important;
    margin: 0 3px;
    padding: 0.5rem 0.85rem;
    transition: all 0.3s var(--transition-smooth);
    font-weight: 500;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--mr-red), var(--mr-red-dark));
    border-color: var(--mr-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 36, 41, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--mr-red), var(--mr-red-dark));
    border-color: var(--mr-red);
    box-shadow: 0 4px 12px rgba(230, 36, 41, 0.3);
}

/* ============================================
   네비 탭
   ============================================ */
.nav-tabs { border-color: var(--mr-border); }

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--mr-text-secondary) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--mr-text) !important;
    border-bottom-color: rgba(230, 36, 41, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--mr-red-light) !important;
    background: transparent;
    border-bottom-color: var(--mr-red);
    box-shadow: 0 2px 8px rgba(230, 36, 41, 0.2);
}

/* ============================================
   푸터
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--mr-dark-surface), var(--mr-dark)) !important;
    border-top: 1px solid var(--mr-border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--mr-red-glow), transparent);
}

/* ============================================
   브레드크럼
   ============================================ */
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--mr-text-secondary); content: '>'; }

/* ============================================
   알럿
   ============================================ */
.alert { border-radius: 14px; border: none; backdrop-filter: blur(10px); }
.alert-danger { background: rgba(230, 36, 41, 0.15); border: 1px solid rgba(230, 36, 41, 0.2); color: #fca5a5; }
.alert-success { background: rgba(45, 222, 152, 0.1); border: 1px solid rgba(45, 222, 152, 0.2); color: #86efac; }
.alert-warning { background: rgba(240, 178, 50, 0.1); border: 1px solid rgba(240, 178, 50, 0.2); color: #fcd34d; }
.alert-secondary { background: rgba(107, 122, 141, 0.1); border: 1px solid rgba(107, 122, 141, 0.2); color: var(--mr-text-secondary); }

/* ============================================
   섹션 디바이더
   ============================================ */
.section-divider {
    width: 80px; height: 3px;
    background: linear-gradient(90deg, var(--mr-red), transparent);
    border-radius: 2px;
    margin: 1rem 0;
}
.section-divider.center { margin: 1rem auto; }

/* ============================================
   스크롤 인디케이터
   ============================================ */
.scroll-indicator {
    position: fixed;
    top: 76px; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mr-red), var(--mr-gold));
    z-index: 1041;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--mr-red-glow);
}

/* ============================================
   애니메이션
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 20px rgba(230, 36, 41, 0.1); } 50% { box-shadow: 0 0 40px rgba(230, 36, 41, 0.2); } }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s var(--transition-smooth); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s var(--transition-smooth); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.5s var(--transition-smooth); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* ============================================
   로딩 스피너
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 44px; height: 44px;
    border: 3px solid var(--mr-border);
    border-radius: 50%;
    border-top-color: var(--mr-red);
    animation: spin 0.8s linear infinite;
}

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

.page-loader {
    position: fixed; inset: 0;
    background: var(--mr-dark);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }

/* ============================================
   공지 콘텐츠
   ============================================ */
.notice-content {
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: 1.05rem;
}

.notice-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

/* ============================================
   기타
   ============================================ */
::placeholder { color: var(--mr-text-secondary) !important; opacity: 0.6; }

.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 36, 41, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.text-gradient-red {
    background: linear-gradient(135deg, var(--mr-red-light), var(--mr-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--mr-gold), #ffe066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

hr.border-secondary { border-color: var(--mr-border) !important; opacity: 0.5; }

/* ============================================
   반응형
   ============================================ */
@media (max-width: 992px) {
    .main-content { padding-top: 70px; }
}

@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2rem; }
    .hero-banner .lead { font-size: 0.95rem; }
    .card-img-wrapper { aspect-ratio: 181 / 260; }
    .hero-detail-header { text-align: center; }
    .hero-detail-image { margin-bottom: 1rem; }
    .page-header { padding-top: 2rem !important; }
    .btn-group { flex-wrap: wrap; }
    .table-responsive { font-size: 0.85rem; }
    .quick-menu-card { border-radius: 14px !important; }
    .icon-circle { width: 70px; height: 70px; }
    .hero-orb-1 { width: 300px; height: 300px; }
    .hero-orb-2 { width: 200px; height: 200px; }
    .hero-orb-3 { display: none; }
}

@media (max-width: 576px) {
    .navbar-brand .badge { display: none; }
    .brand-text { font-size: 1rem; }
    .display-4 { font-size: 1.7rem; }
    .display-5 { font-size: 1.4rem; }
    .display-6 { font-size: 1.2rem; }
    .btn-lg { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    .min-vh-50 { min-height: 45vh; }
}

/* ---- kbd 키바인딩 - 보라색 ---- */
kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mr-purple), #6d28d9);
    color: #fff;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.72em;
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
    white-space: nowrap;
    min-height: 22px;
}
kbd.key-mouse {
    padding: 3px 6px;
    cursor: help;
}

/* ---- 어빌리티 타입 배지 (무기/일반/궁극기 등) ---- */
.ability-type-badge {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
    min-height: 22px;
    display: inline-flex !important;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ---- Ability Stat Chip ---- */
.ability-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    line-height: 1.3;
    transition: background 0.2s;
}
.ability-stat-chip:hover {
    background: rgba(255,255,255,0.08);
}
.text-cyan {
    color: var(--mr-cyan) !important;
}

/* ---- 영웅 스탯 배지 (체력/속도) ---- */
.hero-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}
.hero-stat-badge:hover {
    background: rgba(255,255,255,0.08);
}
.hero-stat-badge .stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.hero-stat-badge .stat-label {
    font-size: 0.72rem;
    color: var(--mr-text-secondary);
}

/* ---- 어빌리티 섹션 헤더 구분선 ---- */
.ability-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---- 어빌리티 카드 강화 ---- */
.ability-card {
    background: var(--mr-dark-card);
    border: 1px solid var(--mr-border);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ability-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ---- 변환폼 탭의 체력 배지 ---- */
.tf-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(230, 36, 41, 0.12);
    border: 1px solid rgba(230, 36, 41, 0.25);
    font-size: 0.72rem;
    font-weight: 600;
    color: #ff6b70;
}

/* ======================================================
   플레이어 통계 페이지
====================================================== */

/* 탭 스타일 */
.player-tabs .nav-link {
    color: var(--mr-text-secondary);
    background: transparent;
    border: 1px solid var(--mr-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: color 0.2s, background 0.2s;
}
.player-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}
.player-tabs .nav-link.active {
    color: #fff;
    background: var(--mr-dark-card);
    border-color: var(--mr-border);
    border-bottom-color: var(--mr-dark-card);
}

/* 영웅 통계 테이블 */
.hero-stats-table {
    background: var(--mr-dark-card);
    border-radius: 0 0 10px 10px;
}
.hero-stats-table thead tr th {
    background: transparent;
    color: var(--mr-text-secondary);
    font-size: 0.72rem;
    padding: 10px 14px;
    font-weight: 600;
    letter-spacing: .04em;
}
.hero-stats-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.hero-stats-table tbody tr:hover {
    background: rgba(255,255,255,0.04) !important;
}
.hero-stats-table tbody tr td {
    padding: 10px 14px;
    vertical-align: middle;
}

/* 플레이어 아바타 래퍼 */
.player-avatar-wrapper {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}

/* 승/패 결과 카드 */
.match-card-win  { border-left: 3px solid #22c55e !important; }
.match-card-lose { border-left: 3px solid #e62429 !important; }

/* 데이터 새로고침 버튼 */
.data-refresh-btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 4px 14px;
    transition: all 0.25s ease;
    border-color: rgba(255,255,255,0.2);
}
.data-refresh-btn:hover {
    background: rgba(230,36,41,0.15);
    border-color: var(--mr-red);
    color: var(--mr-red) !important;
}
.data-refresh-btn:hover i {
    animation: spin 0.6s ease-in-out;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- 모달 열릴 때 네비바/오버레이 충돌 방지 ---- */
body.modal-open .navbar,
body.modal-open .scroll-indicator {
    z-index: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.modal-open .navbar {
    background: rgba(5, 8, 15, 0.99) !important;
}

/* ============================================
   홈 페이지 전용 스타일
   ============================================ */

/* 배지 */
.home-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
}
.home-badge-red {
    background: rgba(230, 36, 41, 0.15);
    border: 1px solid rgba(230, 36, 41, 0.3);
    color: #ff6b6b;
}
.home-badge-cyan {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--mr-cyan);
}

/* 섹션 eyebrow */
.home-section-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--mr-red);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.home-section-eyebrow.center { text-align: center; }

/* 홈 기능 카드 (배너 우측) */
.home-feature-card {
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--mr-border);
    background: rgba(255,255,255,0.03);
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.home-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.home-feature-red::before    { background: linear-gradient(90deg, transparent, var(--mr-red), transparent); }
.home-feature-cyan::before   { background: linear-gradient(90deg, transparent, var(--mr-cyan), transparent); }
.home-feature-purple::before { background: linear-gradient(90deg, transparent, var(--mr-purple), transparent); }
.home-feature-gold::before   { background: linear-gradient(90deg, transparent, var(--mr-gold), transparent); }

.home-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--mr-border-light);
    background: rgba(255,255,255,0.05);
}
.home-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.home-feature-red    .home-feature-icon { color: var(--mr-red); }
.home-feature-cyan   .home-feature-icon { color: var(--mr-cyan); }
.home-feature-purple .home-feature-icon { color: var(--mr-purple); }
.home-feature-gold   .home-feature-icon { color: var(--mr-gold); }
.home-feature-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.home-feature-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

/* 플레이어 통계 CTA 배너 */
.player-cta-banner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.07), rgba(0, 212, 255, 0.02));
    border-top: 1px solid rgba(0, 212, 255, 0.12);
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}
.player-cta-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--mr-cyan);
    flex-shrink: 0;
}

/* 영웅 필터 탭 */
.hero-filter-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--mr-border);
    padding: 4px;
    border-radius: 10px;
}
.hero-filter-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.hero-filter-btn.active,
.hero-filter-btn:hover {
    background: var(--mr-red);
    color: #fff;
}

/* 커스텀 5열 그리드 */
@media (min-width: 992px) {
    .col-lg-2-4 { flex: 0 0 20%; max-width: 20%; }
}

/* 퀵메뉴 색상 변형 */
.quick-menu-cyan::before   { background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.08), transparent 60%); }
.quick-menu-purple::before { background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08), transparent 60%); }
.quick-menu-gold::before   { background: radial-gradient(circle at 50% 0%, rgba(240, 178, 50, 0.08), transparent 60%); }

.quick-menu-cyan:hover   { border-color: rgba(0, 212, 255, 0.3) !important; box-shadow: 0 25px 50px rgba(0, 212, 255, 0.08) !important; }
.quick-menu-purple:hover { border-color: rgba(139, 92, 246, 0.3) !important; box-shadow: 0 25px 50px rgba(139, 92, 246, 0.08) !important; }
.quick-menu-gold:hover   { border-color: rgba(240, 178, 50, 0.3) !important; box-shadow: 0 25px 50px rgba(240, 178, 50, 0.08) !important; }

.icon-circle-cyan   { background: rgba(0, 212, 255, 0.08); border-color: rgba(0, 212, 255, 0.15) !important; }
.icon-circle-purple { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.15) !important; }
.icon-circle-gold   { background: rgba(240, 178, 50, 0.08); border-color: rgba(240, 178, 50, 0.15) !important; }

.quick-menu-cyan:hover   .icon-circle-cyan   { background: rgba(0, 212, 255, 0.15); box-shadow: 0 0 30px rgba(0, 212, 255, 0.2); border-color: rgba(0, 212, 255, 0.3) !important; }
.quick-menu-purple:hover .icon-circle-purple { background: rgba(139, 92, 246, 0.15); box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.3) !important; }
.quick-menu-gold:hover   .icon-circle-gold   { background: rgba(240, 178, 50, 0.15); box-shadow: 0 0 30px rgba(240, 178, 50, 0.2); border-color: rgba(240, 178, 50, 0.3) !important; }

.quick-menu-link { font-size: 0.8rem; font-weight: 600; }

/* 뉴스/공지 카드 */
.news-card-wrapper { margin-bottom: 0; }
.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.news-card-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.news-icon-red    { background: rgba(230, 36, 41, 0.15); color: var(--mr-red); }
.news-icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--mr-purple); }

.news-list-item {
    padding: 12px 16px !important;
    transition: background 0.2s ease !important;
}
.news-list-item:hover { background: rgba(255,255,255,0.04) !important; }

.news-index {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(230, 36, 41, 0.12);
    border: 1px solid rgba(230, 36, 41, 0.2);
    color: var(--mr-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ══════════════════════════════
   상점 아이템 카드
   ══════════════════════════════ */
.store-item-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    border-radius: 10px;
}
.store-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.store-item-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.store-item-img-wrap.type-costume {
    aspect-ratio: 3 / 4;
}
.store-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.type-costume .store-item-img {
    object-fit: cover;
    object-position: center 15%;
    padding: 0;
}
.store-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* 비디오 (MVP 연출) */
.store-item-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.type-video {
    cursor: pointer;
}
.video-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.type-video:hover .video-play-indicator,
.type-video.playing .video-play-indicator {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
}
.has-video .card-body {
    position: relative;
}
.video-error-fallback {
    display: none;
}

/* 등급 뱃지 (카드 좌상단) */
.store-quality-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 등급별 컬러 */
.quality-orange {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}
.quality-purple {
    background: rgba(156, 39, 176, 0.2);
    color: #CE93D8;
    border: 1px solid rgba(156, 39, 176, 0.3);
}
.quality-blue {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}
.quality-default {
    background: rgba(158, 158, 158, 0.15);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.2);
}

/* 등급별 카드 하단 보더 악센트 */
.store-item-card.quality-orange { border-bottom: 2px solid rgba(255, 152, 0, 0.5); }
.store-item-card.quality-purple { border-bottom: 2px solid rgba(156, 39, 176, 0.4); }
.store-item-card.quality-blue   { border-bottom: 2px solid rgba(33, 150, 243, 0.3); }
.store-item-card.quality-default { border-bottom: 2px solid rgba(158, 158, 158, 0.15); }

/* 모바일 상점: 코스튬 한눈에 보이도록 */
@media (max-width: 575.98px) {
    .store-item-img-wrap.type-costume {
        aspect-ratio: 2 / 3;
    }
    .store-item-card .card-body {
        padding: 4px 6px !important;
    }
    .store-item-card .card-body h6 {
        font-size: 0.7rem !important;
    }
    .store-item-card .card-body .badge {
        font-size: 0.55rem !important;
    }
    .store-quality-badge {
        font-size: 0.5rem !important;
        padding: 1px 4px !important;
    }
    .store-grid-3col > .col-6 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

