/* ============================================
   INDEX V2 - Modern Game Portal Layout
   ============================================ */

:root {
    --game-bg: #080a12;
    --game-bg-soft: #0d1020;
    --game-surface: #151a2e;
    --game-surface-strong: #1b2238;
    --game-blue-deep: #123a5f;
    --game-blue: #1f6feb;
    --game-cyan: #00a8e8;
    --game-cyan-soft: rgba(0, 168, 232, 0.24);
    --game-gold: #ffd166;
    --game-gold-strong: #ff9f1c;
    --game-gold-soft: #f6c453;
    --game-text: #f8fafc;
    --game-text-soft: #a8b3c7;
    --game-text-muted: #5f6f89;
    --game-border: rgba(0, 168, 232, 0.28);
    --game-border-strong: rgba(0, 168, 232, 0.58);
    --game-gold-border: rgba(255, 209, 102, 0.34);
}

/* --- NAV LOGO IMAGE --- */
.nav-logo-img {
    height: 42px;
    filter: drop-shadow(0 2px 8px rgba(255, 200, 50, 0.4));
    transition: transform 0.3s, filter 0.3s;
}
.nav-logo:hover .nav-logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 16px rgba(255, 200, 50, 0.7));
}

/* --- NAV LINK (2-line style) --- */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 0 !important;
}
.nav-link-main {
    font-size: 14px;
    font-weight: 600;
    color: #c0cfe0;
    transition: color 0.3s;
}
.nav-link-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #5a6a80;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-link:hover .nav-link-main,
.nav-link.active .nav-link-main { color: #fff; }
.nav-link:hover .nav-link-sub,
.nav-link.active .nav-link-sub { color: #ffd166; }

/* ============================================
   HERO V2
   ============================================ */
.v2-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    padding-top: 80px;
    padding-bottom: 30px;
}
.v2-hero-logo {
    max-width: 380px;
    width: 70%;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
    animation: logoDrop 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: translateY(-60px);
    opacity: 0;
}
@keyframes logoDrop {
    to { transform: translateY(0); opacity: 1; }
}
.v2-hero-title {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.3;
    animation: heroFadeUp 1s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}
.v2-hero-sub {
    color: #ddd;
    font-size: 15px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
    margin: 0;
    animation: heroFadeUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Join Button */
.v2-hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 56px;
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-strong));
    color: #120d04;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 159, 28, 0.42), inset 0 2px 0 rgba(255, 255, 255, 0.26);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    animation: heroFadeUp 1s ease 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}
.v2-hero-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 40px rgba(255, 159, 28, 0.56), inset 0 2px 0 rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.6);
}
.v2-hero-btn-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}
.v2-hero-btn-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ============================================
   HUD STRIP V2
   ============================================ */
.v2-hud-strip {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: -30px auto 40px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.v2-hud-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(22, 24, 42, 0.92), rgba(12, 13, 22, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 10px rgba(0, 229, 255, 0.15), inset 0 0 15px rgba(0, 229, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.v2-hud-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.8) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.15) !important;
}
.v2-hud-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(0, 188, 212, 0.1));
    border: 1px solid rgba(255, 209, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.v2-hud-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.v2-hud-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #6b7fa0;
    text-transform: uppercase;
}
.v2-hud-value {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.2);
}
.v2-hud-note {
    font-size: 11px;
    font-weight: 600;
    color: #ffd166;
}

/* ============================================
   MAIN CONTENT - 3 COLUMN
   ============================================ */
.v2-main-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 24px;
}
.v2-grid-3col {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 20px;
    align-items: start;
}

/* --- PANEL SHARED --- */
.v2-panel {
    background: linear-gradient(180deg, rgba(16, 18, 32, 0.92), rgba(10, 11, 20, 0.96));
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 229, 255, 0.15), inset 0 0 15px rgba(0, 229, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease !important;
}
.v2-panel:hover {
    border-color: rgba(0, 229, 255, 0.8) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.15) !important;
}
.v2-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.08), rgba(0, 188, 212, 0.05));
}
.v2-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffd166;
    margin: 0;
}
.v2-panel-link {
    font-size: 12px;
    color: var(--game-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.v2-panel-link:hover { color: var(--game-gold); }

/* ============================================
   QUICK MENU
   ============================================ */
.v2-qm-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.v2-qm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #c0cfe0;
    transition: all 0.25s;
    border: 1px solid transparent;
}
.v2-qm-item:hover {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.12), rgba(255, 209, 102, 0.08));
    border-color: var(--game-border);
    transform: translateX(4px);
}
.v2-qm-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    flex-shrink: 0;
}
.v2-qm-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.v2-qm-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}
.v2-qm-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #5a6a80;
}

/* --- Quick Menu HIGHLIGHT (Game Guide) --- */
.v2-qm-highlight {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 140, 0, 0.08)) !important;
    border: 1px solid rgba(255, 209, 102, 0.35) !important;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: guideGlow 3s ease-in-out infinite;
}
.v2-qm-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.12) 45%, transparent 60%);
    animation: guideShimmer 4s ease-in-out infinite;
    pointer-events: none;
}
.v2-qm-highlight:hover {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 140, 0, 0.15)) !important;
    border-color: rgba(255, 209, 102, 0.6) !important;
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 209, 102, 0.2), 0 8px 24px rgba(0, 0, 0, 0.2);
}
.v2-qm-highlight .v2-qm-icon {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.25), rgba(255, 140, 0, 0.15));
    border: 1px solid rgba(255, 209, 102, 0.3);
    font-size: 22px;
    animation: guideIconBounce 2s ease-in-out infinite;
}
.v2-qm-highlight .v2-qm-name {
    color: #ffd166;
    font-weight: 700;
    font-size: 14px;
}
.v2-qm-highlight .v2-qm-desc {
    color: #cc9a30;
}

/* HOT Badge */
.v2-qm-badge-hot {
    position: absolute;
    top: -6px;
    right: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

/* Arrow indicator */
.v2-qm-arrow {
    margin-left: auto;
    font-size: 16px;
    color: #ffd166;
    font-weight: 700;
    opacity: 0.6;
    transition: all 0.3s;
    animation: arrowBounce 1.5s ease-in-out infinite;
}
.v2-qm-highlight:hover .v2-qm-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@keyframes guideGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 209, 102, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 0 25px rgba(255, 209, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
}
@keyframes guideShimmer {
    0% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
@keyframes guideIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(255, 68, 68, 0.6); }
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* --- Section label divider: "⭐ ระบบสำคัญ" --- */
.v2-qm-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 4px 6px;
    padding: 0;
}
.v2-qm-section-label::before,
.v2-qm-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.45), transparent);
}
.v2-qm-section-text {
    font-family: 'Outfit', 'Sarabun', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #6dd5ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.45);
    white-space: nowrap;
    padding: 0 4px;
    animation: sectionLabelPulse 2.6s ease-in-out infinite;
}
@keyframes sectionLabelPulse {
    0%, 100% { text-shadow: 0 0 8px rgba(0, 200, 255, 0.35); opacity: 0.92; }
    50% { text-shadow: 0 0 14px rgba(0, 200, 255, 0.7); opacity: 1; }
}

/* --- Spotlight: stronger highlight (cyan/purple) for "ระบบสำคัญ" --- */
.v2-qm-spotlight {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.16), rgba(120, 80, 255, 0.13)) !important;
    border: 1.5px solid rgba(0, 220, 255, 0.5) !important;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    padding: 14px 14px !important;
    animation: spotlightGlow 2.6s ease-in-out infinite !important;
}
.v2-qm-spotlight::before {
    background: linear-gradient(105deg, transparent 30%, rgba(180, 230, 255, 0.18) 45%, transparent 60%) !important;
}
.v2-qm-spotlight:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.28), rgba(120, 80, 255, 0.2)) !important;
    border-color: rgba(0, 220, 255, 0.78) !important;
    transform: translateX(6px) scale(1.03);
    box-shadow: 0 0 36px rgba(0, 200, 255, 0.32), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}
.v2-qm-spotlight .v2-qm-icon {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.3), rgba(120, 80, 255, 0.2)) !important;
    border: 1px solid rgba(0, 220, 255, 0.4) !important;
    font-size: 24px !important;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
}
.v2-qm-spotlight .v2-qm-name {
    color: #6dd5ff !important;
    font-size: 15px !important;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
}
.v2-qm-spotlight .v2-qm-desc {
    color: #4aa8d8 !important;
}
.v2-qm-spotlight .v2-qm-arrow {
    color: #6dd5ff !important;
}
.v2-qm-badge-must {
    background: linear-gradient(135deg, #00c8ff, #785cff) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 200, 255, 0.45) !important;
    animation: mustBadgePulse 2s ease-in-out infinite !important;
}
@keyframes spotlightGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 200, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 32px rgba(0, 200, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}
@keyframes mustBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 200, 255, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0, 200, 255, 0.65); }
}

/* ============================================
   NEWS LIST
   ============================================ */
.v2-news-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.v2-news-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}
.v2-news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}
.v2-news-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    color: #fff;
    margin-top: 2px;
}
.v2-badge-update { background: linear-gradient(135deg, #ff4444, #ff6b6b); }
.v2-badge-event { background: linear-gradient(135deg, #00c882, #00e5a0); }
.v2-badge-notice { background: linear-gradient(135deg, #ffa726, #ffcc02); color: #333; }
.v2-news-body {
    flex: 1;
    min-width: 0;
}
.v2-news-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}
.v2-news-excerpt {
    font-size: 12px;
    color: #8a96a8;
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v2-news-readmore {
    font-size: 12px;
    color: var(--game-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.v2-news-readmore:hover { color: var(--game-gold); }
.v2-news-date {
    flex-shrink: 0;
    font-size: 11px;
    color: #5a6a80;
    white-space: nowrap;
    margin-top: 3px;
}

/* ============================================
   RANKING
   ============================================ */
.v2-ranking-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.v2-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s;
}
.v2-rank-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.v2-rank-pos {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #8a96a8;
}
.v2-rank-1 .v2-rank-pos {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}
.v2-rank-2 .v2-rank-pos {
    background: linear-gradient(135deg, #c0c0c0, #8a8a8a);
    color: #fff;
}
.v2-rank-3 .v2-rank-pos {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}
.v2-rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.14), rgba(255, 209, 102, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.cls-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.2s;
}
.cls-badge-0 {
    background: linear-gradient(135deg, rgba(160, 174, 192, 0.15), rgba(100, 120, 140, 0.08));
    border-color: rgba(160, 174, 192, 0.18);
}
.cls-badge-1 {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(200, 50, 50, 0.08));
    border-color: rgba(255, 107, 107, 0.25);
}
.cls-badge-2 {
    background: linear-gradient(135deg, rgba(104, 211, 145, 0.2), rgba(50, 160, 80, 0.08));
    border-color: rgba(104, 211, 145, 0.25);
}
.cls-badge-3 {
    background: linear-gradient(135deg, rgba(183, 148, 244, 0.2), rgba(120, 80, 200, 0.08));
    border-color: rgba(183, 148, 244, 0.25);
}
.v2-rank-item:hover .cls-badge-1 { box-shadow: 0 0 8px rgba(255,107,107,0.25); }
.v2-rank-item:hover .cls-badge-2 { box-shadow: 0 0 8px rgba(104,211,145,0.25); }
.v2-rank-item:hover .cls-badge-3 { box-shadow: 0 0 8px rgba(183,148,244,0.25); }
.v2-rank-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.v2-rank-name {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-rank-detail {
    font-size: 10px;
    color: #5a6a80;
    font-weight: 600;
}
.v2-rank-time {
    font-size: 9px;
    color: #3d5a80;
    font-weight: 500;
}
.v2-rank-score {
    text-align: right;
    flex-shrink: 0;
}
.v2-rank-score-val {
    font-size: 12px;
    font-weight: 800;
    color: #ffd166;
    font-family: 'Outfit', sans-serif;
}
.v2-rank-score-lbl {
    font-size: 9px;
    color: #5a6a80;
    font-weight: 600;
}
.v2-rank-live-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px 6px;
    font-size: 10px;
    color: #48bb78;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.v2-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48bb78;
    box-shadow: 0 0 6px #48bb78;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}
.v2-rank-timestamp {
    font-size: 9px;
    color: #3d4a5a;
    font-weight: 400;
    margin-left: auto;
}

/* ============================================
   SIDE FLOATING BUTTONS
   ============================================ */
.v2-side-btns {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.v2-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px;
    background: linear-gradient(180deg, rgba(22, 24, 42, 0.95), rgba(12, 13, 22, 0.98));
    border: 1px solid rgba(255, 209, 102, 0.15);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #c0cfe0;
    text-decoration: none;
    transition: all 0.3s;
    width: 60px;
    cursor: pointer;
}
.v2-side-btn:hover {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.16), rgba(255, 209, 102, 0.10));
    border-color: var(--game-border-strong);
    width: 70px;
}
.v2-side-icon { font-size: 18px; }
.v2-side-label {
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: #8a96a8;
}

/* ============================================
   FOOTER V2
   ============================================ */
.v2-footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8, 9, 18, 0.75), rgba(4, 5, 10, 0.8));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 209, 102, 0.12);
    padding: 0;
}
.v2-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.v2-footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}
.v2-footer-logo {
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(255, 200, 50, 0.3));
    flex-shrink: 0;
}
.v2-footer-copy {
    font-size: 11px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}
.v2-footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.v2-footer-social-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #5a6a80;
}
.v2-footer-social {
    display: flex;
    gap: 10px;
}
.v2-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a8;
    text-decoration: none;
    transition: all 0.3s;
}
.v2-social-icon:hover {
    background: linear-gradient(135deg, var(--game-blue), var(--game-cyan));
    color: var(--game-text);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.30);
}
.v2-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.v2-footer-cta-text {
    font-size: 13px;
    color: #8a96a8;
    font-weight: 500;
    margin: 0;
}
.v2-btn-start-game {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: linear-gradient(135deg, #ffd166, #ff8c00);
    color: #1a1a2e;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(255, 140, 0, 0.35);
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.v2-btn-start-game:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 40px rgba(255, 140, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .v2-grid-3col {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .v2-quick-menu {
        grid-column: 1 / -1;
    }
    .v2-qm-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .v2-hud-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 16px;
    }
    .v2-side-btns { display: none; }
}

@media (max-width: 768px) {
    .v2-grid-3col {
        grid-template-columns: 1fr;
    }
    .v2-qm-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .v2-hud-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 16px;
    }
    .v2-hero-title { font-size: 24px; }
    .v2-hero-btn-main { font-size: 18px; }
    .v2-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .v2-footer-left {
        flex-direction: column;
        align-items: center;
    }
    .v2-footer-right {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .v2-qm-list {
        grid-template-columns: 1fr;
    }
    .v2-hero-btn { padding: 14px 36px; }
    .v2-hero-btn-main { font-size: 16px; }
}

/* ============================================
   DARK GAME PORTAL THEME OVERRIDES
   60% dark base, 30% blue/cyan support, 10% gold accent
   ============================================ */

body.page-index {
    color: var(--game-text);
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 168, 232, 0.16), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(255, 209, 102, 0.10), transparent 26%),
        linear-gradient(180deg, var(--game-bg) 0%, var(--game-bg-soft) 46%, #060811 100%);
}

.page-index #particles .particle,
.page-index .particle {
    background: radial-gradient(circle, rgba(255, 209, 102, 0.72), transparent 70%);
}

.page-index .navbar,
.page-index .navbar.scrolled {
    background: rgba(8, 10, 18, 0.88);
    border-bottom: 1px solid var(--game-border);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), 0 0 18px rgba(0, 168, 232, 0.10);
    backdrop-filter: blur(14px);
}

.page-index .nav-logo-img,
.page-index .v2-footer-logo {
    filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.34));
}

.page-index .nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 18px rgba(255, 209, 102, 0.55));
}

.page-index .nav-link-main {
    color: var(--game-text-soft);
}

.page-index .nav-link-sub {
    color: var(--game-text-muted);
}

.page-index .nav-link:hover .nav-link-main,
.page-index .nav-link.active .nav-link-main {
    color: var(--game-text);
}

.page-index .nav-link:hover .nav-link-sub,
.page-index .nav-link.active .nav-link-sub {
    color: var(--game-gold);
}

.page-index .nav-link.active::after {
    background: linear-gradient(90deg, var(--game-cyan), var(--game-gold));
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.55);
}

.page-index .server-status-pill {
    background: rgba(0, 168, 232, 0.10);
    border-color: var(--game-border);
}

.page-index .status-label {
    color: var(--game-text-soft);
}

.page-index .status-count,
.page-index .status-dot {
    color: var(--game-gold);
    background: var(--game-gold);
}

.page-index .btn-nav-login,
.page-index .btn-register,
.page-index .btn-signup,
.page-index .btn-dl-primary {
    color: #120d04;
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-strong));
    box-shadow: 0 8px 24px rgba(255, 159, 28, 0.34);
}

.page-index .btn-nav-login:hover,
.page-index .btn-register:hover,
.page-index .btn-signup:hover,
.page-index .btn-dl-primary:hover {
    box-shadow: 0 12px 34px rgba(255, 159, 28, 0.48);
}

.page-index .btn-download,
.page-index .btn-login,
.page-index .btn-dl-secondary {
    background: linear-gradient(135deg, var(--game-blue), var(--game-cyan));
    box-shadow: 0 8px 24px rgba(0, 168, 232, 0.28);
}

.page-index #navClassesBtn {
    background: linear-gradient(135deg, var(--game-blue), var(--game-cyan)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.32) !important;
}

.page-index .index-hero {
    background:
        linear-gradient(180deg, rgba(8, 10, 18, 0.15), rgba(8, 10, 18, 0.84)),
        radial-gradient(circle at 50% 20%, rgba(0, 168, 232, 0.22), transparent 35%);
}

.page-index .welcome-overlay {
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 168, 232, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(8, 10, 18, 0.10) 0%, rgba(8, 10, 18, 0.72) 82%);
}

.page-index .glow-effect {
    background: radial-gradient(circle, rgba(0, 168, 232, 0.28), transparent 58%);
}

.page-index .v2-hero-title {
    color: var(--game-text);
    text-shadow: 0 5px 24px rgba(0, 0, 0, 1), 0 0 24px rgba(0, 168, 232, 0.42);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.60));
}

.page-index .v2-hero-sub {
    color: var(--game-text-soft);
}

.page-index .v2-hero-btn,
.page-index .v2-btn-start-game {
    color: #120d04;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-strong) 100%);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 32px rgba(255, 159, 28, 0.42), 0 0 28px rgba(255, 209, 102, 0.22);
}

.page-index .v2-hero-btn:hover,
.page-index .v2-btn-start-game:hover {
    box-shadow: 0 16px 44px rgba(255, 159, 28, 0.56), 0 0 34px rgba(0, 168, 232, 0.20);
}

.page-index .v2-hud-item,
.page-index .v2-panel {
    background: linear-gradient(180deg, rgba(21, 26, 46, 0.94), rgba(8, 10, 18, 0.96));
    border: 1px solid var(--game-border) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 18px rgba(0, 168, 232, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.page-index .v2-hud-item:hover,
.page-index .v2-panel:hover {
    border-color: var(--game-border-strong) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44), 0 0 26px rgba(0, 168, 232, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.page-index .v2-hud-icon {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.16), rgba(255, 209, 102, 0.12));
    border-color: var(--game-gold-border);
}

.page-index .v2-hud-label,
.page-index .v2-qm-desc,
.page-index .v2-rank-detail,
.page-index .v2-rank-time,
.page-index .v2-rank-score-lbl,
.page-index .v2-footer-copy,
.page-index .v2-footer-cta-text {
    color: var(--game-text-muted);
}

.page-index .v2-hud-value,
.page-index .v2-qm-name,
.page-index .v2-news-title,
.page-index .v2-rank-name {
    color: var(--game-text);
}

.page-index .v2-hud-note,
.page-index .v2-panel-title,
.page-index .v2-rank-score-val,
.page-index .v2-footer-social-label {
    color: var(--game-gold);
}

.page-index .v2-panel-header {
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.12), rgba(255, 209, 102, 0.08));
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.page-index .v2-panel-link,
.page-index .v2-news-readmore {
    color: var(--game-cyan);
}

.page-index .v2-panel-link:hover,
.page-index .v2-news-readmore:hover {
    color: var(--game-gold);
}

.page-index .v2-qm-item,
.page-index .v2-news-item,
.page-index .v2-rank-item,
.page-index .v2-side-btn,
.page-index .v2-social-icon {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(0, 168, 232, 0.16);
}

.page-index .v2-qm-item:hover,
.page-index .v2-news-item:hover,
.page-index .v2-rank-item:hover,
.page-index .v2-side-btn:hover,
.page-index .v2-social-icon:hover {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.14), rgba(255, 209, 102, 0.08));
    border-color: var(--game-border-strong);
    box-shadow: 0 10px 28px rgba(0, 168, 232, 0.18);
}

.page-index .v2-qm-highlight {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.13), rgba(0, 168, 232, 0.08)) !important;
    border-color: var(--game-gold-border) !important;
}

.page-index .v2-qm-highlight:hover {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(0, 168, 232, 0.13)) !important;
    border-color: rgba(255, 209, 102, 0.60) !important;
}

.page-index .v2-qm-highlight .v2-qm-icon,
.page-index .v2-qm-badge-hot,
.page-index .v2-qm-badge-must {
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-strong));
    color: #120d04;
}

.page-index .v2-qm-highlight .v2-qm-name,
.page-index .v2-qm-section-text,
.page-index .v2-qm-spotlight .v2-qm-name,
.page-index .v2-qm-spotlight .v2-qm-desc,
.page-index .v2-qm-spotlight .v2-qm-arrow {
    color: var(--game-gold) !important;
}

.page-index .v2-qm-section-label::before,
.page-index .v2-qm-section-label::after {
    background: linear-gradient(90deg, transparent, rgba(0, 168, 232, 0.44), transparent);
}

.page-index .v2-qm-spotlight {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.14), rgba(255, 209, 102, 0.11)) !important;
    border-color: var(--game-border-strong) !important;
}

.page-index .v2-news-excerpt,
.page-index .v2-news-date,
.page-index .v2-side-label {
    color: var(--game-text-soft);
}

.page-index .v2-badge-update {
    background: linear-gradient(135deg, var(--game-blue), var(--game-cyan));
}

.page-index .v2-badge-event {
    background: linear-gradient(135deg, #19b779, #5ee6a8);
}

.page-index .v2-badge-notice {
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-strong));
    color: #120d04;
}

.page-index .v2-rank-pos {
    background: rgba(255, 255, 255, 0.06);
    color: var(--game-text-soft);
}

.page-index .v2-rank-1 .v2-rank-pos {
    color: #120d04;
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-strong));
}

.page-index .v2-rank-live-bar {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.10), rgba(0, 168, 232, 0.08));
    border-color: var(--game-gold-border);
}

.page-index .v2-rank-timestamp {
    color: var(--game-text-muted);
}

.page-index .v2-footer {
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.82), rgba(4, 5, 10, 0.94));
    border-top-color: var(--game-border);
}

@media (max-width: 768px) {
    .page-index .navbar,
    .page-index .navbar.scrolled {
        padding: 8px 12px;
    }

    .page-index .nav-container {
        gap: 8px;
    }

    .page-index .nav-logo {
        flex: 0 0 auto;
    }

    .page-index .nav-logo-img {
        height: 32px;
    }

    .page-index .nav-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }

    .page-index .server-status-pill {
        display: none;
    }

    .page-index #navClassesBtn {
        margin: 0 !important;
        padding: 8px 12px !important;
        max-width: 142px;
        overflow: hidden;
        text-overflow: ellipsis;
        justify-content: center;
        font-size: 12px !important;
    }

    .page-index .btn-nav-login {
        padding: 8px 14px;
        font-size: 13px;
    }

    .page-index .nav-hamburger {
        flex: 0 0 auto;
    }

    .page-index .nav-hamburger span {
        background: var(--game-text-soft);
    }
}

@media (max-width: 420px) {
    .page-index #navClassesBtn {
        max-width: 118px;
        padding-inline: 10px !important;
    }

    .page-index .btn-nav-login {
        padding-inline: 12px;
    }
}
