:root {
    --bg-deepest: #050304;
    --bg-deep: #0b0708;
    --bg-surface: #141012;
    --bg-card: rgba(18, 14, 16, 0.9);
    --bg-elevated: #1c1619;
    --accent: #d98a4a;
    --accent-strong: #f6c999;
    --accent-rgb: 217, 138, 74;
    --blood: #8f2620;
    --ember: #d77356;
    --teal: #7ab6b2;
    --text-primary: #f2ece1;
    --text-secondary: #c9b9a5;
    --text-muted: #8f7f71;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(217, 138, 74, 0.28);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 24px 54px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 36px 96px rgba(0, 0, 0, 0.56);
    --font-heading: "Cormorant SC", serif;
    --font-body: "Plus Jakarta Sans", sans-serif;
    --container-max: 1380px;
    --section-pad: 104px;
    --paths-glow: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.4));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-deep); }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 12%, rgba(143, 38, 32, 0.14), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(122, 182, 178, 0.08), transparent 18%),
        linear-gradient(180deg, #0d0808 0%, #080506 36%, #050304 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Background Sand Particles */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, var(--accent), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(var(--accent-rgb), 0.6), transparent),
        radial-gradient(2px 2px at 50px 160px, var(--ember), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--accent), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(var(--accent-rgb), 0.4), transparent);
    background-size: 200px 200px;
    opacity: 0.12;
    animation: pathsSand 80s linear infinite;
    pointer-events: none;
}

@keyframes pathsSand {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0.012) 50%, rgba(0, 0, 0, 0.016) 50%);
    background-size: 100% 4px;
    opacity: 0.12;
    z-index: -1;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.42); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.72); }
.accent { color: var(--accent); }
.hidden { display: none !important; }

#loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.08), transparent 30%), rgba(5, 3, 4, 0.98);
    z-index: 10000;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.loader-logo { 
    width: 110px; 
    filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.4)); 
    animation: loaderFloat 3s ease-in-out infinite; 
}
.loader-text { 
    font-family: var(--font-heading); 
    font-size: 1.1rem; 
    letter-spacing: 0.5rem; 
    text-transform: uppercase; 
    color: var(--accent-strong); 
    margin-top: 10px;
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}
.loader-bar { 
    width: 280px; 
    height: 2px; 
    border-radius: 999px; 
    overflow: hidden; 
    background: rgba(255, 255, 255, 0.05); 
    margin-top: 24px;
}
.loader-bar-fill { 
    width: 0; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-strong), var(--accent), transparent); 
    background-size: 200% 100%;
    animation: loaderSweep 2s ease-out forwards, loaderGlitch 3s linear infinite; 
}
@keyframes loaderFloat { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; } 50% { transform: translateY(-15px) scale(1.05); opacity: 1; } }
@keyframes loaderSweep { from { width: 0; opacity: 0; } to { width: 100%; opacity: 1; } }
@keyframes loaderGlitch { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } }

#hero {
    position: relative;
    min-height: 100vh;
    padding: 118px 28px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
#hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    background: linear-gradient(to bottom, transparent, rgba(5, 3, 4, 0.92) 72%, var(--bg-deepest));
    pointer-events: none;
}
.hero-bg-effects, .hero-noise, .hero-grid, .hero-branch, .hero-glow, .wall-silhouette { position: absolute; inset: 0; pointer-events: none; }
.hero-noise {
    opacity: 0.13;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
        radial-gradient(circle at 65% 36%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
        radial-gradient(circle at 76% 72%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
}
.hero-grid {
    inset: -12% -10%;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(209, 176, 108, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 176, 108, 0.14) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 94%);
}
.hero-branch { display: none; }
.hero-glow { border-radius: 50%; filter: blur(120px); opacity: 0.4; }
.hero-glow-a { width: 600px; height: 600px; left: -10%; top: -10%; background: radial-gradient(circle, rgba(143, 38, 32, 0.15), transparent 70%); }
.hero-glow-b { width: 500px; height: 500px; right: -5%; top: 10%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 70%); }
.wall-silhouette { display: none; }
.wall-left { left: 0; transform: skewX(-8deg); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.wall-right { right: 0; transform: skewX(8deg); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
#hero:hover .wall-left { transform: skewX(-10deg) translateX(-10px); }
#hero:hover .wall-right { transform: skewX(10deg) translateX(10px); }
@keyframes heroPulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(5, 3, 4, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}
.nav-logo { display: inline-flex; align-items: center; gap: 14px; position: relative; z-index: 1202; }
.nav-logo-mark,
.nav-logo-icon-container {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    background: radial-gradient(circle at top, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.02));
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 22px rgba(var(--accent-rgb), 0.08);
}
.nav-logo-icon { width: 100%; height: 100%; }
.nav-logo-text { 
    font-family: var(--font-heading); 
    font-size: 1.25rem; 
    letter-spacing: 0.16rem; 
    text-transform: uppercase; 
    color: var(--text-primary); 
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo-text .accent { 
    color: #ff7c30; 
    text-shadow: 0 0 15px rgba(255, 124, 48, 0.4); 
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text-secondary); font-size: 0.92rem; letter-spacing: 0.1rem; text-transform: uppercase; transition: color 0.24s ease; }
.nav-link:hover, .nav-link:focus-visible { color: var(--text-primary); }
.nav-kofi-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-kofi-btn:hover,
.nav-kofi-btn:focus-visible {
    color: var(--text-primary);
    border-color: rgba(var(--accent-rgb), 0.44);
    background: rgba(var(--accent-rgb), 0.16);
    transform: translateY(-1px);
}
.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.06);
    position: relative;
    z-index: 1202;
}
.menu-bar { width: 20px; height: 2px; background: var(--accent); transition: transform 0.24s ease, opacity 0.24s ease; }
.mobile-menu-toggle.active .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active .menu-bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-switcher { position: relative; }
.site-switcher-toggle { cursor: pointer; }
.site-switcher-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    margin-left: 2px;
    opacity: 0.8;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-switcher.open .site-switcher-caret {
    transform: rotate(-135deg) translateY(-1px);
    opacity: 1;
}
.site-switcher-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: min(320px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(24, 18, 20, 0.96), rgba(12, 8, 9, 0.98));
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 8px;
}
.site-switcher-menu[hidden] { display: none; }
.site-switcher-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-switcher-link-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.site-switcher-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.site-switcher-link:hover, .site-switcher-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}
.site-switcher-link-label { 
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.site-switcher-link-visit {
    font-size: 0.6rem;
    letter-spacing: 0.12rem;
    color: var(--text-muted);
    font-weight: 700;
}
.site-switcher-link-brand {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.08rem;
    font-weight: 500;
}

/* Brand Specific Themes */
.ow-link .site-switcher-link-brand { color: #c084fc; text-shadow: 0 0 10px rgba(192, 132, 252, 0.3); }
.mr-link .site-switcher-link-brand { color: #f472b6; text-shadow: 0 0 10px rgba(244, 114, 182, 0.3); }
.lol-link .site-switcher-link-brand { color: #d1b06c; text-shadow: 0 0 10px rgba(209, 176, 108, 0.3); }
.cp-link .site-switcher-link-brand { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.3); }
.shinobi-link .site-switcher-link-brand { color: #ffb15e; text-shadow: 0 0 10px rgba(249, 115, 22, 0.3); }
.wf-link .site-switcher-link-brand { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }

.site-switcher-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -44%);
    max-width: calc(100vw - 24px);
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.97), rgba(26, 20, 16, 0.94));
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-switcher-toast.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

@media (max-width: 640px) {
    .site-switcher-toast {
        padding: 10px 12px;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }
}

.hero-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 430px);
    gap: 52px;
    align-items: center;
}
.hero-badge, .section-badge, .modal-alignment, .origin-chip, .card-trait, .timeline-tag, .change-faction {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background: rgba(var(--accent-rgb), 0.08);
}
.hero-badge { color: var(--accent-strong); font-size: 0.82rem; letter-spacing: 0.16rem; text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-family: var(--font-heading); font-size: clamp(3.1rem, 8vw, 5.8rem); line-height: 0.94; text-transform: uppercase; margin-bottom: 22px; letter-spacing: 0.08rem; }
.hero-title-line { display: block; }
.accent-line { color: transparent; -webkit-text-stroke: 1px var(--accent); position: relative; }
.accent-line::after {
    content: "THE NINE TITANS";
    position: absolute;
    inset: 0;
    color: rgba(var(--accent-rgb), 0.18);
    filter: blur(15px);
    z-index: -1;
}
.hero-subtitle { font-size: 1.08rem; max-width: 60ch; color: var(--text-secondary); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 34px 0; }
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.52);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(143, 38, 32, 0.1));
    color: var(--accent-strong);
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    box-shadow: 0 18px 34px rgba(var(--accent-rgb), 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.hero-cta:hover, .hero-cta:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 40px rgba(var(--accent-rgb), 0.2); }
.hero-secondary-link { color: var(--text-secondary); }
.hero-secondary-link:hover, .hero-secondary-link:focus-visible { color: var(--text-primary); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-item {
    padding: 18px;
    border-radius: 18px;
    background: rgba(18, 14, 16, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.stat-number { display: block; font-family: var(--font-heading); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1; color: var(--accent-strong); margin-bottom: 8px; }
.stat-label { display: block; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.2rem; text-transform: uppercase; }

.hero-intel-panel {
    position: relative;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), rgba(14, 10, 11, 0.88);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-intel-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(143, 38, 32, 0.18), transparent 34%), linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 42%);
    pointer-events: none;
}
.panel-topline { position: relative; z-index: 1; color: var(--accent-strong); font-size: 0.78rem; letter-spacing: 0.18rem; text-transform: uppercase; margin-bottom: 10px; }
.hero-panel-title { position: relative; z-index: 1; font-family: var(--font-heading); font-size: 2rem; line-height: 1.06; margin-bottom: 14px; }
.hero-panel-copy { position: relative; z-index: 1; color: var(--text-secondary); margin-bottom: 24px; }
.hero-panel-grid { position: relative; z-index: 1; display: grid; gap: 14px; }
.intel-tile { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.intel-tile strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--accent-strong); margin-bottom: 6px; }
.intel-tile p { color: var(--text-secondary); font-size: 0.92rem; }
.hero-watchlist { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 20px; }
.watch-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.watch-item:hover, .watch-item:focus-visible { transform: translateX(6px); border-color: rgba(var(--accent-rgb), 0.34); background: rgba(var(--accent-rgb), 0.08); }
.watch-index { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb), 0.12); color: var(--accent-strong); font-size: 0.84rem; font-weight: 700; flex-shrink: 0; }
.watch-copy strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.watch-copy span { color: var(--text-secondary); font-size: 0.84rem; }

.scroll-indicator { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; opacity: 0.7; }
.scroll-track { width: 2px; height: 54px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0)); border-radius: 999px; }
.scroll-arrow { width: 16px; height: 16px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); animation: scrollBounce 1.9s ease-in-out infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(8px) rotate(45deg); } }

.section-shell { position: relative; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: var(--section-pad) 28px 0; }
.section-header { text-align: center; max-width: 860px; margin: 0 auto 36px; }
.section-badge { color: var(--accent-strong); font-size: 0.76rem; letter-spacing: 0.16rem; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-family: var(--font-heading); font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; text-transform: uppercase; margin-bottom: 14px; }
.section-desc { font-size: 1rem; color: var(--text-secondary); }
.section-slab {
    position: relative;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(10, 7, 8, 0.82);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.section-slab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(143, 38, 32, 0.14), transparent 24%), radial-gradient(circle at bottom left, rgba(var(--accent-rgb), 0.08), transparent 24%);
    pointer-events: none;
}

.briefing-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 620px); gap: 28px; align-items: start; margin-bottom: 24px; }
.briefing-lead { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.briefing-kicker { font-size: 1.04rem; color: var(--text-primary); margin-bottom: 22px; }
.briefing-quote { padding: 18px 20px; border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), 0.08); border-radius: 18px; color: var(--text-secondary); }
.briefing-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.briefing-card { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.briefing-label { display: block; color: var(--text-muted); font-size: 0.74rem; letter-spacing: 0.16rem; text-transform: uppercase; margin-bottom: 8px; }
.briefing-card strong { display: block; font-family: var(--font-heading); font-size: 1.55rem; color: var(--accent-strong); margin-bottom: 8px; }
.briefing-card p { color: var(--text-secondary); font-size: 0.93rem; }
.origin-strip { position: relative; z-index: 1; display: grid; gap: 16px; padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.06); }
.origin-root { display: flex; align-items: center; gap: 16px; }
.origin-root-mark {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.24);
}
.origin-title { font-family: var(--font-heading); font-size: 1.7rem; text-transform: uppercase; }
.origin-copy, .origin-note { color: var(--text-secondary); }
.origin-daughters { display: flex; flex-wrap: wrap; gap: 10px; }
.origin-chip { color: var(--accent-strong); letter-spacing: 0.12rem; text-transform: uppercase; }
.origin-daughters.compact { justify-content: center; }

.map-toolbar, .faction-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.map-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-btn:hover, .map-btn.active { 
    background: rgba(var(--accent-rgb), 0.16); 
    border-color: rgba(var(--accent-rgb), 0.5); 
    color: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.map-hint, .faction-results { color: var(--text-muted); font-size: 0.92rem; }
.search-box { position: relative; width: min(100%, 420px); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px 0 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.42); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }

.factions-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.faction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(8, 5, 6, 0.96);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.faction-card:hover, .faction-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(var(--accent-rgb), 0.08);
    background: rgba(18, 14, 16, 0.98);
}
.faction-card.is-active {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.3);
}
.card-eyebrow { color: var(--text-muted); font-size: 0.74rem; letter-spacing: 0.14rem; text-transform: uppercase; }
.card-header { display: flex; align-items: flex-start; gap: 14px; }
.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.faction-card.is-dimmed { opacity: 0.15; filter: saturate(0.2) blur(2px); pointer-events: none; }
.faction-card.is-active { border-color: var(--accent); box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2); z-index: 10; }
.card-icon svg {
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card-title-stack { display: flex; flex-direction: column; gap: 4px; }
.category-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: var(--accent-strong);
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    margin-bottom: 2px;
}
.card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05rem;
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}
.card-alignment { color: var(--text-secondary); font-size: 0.9rem; }
.card-desc { color: var(--text-secondary); font-size: 0.94rem; flex-grow: 1; }
.card-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.card-trait { color: var(--text-secondary); font-size: 0.78rem; line-height: 1; }
.card-members-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 6px; }
.card-member-avatar { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    margin-left: -10px; 
    border: 2px solid #0a0708; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-deepest);
}
.card-member-avatar:hover { 
    transform: scale(2.4) translateY(-12px); 
    z-index: 100;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 2px rgba(var(--accent-rgb), 0.3),
        0 12px 24px rgba(0, 0, 0, 0.6);
}
.card-member-avatar:first-child, .card-member-more:first-child { margin-left: 0; }
.card-member-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #0a0708;
    margin-left: -10px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.card-stat { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.1rem; text-transform: uppercase; font-weight: 600; }
.card-view-btn { 
    color: var(--accent); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.08rem; 
    font-size: 0.7rem; 
    padding: 6px 12px;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 6px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    transition: all 0.2s ease;
}
.faction-card:hover .card-view-btn { background: var(--accent); color: var(--bg-deepest); }
.empty-state {
    position: relative;
    z-index: 1;
    padding: 26px;
    margin-top: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    text-align: center;
}

/* Network Node specialized styling */
.network-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 240px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 7, 8, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    text-align: left;
    left: var(--node-x);
    top: var(--node-y);
}
.network-node::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.network-node:hover::after, .network-node.is-active::after { opacity: 1; }

.network-node:hover, .network-node.is-active {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: var(--accent-strong);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(var(--accent-rgb), 0.25);
    background: rgba(22, 18, 19, 0.98);
    z-index: 100;
}
.network-node.is-active::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid var(--accent);
    border-radius: 32px;
    opacity: 0.4;
    animation: pathsPulse 2s ease-in-out infinite;
}
.network-node.is-filtered-out { opacity: 0.05; pointer-events: none; }
.network-node.is-dimmed { opacity: 0.15; filter: saturate(0.3) blur(2px); pointer-events: none; }

.network-node-eyebrow { 
    display: block; 
    font-size: 0.68rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.12rem; 
    color: var(--text-muted); 
    margin-bottom: 12px;
    opacity: 0.8;
}
.network-node-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.network-feature-avatar { 
    width: 52px; 
    height: 52px; 
    border-radius: 14px; 
    border: 1px solid rgba(255,255,255,0.1); 
    flex-shrink: 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.network-node-heading { display: grid; gap: 3px; }
.network-node-heading strong { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1; color: var(--accent-strong); letter-spacing: 0.05rem; }
.network-node-heading span { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.9; }
.network-node-current { 
    display: block; 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-primary); 
    margin: 12px 0; 
    padding-top: 12px; 
    border-top: 1px solid rgba(255,255,255,0.06); 
}
.network-node-stack { display: flex; align-items: center; padding-left: 5px; }
.network-member-avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    margin-left: -10px; 
    border: 2px solid #0a0708; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-deepest);
}
.network-member-avatar:hover { 
    transform: scale(2.6) translateY(-14px); 
    z-index: 100; 
    border-color: var(--accent);
    box-shadow: 
        0 0 0 2px rgba(var(--accent-rgb), 0.3),
        0 14px 28px rgba(0, 0, 0, 0.7);
}
.network-member-avatar:first-child { margin-left: 0; }
.network-member-more { 
    width: 32px; height: 32px; border-radius: 50%; margin-left: -10px; border: 2px solid #0a0708; 
    background: var(--bg-elevated); color: var(--text-muted); font-size: 0.7rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 1;
}

.lineage-shell { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 20px; }
.lineage-board-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
}
.lineage-board {
    position: relative;
    min-width: 1520px;
    padding: 16px 12px 20px;
}
.lineage-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.lineage-root-panel {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 36px;
}
.lineage-root-node {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 340px;
    padding: 18px 22px;
    border-radius: 24px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.02));
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lineage-root-node:hover, .lineage-root-node:focus-visible { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.44); box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28); }
.root-node-mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    flex-shrink: 0;
}
.root-node-copy { display: grid; text-align: left; gap: 3px; }
.root-node-copy strong { font-family: var(--font-heading); font-size: 1.58rem; text-transform: uppercase; }
.root-node-copy span { color: var(--text-secondary); font-size: 0.92rem; }

.lineage-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(9, minmax(150px, 1fr));
    gap: 16px;
    align-items: start;
}
.lineage-column {
    position: relative;
    display: grid;
    gap: 16px;
    transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}
.lineage-column.is-filtered-out { opacity: 0.18; }
.lineage-node.is-dimmed { opacity: 0.15; filter: saturate(0.3) blur(2px); pointer-events: none; }
.lineage-column.is-dimmed:not(.is-active) { opacity: 0.28; filter: saturate(0.5); }
.lineage-column.is-active { transform: translateY(-4px); }
.lineage-node, .holder-node {
    position: relative;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), rgba(10, 7, 8, 0.94);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.lineage-node:hover, .lineage-node:focus-visible, .holder-node:hover, .holder-node:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.38);
}
.lineage-node {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    min-height: 160px;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.lineage-node::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.05), transparent 80%);
    pointer-events: none;
}
.lineage-node strong { 
    font-family: var(--font-heading); 
    font-size: 1.6rem; 
    line-height: 1; 
    text-transform: uppercase; 
    color: var(--accent-strong);
    letter-spacing: 0.15rem;
    margin-bottom: 4px;
}
.lineage-node span { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.lineage-node small { 
    display: inline-flex;
    margin-top: 8px;
    padding: 2px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}
.holder-stack { display: grid; gap: 12px; }
.holder-node {
    display: grid;
    justify-items: start;
    gap: 4px;
    padding: 16px 16px 14px;
    text-align: left;
}
.holder-node.is-unknown {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.025);
}
.holder-name { font-weight: 700; line-height: 1.3; }
.holder-years { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.06rem; text-transform: uppercase; }

.lineage-connection {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: var(--paths-glow);
}
.lineage-connection.is-active { 
    opacity: 1; 
    stroke-width: 3.5;
    animation: pathsPulse 3s ease-in-out infinite;
}
.lineage-connection.is-filtered-out { opacity: 0.05; }

@keyframes pathsPulse {
    0%, 100% { stroke-opacity: 0.7; filter: drop-shadow(0 0 5px var(--connection-color)); }
    50% { stroke-opacity: 1; filter: drop-shadow(0 0 15px var(--connection-color)); }
}
.connection-origin, .connection-known { stroke: rgba(var(--accent-rgb), 0.72); }
.connection-lost { stroke: rgba(201, 185, 165, 0.42); stroke-dasharray: 8 8; }
.connection-violent { stroke: rgba(215, 115, 86, 0.86); }
.connection-ending { stroke: rgba(122, 182, 178, 0.74); stroke-dasharray: 2 8; }
.map-base-legend { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 34px; margin-top: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.88rem; }
.legend-line { width: 34px; height: 4px; border-radius: 999px; }
.legend-line-known { background: rgba(var(--accent-rgb), 0.9); }
.legend-line-lost { background: linear-gradient(90deg, rgba(201, 185, 165, 0.36) 50%, transparent 50%); background-size: 10px 4px; }
.legend-line-violent { background: rgba(215, 115, 86, 0.92); }

.timeline-slab { padding: 8px; background: transparent; border: none; box-shadow: none; }
.timeline-slab::before { display: none; }
.timeline-container { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 12px 0 4px 62px; }
.timeline-container::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--accent-rgb), 0.82) 12%, rgba(var(--accent-rgb), 0.68) 86%, transparent 100%);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.22);
}
.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.56s cubic-bezier(0.16, 1, 0.3, 1), transform 0.56s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item.is-dimmed { opacity: 0.15; filter: saturate(0.2) blur(1px); pointer-events: none; }
.timeline-item.is-active .timeline-content { border-color: var(--accent); box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.15); }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 34px;
    width: 12px;
    height: 12px;
    background: var(--bg-deepest);
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.28);
}
.timeline-item::after {
    content: "";
    position: absolute;
    left: -34px;
    top: 39px;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), transparent);
}
.timeline-item.is-pulsed .timeline-content { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 22px 42px rgba(var(--accent-rgb), 0.12); }
.timeline-content {
    position: relative;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.timeline-content::before { content: ""; position: absolute; inset: 9px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.035); pointer-events: none; }
.timeline-date { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: 6px; background: rgba(var(--accent-rgb), 0.14); color: var(--accent-strong); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14rem; text-transform: uppercase; margin-bottom: 14px; }
.timeline-heading { font-family: var(--font-heading); font-size: 1.32rem; line-height: 1.18; margin-bottom: 10px; }
.timeline-desc { color: var(--text-secondary); line-height: 1.72; margin-bottom: 16px; }
.timeline-faction-tags { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.timeline-tag, .change-faction { color: var(--tag-color, var(--accent-strong)); cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.timeline-tag:hover, .timeline-tag:focus-visible, .change-faction:hover, .change-faction:focus-visible { transform: translateY(-1px); border-color: rgba(var(--accent-rgb), 0.36); background: rgba(var(--accent-rgb), 0.12); }
.timeline-changes, .timeline-ripples, .modal-timeline-links { display: grid; gap: 12px; margin-top: 18px; }
.timeline-change-item, .timeline-ripple-item, .timeline-link-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.timeline-change-item { display: grid; gap: 8px; border-left: 2px solid var(--change-color, var(--accent)); }
.timeline-change-item strong { font-size: 0.98rem; }
.timeline-change-item span { color: var(--text-secondary); font-size: 0.88rem; }
.timeline-ripple-item { color: var(--text-secondary); padding-left: 16px; border-left: 2px solid rgba(var(--accent-rgb), 0.2); }

#footer {
    max-width: none;
    margin: 0;
    padding: 52px 8%;
    background: linear-gradient(180deg, rgba(8, 5, 6, 0.92), rgba(8, 5, 6, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-content { text-align: center; max-width: 700px; margin: 0 auto; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    letter-spacing: 0.12rem;
    margin-bottom: 18px;
    color: var(--text-secondary);
}
.footer-logo .accent { color: #ff7c30; }
.footer-logo-img {
    width: 34px;
    height: 34px;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.2));
}
.footer-note {
    display: block;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.footer-credit-link,
.kofi-link {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}
.footer-credit-link:hover,
.footer-credit-link:focus-visible,
.kofi-link:hover,
.kofi-link:focus-visible {
    color: var(--text-primary);
    background: rgba(var(--accent-rgb), 0.2);
}
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.34);
    background: rgba(12, 8, 9, 0.88);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1400;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover, .back-to-top:focus-visible { transform: translateY(-2px); }

/* Modal Enhancements */
.modal-overlay {
    position: fixed;
    inset: 0;
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal {
    position: relative;
    width: min(980px, 100%);
    max-height: min(92vh, 960px);
    overflow-y: auto;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(8, 5, 6, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    padding: 0 30px 30px;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
}
.modal-overlay.visible .modal { transform: translateY(0) scale(1); }
.modal-accent-bar { height: 4px; margin: 0 -30px 24px; border-radius: 30px 30px 0 0; }
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { color: var(--accent-strong); border-color: rgba(var(--accent-rgb), 0.34); background: rgba(var(--accent-rgb), 0.1); }
.modal-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding-top: 74px; }
.modal-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.24);
}
.modal-icon svg {
    width: 46px;
    height: 46px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.modal-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 6px; }
.modal-alignment { color: var(--accent-strong); font-size: 0.82rem; letter-spacing: 0.12rem; text-transform: uppercase; }
.modal-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.summary-card { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.summary-label { display: block; color: var(--text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14rem; margin-bottom: 6px; }
.summary-value { display: block; color: var(--text-primary); font-size: 0.98rem; line-height: 1.4; }
.modal-body { display: grid; gap: 26px; }
.modal-section h3 { font-family: var(--font-heading); font-size: 1.24rem; color: var(--accent-strong); margin-bottom: 12px; }
.modal-section p { color: var(--text-secondary); }
.holder-rail { display: grid; gap: 14px; }
.holder-step {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--step-color, var(--accent));
}
.holder-step.is-unknown { border-style: dashed; }
.holder-step-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.holder-step-name { font-weight: 700; }
.holder-step-years { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.1rem; text-transform: uppercase; }
.holder-step-transfer { display: block; margin-top: 10px; color: var(--accent-strong); font-size: 0.86rem; }
.timeline-link-card {
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.timeline-link-card:hover, .timeline-link-card:focus-visible { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.34); background: rgba(var(--accent-rgb), 0.08); }
.timeline-link-card span { display: block; color: var(--text-muted); font-size: 0.74rem; letter-spacing: 0.12rem; text-transform: uppercase; margin-bottom: 6px; }
.timeline-link-card strong { display: block; margin-bottom: 6px; }
.timeline-link-card small { color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 1080px) {
    .briefing-layout,
    .hero-layout { grid-template-columns: 1fr; }
    .timeline-container { padding-left: 54px; }
    .timeline-container::before { left: 18px; }
    .timeline-item::before { left: -34px; }
    .timeline-item::after { left: -28px; width: 28px; }
}

@media (max-width: 900px) {
    .factions-grid,
    .briefing-metrics,
    .modal-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    :root { --section-pad: 84px; }
    #hero, .section-shell, #footer { padding-left: 20px; padding-right: 20px; }
    #main-nav { padding: 14px 20px; }
    .mobile-menu-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        inset: 0;
        padding: 104px 24px 32px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        background: rgba(5, 3, 4, 0.96);
        backdrop-filter: blur(22px);
        z-index: 1201;
    }
    .nav-links.active { display: flex; }
    .nav-link,
    .nav-kofi-btn { font-size: 1rem; }
    .hero-layout { gap: 32px; min-height: auto; padding-top: 44px; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-subtitle { max-width: 36ch; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-stats,
    .factions-grid,
    .briefing-metrics,
    .modal-summary-grid { grid-template-columns: 1fr; }
    .hero-cta { justify-content: center; }
    .section-slab, .hero-intel-panel, .modal { padding-left: 20px; padding-right: 20px; }
    .modal-accent-bar { margin-left: -20px; margin-right: -20px; }
    .modal-header { flex-direction: column; align-items: flex-start; }
    .lineage-board { min-width: 1320px; }
    .lineage-root-node { min-width: 300px; }
}

@media (max-width: 640px) {
    #hero { padding-top: 104px; }
    #hero::after { height: 120px; }
    .hero-title { font-size: clamp(2.6rem, 14vw, 4.1rem); }
    .hero-intel-panel { padding: 24px; }
    .section-header { margin-bottom: 24px; }
    .section-slab { padding: 22px; border-radius: 22px; }
    .briefing-lead, .origin-strip, .timeline-content, .faction-card { border-radius: 20px; }
    .timeline-container { padding-left: 46px; }
    .timeline-container::before { left: 14px; }
    .timeline-item { margin-bottom: 24px; transform: translateX(18px); }
    .timeline-item::before { left: -30px; top: 29px; }
    .timeline-item::after { left: -24px; top: 34px; width: 38px; }
    .timeline-content { padding: 20px; }
    .holder-step-top { flex-direction: column; align-items: flex-start; }
    .back-to-top { right: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .timeline-item { opacity: 1; transform: none; }
}

/* ============================================================
   2026-04 refresh: image-led hero, portrait system,
   nine-titan network map, mirrored timeline
   ============================================================ */

#hero {
    min-height: 100vh;
    padding: 74px 0 0;
}

#hero::after {
    height: 220px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
}

.hero-image-shell {
    width: 100vw;
    max-width: none;
    min-height: calc(100vh - 74px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 0;
}

.hero-media-frame {
    position: relative;
    min-height: calc(100vh - 74px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.hero-media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 52% 24%, rgba(5, 3, 4, 0.46), transparent 28%),
        linear-gradient(90deg, rgba(5, 3, 4, 0.88) 0%, rgba(5, 3, 4, 0.56) 24%, rgba(5, 3, 4, 0.24) 50%, rgba(5, 3, 4, 0.58) 76%, rgba(5, 3, 4, 0.9) 100%),
        linear-gradient(180deg, rgba(5, 3, 4, 0.24) 0%, rgba(5, 3, 4, 0.08) 36%, rgba(5, 3, 4, 0.97) 100%),
        radial-gradient(circle at 66% 42%, rgba(215, 115, 86, 0.26), transparent 24%),
        radial-gradient(circle at 52% 52%, rgba(209, 176, 108, 0.12), transparent 28%),
        linear-gradient(115deg, rgba(215, 115, 86, 0.16) 0%, rgba(215, 115, 86, 0) 42%);
    pointer-events: none;
    z-index: 1;
}

.hero-media-frame::after { display: none; }

.hero-media-image {
    width: 100%;
    height: calc(100vh - 74px);
    object-fit: cover;
    object-position: 58% 46%;
    transform: scale(1);
    filter: saturate(0.9) contrast(1.07) brightness(0.84) sepia(0.08);
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 3vw, 32px) 8% 80px;
}

.hero-copy-panel {
    width: min(100%, 780px);
    display: grid;
    gap: 16px;
    padding: 0;
    justify-items: center;
    text-align: center;
}

.hero-title {
    max-width: 11.5ch;
    font-size: clamp(3.1rem, 6.8vw, 5.2rem);
    margin-bottom: 0;
    line-height: 0.94;
    letter-spacing: 0.04rem;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.56);
}

.hero-title .accent-line {
    color: transparent;
    background: linear-gradient(180deg, #fff4d4 0%, #e1c28c 30%, #a8864f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(200, 170, 110, 0.36));
    position: relative;
    -webkit-text-stroke: 0;
}

.hero-title .accent-line::after {
    content: "THE NINE TITANS";
    position: absolute;
    inset: 0;
    color: rgba(var(--accent-rgb), 0.28);
    filter: blur(22px);
    z-index: -1;
}

.hero-subtitle {
    margin: 0;
    max-width: 40ch;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.72);
}

.timeline-desc { 
    color: var(--text-muted); 
    font-size: 0.92rem; 
    line-height: 1.6; 
    margin-bottom: 0;
}

.timeline-ripples {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.ripple-header {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
    opacity: 0.8;
}
.ripple-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.timeline-ripple-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border-left: 2px solid rgba(var(--accent-rgb), 0.2);
    transition: all 0.2s ease;
}
.timeline-ripple-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--accent);
    transform: translateX(4px);
}
.ripple-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.6rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-glow);
}
.ripple-content {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.timeline-item:hover .timeline-ripple-item {
    border-left-color: rgba(var(--accent-rgb), 0.4);
}

.hero-actions {
    margin: 0;
    align-items: center;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 470px);
    padding: 4px 0 2px;
}

.hero-stats .stat-item {
    padding: 14px 14px 12px;
    border-radius: 20px;
    background: rgba(10, 7, 8, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stats .stat-number {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3.1vw, 2.3rem);
}

.hero-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.16rem;
}

.hero-cta {
    min-height: 50px;
    padding: 0 20px;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

.hero-secondary-link {
    font-size: 0.94rem;
}

.hero-secondary-link {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
}

.portrait-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.04)),
        rgba(16, 12, 14, 0.98);
    color: var(--accent-strong);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.portrait-frame.is-holder-link {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portrait-frame.is-holder-link:hover {
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.portrait-frame.portrait-fallback img {
    display: none;
}

.portrait-fallback-text {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.portrait-frame.portrait-fallback .portrait-fallback-text {
    display: inline-flex;
}

.portrait-fallback {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.holder-inline-link {
    cursor: pointer;
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-rgb), 0.5);
    text-underline-offset: 2px;
}

.holder-inline-link:hover {
    text-decoration-color: rgba(var(--accent-rgb), 0.9);
}

.network-slab {
    padding: 28px;
}

.network-scroll {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    margin-top: 18px;
}

.network-stage {
    position: relative;
    min-width: 1120px;
    min-height: 840px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top, rgba(var(--accent-rgb), 0.08), transparent 28%),
        radial-gradient(circle at left center, rgba(143, 38, 32, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(8, 5, 6, 0.98);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow-sm);
    overflow: hidden;
}

.network-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: 0.4;
    pointer-events: none;
}

.network-stage::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.network-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.network-grid {
    position: absolute;
    inset: 0;
}

.lineage-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.lineage-node {
    position: absolute;
    left: var(--lineage-x);
    top: var(--lineage-y);
    transform: translate(-50%, -50%);
    width: 160px;
    display: grid;
    gap: 4px;
    padding: 10px 12px 9px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(11, 8, 9, 0.95);
    color: var(--text-primary);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, border-color 0.24s ease, opacity 0.24s ease, filter 0.24s ease;
}

.lineage-node::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--lineage-color, var(--accent));
}

.lineage-node-eyebrow {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.13rem;
    text-transform: uppercase;
}

.lineage-node strong {
    font-family: var(--font-heading);
    font-size: 1.06rem;
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--accent-strong);
    letter-spacing: 0.15rem;
    margin-bottom: 4px;
}

.lineage-node span {
    color: var(--text-secondary);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
}

.lineage-node small {
    color: var(--text-muted);
    font-size: 0.58rem;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.lineage-node.is-active {
    transform: translate(-50%, calc(-50% - 4px));
    border-color: rgba(var(--accent-rgb), 0.32);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
}

.lineage-node.is-dimmed {
    opacity: 0.42;
    filter: saturate(0.55);
}

.lineage-node.is-filtered-out {
    opacity: 0.18;
}

.network-root-node {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 286px;
    padding: 18px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(circle at top, rgba(var(--accent-rgb), 0.18), transparent 70%),
        rgba(14, 10, 11, 0.96);
    color: var(--text-primary);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    z-index: 4;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.network-root-node:hover,
.network-root-node:focus-visible {
    transform: translate(-50%, calc(-50% - 4px));
    border-color: rgba(var(--accent-rgb), 0.48);
    box-shadow: 0 30px 62px rgba(0, 0, 0, 0.38);
}

.network-root-portrait {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-deepest);
    overflow: hidden;
}

.network-root-node:hover .network-root-portrait {
    transform: scale(1.35) rotate(-1deg);
    z-index: 10;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 2px rgba(var(--accent-rgb), 0.3),
        0 14px 28px rgba(0, 0, 0, 0.5);
}

.network-root-copy {
    display: grid;
    gap: 6px;
    text-align: left;
}

.network-root-copy strong {
    font-family: var(--font-heading);
    font-size: 1.54rem;
    text-transform: uppercase;
}

.network-root-copy span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.network-node {
    position: absolute;
    left: var(--node-x);
    top: var(--node-y);
    transform: translate(-50%, -50%);
    width: 206px;
    padding: 15px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(8, 5, 6, 0.96);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 3;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease, filter 0.24s ease;
}

.network-node:hover,
.network-node:focus-visible,
.network-node.is-active {
    transform: translate(-50%, calc(-50% - 6px));
    border-color: rgba(var(--accent-rgb), 0.34);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.34);
}

.network-node.is-active {
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 28px 54px rgba(0, 0, 0, 0.36);
    opacity: 1;
    filter: none;
}

.network-node.is-dimmed {
    opacity: 0.42;
    filter: saturate(0.55);
}

.network-node.is-filtered-out {
    opacity: 0.2;
}

.network-node-eyebrow {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.network-node-top {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.network-feature-avatar {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
}

.network-node-heading {
    display: grid;
    gap: 4px;
}

.network-node-heading strong {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    line-height: 1.02;
    text-transform: uppercase;
}

.network-node-heading span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.network-node-current { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--text-secondary); 
    margin: 12px 0; 
    padding-top: 12px; 
    border-top: 1px solid rgba(255,255,255,0.08); 
}
.network-node-current strong { color: var(--text-muted); text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.08rem; margin-right: 6px; }

.network-node-stack {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.network-member-avatar,
.network-member-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(8, 5, 6, 0.96);
    margin-left: -8px;
}

.network-member-avatar:first-child,
.network-member-more:first-child {
    margin-left: 0;
}

.network-member-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.network-connection {
    fill: none;
    stroke: rgba(var(--accent-rgb), 0.18);
    stroke-width: 2.4;
    opacity: 0.72;
    transition: opacity 0.24s ease, stroke 0.24s ease, stroke-width 0.24s ease;
}

.network-connection.is-lineage-root {
    stroke: rgba(var(--accent-rgb), 0.44);
    stroke-width: 3.2;
    opacity: 0.86;
}

.network-connection.is-lineage-titan {
    stroke-width: 2.5;
}

.network-connection.is-active {
    stroke: var(--connection-color, var(--accent));
    stroke-width: 3.8;
    opacity: 0.98;
}

.network-connection.is-dimmed {
    opacity: 0.22;
}

.network-connection.is-filtered-out {
    opacity: 0.12;
}

.network-legend {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-top: 14px;
}

.legend-swatch {
    width: 34px;
    height: 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legend-swatch-line {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.86));
}

.legend-swatch-branch {
    background: linear-gradient(130deg, #c77a56, #ddc48b, #9a7d63);
}

.legend-swatch-portrait {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.12)),
        rgba(18, 14, 16, 0.96);
    border: 2px solid rgba(8, 5, 6, 0.96);
}

.legend-swatch-focus {
    background: linear-gradient(90deg, rgba(143, 38, 32, 0.86), rgba(var(--accent-rgb), 0.94));
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.26);
}

.card-members-row {
    gap: 0;
}

.card-member-avatar {
    overflow: hidden;
    padding: 0;
}

.card-member-more {
    background: var(--bg-elevated);
}

.holder-step-layout {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.holder-step-avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
}

.holder-step-copy {
    display: grid;
    gap: 10px;
}

.timeline-container {
    max-width: 1040px;
    padding: 10px 0 4px 62px;
}

.timeline-container::before {
    left: 22px;
    transform: none;
}

.timeline-item {
    width: 100%;
    margin-bottom: 30px;
    transform: translateX(24px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.visible.is-dimmed {
    opacity: 0.28;
}

.timeline-item::before {
    left: -40px;
    right: auto;
    top: 34px;
}

.timeline-item::after {
    left: -34px;
    right: auto;
    top: 39px;
    width: 34px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), transparent);
}

.timeline-change-item {
    gap: 12px;
}

.timeline-change-route {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.change-party {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.84rem;
}

.change-party[data-open-holder] {
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.change-party[data-open-holder]:hover {
    border-color: rgba(var(--accent-rgb), 0.38);
    background: rgba(var(--accent-rgb), 0.08);
}

.change-party-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-deepest);
}
.change-party-avatar:hover {
    transform: scale(3.5) translateX(8px);
    z-index: 100;
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 14px rgba(var(--accent-rgb), 0.2);
}

.change-party-text {
    padding: 0 12px;
}

.change-arrow {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.timeline-change-method {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

@media (max-width: 1080px) {
    .network-stage {
        min-width: 1020px;
        min-height: 820px;
    }
}

@media (max-width: 900px) {
    .lineage-node {
        width: 148px;
        padding: 8px 10px 7px;
    }

    .lineage-node strong {
        font-size: 0.94rem;
    }

    .network-node {
        width: 192px;
    }

    .network-node-top {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .network-feature-avatar {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    #hero {
        padding-top: 86px;
    }

    .hero-image-shell {
        min-height: calc(100vh - 86px);
        padding-top: 0;
    }

    .hero-media-frame,
    .hero-media-image {
        min-height: auto;
        height: calc(100vh - 86px);
        max-height: none;
    }

    .hero-media-overlay {
        justify-content: center;
        align-items: center;
        padding: 28px 24px 64px;
    }

    .hero-copy-panel {
        width: min(100%, 560px);
    }

    .network-stage {
        min-width: 940px;
        min-height: 790px;
    }

    .network-root-node {
        width: 276px;
    }

    .timeline-container {
        padding-left: 54px;
    }

    .timeline-container::before {
        left: 18px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        transform: translateX(18px);
    }

    .timeline-item::before {
        left: -34px;
        right: auto;
        top: 34px;
    }

    .timeline-item::after {
        left: -28px;
        right: auto;
        top: 39px;
        width: 28px;
        background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), transparent);
    }
}

@media (max-width: 640px) {
    .hero-title {
        max-width: 10.5ch;
        font-size: clamp(2.45rem, 11.5vw, 3.9rem);
    }

    .hero-media-frame,
    .hero-media-image {
        height: calc(100vh - 86px);
        max-height: none;
    }

    .hero-media-image {
        object-position: 60% 48%;
    }

    .hero-media-overlay {
        justify-content: flex-end;
        align-items: center;
        padding: 24px 20px 34px;
    }

    .hero-copy-panel {
        width: 100%;
        gap: 18px;
        justify-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 14px;
        width: 100%;
    }

    .hero-stats .stat-item {
        padding: 14px 12px 12px;
    }

    .hero-stats .stat-number {
        font-size: clamp(1.55rem, 7.2vw, 2rem);
    }

    .network-stage {
        min-width: 880px;
        min-height: 750px;
    }

    .network-root-node {
        grid-template-columns: 70px minmax(0, 1fr);
        width: 264px;
    }

    .lineage-node {
        width: 138px;
    }

    .lineage-node strong {
        font-size: 0.88rem;
    }

    .lineage-node small {
        font-size: 0.54rem;
    }

    .network-root-portrait {
        width: 70px;
        height: 70px;
    }

    .holder-step-layout {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .holder-step-avatar {
        width: 56px;
        height: 56px;
    }

    .timeline-container {
        padding-left: 46px;
    }

    .timeline-container::before {
        left: 14px;
    }

    .timeline-item {
        transform: translateX(14px);
    }

    .timeline-item::before {
        left: -30px;
        top: 29px;
    }

    .timeline-item::after {
        left: -24px;
        top: 34px;
        width: 38px;
    }
}

/* Premium Modal Dossier Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 3, 4, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 255, 255, 0.015) 1px, rgba(255, 255, 255, 0.015) 2px);
    background-size: 100% 4px;
    pointer-events: none;
}

.modal {
    width: 100%;
    max-width: 1040px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 32px;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(var(--accent-rgb), 0.08);
    transform: translateY(40px) scale(0.96);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.visible .modal { transform: translateY(0) scale(1); }

.modal-accent-bar { height: 6px; width: 100%; }

.modal-close { 
    position: absolute; top: 28px; right: 28px; 
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    font-size: 1.8rem; line-height: 1; border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.modal-close:hover { background: rgba(var(--accent-rgb), 0.15); color: var(--accent-strong); transform: rotate(90deg); }

.modal-header { padding: 56px 56px 36px; display: flex; align-items: center; gap: 32px; }
.modal-icon { 
    width: 96px; height: 96px; border-radius: 28px; 
    background: rgba(255,255,255,0.02); 
    border: 1px solid rgba(255,255,255,0.08); 
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 20px rgba(var(--accent-rgb), 0.05);
}
.modal-icon svg {
    width: 52px;
    height: 52px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.modal-title { font-family: var(--font-heading); font-size: 3.4rem; text-transform: uppercase; color: var(--accent-strong); letter-spacing: 0.15rem; line-height: 0.9; }
.modal-subtitle { color: var(--text-secondary); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.08rem; opacity: 0.85; margin-top: 8px; display: block; }

.modal-summary-grid { 
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255, 255, 255, 0.02);
}
.summary-card { 
    flex: 1;
    padding: 24px; 
    display: grid; 
    gap: 6px; 
    text-align: center; 
    border-right: 1px solid rgba(255,255,255,0.06);
}
.summary-card:last-child { border-right: none; }
.summary-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12rem; color: var(--text-muted); font-weight: 700; opacity: 0.7; }
.summary-value { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

.modal-body { padding: 48px 56px 64px; background: radial-gradient(circle at bottom right, rgba(var(--accent-rgb), 0.03), transparent 40%); }
.modal-section { margin-bottom: 56px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h3 { 
    font-family: var(--font-heading); font-size: 1.6rem; text-transform: uppercase; 
    color: var(--accent-strong); margin-bottom: 24px; letter-spacing: 0.12rem; 
    display: flex; align-items: center; gap: 16px; 
}
.modal-section h3::after { content: ""; flex-grow: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.3), transparent); }
.modal-section p { color: var(--text-secondary); line-height: 1.8; font-size: 1.05rem; }

.holder-rail { display: grid; gap: 24px; position: relative; padding-left: 36px; margin-top: 32px; }
.holder-rail::before { 
    content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; 
    background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.4) 10%, rgba(var(--accent-rgb), 0.4) 90%, transparent); 
}
.holder-step { position: relative; padding: 28px; border-radius: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.holder-step:hover { transform: translateX(12px); background: rgba(255,255,255,0.04); border-color: rgba(var(--accent-rgb), 0.2); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.holder-step::before { 
    content: ""; position: absolute; left: -28px; top: 40px; width: 16px; height: 16px; 
    border-radius: 50%; background: var(--step-color); border: 4px solid var(--bg-deepest); 
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3); z-index: 2;
}
.holder-step.is-unknown { opacity: 0.65; border-style: dashed; }
.holder-step-layout { display: flex; gap: 24px; }
.holder-step-avatar { width: 72px; height: 72px; border-radius: 20px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.holder-step-copy { flex-grow: 1; }
.holder-step-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.holder-step-name { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.02rem; }
.holder-step-name[data-open-holder] {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-rgb), 0.45);
    text-underline-offset: 3px;
}
.holder-step-name[data-open-holder]:hover {
    color: var(--accent-strong);
    text-decoration-color: rgba(var(--accent-rgb), 0.9);
}
.holder-step-years { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08rem; }
.holder-step-copy p { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.holder-step-transfer { 
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; 
    background: rgba(var(--accent-rgb), 0.08); color: var(--accent-strong); 
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08rem; 
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.modal-timeline-links { display: grid; gap: 16px; margin-top: 24px; }
.timeline-link-card { 
    width: 100%; text-align: left; padding: 22px; border-radius: 20px; 
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); 
    cursor: pointer; transition: all 0.3s ease;
}
.timeline-link-card:hover { transform: translateY(-4px); background: rgba(var(--accent-rgb), 0.06); border-color: rgba(var(--accent-rgb), 0.2); }
.timeline-link-card span { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1rem; display: block; margin-bottom: 6px; }
.timeline-link-card strong { font-size: 1.15rem; color: var(--text-primary); display: block; margin-bottom: 6px; }
.timeline-link-card small { font-size: 0.9rem; color: var(--text-muted); display: block; line-height: 1.5; }

@media (max-width: 1024px) {
    .modal { max-width: 90vw; }
    .modal-header { padding: 48px 40px 32px; }
    .modal-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-body { padding: 40px 40px 56px; }
}

@media (max-width: 768px) {
    .modal-header { flex-direction: column; text-align: center; gap: 20px; }
    .modal-title { font-size: 2.8rem; }
    .modal-summary-grid { grid-template-columns: 1fr; }
    .holder-step-layout { flex-direction: column; align-items: center; text-align: center; }
    .holder-step-top { flex-direction: column; align-items: center; gap: 6px; }
    .holder-rail { padding-left: 0; }
    .holder-rail::before, .holder-step::before { display: none; }
    .holder-alliance-item { align-items: flex-start; flex-direction: column; gap: 6px; }
    .holder-alliance-meta { margin-left: 0; }
}

.modal-icon.is-holder-profile {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 6px;
    background:
        radial-gradient(circle at 28% 24%, rgba(var(--accent-rgb), 0.26), rgba(255, 255, 255, 0.02)),
        rgba(12, 9, 10, 0.96);
}

.modal-holder-portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.44);
    box-shadow:
        0 0 0 3px rgba(6, 4, 5, 0.9),
        0 12px 26px rgba(0, 0, 0, 0.4);
}

#modal-description.holder-alliance-listing {
    margin: 0;
}

.holder-alliance-grid {
    display: grid;
    gap: 10px;
}

.holder-alliance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.02)),
        rgba(9, 7, 8, 0.92);
}

.holder-alliance-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--alliance-color, var(--accent));
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.holder-alliance-name {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

.holder-alliance-meta {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

/* Hub Link Center */
.nav-hub-link-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.nav-hub-link-center:hover {
    opacity: 0.7;
}
.nav-hub-icon {
    width: 38px;
    height: 38px;
}
@media (max-width: 768px) {
    .nav-hub-link-center .nav-hub-text { display: none; }
}

@media (max-width: 768px) {
    #main-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 10px;
    }
    .site-switcher {
        justify-self: start;
        min-width: 0;
    }
    .site-switcher-toggle {
        gap: 8px;
        min-width: 0;
    }
    .nav-logo {
        gap: 8px;
        min-width: 0;
        max-width: 100%;
    }
    .nav-logo-mark,
    .nav-logo-icon-container {
        width: 32px;
        height: 32px;
        padding: 5px;
    }
    .nav-logo-text {
        font-size: 0.84rem;
        letter-spacing: 0.12rem;
        white-space: nowrap;
    }
    .nav-hub-link-center {
        position: static;
        transform: none;
        justify-self: center;
    }
    .nav-hub-icon {
        width: 32px;
        height: 32px;
    }
    .mobile-menu-toggle {
        justify-self: end;
    }
}

.site-switcher-menu {
    min-width: 300px;
    max-width: min(340px, calc(100vw - 32px));
    padding: 10px;
}

.site-switcher-link {
    position: relative;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 12px 14px 12px 16px;
    overflow: hidden;
}

.site-switcher-link::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 2px;
    background: var(--switcher-accent, var(--accent));
    opacity: 0.45;
}

.site-switcher-link:hover::before,
.site-switcher-link:focus-visible::before {
    opacity: 1;
    box-shadow: 0 0 14px var(--switcher-glow, rgba(255, 255, 255, 0.4));
}

.site-switcher-link-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}

.site-switcher-link-label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    line-height: 1.12;
    letter-spacing: 0;
}

.site-switcher-link-kicker {
    color: var(--text-muted, rgba(255, 255, 255, 0.58));
    font-size: 0.56rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-switcher-link-accent {
    font-size: 0.92rem;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.site-switcher-link.ow-link { --switcher-accent: #d28cff; --switcher-glow: rgba(187, 41, 255, 0.55); }
.site-switcher-link.mr-link { --switcher-accent: #ff5c7a; --switcher-glow: rgba(255, 47, 96, 0.5); }
.site-switcher-link.cp-link { --switcher-accent: #fcee09; --switcher-glow: rgba(252, 238, 9, 0.55); }
.site-switcher-link.lol-link { --switcher-accent: #c8aa6e; --switcher-glow: rgba(200, 170, 110, 0.48); }
.site-switcher-link.ymir-link { --switcher-accent: #ff8a3d; --switcher-glow: rgba(255, 122, 48, 0.48); }
.site-switcher-link.shinobi-link { --switcher-accent: #ff9d3d; --switcher-glow: rgba(249, 115, 22, 0.55); }
.site-switcher-link.wf-link { --switcher-accent: #22d3ee; --switcher-glow: rgba(34, 211, 238, 0.55); }
.site-switcher-link.cod-link { --switcher-accent: #d8d7c4; --switcher-glow: rgba(216, 215, 196, 0.5); }
.site-switcher-link.tes-link { --switcher-accent: #d8b36a; --switcher-glow: rgba(216, 179, 106, 0.48); }

.site-switcher-link .site-switcher-link-accent {
    color: var(--switcher-accent, currentColor);
    text-shadow: 0 0 12px var(--switcher-glow, transparent);
}

.site-switcher-toggle .nav-logo-icon-container,
.site-switcher-toggle .nav-logo-mark {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.site-switcher-link[aria-disabled="true"] {
    opacity: 0.68;
    cursor: default;
}

.site-switcher-link[aria-disabled="true"]:hover,
.site-switcher-link[aria-disabled="true"]:focus-visible {
    opacity: 0.78;
    background: rgba(255, 255, 255, 0.05);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-strong, var(--border, rgba(255, 255, 255, 0.16)));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.language-switcher label {
    color: var(--text-secondary, rgba(255, 255, 255, 0.68));
    font-size: 0.68rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.language-switcher select {
    min-width: 96px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.82rem;
    text-transform: uppercase;
    outline: 0;
}

.language-switcher select option {
    color: #111827;
    background: #ffffff;
}

@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .language-switcher select {
        flex: 1;
        text-align: right;
    }
}
