 :root {
    color-scheme: dark;
    --bg: #090411;
    --bg2: #13081d;
    --panel: rgba(9, 4, 5, 0.86);
    --panel2: rgba(18, 7, 8, 0.84);
    --red: #9d4dff;
    --red2: #5b22c7;
    --red3: #32106e;
    --gold: #5b22c7;
    --gold2: #5b22c7;
    --blue: #1279ff;    
    --text: #f8f0e9;
    --muted: #aab2c3;
    --line: rgba(216, 173, 66, .25);
    --shadow: 0 28px 90px rgba(0,0,0,.58);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #020102;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.no-scroll { overflow: hidden; }
.page-bg, .page-bg:before, .page-bg:after, .embers, .rune-field, .scanline { position: fixed; inset: 0; pointer-events: none; }
.page-bg {
    z-index: 0;
    background-color: #020102;
    background-image:
        linear-gradient(180deg, rgba(2,1,2,.55) 0%, rgba(2,1,2,.72) 52%, rgba(2,1,2,.94) 100%),
        url("assets/images/hero-bg.jpg");
    background-repeat: no-repeat;
    background-position: center top, center top;
    background-size: cover, cover;
}
.page-bg:before {
    content: "";
    background:
        radial-gradient(circle at 50% 18%, rgba(157,77,255,.26), transparent 29%),
        radial-gradient(circle at 18% 26%, rgba(216,173,66,.18), transparent 30%),
        radial-gradient(circle at 85% 65%, rgba(115,9,15,.45), transparent 34%),
        linear-gradient(180deg, rgba(2,1,2,.35), #020102 86%);
}
.page-bg:after {
    content: "";
    opacity: .22;
    background-image:
        linear-gradient(112deg, transparent 0 48%, rgba(216,173,66,.23) 49%, transparent 50%),
        linear-gradient(62deg, transparent 0 47%, rgba(157,77,255,.22) 48%, transparent 50%);
    background-size: 260px 260px, 420px 420px;
    animation: bgDrift 34s linear infinite;
}
.rune-field {
    z-index: 1;
    opacity: .16;
    background-image:
        linear-gradient(rgba(216,173,66,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216,173,66,.16) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0 42%, transparent 80%);
}
.embers {
    z-index: 2;
    opacity: .7;

        filter:
        blur(.4px)
        drop-shadow(0 0 10px #b56cff)
        drop-shadow(0 0 25px #7a2cff);

    background-image:
        radial-gradient(circle, rgba(170,85,255,.9) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(130,60,255,.8) 0 3px, transparent 4px),
        radial-gradient(circle, rgba(255,255,255,.45) 0 2px, transparent 3px);

    background-size:
        180px 180px,
        260px 260px,
        360px 360px;

    animation: embersFloat 20s linear infinite;
}
.scanline {
    z-index: 3;
    background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 100% 4px;
    mix-blend-mode: screen;
    opacity: .12;
}
@keyframes embersFloat { to { background-position: 40px 530px, 95px 490px, 180px 590px; } }
@keyframes bgDrift { to { background-position: 260px 0, -420px 0; } }
body > header, body > main, body > footer { position: relative; z-index: 10; }
.container { width: min(1280px, calc(100% - 38px)); margin-inline: auto; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.panel {
    border: 1px solid rgba(216,173,66,.22);
    background: linear-gradient(180deg, rgba(14, 6, 7, .88), rgba(3, 2, 3, .95));
    box-shadow: var(--shadow), inset 0 0 48px rgba(157,77,255,.045);
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 82px;
    background: rgba(4,2,3,.82);
    border-top: 2px solid rgba(99, 5, 99, 0.42);
    border-bottom: 1px solid rgba(216,173,66,.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(157,77,255,.35)); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .28em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); margin-left: auto; }
.nav-link { position: relative; color: #c9bfb9; font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; transition: .2s; }
.nav-link:hover, .nav-link.active { color: #fff; text-shadow: 0 0 16px rgba(157,77,255,.55); }
.nav-link:after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; margin: auto; width: 0; height: 2px; background: var(--red); box-shadow: 0 0 20px rgba(157,77,255,.95); transition: .2s; }
.nav-link:hover:after, .nav-link.active:after { width: 100%; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
    --btn-bg: linear-gradient(135deg, #b066ff, #5b22c7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid rgba(216,173,66,.30);
    background: var(--btn-bg);
    color: white;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 14px 34px rgba(157,77,255,.24), inset 0 0 18px rgba(255,255,255,.08);
    transition: transform .18s, filter .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 42px rgba(157,77,255,.34), 0 0 28px rgba(157,77,255,.18); }
.btn-outline { --btn-bg: rgba(16,7,8,.56); color: var(--gold2); border-color: rgba(216,173,66,.36); box-shadow: inset 0 0 20px rgba(216,173,66,.08); }
.btn-discord { --btn-bg: linear-gradient(135deg, #9d4dff, #5b22c7); }
.btn-gold { --btn-bg: linear-gradient(135deg, #9d4dff, #5b22c7); color: #0b0503; }
.btn-large { min-height: 58px; padding-inline: 32px; font-size: 13px; }
.btn-full { width: 100%; }
.hero { min-height: calc(100vh - 82px); display: grid; align-items: center; padding: 86px 0 70px; position: relative; overflow: hidden; }
.hero:before { content: ""; position: absolute; left: 50%; top: 48%; width: min(980px, 92vw); height: min(980px,92vw); transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(157,77,255,.24), transparent 60%); filter: blur(2px); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); gap: 46px; align-items: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; padding: 9px 16px; border: 1px solid rgba(216,173,66,.28); background: rgba(216,173,66,.07); color: var(--gold2); font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }
.hero-logo-img { display: block; width: min(430px, 84vw); max-height: 260px; object-fit: contain; margin: 20px 0 10px; filter: drop-shadow(0 0 38px rgba(157,77,255,.42)) drop-shadow(0 18px 44px rgba(0,0,0,.78)); animation: logoFloat 5s ease-in-out infinite; }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-title { margin: 12px 0 14px; font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(46px, 6vw, 94px); line-height: .94; text-transform: uppercase; letter-spacing: .035em; text-shadow: 0 0 42px rgba(157,77,255,.34), 0 8px 24px rgba(0,0,0,.8); }
.hero-title span { color: var(--red); }
.hero-subtitle { max-width: 660px; margin: 0 0 28px; color: #d8cbc4; font-size: clamp(18px,2vw,23px); line-height: 1.45; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.server-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; max-width: 920px; }
.server-pill { padding: 17px 18px; border: 1px solid rgba(216,173,66,.20); background: linear-gradient(180deg, rgba(18,7,8,.74), rgba(3,2,3,.90)); box-shadow: inset 0 0 28px rgba(157,77,255,.055); }
.server-pill small { display: block; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.server-pill strong { display: block; margin-top: 5px; color: var(--gold2); font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 900; }
.hero-card { position: relative; padding: 30px; overflow: hidden; }
.hero-card:before, .hero-card:after { content: ""; position: absolute; width: 98px; height: 98px; border-color: var(--red); opacity: .9; }
.hero-card:before { top: 0; left: 0; border-top: 3px solid; border-left: 3px solid; }
.hero-card:after { right: 0; bottom: 0; border-right: 3px solid; border-bottom: 3px solid; }
.status-title { margin: 0 0 18px; font-family: 'Orbitron', sans-serif; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.status-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #d4c9c4; font-size: 18px; font-weight: 700; }
.status-list b { color: var(--gold2); font-family: 'Orbitron', sans-serif; font-size: 13px; }
.notice { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(157,77,255,.28); background: rgba(157,77,255,.10); color: #ffd8d4; font-weight: 800; }
.section { padding: 96px 0; position: relative; }
.section-heading { text-align: center; margin-bottom: 46px; }
.section-kicker { color: var(--red); font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.section-title { margin: 10px 0 12px; font-family: 'Cinzel', serif; font-size: clamp(40px, 6vw, 76px); line-height: 1; text-transform: uppercase; text-shadow: 0 8px 30px rgba(0,0,0,.55); }
.section-title span { color: var(--gold); }
.section-copy { margin: 0 auto; max-width: 760px; color: var(--muted); font-size: 19px; line-height: 1.55; font-weight: 700; }
.features-section { overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(216,173,66,.14), transparent 28%), linear-gradient(180deg, transparent, rgba(18,7,8,.28), transparent); }
.features-section:before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(226,226,226,.09), transparent 20%), linear-gradient(90deg, rgba(0,0,0,.45), transparent 50%, rgba(0,0,0,.45)); opacity: .7; }
.feature-panels { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.feature-panel { min-height: 520px; padding: 30px; border: 1px solid rgba(216,173,66,.26); background: linear-gradient(180deg, rgba(7,5,4,.88), rgba(1,1,1,.94)); box-shadow: var(--shadow), inset 0 0 46px rgba(216,173,66,.035); position: relative; overflow: hidden; }
.feature-panel:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 8%, rgba(216,173,66,.12), transparent 28%), linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.feature-panel > * { position: relative; z-index: 1; }
.feature-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; height: 32px; padding: 0 20px; border: 1px solid rgba(216,173,66,.32); background: rgba(216,173,66,.11); border-radius: 999px; color: #6608b3; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.feature-badge.blue { background: rgba(18,121,255,.18); border-color: rgba(18,121,255,.30); color: #9cc7ff; }
.feature-panel h3 { margin: 26px 0 26px; font-family: 'Orbitron', sans-serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -.04em; color: #fff; }
.feature-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.feature-list li { color: var(--muted); font-size: 18px; font-weight: 800; line-height: 1.45; }
.feature-list li strong { color: #bf47dd; }
.destiny { overflow: hidden; }
.destiny:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(18,121,255,.11), transparent 35%), radial-gradient(circle at 50% 70%, rgba(157,77,255,.16), transparent 42%); }
.class-gallery { position: relative; display: grid; grid-template-columns: repeat(9, minmax(130px, 1fr)); gap: 14px; align-items: end; }
.class-card-img { position: relative; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; padding: 0; transition: transform .22s ease, filter .22s ease; }
.class-card-img:hover { transform: translateY(-10px) scale(1.03); filter: drop-shadow(0 0 28px rgba(18,121,255,.48)) drop-shadow(0 0 36px rgba(157,77,255,.22)); z-index: 5; }
.class-card-img img { max-width: 100%; height: 410px; object-fit: contain; filter: drop-shadow(0 22px 32px rgba(0,0,0,.55)); }
.class-gallery-footer { margin-top: 32px; text-align: center; color: var(--muted); font-size: 18px; font-weight: 800; }
.ranking-teaser { margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rank-box { padding: 26px; }
.rank-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.rank-row strong { color: var(--gold2); font-family: 'Orbitron', sans-serif; }
.rank-row small { color: var(--muted); font-weight: 800; }
.download-panel { margin-top: 24px; padding: clamp(30px, 5vw, 54px); display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; border: 1px solid rgba(157,77,255,.35); background: radial-gradient(circle at 15% 50%, rgba(157,77,255,.28), transparent 30%), linear-gradient(135deg, rgba(26,7,10,.90), rgba(4,2,3,.96)); box-shadow: var(--shadow), inset 0 0 60px rgba(216,173,66,.055); }
.download-panel h2 { margin: 0 0 10px; font-family: 'Cinzel', serif; font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; }
.download-panel p { margin: 0; color: #d5c5bd; font-size: 19px; font-weight: 700; line-height: 1.5; }
.download-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.footer { padding: 46px 0; border-top: 1px solid rgba(216,173,66,.18); background: rgba(3,2,4,.74); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--gold2); }
.disclaimer { max-width: 780px; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #8f817d; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(3,2,4,.82); backdrop-filter: blur(10px); }
.modal.active { display: flex; }
.modal-content { width: min(560px,100%); max-height: 90vh; overflow: auto; padding: 30px; }
.download-modal-content { width: min(820px,100%); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal-header h2 { margin: 0; font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: .06em; }
.close { border: 0; background: transparent; color: var(--gold2); font-size: 32px; line-height: 1; cursor: pointer; }
.slide-image-modal {
    z-index: 125;
    padding: clamp(12px, 2.4vw, 34px);
    background: rgba(3, 1, 2, .92);
}
.slide-image-shell {
    position: relative;
    display: grid;
    place-items: center;
    width: min(1500px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
}
.slide-image-preview {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 24px);
    object-fit: contain;
    border: 1px solid rgba(216, 173, 66, .24);
    box-shadow: 0 28px 86px rgba(0, 0, 0, .82), 0 0 44px rgba(232, 56, 48, .20);
    background: #020102;
}
.slide-image-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 236, 174, .55);
    background: rgba(4, 2, 4, .86);
    color: #ffe8a3;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .58), 0 0 18px rgba(216, 173, 66, .22);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.slide-image-close:hover,
.slide-image-close:focus-visible {
    background: rgba(232, 56, 48, .92);
    border-color: rgba(255, 238, 190, .90);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}
.opening-popup {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 34px);
    background: rgba(3, 1, 2, .88);
    backdrop-filter: blur(10px);
}
.opening-popup.is-active { display: flex; }
.opening-popup-frame {
    position: relative;
    max-width: min(1120px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
}
.opening-popup-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 28px);
    object-fit: contain;
    border: 1px solid rgba(216, 173, 66, .24);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .82), 0 0 42px rgba(232, 56, 48, .22);
}
.opening-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 236, 174, .55);
    background: rgba(4, 2, 4, .86);
    color: #ffe8a3;
    display: grid;
    place-items: center;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .58), 0 0 18px rgba(216, 173, 66, .22);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.opening-popup-close:hover,
.opening-popup-close:focus-visible {
    background: rgba(232, 56, 48, .92);
    border-color: rgba(255, 238, 190, .90);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}
.modal-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.form-group input { width: 100%; min-height: 52px; border: 1px solid rgba(216,173,66,.22); background: rgba(3,2,4,.74); color: #fff; padding: 0 16px; outline: none; }
.form-group input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(157,77,255,.14); }
.form-extras { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-weight: 700; }
.modal-footer, .auth-links { margin-top: 18px; color: var(--muted); text-align: center; font-weight: 700; }
.dark-link { color: var(--gold2); font-weight: 900; }
.download-list { display: grid; gap: 14px; }
.download-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid rgba(216,173,66,.16); background: rgba(255,255,255,.035); }
.download-icon { font-size: 30px; }
.download-item h3 { margin: 0 0 4px; font-family: 'Orbitron', sans-serif; font-size: 15px; text-transform: uppercase; }
.download-item p { margin: 0; color: var(--muted); font-weight: 700; }
.auth-page, .page-shell { min-height: 100vh; padding: 56px 0; display: grid; align-items: center; }
.page-shell { display: block; padding-top: 48px; }
.auth-wrap { width: min(720px, calc(100% - 32px)); margin: auto; }
.auth-logo { display: block; width: min(340px, 80vw); max-height: 210px; object-fit: contain; margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(157,77,255,.42)); }
.auth-card { padding: clamp(24px, 4vw, 40px); }
.auth-title { margin: 0 0 10px; font-family: 'Cinzel', serif; font-size: clamp(34px, 5vw, 56px); text-align: center; text-transform: uppercase; }
.auth-subtitle { margin: 0 auto 24px; text-align: center; color: var(--muted); font-size: 18px; font-weight: 700; max-width: 560px; }
.message { padding: 13px 15px; border: 1px solid; font-weight: 800; line-height: 1.35; }
.message.error { border-color: rgba(157,77,255,.38); background: rgba(157,77,255,.11); color: #ffd8d4; }
.message.success { border-color: rgba(48,232,130,.38); background: rgba(48,232,130,.10); color: #c5ffd9; }
.message.info { border-color: rgba(216,173,66,.34); background: rgba(216,173,66,.10); color: #ffeeb6; }
.user-panel h2 { margin-top: 0; }
.user-links { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.user-links a { display: block; padding: 15px 16px; border: 1px solid rgba(216,173,66,.18); background: rgba(255,255,255,.035); color: #f6e7c2; font-weight: 900; }
.user-links a:hover { border-color: rgba(157,77,255,.55); }
.page-head { text-align: center; margin-bottom: 34px; }
.page-title { margin: 0 0 10px; font-family: 'Cinzel', serif; font-size: clamp(42px, 6vw, 74px); text-transform: uppercase; }
.page-subtitle { margin: 0 auto; max-width: 720px; color: var(--muted); font-size: 19px; font-weight: 700; line-height: 1.5; }
.placeholder-card { padding: clamp(24px, 4vw, 42px); text-align: center; }
.placeholder-card h2 { font-family: 'Orbitron', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.mobile-notice { display: none; position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 80; padding: 14px; border: 1px solid rgba(157,77,255,.36); background: rgba(12,4,6,.94); color: #ffd8d3; text-align: center; font-weight: 800; box-shadow: var(--shadow); }
@media (max-width: 1160px) { .class-gallery { grid-template-columns: repeat(5, minmax(130px,1fr)); } .class-card-img { min-height: 390px; } .class-card-img img { height: 380px; } }
@media (max-width: 980px) {
    .topbar { height: auto; position: relative; } .topbar-inner { padding: 18px 0; align-items: flex-start; flex-direction: column; } .nav, .top-actions { flex-wrap: wrap; } .nav-link:after { bottom: -8px; }
    .hero-grid, .feature-panels, .ranking-teaser, .download-panel { grid-template-columns: 1fr; }
    .feature-panel { min-height: auto; }
    .class-gallery { grid-template-columns: repeat(3, minmax(120px,1fr)); }
}
@media (max-width: 640px) {
    .container { width: min(100% - 24px, 1220px); } .hero { padding-top: 52px; } .server-strip, .form-grid { grid-template-columns: 1fr; } .btn { width: 100%; clip-path: polygon(6% 0,100% 0,94% 100%,0 100%); } .hero-actions, .download-buttons { width: 100%; }
    .class-gallery { grid-template-columns: repeat(2, minmax(120px,1fr)); gap: 8px; } .class-card-img { min-height: 310px; } .class-card-img img { height: 300px; }
    .download-item { grid-template-columns: 1fr; } .footer-inner { flex-direction: column; } .mobile-notice { display: block; }
}


/* v4 hero logo alignment: the logo is now centered as an independent visual block above all content. */
.hero { min-height: calc(100vh - 82px); display: block; padding: clamp(56px, 7vw, 92px) 0 74px; }
.hero-shell { position: relative; z-index: 1; }
.hero-logo-stage { display: flex; justify-content: center; align-items: center; width: 100%; margin: 0 auto clamp(14px, 2.5vw, 24px); }
.hero-logo-stage .hero-logo-img { width: min(520px, 86vw); max-height: 330px; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 0 44px rgba(157,77,255,.48)) drop-shadow(0 22px 56px rgba(0,0,0,.88)); }
.hero-content-panel { max-width: 920px; margin: 0 auto; text-align: center; }
.hero-content-panel .eyebrow { margin-inline: auto; }
.hero-content-panel .hero-title { margin-top: 18px; }
.hero-content-panel .hero-subtitle { margin-left: auto; margin-right: auto; max-width: 780px; }
.hero-content-panel .hero-actions { justify-content: center; }
.hero-content-panel .server-strip { margin-left: auto; margin-right: auto; }
.hero-status-card { display: none; }
.hero-status-card { max-width: 780px; margin: clamp(28px, 4vw, 40px) auto 0; }
.hero-status-card .status-title { text-align: center; }
.hero-feature-card {
    max-width: min(980px, 100%);
    margin: clamp(28px, 4vw, 40px) auto 0;
    padding: clamp(16px, 2.4vw, 24px);
    border-color: rgba(216,173,66,.32);
    background: linear-gradient(180deg, rgba(10,16,29,.88), rgba(4,6,13,.95));
    box-shadow: 0 28px 70px rgba(0,0,0,.55), inset 0 0 44px rgba(216,173,66,.05);
}
.hero-feature-card .status-title {
    text-align: center;
    color: var(--gold2);
    margin-bottom: 16px;
}
.feature-slider {
    position: relative;
    isolation: isolate;
}
.feature-slider-viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    border: 1px solid rgba(216,173,66,.38);
    background: rgba(4,8,15,.82);
    box-shadow: inset 0 0 36px rgba(0,0,0,.54), 0 18px 42px rgba(0,0,0,.36);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.feature-slider-viewport.is-dragging {
    cursor: grabbing;
}
.feature-slider-track {
    height: 100%;
    display: flex;
    transition: transform .42s ease;
    will-change: transform;
}
.feature-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}
.feature-slide:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.22));
    pointer-events: none;
}
.feature-slide img,
.feature-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}
.feature-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 58px;
    border: 1px solid rgba(216,173,66,.45);
    background: rgba(6,10,18,.76);
    color: var(--gold2);
    font-size: 42px;
    line-height: 1;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.feature-slider-nav:hover,
.feature-slider-nav:focus-visible {
    background: rgba(216,173,66,.18);
    outline: none;
}
.feature-slider-prev { left: 12px; }
.feature-slider-next { right: 12px; }
.feature-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.feature-slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(216,173,66,.42);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(216,173,66,.24);
}
.feature-slider-dots button.is-active {
    width: 14px;
    height: 14px;
    background: var(--gold2);
    box-shadow: 0 0 18px rgba(216,173,66,.86);
}
@media (max-width: 640px) {
    .hero { padding-top: 42px; }
    .hero-logo-stage .hero-logo-img { width: min(420px, 92vw); max-height: 270px; }
    .hero-status-card, .hero-feature-card { margin-top: 24px; }
    .hero-feature-card { padding: 12px; }
    .feature-slider-viewport { min-height: 190px; }
    .feature-slider-nav { width: 34px; height: 48px; font-size: 34px; }
    .feature-slider-prev { left: 8px; }
    .feature-slider-next { right: 8px; }
}

/* v6 auth flow, ranking, and class video modal */
.user-chip { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px; border:1px solid rgba(216,173,66,.26); background:rgba(216,173,66,.08); color:var(--muted); font-weight:900; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.user-chip b { color:var(--gold2); }
.home-message { margin:0 auto 18px; max-width:720px; padding:13px 16px; border:1px solid rgba(76, 230, 151, .28); background:rgba(35, 180, 102, .10); color:#b8ffd7; font-weight:900; text-align:center; }
.class-card-img { border:0; background:transparent; cursor:pointer; font:inherit; }
.class-card-img:focus-visible { outline:2px solid var(--gold2); outline-offset:6px; }
.class-video-content { width:min(920px, calc(100% - 32px)); }
.class-video-player { width:100%; max-height:68vh; display:block; background:#000; border:1px solid rgba(216,173,66,.24); box-shadow:0 18px 50px rgba(0,0,0,.55); }
.ranking-grid-live { display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.rank-live-box { padding:28px; overflow:hidden; }
.ranking-table-wrap { width:100%; overflow-x:auto; }
.ranking-table { width:100%; border-collapse:collapse; min-width:520px; }
.ranking-table th, .ranking-table td { padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; vertical-align:middle; }
.ranking-table th { color:var(--gold2); font-family:'Orbitron',sans-serif; font-size:11px; letter-spacing:.12em; text-transform:uppercase; }
.ranking-table td { color:#efe6df; font-size:17px; font-weight:800; }
.ranking-table td:nth-child(3), .ranking-table td:nth-child(4), .ranking-table td:nth-child(5) { color:#d9c6bd; font-family:'Orbitron',sans-serif; font-size:13px; }
.ranking-table strong { display:block; color:#fff; font-family:'Orbitron',sans-serif; font-size:14px; letter-spacing:.04em; }
.ranking-table small { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:800; }
.rank-pos { color:var(--gold2)!important; font-family:'Orbitron',sans-serif!important; font-weight:900!important; }
.rank-empty { text-align:center!important; color:var(--muted)!important; padding:30px!important; }
@media (max-width: 980px) { .ranking-grid-live { grid-template-columns:1fr; } .user-chip { width:100%; justify-content:center; } }

/* Homepage online counter â€” forced green (moved from index.php inline <style>) */
[data-online-count],
.server-pill [data-online-count],
strong[data-online-count],
.online-count-green {
    color: #22c55e !important;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.95), 0 0 18px rgba(34, 197, 94, 0.55) !important;
}

/* v7 SEA time and vote button */
.server-time-value {
    color: var(--gold2) !important;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(216, 173, 66, 0.55);
}

/* v8 top SEA time and vote cooldown UI */
.top-sea-time {
    margin-left: auto;
    color: var(--muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}
.top-sea-time span {
    color: var(--gold2);
    text-shadow: 0 0 10px rgba(216, 173, 66, .48);
}
.topbar-inner .nav { margin-left: 18px; }
.hero-content-panel .server-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 920px;
}
.vote-status-card { max-width: 780px; margin: 0 auto; text-align: center; }
.vote-status-card .auth-subtitle { margin-bottom: 18px; }
.vote-countdown {
    margin: 18px auto 22px;
    color: var(--gold2);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: .08em;
    text-shadow: 0 0 18px rgba(216, 173, 66, .35);
}
.vote-note { color: var(--muted); font-size: 16px; font-weight: 800; line-height: 1.5; }
@media (max-width: 980px) {
    .top-sea-time { width: 100%; margin-left: 0; order: 2; }
    .topbar-inner .nav { margin-left: 0; }
    .hero-content-panel .server-strip { grid-template-columns: 1fr; }
}

.vote-countdown-hidden { display: none; }

/* v9 ranking Character/Guild tabs, class + nation badges */
.rank-tabs { position: relative; }
.rank-tab-bar {
    display: flex;
    width: fit-content;
    gap: 6px;
    margin: 0 auto 26px;
    padding: 6px;
    border: 1px solid rgba(216,173,66,.26);
    background: linear-gradient(180deg, rgba(18,7,8,.72), rgba(3,2,3,.9));
    box-shadow: inset 0 0 28px rgba(157,77,255,.06);
}
.rank-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    padding: 0 26px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #c9bfb9;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: color .2s, background .2s, box-shadow .2s;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.rank-tab:hover { color: #fff; }
.rank-tab.is-active {
    background: linear-gradient(135deg, #f1d37a, #a56d1e);
    color: #0b0503;
    box-shadow: 0 10px 26px rgba(157,77,255,.2), inset 0 0 16px rgba(255,255,255,.12);
}
.rank-tab:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

.ranking-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ranking-filter-field {
    flex: 1 1 190px;
    min-width: 180px;
}
.ranking-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ranking-filter-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(216,173,66,.24);
    background: rgba(3,2,4,.74);
    color: #fff;
    padding: 0 12px;
    outline: none;
}
.ranking-filter-field select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(157,77,255,.14);
}
.ranking-filter-field select option {
    background: #080406;
    color: #fff;
}
.ranking-filter-submit,
.ranking-filter-reset {
    min-height: 44px;
    padding-inline: 18px;
}
.rank-character {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}
.rank-character strong {
    color: inherit;
}
.rank-online-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 0 3px rgba(107,114,128,.16);
}
.rank-character.is-online,
.rank-character.is-online strong {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34,197,94,.76), 0 0 18px rgba(34,197,94,.36);
}
.rank-character.is-online .rank-online-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18), 0 0 14px rgba(34,197,94,.86);
}

.class-badge, .nation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
}
.class-badge { color: #ffe08a; background: rgba(216,173,66,.10); }
.nation-badge { background: rgba(255,255,255,.035); }
.nation-neutral { color: #9aa5b1; }
.nation-capella { color: #b47cff; text-shadow: 0 0 10px rgba(180,124,255,.45); }
.nation-procyon { color: #56a8ff; text-shadow: 0 0 10px rgba(86,168,255,.45); }
.nation-gm { color: #34d17a; text-shadow: 0 0 10px rgba(52,209,122,.45); }
.ranking-table td.rank-power { color: var(--gold2); font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 900; white-space: nowrap; }
@media (max-width: 640px) {
    .rank-tab-bar { width: 100%; }
    .rank-tab { flex: 1; min-width: 0; padding: 0 10px; }
    .ranking-filter-submit,
    .ranking-filter-reset { flex: 1 1 150px; }
}

/* v11 home Server Features coverflow */
.hero-feature-card {
    max-width: min(1440px, 100%);
    margin: clamp(28px, 4vw, 44px) auto 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    --drag-offset: 0px;
}
.hero-feature-card .status-title {
    text-align: center;
    color: var(--gold2);
    margin-bottom: 12px;
}
.feature-slider {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: 10px 0 0;
}
.feature-slider-viewport {
    position: relative;
    overflow: visible;
    height: clamp(390px, 45vw, 560px);
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.feature-slider-stage {
    position: relative;
    height: 100%;
}
.feature-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(845px, 78vw);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.72);
    filter: blur(4px) brightness(.45);
    transition: transform .42s ease, opacity .42s ease, filter .42s ease;
    box-shadow: 0 28px 70px rgba(0,0,0,.58);
}
.hero-feature-card.is-dragging .feature-slide {
    transition: none;
}
.feature-slide.is-active {
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(-50% + var(--drag-offset)), -50%) scale(1);
    filter: none;
}
.feature-slide.is-prev {
    z-index: 3;
    opacity: .48;
    pointer-events: auto;
    transform: translate(calc(-50% - min(530px, 43vw) + var(--drag-offset)), calc(-50% + 56px)) scale(.82);
}
.feature-slide.is-next {
    z-index: 3;
    opacity: .48;
    pointer-events: auto;
    transform: translate(calc(-50% + min(530px, 43vw) + var(--drag-offset)), calc(-50% + 56px)) scale(.82);
}
.feature-slide.is-hidden {
    z-index: 1;
    opacity: 0;
}
.feature-slide img,
.feature-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    background: #020102;
}
.feature-slide img { cursor: zoom-in; }
.feature-slide:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.18));
}
.feature-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 42px;
    height: 58px;
    border: 1px solid rgba(216,173,66,.34);
    background: rgba(6,10,18,.58);
    color: var(--gold2);
    font-size: 42px;
    line-height: 1;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.feature-slider-prev { left: max(12px, calc(50% - 500px)); }
.feature-slider-next { right: max(12px, calc(50% - 500px)); }
.feature-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.feature-slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(216,173,66,.42);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(216,173,66,.24);
}
.feature-slider-dots button.is-active {
    width: 14px;
    height: 14px;
    background: var(--gold2);
    box-shadow: 0 0 18px rgba(216,173,66,.86);
}
@media (max-width: 760px) {
    .feature-slider-viewport { height: clamp(280px, 68vw, 420px); }
    .feature-slide { width: min(92vw, 640px); }
    .feature-slide.is-prev {
        transform: translate(calc(-50% - 48vw + var(--drag-offset)), calc(-50% + 32px)) scale(.78);
    }
    .feature-slide.is-next {
        transform: translate(calc(-50% + 48vw + var(--drag-offset)), calc(-50% + 32px)) scale(.78);
    }
    .feature-slider-prev { left: 8px; }
    .feature-slider-next { right: 8px; }
}

/* v13 destiny class showcase */
.destiny {
    isolation: isolate;
    overflow: hidden;
    padding: clamp(86px, 9vw, 126px) 0 clamp(96px, 10vw, 140px);
    background:
        linear-gradient(180deg, rgba(2,1,2,.08), rgba(21,5,10,.62) 48%, rgba(3,2,4,.20)),
        linear-gradient(112deg, rgba(157,77,255,.16), transparent 34%, rgba(18,121,255,.12) 68%, transparent);
}
.destiny:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .54;
    background:
        repeating-linear-gradient(90deg, rgba(216,173,66,.12) 0 1px, transparent 1px 118px),
        repeating-linear-gradient(0deg, rgba(157,77,255,.09) 0 1px, transparent 1px 86px),
        linear-gradient(135deg, transparent 0 41%, rgba(216,173,66,.20) 41% 41.3%, transparent 41.3% 58%, rgba(18,121,255,.16) 58% 58.25%, transparent 58.25%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}
.destiny:after {
    content: "";
    position: absolute;
    inset: auto -8vw 0;
    height: 42%;
    background:
        linear-gradient(90deg, transparent, rgba(157,77,255,.24), transparent),
        linear-gradient(180deg, transparent, rgba(0,0,0,.64));
    transform: skewY(-3deg);
    transform-origin: 100% 100%;
    opacity: .86;
}
.destiny .container,
.destiny .section-heading,
.destiny-showcase {
    position: relative;
    z-index: 1;
}
.destiny .section-heading {
    max-width: 880px;
    margin: 0 auto 42px;
}
.destiny .section-kicker {
    color: var(--gold2);
    text-shadow: 0 0 18px rgba(216,173,66,.46);
}
.destiny .section-title {
    margin-top: 12px;
    font-size: clamp(46px, 6.5vw, 88px);
    letter-spacing: .02em;
}
.destiny .section-title span {
    color: transparent;
    background: linear-gradient(180deg, #fff6c9, var(--gold) 58%, #8f5818);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(216,173,66,.26));
}
.destiny .section-copy {
    max-width: 760px;
    color: #d9d6df;
}
.destiny-showcase {
    padding: clamp(16px, 2.3vw, 30px);
    border: 1px solid rgba(216,173,66,.24);
    background:
        linear-gradient(180deg, rgba(12,8,11,.72), rgba(2,2,4,.86)),
        linear-gradient(112deg, rgba(255,255,255,.05), transparent 36%, rgba(157,77,255,.08));
    box-shadow: 0 34px 90px rgba(0,0,0,.58), inset 0 0 54px rgba(216,173,66,.035);
}
.destiny-showcase:before,
.destiny-showcase:after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    border-color: rgba(216,173,66,.72);
    pointer-events: none;
}
.destiny-showcase:before {
    top: -1px;
    left: -1px;
    border-top: 2px solid;
    border-left: 2px solid;
}
.destiny-showcase:after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid;
    border-bottom: 2px solid;
}
.destiny-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    color: #cfd7e8;
    font-weight: 800;
}
.destiny-showcase-head span,
.destiny-showcase-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}
.destiny-showcase-head span {
    padding: 0 16px;
    border-left: 3px solid var(--red);
    color: var(--gold2);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(216,173,66,.38);
}
.destiny-showcase-head strong {
    color: #efe7de;
    font-size: 17px;
    letter-spacing: .03em;
}
.class-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(9, minmax(96px, 1fr));
    gap: clamp(8px, 1vw, 14px);
    align-items: stretch;
}
.class-card-img {
    --class-accent: #e83830;
    --class-accent-soft: rgba(157,77,255,.34);
    position: relative;
    min-height: clamp(410px, 35vw, 500px);
    display: block;
    padding: 0;
    border: 1px solid rgba(216,173,66,.20);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 23%),
        linear-gradient(180deg, rgba(16,8,12,.94), rgba(3,2,4,.98));
    box-shadow: inset 0 0 36px rgba(255,255,255,.035), 0 20px 38px rgba(0,0,0,.34);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    color: #fff;
    cursor: pointer;
    font: inherit;
    overflow: hidden;
    isolation: isolate;
    transform-origin: center bottom;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}
.class-card-img:nth-child(3n+2) { --class-accent: #5b22c7; --class-accent-soft: rgba(216,173,66,.35); }
.class-card-img:nth-child(3n) { --class-accent: #55d4ff; --class-accent-soft: rgba(85,212,255,.28); }
.class-card-img:nth-child(5n) { --class-accent: #8ef0b2; --class-accent-soft: rgba(142,240,178,.26); }
.class-card-img:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, var(--class-accent-soft), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%, rgba(0,0,0,.34));
    opacity: .72;
    transition: opacity .24s ease;
}
.class-card-img:after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 72px;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, var(--class-accent), transparent);
    box-shadow: 0 0 18px var(--class-accent);
    opacity: .58;
    transition: opacity .24s ease, transform .24s ease;
}
.class-card-top {
    position: absolute;
    top: 12px;
    left: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.class-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    border: 1px solid rgba(255,240,178,.42);
    color: var(--gold2);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    background: rgba(0,0,0,.34);
    box-shadow: inset 0 0 14px rgba(216,173,66,.10);
}
.class-role {
    min-width: 0;
    max-width: calc(100% - 38px);
    color: #d7dfed;
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.08;
    text-align: right;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.class-portrait {
    position: absolute;
    inset: 48px -14px 78px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: transform .28s ease, filter .28s ease;
}
.class-portrait:before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64%;
    height: 66%;
    transform: translateX(-50%) skewX(-9deg);
    background:
        linear-gradient(180deg, transparent, var(--class-accent-soft)),
        repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.10) 14px 15px);
    opacity: .54;
}
.class-portrait img {
    position: relative;
    z-index: 1;
    width: min(172px, 142%);
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 22px 28px rgba(0,0,0,.62)) drop-shadow(0 0 18px var(--class-accent-soft));
    transition: transform .28s ease, filter .28s ease;
}
.class-info {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 14px;
    z-index: 4;
    display: grid;
    gap: 8px;
}
.class-name {
    min-height: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(0,0,0,.9), 0 0 16px var(--class-accent-soft);
}
.class-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid rgba(255,240,178,.24);
    color: var(--gold2);
    background: rgba(0,0,0,.30);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
    transition: background .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.class-card-img:hover,
.class-card-img:focus-visible {
    z-index: 6;
    transform: translateY(-14px) scale(1.035);
    border-color: rgba(255,240,178,.72);
    box-shadow: 0 30px 58px rgba(0,0,0,.48), 0 0 34px var(--class-accent-soft), inset 0 0 46px rgba(255,255,255,.045);
    filter: brightness(1.08);
}
.class-card-img:hover:before,
.class-card-img:focus-visible:before {
    opacity: 1;
}
.class-card-img:hover:after,
.class-card-img:focus-visible:after {
    opacity: .96;
    transform: scaleX(1.12);
}
.class-card-img:hover .class-portrait,
.class-card-img:focus-visible .class-portrait {
    transform: translateY(-8px) scale(1.055);
}
.class-card-img:hover .class-portrait img,
.class-card-img:focus-visible .class-portrait img {
    filter: drop-shadow(0 24px 32px rgba(0,0,0,.70)) drop-shadow(0 0 28px var(--class-accent-soft));
}
.class-card-img:hover .class-cta,
.class-card-img:focus-visible .class-cta {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,.18), var(--class-accent));
    box-shadow: 0 0 18px var(--class-accent-soft);
}
.class-card-img:focus-visible {
    outline: 2px solid var(--gold2);
    outline-offset: 4px;
}
@media (max-width: 1180px) {
    .class-gallery { grid-template-columns: repeat(5, minmax(118px, 1fr)); }
    .class-card-img { min-height: 430px; }
}
@media (max-width: 980px) {
    .destiny-showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .destiny-showcase-head strong {
        padding-left: 16px;
    }
    .class-gallery { grid-template-columns: repeat(3, minmax(118px, 1fr)); }
}
@media (max-width: 640px) {
    .destiny { padding: 72px 0 86px; }
    .destiny .section-heading { margin-bottom: 30px; }
    .destiny-showcase { padding: 14px; }
    .destiny-showcase-head { margin-bottom: 14px; gap: 10px; }
    .destiny-showcase-head span { padding-left: 12px; font-size: 10px; }
    .destiny-showcase-head strong { padding-left: 12px; font-size: 15px; line-height: 1.35; }
    .class-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .class-card-img { min-height: 336px; }
    .class-card-top { top: 10px; left: 9px; right: 9px; }
    .class-role { display: none; }
    .class-portrait { inset: 42px -8px 70px; }
    .class-portrait img { width: min(150px, 138%); }
    .class-info { left: 9px; right: 9px; bottom: 12px; gap: 6px; }
    .class-name { min-height: 30px; font-size: 12px; }
    .class-cta { min-height: 28px; font-size: 9px; }
}
@media (max-width: 390px) {
    .class-card-img { min-height: 314px; }
    .class-portrait { bottom: 66px; }
}

/* v14 Character showcase inspired by a cinematic CABAL class selector */
.destiny-character {
    min-height: 700px;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 5.4vw, 86px) 0 42px;
    background:
        linear-gradient(180deg, rgba(1,4,8,.94), rgba(4,13,24,.82) 46%, rgba(2,8,16,.94)),
        url("background.jpg") center top / cover no-repeat;
}
.destiny-character:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(1,3,7,.68), rgba(2,8,16,.24) 34%, rgba(1,4,9,.58)),
        repeating-linear-gradient(90deg, transparent 0 78px, rgba(157,77,255,.075) 79px 80px),
        linear-gradient(180deg, rgba(0,0,0,.40), transparent 30%, rgba(0,0,0,.28));
}
.destiny-character:after {
    display: none;
}
.character-sigil {
    position: absolute;
    left: 50%;
    top: 44%;
    z-index: 0;
    transform: translate(-50%, -50%);
    color: transparent;
    -webkit-text-stroke: 1px rgba(157,77,255,.12);
    font-family: 'Cinzel', serif;
    font-size: clamp(190px, 25vw, 380px);
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: 1;
    opacity: .62;
    pointer-events: none;
}
.character-stage {
    position: relative;
    z-index: 1;
    width: min(1420px, calc(100% - 34px));
    min-height: clamp(560px, 48vw, 650px);
}
.character-art-panel {
    position: absolute;
    left: clamp(-58px, -2vw, -18px);
    top: -44px;
    bottom: 0;
    width: min(560px, 40vw);
    pointer-events: none;
}
.character-art-panel:before {
    display: none;
}
.character-art-panel:after {
    display: none;
}
.character-featured-art {
    position: absolute;
    left: 52%;
    bottom: 28px;
    width: min(610px, 43vw);
    max-height: 740px;
    object-fit: contain;
    object-position: bottom center;
    transform: translateX(-50%);
    transform-origin: center bottom;
    filter: drop-shadow(0 34px 38px rgba(0,0,0,.68)) drop-shadow(0 0 30px rgba(157,77,255,.46));
    opacity: .94;
    transition: opacity .22s ease, filter .22s ease, transform .22s ease;
    -webkit-mask-image: linear-gradient(180deg, #000 0 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0 78%, transparent 100%);
}
.character-content {
    position: absolute;
    z-index: 8;
    top: 12px;
    left: min(330px, 23vw);
    right: 7%;
    display: grid;
    justify-items: center;
    text-align: center;
}
.character-kicker {
    color: var(--gold2);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .54em;
    line-height: 1;
    text-transform: uppercase;
    text-indent: .54em;
    text-shadow: 0 0 20px rgba(216,173,66,.36);
}
.character-lead {
    max-width: 850px;
    margin: 13px auto 46px;
    color: rgba(188,205,224,.74);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}
.character-title {
    margin: 0 0 16px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: clamp(40px, 4.5vw, 66px);
    font-weight: 700;
    letter-spacing: .07em;
    line-height: .95;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(168,70,37,.38), 0 0 26px rgba(157,77,255,.30);
}
.character-description {
    max-width: 930px;
    min-height: 78px;
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 500;
    line-height: 1.42;
    text-shadow: 0 2px 14px rgba(0,0,0,.72);
}
.character-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.character-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(216,173,66,.30);
    color: var(--gold2);
    background: rgba(0,0,0,.24);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.character-preview-btn {
    position: relative;
    z-index: 9;
    min-height: 42px;
    padding-inline: 22px;
    font-size: 11px;
}
.character-roster {
    position: absolute;
    left: min(240px, 17vw);
    right: 52px;
    bottom: 6px;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(4px, .62vw, 12px);
    padding: 36px 4px 28px;
    pointer-events: none;
}
.character-roster:before {
    display: none;
}
.class-roster-card {
    pointer-events: auto;
    flex: 0 0 clamp(98px, 7vw, 138px);
    width: clamp(98px, 7vw, 138px);
    height: clamp(230px, 18.2vw, 304px);
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    color: #fff;
    opacity: .66;
    overflow: visible;
    transform: translateY(14px) scale(.94);
    transition: transform .24s ease, opacity .24s ease, filter .24s ease;
}
.class-roster-card:before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 2%;
    height: 24%;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(157,77,255,.24), transparent 70%);
    opacity: 0;
    transition: opacity .24s ease;
}
.class-roster-card:after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -10px;
    z-index: 5;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff4c0, transparent);
    box-shadow: 0 0 18px rgba(216,173,66,.95), 0 0 30px rgba(157,77,255,.70);
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity .24s ease, transform .24s ease;
}
.class-roster-card .class-portrait {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
    transform: none;
}
.class-roster-card .class-portrait:before {
    display: none;
}
.class-roster-card .class-portrait img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 22px 24px rgba(0,0,0,.66));
}
.class-roster-card .class-info {
    display: none;
}
.class-roster-card .class-name {
    min-height: 0;
    display: block;
    color: rgba(255,255,255,.88);
    font-family: 'Cinzel', serif;
    font-size: clamp(8px, .78vw, 11px);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,.88);
}
.class-roster-card .class-role {
    display: block;
    max-width: none;
    color: rgba(255,240,178,.68);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(6px, .52vw, 8px);
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}
.class-roster-card:hover,
.class-roster-card:focus-visible,
.class-roster-card.is-active {
    opacity: 1;
    filter: brightness(1.1);
}
.class-roster-card:hover,
.class-roster-card:focus-visible {
    z-index: 7;
    transform: translateY(-8px) scale(1.04);
}
.class-roster-card.is-active {
    z-index: 8;
    transform: translateY(-20px) scale(1.16);
}
.class-roster-card.is-active:before,
.class-roster-card.is-active:after {
    opacity: 1;
    transform: scaleX(1);
}
.class-roster-card.is-active .class-portrait img {
    filter: drop-shadow(0 28px 30px rgba(0,0,0,.74)) drop-shadow(0 0 20px rgba(157,77,255,.78));
}
.class-roster-card:focus-visible {
    outline: 2px solid var(--gold2);
    outline-offset: 9px;
}
@media (max-width: 1160px) {
    .destiny-character { min-height: 700px; }
    .character-art-panel { left: -54px; width: 440px; opacity: .9; }
    .character-content { left: 200px; right: 4%; }
    .character-roster { left: 96px; right: 24px; gap: 6px; }
    .class-roster-card { flex-basis: 104px; width: 104px; height: 242px; }
}
@media (max-width: 860px) {
    .destiny-character {
        min-height: 0;
        padding: 70px 0 78px;
    }
    .character-stage {
        min-height: 0;
        display: grid;
        gap: 22px;
    }
    .character-art-panel {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: min(330px, 86vw);
        height: 330px;
        margin: -8px auto -48px;
        opacity: .62;
    }
    .character-featured-art {
        left: 50%;
        width: min(360px, 86vw);
        bottom: 46px;
    }
    .character-content {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 3;
        padding-inline: 6px;
    }
    .character-kicker {
        font-size: 14px;
        letter-spacing: .42em;
        text-indent: .42em;
    }
    .character-lead {
        margin: 10px auto 26px;
        font-size: 16px;
    }
    .character-title {
        font-size: clamp(34px, 9vw, 48px);
    }
    .character-description {
        min-height: 0;
        font-size: 17px;
    }
    .character-actions {
        margin-top: 18px;
    }
    .character-roster {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 8px;
        padding: 28px 18px 34px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        pointer-events: auto;
    }
    .character-roster:before {
        left: 0;
        right: 0;
    }
    .class-roster-card {
        flex: 0 0 126px;
        width: 126px;
        height: 266px;
        scroll-snap-align: center;
    }
}
@media (max-width: 520px) {
    .character-art-panel {
        height: 286px;
        margin-bottom: -54px;
    }
    .character-featured-art {
        width: min(330px, 88vw);
        transform: translateX(-50%);
    }
    .character-lead {
        max-width: 330px;
    }
    .character-actions {
        width: 100%;
    }
    .character-role-pill,
    .character-preview-btn {
        width: 100%;
    }
    .class-roster-card {
        flex-basis: 116px;
        width: 116px;
        height: 248px;
    }
}
