/* =========================================================================
   VTuber Archive - The Omni-Terminal / Akashic Database
   Premium | 3D | Glassmorphism | Holographic
========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Inter:wght@300;400;600&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
    --bg-void: #050508;
    --text-primary: #f0f0f5;
    --text-dim: #8ba2c4;

    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --accent-cyan: #00e5ff;
    --accent-magenta: #ff007b;
    --accent-gold: #ffd700;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.is-ready .page-transition {
    opacity: 0;
}

/* -------------------------------------------
   Pointer + Touch Effects
------------------------------------------- */
.fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1200;
}

.cursor-glow {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(160, 230, 255, 0.6) 55%, transparent 75%);
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.2s ease;
    mix-blend-mode: screen;
    box-shadow: 0 0 8px rgba(120, 220, 255, 0.6);
}

.penlight-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: blur(0.2px);
}

.cursor-glow.is-active {
    opacity: 1;
}

.touch-ripple {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(0, 229, 255, 0.12), transparent 70%);
    animation: touchRipple 0.7s ease-out forwards;
}

@keyframes touchRipple {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4);
    }
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #030305;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.page-transition::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(0, 229, 255, 0.4), rgba(255, 0, 123, 0.2), transparent 30%, transparent 70%, rgba(255, 200, 61, 0.2));
    opacity: 0;
}

.page-transition.is-active {
    pointer-events: auto;
    animation: warpEntry 0.5s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.page-transition.is-active::before {
    animation: warpSpin 0.5s linear forwards;
}

@keyframes warpEntry {
    0% { opacity: 0; transform: scale(1); filter: blur(0); }
    50% { opacity: 1; transform: scale(2); filter: blur(5px); }
    100% { opacity: 1; transform: scale(5); filter: blur(20px); background: #000; }
}

@keyframes warpSpin {
    0% { transform: rotate(0deg) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(180deg) scale(2); opacity: 0; }
}

.filter-btn,
.datapanel-card,
.dock-links a,
.dock-search input,
#langSelect {
    touch-action: manipulation;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-highlight);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* -------------------------------------------
   Immersive Deep Void Background
------------------------------------------- */
.omni-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.stage-bg {
    position: fixed;
    inset: 0;
    z-index: -9;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 229, 255, 0.08), transparent 45%),
        radial-gradient(circle at 80% 15%, rgba(255, 0, 123, 0.08), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(255, 200, 61, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(5, 5, 8, 0.7) 0%, rgba(5, 5, 8, 0.95) 100%);
    overflow: hidden;
}

.stage-bg::before,
.stage-bg::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 0deg at 50% 50%, rgba(0, 229, 255, 0.06), transparent 30%, rgba(255, 0, 123, 0.06), transparent 60%, rgba(255, 200, 61, 0.05), transparent 100%);
    animation: stageSweep 24s linear infinite;
    mix-blend-mode: screen;
    opacity: 0.6;
}

.stage-bg::after {
    animation-duration: 36s;
    animation-direction: reverse;
    opacity: 0.4;
}

@keyframes stageSweep {
    0% {
        transform: rotate(0deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1.1);
    }
}

.stage-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.35;
    background:
        linear-gradient(120deg, rgba(0, 229, 255, 0.08), transparent 40%),
        linear-gradient(240deg, rgba(255, 0, 123, 0.08), transparent 45%);
}

.stage-overlay::before,
.stage-overlay::after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    filter: blur(6px);
    opacity: 0.9;
    animation: beamSweep 10s ease-in-out infinite;
}

.stage-overlay::after {
    animation-duration: 14s;
    animation-delay: -5s;
    opacity: 0.6;
}

@keyframes beamSweep {
    0% {
        transform: translateX(-60%) skewX(-12deg);
    }
    50% {
        transform: translateX(40%) skewX(-12deg);
    }
    100% {
        transform: translateX(120%) skewX(-12deg);
    }
}

.omni-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-magenta);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #6a00ff;
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.omni-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 100px 100px;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    transform-origin: top;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

/* -------------------------------------------
   Floating Dock Navigation
------------------------------------------- */
.omni-dock {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    border-radius: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-highlight);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dock-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    padding-right: 2rem;
    border-right: 1px solid var(--glass-border);
}

.dock-links {
    display: flex;
    gap: 1.5rem;
}

.dock-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    transition: 0.3s;
    position: relative;
}

.dock-links a span {
    position: absolute;
    top: -35px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    pointer-events: none;
    border: 1px solid var(--accent-cyan);
}

.dock-links a:hover,
.dock-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dock-links a:hover span {
    opacity: 1;
    transform: translateY(0);
}

.dock-links a.active {
    color: var(--accent-cyan);
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.2);
}

.dock-lang {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid var(--glass-border);
}

.dock-lang select {
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(255, 0, 123, 0.18));
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--text-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    outline: none;
    transition: 0.25s;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.dock-lang select:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 18px rgba(255, 200, 61, 0.25);
}

.dock-lang select option {
    background: #06060b;
    color: #e8f9ff;
}

.dock-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.dock-search i {
    color: var(--text-dim);
}

.dock-search input {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-body);
    width: 150px;
    transition: 0.3s;
}

.dock-search input:focus {
    outline: none;
    width: 200px;
}

/* -------------------------------------------
   Data Core Hero Section
------------------------------------------- */
.omni-hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 2rem;
}

.hero-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

.core-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.core-ring-1 {
    animation: spin 30s linear infinite;
    border-top: 2px solid var(--accent-cyan);
}

.core-ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation: spin 20s linear infinite reverse;
    border-bottom: 2px solid var(--accent-magenta);
}

.core-ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.hero-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: radial-gradient(circle, rgba(5, 5, 8, 0.8) 0%, transparent 70%);
    padding: 3rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 15px;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.hero-title::after {
    content: 'VT_ARCHIVE';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-primary);
    -webkit-text-stroke: 0;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    animation: dataCoreScan 4s infinite alternate;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

@keyframes dataCoreScan {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
    }

    100% {
        clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
    }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 8px;
    color: var(--accent-cyan);
    margin-top: -10px;
    margin-bottom: 2rem;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.metric-val.status-ok {
    color: #00ff66;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
    font-size: 2rem;
    margin-top: 5px;
}

.metric-lbl {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.status-notice {
    max-width: 900px;
    margin: -20px auto 30px;
    padding: 24px 30px;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 200, 60, 0.25);
    border-radius: 14px;
    position: relative;
    z-index: 10;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.status-notice-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffc83d;
}

.status-notice-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.status-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-news {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #39ff72;
    margin-bottom: 4px;
}

.status-panel {
    padding: 12px;
    border-radius: 8px;
}

.status-panel-completed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(57, 255, 114, 0.05);
    border-left: 2px solid #39ff72;
    border-radius: 4px;
}

.status-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.95);
}

.status-label {
    min-width: 100px;
    font-size: 0.78rem;
}

.status-label-completed {
    color: #39ff72;
}

.status-meta {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
}

.status-panel-body {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #66aaff;
    box-shadow: 0 0 4px rgba(102, 170, 255, 0.5);
    flex-shrink: 0;
}

.status-panel-roadmap {
    margin-top: 10px;
    background: rgba(255, 200, 61, 0.05);
    border: 1px solid rgba(255, 200, 61, 0.15);
}

.status-roadmap-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffc83d;
}

.status-roadmap-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.status-roadmap-accent {
    color: #39ff72;
}

.status-notice-footer {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* -------------------------------------------
   Main Container & Filters
------------------------------------------- */
.omni-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 4rem) 150px;
    position: relative;
    z-index: 2;
}

.omni-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* -------------------------------------------
   3D Datapanel Grid
------------------------------------------- */
.datapanel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
    perspective: 1500px;
    /* Essential for 3D tilt effect */
}

.datapanel-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: border-color 0.3s;
    min-height: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    /* JS will handle rotX and rotY */
}

.datapanel-card.is-pressed {
    transform: scale(0.98);
    transition: transform 0.12s ease;
}

/* Internal Card Elements (Translated in Z space for parallax) */
.card-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    pointer-events: none;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}

.card-desc {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

/* Defunct / Archived agency cards */
.card-defunct {
    opacity: 0.6;
    filter: saturate(0.4);
}

.card-defunct:hover {
    opacity: 0.85;
    filter: saturate(0.7);
}

.tag-defunct {
    background: rgba(255, 60, 60, 0.12) !important;
    border-color: rgba(255, 60, 60, 0.3) !important;
    color: #ff6b6b !important;
}

.card-tag[data-tag="整備中"],
.tag-chosa {
    background: rgba(255, 180, 0, 0.1) !important;
    border-color: rgba(255, 180, 0, 0.3) !important;
    color: #ffc83d !important;
}



.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transform: translateZ(40px);
    margin-top: auto;
    pointer-events: none;
}

.card-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Agency Watermark Icon (Deep in Z space) */
.card-watermark {
    position: absolute;
    right: 20px;
    bottom: 10px;
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    opacity: 0.05;
    transform: translateZ(-20px);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

/* Hover States controlled via JS dynamically, but base CSS needed */
.datapanel-card:hover {
    border-color: rgba(var(--brand-rgb), 0.5);
}

.datapanel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 50px rgba(var(--brand-rgb), 0);
    transition: box-shadow 0.3s;
    pointer-events: none;
}

.datapanel-card:hover::before {
    box-shadow: inset 0 0 50px rgba(var(--brand-rgb), 0.15);
}

/* Glare effect inside card */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
    opacity: 0;
    mix-blend-mode: overlay;
    z-index: 10;
    border-radius: inherit;
    /* JS will update background position */
}

.datapanel-card:hover .card-glare {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--text-dim);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.2;
    margin-bottom: 1rem;
    color: var(--accent-magenta);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .omni-dock {
        width: min(95%, 720px);
        justify-content: space-around;
        gap: 0.85rem;
        padding: 0.9rem 1rem;
        bottom: 68px;
        flex-wrap: wrap;
    }

    .dock-search {
        display: none;
    }

    .dock-brand {
        padding-right: 0;
        border: none;
    }

    .dock-brand span {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.2em;
    }

    .hero-core {
        width: min(62vw, 320px);
        height: min(62vw, 320px);
    }

    .status-notice {
        margin: -10px 1rem 24px;
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .omni-hero {
        min-height: 420px;
        height: auto;
        padding: 4.5rem 0 2rem;
    }

    .hero-text-container {
        width: min(100%, 560px);
        padding: 2rem 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
        letter-spacing: 0.08em;
        line-height: 0.95;
        width: min(100%, 12ch);
        margin-inline: auto;
        overflow-wrap: anywhere;
        word-break: break-word;
        color: var(--text-primary);
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
        text-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
    }

    .hero-title::after {
        content: none;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.22em;
        margin-top: 0.6rem;
    }

    .hero-metrics {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .omni-container {
        padding: 2rem 1.5rem 120px;
    }

    .datapanel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .datapanel-card {
        padding: 1.8rem;
        min-height: 200px;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .card-desc {
        font-size: 0.75rem;
    }

    .status-notice-head,
    .status-news,
    .status-panel-head,
    .status-roadmap-head,
    .status-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .status-label {
        min-width: 0;
    }

    .status-meta {
        display: block;
        width: 100%;
    }

    .opening-content {
        width: min(100%, 92vw);
    }

    .boot-terminal {
        width: min(320px, 100%);
    }

    .opening-title.glitch-head {
        font-size: clamp(2rem, 9vw, 2.8rem);
        letter-spacing: 0.18em;
    }

    .opening-status {
        justify-content: center;
        flex-wrap: wrap;
        letter-spacing: 0.08em;
        text-align: center;
    }

    .cyber-btn {
        width: min(100%, 320px);
        padding: 1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.25em;
    }
}

@media (max-width: 520px) {
    .omni-dock {
        width: calc(100% - 16px);
        gap: 0.6rem 0.9rem;
        padding: 0.75rem;
        border-radius: 24px;
        bottom: 60px;
    }

    .dock-links a {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .dock-links a span {
        display: none;
    }

    .dock-links {
        gap: 0.5rem;
    }

    .dock-lang {
        padding-left: 0.75rem;
    }

    .omni-filters {
        gap: 0.6rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }

    .hero-core {
        width: min(72vw, 260px);
        height: min(72vw, 260px);
    }

    .hero-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .hero-title {
        text-shadow: 0 0 14px rgba(0, 229, 255, 0.14);
    }

    .metric-val {
        font-size: 2rem;
    }

    .metric-val.status-ok {
        font-size: 1.6rem;
    }

    .status-notice {
        margin: 0 0.75rem 22px;
        padding: 16px 14px;
        border-radius: 12px;
    }

    .status-notice-copy,
    .status-news,
    .status-row,
    .status-panel-head {
        font-size: 0.74rem;
    }

    .status-panel,
    .status-panel-completed {
        padding-left: 10px;
        padding-right: 10px;
    }

    .opening-core-3d {
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem;
    }

    .core-center-icon {
        font-size: 2.8rem;
    }

    .boot-terminal {
        font-size: 0.62rem;
        height: 36px;
    }

    .opening-title.glitch-head {
        letter-spacing: 0.12em;
        line-height: 1.05;
    }

    .opening-status {
        font-size: 0.72rem;
    }

    .cyber-btn {
        width: min(100%, 280px);
        padding: 0.95rem 1.1rem;
        font-size: 0.9rem;
        letter-spacing: 0.16em;
    }
}

@media (pointer: coarse) {
    .cursor-glow {
        display: none;
    }
    .penlight-canvas {
        opacity: 0.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* -------------------------------------------
   Opening / Entry Step (Ultra-Gorgeous, Pure CSS)
------------------------------------------- */

/* Vue Transition for the Dive-In Effect */
.dive-in-leave-active {
    transition: all 1.2s cubic-bezier(0.75, 0, 0.25, 1);
}
.dive-in-leave-to {
    opacity: 0;
    transform: scale(3.5) translateZ(500px);
    filter: blur(15px);
}

.omni-opening {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #030305;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: var(--font-heading);
    perspective: 1000px;
}

/* Background Grids & Scans */
.op-grid-layer {
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(60deg) translateY(-20%) translateZ(-300px);
    animation: gridFlow 15s linear infinite;
    pointer-events: none;
}

@keyframes gridFlow {
    100% { transform: rotateX(60deg) translateY(0%) translateZ(-300px); }
}

.op-scanline-fast {
    position: absolute;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.1), rgba(255, 215, 0, 0.02), transparent);
    animation: fastScan 3s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes fastScan {
    0% { top: -20vh; }
    100% { top: 120vh; }
}

/* Deep Space Particles (Pure CSS Box-Shadows) */
.css-stars-1, .css-stars-2, .css-stars-3 {
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 2px;
    border-radius: 50%;
    pointer-events: none;
}
.css-stars-1 {
    box-shadow: 10vw 20vh #fff, 40vw 80vh #fff, 80vw 10vh #fff, 20vw 90vh #fff, 90vw 50vh #fff;
    animation: starFloat 20s linear infinite;
    opacity: 0.3;
}
.css-stars-2 {
    width: 3px; height: 3px;
    box-shadow: 15vw 15vh #00e5ff, 45vw 75vh #00e5ff, 85vw 30vh #00e5ff, 25vw 85vh #00e5ff, 95vw 60vh #00e5ff;
    animation: starFloat 15s linear infinite reverse;
    opacity: 0.5;
}
.css-stars-3 {
    width: 4px; height: 4px;
    box-shadow: 30vw 30vh #ff007b, 60vw 60vh #ff007b, 70vw 20vh #ff007b, 10vw 50vh #ff007b, 50vw 90vh #ff007b;
    animation: starFloat 10s linear infinite;
    opacity: 0.7;
}

@keyframes starFloat {
    100% { transform: translateY(-100vh); }
}

/* Main Content Wrapper */
.opening-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform-style: preserve-3d;
}

/* 3D Astrolabe Data Core */
.opening-core-3d {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
    animation: coreHover 4s ease-in-out infinite alternate;
}

@keyframes coreHover {
    to { transform: translateY(-10px); }
}

.core-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.2), 0 0 10px rgba(0, 229, 255, 0.1);
}

.core-orbit.p-x {
    border-color: rgba(0, 229, 255, 0.4);
    animation: orbit-x 8s linear infinite;
}
.core-orbit.p-y {
    border-color: rgba(255, 0, 123, 0.4);
    border-style: dashed;
    animation: orbit-y 10s linear infinite;
}
.core-orbit.p-z {
    border-color: rgba(255, 215, 0, 0.4);
    width: 80%; height: 80%;
    top: 10%; left: 10%;
    animation: orbit-z 12s linear infinite;
}

@keyframes orbit-x { 100% { transform: rotateX(360deg) rotateY(180deg); } }
@keyframes orbit-y { 100% { transform: rotateY(360deg) rotateZ(180deg); } }
@keyframes orbit-z { 100% { transform: rotateZ(360deg) rotateX(180deg); } }

.core-center-icon {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.8), 0 0 50px rgba(0, 229, 255, 0.4);
    animation: pulseIcon 2s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
    to { transform: scale(1.1); text-shadow: 0 0 35px rgba(0, 229, 255, 1), 0 0 60px rgba(0, 229, 255, 0.6); }
}

/* Terminal Boot Sequence */
.boot-terminal {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: #39ff72;
    text-align: left;
    width: 320px;
    height: 40px;
    overflow: hidden;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(57, 255, 114, 0.5);
    margin-bottom: 0.5rem;
}

.boot-line {
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

.boot-line.l-1 { animation: typing 1s steps(40, end) forwards; }
.boot-line.l-2 { animation: typing 1s steps(40, end) 1.2s forwards; }

@keyframes typing {
    to { width: 100%; }
}

/* Glitch Title */
.opening-title.glitch-head {
    font-size: 3.2rem;
    letter-spacing: 14px;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    position: relative;
}

.opening-title.glitch-head::before,
.opening-title.glitch-head::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}

.opening-title.glitch-head::before {
    color: var(--accent-cyan);
    z-index: -1;
    animation: titleGlitch 3s infinite linear alternate-reverse;
}

.opening-title.glitch-head::after {
    color: var(--accent-magenta);
    z-index: -2;
    animation: titleGlitch 2.5s infinite linear alternate-reverse;
}

@keyframes titleGlitch {
    0% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%); }
    20% { transform: translate(2px, -2px); clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); }
    30% { transform: translate(0); clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
    100% { transform: translate(0); clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
}

/* Status text */
.opening-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.status-blink-fast {
    width: 10px;
    height: 10px;
    background: #39ff72;
    border-radius: 50%;
    box-shadow: 0 0 10px #39ff72;
    animation: fastBlink 0.5s steps(2) infinite;
}

@keyframes fastBlink { to { opacity: 0; } }

/* Ultimate Cyber Button */
.cyber-btn {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 1.2rem 3.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1), 0 0 20px rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(5px);
}

.cyber-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.6);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.btn-glitch-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    pointer-events: none;
}

.cyber-btn:hover .btn-layer1 {
    opacity: 1; color: var(--accent-magenta); transform: translateX(-3px);
    z-index: 1; mix-blend-mode: screen;
}
.cyber-btn:hover .btn-layer2 {
    opacity: 1; color: var(--accent-gold); transform: translateX(3px);
    z-index: 1; mix-blend-mode: screen;
}

.bracket-fx {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 60%;
    border: 2px solid var(--accent-cyan);
    transition: all 0.3s;
    opacity: 0.5;
}
.bracket-l { left: 10px; border-right: none; }
.bracket-r { right: 10px; border-left: none; }

.cyber-btn:hover .bracket-l { left: 0; opacity: 1; border-color: #000; height: 100%; }
.cyber-btn:hover .bracket-r { right: 0; opacity: 1; border-color: #000; height: 100%; }
