/* ==========================================================================
   PERFECT WORLD: ABYSSAL WAR — v4 AAA Hero & Living Character Stage
   - Transparent PNG Stormbringer Valkyrie with organic breathing/levitation,
     mouse parallax, rotating golden-cyan arcane halo, crackling lightning arcs,
     and rising ember sparks
   - Clean atmospheric backdrop (zero double-logo clash)
   - Refined Midnight Obsidian + Champagne Gold + Electric Cyan typography
   - All 12 Classes Roster visible without scroll cut-off
   ========================================================================== */

:root {
    --aw-obsidian: #050811;
    --aw-obsidian-2: #0a1020;
    --aw-gold-1: #fff1cc;
    --aw-gold-2: #e5be73;
    --aw-gold-3: #b8883b;
    --aw-cyan-1: #a8e4ff;
    --aw-cyan-2: #38bdf8;
    --aw-cyan-3: #1d6fe8;
    --aw-crimson-1: #e11d48;
    --aw-crimson-2: #881337;
}

/* ---------- 1. HERO STAGE & CLEAN CINEMATIC BACKDROP ---------- */
.aw-hero-3d {
    position: relative;
    background: var(--aw-obsidian) !important;
    overflow: hidden;
}
.aw-hero-stage {
    position: relative;
    min-height: 670px !important;
    display: flex;
    align-items: center;
    padding: 108px 0 64px !important;
}
.aw-hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.aw-hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: brightness(0.42) saturate(1.18) contrast(1.08);
    transform: scale(1.04);
}
.aw-hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 68% 65% at 72% 46%, rgba(46, 149, 255, 0.22) 0%, rgba(5, 8, 17, 0) 64%),
        radial-gradient(ellipse 52% 55% at 24% 48%, rgba(212, 175, 106, 0.12) 0%, rgba(5, 8, 17, 0) 62%),
        linear-gradient(90deg, rgba(5, 8, 17, 0.94) 0%, rgba(5, 8, 17, 0.78) 48%, rgba(5, 8, 17, 0.42) 100%),
        linear-gradient(180deg, rgba(5, 8, 17, 0.72) 0%, rgba(5, 8, 17, 0.1) 28%, rgba(5, 8, 17, 0.22) 72%, #050811 100%) !important;
}
.aw-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}
.aw-hero-3d-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr) !important;
    align-items: center !important;
    gap: 36px !important;
}

/* ---------- 2. HERO TYPOGRAPHY & TRUSTWORTHY MMORPG HIERARCHY ---------- */
.aw-hero-title-block {
    position: relative;
    z-index: 4;
}
.aw-hero-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.aw-hero-version {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 106, 0.12);
    border: 1px solid rgba(229, 190, 115, 0.45);
    color: var(--aw-gold-1);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.aw-hero-tagline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.38);
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.aw-hero-h1 {
    margin: 0 0 18px !important;
    line-height: 0.98 !important;
}
.aw-hero-h1 span {
    display: block;
    font-family: 'Cinzel', serif !important;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.34em !important;
    color: #cbd5e1 !important;
    margin-bottom: 8px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
.aw-hero-h1 em {
    display: block;
    font-style: normal !important;
    font-family: 'Cinzel', serif !important;
    font-size: clamp(2.85rem, 5.2vw, 4.55rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    background: linear-gradient(180deg, #fff8e2 0%, #efd08c 45%, #c5913e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(229, 190, 115, 0.25));
}
.aw-hero-sub-motto {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--aw-cyan-1);
    text-transform: uppercase;
    margin: 0 0 16px;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}
.aw-hero-lead {
    max-width: 540px;
    margin: 0 0 28px !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
    color: #c8d3e6 !important;
}
.aw-hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 106, 0.16);
}
.aw-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #aebcd4;
}
.aw-hero-trust-item svg {
    color: var(--aw-gold-2);
    flex-shrink: 0;
}

/* ---------- 3. LIVING TRANSPARENT PNG CHARACTER STAGE ---------- */
.aw-living-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    user-select: none;
}

/* Deep volumetric aura behind the character */
.aw-living-aura {
    position: absolute;
    inset: 4% 6% 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 44%, rgba(56, 189, 248, 0.34) 0%, rgba(29, 111, 232, 0.16) 36%, rgba(212, 175, 106, 0.08) 58%, transparent 74%);
    filter: blur(22px);
    animation: awAuraPulse 4.5s ease-in-out infinite;
    pointer-events: none;
}

/* Rotating golden-cyan celestial magic circle behind character */
.aw-living-rune-ring {
    position: absolute;
    width: 430px;
    height: 430px;
    color: rgba(229, 190, 115, 0.42);
    animation: awRuneSpin 34s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.38));
}
.aw-living-rune-ring-inner {
    position: absolute;
    width: 320px;
    height: 320px;
    color: rgba(56, 189, 248, 0.48);
    animation: awRuneSpinRev 22s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.55));
}

/* Ground perspective arcane pedestal */
.aw-living-pedestal {
    position: absolute;
    bottom: 18px;
    width: 340px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.32) 0%, rgba(229, 190, 115, 0.18) 46%, transparent 72%);
    border: 1.5px solid rgba(229, 190, 115, 0.42);
    box-shadow: 0 0 36px rgba(56, 189, 248, 0.35), inset 0 0 24px rgba(56, 189, 248, 0.25);
    transform: rotateX(68deg);
    pointer-events: none;
    animation: awPedestalGlow 3.6s ease-in-out infinite;
}

/* Interactive mouse-parallax wrapper */
.aw-living-parallax {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* The transparent PNG Valkyrie character with organic living motion */
.aw-living-character {
    position: relative;
    z-index: 4;
    max-height: 540px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 26px 38px rgba(0, 0, 0, 0.85))
        drop-shadow(0 0 22px rgba(56, 189, 248, 0.38))
        drop-shadow(0 0 8px rgba(229, 190, 115, 0.22));
    animation: awCharacterBreathe 5.2s ease-in-out infinite;
    transform-origin: center 75%;
    pointer-events: none;
}

/* Crackling electric lightning overlay around the halberd & character */
.aw-living-lightning {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: screen;
}
.aw-living-lightning path.bolt-a {
    stroke: #a8e4ff;
    stroke-width: 2.2;
    fill: none;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    filter: drop-shadow(0 0 8px #38bdf8) drop-shadow(0 0 18px #1d6fe8);
    animation: awBoltFlashA 3.8s ease-in-out infinite;
}
.aw-living-lightning path.bolt-b {
    stroke: #e0f2fe;
    stroke-width: 1.8;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 10px #38bdf8);
    animation: awBoltFlashB 4.9s ease-in-out infinite 1.4s;
}

/* Rising luminous energy motes around the character */
.aw-living-sparks {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}
.aw-spark {
    position: absolute;
    bottom: 12%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a8e4ff;
    box-shadow: 0 0 10px #38bdf8, 0 0 18px #38bdf8;
    opacity: 0;
    animation: awSparkRise var(--d, 4.5s) linear infinite var(--delay, 0s);
}
.aw-spark.is-gold {
    background: #ffe8a3;
    box-shadow: 0 0 10px #e5be73, 0 0 16px #c5913e;
}

/* Floating translucent realm status pill anchored cleanly below character */
.aw-living-hud-pill {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(7, 12, 26, 0.84);
    border: 1px solid rgba(229, 190, 115, 0.42);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.16);
    white-space: nowrap;
}
.aw-living-hud-pill strong {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--aw-gold-1);
}
.aw-living-hud-pill span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--aw-cyan-1);
}

@keyframes awCharacterBreathe {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-13px) scale(1.016);
    }
}
@keyframes awAuraPulse {
    0%, 100% { opacity: 0.78; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.06); }
}
@keyframes awRuneSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes awRuneSpinRev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes awPedestalGlow {
    0%, 100% { opacity: 0.72; box-shadow: 0 0 28px rgba(56, 189, 248, 0.28); }
    50% { opacity: 1; box-shadow: 0 0 46px rgba(56, 189, 248, 0.55); }
}
@keyframes awBoltFlashA {
    0%, 72%, 100% { opacity: 0; stroke-dashoffset: 240; }
    76% { opacity: 1; stroke-dashoffset: 0; }
    80% { opacity: 0.25; stroke-dashoffset: 0; }
    83% { opacity: 0.95; stroke-dashoffset: 0; }
    90% { opacity: 0; stroke-dashoffset: -120; }
}
@keyframes awBoltFlashB {
    0%, 68%, 100% { opacity: 0; stroke-dashoffset: 200; }
    73% { opacity: 0.95; stroke-dashoffset: 0; }
    79% { opacity: 0.2; stroke-dashoffset: 0; }
    84% { opacity: 0.85; stroke-dashoffset: 0; }
    92% { opacity: 0; stroke-dashoffset: -90; }
}
@keyframes awSparkRise {
    0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
    18% { opacity: 0.95; }
    82% { opacity: 0.7; }
    100% { transform: translateY(-420px) translateX(var(--dx, 18px)) scale(0.2); opacity: 0; }
}

/* ---------- 4. 12 CLASSES ROSTER: ALL 12 VISIBLE WITHOUT SCROLL CUT-OFF ---------- */
.aw-class-stage {
    align-items: stretch !important;
}
.aw-class-roster {
    max-height: none !important;
    overflow-y: visible !important;
    gap: 5px !important;
    padding-right: 0 !important;
}
.aw-class-btn {
    padding: 5px 9px !important;
    grid-template-columns: 30px minmax(0, 1fr) 40px !important;
    gap: 8px !important;
}
.aw-class-btn-sigil {
    width: 30px !important;
    height: 30px !important;
}
.aw-class-btn-thumb {
    width: 40px !important;
    height: 34px !important;
}
.aw-class-btn-meta strong {
    font-size: 12px !important;
    line-height: 1.15 !important;
}
.aw-class-btn-meta small {
    font-size: 9.5px !important;
    line-height: 1.1 !important;
}

/* ---------- 5. POLISHED PORTAL NEWS & SIDEBAR (GAMBAR 2) ---------- */
.aw-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}
.aw-portal-main {
    background: linear-gradient(180deg, rgba(13, 19, 36, 0.94), rgba(7, 11, 22, 0.98));
    border: 1px solid rgba(229, 190, 115, 0.24);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5);
}
.aw-portal-banner-wrap {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(229, 190, 115, 0.34);
    margin-bottom: 22px;
    aspect-ratio: 1024 / 409;
    background: #060912;
}
.aw-portal-banner-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.aw-portal-banner-wrap:hover img {
    transform: scale(1.03);
}
.aw-portal-banner-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(5, 8, 17, 0.86);
    border: 1px solid rgba(229, 190, 115, 0.5);
    color: var(--aw-gold-1);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    backdrop-filter: blur(8px);
}
.aw-portal-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(229, 190, 115, 0.18);
}
.aw-portal-news-head h2 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
    letter-spacing: 0.06em;
    color: var(--aw-gold-1);
}
.aw-portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, rgba(13, 19, 36, 0.94), rgba(7, 11, 22, 0.98));
    border: 1px solid rgba(229, 190, 115, 0.24);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5);
}
.aw-portal-stat-box {
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 32, 60, 0.94), rgba(10, 16, 32, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.aw-portal-stat-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #5eead4;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.aw-portal-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}
.aw-portal-stat-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.aw-portal-stat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.36);
    color: var(--aw-cyan-1);
    flex-shrink: 0;
}
.aw-portal-stat-main strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    line-height: 1;
    color: #ffffff;
}
.aw-portal-stat-main span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aw-gold-2);
}
.aw-portal-rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.aw-portal-rank-head h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--aw-gold-1);
}
.aw-portal-rank-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.aw-portal-rank-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: #e8edf4;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.aw-portal-rank-row:hover {
    border-color: rgba(229, 190, 115, 0.45);
    background: rgba(229, 190, 115, 0.08);
    transform: translateX(2px);
}
.aw-portal-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 26px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    color: #9fb0c9;
}
.aw-portal-rank-row.is-top-1 .aw-portal-rank-badge {
    background: linear-gradient(135deg, rgba(245, 196, 94, 0.3), rgba(180, 130, 40, 0.22));
    border: 1px solid rgba(245, 196, 94, 0.55);
    color: #ffd97d;
}
.aw-portal-rank-row.is-top-2 .aw-portal-rank-badge {
    background: rgba(196, 209, 228, 0.16);
    border: 1px solid rgba(196, 209, 228, 0.36);
    color: #e2ebf8;
}
.aw-portal-rank-row.is-top-3 .aw-portal-rank-badge {
    background: rgba(205, 127, 50, 0.22);
    border: 1px solid rgba(205, 127, 50, 0.44);
    color: #f4a968;
}
.aw-portal-rank-name {
    font-size: 13.5px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aw-portal-rank-lv {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    font-weight: 700;
    color: #a9b8cf;
}
.aw-portal-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.aw-portal-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(229, 190, 115, 0.24);
    background: rgba(16, 24, 44, 0.88);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
}
.aw-portal-social-btn:hover {
    border-color: var(--aw-gold-2);
    color: var(--aw-gold-1);
    background: rgba(229, 190, 115, 0.14);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .aw-hero-3d-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .aw-hero-badge-row,
    .aw-hero-cta,
    .aw-hero-trust-strip {
        justify-content: center;
    }
    .aw-hero-lead {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .aw-living-stage {
        height: 430px;
    }
    .aw-living-character {
        max-height: 410px;
    }
    .aw-portal-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .aw-living-character,
    .aw-living-aura,
    .aw-living-rune-ring,
    .aw-living-rune-ring-inner,
    .aw-living-pedestal,
    .aw-living-lightning path,
    .aw-spark {
        animation: none !important;
    }
}


/* ==========================================================================
   MULTI-CLASS LIVING HERO SHOWCASE (v20261124-4)
   Dynamic per-class elemental glow, 3D orbiting job nametag & 12-class dock
   ========================================================================== */
.aw-living-multi {
    --hero-accent: #38bdf8;
    --hero-accent-rgb: 56, 189, 248;
    padding-bottom: 118px;
    min-height: 620px;
}
.aw-living-multi .aw-living-aura {
    background: radial-gradient(circle, rgba(var(--hero-accent-rgb), 0.34) 0%, rgba(229, 190, 115, 0.14) 44%, transparent 72%);
    transition: background 0.6s ease;
}
.aw-living-multi .aw-living-rune-ring {
    filter: drop-shadow(0 0 14px rgba(var(--hero-accent-rgb), 0.42));
    transition: filter 0.6s ease;
}
.aw-living-multi .aw-living-rune-ring-inner {
    color: rgba(var(--hero-accent-rgb), 0.56);
    filter: drop-shadow(0 0 18px rgba(var(--hero-accent-rgb), 0.58));
    transition: color 0.6s ease, filter 0.6s ease;
}
.aw-living-multi .aw-living-pedestal {
    bottom: 120px;
    background: radial-gradient(ellipse at center, rgba(var(--hero-accent-rgb), 0.34) 0%, rgba(229, 190, 115, 0.18) 46%, transparent 72%);
    box-shadow: 0 0 38px rgba(var(--hero-accent-rgb), 0.36), inset 0 0 24px rgba(var(--hero-accent-rgb), 0.24);
    transition: background 0.6s ease, box-shadow 0.6s ease;
}
.aw-living-multi .aw-spark:not(.is-gold) {
    background: var(--hero-accent);
    box-shadow: 0 0 10px var(--hero-accent), 0 0 18px rgba(var(--hero-accent-rgb), 0.85);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}
.aw-living-multi .aw-living-lightning path.bolt-a,
.aw-living-multi .aw-living-lightning path.bolt-b {
    stroke: var(--hero-accent);
    filter: drop-shadow(0 0 8px var(--hero-accent)) drop-shadow(0 0 16px rgba(var(--hero-accent-rgb), 0.75));
}

/* 3D Orbiting Job Name Tag Ring */
.aw-orbit-tag {
    position: absolute;
    left: 50%;
    top: 54%;
    width: min(480px, 94%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    perspective: 900px;
    pointer-events: none;
}
.aw-orbit-tag.is-back {
    z-index: 2;
    clip-path: inset(0 0 50% 0);
    opacity: 0.45;
}
.aw-orbit-tag.is-front {
    z-index: 7;
    clip-path: inset(50% 0 0 0);
}
.aw-orbit-plane {
    width: 100%;
    height: 100%;
    transform: rotateX(64deg);
}
.aw-orbit-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: awOrbitSpin 18s linear infinite;
}
.aw-orbit-ring {
    fill: none;
    stroke: rgba(var(--hero-accent-rgb), 0.5);
    stroke-width: 1.2;
    stroke-dasharray: 2 6;
}
.aw-orbit-text {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    fill: #f6e7c1;
    paint-order: stroke;
    stroke: rgba(var(--hero-accent-rgb), 0.6);
    stroke-width: 0.7px;
    filter: drop-shadow(0 0 6px rgba(var(--hero-accent-rgb), 0.9));
    transition: opacity 0.28s ease;
}
.aw-living-stage.is-swapping .aw-orbit-text {
    opacity: 0;
}
@keyframes awOrbitSpin {
    to { transform: rotate(360deg); }
}

/* Stacked crossfade character container */
.aw-living-char-stack {
    position: relative;
    width: 100%;
    height: 495px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aw-living-char-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    will-change: opacity, transform;
}
.aw-living-char-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 4;
}
.aw-living-multi .aw-living-character {
    max-height: 485px;
    max-width: 96%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 24px 34px rgba(0, 0, 0, 0.86))
        drop-shadow(0 0 22px rgba(var(--hero-accent-rgb), 0.38))
        drop-shadow(0 0 8px rgba(229, 190, 115, 0.22));
    transition: filter 0.6s ease;
}
.aw-living-char-archer,
.aw-living-char-cleric {
    max-height: 465px !important;
}
.aw-living-char-barbarian {
    max-height: 455px !important;
    transform: translateY(8px);
}
.aw-living-char-seeker,
.aw-living-char-mystic,
.aw-living-char-psychic {
    max-height: 450px !important;
}

/* HUD Pill + Prev/Next Buttons */
.aw-living-hud-controls {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.aw-living-multi .aw-living-hud-pill {
    position: static;
    transform: none;
    gap: 9px;
    padding: 8px 16px;
    border-color: rgba(var(--hero-accent-rgb), 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 22px rgba(var(--hero-accent-rgb), 0.22);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.aw-living-hud-role {
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--hero-accent);
    font-weight: 600;
    transition: color 0.5s ease;
}
.aw-living-hud-sep {
    opacity: 0.45;
}
.aw-living-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(229, 190, 115, 0.36);
    background: rgba(7, 12, 26, 0.84);
    color: #f3e4c3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.aw-living-nav-btn:hover {
    border-color: var(--hero-accent);
    background: rgba(var(--hero-accent-rgb), 0.18);
    color: #ffffff;
    transform: scale(1.08);
}

/* Interactive 12-Class Switcher Dock */
.aw-living-switcher {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: min(580px, 96vw);
}
.aw-living-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(8, 13, 28, 0.72);
    color: rgba(226, 232, 240, 0.78);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.24s ease;
}
.aw-living-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--chip-accent, #38bdf8);
    opacity: 0.55;
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
}
.aw-living-chip:hover {
    border-color: rgba(var(--chip-rgb, 56, 189, 248), 0.55);
    color: #ffffff;
    background: rgba(var(--chip-rgb, 56, 189, 248), 0.14);
}
.aw-living-chip.is-active {
    border-color: rgba(var(--chip-rgb, 56, 189, 248), 0.85);
    background: rgba(var(--chip-rgb, 56, 189, 248), 0.22);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(var(--chip-rgb, 56, 189, 248), 0.32);
}
.aw-living-chip.is-active .aw-living-chip-dot {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--chip-accent, #38bdf8);
}

@media (max-width: 960px) {
    .aw-living-multi {
        min-height: 520px;
        padding-bottom: 150px;
    }
    .aw-living-char-stack {
        height: 380px;
    }
    .aw-living-multi .aw-living-character {
        max-height: 365px;
    }
    .aw-living-multi .aw-living-pedestal {
        bottom: 150px;
    }
    .aw-living-hud-controls {
        bottom: 100px;
    }
    .aw-orbit-tag {
        width: min(360px, 94%);
    }
    .aw-living-chip {
        font-size: 10px;
        padding: 3px 8px;
    }
    .aw-living-hud-role {
        display: none;
    }
}
