/* ========================================
   BLACK BLUEPRINT — DESIGN SYSTEM
   Engineering Drafting Board Aesthetic
======================================== */
:root {
    /* The Canvas */
    --bg-dark: #080c10;
    /* Rich matte charcoal/slate — not flat black */

    /* Blueprint Ink */
    --blueprint-navy: #1a2a4a;
    --blueprint-line: rgba(30, 80, 160, 0.4);
    --blueprint-line-bright: rgba(80, 140, 255, 0.6);
    --blueprint-dim: rgba(30, 60, 120, 0.2);

    /* Typography */
    --accent-primary: #dce8ff;
    /* Crisp white — high-priority readouts */
    --accent-secondary: #4a90d9;
    /* Blueprint blue accent */
    --accent-tertiary: #22c55e;
    /* System-state green — success/active nodes */
    --accent-purple: #7c3aed;
    /* Warning purple — AI movements / logic errors */
    --text-main: #dce8ff;
    --text-dim: #4a6080;

    /* Panels */
    --glass-bg: rgba(8, 16, 32, 0.7);
    --glass-border: rgba(30, 80, 160, 0.35);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Blueprint grid SVG as data URI */
    --bp-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(30,80,160,0.15)' stroke-width='0.5'/%3E%3C/svg%3E");
    --bp-grid-iso: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='46'%3E%3Cpath d='M 40 0 L 80 23 L 40 46 L 0 23 Z' fill='none' stroke='rgba(30,80,160,0.12)' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* === THEME: CARBON CYAN (tints blueprint accents) === */
body.theme-cyan {
    --accent-secondary: #00d4e8;
    --blueprint-line-bright: rgba(0, 212, 232, 0.5);
}

/* === THEME: RETRO AMBER (warm blueprint tone) === */
body.theme-amber {
    --accent-secondary: #d4a240;
    --blueprint-line-bright: rgba(212, 162, 64, 0.5);
}

/* === THEME: MATRIX GREEN === */
body.theme-green {
    --accent-secondary: #22c55e;
    --accent-tertiary: #16a34a;
    --blueprint-line-bright: rgba(34, 197, 94, 0.5);
}

/* === THEME: CYBER NEON (purple dominates) === */
body.theme-neon {
    --accent-secondary: #9333ea;
    --blueprint-line-bright: rgba(147, 51, 234, 0.5);
}


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

body {
    background-color: var(--bg-dark);
    background-image: var(--bp-grid);
    background-size: 60px 60px;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Blueprint corner crosshairs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 20px;
    height: 20px;
    border-color: var(--blueprint-line-bright);
    border-style: solid;
    opacity: 0.5;
    pointer-events: none;
    z-index: 9999;
}
body::before {
    top: 12px;
    left: 12px;
    border-width: 1px 0 0 1px;
}
body::after {
    top: 12px;
    right: 12px;
    border-width: 1px 1px 0 0;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Glassmorphism — Blueprint panels: angular, crisp-bordered */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--blueprint-line);
    border-radius: 0;
    /* Angular corners — no soft radius */
    position: relative;
}

/* Blueprint corner marks on glass panels */
.glass::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--blueprint-line-bright);
    border-left: 1px solid var(--blueprint-line-bright);
    pointer-events: none;
    z-index: 1;
}
.glass::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid var(--blueprint-line-bright);
    border-right: 1px solid var(--blueprint-line-bright);
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    background: rgba(8, 12, 16, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--blueprint-line);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Buttons — Blueprint style: crisp borders, no glow halos */
button {
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--blueprint-line-bright);
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    position: relative;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blueprint-line);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--blueprint-line-bright);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary.large {
    padding: 1rem 2.2rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--blueprint-line);
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.btn-secondary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    width: 100%;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 580px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    border-left: 2px solid var(--blueprint-line);
    padding-left: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

/* Hero blueprint spec panel below CTA */
.hero-bp-specs {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--blueprint-line);
    border-left: 2px solid var(--blueprint-line-bright);
    background: rgba(30, 80, 160, 0.06);
}

/* Blueprint spec row — key: value */
.bp-spec-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.6;
}

.bp-spec-key {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-spec-key::after {
    content: ':';
    color: var(--blueprint-line-bright);
    margin-left: 2px;
}

.bp-spec-val {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Hero eyebrow */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bp-spec-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-secondary);
    border: 1px solid var(--blueprint-line);
    padding: 2px 8px;
    letter-spacing: 1px;
    background: rgba(30, 80, 160, 0.1);
}

.bp-coord {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    opacity: 0.7;
    letter-spacing: 2px;
}

/* Wireframe maze SVG hero visual */
.hero-visual {
    position: absolute;
    right: 4%;
    width: 380px;
    height: 380px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-maze-svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
    animation: bpMazePulse 8s ease-in-out infinite alternate;
}

@keyframes bpMazePulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.bp-tower {
    animation: bpDraw 4s ease-in-out infinite alternate;
}

@keyframes bpDraw {
    0% { stroke-opacity: 0.6; }
    100% { stroke-opacity: 1; }
}

.bp-beams line {
    animation: bpBeamFlow 3s linear infinite;
}

@keyframes bpBeamFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}

/* Blueprint section headers */
.bp-section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.bp-section-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blueprint-line-bright), transparent);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}


/* Featured Games */
.featured-games {
    padding: 8rem 10%;
}

/* Blueprint folder dossier cards */
.bp-folder {
    position: relative;
    border: 1px solid var(--blueprint-line) !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transition: var(--transition-smooth);
}

.bp-folder:hover {
    border-color: var(--blueprint-line-bright) !important;
    background: rgba(30, 80, 160, 0.12) !important;
    box-shadow: 0 0 0 1px var(--blueprint-line-bright), inset 0 0 30px rgba(30, 80, 160, 0.06) !important;
}

/* Tab label at top of dossier folder */
.bp-folder-tab {
    position: absolute;
    top: -1px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--blueprint-line-bright);
    background: var(--bg-dark);
    border: 1px solid var(--blueprint-line);
    border-bottom: 1px solid var(--bg-dark);
    padding: 2px 10px;
    transform: translateY(-100%);
    white-space: nowrap;
    z-index: 2;
}

/* Blueprint corner marks — + crosshairs */
.bp-folder-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    font-size: 10px;
    color: var(--blueprint-line-bright);
    font-family: var(--font-mono);
    line-height: 1;
    z-index: 2;
    opacity: 0.6;
    pointer-events: none;
}
.bp-folder-corner.tl { top: 3px; left: 5px; }
.bp-folder-corner.tr { top: 3px; right: 5px; }
.bp-folder-corner.bl { bottom: 3px; left: 5px; }
.bp-folder-corner.br { bottom: 3px; right: 5px; }

/* Blueprint schematic icons */
.bp-schematic-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid var(--blueprint-line);
    width: fit-content;
    background: rgba(30, 80, 160, 0.05);
}

.bp-schematic-icon.sm {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

/* Blueprint spec list inside cards */
.bp-spec-list {
    margin: 1rem 0;
    border-top: 1px solid var(--blueprint-line);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bp-spec-list.compact {
    margin: 0.5rem 0;
    padding-top: 0.5rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    padding: 2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.game-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.game-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-dim);
}

/* Animations */
.game-card {
    opacity: 1;
    /* Ensure visible by default */
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.game-card.reveal-active {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-content>* {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .hero-cta {
    animation-delay: 0.6s;
}

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

/* ─── BLUEPRINT CONSOLE FOOTER ─────────────────────────────────── */
.bp-console-footer {
    border-top: 1px solid var(--blueprint-line);
    background: rgba(6, 10, 18, 0.96);
    padding: 2.5rem 5% 0;
    position: relative;
    overflow: hidden;
}

.bp-console-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blueprint-line-bright), transparent);
}

.bp-console-inner {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
    align-items: start;
}

.bp-console-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.bp-console-logo span { color: var(--blueprint-line-bright); }

.bp-console-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Diagnostics grid */
.bp-diag-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--blueprint-line-bright);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--blueprint-line);
    padding-bottom: 0.3rem;
}

.bp-diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 2rem;
}

.bp-diag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.67rem;
    border-bottom: 1px solid rgba(30, 80, 160, 0.12);
    padding: 0.2rem 0;
}

.bp-diag-key {
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.bp-diag-val {
    color: var(--accent-primary);
    font-weight: 600;
}

.bp-diag-active {
    color: var(--accent-tertiary) !important;
    animation: bpActivePulse 2s ease-in-out infinite alternate;
}

@keyframes bpActivePulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Right calibration column */
.bp-console-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.bp-calib-mark {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--blueprint-line-bright);
    letter-spacing: 2px;
}

.bp-calib-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-calib-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--blueprint-line-bright), transparent);
    position: relative;
}

.bp-calib-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 1px;
    height: 7px;
    background: var(--blueprint-line-bright);
    opacity: 0.5;
}

.bp-console-copy {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Footer bottom dimension rule */
.bp-footer-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--blueprint-line);
    max-width: 1400px;
    margin: 0 auto;
}

.bp-rule-mark {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--blueprint-line-bright);
    opacity: 0.6;
    flex-shrink: 0;
}

.bp-rule-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--blueprint-line), transparent);
}

.bp-rule-line:last-of-type {
    background: linear-gradient(90deg, transparent, var(--blueprint-line));
}

.bp-rule-text {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    flex-shrink: 0;
}

/* ─── HERO LIVE STATS ───────────────────────────────────────────── */
.hero-live-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-left: 1px solid var(--blueprint-line);
}

.live-stat {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    display: inline-block;
    animation: bpActivePulse 1.5s ease-in-out infinite alternate;
}

/* ─── GAME TAGS ─────────────────────────────────────────────────── */
.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.game-tags span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--blueprint-line-bright);
    border: 1px solid var(--blueprint-line);
    padding: 1px 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── BENCHMARKS TAB: UNFOLDING BLUEPRINT ───────────────────────── */
#view-cores {
    background: var(--bg-dark);
    background-image: var(--bp-grid-iso);
    background-size: 80px 46px;
}

/* Unfold entry animation when tab goes .active */
#view-cores.active {
    animation: bpUnfold 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes bpUnfold {
    0% {
        clip-path: inset(50% 50% 50% 50%);
        opacity: 0;
    }
    60% {
        clip-path: inset(0% 0% 0% 0%);
        opacity: 0.8;
    }
    100% {
        clip-path: inset(0% 0% 0% 0%);
        opacity: 1;
    }
}

/* Blueprint 3-panel layout for benchmarks */
.cores-bp-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 0;
    min-height: 65vh;
    border: 1px solid var(--blueprint-line);
    margin: 0 2rem 2rem;
    position: relative;
}

/* Panel dividers */
.cores-bp-layout > * {
    border-right: 1px solid var(--blueprint-line);
    padding: 1.5rem;
}
.cores-bp-layout > *:last-child {
    border-right: none;
}

/* Left: Brain diagnostic panel */
.bp-brain-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bp-brain-title {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: var(--blueprint-line-bright);
    text-align: center;
    border-bottom: 1px solid var(--blueprint-line);
    padding-bottom: 0.5rem;
    width: 100%;
}

/* Brain schematic SVG */
.bp-brain-svg {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

/* Brain logic nodes */
.bp-brain-nodes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.bp-brain-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
}

.bp-brain-node-dot {
    width: 7px;
    height: 7px;
    border: 1px solid var(--blueprint-line);
    flex-shrink: 0;
    border-radius: 50%;
}

.bp-brain-node-dot.active {
    background: var(--accent-tertiary);
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 6px var(--accent-tertiary);
}

.bp-brain-node-dot.warning {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 6px var(--accent-purple);
}

/* Center: Calibration spec sheet */
.bp-spec-sheet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bp-spec-sheet-title {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: var(--blueprint-line-bright);
    border-bottom: 1px solid var(--blueprint-line);
    padding-bottom: 0.5rem;
}

/* Right: Circuit breaker claim panel */
.bp-claim-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bp-claim-title {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: var(--blueprint-line-bright);
    border-bottom: 1px solid var(--blueprint-line);
    padding-bottom: 0.5rem;
}

/* Circuit breaker claim buttons */
.bp-breaker {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem;
    border: 1px solid var(--blueprint-line);
    position: relative;
    cursor: default;
    transition: var(--transition-smooth);
}

.bp-breaker.armed {
    border-color: var(--accent-tertiary);
    background: rgba(34, 197, 94, 0.06);
}

.bp-breaker-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bp-breaker-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.bp-breaker-switch {
    width: 28px;
    height: 14px;
    border: 1px solid var(--blueprint-line);
    position: relative;
    background: rgba(30, 80, 160, 0.05);
}

.bp-breaker-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: var(--text-dim);
    transition: all 0.3s;
}

.bp-breaker.armed .bp-breaker-switch {
    border-color: var(--accent-tertiary);
}

.bp-breaker.armed .bp-breaker-switch::after {
    left: calc(100% - 10px);
    background: var(--accent-tertiary);
}

.bp-breaker-state {
    color: var(--text-dim);
}

.bp-breaker.armed .bp-breaker-state {
    color: var(--accent-tertiary);
}

/* Cores hero section stays but gets blueprint treatment */
.cores-hero {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--blueprint-line);
    position: relative;
}

.cores-title-massive {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-primary);
}

.cores-subtitle-elegant {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

/* Unfold grid lines that "draw in" on tab activate */
.cores-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--blueprint-line-bright);
    animation: bpLineDrawH 1s ease-out forwards;
    animation-delay: 0.3s;
    width: 0%;
}

#view-cores.active .cores-hero::after {
    width: 100%;
}

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

/* Core node blueprint reskin */
.core-node {
    border: 1px solid var(--blueprint-line);
    padding: 1.25rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.core-node:hover {
    border-color: var(--blueprint-line-bright);
    background: rgba(30, 80, 160, 0.08);
}

.cores-dynamic-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border: 1px solid var(--blueprint-line);
    margin: 1rem 2rem;
}

.cores-dynamic-layout > .core-node {
    border: none;
    border-right: 1px solid var(--blueprint-line);
    border-bottom: 1px solid var(--blueprint-line);
}

/* ─── DASHBOARD MAP: ISOMETRIC OVERLAY ──────────────────────────── */
.map-canvas-container {
    position: relative;
    overflow: hidden;
}

/* Isometric degree label at canvas edge */
.map-canvas-container::before {
    content: '30° ISOMETRIC OFFSET';
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--blueprint-line-bright);
    opacity: 0.5;
    letter-spacing: 1px;
    z-index: 5;
    pointer-events: none;
}

/* X/Y coordinate corner label */
.map-canvas-container::after {
    content: 'X-88 // Y-02';
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--blueprint-line-bright);
    opacity: 0.4;
    letter-spacing: 1px;
    z-index: 5;
    pointer-events: none;
}

/* ─── DASHBOARD SIDEBAR BLUEPRINT ───────────────────────────────── */
.dashboard-sidebar {
    background: rgba(6, 10, 18, 0.97);
    border-right: 1px solid var(--blueprint-line);
    position: relative;
}

.dashboard-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--blueprint-line-bright), transparent 60%);
    pointer-events: none;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--blueprint-line);
    padding: 1.5rem 1.5rem 1rem;
}

.sidebar-logo span { color: var(--blueprint-line-bright); }

.nav-item {
    border-bottom: 1px solid rgba(30, 80, 160, 0.15);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-dim);
    transition: var(--transition-smooth);
    padding: 0.85rem 1.5rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-primary);
    background: rgba(30, 80, 160, 0.1);
    border-left: 2px solid var(--blueprint-line-bright);
}

/* ─── CIRCUIT BREAKER CLAIM BUTTONS (existing CLAIM btns) ─────── */
button[id^="claim-"] {
    background: transparent !important;
    border: 1px solid var(--blueprint-line) !important;
    color: var(--text-dim) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.62rem !important;
    letter-spacing: 2px !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

button[id^="claim-"]:hover {
    border-color: var(--accent-tertiary) !important;
    color: var(--accent-tertiary) !important;
    background: rgba(34, 197, 94, 0.06) !important;
}

/* ─── FEATURED HIGHLIGHT BLUEPRINT ─────────────────────────────── */
.featured-game-highlight {
    padding: 2.5rem;
    margin-top: 2rem;
    background: rgba(8, 16, 32, 0.6) !important;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.btn-outline {
    background: transparent;
    color: var(--blueprint-line-bright);
    border: 1px solid var(--blueprint-line);
    padding: 0.5rem 1rem;
    border-radius: 0;
    width: 100%;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: rgba(30, 80, 160, 0.15);
    border-color: var(--blueprint-line-bright);
    color: var(--accent-primary);
}

/* ─── GLITCH TEXT BLUEPRINT ADAPTATION ─────────────────────────── */
.glitch-text {
    color: var(--accent-primary);
    text-shadow: none;
}

/* ─── ACCENT SPAN (Benchmarks "AI" title) ───────────────────────── */
.accent-span {
    color: var(--blueprint-line-bright);
}

/* ─── GAME-TAGS BLUEPRINT ────────────────────────────────────────── */
.highlight-text-box .game-tags span {
    color: var(--blueprint-line-bright);
    border-color: var(--blueprint-line);
}


/* Dash Game Cards */
.dash-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.dash-card {
    background: #0a0b1e;
    /* Deep dark purple-blue */
    border: 1px solid rgba(112, 0, 255, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.dash-card h3,
.dash-card p,
.dash-card .game-icon-dash,
.dash-card .btn-dash-play {
    transition: all 0.4s ease;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.dash-card:hover {
    transform: rotateY(-10deg) translateZ(30px);
    background: #ffffffe4;
    color: #05070a;
    border-color: #ffffff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4),
        0 0 80px rgba(255, 255, 255, 0.2);
}

.dash-card:hover .game-icon-dash {
    transform: scale(1.1);
    color: #05070a;
}

.dash-card:hover h3,
.dash-card:hover p,
.dash-card:hover .game-icon-dash {
    color: #05070a;
}

.dash-card:hover .btn-dash-play {
    background: #05070a;
    color: #ffffff;
}

/* Recommended Dashboard Card */
.recommended-card {
    border: 1px solid #4fc3f7 !important;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(0, 0, 0, 0.8)) !important;
    position: relative;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.2);
    animation: cardGlowBlue 3s infinite alternate;
}

@keyframes cardGlowBlue {
    0% {
        box-shadow: 0 0 15px rgba(79, 195, 247, 0.1);
    }

    100% {
        box-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
    }
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4fc3f7;
    color: #0a0b1e;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 10;
}

.recommended-card .btn-dash-play {
    background: #4fc3f7;
    color: #0a0b1e;
    border: none;
}

/* Featured Highlight (Landing Page) */
.featured-highlight-container {
    margin-bottom: 4rem;
    width: 100%;
}

.featured-game-highlight {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(79, 195, 247, 0.3);
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    transition: var(--transition-smooth);
}

.highlight-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #4fc3f7;
    color: #0a0b1e;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 2px;
}

.highlight-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.highlight-info {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    min-width: 300px;
}

.game-icon-large {
    font-size: 5rem;
    filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.4));
}

.highlight-text-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #4fc3f7, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text-box p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.game-tags {
    display: flex;
    gap: 1rem;
}

.game-tags span {
    font-size: 0.7rem;
    color: #4fc3f7;
    border: 1px solid rgba(79, 195, 247, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-actions .btn-primary.large {
    background: #4fc3f7;
    color: #0a0b1e;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.highlight-actions .btn-primary.large:hover {
    box-shadow: 0 0 40px rgba(79, 195, 247, 0.5);
    background: #ffffff;
}

@media (max-width: 768px) {
    .highlight-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .game-icon-large {
        font-size: 3.5rem;
    }
}

.game-icon-dash {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.btn-dash-play {
    margin-top: 1.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    text-align: center;
    font-weight: 600;
}

/* Invisible Path - Sleek Redesign */
#view-path {
    background: radial-gradient(circle at center, #161821 0%, #05070a 100%);
}

.ai-status-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #c5a059;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.path-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#path-grid {
    display: grid;
    grid-template-columns: repeat(5, 70px);
    grid-template-rows: repeat(5, 70px);
    gap: 15px;
}

.path-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.path-cell:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.cell-human {
    background: #e0e0e0 !important;
    box-shadow: 0 0 25px rgba(224, 224, 224, 0.15);
    border-color: #ffffff !important;
}

.cell-ai {
    background: #c5a059 !important;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.15);
    border-color: #d4af37 !important;
}

/* Grid Markers */
.ai-start::after {
    content: 'AI-0';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: var(--accent-secondary);
    opacity: 0.5;
}

.human-start::after {
    content: 'USER';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

/* Sleek UI Overhaul */
.dashboard-header-sleek {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.sleek-title {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-main);
    opacity: 0.9;
}

.sleek-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 1.5rem auto;
}

.ai-model-box {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    font-family: monospace;
    pointer-events: none;
    opacity: 0.6;
}

.ai-status-banner-sleek {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: lowercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.secret-rule-box-sleek {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.consistency-metrics-sleek {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.metric-sleek {
    text-align: center;
}

.metric-sleek label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.metric-sleek span {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: var(--font-heading);
}

.timer-sleek {
    font-size: 1.8rem;
    font-family: monospace;
    font-weight: 300;
    opacity: 0.7;
}

.path-grid-container-sleek {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.loading-pulse {
    animation: simple-pulse 2s infinite ease-in-out;
}

@keyframes simple-pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.4;
    }
}

/* Ensure container is relative for absolute positioning of model box */
#protocol-arena,
#path-arena {
    position: relative;
    padding-top: 2rem;
}

/* Adjustments for existing elements */
.protocol-bubble {
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-primary.large {
    padding: 0.8rem 1.8rem;
    /* Scaled down slightly */
    font-size: 1rem;
}

.secret-rule-box {
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid #e0e0e0;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #e0e0e0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 1s;
}

.rule-reveal {
    opacity: 1;
}

.violation-flash {
    animation: flashPlatinum 0.5s;
}

@keyframes flashPlatinum {
    0% {
        background: rgba(255, 255, 255, 0);
    }

    50% {
        background: rgba(255, 255, 255, 0.05);
    }

    100% {
        background: rgba(255, 255, 255, 0);
    }
}

#path-timer {
    font-family: var(--font-heading);
    font-weight: 200 !important;
    font-size: 2.2rem;
    color: #e0e0e0;
    opacity: 0.6;
}

.consistency-metrics {
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.arena-metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.metric {
    text-align: center;
}

.metric label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.metric span {
    font-size: 2.2rem;
    font-weight: 200;
    font-family: var(--font-heading);
}

#human-points {
    color: #e0e0e0;
}

#ai-points {
    color: #c5a059;
}

#current-wpm {
    color: var(--accent-primary);
}

#ai-wpm {
    color: var(--accent-secondary);
}

.word-display {
    font-size: 1.8rem;
    font-family: 'Space Grotesk', monospace;
    color: var(--text-dim);
    line-height: 1.8;
    height: 150px;
    overflow: hidden;
    position: relative;
    user-select: none;
    padding: 1rem;
}

.word {
    display: inline-block;
    margin-right: 0.6rem;
    position: relative;
}

.letter {
    position: relative;
}

.letter.correct {
    color: var(--text-main);
}

.letter.incorrect {
    color: #ff4757;
    text-decoration: underline;
}

.letter.current {
    color: var(--accent-primary);
}

.letter.current::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

#typing-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    position: relative;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-primary);
}

.ai-progress-bar label {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.7rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
}

/* --- PREMIUM RESULTS UI --- */
.premium-results-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(10, 15, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: resultsReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultsReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.debrief-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.debrief-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 12px;
}

.mission-status {
    font-family: monospace;
    color: var(--accent-primary);
    letter-spacing: 4px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    animation: scanMove 3s linear infinite;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.results-main-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-main-box {
    flex: 1;
    padding: 2.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-main-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-main-box.human {
    border-left: 4px solid var(--accent-primary);
}

.stat-main-box.ai {
    border-right: 4px solid var(--accent-secondary);
}

.stat-main-box label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.stat-value-container .value {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-value-container .unit {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}

.stat-improvement {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #00ff88;
    font-weight: 600;
}

.stat-model-name {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vs-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.vs-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(10, 15, 25, 0.8);
}

.results-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.secondary-tile {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.secondary-tile label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.secondary-tile span {
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.tile-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.tile-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.results-insight-box {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
}

.results-graph-container {
    margin-top: 2rem;
    padding: 2rem;
    height: 350px;
    position: relative;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.graph-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-graph-container canvas {
    width: 100% !important;
    height: calc(100% - 40px) !important;
}

.insight-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.insight-content h4 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.insight-content p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    opacity: 0.9;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Specific overrides for small screens */
@media (max-width: 768px) {
    .results-main-stats {
        flex-direction: column;
    }

    .results-secondary-grid {
        grid-template-columns: 1fr;
    }

    .premium-results-wrapper {
        padding: 1.5rem;
    }
}

/* ─── NEXT MILESTONE & ENGAGEMENT ───────────────────────────────── */

.next-milestone {
    border: 1px solid rgba(230, 185, 128, 0.25) !important;
    background: linear-gradient(135deg, rgba(230, 185, 128, 0.08), rgba(255, 255, 255, 0.02)) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.milestone-badge {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.milestone-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.milestone-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), #fff);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(230, 185, 128, 0.4);
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.solar-glow {
    position: relative;
    overflow: hidden;
    animation: solarPulse 3s infinite alternate;
    box-shadow: 0 0 20px rgba(230, 185, 128, 0.2);
}

@keyframes solarPulse {
    0% {
        box-shadow: 0 0 15px rgba(230, 185, 128, 0.15);
        transform: translateY(0);
    }

    100% {
        box-shadow: 0 0 35px rgba(230, 185, 128, 0.4);
        transform: translateY(-2px);
    }
}

/* Brighten overall glass */
.glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-main-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lobby */
#game-lobby {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lobby-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lobby-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Footer override for dashboard */
.dashboard-view footer {
    display: none;
}

/* Spatial Game Specific */
#spatial-lobby {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#spatial-canvas {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    cursor: default;
}

.spatial-metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.spatial-instructions {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

#spatial-arena {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-visual {
        display: none;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Dashboard App Layout */
#dashboard-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    background: #05070a;
    z-index: 1000;
}

.dashboard-sidebar {
    width: 280px;
    height: 100%;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 2rem 4rem;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.05), transparent 70%);
}

.view-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
    max-width: 1000px;
    margin: 0 auto;
}

.view-section.active {
    display: block;
}

/* Home Overview Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

/* Semantic Forge Specific */
.forge-prompt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.forge-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.forge-entities {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.entity-pill {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.entity-pill.active {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.forge-textarea {
    width: 100%;
    height: 300px;
    background: rgba(10, 15, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: none;
    transition: all 0.3s ease;
}

.forge-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(10, 15, 25, 0.7);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.solution-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
}

.solution-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.forge-objects {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.obj-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Hide scrollbar for clean dashboard */
.dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.dashboard-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Overlay for hidden landing */
.hidden-landing {
    display: none !important;
}

/* The Protocol Specific */
.protocol-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.rule-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.rule-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.protocol-status-bar {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.protocol-stream-container {
    min-height: 280px;
    overflow-y: auto;
    background: rgba(10, 15, 25, 0.3);
    border-radius: 16px;
    padding: 2rem;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 1.5rem;
}

.protocol-bubble {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    max-width: 60%;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ai-bubble {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.human-bubble {
    align-self: flex-end;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-bottom-right-radius: 4px;
}

.word-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.word-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.protocol-input-area {
    display: flex;
    gap: 1rem;
}

.protocol-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.protocol-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

#protocol-verdict {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Threat Assessment Section */
.threat-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 71, 87, 0.2);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(5, 7, 10, 0) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    animation: threatPulse 4s infinite alternate ease-in-out;
}

@keyframes threatPulse {
    0% {
        border-color: rgba(255, 71, 87, 0.2);
        box-shadow: 0 0 0 rgba(255, 71, 87, 0);
    }

    100% {
        border-color: rgba(255, 71, 87, 0.5);
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.1);
    }
}

.threat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.threat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.threat-title {
    color: #ff4757;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.threat-question {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.threat-verdict-box {
    text-align: right;
}

.verdict-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.verdict-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.verdict-yes {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.verdict-no {
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.threat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.threat-stat label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.threat-stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.probability-container {
    margin-top: 2rem;
}

.probability-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    position: relative;
    border-radius: 2px;
}

.probability-fill {
    height: 100%;
    background: #ff4757;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px #ff4757;
    border-radius: 2px;
}

.probability-label {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Spatial Logic Specific Updates */
#spatial-collisions {
    color: #ff4757;
}

#spatial-accuracy {
    color: var(--accent-primary);
}

/* Tooltip System */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 9px;
    margin-left: 6px;
    cursor: help;
    font-family: monospace;
    color: var(--text-dim);
    vertical-align: middle;
}

.tooltip-trigger:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #1a1c23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    width: 200px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-main);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
}

.spatial-instructions p {
    margin-bottom: 0.5rem;
}

/* Spatial Dual-Screen Layout */
.spatial-dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.spatial-player-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.spatial-player-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

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

.spatial-player-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    margin: 0;
}

.spatial-metrics-inline {
    display: flex;
    gap: 1.5rem;
}

.metric-compact {
    text-align: right;
}

.metric-compact label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.metric-compact span {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

#spatial-canvas,
#spatial-ai-canvas {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    background: rgba(2, 4, 8, 0.8);
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#spatial-canvas {
    cursor: grab;
}

#spatial-canvas:active {
    cursor: grabbing;
}

.spatial-timer-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

#spatial-ai-status {
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

/* Responsive Spatial Layout */
@media (max-width: 1200px) {
    .spatial-dual-container {
        grid-template-columns: 1fr;
    }

    #spatial-canvas,
    #spatial-ai-canvas {
        height: 400px;
    }
}

/* --- Advanced UI Overhaul --- */

/* Glitch Effect */
.glitch-text {
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: white;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff4d4d;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00f2ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    60% {
        clip: rect(91px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 85px, 0);
    }

    100% {
        clip: rect(22px, 9999px, 5px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 12px, 0);
    }

    20% {
        clip: rect(23px, 9999px, 88px, 0);
    }

    40% {
        clip: rect(78px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(5px, 9999px, 50px, 0);
    }

    80% {
        clip: rect(42px, 9999px, 95px, 0);
    }

    100% {
        clip: rect(15px, 9999px, 70px, 0);
    }
}

/* Dynamic Header */
.dynamic-header {
    margin-bottom: 3rem;
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin-top: 1rem;
    border-radius: 2px;
}

/* Advanced Threat Section */
.threat-container {
    perspective: 2000px;
    margin-bottom: 4rem;
}

.threat-section-advanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: zoomRotateInit 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomRotateInit {
    0% {
        transform: scale(0.8) rotateX(10deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotateX(0);
        opacity: 1;
    }
}

.threat-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 15px var(--accent-primary);
    animation: scannerMove 4s infinite linear;
    z-index: 10;
}

@keyframes scannerMove {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.threat-header-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.threat-label {
    font-size: 0.7rem;
    color: var(--accent-secondary);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.threat-question-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.threat-desc {
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.6;
}

.threat-section-advanced:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.threat-section-advanced:hover .threat-scanner-line {
    animation-duration: 2s;
}

/* Verdict Orb */
.verdict-orb-container {
    flex-shrink: 0;
}

.verdict-orb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.orb-inner {
    text-align: center;
    z-index: 2;
}

.orb-inner label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.orb-inner span {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.orb-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 10s infinite linear;
}

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

    to {
        transform: rotate(360deg);
    }
}

.verdict-orb.no-match .orb-inner span {
    color: #ff4d4d;
}

.verdict-orb.match .orb-inner span {
    color: var(--accent-primary);
}

/* Metrics Dashboard */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-glass {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.metric-glass:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
}

.metric-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Neon */
.progress-fill-neon {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
    width: 0%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.4);
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Particles for Threat Section */
.threat-section-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
    animation: particleDrift 20s linear infinite;
}

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

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

/* --- Cores View Dynamic Styles --- */

.cores-hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.cores-title-massive {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: white;
}

.accent-span {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 30px rgba(176, 184, 192, 0.3));
}

.cores-subtitle-elegant {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Background Shapes for Cores */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape-1,
.shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(176, 184, 192, 0.05);
    top: -100px;
    left: -100px;
    animation: floatShape 15s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(138, 126, 106, 0.05);
    bottom: -50px;
    right: -50px;
    animation: floatShape 12s infinite alternate-reverse;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0);
    }

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

.cores-dynamic-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
}

/* Core Node */
.core-node {
    width: 250px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.node-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-orb {
    width: 100px;
    height: 100px;
    background: var(--node-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 50px var(--node-color);
    transition: transform 0.3s ease;
}

.orb-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.orb-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--node-color);
    border-radius: 50%;
    animation: orbPulse 3s infinite;
}

@keyframes orbPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.node-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 4;
}

.circle-progress {
    fill: none;
    stroke: var(--node-color);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.node-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.node-mastery {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.node-gap-label {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-top: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: inline-block;
}

/* Tooltip */
.node-impact-tooltip {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.75rem;
    width: 250px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

/* ================================================
   POWER-UP SHOP GRID (TACTICAL FABRICATOR)
   ================================================ */
.powerup-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.powerup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.powerup-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.powerup-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.powerup-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.powerup-title-area {
    flex: 1;
}

.powerup-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.powerup-inventory {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: monospace;
    letter-spacing: 1px;
}

.powerup-inventory span {
    color: var(--accent-secondary);
    font-weight: bold;
}

.powerup-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
    flex: 1;
}

.powerup-sectors {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.powerup-sector-tag {
    font-size: 0.55rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pre-Game Loadout UI */
.lobby-loadout-section {
    margin: 1.5rem auto 0;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}

.loadout-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-align: center;
}

.loadout-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.loadout-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.loadout-chip.equipped {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.loadout-chip.empty {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.loadout-chip-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
}

.btn-powerup-buy {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-powerup-buy:hover:not(.disabled) {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

.btn-powerup-buy.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 0, 0, 0.05);
}


.core-node:hover .node-impact-tooltip {
    opacity: 1;
    bottom: -40px;
}

.core-node:hover .node-orb {
    transform: scale(1.1);
}

/* Locked Node */
.locked-node {
    opacity: 0.4;
    cursor: not-allowed;
}

.blur-orb {
    filter: blur(8px);
    background: #222;
    box-shadow: none;
}

.wip-pill {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Terminal */
.gap-terminal {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 6rem 0;
    border: 1px solid var(--glass-border);
    font-family: monospace;
}

.terminal-header {
    background: #111;
    padding: 0.8rem 1.5rem;
    font-size: 0.7rem;
    color: #444;
    border-bottom: 1px solid #222;
}

.terminal-body {
    padding: 2rem;
}

.terminal-stat {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.terminal-stat label {
    color: #555;
    margin-right: 1rem;
}

.terminal-stat span {
    color: white;
}

.terminal-text {
    color: #333;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Organic Overview Elements */
.overview-organic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.organic-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: organicDrift 20s infinite alternate cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #b0b8c0, transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes organicDrift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    33% {
        transform: translate(10%, 10%) scale(1.1) rotate(10deg);
        border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
    }

    66% {
        transform: translate(-5%, 15%) scale(0.9) rotate(-10deg);
        border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Organic Card Overhauls */
.dash-card {
    background: rgba(10, 11, 30, 0.4) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dash-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(176, 184, 192, 0.1);
}

.dash-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}

.dash-card:hover::after {
    opacity: 1;
}

.dash-card h3 {
    font-size: 1.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.8rem !important;
}

.dash-card p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.btn-dash-play {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 100px !important;
    padding: 0.8rem 2rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    margin-top: 2rem !important;
}

/* Threat Section Organic Tweak */
.threat-section-advanced {
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
    border-radius: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.verdict-orb {
    width: 180px !important;
    height: 180px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%) !important;
    border: none !important;
}

.orb-ring {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    animation: rotate 20s infinite linear !important;
}

.orb-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Stats Grid Softening */
.stat-card.glass {
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 2.5rem !important;
}

.stat-value {
    font-family: var(--font-heading) !important;
    font-weight: 200 !important;
    letter-spacing: -1px !important;
}

/* Enhanced Mission Cards */
.mission-card {
    position: relative;
    padding-top: 4rem !important;
    overflow: hidden;
}

.mission-number {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent-primary);
    opacity: 0.5;
    letter-spacing: 2px;
}

.mission-status-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    border: 1px solid rgba(138, 126, 106, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Organic Grid Layout */
.dash-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
}

@media (max-width: 900px) {
    .dash-game-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fluid Shapes for Section Backgrounds */
.threat-section-advanced {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
}

.threat-section-advanced::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.05;
    pointer-events: none;
}

/* Dynamic Text Enhancements */
.glitch-text {
    background: linear-gradient(to right, #fff, #b0b8c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Card Parallax Tilt (Style Part) */
.dash-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.dash-card>* {
    transform: translateZ(20px);
}

/* Organic Stats Grid */
.stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-top: 5rem !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 3rem 2rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent-primary);
    transition: height 0.5s ease;
}

.stat-card:hover::before {
    height: 100%;
}

.stat-value {
    font-size: 3.5rem !important;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-card label {
    font-size: 0.7rem !important;
    letter-spacing: 3px !important;
    color: var(--accent-secondary) !important;
    opacity: 0.7;
}

/* Scrollbar and subtle noise */
.dashboard-main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

.header-pre-title {
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

/* Results Graph */
.results-graph-container {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.6;
}

#typing-performance-graph,
#spatial-performance-graph,
#protocol-performance-graph,
#path-performance-graph {
    width: 100% !important;
    height: 250px !important;
}

/* Daily Patterns Game Styles */
.daily-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 1px;
}



.daily-mission:hover .daily-badge {
    background: var(--bg-dark);
    color: var(--accent-primary);
}

/* Level Selection Styles */
.level-selector-path {
    margin: 2rem 0;
    text-align: center;
}

.level-selector-path label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.level-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.level-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    transform: translateY(-2px);
}

.level-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

/* --- HUMAN BENCHMARKS GRID STYLES --- */
.results-benchmarks-grid {
    margin: 3rem 0;
    padding: 2.5rem;
    background: rgba(10, 15, 25, 0.3);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.results-benchmarks-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(0, 242, 255, 0.03), transparent 50%);
    pointer-events: none;
}

.benchmark-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.benchmark-header::before,
.benchmark-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 242, 255, 0.3), transparent);
}

.benchmarks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.benchmark-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.8rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
}

.benchmark-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.benchmark-item.user-highlight {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), rgba(121, 40, 202, 0.05));
    border: 1px solid rgba(0, 242, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
    z-index: 2;
}

.benchmark-item.user-highlight::before {
    content: 'YOU';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.benchmark-item label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.bench-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.benchmark-item.user-highlight .bench-val {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.bench-rank {
    font-size: 0.65rem;
    color: var(--accent-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes benchReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.benchmark-item:nth-child(1) {
    animation: benchReveal 0.5s ease-out 0.1s both;
}

.benchmark-item:nth-child(2) {
    animation: benchReveal 0.5s ease-out 0.2s both;
}

.benchmark-item:nth-child(3) {
    animation: benchReveal 0.5s ease-out 0.3s both;
}

.benchmark-item:nth-child(4) {
    animation: benchReveal 0.5s ease-out 0.4s both;
}

/* ── ANOMALY DETECTION: pattern arena wrapper ──────────────────────────── */
.pattern-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1.5rem 0 0.5rem;
}

#pattern-display {
    /* JS sets height:200px inline; we just need a bottom border baseline */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

#ai-answer-el {
    min-height: 1.6rem;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

/* ── ROOT CAUSE: SVG tree container ────────────────────────────────────── */
/* path-grid is re-purposed as the SVG mount point */
#path-grid {
    width: 100%;
    display: block;
    /* override old grid layout */
}

#path-grid svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Status bar matches path arena sleek style */
#path-ai-status {
    text-align: center;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    min-height: 1.2rem;
    transition: color 0.3s;
}

#human-secret-rule {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    min-height: 1.2rem;
    font-family: monospace;
}

/* ── SIGNAL SYNTHESIS: sentence cards ─────────────────────────────────── */
.protocol-stream-container {
    /* override any word-chain bubble styles */
    display: block !important;
    flex-direction: unset !important;
    overflow-y: auto;
    max-height: 65vh;
    padding-right: 0.25rem;
}

.signal-sentence-card {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline;
    position: relative;
    color: rgba(255, 255, 255, 0.75);
}

.signal-sentence-card:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.arena-locked .signal-sentence-card {
    cursor: default;
}

.signal-sentence-card.signal-correct {
    color: var(--accent-primary) !important;
    background: rgba(100, 210, 180, 0.18) !important;
    box-shadow: 0 0 15px rgba(100, 210, 180, 0.1);
}

.signal-sentence-card.signal-incorrect {
    color: #ff5252 !important;
    background: rgba(255, 82, 82, 0.15) !important;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.1);
}

.signal-sentence-card.signal-dimmed {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* Suppress hover when arena is locked */
.arena-locked .signal-sentence-card:hover {
    background: transparent;
    box-shadow: none;
}

.signal-sentence-card:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Protocol status bar used as round label in Signal game */
.protocol-status-bar {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    text-align: center;
    padding: 0.4rem 0 0.8rem;
    min-height: 1.5rem;
    transition: color 0.3s;
}

/* ── HIGH ENGAGEMENT EFFECTS ─────────────────────────────────────────── */
.screen-shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.pulse-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 210, 180, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(100, 210, 180, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 210, 180, 0);
    }
}

.verdict-yes {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px rgba(100, 210, 180, 0.5);
}

.verdict-no {
    color: #ff5252 !important;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}

/* ── SIGNAL INTERCEPT LOADING ────────────────────────────────────────── */
.intercept-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.intercept-bar {
    width: 240px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.intercept-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    animation: intercept-scan 1.2s infinite ease-in-out;
}

@keyframes intercept-scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.intercept-text {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--accent-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ─── LANDING PAGE — Additions ───────────────────────────────── */

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    text-transform: uppercase;
    margin-bottom: 0.1rem;
    opacity: 0.8;
}

.hero-live-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.live-stat {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6dbf8f;
    box-shadow: 0 0 8px #6dbf8f;
    animation: pulse-dot 2s infinite;
    display: inline-block;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 560px;
    margin: -1.5rem auto 3rem;
    line-height: 1.7;
}

.section-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ─── ABOUT SECTION ──────────────────────────────────────────── */

.about-section {
    padding: 8rem 10%;
    border-top: 1px solid var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-main);
}

.about-stats-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.8rem 2rem;
}

.about-stat-num {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--accent-primary);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ─── LEADERBOARD TEASER (Landing) ───────────────────────────── */

.leaderboard-teaser {
    padding: 8rem 10%;
    border-top: 1px solid var(--glass-border);
}

.leaderboard-wip-preview {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

/* ─── FOOTER REDESIGN ────────────────────────────────────────── */

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-inner p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ─── LEADERBOARD TABLE ROWS ─────────────────────────────────── */

.lb-row {
    display: grid;
    grid-template-columns: 60px 1fr 160px 80px;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.lb-header-row {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.lb-blur-row {
    filter: blur(3.5px);
    user-select: none;
    color: var(--text-dim);
    transition: filter 0.3s;
}

.lb-blur-row:hover {
    filter: blur(1px);
}

.lb-you-row {
    background: rgba(176, 184, 192, 0.06);
    border-left: 2px solid var(--accent-primary);
    color: var(--text-main);
    font-weight: 600;
}

/* ─── LEADERBOARD DASHBOARD (WIP) ────────────────────────────── */

.lb-wip-banner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.lb-wip-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.lb-wip-banner h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.lb-wip-banner p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.lb-local-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.lb-local-header {
    padding: 1rem 1.5rem;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.lb-local-grid {
    padding: 0.5rem 0;
}

.lb-local-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lb-game-name {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.lb-game-val {
    font-size: 0.9rem;
    color: var(--text-main);
    font-family: monospace;
}

.lb-preview-table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.lb-preview-header {
    padding: 1rem 1.5rem;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

/* ─── PATH GAME LIVES DISPLAY ────────────────────────────────── */

.lives-display {
    font-size: 1.6rem;
    letter-spacing: 4px;
    transition: all 0.3s;
}

/* ─── GAME CARD TAGS (landing) ───────────────────────────────── */

.game-card .game-tags {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.game-card .game-tags span {
    font-size: 0.62rem;
    color: var(--accent-secondary);
    border-color: rgba(138, 126, 106, 0.3);
}

/* ─── BTN-SECONDARY as <a> tag fix ──────────────────────────── */

a.btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ─── OVERHAUL 4: EXPEDITION MAP & TACTILE CONSOLE ──────────────── */

.expedition-top-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0 1rem 0;
}

/* Quest Strip ── compact horizontal pill row */
.quest-strip-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.quest-strip-label {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quest-strip-count {
    background: rgba(176, 184, 192, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
}

.quest-strip-scroll {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.quest-strip-scroll::-webkit-scrollbar {
    display: none;
}

.quest-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    cursor: default;
    min-width: 140px;
}

.quest-pill.completed {
    border-color: var(--accent-primary);
    background: rgba(109, 191, 143, 0.08);
}

.quest-pill-name {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: #e0e4e8;
    flex-shrink: 0;
}

.quest-pill.completed .quest-pill-name {
    color: var(--accent-primary);
}

.quest-pill-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    min-width: 30px;
    max-width: 60px;
}

.quest-pill-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.quest-pill-reward {
    font-size: 0.62rem;
    color: #e6b980;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Dominant Map Canvas ── full width, tall */
.expedition-map-layout {
    width: 100%;
    margin-bottom: 1.2rem;
}



.sync-quotient-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.sync-quotient-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.sq-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.sq-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
    line-height: 1.3;
}


.expedition-map-layout {
    display: block;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
}

.pattern-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    border-radius: 12px;
}

#pattern-canvas {
    width: 100%;
    height: 460px;
    /* Heavy massive physical hunting depth override instead of 220px squished ratio */
    border-radius: 16px;
    background: #020308;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 1), 0 0 35px rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    touch-action: none;
}

#pattern-ai-status {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 4px;
    padding-bottom: 0.8rem;
    font-size: 0.75rem;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


.map-canvas-container {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Increased minimum boundary from 520px to 600px, and viewport target to 70vh */
    height: clamp(600px, 70vh, 850px);
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.4);
}

#canvas-expedition-map {
    width: 100%;
    height: 100%;
    display: block;
}


.map-overlay-tip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.72rem;
    color: var(--text-dim);
    background: rgba(10, 12, 16, 0.85);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: sqDotPulse 1.8s infinite;
}

@keyframes sqDotPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* Observer Log Strip ── compact row below map */
.observer-log-strip {
    border-radius: 16px;
    background: rgba(10, 12, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.observer-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.observer-log-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.observer-log-body {
    padding: 0.75rem 1.2rem;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 2rem;
}

.observer-log-body::-webkit-scrollbar {
    width: 4px;
}

.observer-log-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Keep old narrative-terminal-container around just in case */
.narrative-terminal-container {
    display: none;
}


.terminal-bar {
    padding: 0.75rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.term-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.term-dot:nth-child(1) {
    background: rgba(255, 85, 85, 0.4);
}

.term-dot:nth-child(2) {
    background: rgba(255, 200, 85, 0.4);
}

.term-dot:nth-child(3) {
    background: rgba(85, 255, 85, 0.4);
}

.term-title {
    font-size: 0.65rem;
    font-family: monospace;
    color: var(--text-dim);
    margin-left: auto;
    letter-spacing: 1px;
}

.terminal-body {
    flex: 1;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.75);
}

.terminal-line {
    margin-bottom: 0.75rem;
}

.terminal-line.title {
    color: var(--accent-primary);
    font-weight: bold;
    border-bottom: 1px dashed rgba(176, 184, 192, 0.15);
    padding-bottom: 0.25rem;
    margin-top: 1rem;
}

.terminal-line.text-dim {
    color: var(--text-dim);
}

.terminal-line.typing {
    border-right: 2px solid var(--accent-primary);
    animation: termCursor 1s step-end infinite;
    display: inline-block;
}

@keyframes termCursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-primary);
    }
}

.tactile-control-panel {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tactile-toggle-label {
    font-size: 0.65rem;
    font-family: monospace;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

/* Glass tactile switch */
.tactile-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 18px;
}

.tactile-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tactile-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
}

.tactile-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-dim);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

.tactile-switch input:checked+.tactile-slider {
    background-color: rgba(176, 184, 192, 0.15);
    border-color: var(--accent-primary);
}

.tactile-switch input:checked+.tactile-slider:before {
    transform: translateX(20px);
    background-color: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary);
}

/* Glitch shaking for failed locks */
.shake-lock {
    animation: lockShaking 0.3s;
}

@keyframes lockShaking {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

@keyframes anomalyFlicker {
    0% {
        opacity: 0.15;
        filter: brightness(0.5);
    }

    100% {
        opacity: 0.45;
        filter: brightness(1.3);
    }
}

@media (max-width: 900px) {
    .expedition-map-layout {
        width: 100%;
    }

    .map-canvas-container {
        height: clamp(360px, 50vh, 600px);
    }

    .expedition-top-bar {
        grid-template-columns: 1fr;
    }

    .quest-strip-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* ─── CRITICAL DASHBOARD SHELL ─────────────────────────────────────── */

/* Utility: generic hide */
.hidden {
    display: none !important;
}

/* Overlay for hidden landing */
.hidden-landing {
    display: none !important;
}

/* Dashboard App Layout */
#dashboard-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    background: #05070a;
    z-index: 1000;
}

.dashboard-sidebar {
    width: 280px;
    min-width: 220px;
    height: 100%;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.sidebar-logo {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.sidebar-logo span {
    color: var(--accent-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(240, 244, 248, 0.08);
    color: var(--accent-primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* XP Ring Block */
.sidebar-xp-ring-block {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    margin: 0 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.sidebar-xp-ring-block:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}

.xp-ring-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.xp-ring-svg {
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}

.xp-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 4;
}

.xp-ring-fill {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 4px var(--accent-primary));
}

.xp-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xp-ring-level {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.xp-ring-info {
    flex: 1;
    min-width: 0;
}

.xp-ring-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.xp-ring-sub {
    font-size: 0.62rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
    font-family: monospace;
    letter-spacing: 0.5px;
}


.dashboard-main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 2rem 3rem;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(240, 244, 248, 0.04), transparent 60%);
}

.dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.dashboard-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.view-section {
    display: none;
    animation: fadeInDash 0.4s ease-out;
    max-width: 1200px;
    margin: 0 auto;
}


.view-section.active {
    display: block;
}

@keyframes fadeInDash {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ================================================
   SIDEBAR CREDITS CHIP
   ================================================ */
.sidebar-credits-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.sidebar-credits-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.credits-icon {
    font-size: 0.85rem;
}

.credits-label {
    opacity: 0.5;
}

#sidebar-sync-credits {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-secondary);
    min-width: 1.5rem;
    text-align: center;
}

/* ================================================
   CYBER-DECK VIEW
   ================================================ */
.cyberdeck-view {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.cyberdeck-header {
    margin-bottom: 2rem;
}

.cyberdeck-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

/* Credits Balance Bar */
.cyberdeck-credits-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.cyberdeck-credits-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--accent-secondary), 0.05), transparent);
    pointer-events: none;
}

.credits-big-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px var(--accent-secondary));
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px var(--accent-secondary));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--accent-secondary));
    }
}

.credits-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.credits-amount {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-secondary);
    line-height: 1;
    transition: all 0.4s ease;
}

.credits-earn-tip {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
    font-style: italic;
    text-align: right;
}

/* Section titles */
.cyberdeck-section-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================================================
   THEME CARDS GRID
   ================================================ */
.theme-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.theme-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.theme-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.theme-card.active-theme {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(230, 185, 128, 0.2);
}

.theme-card.unlocked-theme {
    border-color: rgba(109, 191, 143, 0.4);
}

.theme-preview {
    display: flex;
    gap: 0;
    height: 60px;
    overflow: hidden;
}

.theme-swatch {
    flex: 1;
    height: 100%;
    transition: flex 0.3s ease;
}

.theme-card:hover .theme-swatch {
    flex: 1.3;
}

.theme-card-info {
    padding: 0.8rem;
}

.theme-name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.theme-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.theme-cost {
    font-size: 0.65rem;
    color: var(--accent-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.btn-theme-apply {
    width: 100%;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-theme-apply:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

.btn-theme-apply.is-active {
    background: var(--accent-secondary);
    color: var(--bg-dark);
    border-color: var(--accent-secondary);
    font-weight: 700;
}

/* ================================================
   ACHIEVEMENTS GRID
   ================================================ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.achievement-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-badge.unlocked {
    border-color: var(--accent-secondary);
    background: rgba(230, 185, 128, 0.06);
    box-shadow: 0 0 20px rgba(230, 185, 128, 0.15);
}

.achievement-badge.unlocked .ach-icon {
    filter: none;
    animation: achPulse 3s ease-in-out infinite;
}

@keyframes achPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.ach-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: grayscale(1) opacity(0.4);
    transition: filter 0.4s ease;
}

.ach-name {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.ach-desc {
    font-size: 0.65rem;
    color: var(--text-dim);
    opacity: 0.6;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.ach-status {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 2px;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
}

.ach-status.locked {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ach-status.unlocked {
    background: rgba(230, 185, 128, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(230, 185, 128, 0.3);
}

/* ================================================
   DECK TOAST NOTIFICATION
   ================================================ */
.deck-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(10, 12, 18, 0.95);
    border: 1px solid var(--accent-secondary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--accent-secondary);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 185, 128, 0.15);
    z-index: 9999;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
}

.deck-toast.hidden {
    display: none;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ================================================
   GAMEPLAY CORE STYLES (BANNER, TIMERS, POWERUP HUD)
   ================================================ */
.ai-status-banner-sleek.ai-alert {
    color: #ff5252;
    border-color: rgba(255, 82, 82, 0.4) !important;
    background: rgba(255, 40, 40, 0.07) !important;
    animation: aiBannerFlash 0.3s ease forwards;
}

.ai-status-banner-sleek.ai-warning {
    color: #e6b980;
    border-color: rgba(230, 185, 128, 0.4) !important;
    background: rgba(230, 185, 128, 0.06) !important;
    animation: aiBannerFlash 0.3s ease forwards;
}

.ai-status-banner-sleek.ai-success {
    color: #6dbf8f;
    border-color: rgba(109, 191, 143, 0.4) !important;
    background: rgba(109, 191, 143, 0.06) !important;
    animation: aiBannerFlash 0.3s ease forwards;
}

/* === Mechanic Tier Announcement === */
.mechanic-tier-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 8, 16, 0.95);
    border: 1px solid rgba(230, 185, 128, 0.5);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e6b980;
    z-index: 9999;
    animation: tierBannerIn 0.4s ease forwards;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

@keyframes tierBannerIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* === AI Progress Bar === */
.ai-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.ai-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #e6b980;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px #e6b980;
}

.ai-progress-bar-fill.frozen {
    background: #80d0ff;
    box-shadow: 0 0 10px #80d0ff;
}

/* === Power-up HUD === */
.path-powerup-hud {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.pup-hud-chip {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.pup-hud-chip:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.pup-hud-chip.used {
    opacity: 0.3;
    cursor: default;
    text-decoration: line-through;
}

.pup-hud-chip.passive {
    cursor: default;
}

/* === Path Game Cell Styles === */
.path-cell-modern {
    background: rgba(20, 25, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.path-cell-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* === Standard States === */
.cell-source {
    background: rgba(0, 242, 255, 0.2);
    border-color: #00f2ff;
    box-shadow: inset 0 0 15px rgba(0, 242, 255, 0.4);
}

.cell-target {
    background: rgba(230, 185, 128, 0.2);
    border-color: #e6b980;
    box-shadow: inset 0 0 15px rgba(230, 185, 128, 0.4);
    animation: pulseTarget 1.5s infinite alternate;
}

.cell-target-locked {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.6);
    animation: pulseLocked 1s infinite alternate;
}

.cell-firewall {
    background: repeating-linear-gradient(45deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.1) 5px, rgba(20, 25, 35, 0.6) 5px, rgba(20, 25, 35, 0.6) 10px);
    border-color: rgba(255, 71, 87, 0.25);
    cursor: not-allowed;
}

.cell-path {
    background: #00f2ff;
    border-color: #00f2ff;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
}

.cell-current {
    background: #fff;
    border-color: #00f2ff;
    box-shadow: 0 0 20px #fff;
}

.cell-error {
    animation: flashError 0.35s ease;
}

/* === Tier 1: Key Node === */
.cell-key {
    background: rgba(0, 242, 255, 0.1);
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5), inset 0 0 10px rgba(0, 242, 255, 0.2);
    animation: keyPulse 0.9s ease infinite alternate, cellRippleIn 0.5s ease forwards;
}

/* === Tier 2: Risk Packet === */
.cell-packet {
    background: rgba(230, 185, 128, 0.15);
    border-color: #e6b980;
    box-shadow: 0 0 18px rgba(230, 185, 128, 0.5);
    animation: packetShimmer 1.2s ease infinite alternate, cellRippleIn 0.6s ease forwards;
}

/* === Tier 3: Unstable Node === */
.cell-unstable {
    background: rgba(255, 120, 50, 0.15);
    border-color: rgba(255, 120, 50, 0.7);
    animation: unstableFlicker 0.4s ease infinite alternate, cellRippleIn 0.5s ease forwards;
}

.cell-collapsing {
    animation: collapseNode 0.5s ease forwards !important;
}

/* === Tracer highlight === */
.cell-tracer {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.9), inset 0 0 15px rgba(0, 242, 255, 0.4);
    border-color: #00f2ff;
    animation: tracerPulse 0.6s ease infinite alternate;
}

/* === Keyframes === */
@keyframes pulseTarget {
    0% {
        box-shadow: inset 0 0 8px rgba(230, 185, 128, 0.2);
    }

    100% {
        box-shadow: inset 0 0 22px rgba(230, 185, 128, 0.6);
    }
}

@keyframes pulseLocked {
    0% {
        box-shadow: inset 0 0 8px rgba(255, 71, 87, 0.2);
    }

    100% {
        box-shadow: inset 0 0 20px rgba(255, 71, 87, 0.5), 0 0 12px rgba(255, 71, 87, 0.3);
    }
}

@keyframes flashError {

    0%,
    100% {
        background: rgba(255, 71, 87, 0.1);
    }

    50% {
        background: #ff4757;
        box-shadow: 0 0 30px #ff4757;
    }
}

@keyframes keyPulse {
    0% {
        box-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 28px rgba(0, 242, 255, 0.9), inset 0 0 14px rgba(0, 242, 255, 0.3);
    }
}

@keyframes packetShimmer {
    0% {
        box-shadow: 0 0 10px rgba(230, 185, 128, 0.3);
    }

    100% {
        box-shadow: 0 0 24px rgba(230, 185, 128, 0.8);
    }
}

@keyframes unstableFlicker {
    0% {
        background: rgba(255, 80, 30, 0.08);
        border-color: rgba(255, 80, 30, 0.4);
    }

    100% {
        background: rgba(255, 80, 30, 0.25);
        border-color: rgba(255, 140, 60, 0.9);
        box-shadow: 0 0 16px rgba(255, 80, 30, 0.5);
    }
}

@keyframes collapseNode {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    40% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes cellRippleIn {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes tracerPulse {
    0% {
        box-shadow: 0 0 16px rgba(0, 242, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 32px rgba(0, 242, 255, 1);
    }
}

@keyframes aiBannerFlash {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   POLISH PASS — All 4 Game Views
   Per-game accent colors injected via CSS custom properties
═══════════════════════════════════════════════════════════════ */

/* Per-game color tokens */
#view-protocol {
    --game-color: #ff007f;
    --game-glow: rgba(255, 0, 127, 0.18);
}

#view-spatial {
    --game-color: #9d00ff;
    --game-glow: rgba(157, 0, 255, 0.18);
}

#view-path {
    --game-color: #ff9f00;
    --game-glow: rgba(255, 159, 0, 0.18);
}

#view-pattern {
    --game-color: #00ff66;
    --game-glow: rgba(0, 255, 102, 0.18);
}

/* ── Lobby upgrade ── */
.lobby-content {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2.5rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: lobbyFadeIn 0.5s ease both;
}

@keyframes lobbyFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Colored top accent bar per game */
.lobby-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--game-color, var(--accent-primary)), transparent);
    opacity: 0.8;
}

/* Subtle ambient glow behind lobby */
.lobby-content::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, var(--game-glow, rgba(240, 244, 248, 0.1)) 0%, transparent 70%);
    pointer-events: none;
}

.lobby-content h3 {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--game-color, var(--accent-primary));
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.lobby-content p,
.lobby-content .sleek-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Protocol rules grid polish */
.protocol-rules-grid {
    display: grid;
    gap: 0.5rem;
    margin: 0 auto 1.5rem;
    max-width: 400px;
    text-align: left;
}

.rule-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 0, 127, 0.15);
    border-left: 3px solid #ff007f;
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--text-dim);
    transition: background 0.2s;
}

.rule-item:hover {
    background: rgba(255, 0, 127, 0.08);
}

.rule-item strong {
    color: #ff007f;
}

/* ── Start button glows ── */
#view-protocol .btn-primary {
    box-shadow: 0 0 18px rgba(255, 0, 127, 0.25);
}

#view-spatial .btn-primary {
    box-shadow: 0 0 18px rgba(157, 0, 255, 0.25);
}

#view-path .btn-primary {
    box-shadow: 0 0 18px rgba(255, 159, 0, 0.25);
}

#view-pattern .btn-primary {
    box-shadow: 0 0 18px rgba(0, 255, 102, 0.25);
}

#view-protocol .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(255, 0, 127, 0.55);
}

#view-spatial .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(157, 0, 255, 0.55);
}

#view-path .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(255, 159, 0, 0.55);
}

#view-pattern .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(0, 255, 102, 0.55);
}

/* ── Arena section header ── */
.dashboard-header-sleek {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.dashboard-header-sleek::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: var(--game-color, var(--accent-primary));
}

.sleek-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 5px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 40%, var(--game-color, var(--accent-primary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── AI Status banner upgrade ── */
.ai-status-banner-sleek {
    font-family: monospace;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    padding: 0.55rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--game-color, var(--accent-primary));
    border-radius: 6px;
    margin-bottom: 1rem;
    color: var(--text-dim);
    animation: aiBannerFlash 0.3s ease;
}

.ai-status-banner-sleek.ai-alert {
    border-left-color: #ff4d4d;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.06);
}

.ai-status-banner-sleek.ai-warning {
    border-left-color: #ff9f00;
    color: #ff9f00;
    background: rgba(255, 159, 0, 0.06);
}

.ai-status-banner-sleek.ai-success {
    border-left-color: #00ff66;
    color: #00ff66;
    background: rgba(0, 255, 102, 0.06);
}

/* ── Results number count-up animation ── */
@keyframes resultReveal {
    from {
        opacity: 0;
        transform: scale(0.75) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.premium-results-wrapper {
    animation: lobbyFadeIn 0.6s ease both;
}

.stat-value-container .value {
    animation: resultReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    display: inline-block;
}

/* ── Per-game result color tinting ── */
#view-protocol .stat-main-box.human {
    border-color: rgba(255, 0, 127, 0.25);
}

#view-spatial .stat-main-box.human {
    border-color: rgba(157, 0, 255, 0.25);
}

#view-path .stat-main-box.human {
    border-color: rgba(255, 159, 0, 0.25);
}

#view-pattern .stat-main-box.human {
    border-color: rgba(0, 255, 102, 0.25);
}

#view-protocol .stat-main-box.human {
    background: rgba(255, 0, 127, 0.05);
}

#view-spatial .stat-main-box.human {
    background: rgba(157, 0, 255, 0.05);
}

#view-path .stat-main-box.human {
    background: rgba(255, 159, 0, 0.05);
}

#view-pattern .stat-main-box.human {
    background: rgba(0, 255, 102, 0.05);
}

/* ── Spatial dual canvas frame upgrade ── */
.spatial-player-section {
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(157, 0, 255, 0.04);
}

.spatial-player-header {
    padding: 0.7rem 1rem;
    background: rgba(157, 0, 255, 0.08);
    border-bottom: 1px solid rgba(157, 0, 255, 0.15);
}

.spatial-player-header h3 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin: 0;
    color: #c580ff;
}

/* ── Spatial timer urgency pulse ── */
.timer-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    transition: color 0.5s;
}

.timer-value.urgent {
    color: #ff4d4d;
    animation: timerUrgent 0.5s ease infinite alternate;
}

@keyframes timerUrgent {
    from {
        text-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 77, 77, 0.9);
    }
}

/* ── Path grid node hover polish ── */
.path-grid-container-sleek #path-grid .grid-cell {
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.path-grid-container-sleek #path-grid .grid-cell:hover:not(.wall):not(.visited) {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 159, 0, 0.5);
}

/* ── Pattern canvas glow frame ── */
#pattern-canvas {
    transition: box-shadow 0.3s;
}

#view-pattern .pattern-display-area:hover #pattern-canvas {
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 102, 0.15) !important;
}

/* ── Protocol defense buttons upgrade ── */
.defense-btn {
    padding: 0.9rem 0.5rem !important;
    font-family: var(--font-heading) !important;
    font-size: 0.72rem !important;
    letter-spacing: 1.5px;
    transition: all 0.2s ease !important;
    position: relative;
    overflow: hidden;
}

.defense-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 0, 127, 0.08);
    opacity: 0;
    transition: opacity 0.2s;
}

.defense-btn:hover::before {
    opacity: 1;
}

.defense-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.3) !important;
}

.defense-btn:active {
    transform: scale(0.97) !important;
}

/* ── Protocol stream terminal upgrade ── */
.protocol-stream-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 127, 0.3) transparent;
}

/* ── Mechanic tier banner upgrade ── */
.mechanic-tier-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 7, 10, 0.96);
    border: 1px solid rgba(255, 159, 0, 0.6);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: #ff9f00;
    z-index: 9999;
    box-shadow: 0 0 30px rgba(255, 159, 0, 0.25);
    animation: tierBannerIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        tierBannerOut 0.4s ease 2.8s both;
}

@keyframes tierBannerIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes tierBannerOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ── Loadout chip upgrade ── */
.loadout-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.loadout-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.loadout-chip.equipped {
    background: rgba(255, 255, 255, 0.08);
}

.loadout-chip.empty {
    opacity: 0.4;
    cursor: default;
}

.loadout-chip-count {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Debrief glitch text tweak ── */
.debrief-header {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.debrief-header h2.glitch-text {
    font-size: 3.5rem;
    letter-spacing: 8px;
}

/* ── Hero eyebrow - update 5 to 4 domains ── */
.hero-live-stats .live-stat:last-child::before {
    content: '4 Active Domains';
}

/* ================================================
   HARDWARE OVERRIDE (PROTOCOL OVERHAUL)
   ================================================ */

.hardware-console {
    background: linear-gradient(180deg, #11141a 0%, #0a0c10 100%);
    border: 2px solid #2a303c;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Intrusion Tracker */
.intrusion-tracker {
    margin-bottom: 1rem;
}

.intrusion-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.intrusion-label span {
    color: #fff;
    font-weight: 800;
}

.intrusion-bar-bg {
    width: 100%;
    height: 8px;
    background: #0a0c10;
    border: 1px solid #2a303c;
    border-radius: 4px;
    overflow: hidden;
}

.intrusion-bar-fill {
    height: 100%;
    width: 0%;
    background: #00f2ff;
    transition: width 0.3s ease, background 0.5s ease;
}

/* Gauges */
.gauge-array {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: #050608;
    border: 1px inset #2a303c;
    border-radius: 8px;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.8);
}

.hw-gauge-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hw-gauge-label {
    font-family: monospace;
    font-size: 0.8rem;
    color: #b0b8c0;
    text-align: center;
}

.hw-gauge-label span {
    display: block;
    font-size: 0.55rem;
    color: #505860;
}

.hw-gauge-track {
    width: 24px;
    height: 150px;
    background: #11141a;
    border: 1px solid #2a303c;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.hw-gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #6dbf8f;
    box-shadow: 0 0 15px currentColor;
    transition: height 0.1s linear, background 0.3s ease;
}

.hw-gauge-val {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

/* Diagnostics Ticker */
.diagnostics-ticker {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    color: #00f2ff;
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes flashText {
    0% {
        background: #00f2ff;
        color: #000;
    }

    100% {
        background: rgba(0, 242, 255, 0.05);
        color: #00f2ff;
    }
}

/* Control Deck */
.control-deck {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.switches-array {
    display: flex;
    flex: 1;
    justify-content: space-between;
    padding: 1.5rem;
    background: #161a22;
    border: 1px solid #2a303c;
    border-radius: 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hw-switch-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hw-switch-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70px;
    font-family: monospace;
    font-size: 0.55rem;
    color: #505860;
    text-align: center;
}

/* Tactile Switch CSS */
.hw-switch {
    width: 34px;
    height: 70px;
    background: #0a0c10;
    border-radius: 4px;
    border: 2px solid #2a303c;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.hw-switch-toggle {
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg, #b0b8c0 0%, #505860 100%);
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-bottom: 3px solid #333;
}

.hw-switch.engaged .hw-switch-toggle {
    transform: translateY(28px);
    background: linear-gradient(180deg, #ff5252 0%, #8b0000 100%);
    border-top: 3px solid #4a0000;
    border-bottom: none;
    box-shadow: 0 -5px 10px rgba(255, 82, 82, 0.3), inset 0 -1px 2px rgba(255, 255, 255, 0.4);
}

.hw-switch-name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: #b0b8c0;
    margin-top: 0.5rem;
}

/* Big Execute Button */
.hw-execute-btn {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #11141a;
    border: 4px solid #2a303c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.hw-execute-btn:active {
    transform: scale(0.95);
}

.btn-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff5252 0%, #aa0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 1px;
    box-shadow: inset 0 5px 10px rgba(255, 255, 255, 0.3), 0 5px 15px rgba(255, 82, 82, 0.4);
}

.hw-execute-btn:active .btn-inner {
    background: radial-gradient(circle, #aa0000 0%, #550000 100%);
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   A.R.E.S CONTAINMENT & HARDWARE OVERRIDE COMPONENT LAYOUT
   ========================================================================== */

.protocol-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .protocol-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Left Status Panel */
.protocol-side-panel {
    border-radius: 12px;
    background: rgba(10, 12, 18, 0.7);
    border: 1px solid rgba(255, 0, 127, 0.15);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.protocol-side-panel .panel-header {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #ff007f;
    border-bottom: 1px solid rgba(255, 0, 127, 0.2);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

/* AI ASCII Character Monitor */
.ai-avatar-container {
    background: #040508;
    border: 1px solid rgba(255, 0, 127, 0.3);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-avatar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 0, 127, 0.05) 100%);
    pointer-events: none;
}

.ai-avatar-output {
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #ff007f;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
    margin: 0;
    white-space: pre-wrap;
    min-height: 100px;
}

.ai-entity-name {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: #b0b8c0;
    margin-top: 0.5rem;
}

/* Tactical Advisory & Hint Panel */
.tactical-advisor-box {
    background: rgba(0, 242, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 6px;
    padding: 1rem;
    min-height: 160px;
    box-sizing: border-box;
}

.advisor-label {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: #00f2ff;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 0.3rem;
    margin-bottom: 0.6rem;
}

.advisor-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #e0e4e8;
}

/* Analog Warning Lights */
.gauge-warning-light {
    width: 10px;
    height: 10px;
    background: #20242d;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.4rem;
    transition: background 0.3s;
}

.gauge-warning-light.warning-pulse {
    background: #e6b980;
    box-shadow: 0 0 10px #e6b980;
    animation: simple-pulse 1s infinite alternate;
}

.gauge-warning-light.alert-flash {
    background: #ff5252;
    box-shadow: 0 0 12px #ff5252;
    animation: flashAlertLight 0.4s infinite alternate;
}

@keyframes flashAlertLight {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Critical Overload Line Indicators */
.safety-limit-marker {
    position: absolute;
    top: 20%;
    /* 80% mark on the vertical track */
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 82, 82, 0.4);
    border-bottom: 1px dashed rgba(255, 82, 82, 0.6);
    z-index: 3;
}

/* Emergency Red Alert Strobe Overlay */
.emergency-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.emergency-overlay.threat-low {
    border: 4px solid rgba(230, 185, 128, 0.15);
    box-shadow: inset 0 0 50px rgba(230, 185, 128, 0.15);
}

.emergency-overlay.danger-heavy {
    border: 6px solid rgba(255, 77, 77, 0.4);
    box-shadow: inset 0 0 80px rgba(255, 77, 77, 0.4);
    animation: strobeAlert 1.2s infinite ease-in-out;
}

@keyframes strobeAlert {

    0%,
    100% {
        background-color: rgba(255, 77, 77, 0);
    }

    50% {
        background-color: rgba(255, 77, 77, 0.05);
    }
}