/* =====================================================================
   ANARNOVA · MU Online Season 2 Premium
   Stylesheet — Medieval Gothic + Modern Web
   ===================================================================== */

/* ====================== VARIABLES ====================== */
:root {
    /* Palette extracted from logo */
    --gold:           #D4A24E;
    --gold-bright:    #F5C875;
    --gold-deep:      #8B6914;
    --gold-darker:    #5A4410;
    --ruby:           #C8202B;
    --ruby-deep:      #8B1820;
    --sapphire:       #2B6CC4;
    --sapphire-deep:  #1A4A8A;
    --cream:          #E8D5A8;
    --parchment:      #C9B27A;
    --bg-darkest:     #0A0807;
    --bg-dark:        #1A1410;
    --bg-mid:         #2A1F18;
    --bg-light:       #3B2E22;
    --ember:          #FF8C42;
    --ember-bright:   #FFB770;
    --text:           #E8D5A8;
    --text-dim:       #9B8866;
    --text-faint:     #5A4E3A;

    /* Effects */
    --shadow-deep:    0 30px 80px -20px rgba(0,0,0,.8), 0 10px 30px -10px rgba(0,0,0,.6);
    --shadow-glow:    0 0 30px rgba(212, 162, 78, .3), 0 0 60px rgba(212, 162, 78, .15);
    --shadow-ruby:    0 0 30px rgba(200, 32, 43, .4);
    --inset-gold:     inset 0 0 0 1px rgba(212, 162, 78, .25);
    --inset-cream:    inset 0 1px 0 rgba(232, 213, 168, .15);
    --grad-gold:      linear-gradient(180deg, #F5C875 0%, #D4A24E 35%, #8B6914 100%);
    --grad-gold-met:  linear-gradient(135deg, #5A4410 0%, #D4A24E 25%, #F5C875 50%, #D4A24E 75%, #5A4410 100%);
    --grad-dark:      linear-gradient(180deg, #0A0807 0%, #1A1410 50%, #0A0807 100%);
    --grad-ruby:      linear-gradient(135deg, #8B1820 0%, #C8202B 50%, #8B1820 100%);

    /* Typography */
    --f-display: 'Cinzel Decorative', 'Cormorant Unicase', serif;
    --f-heading: 'Cormorant Unicase', 'Cinzel', serif;
    --f-body: 'Cinzel', 'Cormorant Unicase', serif;
    --f-pixel: 'Press Start 2P', monospace;

    /* Sizing */
    --container: 1280px;
    --container-wide: 1440px;
    --radius: 4px;
}

/* ====================== RESET ====================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--f-body);
    background: var(--bg-darkest);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('img/cursor/normal.cur'), url('img/cursor/normal.png'), auto;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(139, 105, 20, .15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(43, 108, 196, .08) 0%, transparent 50%),
        var(--grad-dark);
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer; }
button { font: inherit; background: none; border: none; color: inherit; cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer; }
input, textarea, select { cursor: url('img/cursor/text.cur'), url('img/cursor/text.png'), text; }

::selection { background: var(--gold); color: var(--bg-darkest); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-deep), var(--gold-darker));
    border: 1px solid var(--gold);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ====================== UTILITIES ====================== */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: .08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.8  0 0 0 0 0.6  0 0 0 0 0.3  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ====================== CUSTOM CURSOR ====================== */
/* JS custom cursor DESHABILITADO — usamos solo el cursor .cur de espada del OS
   para que se vea uno solo (no doble cursor) */
.cursor, .cursor-dot {
    display: none !important;
}
/* Reglas viejas mantenidas como referencia pero inactivas:
.cursor, .cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 10010;
    top: 0; left: 0;
    will-change: transform;
}
.cursor {
    width: 32px; height: 32px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, border-color .25s, background .25s;
    mix-blend-mode: difference;
}
.cursor::before, .cursor::after {
    content: ''; position: absolute; background: var(--gold);
}
.cursor::before { top: 50%; left: -6px; width: 4px; height: 1px; }
.cursor::after { top: 50%; right: -6px; width: 4px; height: 1px; }
.cursor-dot {
    width: 4px; height: 4px;
    background: var(--gold-bright);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--gold);
}
.cursor.is-hover { width: 56px; height: 56px; border-color: var(--gold-bright); }
@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
}
*/

/* ====================== LOADER ====================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg-darkest);
    color: var(--gold);
    transition: opacity .8s ease, visibility 0s .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__sigil {
    width: 120px; height: 120px;
    animation: sigilRotate 12s linear infinite;
    filter: drop-shadow(0 0 20px var(--gold));
}
.loader__runes { animation: runeCounter 8s linear infinite; transform-origin: 50% 50%; }
.loader__text {
    font-family: var(--f-display);
    font-size: .9rem;
    letter-spacing: .4em;
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--gold);
}
.loader__bar {
    width: 260px; height: 2px;
    background: rgba(212, 162, 78, .15);
    overflow: hidden;
    position: relative;
}
.loader__bar span {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    animation: loadBar 1.8s ease-in-out infinite;
}
.loader__hint {
    font-size: .7rem;
    letter-spacing: .25em;
    color: var(--text-faint);
    text-transform: uppercase;
}
@keyframes sigilRotate { to { transform: rotate(360deg); } }
@keyframes runeCounter { to { transform: rotate(-360deg); } }
@keyframes loadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ====================== FOG ====================== */
.fog {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.fog__layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    opacity: .25;
}
.fog__layer--1 {
    background-image: radial-gradient(ellipse 600px 200px at 50% 50%, rgba(212, 162, 78, .08), transparent 70%);
    animation: fogDrift1 60s linear infinite;
    top: 20%;
}
.fog__layer--2 {
    background-image: radial-gradient(ellipse 800px 250px at 50% 50%, rgba(43, 108, 196, .05), transparent 70%);
    animation: fogDrift2 90s linear infinite;
    top: 50%;
    opacity: .15;
}
.fog__layer--3 {
    background-image: radial-gradient(ellipse 500px 180px at 50% 50%, rgba(200, 32, 43, .04), transparent 70%);
    animation: fogDrift1 75s linear infinite reverse;
    bottom: 10%;
    opacity: .12;
}
@keyframes fogDrift1 {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes fogDrift2 {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ====================== EMBERS CANVAS ====================== */
.embers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: .8;
}

/* ====================== NAVIGATION ====================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: padding .3s ease, background .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
    padding: .75rem 2rem;
    background: rgba(10, 8, 7, .85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(212, 162, 78, .18);
    box-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.nav__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav__left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switch {
    position: relative;
    z-index: 110;
}
.lang-switch__btn {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .85rem;
    background:
        linear-gradient(135deg, rgba(212, 162, 78, .12), rgba(212, 162, 78, .03)),
        rgba(10, 8, 7, .55);
    border: 1px solid rgba(212, 162, 78, .35);
    color: var(--gold-bright);
    font-family: var(--f-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
    transition: all .3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    isolation: isolate;
}
.lang-switch__btn::before, .lang-switch__btn::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    border: 1px solid var(--gold);
    pointer-events: none;
}
.lang-switch__btn::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.lang-switch__btn::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.lang-switch__btn:hover {
    background:
        linear-gradient(135deg, rgba(212, 162, 78, .2), rgba(212, 162, 78, .08)),
        rgba(10, 8, 7, .65);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 162, 78, .35);
    color: var(--cream);
}
.lang-switch__flag {
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, .4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 1px 2px rgba(0, 0, 0, .35);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    background-color: #333;
}
.lang-switch__flag[data-flag="hu"] {
    background:
        linear-gradient(180deg,
            #CD2A3E 0%, #CD2A3E 33.33%,
            #FFFFFF 33.33%, #FFFFFF 66.66%,
            #436F4D 66.66%, #436F4D 100%);
}
.lang-switch__flag[data-flag="en"] {
    background:
        linear-gradient(180deg, #012169 0%, #012169 100%);
    position: relative;
}
.lang-switch__flag[data-flag="en"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom right, transparent calc(50% - 1px), #FFFFFF calc(50% - 1px), #FFFFFF calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to bottom left,  transparent calc(50% - 1px), #FFFFFF calc(50% - 1px), #FFFFFF calc(50% + 1px), transparent calc(50% + 1px));
}
.lang-switch__flag[data-flag="en"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent calc(50% - 1.5px), #FFFFFF calc(50% - 1.5px), #FFFFFF calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        linear-gradient(0deg,  transparent calc(50% - 1.5px), #FFFFFF calc(50% - 1.5px), #FFFFFF calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        linear-gradient(90deg, transparent calc(50% - .5px), #C8102E calc(50% - .5px), #C8102E calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(0deg,  transparent calc(50% - .5px), #C8102E calc(50% - .5px), #C8102E calc(50% + .5px), transparent calc(50% + .5px));
}
.lang-switch__chevron {
    font-size: .7rem;
    color: var(--gold);
    transition: transform .3s ease;
    margin-left: .15rem;
}
.lang-switch.is-open .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    min-width: 120px;
    list-style: none;
    padding: .35rem;
    margin: 0;
    background: rgba(10, 8, 7, .96);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(212, 162, 78, .35);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, .8),
        0 0 30px rgba(212, 162, 78, .2),
        inset 0 1px 0 rgba(232, 213, 168, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.lang-switch__menu::before, .lang-switch__menu::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border: 1px solid var(--gold);
    pointer-events: none;
}
.lang-switch__menu::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.lang-switch__menu::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.lang-switch__option {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .75rem;
    color: var(--text);
    font-family: var(--f-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
    transition: background .25s ease, color .25s ease, padding .25s ease;
    position: relative;
}
.lang-switch__option::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 0; height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
    transition: width .3s ease;
}
.lang-switch__option:hover,
.lang-switch__option:focus-visible {
    background: rgba(212, 162, 78, .12);
    color: var(--gold-bright);
    padding-left: 1rem;
    outline: none;
}
.lang-switch__option:hover::before { width: 4px; }
.lang-switch__option.is-active {
    color: var(--gold-bright);
    background: rgba(212, 162, 78, .08);
}
.lang-switch__option.is-active::after {
    content: '✓';
    margin-left: auto;
    color: var(--gold);
    font-size: .8rem;
}

@media (max-width: 880px) {
    .lang-switch__btn { padding: .45rem .7rem; font-size: .68rem; }
    .lang-switch__flag { width: 16px; height: 11px; }
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--f-display);
    font-weight: 900;
    letter-spacing: .15em;
}
.nav__logo {
    width: 42px; height: 42px;
    filter: drop-shadow(0 0 10px rgba(212, 162, 78, .4));
}
.nav__name {
    background: var(--grad-gold-met);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.15rem;
}
.nav__menu {
    display: flex;
    gap: 2.25rem;
}
.nav__link {
    position: relative;
    font-family: var(--f-body);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text);
    opacity: .8;
    transition: color .25s, opacity .25s;
    padding: .5rem 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .35s ease, left .35s ease;
}
.nav__link:hover { color: var(--gold-bright); opacity: 1; }
.nav__link:hover::after { width: 100%; left: 0; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 4px;
}
.nav__burger span {
    height: 1.5px;
    background: var(--gold);
    transition: transform .3s, opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================== BUTTONS ====================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    border: 1px solid;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    isolation: isolate;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .6s ease;
    z-index: -1;
}
.btn:hover::before { transform: translateX(110%); }

.btn--sm { padding: .65rem 1.1rem; font-size: .7rem; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: .9rem; }

.btn--primary {
    background: var(--grad-gold);
    color: var(--bg-darkest);
    border-color: var(--gold-bright);
    box-shadow: 0 6px 25px -8px rgba(212, 162, 78, .65), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 4px rgba(0,0,0,.2);
    text-shadow: 0 1px 0 rgba(255, 235, 200, .5);
}
.btn--primary:hover {
    box-shadow: 0 10px 35px -8px rgba(245, 200, 117, .8), 0 0 50px rgba(212, 162, 78, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
    transform: translateY(-2px);
}

.btn--ghost {
    background: rgba(212, 162, 78, .05);
    color: var(--gold-bright);
    border-color: rgba(212, 162, 78, .4);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    background: rgba(212, 162, 78, .1);
    border-color: var(--gold-bright);
    color: var(--cream);
    box-shadow: 0 0 30px rgba(212, 162, 78, .3);
}

.btn__icon { font-size: 1.1em; }

/* ====================== HERO ====================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
    z-index: 1;
}
.hero__bg {
    position: absolute;
    inset: -10%;
    z-index: -3;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.05);
    animation: heroBgZoom 30s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
    0%   { transform: scale(1) translateY(0); }
    100% { transform: scale(1.08) translateY(-2%); }
}
.hero__bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 8, 7, .55) 0%, rgba(10, 8, 7, .35) 40%, rgba(10, 8, 7, .85) 100%),
        radial-gradient(circle at 25% 30%, rgba(200, 32, 43, .15) 0%, transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(43, 108, 196, .12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 162, 78, .2) 0%, transparent 60%);
}
.hero__bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 50px, rgba(212, 162, 78, .025) 50px 51px),
        repeating-linear-gradient(-45deg, transparent 0 50px, rgba(212, 162, 78, .025) 50px 51px);
}
.hero__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 110% 90% at 50% 50%, transparent 25%, rgba(10, 8, 7, .55) 75%, var(--bg-darkest) 100%);
}

.hero__sword {
    position: absolute;
    width: 60px;
    height: 300px;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(212, 162, 78, .4));
    pointer-events: none;
}
.hero__sword--left  { left: 8%;  top: 50%; transform: translateY(-50%) rotate(-15deg); animation: swordSway 6s ease-in-out infinite; }
.hero__sword--right { right: 8%; top: 50%; transform: translateY(-50%) rotate(15deg);  animation: swordSway 6s ease-in-out infinite reverse; }

@keyframes swordSway {
    0%, 100% { transform: translateY(-50%) rotate(-15deg); }
    50% { transform: translateY(-52%) rotate(-13deg); }
}
.hero__sword--right { animation-name: swordSwayR; }
@keyframes swordSwayR {
    0%, 100% { transform: translateY(-50%) rotate(15deg); }
    50% { transform: translateY(-52%) rotate(13deg); }
}

.rune {
    position: absolute;
    font-family: serif;
    font-size: 2.5rem;
    color: var(--gold);
    opacity: .15;
    pointer-events: none;
    text-shadow: 0 0 20px var(--gold);
    animation: runeFloat 8s ease-in-out infinite;
}
.rune--1 { top: 15%; left: 15%; animation-delay: 0s; }
.rune--2 { top: 25%; right: 18%; animation-delay: 1.5s; }
.rune--3 { bottom: 25%; left: 12%; animation-delay: 3s; }
.rune--4 { bottom: 30%; right: 14%; animation-delay: 4.5s; }
.rune--5 { top: 60%; left: 50%; animation-delay: 6s; transform: translateX(-50%); }
@keyframes runeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .1; }
    50% { transform: translateY(-20px) rotate(8deg); opacity: .25; }
}

.hero__content {
    position: relative;
    z-index: 4;
    max-width: 920px;
    text-align: center;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeUp 1s .3s both;
}
.hero__eyebrow-line {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__eyebrow-line:last-child {
    background: linear-gradient(-90deg, transparent, var(--gold));
}
.hero__eyebrow-text {
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: .45em;
    color: var(--gold-bright);
    text-transform: uppercase;
}

.hero__logo {
    width: 180px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 10px 40px rgba(212, 162, 78, .5)) drop-shadow(0 0 80px rgba(212, 162, 78, .3));
    animation: logoIn 1.4s cubic-bezier(.2, .8, .2, 1) both, logoFloat 5s ease-in-out 1.4s infinite;
}
@keyframes logoIn {
    from { opacity: 0; transform: translateY(40px) scale(.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero__title {
    font-family: var(--f-display);
    margin-bottom: 1.5rem;
    line-height: 1;
}
.hero__title-main {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: .12em;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 40%, var(--gold-deep) 80%, var(--gold-darker) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 80px rgba(212, 162, 78, .5);
    animation: fadeUp 1s .6s both;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.6));
}
.hero__title-sub {
    display: block;
    font-family: var(--f-heading);
    font-size: clamp(.85rem, 1.8vw, 1.2rem);
    font-weight: 600;
    letter-spacing: .55em;
    color: var(--cream);
    margin-top: 1rem;
    opacity: .85;
    animation: fadeUp 1s .85s both;
}

.hero__desc {
    max-width: 580px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    color: var(--text);
    opacity: .85;
    line-height: 1.7;
    animation: fadeUp 1s 1.05s both;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeUp 1s 1.25s both;
}

.hero__status {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 1s 1.45s both;
}
.status-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.25rem;
    background:
        linear-gradient(135deg, rgba(212, 162, 78, .08), rgba(212, 162, 78, .02)),
        rgba(10, 8, 7, .6);
    border: 1px solid rgba(212, 162, 78, .25);
    backdrop-filter: blur(10px);
    box-shadow: var(--inset-cream), 0 8px 24px -10px rgba(0,0,0,.6);
    position: relative;
    transition: all .3s ease;
}
.status-card::before, .status-card::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border: 1px solid var(--gold);
}
.status-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.status-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.status-card:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 162, 78, .15), rgba(212, 162, 78, .05)), rgba(10, 8, 7, .8);
    transform: translateY(-2px);
}
.status-card__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}
.status-card__info {
    display: flex;
    flex-direction: column;
}
.status-card__label {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.status-card__value {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gold-bright);
    letter-spacing: .05em;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.85); }
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    font-size: .65rem;
    letter-spacing: .4em;
    color: var(--text-dim);
    animation: fadeUp 1s 1.8s both;
}
.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold), transparent);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    background: var(--gold-bright);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -20px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 50px; opacity: 0; }
}

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

/* ====================== SECTION GENERIC ====================== */
.section {
    position: relative;
    padding: 8rem 2rem;
    max-width: var(--container-wide);
    margin: 0 auto;
    z-index: 5;
}
.section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section__kicker {
    display: inline-block;
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: .5em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: .9;
}
.section__title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: .04em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--gold) 60%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
.section__lead {
    font-family: var(--f-heading);
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
    font-style: italic;
}

/* ====================== REVEAL ANIMATION ====================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================== NEWS ====================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
}
.news-card {
    position: relative;
    background: linear-gradient(180deg, rgba(58, 46, 34, .55), rgba(26, 20, 16, .85));
    border: 1px solid rgba(212, 162, 78, .2);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s;
    box-shadow: var(--shadow-deep);
}
.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(212, 162, 78, .08), transparent 40%),
        linear-gradient(-135deg, rgba(212, 162, 78, .04), transparent 40%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-deep), 0 20px 50px -10px rgba(212, 162, 78, .35);
}
.news-card:hover::before { opacity: 1; }

.news-card__media {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.news-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    background: var(--grad-ruby);
    color: var(--cream);
    font-family: var(--f-display);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .3em;
    padding: .4rem .8rem;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.news-card__badge--alt { background: linear-gradient(135deg, var(--sapphire-deep), var(--sapphire)); }
.news-card__badge--gold { background: var(--grad-gold); color: var(--bg-darkest); }

.news-card__art {
    position: absolute;
    inset: 0;
    background: var(--bg-mid);
    transition: transform .8s ease;
    overflow: hidden;
}
.news-card__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
    filter: brightness(.92) saturate(1.05);
}
.news-card:hover .news-card__art img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.1);
}
/* La card "shop" usa el vip-badge como ícono central, mantiene contain con padding */
.news-card__art--shop img {
    object-fit: contain;
    padding: 2rem;
    filter: drop-shadow(0 0 30px rgba(212, 162, 78, .5));
}
.news-card:hover .news-card__art--shop img {
    transform: scale(1.12) rotate(-2deg);
    filter: drop-shadow(0 0 45px rgba(212, 162, 78, .75));
}
.news-card__art::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 162, 78, .2) 0%, transparent 60%),
        linear-gradient(180deg, transparent 40%, rgba(10, 8, 7, .8) 100%);
}
.news-card__art::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(212, 162, 78, .04) 30px 31px),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(212, 162, 78, .04) 30px 31px);
}
.news-card__art--castle {
    background:
        radial-gradient(circle at 50% 100%, rgba(255, 140, 66, .3), transparent 60%),
        linear-gradient(180deg, #1a1410 0%, #2a1f18 100%);
}
.news-card__art--update {
    background:
        radial-gradient(circle at 50% 50%, rgba(200, 32, 43, .25), transparent 60%),
        linear-gradient(135deg, #1a1410 0%, #2a1f18 100%);
}
.news-card__art--shop {
    background:
        radial-gradient(circle at 50% 50%, rgba(200, 32, 43, .25), transparent 60%),
        linear-gradient(135deg, #1a1410 0%, #2a1f18 100%);
}

.news-card__body { padding: 1.75rem; position: relative; z-index: 2; }
.news-card__date {
    font-family: var(--f-display);
    font-size: .65rem;
    letter-spacing: .35em;
    color: var(--gold);
    text-transform: uppercase;
}
.news-card__title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.35rem;
    margin: .65rem 0 .85rem;
    color: var(--cream);
    line-height: 1.25;
    letter-spacing: .02em;
}
.news-card__excerpt {
    color: var(--text-dim);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--f-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--gold-bright);
    text-transform: uppercase;
    transition: gap .3s ease;
}
.news-card__link:hover { gap: .9rem; color: var(--cream); }

/* ====================== SERVER STATS ====================== */
.section--server {
    background:
        linear-gradient(180deg, transparent 0%, rgba(212, 162, 78, .03) 50%, transparent 100%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.stat {
    position: relative;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 162, 78, .1), transparent 60%),
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(26, 20, 16, .8));
    border: 1px solid rgba(212, 162, 78, .25);
    overflow: hidden;
}
.stat__ornament {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stat__ornament::before, .stat__ornament::after {
    content: '◆';
    position: absolute;
    top: -7px;
    color: var(--gold);
    font-size: .8rem;
}
.stat__ornament::before { left: 10%; }
.stat__ornament::after  { right: 10%; }

.stat__icon {
    display: inline-block;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--gold));
}
.stat__value {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .15rem;
}
.stat__value i {
    font-style: normal;
    font-size: 1.25rem;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}
.stat__label {
    font-family: var(--f-display);
    font-size: .8rem;
    letter-spacing: .25em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.info-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}
.info-panel {
    padding: 2.25rem;
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .35), rgba(26, 20, 16, .75));
    border: 1px solid rgba(212, 162, 78, .2);
    position: relative;
}
.info-panel::before, .info-panel::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border: 2px solid var(--gold);
}
.info-panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.info-panel::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.info-panel__title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-bright);
    letter-spacing: .1em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 162, 78, .2);
}
.info-panel__list { list-style: none; }
.info-panel__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px dashed rgba(212, 162, 78, .12);
    font-size: .92rem;
}
.info-panel__list li:last-child { border-bottom: none; }
.info-panel__list li span:first-child {
    color: var(--text-dim);
    font-family: var(--f-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}
.info-panel__list li span:last-child {
    color: var(--cream);
    font-weight: 600;
    letter-spacing: .04em;
}

/* ====================== EVENTS ====================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.event {
    position: relative;
    padding: 2.5rem 1.75rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(200, 32, 43, .08), transparent 70%),
        linear-gradient(180deg, rgba(58, 46, 34, .5), rgba(10, 8, 7, .9));
    border: 1px solid rgba(212, 162, 78, .25);
    text-align: center;
    transition: transform .4s, border-color .4s, box-shadow .4s;
    overflow: hidden;
    isolation: isolate;
}
.event::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 162, 78, .15), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}
.event:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 25px 50px -15px rgba(212, 162, 78, .4);
}
.event:hover::before { opacity: 1; }

.event__corner {
    position: absolute;
    width: 16px; height: 16px;
    border: 1px solid var(--gold);
    transition: width .4s, height .4s, border-color .4s;
}
.event__corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.event__corner--tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.event__corner--bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.event__corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.event:hover .event__corner { width: 24px; height: 24px; border-color: var(--gold-bright); }

.event__icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 20px rgba(212, 162, 78, .5));
    line-height: 1;
}
.event__crest {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.25rem;
    position: relative;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.event__crest::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 162, 78, .35), transparent 65%);
    filter: blur(15px);
    z-index: -1;
    opacity: .6;
    transition: opacity .4s ease;
}
.event__crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,.6)) drop-shadow(0 0 15px rgba(212, 162, 78, .4));
    transition: filter .5s ease;
}
.event:hover .event__crest {
    transform: scale(1.08) translateY(-4px);
}
.event:hover .event__crest::before {
    opacity: 1;
}
.event:hover .event__crest img {
    filter: drop-shadow(0 8px 25px rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(212, 162, 78, .7));
}
.event__title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: .85rem;
    color: var(--cream);
    letter-spacing: .03em;
}
.event__desc {
    color: var(--text-dim);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 4.8em;
}
.event__meta {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 162, 78, .2);
}
.event__meta span {
    font-family: var(--f-display);
    font-size: .72rem;
    letter-spacing: .25em;
    color: var(--gold);
    text-transform: uppercase;
}
.event__meta span:last-child { color: var(--text-dim); }

/* ====================== CLASSES ====================== */
.section--classes {
    background: linear-gradient(180deg, transparent, rgba(43, 108, 196, .03), transparent);
}
.classes-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.class-card {
    position: relative;
    padding: 1rem 1.25rem 1.75rem;
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .9));
    border: 1px solid rgba(212, 162, 78, .2);
    overflow: hidden;
    transition: all .5s cubic-bezier(.2, .8, .2, 1);
    text-align: center;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
}
.class-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}
.class-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(76, 60, 44, .6), rgba(20, 14, 10, .95));
}
.class-card:hover::before { transform: scaleX(1); }

.class-card__sigil {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(212, 162, 78, .6));
    transition: transform .5s ease;
}
.class-card:hover .class-card__sigil { transform: scale(1.15) rotate(-5deg); }

.class-card__portrait {
    position: relative;
    width: 100%;
    height: 240px;
    margin: -1rem -1.25rem 1rem;
    width: calc(100% + 2.5rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(212, 162, 78, .12), transparent 60%),
        linear-gradient(180deg, rgba(30, 22, 18, .4) 0%, rgba(10, 8, 7, .9) 100%);
}
.class-card__portrait img {
    position: absolute;
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
    height: 110%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,.7));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s;
    z-index: 2;
}
.class-card__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 90%, rgba(212, 162, 78, .35) 0%, transparent 60%);
    z-index: 1;
    opacity: .55;
    transition: opacity .5s ease, transform .5s ease;
}
.class-card__glow--blue   { background: radial-gradient(ellipse 60% 80% at 50% 90%, rgba(160, 80, 255, .4) 0%, transparent 60%); }
.class-card__glow--green  { background: radial-gradient(ellipse 60% 80% at 50% 90%, rgba(170, 130, 255, .35) 0%, transparent 60%); }
.class-card__glow--purple { background: radial-gradient(ellipse 60% 80% at 50% 90%, rgba(200, 80, 255, .4) 0%, transparent 60%); }
.class-card__glow--gold   { background: radial-gradient(ellipse 60% 80% at 50% 90%, rgba(212, 162, 78, .45) 0%, transparent 60%); }

.class-card__portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent 0 30px, rgba(212, 162, 78, .03) 30px 31px);
    z-index: 1;
}
.class-card__portrait::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 8, 7, .85) 100%);
    z-index: 3;
}
.class-card:hover .class-card__portrait img {
    transform: translateX(-50%) translateY(-8px) scale(1.05);
    filter: drop-shadow(0 14px 35px rgba(0,0,0,.85)) drop-shadow(0 0 25px rgba(212, 162, 78, .4));
}
.class-card:hover .class-card__glow { opacity: 1; }

.class-card__num {
    position: absolute;
    top: 12px; right: 14px;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: rgba(212, 162, 78, .35);
    line-height: 1;
    z-index: 4;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.class-card__name {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: .1em;
    color: var(--cream);
    margin-bottom: .35rem;
    line-height: 1.2;
}
.class-card__role {
    font-family: var(--f-body);
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.class-card__desc {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    min-height: 5.25em;
}
.class-card__stats {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 162, 78, .15);
}
.bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    height: 5px;
    background: rgba(212, 162, 78, .1);
    position: relative;
}
.bar span {
    height: 100%;
    background: var(--grad-gold);
    width: var(--w, 50%);
    transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 0 8px rgba(212, 162, 78, .5);
}
.bar i {
    position: absolute;
    right: -28px;
    font-family: var(--f-display);
    font-size: .55rem;
    font-style: normal;
    color: var(--text-dim);
    letter-spacing: .1em;
    line-height: 1;
}

/* ====================== RANKINGS ====================== */
.ranking-board {
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    overflow: hidden;
    position: relative;
}
.ranking-board::before, .ranking-board::after {
    content: '';
    position: absolute;
    width: 30px; height: 30px;
    border: 2px solid var(--gold);
    z-index: 2;
}
.ranking-board::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.ranking-board::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.ranking-board__head, .ranking-board__row {
    display: grid;
    grid-template-columns: 60px 2fr 1.4fr 1fr 1fr 1.5fr;
    align-items: center;
    padding: 1.1rem 1.5rem;
    transition: background .25s ease;
}
.ranking-board__head {
    background: linear-gradient(180deg, rgba(212, 162, 78, .15), rgba(212, 162, 78, .05));
    border-bottom: 1px solid rgba(212, 162, 78, .3);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--gold-bright);
}
.ranking-board__row {
    border-bottom: 1px solid rgba(212, 162, 78, .08);
    font-size: .95rem;
}
.ranking-board__row:last-child { border-bottom: none; }
.ranking-board__row:hover { background: rgba(212, 162, 78, .05); }

.rank-pos {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-dim);
}
.rank-name {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: .05em;
}
.rank-class { color: var(--text-dim); font-size: .85rem; letter-spacing: .04em; }
.rank-level, .rank-resets {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--gold);
}
.rank-guild {
    font-family: var(--f-display);
    font-size: .8rem;
    letter-spacing: .15em;
    color: var(--ruby);
}

.ranking-board__row--gold {
    background: linear-gradient(90deg, rgba(212, 162, 78, .15) 0%, transparent 100%);
    border-left: 3px solid var(--gold-bright);
}
.ranking-board__row--gold .rank-pos { color: var(--gold-bright); text-shadow: 0 0 12px var(--gold); }
.ranking-board__row--gold .rank-name { color: var(--gold-bright); }

.ranking-board__row--silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, .08) 0%, transparent 100%);
    border-left: 3px solid #C0C0C0;
}
.ranking-board__row--silver .rank-pos { color: #C0C0C0; text-shadow: 0 0 12px #C0C0C0; }

.ranking-board__row--bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, .08) 0%, transparent 100%);
    border-left: 3px solid #CD7F32;
}
.ranking-board__row--bronze .rank-pos { color: #CD7F32; text-shadow: 0 0 12px #CD7F32; }

/* ====================== DOWNLOAD ====================== */
.section--download {
    padding: 8rem 2rem 10rem;
}
.download {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(200, 32, 43, .15), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(43, 108, 196, .12), transparent 60%),
        linear-gradient(180deg, rgba(58, 46, 34, .5), rgba(10, 8, 7, .9));
    border: 1px solid rgba(212, 162, 78, .35);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}
.download::before, .download::after {
    content: '';
    position: absolute;
    width: 50px; height: 50px;
    border: 2px solid var(--gold);
}
.download::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.download::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.download__halo {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 162, 78, .15), transparent 50%);
    animation: haloPulse 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes haloPulse {
    0%, 100% { opacity: .5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.download__content { position: relative; z-index: 1; }
.download__title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1rem 0 1.5rem;
    letter-spacing: .04em;
}
.download__lead {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}
.download__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}
.download__req {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 880px;
    margin: 0 auto;
}
.req {
    padding: 1rem;
    background: rgba(212, 162, 78, .04);
    border: 1px solid rgba(212, 162, 78, .15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.req__label {
    font-family: var(--f-display);
    font-size: .65rem;
    letter-spacing: .35em;
    color: var(--gold);
    text-transform: uppercase;
}
.req__value {
    font-size: .85rem;
    color: var(--cream);
    font-weight: 600;
}

/* ====================== FOOTER ====================== */
.footer {
    position: relative;
    background:
        linear-gradient(180deg, transparent 0%, rgba(10, 8, 7, .95) 30%, var(--bg-darkest) 100%);
    padding: 6rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(212, 162, 78, .2);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__top {
    max-width: var(--container-wide);
    margin: 0 auto;
}
.footer__cols {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer__col--brand .footer__logo {
    width: 90px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(212, 162, 78, .3));
}
.footer__tag {
    font-family: var(--f-display);
    font-size: .85rem;
    letter-spacing: .15em;
    color: var(--gold-bright);
    margin-bottom: 1rem;
}
.footer__copy {
    font-size: .85rem;
    color: var(--text-faint);
    line-height: 1.7;
    max-width: 380px;
}
.footer__heading {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .25em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(212, 162, 78, .15);
}
.footer__link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 0;
    font-size: .9rem;
    color: var(--text-dim);
    transition: color .25s, transform .25s, gap .25s;
}
.footer__link span {
    color: var(--gold);
    font-size: .55rem;
    transition: color .25s;
}
.footer__link:hover {
    color: var(--cream);
    transform: translateX(4px);
    gap: .8rem;
}
.footer__link:hover span { color: var(--gold-bright); }

.footer__divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}
.footer__divider::before, .footer__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.footer__divider::before { left: 0; }
.footer__divider::after  { right: 0; }
.footer__divider-ornament {
    font-family: var(--f-display);
    font-size: .75rem;
    letter-spacing: .5em;
    color: var(--gold);
    padding: 0 1.5rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .75rem;
    letter-spacing: .15em;
    color: var(--text-faint);
    text-transform: uppercase;
}
.footer__build {
    font-family: var(--f-pixel);
    font-size: .55rem;
    color: var(--gold-deep);
    letter-spacing: .15em;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) {
    .classes-strip { grid-template-columns: repeat(3, 1fr); }
    .footer__cols { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer__col:nth-child(4) { grid-column: span 3; }
    .hero__sword { display: none; }
}

@media (max-width: 880px) {
    .nav { padding: 1rem 1.25rem; }
    .nav.is-scrolled { padding: .6rem 1.25rem; }
    .nav__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-darkest);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        border-left: 1px solid rgba(212, 162, 78, .25);
        box-shadow: -20px 0 50px rgba(0,0,0,.6);
        transition: right .4s ease;
        z-index: 99;
    }
    .nav__menu.is-open { right: 0; }
    .nav__menu .nav__link { font-size: 1rem; }
    .nav__burger { display: flex; }
    .nav__actions .btn--sm:not(.btn--primary) { display: none; }
    .nav__name { display: none; }

    .hero { padding: 6rem 1.25rem 4rem; }
    .hero__logo { width: 130px; }
    .hero__status { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .status-card { padding: .85rem 1rem; }

    .section { padding: 5rem 1.25rem; }
    .section__header { margin-bottom: 3rem; }

    .classes-strip { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .class-card { padding: 1.5rem 1rem 1.25rem; }
    .class-card__sigil { font-size: 2.25rem; }
    .class-card__num { font-size: 2rem; }
    .class-card__name { font-size: .95rem; }

    .ranking-board__head, .ranking-board__row {
        grid-template-columns: 40px 1.5fr 1fr 60px;
        font-size: .8rem;
        padding: .85rem .75rem;
        gap: .5rem;
    }
    .ranking-board__head span:nth-child(5),
    .ranking-board__head span:nth-child(6),
    .ranking-board__row .rank-resets,
    .ranking-board__row .rank-guild { display: none; }

    .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer__col--brand { grid-column: span 2; }
    .footer__col:nth-child(4) { grid-column: span 2; }

    .download { padding: 3rem 1.5rem; }
    .download__buttons { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
    .hero__status { grid-template-columns: 1fr; }
    .events-grid, .news-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat { padding: 1.75rem 1rem; }
    .stat__value { font-size: 2.25rem; }
    .classes-strip { grid-template-columns: 1fr; }
    .info-panels { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr; }
    .footer__col, .footer__col--brand { grid-column: span 1; }
    .download__req { grid-template-columns: repeat(2, 1fr); }
    .btn--lg { padding: .95rem 1.5rem; font-size: .8rem; }
    .ranking-board__head, .ranking-board__row {
        grid-template-columns: 35px 1fr 80px;
        font-size: .75rem;
    }
    .ranking-board__row .rank-class { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .embers { display: none; }
    .fog { display: none; }
}
