﻿/* =================================================
   ROSE Online BR â€” Modern theme
   ================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-0: #06060a;
    --bg-1: #0b0c14;
    --bg-2: #11131d;
    --bg-3: #181a26;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f3f4f8;
    --text-dim: #b5b7c4;
    --text-mute: #7a7d8c;

    --rose: #1e90ff;
    --rose-2: #5cb3ff;
    --rose-deep: #0b4d8c;
    --gold: #5ce1ff;
    --gold-2: #38b6ff;
    --cyan: #5ce1ff;
    --violet: #4a7dff;

    --grad-primary: linear-gradient(135deg, #0b4d8c 0%, #1e90ff 50%, #5ce1ff 100%);
    --grad-soft: linear-gradient(135deg, rgba(30,144,255,0.18), rgba(92,225,255,0.12));
    --grad-text: linear-gradient(135deg, #5cb3ff 0%, #5ce1ff 100%);

    --shadow-glow: 0 20px 60px -20px rgba(30, 144, 255, 0.5);
    --shadow-card: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --font-display: 'Cinzel', 'Inter', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container: 1320px;
    --header-h: 78px;
    --announce-h: 38px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============= ANNOUNCEMENT BAR ============= */
.announce-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--announce-h);
    background: linear-gradient(90deg, #06121f, #0a1e3a, #06121f);
    border-bottom: 1px solid rgba(30, 144, 255, 0.25);
    z-index: 1100;
    overflow: hidden;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.announce-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.15), transparent);
    animation: announce-shimmer 6s linear infinite;
}
@keyframes announce-shimmer { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }

.announce-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    color: var(--text-dim);
}
.announce-text strong { color: var(--gold); font-weight: 600; }
.announce-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.6);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.6); }
    100% { box-shadow: 0 0 0 12px rgba(30, 144, 255, 0); }
}
.announce-link {
    color: var(--rose-2);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.announce-link:hover { color: var(--gold); }
.announce-link i { transition: transform 0.2s; }
.announce-link:hover i { transform: translateX(3px); }

/* ============= HEADER ============= */
.site-header {
    position: fixed;
    top: var(--announce-h);
    left: 0; right: 0;
    height: var(--header-h);
    background: rgba(11, 12, 20, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    background: rgba(6, 6, 10, 0.92);
    border-bottom-color: var(--border-strong);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand { flex-shrink: 0; }
.brand-logo {
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(30, 144, 255, 0.3));
    transition: transform 0.3s;
}
.brand:hover .brand-logo { transform: scale(1.05); }

.primary-nav { flex: 1; display: none; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-list > li > a,
.nav-list > li > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.2s, background 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover { color: var(--text); background: var(--surface); }
.nav-btn i {
    font-size: 9px;
    opacity: 0.6;
    transition: transform 0.3s;
}
.nav-list > li.open .nav-btn i,
.nav-list > li:hover .nav-btn i { transform: rotate(180deg); }

/* MEGA PANEL */
.has-mega { position: static; }
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11, 12, 20, 0.98);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    pointer-events: none;
}
.mega-panel.narrow {
    left: 50%;
    right: auto;
    width: 600px;
    transform: translate(-50%, -12px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.has-mega.open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.has-mega.open .mega-panel.narrow { transform: translate(-50%, 0); }

.mega-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}
.mega-grid-narrow { grid-template-columns: 1fr 1fr; max-width: 100%; padding: 28px 32px; }

.mega-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rose-2);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.mega-col a {
    display: block;
    padding: 8px 0;
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}
.mega-col a:hover { color: var(--gold); transform: translateX(4px); }

.mega-feature {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000;
}
.mega-feature img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.mega-feature::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,0.95) 0%, transparent 60%);
}
.mega-feature-tag, .mega-feature h5 {
    position: relative;
    z-index: 2;
}
.mega-feature-tag {
    display: inline-block;
    margin: 14px 14px 0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(30, 144, 255, 0.2);
    border: 1px solid var(--rose);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--rose-2);
}
.mega-feature h5 {
    position: absolute;
    left: 14px; right: 14px; bottom: 14px;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.3;
    color: var(--text);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--gold); color: var(--gold); }

.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--grad-primary);
    color: #0a0a14;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px -10px rgba(30, 144, 255, 0.6);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
}
.btn-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #5cb3ff, #5ce1ff, #1e90ff);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-cta span { position: relative; z-index: 1; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 15px 40px -10px rgba(30, 144, 255, 0.8); }
.btn-cta:hover::before { opacity: 1; }

/* MOBILE MENU */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.menu-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    margin: 0 auto;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
    position: fixed;
    top: calc(var(--announce-h) + var(--header-h));
    left: 0; right: 0;
    background: rgba(6, 6, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 999;
    max-height: calc(100vh - var(--announce-h) - var(--header-h));
    overflow-y: auto;
}
.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-drawer a {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.mobile-drawer a:hover { background: var(--surface); }
.drawer-ghost { border: 1px solid var(--border-strong); text-align: center; margin-top: 12px; }
.drawer-cta {
    background: var(--grad-primary);
    color: #0a0a14 !important;
    text-align: center;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============= HERO ============= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    margin-top: calc(var(--announce-h) + var(--header-h));
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(6, 6, 10, 0.35) 0%, rgba(6, 6, 10, 0.7) 70%, rgba(6, 6, 10, 0.95) 100%),
        linear-gradient(to bottom, rgba(6, 6, 10, 0.65) 0%, rgba(6, 6, 10, 0.35) 25%, rgba(6, 6, 10, 0.35) 60%, rgba(6, 6, 10, 0.95) 100%);
    pointer-events: none;
}
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    gap: 20px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    animation: fadeUp 0.8s ease-out;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 8px var(--rose);
    animation: pulse 1.6s ease-in-out infinite;
}

.hero-logo {
    width: min(380px, 70vw);
    filter: drop-shadow(0 12px 40px rgba(30, 144, 255, 0.5));
    animation: fadeUp 0.9s 0.1s ease-out backwards;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: 2px;
    margin: 0;
    animation: fadeUp 1s 0.2s ease-out backwards;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 6px 24px rgba(0, 0, 0, 0.7),
        0 0 1px rgba(0, 0, 0, 0.9);
}
.hero-title .line { display: block; }
.hero-title .accent {
    color: inherit;
}

.hero-sub {
    max-width: 580px;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.65;
    color: var(--text-dim);
    animation: fadeUp 1s 0.3s ease-out backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
    animation: fadeUp 1s 0.4s ease-out backwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Primary button */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--grad-primary);
    color: #0a0a14;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(30, 144, 255, 0.6);
    transition: transform 0.25s, box-shadow 0.3s;
    isolation: isolate;
}
.btn-primary i, .btn-primary span:not(.btn-primary-glow) { position: relative; z-index: 2; }
.btn-primary-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #5cb3ff, #5ce1ff, #1e90ff, #5cb3ff);
    background-size: 200% 200%;
    border-radius: var(--radius-sm);
    z-index: 0;
    animation: glowShift 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--grad-primary);
    border-radius: calc(var(--radius-sm) - 1px);
    z-index: 1;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 25px 50px -10px rgba(30, 144, 255, 0.8); }
.btn-primary:hover .btn-primary-glow { opacity: 1; }
.btn-primary.small { padding: 11px 22px; font-size: 12px; }
.btn-primary.big { padding: 20px 40px; font-size: 16px; }
@keyframes glowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Secondary button */
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rose-2);
    transition: color 0.2s, transform 0.2s;
}
.btn-link.light { color: var(--gold); }
.btn-link:hover { color: var(--gold); }
.btn-link i { transition: transform 0.2s; }
.btn-link:hover i { transform: translateX(4px); }

/* HERO STATS */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 40px;
    padding: 24px 36px;
    background: rgba(11, 12, 20, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: fadeUp 1s 0.5s ease-out backwards;
}
.stat { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-mute);
    margin-top: 6px;
    font-weight: 600;
}

.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-strong);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-cue span {
    width: 3px;
    height: 8px;
    background: var(--rose-2);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ============= STATUS BAND ============= */
.status-band {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: relative;
    z-index: 5;
}
.status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}
.status-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}
.status-item small {
    display: block;
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 2px;
}
.led {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.led.live { background: #28d77a; box-shadow: 0 0 12px #28d77a; }
.led.live::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #28d77a;
    animation: ledPulse 1.8s ease-out infinite;
}
.led.warn { background: #f5b73a; box-shadow: 0 0 12px #f5b73a; }
@keyframes ledPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.status-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.2s;
}
.status-link:hover { color: var(--gold); border-color: var(--gold); }

/* ============= SECTION HEAD ============= */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.section-head.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-2);
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}
.kicker::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 20px; height: 1px;
    background: var(--rose-2);
    transform: translateY(-50%);
}
.kicker.light { color: var(--gold); }
.kicker.light::before { background: var(--gold); }
.section-head.center .kicker { padding: 0; }
.section-head.center .kicker::before { display: none; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.1;
    color: var(--text);
}
.section-title .grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-lede {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-top: 14px;
}

/* ============= NEWS ============= */
.news {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at top, rgba(30, 144, 255, 0.06), transparent 50%),
        var(--bg-0);
    position: relative;
}

.news-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.news-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.news-tabs .tab {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-mute);
    border-radius: var(--radius-pill);
    transition: all 0.25s;
}
.news-tabs .tab:hover { color: var(--text); }
.news-tabs .tab.active {
    background: var(--grad-primary);
    color: #0a0a14;
    box-shadow: 0 8px 20px -8px rgba(30, 144, 255, 0.6);
}

/* ===== Carousel ===== */
.news-carousel {
    position: relative;
    margin-top: 8px;
    padding: 0 64px;
}

/* Side arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(11, 12, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 5;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.carousel-arrow:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: #0a0a14;
    box-shadow: 0 15px 40px -8px rgba(30, 144, 255, 0.6);
}
.carousel-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.carousel-arrow.next:hover { transform: translateY(-50%) translateX(3px); }

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(11, 12, 20, 0.6);
    color: var(--text-mute);
}
.carousel-arrow.prev:disabled:hover { transform: translateY(-50%); background: rgba(11, 12, 20, 0.6); color: var(--text-mute); }
.carousel-arrow.next:disabled:hover { transform: translateY(-50%); background: rgba(11, 12, 20, 0.6); color: var(--text-mute); }
.carousel-progress {
    height: 2px;
    background: var(--border);
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.carousel-progress::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--grad-primary);
    border-radius: var(--radius-pill);
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.6);
}

.carousel-viewport {
    overflow: hidden;
    margin: 0 -8px;
    padding: 4px 8px 12px;
}
.carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carousel-track .news-card,
.carousel-track .news-card.feature {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.news-card {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--rose);
    box-shadow: 0 30px 60px -20px rgba(30, 144, 255, 0.4), var(--shadow-card);
}
.news-card a { display: flex; flex-direction: column; height: 100%; }
.news-card .news-media { aspect-ratio: 16 / 10; }
.news-card .news-body { padding: 22px 24px 24px; }
.news-card h3 { font-size: 1.15rem; }

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.carousel-dots button {
    width: 28px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--border);
    transition: all 0.3s;
    cursor: pointer;
}
.carousel-dots button.active {
    background: var(--grad-primary);
    width: 48px;
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.5);
}
.carousel-dots button:hover:not(.active) { background: var(--border-strong); }

/* Hidden state (filter) */
.news-card.hidden-card { display: none !important; }

/* Grabbing cursor */
.carousel-track.dragging {
    transition: none;
    cursor: grabbing;
}

.news-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}
.news-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.news-card:hover .news-media img { transform: scale(1.08); }
.news-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 12, 20, 0.4), transparent 50%);
}

.news-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(8px);
}
.news-badge.patch { background: rgba(30, 144, 255, 0.85); color: #fff; }
.news-badge.event { background: rgba(92, 225, 255, 0.9); color: #1a1106; }
.news-badge.guide { background: rgba(92, 225, 255, 0.85); color: #002a36; }

.news-body { padding: 20px 22px 22px; }
.news-meta {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--text-mute);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.news-meta i { margin-right: 4px; }
.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.news-card:hover h3 { color: var(--gold); }
.news-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.news-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose-2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: gap 0.2s, color 0.2s;
}
.news-card:hover .news-cta { color: var(--gold); gap: 10px; }

.news-card.hidden { display: none; }

/* ============= CLASSES ============= */
.classes {
    position: relative;
    padding: 120px 0;
    background: var(--bg-1);
    overflow: hidden;
    isolation: isolate;
}
.classes-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(30, 144, 255, 0.12), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(92, 225, 255, 0.08), transparent 50%);
}
.classes .container { position: relative; z-index: 1; }

.class-switcher {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "stage info"
        "tabs tabs";
    gap: 60px 70px;
    margin-top: 40px;
    align-items: center;
}

/* ===== Class Showcase Card (podium-style) ===== */
.class-showcase {
    grid-area: stage;
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 26px 26px 22px;
    background:
        radial-gradient(ellipse at top, rgba(92, 225, 255, 0.10), transparent 50%),
        linear-gradient(180deg, #0d0e16 0%, #06060a 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow:
        0 40px 100px -30px rgba(92, 225, 255, 0.35),
        0 25px 70px -25px rgba(30, 144, 255, 0.25),
        inset 0 1px 0 rgba(92, 225, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    isolation: isolate;
}

/* Corner gold ornaments */
.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 6;
}
.corner.tl { top: 8px; left: 8px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); border-top-left-radius: var(--radius-sm); }
.corner.tr { top: 8px; right: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); border-top-right-radius: var(--radius-sm); }
.corner.bl { bottom: 8px; left: 8px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); border-bottom-left-radius: var(--radius-sm); }
.corner.br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); border-bottom-right-radius: var(--radius-sm); }

/* Top tag */
.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(11, 12, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
    z-index: 5;
    transition: all 0.3s;
}
.tag-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: tagPulse 1.8s ease-in-out infinite;
}
@keyframes tagPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.showcase-tag.two { border-color: var(--rose); color: var(--rose-2); }
.showcase-tag.two .tag-dot { background: var(--rose); box-shadow: 0 0 8px var(--rose); }
.showcase-tag.three { border-color: var(--cyan); color: var(--cyan); }
.showcase-tag.three .tag-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* Character zone */
.showcase-char {
    position: relative;
    aspect-ratio: 5 / 4;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(92, 225, 255, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 30%, rgba(30, 144, 255, 0.12) 0%, transparent 65%),
        #07070d;
    isolation: isolate;
}

/* Ambient glow behind character */
.char-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(92, 225, 255, 0.22), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(255, 138, 0, 0.25), transparent 50%);
    animation: glowPulse 5s ease-in-out infinite;
    z-index: 1;
}
.char-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(92, 225, 255, 0.18), transparent 50%);
    mix-blend-mode: screen;
}
.char-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 100%, rgba(30, 144, 255, 0.15), transparent 50%);
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.class-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 3;
    filter:
        drop-shadow(0 20px 40px rgba(92, 225, 255, 0.3))
        contrast(1.05) saturate(1.05);
    animation: charFloat 6s ease-in-out infinite;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s;
}
.class-hero[data-fit="contain"] {
    object-fit: contain;
    object-position: center bottom;
    padding: 6% 6% 10%;
}
@keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.class-hero.swapping {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(4px) drop-shadow(0 20px 40px rgba(92, 225, 255, 0.2));
}

/* PODIUM â€” the pedestal the character stands on */
.podium {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 78%;
    aspect-ratio: 5 / 1;
    z-index: 2;
    pointer-events: none;
}
.podium-disc {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(92, 225, 255, 0.55) 0%, rgba(92, 225, 255, 0.3) 30%, transparent 70%);
    filter: blur(6px);
    animation: podiumPulse 3.5s ease-in-out infinite;
}
.podium-ring {
    position: absolute;
    inset: 18% 0;
    border: 2px solid rgba(92, 225, 255, 0.65);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(92, 225, 255, 0.6),
        inset 0 0 25px rgba(92, 225, 255, 0.35);
}
.podium-ring::before, .podium-ring::after {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(92, 225, 255, 0.4);
    border-radius: 50%;
}
.podium-ring::after { inset: 24%; opacity: 0.7; }

.podium-runes {
    position: absolute;
    inset: 24% 0;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, transparent 0deg, rgba(92, 225, 255, 0.5) 60deg, transparent 90deg, transparent 180deg, rgba(92, 225, 255, 0.5) 240deg, transparent 270deg);
    mask: radial-gradient(ellipse, transparent 60%, black 65%, black 85%, transparent 90%);
    -webkit-mask: radial-gradient(ellipse, transparent 60%, black 65%, black 85%, transparent 90%);
    animation: runesSpin 18s linear infinite;
    opacity: 0.8;
}
.podium-shadow {
    position: absolute;
    inset: 35% 5%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), transparent 70%);
    filter: blur(8px);
}
@keyframes podiumPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes runesSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nameplate (under the character zone) */
.nameplate {
    position: relative;
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(11, 12, 20, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    overflow: hidden;
    transition: opacity 0.4s, transform 0.4s;
}
.nameplate::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.nameplate::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.4;
}
.nameplate.swapping {
    opacity: 0;
    transform: translateY(-4px);
}
.np-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(92, 225, 255, 0.4);
}
.np-sub {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Job / weapon switcher pills (under nameplate) */
.stage-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    padding: 6px;
    background: rgba(11, 12, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.stage-pill {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    border: 0;
    background: transparent;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.stage-pill i { font-size: 9px; opacity: 0.7; }
.stage-pill:hover { color: var(--text); background: var(--surface); }
.stage-pill.active {
    background: var(--grad-primary);
    color: #0a0a14;
    box-shadow: 0 8px 20px -6px rgba(30, 144, 255, 0.6);
}

/* Floating sparks */
.showcase-char .sparks {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}
.showcase-char .spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold), 0 0 14px rgba(92, 225, 255, 0.6);
    opacity: 0;
    animation: sparkFloat linear infinite;
}
@keyframes sparkFloat {
    0% { transform: translateY(40px) translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-280px) translateX(var(--drift, 20px)); opacity: 0; }
}

.class-info { grid-area: info; }
.class-info-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(30, 144, 255, 0.15);
    border: 1px solid var(--rose);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--rose-2);
    margin-bottom: 16px;
}
.class-info-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.class-info-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.class-stats { margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.cs-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 16px;
}
.cs-row span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-mute);
}
.cs-bar {
    height: 6px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}
.cs-bar i {
    display: block;
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.5);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.class-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Weapon chips row (1st job) */
.weapon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.weapon-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    transition: all 0.2s;
}
.weapon-chip:hover { color: var(--gold); border-color: var(--gold); }

/* Weapon picker (3rd tier â€” weapon mastery under a 2nd job) */
.weapon-picker {
    margin-bottom: 28px;
    padding: 22px 22px 24px;
    background: linear-gradient(135deg, rgba(92, 225, 255, 0.06), rgba(30, 144, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.weapon-picker::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}
.wp-heading {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}
.wp-heading::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 16px; height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}
.wp-grid {
    display: grid;
    grid-template-columns: repeat(var(--wp-cols, 3), 1fr);
    gap: 10px;
}
.wp-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    color: inherit;
    isolation: isolate;
}
.wp-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 225, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.wp-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 14px 30px -10px rgba(92, 225, 255, 0.4);
}
.wp-card:hover::after { opacity: 1; }
.wp-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(92, 225, 255, 0.12), rgba(30, 144, 255, 0.06));
    box-shadow: 0 14px 30px -10px rgba(92, 225, 255, 0.5);
}
.wp-card.active::after { opacity: 1; }

.wp-card .wp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(11, 12, 20, 0.7);
    border: 1px solid var(--border-strong);
    color: var(--gold);
    font-size: 16px;
    transition: transform 0.3s;
}
.wp-card:hover .wp-icon { transform: rotate(-6deg) scale(1.05); }
.wp-card.active .wp-icon {
    background: var(--grad-primary);
    border-color: transparent;
    color: #0a0a14;
    box-shadow: 0 8px 18px -6px rgba(30, 144, 255, 0.6);
}

.wp-card .wp-body strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text);
    line-height: 1.1;
}
.wp-card .wp-body small {
    display: block;
    font-size: 10px;
    color: var(--rose-2);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 600;
}
.wp-card .wp-note {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-dim);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
    .wp-grid { grid-template-columns: 1fr; }
}

/* Back-to-1st-job button */
.back-to-first {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}
.back-to-first:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateX(-3px);
}

.class-info-tag.two {
    background: linear-gradient(135deg, rgba(92, 225, 255, 0.15), rgba(30, 144, 255, 0.10));
    border-color: var(--gold);
    color: var(--gold);
}

/* 2nd Job advancement panel */
.second-jobs {
    margin-bottom: 28px;
    padding: 24px 22px 26px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.06), rgba(92, 225, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.second-jobs::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-primary);
    opacity: 0.5;
}
.sj-heading {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    padding-left: 24px;
    position: relative;
}
.sj-heading::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 16px; height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}
.sj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.second-job {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    padding: 14px;
    background:
        radial-gradient(ellipse at top, rgba(92, 225, 255, 0.06), transparent 50%),
        var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-family: inherit;
    color: inherit;
}
.second-job::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.second-job:hover {
    border-color: var(--rose);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(30, 144, 255, 0.5);
}
.second-job:hover::after { opacity: 1; }

/* Mini-podium portrait â€” matches the big showcase style */
.sj-portrait {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background:
        radial-gradient(ellipse at 50% 85%, rgba(92, 225, 255, 0.30) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 40%, rgba(30, 144, 255, 0.10) 0%, transparent 65%),
        #07070d;
    margin-bottom: 12px;
    isolation: isolate;
}
.sj-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    transform: scale(0.78);
    transform-origin: center 70%;
    transition: transform 0.45s ease, filter 0.4s;
    filter: contrast(1.05) saturate(1.05);
    z-index: 2;
}
.second-job:hover .sj-portrait img {
    transform: scale(0.86);
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
}

/* Vignette to mask the busy character bg */
.sj-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(7, 7, 13, 0.55) 70%, rgba(7, 7, 13, 0.95) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Mini-podium glow at the bottom */
.sj-portrait::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 70%;
    height: 14%;
    background:
        radial-gradient(ellipse at center, rgba(92, 225, 255, 0.65) 0%, rgba(92, 225, 255, 0.25) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(4px);
    z-index: 1;
    pointer-events: none;
    animation: podiumPulse 4s ease-in-out infinite;
}

.sj-body {
    padding: 0;
    position: relative;
    z-index: 3;
}
.sj-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.sj-head i {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(11, 12, 20, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 13px;
    box-shadow: 0 6px 16px -6px rgba(92, 225, 255, 0.6);
}
.sj-head strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text);
    line-height: 1.1;
}
.sj-head small {
    display: block;
    font-size: 9.5px;
    color: var(--rose-2);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 600;
}
.second-job p {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.sj-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap 0.2s;
}
.second-job:hover .sj-cta { gap: 10px; }

.class-tabs {
    grid-area: tabs;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.class-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.class-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity 0.3s;
}
.class-tab:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.class-tab:hover::before { opacity: 1; }
.class-tab.active {
    border-color: var(--rose);
    box-shadow: 0 12px 30px -10px rgba(30, 144, 255, 0.4);
}
.class-tab.active::before { opacity: 1; }
.class-tab > * { position: relative; z-index: 1; }
.class-tab i {
    font-size: 20px;
    color: var(--rose-2);
    width: 32px;
    text-align: center;
}
.class-tab.active i { color: var(--gold); }
.class-tab strong {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 2px;
}
.class-tab small {
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.3px;
}

/* ============= TRAILER ============= */
.trailer {
    position: relative;
    height: min(700px, 90vh);
    overflow: hidden;
    isolation: isolate;
}
.trailer-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.trailer-video iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}
.trailer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 30% center, transparent 0%, rgba(6, 6, 10, 0.7) 70%),
        linear-gradient(to right, rgba(6, 6, 10, 0.9) 0%, rgba(6, 6, 10, 0.5) 50%, rgba(6, 6, 10, 0.9) 100%);
    pointer-events: none;
}
.trailer-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    padding-left: 24px;
}
.trailer-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    margin: 12px 0 18px;
}
.trailer-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 32px;
}
.trailer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ============= WORLD ============= */
.world {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.world-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 20px;
}
.world-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.4s, border-color 0.3s;
    isolation: isolate;
}
.world-card.large {
    grid-column: span 2;
    grid-row: span 2;
}
.world-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.world-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.world-card:hover img { transform: scale(1.1); }
.world-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 10, 0.95) 0%, rgba(6, 6, 10, 0.4) 50%, transparent 100%);
    z-index: 1;
}
.world-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px;
    z-index: 2;
}
.world-card.large .world-body { padding: 36px; }

.world-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 10px;
}
.world-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 6px;
}
.world-card.large h3 { font-size: 2.5rem; }
.world-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 90%;
}
.world-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.2s, color 0.2s;
}
.world-card:hover .world-cta { color: var(--gold); gap: 10px; }

/* ============= FEATURES ============= */
.features {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at center, rgba(30, 144, 255, 0.04), transparent 60%),
        var(--bg-1);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 32px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(30, 144, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--rose); background: var(--surface-strong); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--grad-soft);
    border: 1px solid var(--border-strong);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 20px;
    transition: transform 0.3s, color 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); color: var(--rose-2); }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 18px;
}
.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose-2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s, gap 0.2s;
}
.feature-card a:hover { color: var(--gold); gap: 10px; }

/* ============= RANKINGS ============= */
.rankings {
    padding: 120px 0;
    background: var(--bg-0);
    position: relative;
}
.rankings-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ranking-board {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.ranking-board:hover { border-color: var(--rose); transform: translateY(-4px); }

.ranking-head {
    padding: 18px 24px;
    background: var(--grad-soft);
    border-bottom: 1px solid var(--border-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ranking-head span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ranking-head i { color: var(--rose-2); }
.ranking-head small { font-size: 11px; color: var(--text-mute); letter-spacing: 0.3px; }

.ranking-list li {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.ranking-list li:hover { background: var(--surface); }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list li:nth-child(1) .rk { color: var(--gold); }
.ranking-list li:nth-child(2) .rk { color: #d8d8e0; }
.ranking-list li:nth-child(3) .rk { color: #c89766; }
.rk {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-mute);
}
.rn {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.rc {
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
    grid-column: 2;
    grid-row: 2;
    margin-top: -10px;
}
.rs {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--rose-2);
    font-size: 0.95rem;
    grid-row: span 2;
}

/* ============= COMMUNITY ============= */
.community {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.comm-card {
    padding: 36px 28px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.comm-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-color, var(--rose)) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.comm-card.discord { --brand-color: rgba(88, 101, 242, 0.25); }
.comm-card.youtube { --brand-color: rgba(255, 0, 0, 0.2); }
.comm-card.instagram { --brand-color: rgba(225, 48, 108, 0.25); }
.comm-card.whatsapp { --brand-color: rgba(37, 211, 102, 0.2); }
.comm-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.comm-card:hover::before { opacity: 1; }

.comm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    font-size: 28px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.comm-card.discord .comm-icon { color: #5865f2; }
.comm-card.youtube .comm-icon { color: #ff0000; }
.comm-card.instagram .comm-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; border-color: transparent; }
.comm-card.whatsapp .comm-icon { color: #25d366; }
.comm-card:hover .comm-icon { transform: scale(1.1) rotate(-5deg); }
.comm-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.comm-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 18px;
}
.comm-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.2s;
}
.comm-card:hover .comm-cta { gap: 10px; }

/* ============= DOWNLOAD CTA ============= */
.download-cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg-1);
}
.dl-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at top left, rgba(30, 144, 255, 0.25), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(92, 225, 255, 0.18), transparent 50%),
        url("../assets/Deco/tree.svg") no-repeat center / contain;
    opacity: 1;
}
.dl-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-1);
    opacity: 0.85;
}

.dl-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.dl-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    margin: 8px 0 18px;
}
.dl-text > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 480px;
}
.dl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.dl-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.spec {
    padding: 24px 22px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    align-items: center;
}
.spec.recommended {
    border-color: var(--rose);
    background: var(--bg-3);
    box-shadow: 0 20px 50px -20px rgba(30, 144, 255, 0.4);
}
.spec small {
    grid-column: span 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--rose-2);
    margin-bottom: 6px;
}
.spec.recommended small { color: var(--gold); }
.spec strong {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-mute);
}
.spec span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* ============= FOOTER ============= */
.footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    padding: 80px 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}
.footer-brand img {
    width: 130px;
    margin-bottom: 18px;
}
.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 22px;
    max-width: 340px;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.25s;
    font-size: 16px;
}
.footer-socials li a:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: #0a0a14;
    transform: translateY(-3px);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover { color: var(--rose-2); transform: translateX(3px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    font-size: 12px;
    color: var(--text-mute);
}
.footer-langs {
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
}
.footer-langs a {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}
.footer-langs a:hover { color: var(--text); }
.footer-langs a.active {
    background: var(--grad-primary);
    color: #0a0a14;
}

/* =================================================
   RESPONSIVE
   ================================================= */
@media (min-width: 1024px) {
    .primary-nav { display: flex; }
    .menu-toggle { display: none; }
}

@media (max-width: 1180px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .class-tabs { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
    :root { --container: 100%; }

    .nav-list, .lang-toggle, .btn-ghost { display: none; }
    .header-actions .btn-cta { padding: 9px 16px; font-size: 12px; }

    .carousel-track .news-card,
    .carousel-track .news-card.feature {
        flex: 0 0 calc((100% - 24px) / 2);
    }
    .news-carousel { padding: 0 56px; }

    .class-switcher {
        grid-template-columns: 1fr;
        grid-template-areas: "stage" "info" "tabs";
        gap: 40px;
    }
    .class-stage { max-width: 600px; }
    .stage-overlay { top: 16px; left: 18px; }
    .stage-switch { bottom: 14px; padding: 5px; }
    .stage-pill { padding: 7px 12px; font-size: 10px; }

    .world-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 240px 240px;
    }
    .world-card.large { grid-column: span 2; grid-row: span 1; }

    .rankings-wrap { grid-template-columns: 1fr; }

    .dl-inner { grid-template-columns: 1fr; gap: 50px; }

    .footer-top { grid-template-columns: 1fr; gap: 50px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }

    .trailer-content { padding: 0 24px; }
}

@media (max-width: 720px) {
    :root { --header-h: 68px; }
    .container { padding: 0 18px; }

    .announce-link { display: none; }
    .announce-text { font-size: 11px; }

    .brand-logo { height: 44px; max-width: 110px; }
    .header-inner { padding: 0 16px; gap: 12px; }

    .hero { min-height: 90vh; height: auto; padding-bottom: 60px; }
    .hero-stats { padding: 18px 20px; gap: 16px; }
    .stat-num { font-size: 1.4rem; }
    .stat-label { font-size: 9px; letter-spacing: 1px; }
    .scroll-cue { display: none; }

    .status-row { gap: 16px; }
    .status-item { min-width: 100%; }

    .news, .classes, .world, .features, .rankings, .community, .download-cta { padding: 70px 0; }

    .section-head { flex-direction: column; align-items: stretch; }
    .news-tabs { overflow-x: auto; }

    .carousel-track .news-card,
    .carousel-track .news-card.feature {
        flex: 0 0 100%;
    }
    .carousel-track { gap: 16px; }
    .news-carousel { padding: 0; }
    .carousel-arrow { width: 42px; height: 42px; font-size: 14px; }
    .carousel-arrow.prev { left: 8px; }
    .carousel-arrow.next { right: 8px; }

    .features-grid { grid-template-columns: 1fr 1fr; }
    .feature-card { padding: 24px 20px; }

    .sj-grid { grid-template-columns: 1fr; }

    .class-stage { aspect-ratio: 4 / 5; }
    .stage-switch {
        flex-wrap: wrap;
        max-width: calc(100% - 24px);
        justify-content: center;
    }
    .stage-overlay { top: 14px; left: 14px; }
    .stage-pill { padding: 6px 10px; font-size: 9.5px; }

    .world-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .world-card.large { grid-column: auto; }
    .world-card { aspect-ratio: 4/3; }

    .community-grid { grid-template-columns: 1fr; }

    .dl-specs { grid-template-columns: 1fr; }

    .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Reveal animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
