:root {
    --bg-deep: #020612;
    --bg-darker: #01040a;
    --bg-surface: rgba(6, 16, 38, 0.72);
    --bg-surface-hover: rgba(12, 28, 64, 0.88);
    --cyan-electric: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.45);
    --blue-neon: #38bdf8;
    --blue-sapphire: #2563eb;
    --blue-deep: #0a2463;
    --glass-border: rgba(56, 189, 248, 0.22);
    --glass-border-hover: rgba(0, 240, 255, 0.65);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-cyan: #38bdf8;
    --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

::selection {
    background: rgba(0, 240, 255, 0.35);
    color: #ffffff;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    position: relative;
}

/* ==========================================================================
   FIXED FULL-PAGE COSMIC CANVAS
   ========================================================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   NAVBAR (COSMIC NEON THEME WITH RESTORED LOGO)
   ========================================================================== */
nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(2, 6, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 48px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
    transition: all 0.3s ease;
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-brand-logo:hover {
    transform: scale(1.03);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
    transition: filter 0.3s ease, transform 0.25s ease;
}

.nav-brand-logo:hover .nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
    transition: filter 0.3s ease, transform 0.25s ease;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.brand-sub {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--blue-neon);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--cyan-electric);
    box-shadow: 0 0 10px var(--cyan-electric), 0 0 20px var(--cyan-electric);
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-search-btn:hover {
    color: var(--cyan-electric);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--cyan-electric));
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.nav-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 16, 38, 0.7);
    color: #ffffff;
    padding: 9px 24px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.nav-explore-btn:hover {
    border-color: var(--cyan-electric);
    background: rgba(12, 28, 64, 0.9);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

.nav-explore-btn svg {
    transition: transform 0.25s ease;
}

.nav-explore-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   HERO SECTION (COSMIC 3D BLUEPRINT)
   ========================================================================== */
.hero {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - 75px);
    background: radial-gradient(circle at 55% 45%, rgba(13, 59, 143, 0.32) 0%, rgba(6, 16, 38, 0.6) 55%, transparent 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 48px 40px;
    overflow: hidden;
    z-index: 1;
}

/* Glossy floor reflection */
.hero-floor-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    background: radial-gradient(ellipse at 50% 100%, rgba(0, 162, 255, 0.15) 0%, transparent 80%);
    pointer-events: none;
    z-index: 2;
    border-top: none;
}

.hero-floor-reflection::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
}

/* Main 2-column Hero Grid (Left Typography + Centerpiece) */
.hero-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: center;
    gap: 40px;
    padding-right: 90px; /* Safe zone clearing fixed scroll tracker */
    min-height: 82vh;
}

/* --- Left Column: Typography & Action --- */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    z-index: 15;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--blue-neon);
    text-transform: uppercase;
}

.hero-dash {
    color: var(--cyan-electric);
    font-size: 1rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 5.2vw, 5.2rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.3);
}

.hero-title-sub {
    color: #f8fafc;
    letter-spacing: 3px;
}

.hero-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 320px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.hero-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: rgba(6, 16, 38, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
}

.hero-explore-btn:hover {
    border-color: var(--cyan-electric);
    background: rgba(12, 28, 64, 0.95);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.55);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-explore-btn svg {
    transition: transform 0.25s ease;
}

.hero-explore-btn:hover svg {
    transform: translateX(4px);
}

/* Scroll indicator on bottom left */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 36px;
    cursor: pointer;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
}

.scroll-track {
    width: 2px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    border-radius: 2px;
    margin-left: 2px;
}

.scroll-pip {
    position: absolute;
    top: 0;
    left: -2px;
    width: 6px;
    height: 12px;
    border-radius: 3px;
    background: var(--cyan-electric);
    box-shadow: 0 0 10px var(--cyan-electric);
    animation: scrollPipAnim 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollPipAnim {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(36px); opacity: 0.8; }
    100% { transform: translateY(48px); opacity: 0; }
}

/* --- Center Column: Pure 3D Crystal Aperio Monument (Ultra HD 300 DPI) --- */
.hero-centerpiece {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    user-select: none;
}

.monument-container {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: filter 0.3s ease;
    overflow: visible;
}

.monument-container:active {
    cursor: grabbing;
}

.monument-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 0 35px rgba(0, 162, 255, 0.7)) drop-shadow(0 0 70px rgba(13, 59, 143, 0.55));
    transition: filter 0.3s ease;
}

.monument-container:hover .monument-img {
    filter: drop-shadow(0 0 45px rgba(0, 240, 255, 0.9)) drop-shadow(0 0 90px rgba(14, 165, 233, 0.75));
}

/* 3D Orbiting Energy Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform-style: preserve-3d;
}

.orbit-ring-1 {
    width: 480px;
    height: 480px;
    border: 1.5px solid rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), inset 0 0 25px rgba(0, 240, 255, 0.25);
    transform: rotateX(68deg) rotateY(12deg) rotateZ(0deg);
    animation: orbitSpin1 24s linear infinite;
    z-index: 8;
}

.orbit-ring-2 {
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
    transform: rotateX(62deg) rotateY(-18deg) rotateZ(0deg);
    animation: orbitSpin2 32s linear infinite reverse;
    z-index: 7;
}

.orbit-ring-3 {
    width: 540px;
    height: 200px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    transform: rotateX(74deg) rotateZ(25deg);
    animation: orbitSpin1 40s linear infinite;
    z-index: 5;
}

@keyframes orbitSpin1 {
    from { transform: rotateX(68deg) rotateY(12deg) rotateZ(0deg); }
    to { transform: rotateX(68deg) rotateY(12deg) rotateZ(360deg); }
}

@keyframes orbitSpin2 {
    from { transform: rotateX(62deg) rotateY(-18deg) rotateZ(0deg); }
    to { transform: rotateX(62deg) rotateY(-18deg) rotateZ(360deg); }
}

/* Sparkling lens flare sparks */
.spark-point {
    position: absolute;
    color: var(--cyan-electric);
    font-size: 1.4rem;
    pointer-events: none;
    text-shadow: 0 0 12px var(--cyan-electric), 0 0 25px #ffffff;
    animation: sparkBlink 4s ease-in-out infinite alternate;
    z-index: 18;
}

.sp-1 { top: 20%; left: 32%; animation-delay: 0.5s; font-size: 1.6rem; }
.sp-2 { top: 38%; right: 22%; animation-delay: 1.8s; font-size: 1.2rem; }
.sp-3 { bottom: 22%; right: 38%; animation-delay: 2.7s; font-size: 1.1rem; }

@keyframes sparkBlink {
    0% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(45deg); filter: drop-shadow(0 0 15px #fff); }
    100% { opacity: 0.3; transform: scale(0.9) rotate(90deg); }
}

/* --- Floating Persistent Scroll Spy Journey Tracker (Fixed to Side Edge) --- */
.fixed-scroll-tracker {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 16px;
    z-index: 800;
    pointer-events: auto;
    user-select: none;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tracker-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: right;
}

.tracker-step {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #64748b;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    line-height: 1.2;
    padding: 2px 0;
}

.tracker-step:hover {
    color: var(--blue-neon);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.tracker-step.active {
    color: #ffffff;
    text-shadow: 0 0 14px var(--cyan-electric);
    transform: translateX(-3px);
}

.tracker-bar {
    width: 2px;
    background: rgba(255, 255, 255, 0.14);
    position: relative;
    border-radius: 2px;
}

.tracker-progress {
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 24px;
    background: var(--cyan-electric);
    box-shadow: 0 0 14px var(--cyan-electric);
    border-radius: 2px;
    transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.35s ease;
}

@media (max-width: 900px) {
    .fixed-scroll-tracker {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 16px;
    z-index: 800;
    pointer-events: auto;
    user-select: none;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
}

/* ==========================================================================
   3D CARD WALKTHROUGH SECTION (EXPLORE RESEARCH GAMEPLAY WALKTHROUGH)
   ========================================================================== */
.explore-walkthrough-section {
    padding: 80px 48px 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.explore-walkthrough-header {
    max-width: 1380px;
    margin: 0 auto 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.walkthrough-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.walkthrough-pre-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--blue-neon);
    text-transform: uppercase;
}

.walkthrough-main-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.walkthrough-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.walkthrough-hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--cyan-electric);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* 3D Spatial Stage */
.deck-stage {
    position: relative;
    width: 100%;
    max-width: 1380px;
    height: 440px;
    margin: 0 auto;
    perspective: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.deck-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual 3D Deck Cards (Clean Visual Slides) */
.deck-card {
    position: absolute;
    width: 540px;
    height: 330px;
    background: rgba(6, 16, 38, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.55s ease, 
                filter 0.55s ease, 
                box-shadow 0.55s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* 3D Walkthrough States */
.deck-card.state-active {
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 25;
    border-color: var(--cyan-electric);
    box-shadow: 0 25px 60px -10px rgba(0, 240, 255, 0.35), 0 0 35px rgba(56, 189, 248, 0.25);
    filter: none;
}

.deck-card.state-prev {
    transform: translate3d(-340px, 0, -160px) rotateY(22deg) scale(0.9);
    opacity: 0.65;
    z-index: 15;
    filter: brightness(0.65) blur(0.6px);
}

.deck-card.state-next {
    transform: translate3d(340px, 0, -160px) rotateY(-22deg) scale(0.9);
    opacity: 0.65;
    z-index: 15;
    filter: brightness(0.65) blur(0.6px);
}

.deck-card.state-far-prev {
    transform: translate3d(-580px, 0, -320px) rotateY(34deg) scale(0.78);
    opacity: 0.25;
    z-index: 8;
    pointer-events: none;
    filter: brightness(0.4) blur(1.5px);
}

.deck-card.state-far-next {
    transform: translate3d(580px, 0, -320px) rotateY(-34deg) scale(0.78);
    opacity: 0.25;
    z-index: 8;
    pointer-events: none;
    filter: brightness(0.4) blur(1.5px);
}

.deck-card.state-hidden {
    transform: translate3d(0, 0, -550px) scale(0.6);
    opacity: 0;
    pointer-events: none;
}

/* Card Visual Header */
.card-visual-header {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #01040a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-visual-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #01040a;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deck-card.state-active:hover .card-visual-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #01040a;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-hud-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.hud-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(2, 6, 18, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--cyan-electric);
    backdrop-filter: blur(8px);
}

.hud-station-index {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(2, 6, 18, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Card Content Area */
.card-content-area {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-headline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-station-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.station-meta-txt {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.station-action-prompt {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cyan-electric);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.deck-card.state-active:hover .station-action-prompt {
    transform: translateX(4px);
}

/* Walkthrough Navigation Controls Below Deck */
.walkthrough-controls-row {
    max-width: 600px;
    margin: 32px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.walkthrough-pips {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pip-dot {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pip-dot:hover {
    background: rgba(0, 240, 255, 0.55);
    transform: scaleY(1.3);
}

.pip-dot.active {
    width: 52px;
    height: 7px;
    background: var(--cyan-electric);
    box-shadow: 0 0 16px var(--cyan-electric);
}

.walkthrough-scroll-hint {
    text-align: center;
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #64748b;
    text-transform: uppercase;
}

/* ==========================================================================
   RESEARCH DETAIL MODAL
   ========================================================================== */
.research-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.research-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.research-modal-card {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(6, 16, 38, 0.96);
    border: 1px solid var(--glass-border-hover);
    border-radius: 18px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.25);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-modal-overlay.active .research-modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--cyan-electric);
    transform: scale(1.08);
}

.modal-banner {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.modal-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 28px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-category-tag {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cyan-electric);
    text-transform: uppercase;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.modal-meta-row {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.modal-abstract {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.modal-action-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: var(--cyan-electric);
    color: #020612;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transition: all 0.25s ease;
}

.modal-action-primary:hover {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
    transform: translateY(-1px);
}

.modal-action-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.modal-action-secondary:hover {
    border-color: var(--cyan-electric);
    background: rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   ACADEMIC SECTIONS (TRACKS, WORKFLOW) UPDATED WITH TRANSLUCENT COSMOS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--blue-neon);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-header p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Research Disciplines & Tracks Section */
.tracks-section {
    padding: 85px 48px;
    background: transparent;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    position: relative;
    z-index: 1;
}

.tracks-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.track-card {
    background: rgba(6, 16, 38, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 14px 32px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.track-card:hover {
    transform: translateY(-3px);
    border-color: var(--cyan-electric);
    background: rgba(12, 28, 64, 0.95);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.track-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Workflow Section */
.workflow-section {
    padding: 95px 48px 105px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
}

.workflow-grid {
    max-width: 1160px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.workflow-card {
    flex: 1;
    background: rgba(6, 16, 38, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 38px 30px;
    text-align: left;
    backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.workflow-card:hover {
    border-color: var(--cyan-electric);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.25);
    transform: translateY(-5px);
}

.workflow-step-num {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--cyan-electric);
    margin-bottom: 14px;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.workflow-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.workflow-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.workflow-arrow {
    font-size: 1.8rem;
    color: rgba(56, 189, 248, 0.4);
    user-select: none;
}

.workflow-cta {
    display: flex;
    justify-content: center;
}

/* Site Footer */
.site-footer {
    position: relative;
    z-index: 1;
    background: rgba(1, 4, 10, 0.85);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(56, 189, 248, 0.12);
}

/* Responsive Rules for Hero & 3D Walkthrough */
@media (max-width: 1180px) {
    .hero-layout {
        grid-template-columns: 320px 1fr 100px;
        gap: 15px;
    }
    .deck-card {
    position: absolute;
    width: 460px;
    height: 490px;
    background: rgba(6, 16, 38, 0.88);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.55s ease, 
                filter 0.55s ease, 
                box-shadow 0.55s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
    .deck-card.state-prev {
        transform: translate3d(-260px, 0, -140px) rotateY(20deg) scale(0.88);
    }
    .deck-card.state-next {
        transform: translate3d(260px, 0, -140px) rotateY(-20deg) scale(0.88);
    }
}

@media (max-width: 968px) {
    nav {
        padding: 14px 24px;
    }
    .hero {
        padding: 20px 24px 40px;
    }
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-left {
        align-items: center;
        text-align: center;
    }
    .hero-desc {
        max-width: 500px;
    }
    .hero-right-tracker {
        display: none;
    }
    .hero-scroll-indicator {
        margin: 20px auto 0;
        align-items: center;
    }
    .explore-walkthrough-section {
        padding: 50px 20px 70px;
    }
    .deck-card {
    position: absolute;
    width: 460px;
    height: 490px;
    background: rgba(6, 16, 38, 0.88);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.55s ease, 
                filter 0.55s ease, 
                box-shadow 0.55s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
    .deck-card.state-prev {
        transform: translate3d(-180px, 0, -120px) rotateY(16deg) scale(0.85);
        opacity: 0.5;
    }
    .deck-card.state-next {
        transform: translate3d(180px, 0, -120px) rotateY(-16deg) scale(0.85);
        opacity: 0.5;
    }
    .workflow-grid {
        flex-direction: column;
        gap: 25px;
    }
    .workflow-arrow {
        transform: rotate(90deg);
        margin: -5px 0;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 12px 18px;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .monument-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    overflow: visible;
}
    .monument-img {
        max-width: 380px;
    }
    .orbit-ring-1 { width: 340px; height: 340px; }
    .orbit-ring-2 { width: 280px; height: 280px; }
    .orbit-ring-3 { width: 360px; height: 160px; }
    .deck-stage {
        height: 480px;
    }
    .deck-card {
    position: absolute;
    width: 460px;
    height: 490px;
    background: rgba(6, 16, 38, 0.88);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.55s ease, 
                filter 0.55s ease, 
                box-shadow 0.55s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
    .deck-card.state-prev, .deck-card.state-next {
        opacity: 0;
        pointer-events: none;
    }
}

/* About Section - Full 400 DPI Holographic Sci-Fi Arena */
.about-section {
    position: relative;
    min-height: 100vh;
    background: transparent;
    padding: 70px 20px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}

#about-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.about-hero-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.about-main-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 25px rgba(160, 140, 255, 0.25);
}

.about-dossier-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin-top: 80px;
}

.about-dossier-card {
    background: rgba(6, 16, 38, 0.82);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.about-dossier-card h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 12px;
}

.about-dossier-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
}

.mission-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mission-list li {
    position: relative;
    padding-left: 20px;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #94a3b8;
}

.mission-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--cyan-electric);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   ASTRAL COSMIC TAROT 3D GACHA WHEEL (400 DPI ULTRA-LUXURY 1:1 REPLICA)
   ========================================================================== */
.gacha-stage {
    position: relative;
    width: 100%;
    min-height: 840px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y;
    overflow: hidden;
}

/* 400 DPI Celestial Gyroscope Background Plate */
.gacha-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 40%, rgba(0,0,0,0.85) 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 40%, rgba(0,0,0,0.85) 60%, transparent 95%);
}

.gacha-backdrop-img {
    width: 100%;
    max-width: 1700px;
    height: 100%;
    object-fit: contain;
    object-position: center 48%;
    filter: contrast(1.05) brightness(1.0) drop-shadow(0 0 30px rgba(90, 70, 210, 0.2));
}

/* Live Floating Stardust Twinkle Canvas */
.gacha-twinkle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 3D Scene Viewport */
.gacha-viewport {
    position: relative;
    width: 100%;
    max-width: 1360px;
    height: 720px;
    perspective: 1300px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    outline: none;
}

.gacha-viewport:active {
    cursor: grabbing;
}

.gacha-viewport:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(112, 240, 255, 0.35);
}

/* 3D Rotating Floor Astrolabe Seal */
.gacha-floor-astrolabe {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 780px;
    height: 780px;
    margin-top: -390px;
    margin-left: -390px;
    transform: rotateX(75deg) translateY(160px) translateZ(-140px);
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, 0.22);
    box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.08), 0 0 50px rgba(192, 132, 252, 0.12);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(192, 132, 252, 0.02) 50%, transparent 70%);
    opacity: 0.75;
}

.gacha-floor-astrolabe::before {
    content: '';
    position: absolute;
    inset: 45px;
    border-radius: 50%;
    border: 1px dotted rgba(192, 132, 252, 0.25);
    animation: rotateAstrolabeClockwise 36s linear infinite;
}

.gacha-floor-astrolabe::after {
    content: '';
    position: absolute;
    inset: 110px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.18);
    animation: rotateAstrolabeCounter 24s linear infinite;
}

@keyframes rotateAstrolabeClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateAstrolabeCounter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Center Floating 3D Celestial Core (Spatial 3D Anchor) */
.gacha-center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.core-crystal-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.95)) drop-shadow(0 0 50px rgba(168, 85, 247, 0.8));
    animation: corePulse 4.5s ease-in-out infinite alternate;
}

.core-aura-pulse {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(168, 85, 247, 0.18) 50%, transparent 75%);
    pointer-events: none;
    animation: coreAuraGlow 3.5s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% { transform: scale(0.95) translateY(0); filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 45px rgba(168, 85, 247, 0.7)); }
    100% { transform: scale(1.06) translateY(-8px); filter: drop-shadow(0 0 35px rgba(0, 240, 255, 1)) drop-shadow(0 0 75px rgba(168, 85, 247, 0.95)); }
}

@keyframes coreAuraGlow {
    0% { transform: scale(0.85); opacity: 0.55; }
    100% { transform: scale(1.22); opacity: 1; }
}

/* 3D Orbiting Cards Stage */
.gacha-cards-stage {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 20;
}

/* Individual 3D Astral Tarot Card */
.gacha-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 387px;
    margin-top: -193px;
    margin-left: -125px;
    transform-style: preserve-3d;
    cursor: pointer;
    pointer-events: auto;
    transition: filter 0.28s ease, opacity 0.28s ease;
    will-change: transform, opacity, filter;
    outline: none;
}

.gacha-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(210, 200, 255, 0.35), rgba(130, 105, 240, 0.2) 50%, rgba(100, 140, 255, 0.2));
    filter: blur(4px);
    opacity: 0.15;
    transition: opacity 260ms ease, filter 260ms ease;
}

.gacha-card:hover::after,
.gacha-card:focus-visible::after {
    opacity: 0.45;
    filter: blur(7px);
}

.gacha-card:focus-visible .gacha-card-flipper {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(160, 140, 255, 0.6), 0 0 35px rgba(130, 100, 255, 0.6);
}

/* Flipper container inside Card */
.gacha-card-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: box-shadow 240ms ease;
    border-radius: 18px;
    box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.85), 0 0 14px rgba(120, 100, 245, 0.18), 0 0 6px rgba(180, 160, 255, 0.15);
}

.gacha-card:hover .gacha-card-flipper {
    box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(150, 130, 255, 0.38), 0 0 8px rgba(220, 210, 255, 0.25);
}

/* Flip state: rotates 180deg to reveal front face */
.gacha-card.is-revealed .gacha-card-flipper {
    transform: rotateY(180deg);
}

/* Card Faces */
.gacha-card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}

/* Back Face: Translucent Crystal Astral Tarot Card (Default View) */
.gacha-card-back {
    transform: rotateY(0deg) translateZ(1px);
    background: rgba(8, 8, 22, 0.45);
    backdrop-filter: blur(8px) brightness(1.05);
    -webkit-backdrop-filter: blur(8px) brightness(1.05);
    border: 1px solid rgba(160, 150, 255, 0.22);
    box-shadow: 
        0 15px 35px -5px rgba(0, 0, 0, 0.75),
        0 0 12px rgba(120, 100, 240, 0.15),
        inset 0 0 10px rgba(140, 120, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gacha-crystal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 18px;
}

.gacha-card-crystal-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    background: linear-gradient(125deg, 
        rgba(255, 255, 255, 0.14) 0%, 
        rgba(160, 130, 255, 0.08) 25%, 
        transparent 45%, 
        rgba(120, 150, 255, 0.08) 70%, 
        rgba(255, 255, 255, 0.14) 100%);
    mix-blend-mode: overlay;
    z-index: 4;
    animation: crystalSheen 8s ease-in-out infinite;
}

@keyframes crystalSheen {
    0%, 100% { opacity: 0.25; transform: translateX(-2%); }
    50% { opacity: 0.55; transform: translateX(2%); }
}

.gacha-card-bottom-seal {
    display: none !important;
    position: relative;
    z-index: 5;
    padding: 12px 14px;
    text-align: center;
    background: linear-gradient(to top, rgba(2, 6, 18, 0.92) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.gacha-seal-codex {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 700;
    color: #00f0ff;
    letter-spacing: 2.2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.95), 0 0 20px rgba(0, 240, 255, 0.6);
}

.gacha-seal-name {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.6);
}

/* Front Face: Translucent Crystal Scholar Codex Dossier (Revealed state) */
.gacha-card-front {
    transform: rotateY(180deg) translateZ(1px);
    background: rgba(8, 8, 24, 0.95);
    border: 1.5px solid rgba(160, 150, 255, 0.35);
    box-shadow: 
        0 20px 45px -8px rgba(0, 0, 0, 0.9),
        0 0 24px rgba(120, 100, 245, 0.3),
        inset 0 0 16px rgba(140, 120, 255, 0.16);
    display: flex;
    flex-direction: column;
    padding: 15px 14px 12px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.gacha-front-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 18px;
    z-index: 1;
    opacity: 0.65;
}

.gacha-front-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-evenly;
}

.gacha-card-close-btn {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 15;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    line-height: 1;
}

.gacha-card-close-btn:hover {
    background: rgba(168, 140, 255, 0.35);
    border-color: rgba(168, 140, 255, 0.7);
    transform: scale(1.15);
}

.gacha-avatar-frame {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 130, 255, 0.25) 0%, rgba(18, 14, 46, 0.92) 100%);
    border: 1.8px solid rgba(190, 175, 255, 0.5);
    box-shadow: 0 0 16px rgba(140, 110, 255, 0.4), inset 0 0 12px rgba(190, 175, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.gacha-avatar-monogram {
    font-family: var(--font-serif);
    font-size: 1.42rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(180, 160, 255, 0.85);
}

.gacha-card-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.58rem;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 2px;
    margin-top: 0;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.7);
}

.gacha-card-name {
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0 1px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.gacha-card-role {
    font-size: 0.7rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 2px;
    letter-spacing: 0.4px;
}

.gacha-card-quote-box {
    margin: 2px 0 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 2.5px solid rgba(168, 140, 255, 0.75);
    max-width: 95%;
}

.gacha-card-quote {
    font-family: var(--font-quote, serif);
    font-style: italic;
    font-size: 0.7rem;
    line-height: 1.32;
    color: #e2e8f0;
    margin: 0;
}

.gacha-card-tags-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 1px;
}

.gacha-card-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.55rem;
    font-weight: 600;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.gacha-card-tag.tag-dept {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

/* Active Center Card Highlight */
.gacha-card.is-active-card .gacha-card-flipper {
    box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.95), 0 0 22px rgba(0, 240, 255, 0.32), 0 0 10px rgba(160, 140, 255, 0.25);
}

.gacha-card.is-active-card .gacha-card-back {
    border-color: rgba(0, 240, 255, 0.45);
}

/* Hide old redundant modal HUD since the crystal card itself is now the complete self-contained dossier */
.gacha-reveal-modal {
    display: none !important;
}

/* Interactive Glare */
.gacha-card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 40%), rgba(255, 255, 255, 0.48) 0%, rgba(0, 240, 255, 0.24) 34%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
    border-radius: 18px;
}

.gacha-card:hover .gacha-card-glare {
    opacity: 0.85;
}

/* Focused Card State */
.gacha-card.is-focused {
    z-index: 500 !important;
}

/* Particle Explosion Burst Canvas */
.gacha-vfx-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 250;
}

/* Navigation Controls Bar */
.gacha-controls-bar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.gacha-nav-arrow {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.gacha-nav-arrow:hover {
    background: rgba(0, 240, 255, 0.28);
    border-color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 0 12px #ffffff;
    transform: scale(1.1);
}

.gacha-nav-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gacha-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.25);
    border: 1px solid rgba(0, 240, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gacha-dot.is-active {
    background: #ffffff;
    border-color: #00f0ff;
    box-shadow: 0 0 15px #ffffff, 0 0 25px rgba(0, 240, 255, 1);
    transform: scale(1.35);
}

/* Reveal Detail Modal HUD */
.gacha-reveal-modal {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    width: 90%;
    max-width: 600px;
    background: rgba(4, 9, 28, 0.95);
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 240, 255, 0.35), inset 0 0 25px rgba(0, 240, 255, 0.12);
    border-radius: 18px;
    padding: 18px 24px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
}

.gacha-reveal-modal.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.gacha-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gacha-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
}

.gacha-modal-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #00f0ff;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.9);
}

.gacha-modal-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

.gacha-modal-role {
    font-size: 0.88rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 14px;
}

.gacha-modal-quote-wrap {
    position: relative;
    margin-bottom: 18px;
    padding: 0 20px;
}

.gacha-modal-quote-wrap .quote-glyph {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: #00f0ff;
    line-height: 1;
    display: block;
    margin-bottom: -14px;
    opacity: 0.9;
}

.gacha-modal-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.6;
    margin: 0;
}

.gacha-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
}

.gacha-meta-item .meta-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.gacha-meta-item .meta-val {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Control Drag Hints */
.gacha-drag-hint {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 30;
}

.gacha-drag-hint svg {
    color: #00f0ff;
    animation: mouseScrollPulse 2.2s ease-in-out infinite;
}

@keyframes mouseScrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(4px); opacity: 1; filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8)); }
}

@media (max-width: 1024px) {
    .gacha-viewport {
        height: 620px;
    }
    .gacha-card {
        width: 235px;
        height: 315px;
        margin-top: -157px;
        margin-left: -117px;
    }
    .gacha-card-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .gacha-stage {
        min-height: 780px;
    }
    .gacha-viewport {
        height: 540px;
    }
    .gacha-card {
        width: 195px;
        height: 262px;
        margin-top: -131px;
        margin-left: -97px;
    }
    .gacha-card-name {
        font-size: 0.95rem;
    }
    .gacha-card-role {
        font-size: 0.62rem;
    }
    .gacha-modal-details {
        grid-template-columns: 1fr;
    }

    .gacha-drag-hint {
        font-size: 0.62rem;
        letter-spacing: 1.25px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gacha-card-crystal-overlay,
    .core-crystal-img,
    .core-aura-pulse,
    .gacha-floor-astrolabe::before,
    .gacha-floor-astrolabe::after,
    .gacha-drag-hint svg {
        animation: none;
    }

    .gacha-card,
    .gacha-card-flipper,
    .gacha-reveal-modal,
    .gacha-card-glare {
        transition-duration: 1ms;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .holo-arena-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 50px;
    }
    .arena-ambient-orbit {
        display: none;
    }
}


@media (max-width: 968px) {
    .about-grid, .about-bottom-grid, .team-grid, .about-dossier-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-section {
        padding: 60px 20px;
    }
}

/* Footer Section */
.site-footer {
    background-color: #0b0714;
    color: #ffffff;
    padding: 50px 20px 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.site-footer h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: #f1f5f9;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 6px;
    padding: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-icon-link:hover {
    background-color: rgba(45, 212, 191, 0.1);
    border-color: #2dd4bf;
}

.footer-contact-info {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-top: 10px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
}
/* Kiểu dáng trang Đăng ký (Register Page) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #090d16, #141b2d, #1e1b38, #0b1120);
    padding: 20px;
}

.auth-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.auth-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #8b5cf6;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #8b5cf6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: #7c3aed;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.8);
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.auth-footer a {
    color: #8b5cf6;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-brand {
        max-width: 95%;
    }
    .hero-sub-title {
        gap: 10px;
    }
    .hero-line {
        max-width: 40px;
    }
    .cta-button.apply-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Apple Spotlight Search (macOS Style)
   ========================================================================== */
.spotlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 14vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spotlight-modal {
    width: 100%;
    max-width: 660px;
    background: rgba(6, 16, 38, 0.62);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.26);
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.75), 
                0 0 30px rgba(0, 240, 255, 0.16);
    border-radius: 18px;
    overflow: hidden;
    transform: scale(0.96) translateY(-12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.spotlight-overlay.active .spotlight-modal {
    width: 100%;
    max-width: 660px;
    background: rgba(6, 16, 38, 0.62);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.26);
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.75), 
                0 0 30px rgba(0, 240, 255, 0.16);
    border-radius: 18px;
    overflow: hidden;
    transform: scale(0.96) translateY(-12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.spotlight-header {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 14px;
}

.spotlight-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

#spotlight-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.18rem;
    color: #f8fafc;
    font-family: inherit;
    letter-spacing: 0.2px;
}

#spotlight-input::placeholder {
    color: #64748b;
}

.spotlight-shortcut-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 8px;
}

.spotlight-results::-webkit-scrollbar {
    width: 6px;
}

.spotlight-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.spotlight-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2dd4bf;
    padding: 10px 14px 6px;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.spotlight-item:hover,
.spotlight-item.selected {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.35);
}

.spotlight-item.selected .spotlight-item-title {
    color: #ffffff;
}

.spotlight-item.selected .spotlight-item-icon {
    color: var(--cyan-electric);
    transform: scale(1.08);
}

.spotlight-item.selected .spotlight-item-action {
    opacity: 1;
    transform: translateX(0);
}

.spotlight-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.spotlight-item-content {
    flex: 1;
    min-width: 0;
}

.spotlight-item-title {
    font-size: 0.96rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-title mark,
.spotlight-item-desc mark {
    background: rgba(45, 212, 191, 0.25);
    color: #2dd4bf;
    padding: 0 2px;
    border-radius: 3px;
}

.spotlight-item-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-action {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
    color: #a78bfa;
    flex-shrink: 0;
}

.spotlight-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.spotlight-empty p {
    font-size: 1rem;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.spotlight-empty-sub {
    font-size: 0.85rem;
    color: #64748b;
}

.spotlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 15, 29, 0.7);
    font-size: 0.75rem;
    color: #64748b;
}

.spotlight-tips {
    display: flex;
    gap: 14px;
}

.spotlight-tips kbd {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.spotlight-branding {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

/* Nav Search Pill Indicator */
.nav-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.nav-search-kbd {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

/* ==========================================================================
   Wordpress/Blog Style Explorations Layout & Integrated Typing Editor
   ========================================================================== */
.blog-body {
    background-color: #060913;
    color: #f1f5f9;
}

.blog-hero {
    padding: 70px 40px 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.12) 0%, rgba(6, 9, 19, 0) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-title {
    font-family: 'Playfair Display', 'Plus Jakarta Sans', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 12px 0 10px;
    letter-spacing: 0.5px;
}

.blog-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* 2-Column Blog Layout */
.blog-container {
    max-width: 1280px;
    margin: 40px auto 80px;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Exploration Directory */
.blog-sidebar {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.sidebar-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
}

.exploration-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exploration-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.exploration-nav-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.2);
}

.exploration-nav-item.active {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.45);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
}

.item-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    padding-top: 2px;
}

.item-meta h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: inherit;
}

.item-meta p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.sidebar-info-card {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(45, 212, 191, 0.05);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 12px;
}

.info-card-icon {
    font-size: 1.3rem;
}

.info-card-text strong {
    display: block;
    font-size: 0.85rem;
    color: #2dd4bf;
    margin-bottom: 4px;
}

.info-card-text p {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Article Canvas (Right Side) */
.blog-article-canvas {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 36px 44px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 14px;
}

.article-breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
}

.article-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #2dd4bf;
}

.article-breadcrumb span:last-child {
    color: #f1f5f9;
    font-weight: 500;
}

.article-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.editor-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.5);
}

.editor-toggle-btn.editing {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.save-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: default;
    transition: color 0.2s, border-color 0.2s;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
}

.saved-pulse {
    border-color: #2dd4bf;
    color: #5eead4;
}

/* Cover Image Frame */
.article-cover-frame {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #02040a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Typing Toolbar (Wordpress/Medium/Notion Style) */
.typing-toolbar {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 24px;
    animation: toolbarSlide 0.2s ease-out;
}

.typing-toolbar.visible {
    display: flex;
}

@keyframes toolbarSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
}

.tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tool-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.4);
}

.tool-btn.danger-tool {
    color: #f87171;
}

.tool-btn.danger-tool:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Article Header */
.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-family: 'Playfair Display', 'Plus Jakarta Sans', Georgia, serif;
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.author-tag {
    color: #2dd4bf;
    font-weight: 600;
}

.read-tag {
    color: #a78bfa;
    font-weight: 500;
}

.meta-bullet {
    color: #475569;
}

.date-tag {
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Editable Body Canvas */
.article-editable-body {
    min-height: 250px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px dashed transparent;
    transition: all 0.2s ease;
    outline: none;
}

.article-editable-body[contenteditable="true"] {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-editable-body[contenteditable="true"]:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.2), inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-editable-body:empty:before {
    content: attr(data-placeholder);
    color: #64748b;
    font-style: italic;
}

/* Rich Content Formatting inside Article */
.article-editable-body h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 28px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.article-editable-body h3 {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin: 22px 0 10px;
}

.article-editable-body p {
    margin-bottom: 18px;
    color: #cbd5e1;
}

.article-editable-body ul, .article-editable-body ol {
    margin: 14px 0 20px 24px;
    color: #cbd5e1;
}

.article-editable-body li {
    margin-bottom: 8px;
}

.article-editable-body blockquote {
    border-left: 3px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #e2e8f0;
}

.article-editable-body .callout-box {
    background: rgba(45, 212, 191, 0.08);
    border-left: 3px solid #2dd4bf;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.article-editable-body hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Article Pagination Footer */
.article-pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.nav-article-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-article-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.article-indicator-count {
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive Blog Styles */
@media (max-width: 960px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    .blog-sidebar {
        position: static;
    }
    .blog-article-canvas {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   ACANTHUS SANCTUARY: 3D GAMEPLAY WALKTHROUGH ENGINE
   ========================================================================== */
.walkthrough-body {
    background-color: #040810;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    user-select: none;
}

.walkthrough-viewport {
    position: relative;
    width: 100vw;
    height: calc(100vh - 65px);
    overflow: hidden;
    perspective: 1000px;
    background: #030712;
}

/* Background Backdrop Layer with Depth Parallax */
.walkthrough-backdrop {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('acanthus_sanctuary.jpg');
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.92) contrast(1.08) saturate(1.1);
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    will-change: transform;
    pointer-events: none;
}

/* Volumetric God Rays & Ambient Vignette */
.walkthrough-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(253, 230, 138, 0.18) 0%, rgba(45, 212, 191, 0.08) 35%, rgba(4, 8, 16, 0.6) 80%, rgba(2, 5, 12, 0.88) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 20%, transparent 80%, rgba(3, 7, 18, 0.85) 100%);
    mix-blend-mode: multiply;
}

/* Canvas for Particles (Golden Spores, Floating Acanthus Leaves, DNA Sparkles) */
#walkthroughFxCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* 3D Camera Rig & World Space */
.camera-rig {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform;
}

.world-space {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* 3D Station Monoliths / Chamber Waypoints */
.station-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    transform-style: preserve-3d;
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.station-node.out-of-range {
    opacity: 0.15;
    filter: blur(4px);
    pointer-events: none;
}

.station-node.in-focus {
    opacity: 1;
    filter: none;
    pointer-events: auto;
}

.station-monolith {
    position: relative;
    background: rgba(10, 18, 30, 0.75);
    border: 1px solid rgba(253, 230, 138, 0.35);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(253, 230, 138, 0.15), inset 0 0 20px rgba(45, 212, 191, 0.08);
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.station-node:hover .station-monolith,
.station-node.in-focus .station-monolith {
    border-color: rgba(253, 230, 138, 0.7);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(253, 230, 138, 0.3), inset 0 0 25px rgba(45, 212, 191, 0.18);
    transform: translate(-50%, -52%) scale(1.02);
}

/* Classical Acanthus Crest on top of monolith */
.monolith-crest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(253, 230, 138, 0.2);
    padding-bottom: 6px;
}

.chamber-tag {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: 1.5px;
}

.acanthus-crest-icon {
    font-size: 0.95rem;
    color: #2dd4bf;
    filter: drop-shadow(0 0 6px #2dd4bf);
}

.monolith-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #02050e;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.monolith-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.monolith-title {
    font-family: 'Playfair Display', 'Plus Jakarta Sans', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    text-align: center;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   GAMEPLAY HEADS-UP DISPLAY (HUD)
   ========================================================================== */
/* Top HUD Bar */
.game-hud-top {
    position: absolute;
    top: 20px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

/* Waypoint Runes Tracker */
.hud-waypoint-tracker {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(10, 15, 28, 0.75);
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.waypoint-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.waypoint-btn:hover {
    border-color: #fde68a;
    color: #ffffff;
    background: rgba(253, 230, 138, 0.15);
}

.waypoint-btn.active {
    background: linear-gradient(135deg, #fde68a, #d97706);
    color: #0f172a;
    border-color: #fde68a;
    box-shadow: 0 0 15px rgba(253, 230, 138, 0.6);
    transform: scale(1.1);
}

.hud-audio-btn {
    position: absolute;
    right: 0;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.hud-audio-btn:hover {
    border-color: #2dd4bf;
    color: #ffffff;
    transform: scale(1.06);
}

.hud-audio-btn.playing {
    border-color: #2dd4bf;
    color: #2dd4bf;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

/* Bottom HUD Navigation Deck */
.game-hud-bottom {
    position: absolute;
    bottom: 24px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

/* Virtual Step Controller */
.hud-movement-cluster {
    display: flex;
    gap: 6px;
    pointer-events: auto;
    background: rgba(10, 15, 28, 0.75);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.move-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.move-ctrl-btn:hover {
    background: rgba(45, 212, 191, 0.25);
    border-color: #2dd4bf;
    color: #ffffff;
    transform: scale(1.06);
}

.move-ctrl-btn:active {
    transform: scale(0.94);
}

.hud-status-cluster {
    text-align: center;
    pointer-events: auto;
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid rgba(253, 230, 138, 0.25);
    padding: 9px 24px;
    border-radius: 30px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.current-chamber-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fde68a;
    margin: 0;
}

/* ==========================================================================
   ACANTHUS SCHOLAR'S CODEX (FULLSCREEN NOTEBOOK MODAL & TYPING EDITOR)
   ========================================================================== */
.codex-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.codex-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.codex-modal-container {
    background: rgba(13, 21, 38, 0.95);
    border: 1px solid rgba(253, 230, 138, 0.35);
    border-radius: 20px;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(253, 230, 138, 0.12);
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.codex-modal-overlay.active .codex-modal-container {
    transform: translateY(0) scale(1);
}

.codex-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.codex-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: #f87171;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-hud-top {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .hud-title-cluster h2 {
        display: none;
    }
    .game-hud-bottom {
        bottom: 15px;
        left: 10px;
        right: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .station-node {
        width: 290px;
    }
    .codex-modal-container {
        padding: 24px 18px;
    }
}


/* Extra 3D Deck HUD & Card helpers */
.hud-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan-electric);
    box-shadow: 0 0 8px var(--cyan-electric);
    display: inline-block;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}



.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-meta-txt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--blue-neon);
    text-transform: uppercase;
}

.card-rating {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #01040a;
    display: block;
}

/* ==========================================================================
   DEDICATED RESEARCH ARCHIVE PAGE (research.html)
   ========================================================================== */
.research-archive-hero {
    position: relative;
    padding: 120px 40px 40px;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.archive-pre-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--blue-neon);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.archive-main-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.7);
}

.archive-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Category Filter Bar */
.archive-filters-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-pill {
    background: rgba(6, 16, 38, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.filter-pill:hover {
    border-color: var(--cyan-electric);
    color: #ffffff;
    background: rgba(12, 28, 64, 0.9);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan-electric);
    color: var(--cyan-electric);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

/* Papers Container & Grid */
.archive-papers-container {
    max-width: 1280px;
    margin: 0 auto 120px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Individual Research Paper Card */
.archive-paper-card {
    background: rgba(6, 16, 38, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 460px 1fr;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
}

.archive-paper-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 20px 50px -10px rgba(0, 240, 255, 0.2), 0 0 25px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

/* Target Glow when navigated from homepage */
.archive-paper-card.target-highlight {
    border-color: var(--cyan-electric) !important;
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.6), 0 0 15px #ffffff !important;
    animation: targetPulseGlow 3s ease-out;
}

@keyframes targetPulseGlow {
    0% { transform: scale(1.02); box-shadow: 0 0 60px rgba(0, 240, 255, 0.8); }
    50% { transform: scale(1.01); box-shadow: 0 0 35px rgba(0, 240, 255, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); }
}

/* Paper Visual Header */
.paper-visual-wrapper {
    position: relative;
    background: #01040a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
}

.paper-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-paper-card:hover .paper-visual-img {
    transform: scale(1.03);
}

/* Paper Details Column */
.paper-detail-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.paper-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.paper-cat-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: var(--cyan-electric);
    text-transform: uppercase;
}

.paper-meta-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.paper-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 10px;
}

.paper-author-line {
    font-size: 0.85rem;
    color: #38bdf8;
    margin-bottom: 16px;
    font-weight: 500;
}

.paper-abstract-text {
    font-size: 0.94rem;
    color: #94a3b8;
    line-height: 1.68;
    margin: 0 0 24px;
}

/* Highlights badges */
.paper-highlights-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.highlight-tag {
    font-size: 0.74rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

/* Paper Actions */
.paper-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.paper-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: rgba(0, 240, 255, 0.14);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.paper-primary-btn:hover {
    background: var(--cyan-electric);
    color: #01040a;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

.paper-secondary-link {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.paper-secondary-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .archive-paper-card {
        grid-template-columns: 1fr;
    }
    .paper-visual-wrapper {
        min-height: 240px;
        max-height: 320px;
    }
}

