/**
 * Landing Page Styles
 * Cabal Ethereal - Theme Matched
 * Color Scheme: Red (#ec1b1b) + Dark (#0d0b0c)
 */

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #0d0b0c;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    background:
        linear-gradient(180deg, rgba(18,8,9,0.92) 0%, rgba(10,5,6,0.88) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(236,27,27,0.22);
    box-shadow: 0 2px 0 rgba(236,27,27,0.06), 0 10px 30px rgba(0,0,0,0.35);
}
/* subtle red glow line at the bottom */
.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(236,27,27,0.7) 50%, transparent 100%);
    opacity: 0.7;
}

.navbar.scrolled {
    background:
        linear-gradient(180deg, rgba(12,5,6,0.97) 0%, rgba(8,3,4,0.96) 100%);
    box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 18px rgba(236,27,27,0.1);
    padding: 10px 0;
    border-bottom-color: rgba(236,27,27,0.35);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 16px;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #ec1b1b;
}

/* Bottom underline: gradient bar with diamond endpoints on active/hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ec1b1b 50%, transparent 100%);
    transition: width 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(236,27,27,0.7);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Active link: small diamond center below */
.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ec1b1b;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(236,27,27,0.8);
}

/* Highlight Button (เติมเงิน) */
.nav-highlight {
    background: linear-gradient(180deg, rgba(236,27,27,0.95) 0%, rgba(155,10,10,0.98) 100%);
    border-radius: 2px;
    color: #fff !important;
    font-weight: 600;
    box-shadow:
        0 0 0 1px rgba(236,27,27,0.9),
        0 2px 12px rgba(236,27,27,0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-highlight:hover {
    background: linear-gradient(180deg, #ff4444 0%, #ec1b1b 100%);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px #ec1b1b,
        0 4px 18px rgba(236,27,27,0.55),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.nav-highlight::after {
    display: none;
}

/* Nav Buttons (Dashboard / Register) */
.nav-btn {
    background: linear-gradient(180deg, rgba(236,27,27,0.95) 0%, rgba(155,10,10,0.98) 100%);
    border-radius: 2px;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow:
        0 0 0 1px rgba(236,27,27,0.9),
        0 2px 12px rgba(236,27,27,0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-btn:hover {
    background: linear-gradient(180deg, #ff4444 0%, #ec1b1b 100%);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px #ec1b1b,
        0 4px 18px rgba(236,27,27,0.55),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.nav-btn::after {
    display: none;
}

/* Outline Button (Login) */
.nav-btn-outline {
    border: 1px solid rgba(236,27,27,0.45);
    border-radius: 2px;
    background: rgba(10,3,3,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-btn-outline:hover {
    background: rgba(236,27,27,0.12);
    border-color: #ec1b1b;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(236,27,27,0.28);
}

.nav-btn-outline::after {
    display: none;
}

/* Language Toggle Button */
.lang-toggle-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lang-toggle-btn:hover {
    border-color: #ec1b1b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 12px rgba(236, 27, 27, 0.3);
}

.lang-toggle-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 60%),
        linear-gradient(180deg, rgba(14,8,9,0.98) 0%, rgba(8,4,5,0.98) 100%);
    border-radius: 2px;
    padding: 10px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow:
        0 18px 50px rgba(0,0,0,0.7),
        0 0 28px rgba(236,27,27,0.2);
    border: 1px solid rgba(236,27,27,0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Corner L-ticks */
.dropdown-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        12px 2px, 2px 12px,
        12px 2px, 2px 12px,
        12px 2px, 2px 12px,
        12px 2px, 2px 12px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.85;
    border: 0 !important;
}

/* Triangle arrow pointer at top */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(14,8,9,0.98);
    border-left: 1px solid rgba(236,27,27,0.38);
    border-top: 1px solid rgba(236,27,27,0.38);
}

.has-dropdown.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-menu li {
    margin: 2px 0;
    position: relative;
    z-index: 1;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px 11px 18px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

/* Left red accent bar */
.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ec1b1b 0%, #8b0000 100%);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    box-shadow: 0 0 8px rgba(236,27,27,0.6);
}

/* Red diamond dot prepended on hover */
.dropdown-menu li a::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg) scale(0);
    transition: transform 0.25s ease;
    box-shadow: 0 0 6px rgba(236,27,27,0.7);
}

.dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(236,27,27,0.15) 0%, rgba(236,27,27,0.02) 100%);
    color: #fff;
    padding-left: 22px;
}

.dropdown-menu li a:hover::before {
    transform: scaleY(1);
}
.dropdown-menu li a:hover::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* Dropdown arrow rotation */
.dropdown-arrow {
    font-size: 9px;
    margin-left: 6px;
    transition: transform 0.3s ease;
    color: rgba(236,27,27,0.8);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at right, rgba(60,5,5,0.45) 0%, rgba(0,0,0,0.75) 60%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(236,27,27,0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(12,5,6,0.98) 0%, rgba(8,3,4,0.99) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 68px 18px 80px;
    transition: right 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid rgba(236,27,27,0.35);
    box-shadow: -14px 0 40px rgba(0,0,0,0.7), -2px 0 0 rgba(236,27,27,0.25);
}
/* Subtle red glow vertical line at left border */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(236,27,27,0.9) 30%, rgba(236,27,27,0.9) 70%, transparent 100%);
    box-shadow: 0 0 10px rgba(236,27,27,0.6);
    pointer-events: none;
}

.mobile-menu.active {
    right: 0;
}

/* Optional header area inside the drawer */
.mobile-menu::after {
    content: 'NAVIGATION';
    position: absolute;
    top: 22px;
    left: 20px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 700;
    color: rgba(236,27,27,0.85);
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(236,27,27,0.4);
}

.mobile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10,3,3,0.6);
    border: 1px solid rgba(236,27,27,0.5);
    border-radius: 2px;
    color: #ec1b1b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.mobile-close:hover {
    color: #fff;
    border-color: #ec1b1b;
    background: rgba(236,27,27,0.85);
    box-shadow: 0 0 14px rgba(236,27,27,0.5);
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 6px;
}

.mobile-nav a {
    position: relative;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding: 13px 16px 13px 22px;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 60%),
        rgba(10,3,3,0.4);
    border-radius: 2px;
    transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(236,27,27,0.2);
    letter-spacing: 0.3px;
    overflow: hidden;
}

/* Left red accent bar (scales on hover/open) */
.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ec1b1b 0%, #8b0000 100%);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    box-shadow: 0 0 8px rgba(236,27,27,0.6);
}

/* Red diamond dot on hover */
.mobile-nav a::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg) scale(0);
    transition: transform 0.25s ease;
    box-shadow: 0 0 6px rgba(236,27,27,0.7);
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background:
        linear-gradient(90deg, rgba(236,27,27,0.15) 0%, rgba(236,27,27,0.02) 100%);
    border-color: rgba(236,27,27,0.55);
    color: #fff;
    padding-left: 26px;
}
.mobile-nav a:hover::before,
.mobile-nav a:active::before {
    transform: scaleY(1);
}
.mobile-nav a:hover::after,
.mobile-nav a:active::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* Mobile Dropdown Menu */
.mobile-has-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-arrow {
    font-size: 9px;
    color: #ec1b1b;
    transition: transform 0.3s ease;
}

.mobile-has-dropdown.open .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-has-dropdown.open > .mobile-dropdown-toggle {
    border-color: rgba(236,27,27,0.55);
    background: linear-gradient(90deg, rgba(236,27,27,0.12) 0%, rgba(236,27,27,0.02) 100%);
    color: #fff;
}
.mobile-has-dropdown.open > .mobile-dropdown-toggle::before {
    transform: scaleY(1);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 6px 0 10px 12px;
    display: none;
    position: relative;
}
.mobile-dropdown-menu::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, rgba(236,27,27,0.6) 0%, transparent 100%);
}

.mobile-has-dropdown.open .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li {
    margin-bottom: 5px;
}

.mobile-dropdown-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 10px 14px 10px 22px;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.03) 0%, transparent 60%),
        rgba(8,3,3,0.4);
    border: 1px solid rgba(236,27,27,0.12);
    border-radius: 2px;
    font-weight: 500;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a:active {
    background:
        linear-gradient(90deg, rgba(236,27,27,0.1) 0%, rgba(236,27,27,0.02) 100%);
    border-color: rgba(236,27,27,0.4);
    color: #ff7a7a;
    padding-left: 26px;
}

/* Mobile Discord Button */
.mobile-discord-btn {
    display: block;
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.mobile-discord-btn img {
    width: 200px;
    height: auto;
    display: block;
}

.mobile-discord-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-discord-btn img {
        width: 150px;
    }
}

/* Mobile Bottom Action Buttons - Fixed bar at bottom */
.mobile-bottom-btns {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg, rgba(12,5,6,0.98) 0%, rgba(8,3,4,0.99) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 10px 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1001;
    border-top: 1px solid rgba(236,27,27,0.35);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.6);
}
/* Red glow line at the top */
.mobile-bottom-btns::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ec1b1b 50%, transparent 100%);
    box-shadow: 0 0 8px rgba(236,27,27,0.5);
}

@media (max-width: 768px) {
    .mobile-bottom-btns {
        display: flex;
    }
}

.mobile-action-btn {
    display: inline-block;
    padding: 10px 14px;
    text-align: center;
    font-family: 'Prompt', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    background: rgba(10,3,3,0.5);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(236,27,27,0.35);
    white-space: nowrap;
    letter-spacing: 0.6px;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
    color: #fff;
    background: rgba(236,27,27,0.15);
    border-color: #ec1b1b;
    box-shadow: 0 0 12px rgba(236,27,27,0.3);
}

/* Primary/Register (Dashboard/Register) — solid red */
.mobile-action-btn.btn-register {
    background: linear-gradient(180deg, rgba(236,27,27,0.95) 0%, rgba(155,10,10,0.98) 100%);
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border: 1px solid #ec1b1b;
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(236,27,27,0.4),
        0 2px 12px rgba(236,27,27,0.35),
        inset 0 1px 0 rgba(255,255,255,0.18);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-action-btn.btn-register:hover,
.mobile-action-btn.btn-register:active {
    background: linear-gradient(180deg, #ff4444 0%, #ec1b1b 100%);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px #ec1b1b,
        0 4px 18px rgba(236,27,27,0.55),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

/* 3-dot menu button */
.mobile-menu-dots {
    font-size: 22px;
    line-height: 1;
    padding: 9px 10px;
    cursor: pointer;
    color: #ec1b1b;
    background: rgba(10,3,3,0.6);
    border: 1px solid rgba(236,27,27,0.5);
    border-radius: 2px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    margin-left: auto;
    min-width: 36px;
    text-align: center;
}

.mobile-menu-dots:hover,
.mobile-menu-dots:active {
    color: #fff;
    background: rgba(236,27,27,0.85);
    border-color: #ec1b1b;
    box-shadow: 0 0 14px rgba(236,27,27,0.5);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Multi-layer cinematic overlay */
    background:
        /* top shadow (fade in from navbar) */
        linear-gradient(180deg, rgba(6,3,4,0.85) 0%, rgba(6,3,4,0.4) 8%, transparent 18%),
        /* bottom deep fade into next section */
        linear-gradient(180deg, transparent 100%, transparent 100%),
        /* left vignette */
        linear-gradient(90deg, rgba(6,3,4,0.55) 0%, transparent 15%, transparent 85%, rgba(6,3,4,0.55) 100%),
        /* subtle red atmospheric wash */
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(236,27,27,0.14) 0%, transparent 55%),
        /* top red glow halo (around navbar edge) */
        radial-gradient(ellipse 100% 20% at 50% 0%, rgba(236,27,27,0.12) 0%, transparent 60%);
}

/* Decorative scan-line / grid texture */
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, #000 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, #000 100%);
    opacity: 0.6;
    pointer-events: none;
}

/* Horizontal scan-line sweep (subtle cinematic effect) */
.hero-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 3px,
            rgba(255,255,255,0.012) 3px,
            rgba(255,255,255,0.012) 4px
        );
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
}


/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(236, 27, 27, 0.6);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 14s;
    background: rgba(255, 82, 82, 0.5);
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 11s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 13s;
    background: rgba(251, 191, 36, 0.5);
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 15s;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(80vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px 60px;
    max-width: 1000px;
    margin-top: 0;
}

/* Trophy */
.trophy-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.trophy-glow {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 27, 27, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: trophy-pulse 2s infinite ease-in-out;
}

@keyframes trophy-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Hero Logo */
.hero-logo {
    position: relative;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(236, 27, 27, 0.3)) drop-shadow(0 0 30px rgba(236, 27, 27, 0.15));
    animation: logo-glow 3s infinite ease-in-out;
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(236, 27, 27, 0.3)) drop-shadow(0 0 30px rgba(236, 27, 27, 0.15));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(236, 27, 27, 0.4)) drop-shadow(0 0 40px rgba(236, 27, 27, 0.2));
        transform: scale(1.02);
    }
}

/* Subtitle — premium theme (accent bars + diamonds) */
.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
}

.hero-sub-text {
    font-family: 'Cinzel', 'Prompt', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(236,27,27,0.4);
    white-space: nowrap;
}

.hero-sub-bar {
    position: relative;
    flex: 0 0 100px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.hero-sub-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.hero-sub-bar::before,
.hero-sub-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.9);
}
.hero-sub-bar.left::before  { right: 0; }
.hero-sub-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.hero-sub-bar.right::before { left: 0; }
.hero-sub-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

/* Online Players Counter */
.online-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 27, 27, 0.4);
    border-radius: 50px;
    padding: 10px 25px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px #22c55e;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.online-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.online-count {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    min-width: 40px;
    text-align: center;
}

/* Main Title */
.hero-title {
    margin-bottom: 25px;
}

.title-line {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(180deg,
            #ffffff 0%,
            #ff8a8a 20%,
            #ff5252 40%,
            #ec1b1b 60%,
            #b91c1c 80%,
            #7f1d1d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(236, 27, 27, 0.5));
    animation: title-glow 3s infinite ease-in-out;
}

@keyframes title-glow {

    0%,
    100% {
        filter: drop-shadow(0 2px 10px rgba(236, 27, 27, 0.5));
    }

    50% {
        filter: drop-shadow(0 2px 25px rgba(236, 27, 27, 0.8));
    }
}

/* Tagline - Online Status */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(14px, 2.5vw, 18px);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(13, 11, 12, 0.8) 100%);
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-tagline::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-tagline::after {
    content: none;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    }
}

.online-count {
    color: #10b981;
    font-weight: 800;
    font-size: 1.3em;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

/* ==================== SERVER LAUNCH COUNTDOWN ==================== */
.countdown-section {
    margin-top: 25px;
    text-align: center;
}

.countdown-title {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.countdown-label {
    font-size: clamp(10px, 1.5vw, 12px);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-value {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    font-family: 'Orbitron', monospace;
    line-height: 1;
}

.countdown-unit {
    font-size: clamp(10px, 1.5vw, 12px);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-separator {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 4px;
        padding: 10px 16px;
    }

    .countdown-item {
        min-width: 40px;
    }

    .countdown-separator {
        margin-bottom: 12px;
    }
}

/* ==================== CTA BUTTONS ==================== */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-image {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-image img {
    height: 120px;
    width: auto;
    display: block;
}

.btn-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-hexagon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Hexagon shape with pointed edges */
.btn-hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0% 50%,
            8% 0%,
            92% 0%,
            100% 50%,
            92% 100%,
            8% 100%);
    transition: all 0.3s ease;
}

/* Border effect using ::after */
.btn-hexagon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    clip-path: polygon(0% 50%,
            6% -4%,
            94% -4%,
            100% 50%,
            94% 104%,
            6% 104%);
    transition: all 0.3s ease;
}

.btn-hexagon:hover {
    transform: translateY(-3px);
}

/* Gold Button */
.btn-gold::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-gold::after {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-gold {
    color: #1a0a0a;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {}

.btn-gold:hover::before {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.btn-gold:hover::after {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Red Button */
.btn-red::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-red::after {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.btn-red {
    color: #ffffff;
}

.btn-red:hover {}

.btn-red:hover::before {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.btn-red:hover::after {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Blue/Cyan Button - เติมเงิน */
.btn-dark::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-dark::after {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-dark {
    color: #ffffff;
}

.btn-dark:hover {}

.btn-dark:hover::before {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.btn-dark:hover::after {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Discord Button */
.btn-discord::before {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
}

.btn-discord::after {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a5 100%);
}

.btn-discord {
    color: #ffffff;
}

.btn-discord:hover::before {
    background: linear-gradient(135deg, #8ea1e1 0%, #7289da 100%);
}

.btn-discord:hover::after {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-right: 2px solid rgba(236, 27, 27, 0.6);
    border-bottom: 2px solid rgba(236, 27, 27, 0.6);
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        margin-top: 0;
        opacity: 0.5;
    }

    50% {
        margin-top: 10px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 100px;
    }
}

/* ==================== GAME SCREENSHOTS ==================== */
.screenshots-section {
    position: relative;
    padding: 110px 40px 100px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #080506 100%);
    border-top: 1px solid rgba(236,27,27,0.14);
    border-bottom: 1px solid rgba(236,27,27,0.14);
    overflow: hidden;
}

.screenshots-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,27,27,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236,27,27,0.05), transparent 40%);
    z-index: 0;
}
.screenshots-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    opacity: 0.6;
}

.screenshots-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Header --- */
.screenshots-header {
    text-align: center;
    margin-bottom: 54px;
}

.screenshots-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.screenshots-title-icon {
    width: 34px;
    height: 34px;
    color: #ec1b1b;
    filter: drop-shadow(0 0 10px rgba(236,27,27,0.55));
    flex-shrink: 0;
}

.screenshots-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 24px rgba(236,27,27,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #d3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.screenshots-bar {
    position: relative;
    flex: 0 0 120px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.screenshots-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.screenshots-bar::before,
.screenshots-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.8);
}
.screenshots-bar.left::before  { right: 0; }
.screenshots-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.screenshots-bar.right::before { left: 0; }
.screenshots-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

.screenshots-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

/* --- Grid (Bento / Mosaic) --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 175px;
    gap: 14px;
}

.screenshots-grid a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #0f0a0b;
    box-shadow:
        0 2px 10px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(236,27,27,0.22);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.45s ease;
    isolation: isolate;
}

/* Featured hero card (3rd) = 2x2 */
.screenshots-grid a:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Image base */
.screenshots-grid img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.45s ease;
    filter: brightness(0.78) saturate(0.92) contrast(1.02);
    z-index: 0;
}

/* Caption bar + gradient (::before). Uses data-caption attribute. */
.screenshots-grid a::before {
    content: attr(data-caption);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 16px 14px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(6,2,2,0.55) 45%,
        rgba(6,2,2,0.96) 100%);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0,0,0,0.95);
    transform: translateY(4px);
    opacity: 0.95;
    transition: transform 0.4s ease, color 0.3s ease, padding 0.3s ease;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Red accent bar under caption */
.screenshots-grid a .ss-zoom-icon::before {
    /* reset — not used anymore (zoom icon has its own styles) */
}

/* ::after = red frame overlay for hover glow + corner ticks */
.screenshots-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    /* 4 corner L-ticks drawn with background gradients */
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        16px 2px, 2px 16px,     /* top-left horiz, vert */
        16px 2px, 2px 16px,     /* top-right */
        16px 2px, 2px 16px,     /* bottom-left */
        16px 2px, 2px 16px;     /* bottom-right */
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.75;
    transition: opacity 0.35s ease, box-shadow 0.4s ease;
    box-shadow: inset 0 0 0 0 rgba(236,27,27,0), inset 0 0 0 rgba(236,27,27,0);
}

/* Featured card — larger caption */
.screenshots-grid a:nth-child(3)::before {
    font-size: 16px;
    padding: 52px 22px 20px;
    letter-spacing: 2px;
}

/* Zoom/expand button (top-right) — reuses existing .ss-zoom-icon inside anchor */
.screenshots-grid a .ss-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,3,3,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(236,27,27,0.55);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(-6px) scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
    z-index: 5;
}
.screenshots-grid a .ss-zoom-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    filter: drop-shadow(0 0 6px rgba(236,27,27,0.8));
}
.screenshots-grid a .ss-zoom-icon svg path {
    fill: #ffffff;
}

/* --- HOVER STATE --- */
.screenshots-grid a:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 36px rgba(0,0,0,0.75),
        inset 0 0 0 1px rgba(236,27,27,0.75),
        0 0 28px rgba(236,27,27,0.22);
    z-index: 4;
}

.screenshots-grid a:hover img {
    transform: scale(1.08);
    filter: brightness(1.02) saturate(1.08) contrast(1.05);
}

.screenshots-grid a:hover::before {
    transform: translateY(0);
    color: #fff;
    padding-bottom: 18px;
}

.screenshots-grid a:hover::after {
    opacity: 1;
    box-shadow: inset 0 0 80px rgba(236,27,27,0.15);
    background-size:
        22px 2px, 2px 22px,
        22px 2px, 2px 22px,
        22px 2px, 2px 22px,
        22px 2px, 2px 22px;
}

.screenshots-grid a:hover .ss-zoom-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(236,27,27,0.88);
    border-color: #ec1b1b;
    box-shadow: 0 0 18px rgba(236,27,27,0.6);
}
.screenshots-grid a:hover .ss-zoom-icon svg {
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .screenshots-grid {
        grid-auto-rows: 155px;
        gap: 12px;
    }
    .screenshots-title { font-size: 30px; letter-spacing: 6px; }
    .screenshots-bar { flex: 0 0 90px; }
    .screenshots-section { padding: 90px 32px 80px; }
}

@media (max-width: 768px) {
    .screenshots-section {
        padding: 70px 16px 60px;
    }
    .screenshots-header { margin-bottom: 36px; }
    .screenshots-title { font-size: 22px; letter-spacing: 4px; }
    .screenshots-title-icon { width: 26px; height: 26px; }
    .screenshots-bar { flex: 0 0 40px; }
    .screenshots-subtitle { font-size: 12px; letter-spacing: 1.5px; }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
        gap: 10px;
    }
    .screenshots-grid a:nth-child(3) {
        grid-column: span 2;
        grid-row: span 2;
    }
    .screenshots-grid a::before {
        font-size: 11px;
        padding: 24px 12px 10px;
        letter-spacing: 0.6px;
    }
    .screenshots-grid a:nth-child(3)::before {
        font-size: 13px;
        padding: 36px 14px 14px;
        letter-spacing: 1.2px;
    }
    .screenshots-grid a .ss-zoom-icon {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .screenshots-grid { grid-auto-rows: 110px; gap: 8px; }
}

/* Lightbox keyframes */
@keyframes ss-lb-open {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ss-lb-exit {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes ss-lb-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Lightbox */
#ss-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(18,5,5,0.97) 0%, rgba(4,0,0,0.99) 100%);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
#ss-lightbox.active { display: flex; }

/* image frame wrapper */
.ss-lb-frame {
    position: relative;
    display: inline-flex;
    padding: 3px;
    background: linear-gradient(135deg, rgba(236,27,27,0.6) 0%, rgba(100,10,10,0.3) 50%, rgba(236,27,27,0.6) 100%);
    border-radius: 3px;
    box-shadow: 0 0 30px rgba(236,27,27,0.25), 0 20px 60px rgba(0,0,0,0.9);
    overflow: hidden;
}
/* corner decorations */
.ss-lb-frame::before, .ss-lb-frame::after,
.ss-lb-corner-bl, .ss-lb-corner-br {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #ec1b1b;
    border-style: solid;
    z-index: 2;
}
.ss-lb-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ss-lb-frame::after  { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.ss-lb-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.ss-lb-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

#ss-lb-img {
    max-width: 86vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 1px;
    display: block;
}

/* counter */
#ss-lb-counter {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    letter-spacing: 2px;
    font-family: monospace;
}

/* close */
.ss-lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(15,4,4,0.85);
    border: 1px solid rgba(236,27,27,0.5);
    color: #ec1b1b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10001;
}
.ss-lb-close:hover {
    background: rgba(236,27,27,0.2);
    border-color: #ec1b1b;
    color: #fff;
}

/* nav arrows */
.ss-lb-prev, .ss-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,4,4,0.75);
    border: 1px solid rgba(236,27,27,0.4);
    color: #ec1b1b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
    z-index: 10001;
}
.ss-lb-prev { left: 14px; }
.ss-lb-next { right: 14px; }
.ss-lb-prev:hover, .ss-lb-next:hover {
    background: rgba(236,27,27,0.18);
    border-color: #ec1b1b;
    color: #fff;
}

/* ==================== RANKING SECTION ==================== */
.ranking-section {
    position: relative;
    padding: 110px 40px 100px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #080506 100%);
    border-top: 1px solid rgba(236,27,27,0.14);
    border-bottom: 1px solid rgba(236,27,27,0.14);
    overflow: hidden;
}

.ranking-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,27,27,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236,27,27,0.05), transparent 40%);
}
.ranking-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    opacity: 0.55;
}

.ranking-container {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
}

/* Section Header — shared by ranking + bringer */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 8px;
    text-shadow: 0 2px 24px rgba(236,27,27,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #d3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* legacy rule override: was flex, now inline */
    display: inline-block;
}

.title-icon {
    width: 34px;
    height: 34px;
    color: #ec1b1b;
    filter: drop-shadow(0 0 10px rgba(236,27,27,0.55));
    flex-shrink: 0;
}

.section-bar {
    position: relative;
    flex: 0 0 120px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.section-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.section-bar::before,
.section-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.8);
}
.section-bar.left::before  { right: 0; }
.section-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.section-bar.right::before { left: 0; }
.section-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

.section-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    letter-spacing: 1px;
}

/* Ranking Controls */
.ranking-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

/* Nation Filter */
.nation-filter {
    display: flex;
    gap: 10px;
}

.nation-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a1517;
    border: 1px solid #3d2a2a;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nation-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.nation-icon {
    font-size: 16px;
}

/* Capella - Blue theme */
.nation-btn.capella.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.nation-btn.capella:hover:not(.active) {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Procyon - Purple theme */
.nation-btn.procyon.active {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.nation-btn.procyon:hover:not(.active) {
    border-color: #a855f7;
    color: #a855f7;
}

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: rgba(10,3,3,0.55);
    border: 1px solid rgba(236,27,27,0.22);
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(236,27,27,0.06);
}

.rank-tab {
    position: relative;
    padding: 11px 28px;
    background: transparent;
    border: none;
    border-radius: 2px;
    color: rgba(255,255,255,0.65);
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.rank-tab:hover {
    color: #fff;
    background: rgba(236,27,27,0.08);
}

.rank-tab.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(236,27,27,0.85) 0%, rgba(155,10,10,0.9) 100%);
    box-shadow: 0 0 18px rgba(236,27,27,0.45), inset 0 0 0 1px rgba(236,27,27,0.9);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.rank-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #ec1b1b;
    filter: drop-shadow(0 2px 4px rgba(236,27,27,0.5));
}

/* War Class Filter */
.war-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    padding: 4px;
    background: rgba(10,3,3,0.4);
    border: 1px solid rgba(236,27,27,0.15);
    border-radius: 2px;
}

.war-class-filter.hidden {
    display: none;
}

.class-filter-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    color: rgba(255,255,255,0.55);
    font-family: 'Prompt', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
    letter-spacing: 0.6px;
}

.class-filter-btn:hover {
    border-color: rgba(236,27,27,0.4);
    color: #fff;
    background: rgba(236,27,27,0.12);
}

.class-filter-btn.active {
    background: linear-gradient(180deg, rgba(236,27,27,0.85) 0%, rgba(155,10,10,0.9) 100%);
    border-color: #ec1b1b;
    color: #fff;
    box-shadow: 0 0 14px rgba(236,27,27,0.4);
}

.class-filter-btn[data-class="1"] {
    --class-color: #ef4444;
}

.class-filter-btn[data-class="2"] {
    --class-color: #f97316;
}

.class-filter-btn[data-class="3"] {
    --class-color: #8b5cf6;
}

.class-filter-btn[data-class="4"] {
    --class-color: #22c55e;
}

.class-filter-btn[data-class="5"] {
    --class-color: #3b82f6;
}

.class-filter-btn[data-class="6"] {
    --class-color: #eab308;
}

.class-filter-btn[data-class="7"] {
    --class-color: #dc2626;
}

.class-filter-btn[data-class="8"] {
    --class-color: #06b6d4;
}

.class-filter-btn[data-class="9"] {
    --class-color: #6366f1;
}

.class-filter-btn[data-class]:not([data-class="all"]).active {
    background: var(--class-color);
    border-color: var(--class-color);
    color: #ffffff;
}

.class-filter-btn[data-class]:not([data-class="all"]):hover:not(.active) {
    border-color: var(--class-color);
    color: var(--class-color);
}

/* Ranking Table — premium angular frame */
.ranking-table-wrapper {
    position: relative;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 50%),
        rgba(10,3,3,0.55);
    border-radius: 2px;
    border: 1px solid rgba(236,27,27,0.25);
    overflow: auto;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.55),
        inset 0 0 60px rgba(236,27,27,0.04);
    max-height: 540px;
    margin-top: 8px;
}
.ranking-table-wrapper::before,
.ranking-table-wrapper::after {
    content: '';
    position: sticky;
    pointer-events: none;
    z-index: 5;
}
/* Corner L-ticks at wrapper */
.ranking-table-wrapper {
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 50%),
        linear-gradient(rgba(10,3,3,0.55), rgba(10,3,3,0.55));
    background-repeat: no-repeat;
    background-size:
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        100% 100%, 100% 100%;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%,
        0 0, 0 0;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.ranking-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background:
        linear-gradient(180deg, rgba(40,5,5,0.98) 0%, rgba(18,2,2,0.98) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ranking-table thead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ec1b1b 50%, transparent 100%);
    box-shadow: 0 0 8px rgba(236,27,27,0.6);
}

.ranking-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: none;
    font-family: 'Cinzel', 'Prompt', sans-serif;
}

.ranking-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(236,27,27,0.08);
    position: relative;
}

.ranking-table tbody tr {
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.ranking-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(236,27,27,0.12) 0%, rgba(236,27,27,0.02) 80%);
    box-shadow: inset 3px 0 0 #ec1b1b;
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank Badge — premium medal style */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 14px;
    background: rgba(18,12,13,0.8);
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(236,27,27,0.25);
    font-family: 'Cinzel', serif;
    position: relative;
}

.rank-badge.rank-1 {
    background: linear-gradient(145deg, #ffd86b 0%, #f59e0b 55%, #c17600 100%);
    color: #1a0a0a;
    border-color: #fbbf24;
    box-shadow:
        0 0 0 1px rgba(251,191,36,0.4),
        0 0 20px rgba(251,191,36,0.5),
        inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.rank-badge.rank-2 {
    background: linear-gradient(145deg, #e2e8f0 0%, #94a3b8 55%, #64748b 100%);
    color: #1a1517;
    border-color: #cbd5e1;
    box-shadow:
        0 0 0 1px rgba(203,213,225,0.3),
        0 0 14px rgba(148,163,184,0.4),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.rank-badge.rank-3 {
    background: linear-gradient(145deg, #e69656 0%, #cd7f32 55%, #8b4513 100%);
    color: #1a1517;
    border-color: #d97706;
    box-shadow:
        0 0 0 1px rgba(217,119,6,0.3),
        0 0 14px rgba(205,127,50,0.45),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Top 3 Row Highlights */
.rank-gold,
.rank-silver,
.rank-bronze {
    position: relative;
}
.rank-gold td:first-child,
.rank-silver td:first-child,
.rank-bronze td:first-child {
    position: relative;
}
.rank-gold {
    background: linear-gradient(90deg, rgba(251,191,36,0.10) 0%, transparent 50%);
    box-shadow: inset 3px 0 0 rgba(251,191,36,0.6);
}
.rank-silver {
    background: linear-gradient(90deg, rgba(148,163,184,0.08) 0%, transparent 50%);
    box-shadow: inset 3px 0 0 rgba(148,163,184,0.55);
}
.rank-bronze {
    background: linear-gradient(90deg, rgba(205,127,50,0.08) 0%, transparent 50%);
    box-shadow: inset 3px 0 0 rgba(205,127,50,0.55);
}
.rank-gold:hover, .rank-silver:hover, .rank-bronze:hover {
    background: linear-gradient(90deg, rgba(236,27,27,0.12) 0%, rgba(236,27,27,0.02) 80%);
}


/* Nation Icon */
.nation-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-left: 6px;
    border-radius: 2px;
}

.nation-icon-gm {
    width: 30px;
    height: 30px;
}

/* Column Widths */
.col-rank {
    width: 80px;
    text-align: center;
}

.col-name {
    width: auto;
}

.col-class {
    width: 140px;
}

.col-level {
    width: 80px;
    text-align: center;
}

.col-combat {
    width: 100px;
    text-align: right;
}

.col-alz {
    width: 120px;
    text-align: right;
    color: #fbbf24;
    font-weight: 600;
}

.col-exp {
    width: 100px;
    text-align: right;
    color: #60a5fa;
    font-weight: 600;
}

.col-warpoint {
    width: 100px;
    text-align: right;
    color: #fbbf24;
    font-weight: 600;
}

.col-playtime {
    width: 140px;
    text-align: right;
    color: #34d399;
    font-weight: 600;
}

.col-status {
    width: 90px;
    text-align: center;
}

.col-guild {
    width: 120px;
}

/* Online/Offline Status */
.status-online,
.status-offline {
    display: inline-block;
    width: 70px;
    padding: 3px 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-online {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-offline {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.ranking-table th.col-rank,
.ranking-table td.col-rank {
    text-align: center;
}

.ranking-table th.col-level,
.ranking-table td.col-level {
    text-align: center;
}

.ranking-table th.col-combat,
.ranking-table td.col-combat,
.ranking-table th.col-alz,
.ranking-table td.col-alz,
.ranking-table th.col-exp,
.ranking-table td.col-exp,
.ranking-table th.col-warpoint,
.ranking-table td.col-warpoint,
.ranking-table th.col-playtime,
.ranking-table td.col-playtime {
    text-align: right;
}

/* Loading & Empty States */
.loading-row,
.empty-row,
.error-row {
    background: transparent !important;
}

.loading-cell,
.empty-cell,
.error-cell {
    padding: 60px 20px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.loading-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(236, 27, 27, 0.2);
    border-top-color: #ec1b1b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-cell {
    color: #ff6b6b;
}

/* Player Tooltip */
.player-tooltip {
    position: fixed;
    z-index: 9999;
    background: linear-gradient(180deg, #1e1a1b 0%, #0d0b0c 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(251, 191, 36, 0.15);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile popup overlay */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.tooltip-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile popup tooltip */
.player-tooltip.mobile-popup {
    pointer-events: auto;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.player-tooltip.mobile-popup.visible {
    transform: translate(-50%, -50%);
}

.tooltip-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tooltip-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.tooltip-nation {
    font-size: 14px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tooltip-nation .nation-icon {
    width: 16px;
    height: 16px;
    margin-left: 0;
}

.tooltip-section {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(61, 42, 42, 0.5);
}

.tooltip-section:last-child {
    border-bottom: none;
    padding-bottom: 16px;
}

.tooltip-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.tooltip-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.tooltip-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* Nation-specific tooltip headers */
.tooltip-header.nation-capella {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, transparent 100%);
}

.tooltip-header.nation-procyon {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.15) 0%, transparent 100%);
}

/* Lord badges */
.lord-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.lord-badge.lord-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.lord-badge.lord-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #000;
}

.lord-badge.lord-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
}

/* Stat grid layout */
.tooltip-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tooltip-stat-grid .tooltip-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
}

.tooltip-stat-grid .tooltip-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-stat-grid .tooltip-stat-value {
    font-size: 16px;
    font-weight: 700;
}

.tooltip-stat-value.highlight {
    color: #fbbf24;
    font-size: 18px;
}

/* Ranking specific styles */
.tooltip-stat-value.rank-today {
    color: #4ade80;
}

.tooltip-stat-value.rank-yesterday {
    color: #94a3b8;
}

/* Power ranking specific styles */
.tooltip-stat-value.attack-value {
    color: #f87171;
}

.tooltip-stat-value.defense-value {
    color: #60a5fa;
}

.tooltip-stat-value.honor-title {
    color: #c084fc;
    font-size: 14px;
}

.tooltip-stat-value.transcender-value {
    color: #fb923c;
    font-size: 18px;
    font-weight: 700;
}

/* Guild Tooltip */
.guild-tooltip {
    border-color: #a855f7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(168, 85, 247, 0.15);
}

.guild-tooltip .tooltip-section-title {
    color: #a855f7;
}

.guild-level-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    margin-left: auto;
}

/* Guild logo shown in the ranking name cell */
.guild-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.guild-logo {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.guild-name-cell > .guild-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-tooltip .tooltip-header {
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

/* ==================== BRINGER RANKING ==================== */
.bringer-section-header {
    background: transparent !important;
}

.bringer-section-header td {
    padding: 20px 15px 10px !important;
    text-align: center;
    border-bottom: none !important;
}

.bringer-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bringer-title.luminous {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.bringer-title.storm {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

.bringer-nation {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 8px;
}

.luminous-header td {
    border-top: 2px solid rgba(96, 165, 250, 0.3) !important;
}

.storm-header td {
    border-top: 2px solid rgba(248, 113, 113, 0.3) !important;
    margin-top: 20px;
}

.luminous-row {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
}

.luminous-row:hover {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 50%, transparent 100%);
}

.storm-row {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.05) 0%, transparent 50%);
}

.storm-row:hover {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.05) 50%, transparent 100%);
}

.empty-bringer {
    opacity: 0.5;
}

.empty-bringer-cell {
    text-align: center !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    padding: 20px 15px !important;
}

.bringer-week-info td {
    text-align: center !important;
    padding: 15px !important;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
}

.no-data-icon {
    font-size: 48px;
    opacity: 0.5;
}

.no-data-message span:not(.no-data-icon) {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.no-data-message small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== WAR RANKING BY CLASS ==================== */
.war-class-header {
    background: linear-gradient(90deg,
        rgba(var(--class-color-rgb, 236, 27, 27), 0.18) 0%,
        rgba(var(--class-color-rgb, 236, 27, 27), 0.04) 40%,
        transparent 90%) !important;
    position: relative;
}

.war-class-header td {
    padding: 14px 20px 12px !important;
    text-align: left;
    border-top: 1px solid rgba(var(--class-color-rgb, 236, 27, 27), 0.4) !important;
    border-bottom: 1px solid rgba(var(--class-color-rgb, 236, 27, 27), 0.22) !important;
    position: relative;
}
.war-class-header td::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--class-color, #ec1b1b);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--class-color, #ec1b1b);
    margin-right: 12px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.war-class-icon {
    font-size: 20px;
    margin-right: 8px;
}

.war-class-title {
    font-family: 'Cinzel', 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--class-color, #fff);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 14px color-mix(in srgb, var(--class-color, #ec1b1b) 45%, transparent);
}

.war-class-count {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-left: 10px;
    letter-spacing: 1px;
    font-weight: 500;
}

.war-row {
    background: linear-gradient(90deg, rgba(var(--class-color-rgb, 255, 255, 255), 0.03) 0%, transparent 50%);
}

.war-row:hover {
    background: linear-gradient(90deg, rgba(var(--class-color-rgb, 255, 255, 255), 0.1) 0%, transparent 50%);
}

.war-row td {
    border-left: none;
}

.war-row td:first-child {
    border-left: none;
}

.col-warpoint {
    color: #fbbf24;
    font-weight: 600;
}

/* ==================== CHARACTER SECTION ==================== */
/* ==================== CHARACTER CLASSES ==================== */
.character-section {
    position: relative;
    padding: 110px 40px 60px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 20% 60%, rgba(236,27,27,0.10) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #080506 100%);
    border-top: 1px solid rgba(236,27,27,0.14);
    border-bottom: 1px solid rgba(236,27,27,0.14);
    overflow: hidden;
    min-height: 800px;
}

.character-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(236,27,27,0.06), transparent 40%),
        radial-gradient(circle at 20% 70%, rgba(236,27,27,0.05), transparent 40%);
}
.character-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    opacity: 0.55;
}

.character-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header block — offset to right on desktop to avoid character image */
.character-header {
    margin-left: 35%;
    padding-right: 40px;
    margin-bottom: 28px;
    text-align: center;
}

.character-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.character-title-icon {
    width: 34px;
    height: 34px;
    color: #ec1b1b;
    filter: drop-shadow(0 0 10px rgba(236,27,27,0.55));
    flex-shrink: 0;
}

.character-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 8px;
    text-shadow: 0 2px 24px rgba(236,27,27,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #d3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.character-bar {
    position: relative;
    flex: 0 0 100px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.character-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.character-bar::before,
.character-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.8);
}
.character-bar.left::before  { right: 0; }
.character-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.character-bar.right::before { left: 0; }
.character-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

.character-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Character Showcase */
.character-showcase {
    display: block;
    position: relative;
    min-height: 400px;
    margin-bottom: 20px;
}

.character-featured {
    position: absolute;
    left: 0;
    bottom: -320px;
    width: 530px;
    z-index: 2;
    pointer-events: none;
}

.character-featured img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 60px rgba(236, 27, 27, 0.5));
    transition: opacity 0.3s ease;
}

.character-info {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-left: 35%;
    padding-right: 40px;
}

.featured-name {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 22px;
    letter-spacing: 6px;
    text-shadow: 0 2px 28px rgba(236,27,27,0.35);
    background: linear-gradient(180deg, #ffffff 0%, #ffd9d9 55%, #ff6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 8px 12px;
}
.featured-name::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #ec1b1b 50%, transparent 100%);
    box-shadow: 0 0 8px rgba(236,27,27,0.6);
}

.featured-desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.98rem;
    line-height: 1.85;
    margin: 0 auto 22px;
    max-width: 520px;
    letter-spacing: 0.3px;
}

/* Stat Bars — angular premium */
.featured-stats-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 22px;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 60%),
        rgba(10,3,3,0.5);
    border: 1px solid rgba(236,27,27,0.22);
    border-radius: 2px;
    position: relative;
    box-shadow: inset 0 0 30px rgba(236,27,27,0.04);
}
/* Corner ticks on stats box */
.featured-stats-bars::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        14px 2px, 2px 14px,
        14px 2px, 2px 14px,
        14px 2px, 2px 14px,
        14px 2px, 2px 14px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.75;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    width: 38px;
    text-align: right;
    letter-spacing: 1.5px;
}

.stat-bar-track {
    flex: 1;
    height: 10px;
    background:
        linear-gradient(to right,
            rgba(236,27,27,0.08) 0%,
            rgba(236,27,27,0.04) 100%),
        rgba(0,0,0,0.5);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(236,27,27,0.15);
    position: relative;
}
/* Tick marks overlay on track */
.stat-bar-track::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,
        transparent 0%, transparent calc(10% - 1px),
        rgba(255,255,255,0.08) calc(10% - 1px), rgba(255,255,255,0.08) 10%,
        transparent 10%);
    background-size: 10% 100%;
    pointer-events: none;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.stat-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.stat-bar-fill.str-fill {
    background: linear-gradient(90deg, #8b0000 0%, #ec1b1b 60%, #ff6b6b 100%);
    box-shadow: 0 0 14px rgba(236,27,27,0.55), inset 0 0 0 1px rgba(255,100,100,0.35);
}

.stat-bar-fill.int-fill {
    background: linear-gradient(90deg, #4c1d95 0%, #7c3aed 60%, #a78bfa 100%);
    box-shadow: 0 0 14px rgba(124,58,237,0.55), inset 0 0 0 1px rgba(167,139,250,0.35);
}

.stat-bar-fill.dex-fill {
    background: linear-gradient(90deg, #065f46 0%, #059669 60%, #34d399 100%);
    box-shadow: 0 0 14px rgba(5,150,105,0.55), inset 0 0 0 1px rgba(52,211,153,0.35);
}

.stat-value {
    font-family: 'Cinzel', 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff7a7a;
    width: 46px;
    text-align: left;
    text-shadow: 0 0 8px rgba(236,27,27,0.3);
}

/* Character Selection Row — angular premium cards */
.character-selection {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 24px 0 14px;
    position: relative;
    z-index: 5;
    margin-top: 30px;
}

.char-select-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.35s ease;
    padding: 10px 5px 8px;
    border-radius: 2px;
    background: rgba(10,3,3,0.45);
    border: 1px solid rgba(236,27,27,0.22);
    width: 100px;
    height: 100px;
    overflow: hidden;
    isolation: isolate;
}
/* Corner L-ticks */
.char-select-item::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        12px 2px, 2px 12px,
        12px 2px, 2px 12px,
        12px 2px, 2px 12px,
        12px 2px, 2px 12px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-size 0.3s ease;
}

.char-select-item:hover {
    transform: translateY(-6px);
    border-color: rgba(236,27,27,0.55);
    background: rgba(236,27,27,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 0 18px rgba(236,27,27,0.18);
}
.char-select-item:hover::before {
    opacity: 0.9;
    background-size:
        16px 2px, 2px 16px,
        16px 2px, 2px 16px,
        16px 2px, 2px 16px,
        16px 2px, 2px 16px;
}

.char-select-item.active {
    border-color: #ec1b1b;
    background:
        linear-gradient(180deg, rgba(236,27,27,0.22) 0%, rgba(139,0,0,0.1) 100%);
    box-shadow:
        0 0 0 1px rgba(236,27,27,0.7),
        0 0 28px rgba(236,27,27,0.35),
        inset 0 0 30px rgba(236,27,27,0.1);
}
.char-select-item.active::before {
    opacity: 1;
    background-size:
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px;
}
.char-select-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ec1b1b;
    box-shadow: 0 0 10px #ec1b1b;
    z-index: 3;
}

.char-select-item.active .char-portrait img {
    filter: drop-shadow(0 0 12px rgba(236,27,27,0.55));
}

.char-portrait {
    width: 58px;
    height: 58px;
    overflow: hidden;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.char-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.35s ease, opacity 0.3s ease;
    opacity: 0.72;
}

.char-select-item:hover .char-portrait img {
    opacity: 1;
    transform: scale(1.08);
}
.char-select-item.active .char-portrait img {
    opacity: 1;
    transform: scale(1.04);
}

.char-label {
    font-family: 'Cinzel', serif;
    font-size: 0.56rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.char-select-item:hover .char-label {
    color: #fff;
}
.char-select-item.active .char-label {
    color: #ff7a7a;
    text-shadow: 0 0 10px rgba(236,27,27,0.55);
}

/* Character Section Responsive */
@media (max-width: 1200px) {
    .character-featured {
        width: 450px;
        bottom: -180px;
    }

    .character-header,
    .character-info {
        margin-left: 30%;
    }
    .character-bar { flex: 0 0 70px; }
}

@media (max-width: 1024px) {
    .character-section {
        min-height: 650px;
        padding: 90px 32px 50px;
    }

    .character-header {
        margin-left: 0;
        padding-right: 0;
    }
    .character-title { font-size: 30px; letter-spacing: 6px; }
    .character-bar { flex: 0 0 90px; }

    .character-subtitle {
        text-align: center;
        max-width: 100%;
    }

    .character-featured {
        width: 400px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -150px;
    }

    .character-info {
        text-align: center;
        margin-left: 0;
        padding-right: 0;
    }

    .featured-desc {
        margin: 0 auto 22px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .character-section {
        padding: 70px 16px 120px;
        min-height: 550px;
    }

    .character-header { margin-bottom: 24px; }
    .character-title { font-size: 22px; letter-spacing: 4px; }
    .character-title-icon { width: 26px; height: 26px; }
    .character-bar { flex: 0 0 40px; }
    .character-subtitle {
        font-size: 12.5px;
        padding: 0 8px;
    }

    .character-showcase {
        min-height: 300px;
    }

    .character-featured {
        width: 320px;
        bottom: -120px;
    }

    .featured-name {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .featured-desc {
        font-size: 0.85rem;
    }

    .featured-stats-bars {
        padding: 14px 16px;
        max-width: 100%;
    }

    .character-selection {
        gap: 6px;
        padding: 14px 12px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .character-selection::-webkit-scrollbar {
        display: none;
    }

    .char-select-item {
        width: 76px;
        height: 82px;
        padding: 6px 4px;
        flex-shrink: 0;
    }

    .char-portrait {
        width: 44px;
        height: 44px;
    }

    .char-label {
        font-size: 0.48rem;
        letter-spacing: 0.5px;
    }
}

/* ==================== BEGINNER GUIDE SECTION ==================== */
/* ==================== BEGINNER GUIDE ==================== */
.guide-section {
    position: relative;
    padding: 110px 40px 100px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #080506 100%);
    border-top: 1px solid rgba(236,27,27,0.14);
    border-bottom: 1px solid rgba(236,27,27,0.14);
    overflow: hidden;
}

.guide-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,27,27,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236,27,27,0.05), transparent 40%);
}
.guide-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    opacity: 0.55;
}

.guide-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
}

/* --- Header --- */
.guide-header {
    text-align: center;
    margin-bottom: 56px;
}

.guide-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.guide-title-icon {
    width: 34px;
    height: 34px;
    color: #ec1b1b;
    filter: drop-shadow(0 0 10px rgba(236,27,27,0.55));
    flex-shrink: 0;
}

.guide-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 24px rgba(236,27,27,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #d3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-bar {
    position: relative;
    flex: 0 0 120px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.guide-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.guide-bar::before,
.guide-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.8);
}
.guide-bar.left::before  { right: 0; }
.guide-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.guide-bar.right::before { left: 0; }
.guide-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

.guide-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    letter-spacing: 1px;
}

/* --- Tabs --- */
.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    position: relative;
    padding: 6px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: rgba(10,3,3,0.55);
    border: 1px solid rgba(236,27,27,0.22);
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(236,27,27,0.06);
}

.guide-tab {
    position: relative;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.65);
    padding: 12px 30px;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.25s ease, background 0.25s ease;
    border-radius: 2px;
}
.guide-tab:hover {
    color: #fff;
    background: rgba(236,27,27,0.08);
}
.guide-tab.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(236,27,27,0.85) 0%, rgba(155,10,10,0.9) 100%);
    box-shadow: 0 0 18px rgba(236,27,27,0.45), inset 0 0 0 1px rgba(236,27,27,0.9);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.guide-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #ec1b1b;
    filter: drop-shadow(0 2px 4px rgba(236,27,27,0.5));
}

/* --- Panels --- */
.guide-content {
    position: relative;
}

.guide-panel {
    display: none;
    animation: guideFadeIn 0.45s ease;
}

.guide-panel.active {
    display: block;
}

@keyframes guideFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Grid (Getting Started steps) --- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* --- Step Cards --- */
.guide-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 50%),
        rgba(10,3,3,0.4);
    border: 1px solid rgba(236,27,27,0.18);
    border-radius: 2px;
    padding: 32px 26px 28px;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.35s ease,
                background 0.3s ease;
    overflow: hidden;
    isolation: isolate;
}

/* Corner L-ticks */
.guide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-size 0.3s ease;
}

/* Diagonal shimmer stripe on hover */
.guide-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(236,27,27,0.08) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.guide-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236,27,27,0.55);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.65),
        0 0 30px rgba(236,27,27,0.2);
}
.guide-card:hover::before {
    opacity: 1;
    background-size:
        24px 2px, 2px 24px,
        24px 2px, 2px 24px,
        24px 2px, 2px 24px,
        24px 2px, 2px 24px;
}
.guide-card:hover::after {
    opacity: 1;
}

.guide-card > * {
    position: relative;
    z-index: 1;
}

/* Step number badge */
.guide-card-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,100,100,0.25) 0%, transparent 60%),
        linear-gradient(145deg, #ec1b1b 0%, #8b0000 100%);
    border: 1px solid rgba(255,80,80,0.55);
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(236,27,27,0.08),
        0 0 25px rgba(236,27,27,0.45),
        inset 0 1px 0 rgba(255,255,255,0.25);
    position: relative;
}
.guide-card-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px dashed rgba(236,27,27,0.4);
    border-radius: 50%;
    opacity: 0.6;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.guide-card:hover .guide-card-icon::before {
    opacity: 1;
    transform: rotate(90deg);
}

.step-number {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    line-height: 1;
}

.guide-card h4 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}
.guide-card h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(to right, #ec1b1b, transparent);
    transition: width 0.35s ease;
}
.guide-card:hover h4::after {
    width: 72px;
}

.guide-card p {
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

.guide-card p a {
    color: #ff6b6b;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,107,107,0.5);
    transition: color 0.25s ease, border-color 0.25s ease;
}
.guide-card p a:hover {
    color: #ec1b1b;
    border-bottom-color: #ec1b1b;
}

/* --- Tip Cards (if used) --- */
.tip-card {
    position: relative;
    padding-left: 80px;
}
.tip-number {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(236,27,27,0.85) 0%, rgba(139,0,0,0.85) 100%);
    border: 1px solid rgba(255,80,80,0.5);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(236,27,27,0.3);
}

/* --- Accordion --- */
.guide-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    position: relative;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.03) 0%, transparent 60%),
        rgba(10,3,3,0.4);
    border: 1px solid rgba(236,27,27,0.16);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

/* Left accent bar */
.accordion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ec1b1b 0%, transparent 100%);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.accordion-item.open {
    border-color: rgba(236,27,27,0.5);
    background:
        linear-gradient(135deg, rgba(236,27,27,0.06) 0%, transparent 60%),
        rgba(10,3,3,0.6);
    box-shadow: 0 4px 22px rgba(0,0,0,0.45);
}
.accordion-item.open::before {
    opacity: 1;
    transform: scaleY(1);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px 18px 32px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.9);
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    text-align: left;
    letter-spacing: 0.3px;
}
.accordion-header:hover {
    background: rgba(236,27,27,0.08);
    color: #fff;
}
.accordion-item.open .accordion-header {
    color: #fff;
    background: rgba(236,27,27,0.06);
}

.accordion-header span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Red dot before accordion title */
.accordion-header span:first-child::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(236,27,27,0.7);
    flex-shrink: 0;
}

.accordion-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    font-family: 'Prompt', sans-serif;
    color: #ec1b1b;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
    color: #fff;
    text-shadow: 0 0 10px rgba(236,27,27,0.8);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.35s ease;
    padding: 0 32px;
}

.accordion-item.open .accordion-content {
    max-height: 2000px;
    padding: 0 32px 20px;
    overflow-y: auto;
}

.accordion-content p {
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0 0 10px;
}

.accordion-content p strong {
    color: #ff7a7a;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 14px;
    display: grid;
    gap: 6px;
}

.accordion-content li {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.75;
    padding-left: 22px;
    position: relative;
}

.accordion-content li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 8px;
    height: 1px;
    background: #ec1b1b;
    box-shadow: 0 0 6px rgba(236,27,27,0.6);
}

.accordion-content li strong {
    color: #ff7a7a;
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .guide-section { padding: 90px 32px 80px; }
    .guide-title { font-size: 30px; letter-spacing: 6px; }
    .guide-bar { flex: 0 0 90px; }
}

@media (max-width: 768px) {
    .guide-section { padding: 70px 16px 60px; }
    .guide-header { margin-bottom: 36px; }
    .guide-title { font-size: 22px; letter-spacing: 4px; }
    .guide-title-icon { width: 26px; height: 26px; }
    .guide-bar { flex: 0 0 40px; }
    .guide-subtitle { font-size: 12.5px; letter-spacing: 0.5px; padding: 0 8px; }

    .guide-tabs {
        gap: 2px;
        padding: 4px;
        max-width: calc(100% - 8px);
    }
    .guide-tab {
        padding: 10px 14px;
        font-size: 12px;
        letter-spacing: 0.6px;
        flex: 1 1 auto;
    }

    .guide-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .guide-card { padding: 22px 18px; }
    .guide-card-icon { width: 52px; height: 52px; margin-bottom: 16px; }
    .step-number { font-size: 1.5rem; }
    .guide-card h4 { font-size: 1rem; }
    .guide-card p { font-size: 0.85rem; }

    .tip-card { padding-left: 70px; }
    .tip-number { font-size: 1rem; left: 16px; width: 42px; height: 42px; }

    .accordion-header {
        padding: 15px 18px 15px 22px;
        font-size: 0.92rem;
    }
    .accordion-content {
        padding: 0 22px;
    }
    .accordion-item.open .accordion-content {
        padding: 0 22px 16px;
    }
}

@media (max-width: 480px) {
    .guide-grid { grid-template-columns: 1fr; }
}

/* ==================== FOOTER ==================== */
/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    padding: 80px 40px 36px;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #060304 100%);
    border-top: 1px solid rgba(236,27,27,0.22);
    overflow: hidden;
}
/* Top red glow accent line */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ec1b1b 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(236,27,27,0.6);
}

.footer-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,27,27,0.05), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236,27,27,0.04), transparent 40%);
}
.footer-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 85%);
    opacity: 0.5;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Logo */
.footer-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 68px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.35s ease;
    filter: drop-shadow(0 0 18px rgba(236,27,27,0.35)) drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(0 0 24px rgba(236,27,27,0.55)) drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}

/* Ornamental divider (line + diamond + line) */
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 28px;
    max-width: 280px;
}
.footer-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(236,27,27,0.55) 100%);
}
.footer-divider-line:last-child {
    background: linear-gradient(90deg, rgba(236,27,27,0.55) 0%, transparent 100%);
}
.footer-divider-diamond {
    width: 8px;
    height: 8px;
    background: #ec1b1b;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.7);
    flex-shrink: 0;
}

/* Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 28px;
    position: relative;
    transition: color 0.25s ease;
}

/* Red diamond separator between links */
.footer-links a + a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #ec1b1b;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 6px rgba(236,27,27,0.6);
    opacity: 0.55;
}

/* Animated red underline on hover */
.footer-links a::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ec1b1b 50%, transparent 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 6px rgba(236,27,27,0.5);
}

.footer-links a:hover {
    color: #ff7a7a;
}
.footer-links a:hover::after {
    transform: scaleX(1);
}

/* Disclaimer — angular box with corner L-ticks */
.footer-disclaimer {
    position: relative;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.9;
    max-width: 780px;
    margin: 0 auto 20px;
    padding: 22px 32px;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.03) 0%, transparent 50%),
        rgba(10,3,3,0.35);
    border: 1px solid rgba(236,27,27,0.15);
    border-radius: 2px;
    letter-spacing: 0.3px;
}
/* Corner L-ticks on disclaimer */
.footer-disclaimer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        14px 2px, 2px 14px,
        14px 2px, 2px 14px,
        14px 2px, 2px 14px,
        14px 2px, 2px 14px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.7;
}

.footer-disclaimer strong {
    color: #ffd56b;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255,180,50,0.3);
}

.disclaimer-nc-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-family: 'Cinzel', 'Prompt', sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,213,107,0.7);
    background: rgba(255,180,50,0.06);
    border: 1px solid rgba(255,180,50,0.2);
    border-radius: 30px;
    padding: 4px 14px 4px 10px;
    margin-bottom: 14px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Copyright */
.footer-copyright {
    font-family: 'Cinzel', 'Prompt', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 20px;
}

.footer-copyright strong {
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 3px;
}

.footer-copyright-mark {
    color: #ec1b1b;
    font-family: 'Cinzel', serif;
    margin-right: 4px;
    font-size: 14px;
    text-shadow: 0 0 6px rgba(236,27,27,0.5);
}

/* ==================== RESPONSIVE ==================== */

/* Medium screens - smaller nav items */
@media (max-width: 1280px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nav-menu {
        gap: 4px;
    }
}

/* Switch to mobile menu earlier */
@media (max-width: 1100px) {
    .nav-container {
        padding: 0 20px;
        justify-content: flex-end;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        margin-top: 30px;
    }

    .title-line {
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {

    .navbar,
    .navbar.scrolled {
        display: none;
    }

    .hero-buttons {
        display: none;
    }

    .btn-hexagon {
        min-width: 250px;
        padding: 16px 40px;
    }

    .hero-subtitle {
        gap: 12px;
    }
    .hero-sub-text {
        font-size: 12px;
        letter-spacing: 2.5px;
    }
    .hero-sub-bar {
        flex: 0 0 50px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .ranking-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .ranking-controls {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nation-filter {
        width: 100%;
        justify-content: center;
    }

    .nation-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ranking-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rank-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    .war-class-filter {
        width: 100%;
        justify-content: center;
        gap: 4px;
        margin-top: 0;
    }

    .class-filter-btn {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 30px;
    }

    .ranking-table-wrapper {
        overflow-x: auto;
    }

    .ranking-table {
        min-width: 600px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-logo-img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .hero-logo-img {
        height: 100px;
    }

    .trophy-container {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .title-line {
        letter-spacing: 2px;
    }

    .hero-tagline {
        padding: 10px 20px;
        font-size: 13px;
        gap: 10px;
    }

    .hero-tagline::before {
        width: 8px;
        height: 8px;
    }

    .btn-hexagon {
        min-width: 220px;
        padding: 14px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .title-icon {
        width: 30px;
        height: 30px;
    }

    .nation-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nation-icon {
        font-size: 14px;
    }

    .ranking-table {
        min-width: 500px;
    }

    .rank-tab {
        padding: 8px 15px;
        font-size: 12px;
    }

    .footer-links {
        gap: 15px;
    }
}

/* ==================== RANKING AVATARS ==================== */
.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(236, 27, 27, 0.5);
    flex-shrink: 0;
    background: #1a1517;
    transition: all 0.3s ease;
}

.ranking-avatar:hover {
    border-color: #ec1b1b;
    box-shadow: 0 0 10px rgba(236, 27, 27, 0.4);
    transform: scale(1.1);
}

.player-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive avatar size */
@media (max-width: 768px) {
    .ranking-avatar {
        width: 28px;
        height: 28px;
    }

    .player-info {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ranking-avatar {
        width: 24px;
        height: 24px;
    }

    .player-info {
        gap: 6px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-logo {
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-subtitle {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-tagline {
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-buttons {
    animation-delay: 0.8s;
    opacity: 0;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1517;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff5252, #ec1b1b);
    border-radius: 5px;
    border: 2px solid #1a1517;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ec1b1b, #b91c1c);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ec1b1b #1a1517;
}

/* ==================== BRINGER SECTION ==================== */
/* ==================== STRONGEST PLAYERS ==================== */
.bringer-section {
    position: relative;
    padding: 110px 40px 100px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #080506 100%);
    border-top: 1px solid rgba(236,27,27,0.14);
    border-bottom: 1px solid rgba(236,27,27,0.14);
    overflow: hidden;
}

.bringer-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,27,27,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236,27,27,0.05), transparent 40%);
}
.bringer-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    opacity: 0.55;
}

.bringer-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Rules Box (premium angular) --- */
.bringer-rules {
    max-width: 860px;
    margin: 0 auto 44px;
}

.rules-box {
    position: relative;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.06) 0%, transparent 50%),
        rgba(10,3,3,0.55);
    border: 1px solid rgba(236,27,27,0.28);
    border-radius: 2px;
    padding: 26px 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4), inset 0 0 40px rgba(236,27,27,0.04);
}
/* Corner L-ticks */
.rules-box::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.85;
}

.rules-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,100,100,0.25) 0%, transparent 60%),
        linear-gradient(145deg, #ec1b1b 0%, #8b0000 100%);
    border: 1px solid rgba(255,80,80,0.55);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(236,27,27,0.08),
        0 0 22px rgba(236,27,27,0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
    position: relative;
}

.rules-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.rules-content {
    flex: 1;
}

.rules-content h4 {
    font-family: 'Cinzel', 'Prompt', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}
.rules-content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, #ec1b1b, transparent);
}

.rules-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}

.rules-content li {
    color: rgba(255,255,255,0.72);
    font-size: 0.92em;
    padding: 4px 0 4px 24px;
    position: relative;
    line-height: 1.7;
}

.rules-content li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.8em;
    width: 10px;
    height: 1px;
    background: #ec1b1b;
    box-shadow: 0 0 6px rgba(236,27,27,0.6);
}

.rules-content li strong {
    color: #ff7a7a;
    font-weight: 700;
}

/* --- Tabs (matching rank-tab container style) --- */
.bringer-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 44px;
    max-width: fit-content;
    padding: 6px;
    background: rgba(10,3,3,0.55);
    border: 1px solid rgba(236,27,27,0.22);
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(236,27,27,0.06);
    flex-wrap: wrap;
}

.bringer-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 2px;
    color: rgba(255,255,255,0.65);
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.bringer-tab:hover {
    color: #fff;
    background: rgba(236,27,27,0.08);
}

/* Storm Bringer (Procyon = red) active */
.bringer-tab[data-nation="procyon"].active {
    color: #fff;
    background: linear-gradient(180deg, rgba(236,27,27,0.85) 0%, rgba(155,10,10,0.9) 100%);
    box-shadow: 0 0 18px rgba(236,27,27,0.45), inset 0 0 0 1px rgba(236,27,27,0.9);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.bringer-tab[data-nation="procyon"].active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #ec1b1b;
    filter: drop-shadow(0 2px 4px rgba(236,27,27,0.5));
}

/* Luminous Bringer (Capella = blue) active */
.bringer-tab[data-nation="capella"].active {
    color: #fff;
    background: linear-gradient(180deg, rgba(59,130,246,0.85) 0%, rgba(29,78,216,0.9) 100%);
    box-shadow: 0 0 18px rgba(59,130,246,0.45), inset 0 0 0 1px rgba(59,130,246,0.9);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.bringer-tab[data-nation="capella"].active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #3b82f6;
    filter: drop-shadow(0 2px 4px rgba(59,130,246,0.5));
}

.nation-icon {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Real faction emblem IMAGES (Capella/Procyon/GM) are symmetric artwork and must
   stay upright — only the CSS diamond dots (.storm/.luminous) get rotated. */
img.nation-icon {
    transform: none;
    border-radius: 0;
}

.nation-icon.storm {
    background: linear-gradient(135deg, #ff6b6b, #dc2626);
    box-shadow: 0 0 8px rgba(236,27,27,0.6);
}

.nation-icon.luminous {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 0 8px rgba(59,130,246,0.6);
}

.nation-label {
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
}
.bringer-tab.active .nation-label {
    color: rgba(255,255,255,0.85);
}

/* Bringer Content */
.bringer-content {
    position: relative;
}

.bringer-panel {
    display: none;
}

.bringer-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bringer Carousel */
.bringer-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 64px;
    border-radius: 2px;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.12), rgba(139,0,0,0.18)),
        rgba(10,3,3,0.7);
    border: 1px solid rgba(236,27,27,0.45);
    color: #ec1b1b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: linear-gradient(180deg, #ec1b1b 0%, #8b0000 100%);
    color: #fff;
    border-color: #ec1b1b;
    box-shadow: 0 0 22px rgba(236,27,27,0.55), inset 0 0 0 1px rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 4px rgba(236,27,27,0.5));
}
.carousel-btn:hover svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }

/* Bringer Slider */
.bringer-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.bringer-slider::-webkit-scrollbar {
    display: none;
}

/* Bringer Card (premium angular) */
.bringer-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 55%),
        linear-gradient(180deg, rgba(18,10,11,0.95) 0%, rgba(10,5,6,0.98) 100%);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(236,27,27,0.22);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.4s ease,
                background 0.3s ease;
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: center;
    isolation: isolate;
}

/* Corner L-ticks overlay */
.bringer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.75;
    transition: opacity 0.3s ease, background-size 0.3s ease;
}

/* Diagonal shimmer on hover */
.bringer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(115deg, transparent 40%, rgba(236,27,27,0.08) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.bringer-card.has-data {
    border-color: rgba(236,27,27,0.4);
}

.bringer-card.has-data:hover {
    transform: translateY(-8px);
    border-color: #ec1b1b;
    box-shadow:
        0 20px 48px rgba(0,0,0,0.7),
        0 0 32px rgba(236,27,27,0.28);
}
.bringer-card.has-data:hover::before {
    opacity: 1;
    background-size:
        24px 2px, 2px 24px,
        24px 2px, 2px 24px,
        24px 2px, 2px 24px,
        24px 2px, 2px 24px;
}
.bringer-card.has-data:hover::after {
    opacity: 1;
}

.bringer-card.empty {
    opacity: 0.4;
    border-color: rgba(236,27,27,0.12);
}

.bringer-card.empty:hover {
    transform: translateY(-4px);
    opacity: 0.6;
}

/* Card Header (class banner) */
.bringer-card .card-header {
    padding: 14px 18px;
    background:
        linear-gradient(90deg,
            rgba(236,27,27,0.22) 0%,
            rgba(236,27,27,0.08) 55%,
            transparent 100%);
    border-bottom: 1px solid rgba(236,27,27,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.bringer-card .card-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, #ec1b1b 0%, transparent 60%);
    box-shadow: 0 0 8px rgba(236,27,27,0.5);
}

.bringer-card .class-icon {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(236,27,27,0.4);
    background: rgba(10,3,3,0.5);
    padding: 2px;
}

.bringer-card .class-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95em;
    font-weight: 700;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(236,27,27,0.4);
}

/* Card Body */
.bringer-card .card-body {
    padding: 22px 20px 20px;
    position: relative;
    z-index: 1;
}

.bringer-card .char-avatar {
    width: 72px;
    height: 72px;
    border-radius: 2px;
    border: 1px solid rgba(236,27,27,0.55);
    margin: 0 auto 16px;
    display: block;
    object-fit: cover;
    box-shadow:
        0 0 0 3px rgba(10,3,3,0.9),
        0 0 0 4px rgba(236,27,27,0.25),
        0 0 20px rgba(236,27,27,0.25);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.bringer-card.has-data:hover .char-avatar {
    box-shadow:
        0 0 0 3px rgba(10,3,3,0.9),
        0 0 0 4px rgba(236,27,27,0.55),
        0 0 28px rgba(236,27,27,0.5);
    transform: scale(1.04);
}

.bringer-card .char-name {
    font-family: 'Prompt', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 18px;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 10px rgba(236,27,27,0.3);
    position: relative;
    padding-bottom: 10px;
}
.bringer-card .char-name::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ec1b1b 50%, transparent 100%);
}

.bringer-card .char-name.empty-name {
    color: rgba(255,255,255,0.3);
}
.bringer-card .char-name.empty-name::after { opacity: 0.3; }

/* Card Stats */
.bringer-card .card-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bringer-card .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: rgba(10,3,3,0.5);
    border-radius: 2px;
    border-left: 2px solid rgba(236,27,27,0.18);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.bringer-card:hover .stat-item {
    border-left-color: rgba(236,27,27,0.35);
}

.bringer-card .stat-item.highlight {
    background:
        linear-gradient(90deg, rgba(236,27,27,0.18) 0%, rgba(236,27,27,0.04) 100%);
    border-left: 2px solid #ec1b1b;
    box-shadow: 0 0 14px rgba(236,27,27,0.12);
}

.bringer-card .stat-label {
    color: rgba(255,255,255,0.55);
    font-size: 0.8em;
    font-weight: 500;
    flex-shrink: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bringer-card .stat-value {
    color: rgba(255,255,255,0.95);
    font-size: 0.92em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    flex: 1;
    font-family: 'Prompt', sans-serif;
}

.bringer-card .stat-item.highlight .stat-value {
    color: #ff7a7a;
    font-size: 1.02em;
    font-weight: 800;
    font-family: 'Cinzel', 'Prompt', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(236,27,27,0.4);
}

/* Bringer Badge (top-right) */
.bringer-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(180deg, #ec1b1b 0%, #8b0000 100%);
    color: #fff;
    padding: 5px 12px 5px 14px;
    border-radius: 0 0 0 2px;
    font-size: 0.7em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 14px rgba(236,27,27,0.55);
    font-family: 'Cinzel', 'Prompt', sans-serif;
    z-index: 4;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

/* Loading State */
.bringer-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.bringer-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(236, 27, 27, 0.2);
    border-top-color: #ec1b1b;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.bringer-loading span {
    color: #94a3b8;
    font-size: 1em;
}

/* Bringer Footer */
.bringer-footer {
    text-align: center;
    margin-top: 40px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ec1b1b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 12px 24px;
    border: 2px solid rgba(236, 27, 27, 0.5);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: rgba(236, 27, 27, 0.1);
    border-color: #ec1b1b;
    transform: translateX(5px);
}

.view-all-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.view-all-link:hover svg {
    transform: translateX(5px);
}

/* Bringer Section Responsive */
@media (max-width: 768px) {
    .bringer-section {
        padding: 60px 15px;
    }

    .bringer-section .section-title {
        font-size: 1.8em;
    }

    .rules-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .rules-content li {
        text-align: left;
    }

    .bringer-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .bringer-tab {
        justify-content: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .bringer-card {
        width: 260px;
    }
}

/* ========================================
   BANNER 3D CAROUSEL SECTION
   ======================================== */
.banner-slideshow-section {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #0d0b0c 0%, #111015 50%, #0d0b0c 100%);
    padding: 50px 0 40px;
    overflow: hidden;
}

.banner-slideshow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 360px;
    perspective: 1200px;
}

/* Slides Container - 3D */
.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.banner-slide {
    position: absolute;
    width: 62%;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -31%;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.65) translateZ(-500px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    display: block;
    text-decoration: none;
    color: inherit;
    backface-visibility: hidden;
}

/* Center (Active) slide */
.banner-slide.active {
    opacity: 1;
    transform: translateZ(0) scale(1);
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 60px rgba(236, 27, 27, 0.08);
    border: 1px solid rgba(236, 27, 27, 0.15);
}

/* Hover on active slide (clickable link) */
a.banner-slide.active {
    cursor: pointer;
}

a.banner-slide.active:hover {
    transform: translateZ(0) scale(1.03);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(236, 27, 27, 0.2);
    border-color: rgba(236, 27, 27, 0.4);
    filter: brightness(1.08);
}

/* Left (Previous) slide */
.banner-slide.prev {
    opacity: 1;
    transform: translateX(-72%) translateZ(-220px) rotateY(18deg) scale(0.82);
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    filter: brightness(0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Right (Next) slide */
.banner-slide.next {
    opacity: 1;
    transform: translateX(72%) translateZ(-220px) rotateY(-18deg) scale(0.82);
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    filter: brightness(0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Hover on side slides */
.banner-slide.prev:hover,
.banner-slide.next:hover {
    filter: brightness(0.6);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay text on slide */
.banner-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.banner-slide-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-slide-desc {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Empty placeholder */
.banner-slide.placeholder-slide {
    opacity: 1;
    transform: translateZ(0) scale(1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1517 0%, #221c1f 50%, #1a1517 100%);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Navigation Arrows */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    padding: 0;
}

.banner-nav-btn:hover {
    opacity: 1;
    background: rgba(236, 27, 27, 0.7);
    border-color: rgba(236, 27, 27, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav-btn svg {
    width: 22px;
    height: 22px;
}

.banner-prev {
    left: 6px;
}

.banner-next {
    right: 6px;
}

/* Dot Indicators */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 5;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.banner-dot.active {
    background: #ec1b1b;
    box-shadow: 0 0 8px rgba(236, 27, 27, 0.6);
    width: 28px;
    border-radius: 5px;
}

/* Responsive - Tablet */
@media (max-width: 1100px) {
    .banner-slideshow-section {
        padding: 40px 0 30px;
    }

    .banner-slider {
        height: 300px;
    }

    .banner-slide {
        width: 65%;
        margin-left: -32.5%;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .banner-slideshow-section {
        padding: 30px 0 24px;
    }

    .banner-slider {
        height: 220px;
        perspective: 800px;
    }

    .banner-slide {
        width: 72%;
        margin-left: -36%;
        border-radius: 10px;
    }

    .banner-slide.prev {
        transform: translateX(-60%) translateZ(-150px) rotateY(12deg) scale(0.78);
    }

    .banner-slide.next {
        transform: translateX(60%) translateZ(-150px) rotateY(-12deg) scale(0.78);
    }

    .banner-nav-btn {
        width: 36px;
        height: 36px;
    }

    .banner-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .banner-slide-overlay {
        padding: 16px 16px 12px;
    }

    .banner-slide-title {
        font-size: 1em;
    }

    .banner-slide-desc {
        font-size: 0.8em;
    }

    .banner-dots {
        margin-top: 14px;
        gap: 8px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .banner-dot.active {
        width: 22px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .banner-slideshow-section {
        padding: 24px 0 20px;
    }

    .banner-slider {
        height: 170px;
    }

    .banner-slide {
        width: 80%;
        margin-left: -40%;
        border-radius: 8px;
    }

    .banner-slide.prev,
    .banner-slide.next {
        opacity: 0.5;
    }

    .banner-nav-btn {
        width: 30px;
        height: 30px;
    }

    .banner-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .banner-slide-overlay {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════
   Preview Video Section — redesigned
═══════════════════════════════════════════════════ */
.preview-video-section {
    background: linear-gradient(180deg, #110909 0%, #0d0b0c 40%, #110909 100%);
    padding: 90px 40px 100px;
    border-top: 1px solid rgba(236,27,27,0.2);
    position: relative;
    overflow: hidden;
}

/* subtle radial spotlight */
.preview-video-section::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse at top, rgba(236,27,27,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* decorative side lines */
.pvs-bg-decoration { pointer-events: none; }
.pvs-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(236,27,27,0.15), transparent);
}
.pvs-line-left  { left: 60px; }
.pvs-line-right { right: 60px; }

.preview-video-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.pvs-header {
    text-align: center;
    margin-bottom: 48px;
}

.pvs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(236,27,27,0.12);
    border: 1px solid rgba(236,27,27,0.35);
    color: #f87171;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pvs-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.pvs-title-icon {
    width: 34px;
    height: 34px;
    color: #ec1b1b;
    filter: drop-shadow(0 0 10px rgba(236,27,27,0.55));
    flex-shrink: 0;
}

.pvs-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 24px rgba(236,27,27,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #d3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pvs-bar {
    position: relative;
    flex: 0 0 120px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.pvs-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.pvs-bar::before,
.pvs-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.8);
}
.pvs-bar.left::before  { right: 0; }
.pvs-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.pvs-bar.right::before { left: 0; }
.pvs-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

.pvs-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
    letter-spacing: 1px;
}
.pvs-subtitle strong {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* ── Video frame ── */
.pvs-frame-outer {
    position: relative;
    padding: 3px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(236,27,27,0.5), rgba(80,20,20,0.3), rgba(236,27,27,0.5));
}

/* corner accents */
.pvs-corner {
    position: absolute;
    width: 18px; height: 18px;
    z-index: 2;
}
.pvs-corner-tl { top: -1px;  left: -1px;  border-top: 2px solid #ec1b1b; border-left: 2px solid #ec1b1b; border-radius: 4px 0 0 0; }
.pvs-corner-tr { top: -1px;  right: -1px; border-top: 2px solid #ec1b1b; border-right: 2px solid #ec1b1b; border-radius: 0 4px 0 0; }
.pvs-corner-bl { bottom: -1px; left: -1px;  border-bottom: 2px solid #ec1b1b; border-left: 2px solid #ec1b1b; border-radius: 0 0 0 4px; }
.pvs-corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid #ec1b1b; border-right: 2px solid #ec1b1b; border-radius: 0 0 4px 0; }

.pvs-frame-inner {
    border-radius: 3px;
    overflow: hidden;
    background: #000;
}

.preview-video-player {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/* ── Custom Player ── */
.pvs-player {
    position: relative;
    background: #000;
    user-select: none;
}
.pvs-player:hover .pvs-controls,
.pvs-player.paused .pvs-controls {
    opacity: 1;
    transform: translateY(0);
}

/* overlay (big play button) */
.pvs-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: opacity .25s;
    z-index: 3;
}
.pvs-overlay.hidden { opacity: 0; pointer-events: none; }

.pvs-big-play {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: rgba(236,27,27,0.75);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .2s, background .2s, box-shadow .2s;
    box-shadow: 0 0 0 0 rgba(236,27,27,0.4);
}
.pvs-big-play:hover {
    transform: scale(1.1);
    background: rgba(236,27,27,0.95);
    box-shadow: 0 0 30px rgba(236,27,27,0.5);
}
.pvs-big-play svg { width: 28px; height: 28px; margin-left: 4px; }

/* controls bar */
.pvs-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 32px 14px 10px;
    z-index: 4;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}

.pvs-progress-wrap {
    padding: 6px 0;
    cursor: pointer;
}
.pvs-progress-bar {
    position: relative;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    transition: height .15s;
}
.pvs-progress-wrap:hover .pvs-progress-bar { height: 5px; }
.pvs-progress-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: #ec1b1b;
    border-radius: 3px;
    width: 0%;
}
.pvs-progress-thumb {
    position: absolute;
    top: 50%; right: -6px;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(236,27,27,0.6);
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
.pvs-progress-wrap:hover .pvs-progress-thumb { opacity: 1; }

.pvs-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.pvs-btn-left, .pvs-btn-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pvs-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, background .15s;
}
.pvs-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.pvs-btn svg { width: 18px; height: 18px; }

/* volume */
.pvs-volume-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}
.pvs-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    outline: none;
    overflow: hidden;
    transition: width .2s;
    cursor: pointer;
}
.pvs-volume-wrap:hover .pvs-vol-slider { width: 60px; }
.pvs-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: -60px 0 0 56px #ec1b1b;
}

.pvs-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
    white-space: nowrap;
}

/* fullscreen override */
.pvs-player:fullscreen .pvs-controls,
.pvs-player:-webkit-full-screen .pvs-controls {
    opacity: 1;
    transform: translateY(0);
}

.pvs-glow {
    position: absolute;
    bottom: -50px; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 100px;
    background: radial-gradient(ellipse, rgba(236,27,27,0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Feature tags ── */
.pvs-chapter-label {
    text-align: center;
    margin: 24px 0 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.pvs-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pvs-chapter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s, transform .15s;
    padding: 0;
}
.pvs-chapter-btn:hover {
    border-color: rgba(236,27,27,0.5);
    background: rgba(236,27,27,0.08);
    transform: translateY(-2px);
}
.pvs-chapter-btn.active {
    border-color: #ec1b1b;
    background: rgba(236,27,27,0.15);
}
.pvs-chapter-time {
    background: rgba(236,27,27,0.2);
    color: #f87171;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    font-variant-numeric: tabular-nums;
    border-right: 1px solid rgba(236,27,27,0.2);
    white-space: nowrap;
    font-family: monospace;
}
.pvs-chapter-btn.active .pvs-chapter-time {
    background: rgba(236,27,27,0.4);
    color: #fff;
}
.pvs-chapter-name {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
}
.pvs-chapter-btn:hover .pvs-chapter-name,
.pvs-chapter-btn.active .pvs-chapter-name {
    color: #fff;
}

/* ── Video Selector Tabs ── */
.pvs-video-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 0;
}
.pvs-video-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.pvs-video-tab:hover {
    border-color: rgba(236,27,27,0.4);
    background: rgba(236,27,27,0.06);
    color: rgba(255,255,255,0.85);
    transform: translateY(-2px);
}
.pvs-video-tab.active {
    border-color: #ec1b1b;
    background: rgba(236,27,27,0.12);
    color: #fff;
}
.pvs-tab-ep {
    font-size: 11px;
    font-weight: 700;
    background: rgba(236,27,27,0.2);
    color: #f87171;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: monospace;
    white-space: nowrap;
}
.pvs-video-tab.active .pvs-tab-ep {
    background: rgba(236,27,27,0.45);
    color: #fff;
}
.pvs-tab-name {
    font-size: 13px;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .preview-video-section { padding: 60px 24px 70px; }
    .pvs-line { display: none; }
    .pvs-video-tab { padding: 7px 14px; }
    .pvs-tab-name { font-size: 12px; }
    .pvs-title { font-size: 26px; letter-spacing: 5px; }
    .pvs-title-icon { width: 28px; height: 28px; }
    .pvs-bar { flex: 0 0 60px; }
}
@media (max-width: 480px) {
    .preview-video-section { padding: 40px 16px 50px; }
    .pvs-title { font-size: 20px; letter-spacing: 3px; }
    .pvs-title-icon { width: 22px; height: 22px; }
    .pvs-bar { flex: 0 0 30px; }
    .pvs-title-row { gap: 10px; }
    .pvs-frame-outer { border-radius: 4px; }
    .pvs-frame-inner { border-radius: 2px; }
}

/* ═══════════════════════════════════════════════════
   Dev Team Credits Section
═══════════════════════════════════════════════════ */
/* ==================== DEV TEAM ==================== */
.team-section {
    position: relative;
    padding: 110px 40px 100px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236,27,27,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236,27,27,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #080506 0%, #0b0708 50%, #080506 100%);
    border-top: 1px solid rgba(236,27,27,0.14);
    border-bottom: 1px solid rgba(236,27,27,0.14);
    overflow: hidden;
}

.team-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,27,27,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236,27,27,0.05), transparent 40%);
}
.team-bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(236,27,27,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236,27,27,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
    opacity: 0.55;
}

.team-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

/* Header */
.team-header {
    margin-bottom: 56px;
}

.team-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.team-title-icon {
    width: 34px;
    height: 34px;
    color: #ec1b1b;
    filter: drop-shadow(0 0 10px rgba(236,27,27,0.55));
    flex-shrink: 0;
}

.team-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 24px rgba(236,27,27,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #d3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-bar {
    position: relative;
    flex: 0 0 120px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.team-bar.right {
    background: linear-gradient(to left, transparent 0%, rgba(236,27,27,0.9) 50%, transparent 100%);
}
.team-bar::before,
.team-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(236,27,27,0.8);
}
.team-bar.left::before  { right: 0; }
.team-bar.left::after   { left: 0; opacity: 0.4; width: 3px; height: 3px; }
.team-bar.right::before { left: 0; }
.team-bar.right::after  { right: 0; opacity: 0.4; width: 3px; height: 3px; }

.team-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
    margin: 0;
}

/* Carousel (same pattern as bringer-carousel) */
.team-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    /* pad just enough for 3 cards × 290 + 2 × 24 gaps + 2 arrows × 44 + 2 × 15 gaps = ~1036px */
    max-width: 1040px;
    margin: 0 auto;
}

.team-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    justify-content: center;
}
.team-slider::-webkit-scrollbar { display: none; }

/* Card — angular premium (slider item) */
.team-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(236,27,27,0.04) 0%, transparent 55%),
        linear-gradient(180deg, rgba(14,8,9,0.9) 0%, rgba(10,5,6,0.95) 100%);
    border: 1px solid rgba(236,27,27,0.22);
    border-radius: 2px;
    padding: 38px 26px 28px;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.35s ease,
                background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0;
    width: 290px;
    scroll-snap-align: center;
}

/* Corner L-ticks */
.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b),
        linear-gradient(#ec1b1b, #ec1b1b), linear-gradient(#ec1b1b, #ec1b1b);
    background-repeat: no-repeat;
    background-size:
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-size 0.3s ease;
}

/* Diagonal shimmer on hover */
.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(236,27,27,0.08) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236,27,27,0.55);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.6),
        0 0 32px rgba(236,27,27,0.22);
}
.team-card:hover::before {
    opacity: 1;
    background-size:
        24px 2px, 2px 24px,
        24px 2px, 2px 24px,
        24px 2px, 2px 24px,
        24px 2px, 2px 24px;
}
.team-card:hover::after {
    opacity: 1;
}

.team-card > * {
    position: relative;
    z-index: 2;
}

/* Avatar — angular with red frame */
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(236,27,27,0.15), rgba(236,27,27,0.05));
    border: 1px solid rgba(236,27,27,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: rgba(236,27,27,0.7);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 3px rgba(10,3,3,0.9),
        0 0 0 4px rgba(236,27,27,0.25),
        0 0 22px rgba(236,27,27,0.25);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.team-card:hover .team-avatar {
    transform: scale(1.04);
    box-shadow:
        0 0 0 3px rgba(10,3,3,0.9),
        0 0 0 4px rgba(236,27,27,0.55),
        0 0 30px rgba(236,27,27,0.5);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.team-avatar-anon {
    background: rgba(255,255,255,0.06);
}
.team-avatar-anon svg {
    width: 70%;
    height: 70%;
}

/* Name */
.team-name {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin: 0 0 10px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #ffd9d9 55%, #ff6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 10px;
}
.team-name::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #ec1b1b 50%, transparent 100%);
    box-shadow: 0 0 6px rgba(236,27,27,0.6);
}

/* Meta (country/age) */
.team-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    margin: 0 0 14px;
    text-transform: uppercase;
    font-weight: 500;
}
.team-meta span {
    display: inline-block;
}
.team-meta span + span::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #ec1b1b;
    transform: rotate(45deg);
    margin: 0 10px 2px;
    box-shadow: 0 0 4px rgba(236,27,27,0.6);
    vertical-align: middle;
}

/* Tags — angular */
.team-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 18px;
}
.team-tag {
    font-family: 'Cinzel', 'Prompt', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff7a7a;
    background:
        linear-gradient(180deg, rgba(236,27,27,0.22) 0%, rgba(139,0,0,0.15) 100%);
    border: 1px solid rgba(236,27,27,0.55);
    border-radius: 2px;
    padding: 5px 14px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(236,27,27,0.15), inset 0 0 0 1px rgba(236,27,27,0.1);
    text-shadow: 0 0 8px rgba(236,27,27,0.3);
}

/* Admin/GM tag — amber variant */
.team-tag-gm {
    color: #ffd56b;
    background:
        linear-gradient(180deg, rgba(255,180,50,0.22) 0%, rgba(180,120,20,0.15) 100%);
    border-color: rgba(255,180,50,0.55);
    box-shadow: 0 0 10px rgba(255,180,50,0.15), inset 0 0 0 1px rgba(255,180,50,0.1);
    text-shadow: 0 0 8px rgba(255,180,50,0.3);
}

/* Divider */
.team-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #ec1b1b 50%, transparent 100%);
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 0 8px rgba(236,27,27,0.45);
}
.team-divider::before,
.team-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #ec1b1b;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 6px rgba(236,27,27,0.7);
}
.team-divider::before { left: -2px; }
.team-divider::after  { right: -2px; }

/* Description */
.team-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    text-align: center;
    flex: 1;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-section { padding: 90px 32px 80px; }
    .team-title { font-size: 30px; letter-spacing: 6px; }
    .team-bar { flex: 0 0 90px; }
    .team-carousel { gap: 12px; }
}

@media (max-width: 768px) {
    .team-section { padding: 70px 16px 60px; }
    .team-header { margin-bottom: 40px; }
    .team-title { font-size: 22px; letter-spacing: 4px; }
    .team-title-icon { width: 26px; height: 26px; }
    .team-bar { flex: 0 0 40px; }
    .team-subtitle { font-size: 12.5px; }

    .team-carousel { gap: 8px; }
    .team-slider {
        gap: 16px;
        padding: 6px 4px 18px;
        justify-content: flex-start;
    }
    .team-card {
        width: 72vw;
        max-width: 280px;
        padding: 32px 22px 24px;
    }
    .team-avatar { width: 88px; height: 88px; }
    .team-name { font-size: 17px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .team-section { padding: 58px 12px 56px; }
    .team-card { width: 82vw; }
}