/* ===========================================
   GHOST IN THE SHELL — Major Kusanagi Theme
   Cyan data streams, identity, the ghost
   =========================================== */

.ghost-in-the-shell-theme
{
    --panel-accent: #00ffff;
}

.ghost-in-the-shell-theme .manga-show-content {
    background: radial-gradient(ellipse at top, rgba(0,255,255,0.05) 0%, transparent 60%);
}

.ghost-in-the-shell-theme .dedication-card {
    border-color: #00ffff;
    box-shadow: 0 0 40px rgba(0,255,255,0.3), 0 0 80px rgba(0,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.07);
}

.ghost-in-the-shell-theme .dedication-card::before {
    background: linear-gradient(90deg, transparent, #00cccc, #00ffff, #00cccc, transparent);
}

.ghost-in-the-shell-theme .dedication-tagline {
    color: #e0ffff;
    text-shadow: 0 0 15px rgba(0,255,255,0.8), 0 0 40px rgba(0,255,255,0.3);
    font-style: normal;
    letter-spacing: 0.06em;
}

.ghost-in-the-shell-theme .dedication-icon i {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0,255,255,0.9);
    animation: ghostData 4s ease-in-out infinite;
}

@keyframes ghostData {
    0%, 100% { text-shadow: 0 0 20px rgba(0,255,255,0.9); opacity: 1; transform: scale(1); }
    50% { text-shadow: 0 0 40px rgba(0,255,255,1), 0 0 80px rgba(0,255,255,0.4); opacity: 0.8; transform: scale(1.07); }
}

.ghost-in-the-shell-theme .manga-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,30,30,0.55) 60%, rgba(0,80,80,0.8) 100%);
}

.ghost-in-the-shell-theme .panel-glow-bar {
    background: linear-gradient(90deg, transparent, #00cccc, #00ffff, #00cccc, transparent);
}

.ghost-in-the-shell-theme .manga-panel-frame {
    border-color: rgba(0, 255, 255, 0.38);
}

.ghost-in-the-shell-theme .manga-panel-frame:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0,255,255,0.5);
}

.ghost-in-the-shell-theme .section-title {
    background: linear-gradient(45deg, #00aaaa, #00ffff, #e0ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ghost-in-the-shell-theme .section-line {
    background: linear-gradient(90deg, #00aaaa, #00ffff, #00aaaa);
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

.ghost-in-the-shell-theme .cyber-button.secondary {
    border-color: #00ffff;
    color: #e0ffff;
}

.ghost-in-the-shell-theme .cyber-button.secondary:hover {
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,255,255,0.5);
    color: #ffffff;
}

.recording-mode .ghost-in-the-shell-theme .dedication-icon i {
    animation: none !important;
    transform: none !important;
}



/* ═══════════════════════════════════════════════════════════════
   GHOST IN THE SHELL — ghost-in-the-shell.css
   All GITS-specific components. Requires manga.css for base rules.
   ═══════════════════════════════════════════════════════════════ */

/* ─── SECTION 1 · Character Spotlight Field ─────────────────── */

.gits-field {
    position: relative;
    width: 100%;
    min-height: 560px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 80, 80, 0.35) 0%, rgba(0, 20, 30, 0.6) 40%, rgba(0, 5, 10, 0.94) 100%);
    border: 1px solid rgba(0, 255, 255, 0.35);
    box-shadow: inset 0 0 80px rgba(0, 255, 255, 0.06), 0 0 60px rgba(0, 200, 200, 0.12);
}

/* Watermark */
.gits-field .gits-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ghost);
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 900;
    color: rgba(0, 255, 255, 0.14);
    letter-spacing: 0.3em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    text-transform: uppercase;
    animation: gitsWatermarkBreath 8s ease-in-out infinite;
}

@keyframes gitsWatermarkBreath {
    0%, 100% { opacity: 0.7; letter-spacing: 0.3em; }
    50%       { opacity: 1;   letter-spacing: 0.38em; }
}

/* Arena */
.gits-field .control-arena {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 3rem 2rem;
}

/* SVG lines */
.gits-field .control-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gits-field .ctrl-line {
    stroke: rgba(0, 255, 255, 0.28);
    stroke-width: 1;
    stroke-dasharray: 6 4;
    animation: gitsLinePulse 4s ease-in-out infinite;
}
.gits-field .ctrl-line-2 { animation-delay: 0.8s; }
.gits-field .ctrl-line-3 { animation-delay: 1.6s; }
.gits-field .ctrl-line-4 { animation-delay: 2.4s; }

@keyframes gitsLinePulse {
    0%, 100% { stroke: rgba(0, 255, 255, 0.25); stroke-width: 1;   }
    50%       { stroke: rgba(0, 255, 255, 0.6);  stroke-width: 1.5; }
}

.gits-field .ctrl-node {
    fill: rgba(0, 255, 255, 0.45);
    animation: gitsNodePulse 4s ease-in-out infinite;
}
.gits-field .ctrl-node-2 { animation-delay: 0.8s; }
.gits-field .ctrl-node-3 { animation-delay: 1.6s; }
.gits-field .ctrl-node-4 { animation-delay: 2.4s; }

@keyframes gitsNodePulse {
    0%, 100% { fill: rgba(0, 255, 255, 0.4); r: 4; }
    50%       { fill: rgba(0, 255, 255, 0.95); r: 6; }
}

/* Hover — light up matching line */
.gits-field .ctrl-stat-1:hover ~ .control-lines .ctrl-line-1,
.gits-field .ctrl-stat-2:hover ~ .control-lines .ctrl-line-2,
.gits-field .ctrl-stat-3:hover ~ .control-lines .ctrl-line-3,
.gits-field .ctrl-stat-4:hover ~ .control-lines .ctrl-line-4 {
    stroke: rgba(0, 255, 255, 0.95);
    stroke-width: 2;
    animation: none;
}

/* Portrait */
.gits-field .control-portrait {
    position: relative;
    width: 220px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border: 2px solid rgba(0, 255, 255, 0.42);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.4), 0 0 80px rgba(0, 200, 200, 0.15),     inset 0 0 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
    overflow: visible;
    filter: saturate(0.45) contrast(1.1);
    transition: filter 0.5s ease;
    animation: gitsPortraitPulse 6s ease-in-out infinite;
}

.gits-field .control-portrait:hover {
    filter: saturate(0.85) contrast(1.05);
}

@keyframes gitsPortraitPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0,255,255,0.35), 0 0 80px rgba(0,200,200,0.1); }
    50%       { box-shadow: 0 0 65px rgba(0,255,255,0.6), 0 0 130px rgba(0,200,200,0.25); }
}

/* Scanlines on portrait */
.gits-field .control-portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 255, 255, 0.05) 3px, rgba(0, 255, 255, 0.05) 4px);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 2;
}

/* Name tag below portrait */
.gits-field .control-portrait::after {
    content: 'MAJOR KUSANAGI';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-ghost);
    font-size: 0.77rem;
    letter-spacing: 0.4em;
    color: rgba(0, 255, 255, 0.65);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.45);
}

/* Inner glow overlay */
.gits-field .portrait-inner-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 255, 255, 0.18) 100%);
    pointer-events: none;
}

/* Rings */
.gits-field .gits-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.gits-field .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.42);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: gitsRingOrbit 6s ease-in-out infinite;
}

.gits-field .ring-1 {
    width: 270px; height: 270px;
    animation-duration: 6s; animation-delay: 0s;
    border-color: rgba(0, 255, 255, 0.43);
}
.gits-field .ring-2 {
    width: 340px; height: 340px;
    animation-duration: 9s; animation-delay: 1s;
    border-color: rgba(0, 255, 255, 0.29);
}
.gits-field .ring-3 {
    width: 420px; height: 420px;
    animation-duration: 12s; animation-delay: 2s;
    border-color: rgba(0, 200, 200, 0.14);
}

@keyframes gitsRingOrbit {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1);    }
    50%       { opacity: 0.9; transform: translate(-50%, -50%) scale(1.03); }
}

/* Stats arc */
.gits-field .ctrl-stats-arc {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 4;
}

.gits-field .ctrl-stat {
    cursor: default;
    transition: transform 0.3s ease;
}
.gits-field .ctrl-stat:hover { transform: translateX(-6px); }

.gits-field .ctrl-stat-content {
    background: rgba(0, 8, 12, 0.75);
    border: 1px solid rgba(0, 255, 255, 0.38);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    backdrop-filter: blur(6px);
    min-width: 200px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gits-field .ctrl-stat-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 8px 0 0 8px;
    background: rgba(0, 255, 255, 0.4);
    transition: background 0.3s ease;
}

.gits-field .ctrl-stat:hover .ctrl-stat-content {
    border-color: rgba(0, 255, 255, 0.65);
    background: rgba(0, 18, 22, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25), inset 0 0 10px rgba(0, 255, 255, 0.06);
}

.gits-field .ctrl-stat:hover .ctrl-stat-content::before {
    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.gits-field .ctrl-stat-label {
    font-family: var(--font-ghost);
    font-size: 0.72rem;
    color: rgba(0, 220, 220, 0.75);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.gits-field .ctrl-stat-value {
    font-family: var(--font-ghost);
    font-size: 0.94rem;
    color: #e0ffff;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.gits-field .ctrl-stat:hover .ctrl-stat-label { color: #00ffff; }
.gits-field .ctrl-stat:hover .ctrl-stat-value {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

/* Quote */
.gits-field .control-quote {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    text-align: center;
    z-index: 4;
}

.gits-field .control-quote p {
    font-style: italic;
    font-size: 0.89rem;
    color: rgba(200, 255, 255, 0.5);
    line-height: 1.7;
    border-top: 1px solid rgba(0, 255, 255, 0.32);
    padding-top: 0.8rem;
    transition: color 0.4s ease;
}

.gits-field:hover .control-quote p {
    color: rgba(200, 255, 255, 0.82);
}

/* Recording mode */
.recording-mode .gits-field .gits-watermark,
.recording-mode .gits-field .ring,
.recording-mode .gits-field .control-portrait {
    animation: none !important;
}
.recording-mode .gits-field .ctrl-line,
.recording-mode .gits-field .ctrl-node {
    animation: none !important;
    stroke: rgba(0, 255, 255, 0.35) !important;
}

/* Responsive */
@media (max-width: 900px) {
    .gits-field .control-arena {
        flex-direction: column;
        min-height: 700px;
        padding-bottom: 6rem;
    }
    .gits-field .ctrl-stats-arc {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 360px;
        margin-top: 2rem;
        align-items: center;
    }
    .gits-field .ctrl-stat-content { min-width: 260px; }
    .gits-field .control-lines { display: none; }
    .gits-field .control-quote { width: 85%; bottom: 1rem; }
    .gits-field .ring-2,
    .gits-field .ring-3 { display: none; }
}

@media (max-width: 480px) {
    .gits-field .gits-watermark { font-size: 3.5rem; }
    .gits-field .control-portrait { width: 160px; height: 200px; }
    .gits-field .ring-1 { width: 200px; height: 200px; }
}


/* ─── SECTION 2 · Ghost Integrity Scanner ────────────────────── */

.gits-scanner {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000d10;
    border: 1px solid rgba(0, 255, 255, 0.42);
    transition: border-color 0.4s ease;
}

.gits-scanner.scanning {
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
}

.gits-scanner.scan-done.verified {
    border-color: rgba(0, 255, 255, 0.9);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.25);
}

.gits-scanner.scan-done.anomaly {
    border-color: rgba(255, 80, 80, 0.7);
    box-shadow: 0 0 60px rgba(255, 80, 80, 0.2);
}

/* Scanlines overlay */
.gits-scanner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(4, 6, 16, 0.19) 2px, rgba(9, 6, 23, 0.15) 4px);
    pointer-events: none;
    z-index: 10;
}

.scanner-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 10, 14, 0.95);
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 5;
}

.scanner-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 255, 255, 0.45) 20%, rgba(0, 255, 255, 0.75) 50%, rgba(0, 255, 255, 0.45) 80%, transparent 100%);
}

.scanner-topbar-title {
    font-family: var(--font-ghost);
    font-size: 0.67rem;
    letter-spacing: 0.45em;
    color: rgba(0, 220, 220, 0.85);
    text-transform: uppercase;
}

.scanner-topbar-status {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    color: rgba(0, 200, 200, 0.55);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.gits-scanner.scanning .scanner-topbar-status {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.9);
    animation: gitsStatusBlink 1.2s ease-in-out infinite;
}

.gits-scanner.scan-done.anomaly .scanner-topbar-status {
    color: rgba(255, 80, 80, 0.9);
    text-shadow: 0 0 8px rgba(255, 80, 80, 0.8);
    animation: none;
}

@keyframes gitsStatusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

.scanner-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

/* Left — progress meters */
.scanner-meters {
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(0, 255, 255, 0.38);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    background: radial-gradient(ellipse at 0% 0%, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
}

.scanner-meters-label {
    font-family: var(--font-ghost);
    font-size: 0.67rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.7);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 255, 255, 0.34);
    padding-bottom: 0.7rem;
}

.scanner-metric {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.scanner-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanner-metric-label {
    font-family: var(--font-ghost);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(0, 220, 220, 0.75);
    text-transform: uppercase;
}

.scanner-metric-val {
    font-family: var(--font-ghost);
    font-size: 0.77rem;
    color: #e0ffff;
    letter-spacing: 0.08em;
    transition: color 0.4s ease;
    min-width: 3.5rem;
    text-align: right;
}

.gits-scanner.scan-done.anomaly .scanner-metric-val.anomalous {
    color: rgba(255, 120, 120, 0.9);
    text-shadow: 0 0 8px rgba(255, 80, 80, 0.6);
}

.scanner-bar-track {
    height: 4px;
    background: rgba(0, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.scanner-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(0, 180, 180, 0.6), #00ffff);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.gits-scanner.scan-done.anomaly .scanner-bar-fill.anomalous {
    background: linear-gradient(to right, rgba(180, 0, 0, 0.5), rgba(255, 80, 80, 0.9));
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.5);
}

/* Right — report output */
.scanner-report {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    background: radial-gradient(ellipse at 100% 100%, rgba(0, 255, 255, 0.04) 0%, transparent 60%);
}

.scanner-idle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.scanner-idle.hidden { opacity: 0; }

.scanner-idle-icon {
    font-size: 2.7rem;
    opacity: 0.1;
    filter: grayscale(1);
}

.scanner-idle-text {
    font-family: var(--font-ghost);
    font-size: 0.7135rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.71);
    text-transform: uppercase;
}

.scanner-output {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.scanner-output.visible {
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.scanner-output-label {
    font-family: var(--font-ghost);
    font-size: 0.67rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.7);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 255, 255, 0.38);
    padding-bottom: 0.7rem;
}

.scanner-report-line {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.report-line-key {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.35em;
    color: rgba(0, 200, 200, 0.55);
    text-transform: uppercase;
}

.report-line-val {
    font-family: var(--font-ghost);
    font-size: 0.86rem;
    color: rgba(224, 255, 255, 0.88);
    line-height: 1.5;
    min-height: 1.2rem;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: #00ffff;
    margin-left: 2px;
    vertical-align: middle;
    animation: gitsCursorBlink 0.7s step-end infinite;
}

@keyframes gitsCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Verdict stamp */
.scanner-verdict {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.scanner-verdict-stamp {
    font-family: var(--font-ghost);
    font-size: 1.34rem;
    letter-spacing: 0.25em;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    text-transform: uppercase;
    transform: rotate(-12deg) scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    pointer-events: none;
}

.scanner-verdict-stamp.stamped {
    transform: rotate(-12deg) scale(1);
    opacity: 1;
}

.stamp-verified {
    color: rgba(0, 255, 200, 0.97);
    border: 2px solid rgba(0, 255, 200, 0.75);
    text-shadow: 0 0 20px rgba(0, 255, 200, 1);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.4);
    background: rgba(0, 10, 10, 0.92);
}

.stamp-anomaly {
    color: rgba(255, 80, 80, 0.97);
    border: 2px solid rgba(255, 80, 80, 0.75);
    text-shadow: 0 0 20px rgba(255, 80, 80, 1);
    box-shadow: 0 0 25px rgba(255, 80, 80, 0.4);
    background: rgba(10, 0, 0, 0.92);
}

.scanner-action-wrap {
    padding: 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.29);
    flex-wrap: wrap;
}

.gits-btn {
    font-family: var(--font-ghost);
    font-size: 0.735rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #00ffff;
    background: transparent;
    border: 1px solid rgba(0, 200, 200, 0.55);
    border-radius: 4px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gits-btn:hover {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.45), inset 0 0 15px rgba(0, 255, 255, 0.08);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.gits-btn:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
    text-shadow: none;
}

.scanner-note {
    font-family: var(--font-ghost);
    font-size: 0.68rem;
    font-style: italic;
    color: rgba(0, 200, 200, 0.5);
    line-height: 1.7;
}

@media (max-width: 700px) {
    .scanner-body { grid-template-columns: 1fr; }
    .scanner-meters { border-right: none; border-bottom: 1px solid rgba(0, 255, 255, 0.28); }
}


/* ─── SECTION 3 · Section 9 Personnel Dossiers ───────────────── */

.gits-s9-files {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000d10;
    border: 1px solid rgba(0, 255, 255, 0.39);
    min-height: 500px;
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.05), 0 4px 40px rgba(0, 0, 0, 0.85), inset 0 0 80px rgba(0, 255, 255, 0.02);
}

/* Scanlines */
.gits-s9-files::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.07) 2px, rgba(0, 0, 0, 0.07) 4px);
    pointer-events: none;
    z-index: 10;
    border-radius: 12px;
}

/* Vignette */
.gits-s9-files::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

.s9-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 10, 14, 0.97);
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 5;
}

.s9-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 255, 255, 0.4) 20%, rgba(0, 255, 255, 0.75) 50%, rgba(0, 255, 255, 0.4) 80%, transparent 100%);
}

.s9-topbar-title {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.45em;
    color: rgba(0, 220, 220, 0.85);
    text-transform: uppercase;
}

.s9-topbar-access {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.3em;
    color: rgba(0, 200, 200, 0.4);
    text-transform: uppercase;
}

.s9-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 460px;
    position: relative;
    z-index: 2;
}

/* Agent list */
.s9-agent-list {
    border-right: 1px solid rgba(0, 255, 255, 0.33);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 8, 12, 0.7);
}

.s9-list-label {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.7);
    text-transform: uppercase;
    padding: 0 1.2rem 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.24);
    margin-bottom: 0.5rem;
}

.s9-agent-entry {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1.2rem;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}

.s9-agent-entry::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 0.8rem;
    height: 1px;
    background: rgba(0, 255, 255, 0.06);
}

.s9-agent-entry:hover {
    background: rgba(0, 255, 255, 0.06);
    border-left-color: rgba(0, 200, 200, 0.4);
}

.s9-agent-entry.active {
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00cccc;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.04);
}

.s9-agent-icon {
    font-size: 1.124rem;
    flex-shrink: 0;
    filter: grayscale(0.6);
    transition: filter 0.3s ease;
    line-height: 1;
}

.s9-agent-entry.active .s9-agent-icon,
.s9-agent-entry:hover .s9-agent-icon {
    filter: none;
}

.s9-agent-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.s9-agent-name {
    font-family: var(--font-ghost);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(0, 200, 200, 0.65);
    transition: color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s9-agent-entry:hover .s9-agent-name,
.s9-agent-entry.active .s9-agent-name {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.s9-agent-rank {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
    color: rgba(0, 180, 180, 0.55);
    transition: color 0.25s ease;
}

.s9-agent-entry.active .s9-agent-rank {
    color: rgba(0, 200, 200, 0.6);
}

/* Classified tag */
.s9-classified-tag {
    position: absolute;
    right: 0.8rem;
    font-family: var(--font-ghost);
    font-size: 0.57rem;
    letter-spacing: 0.12em;
    color: rgba(0, 255, 255, 0.6);
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 255, 0.32);
    border-radius: 2px;
    padding: 0.1rem 0.3rem;
    background: rgba(0, 255, 255, 0.04);
}

/* Dossier panel */
.s9-dossier {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, transparent 30%);
}

.s9-dossier::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at top right, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.s9-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: opacity 0.3s ease;
}

.s9-empty.hidden { opacity: 0; pointer-events: none; }

.s9-empty-icon { font-size: 2rem; opacity: 0.08; filter: grayscale(1); }

.s9-empty-text {
    font-family: var(--font-ghost);
    font-size: 0.635rem;
    letter-spacing: 0.45em;
    color: rgba(0, 200, 200, 0.55);
    text-transform: uppercase;
}

.s9-dossier-content {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.s9-dossier-content.visible {
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.s9-dossier-top {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.27);
}

.s9-dossier-portrait {
    width: 75px;
    height: 90px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 10, 14, 0.98);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    filter: grayscale(0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.08), inset 0 0 16px rgba(0, 0, 0, 0.65);
}

.s9-dossier-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0, 255, 255, 0.04) 4px, rgba(0, 255, 255, 0.04) 8px);
}

.s9-dossier-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.s9-dossier-name {
    font-family: var(--font-ghost);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    color: #00ffff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.45), 0 0 28px rgba(0, 200, 200, 0.18);
    display: block;
}

.s9-dossier-title {
    font-family: var(--font-ghost);
    font-size: 0.71rem;
    letter-spacing: 0.25em;
    color: rgba(0, 220, 220, 0.8);
    text-transform: uppercase;
    display: block;
}

.s9-status-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.s9-status-badge {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.status-active  { color: rgba(100,255,180,0.88); border: 1px solid rgba(100, 255, 180, 0.41); background: rgba(0,255,120,0.05); }
.status-retired { color: rgba(200,220,255,0.7);  border: 1px solid rgba(180, 200, 240, 0.35); background: rgba(100,120,200,0.05); }
.status-classified { color: rgba(0,220,220,0.85); border: 1px solid rgba(0, 200, 200, 0.41); background: rgba(0,255,255,0.05); }

.s9-dossier-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.5rem;
}

.s9-dossier-field { display: flex; flex-direction: column; gap: 0.2rem; }

.s9-field-key {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.35em;
    color: rgba(0, 200, 200, 0.55);
    text-transform: uppercase;
}

.s9-field-val {
    font-family: var(--font-ghost);
    font-size: 0.72rem;
    color: rgba(224, 255, 255, 0.85);
    line-height: 1.4;
}

.s9-field-val.redacted {
    color: transparent;
    position: relative;
    user-select: none;
}
.s9-field-val.redacted::after {
    content: '████████████';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(0, 200, 200, 0.4);
    letter-spacing: 0.05em;
}

.s9-dossier-notes {
    border-top: 1px solid rgba(0, 255, 255, 0.34);
    padding-top: 1rem;
}

.s9-notes-label {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.65);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.s9-notes-text {
    font-family: var(--font-ghost);
    font-size: 0.81rem;
    font-style: italic;
    color: rgba(200, 255, 255, 0.78);
    line-height: 1.85;
}

/* Threat bar */
.s9-threat-wrap { display: flex; flex-direction: column; gap: 0.4rem; }

.s9-threat-label {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.35em;
    color: rgba(0, 200, 200, 0.8);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.s9-threat-bar {
    height: 4px;
    background: rgba(0, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.s9-threat-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(0, 180, 180, 0.5), rgba(0, 255, 255, 1));
    width: 0;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

@media (max-width: 700px) {
    .s9-layout { grid-template-columns: 1fr; }
    .s9-agent-list {
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.38);
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.3rem;
    }
    .s9-list-label { display: none; }
    .s9-agent-entry {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.5rem 0.8rem;
        border-radius: 4px;
    }
    .s9-agent-entry::after { display: none; }
    .s9-agent-entry.active {
        border-bottom-color: #00cccc;
        border-left-color: transparent;
    }
    .s9-dossier-fields { grid-template-columns: 1fr; }
}


/* ─── SECTION 4 · Net Dive Console ───────────────────────────── */

.gits-net-dive {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000d10;
    border: 1px solid rgba(0, 255, 255, 0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.gits-net-dive.diving {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.1);
}

.gits-net-dive.compromised {
    border-color: rgba(255, 80, 80, 0.7);
    box-shadow: 0 0 40px rgba(255, 80, 80, 0.18);
}

.gits-net-dive.severed
{
    border-color: rgba(0, 255, 255, 0.42);
}

/* Scanlines */
.gits-net-dive::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.07) 2px, rgba(0, 0, 0, 0.07) 4px);
    pointer-events: none;
    z-index: 10;
}

.dive-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 10, 14, 0.97);
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dive-topbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(0,255,255,0.45) 20%, rgba(0,255,255,0.75) 50%, rgba(0,255,255,0.45) 80%, transparent 100%);
}

.dive-topbar-title {
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.45em;
    color: rgba(0, 220, 220, 0.85);
    text-transform: uppercase;
}

.dive-topbar-depth {
    font-family: var(--font-ghost);
    font-size: 0.635rem;
    letter-spacing: 0.3em;
    color: rgba(0, 200, 200, 0.55);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.gits-net-dive.diving .dive-topbar-depth {
    color: #00ffff;
    animation: gitsStatusBlink 1.5s ease-in-out infinite;
}

.gits-net-dive.compromised .dive-topbar-depth {
    color: rgba(255, 80, 80, 0.9);
    animation: gitsStatusBlink 0.6s ease-in-out infinite;
}

.dive-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    min-height: 480px;
}

/* Scroll log */
.dive-log {
    padding: 1.5rem;
    border-right: 1px solid rgba(0, 255, 255, 0.34);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    max-height: 460px;
    font-family: var(--font-ghost);
    font-size: 0.77rem;
    position: relative;
}

.dive-log-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.8rem;
    min-height: 360px;
    transition: opacity 0.3s ease;
}

.dive-log-idle.hidden { display: none; }

.dive-log-idle-icon { font-size: 2.5rem; opacity: 0.1; filter: grayscale(1); }

.dive-log-idle-text
{
    font-family: var(--font-ghost);
    font-size: 0.71rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.5);
    text-transform: uppercase;
}

.dive-line {
    padding: 0.15rem 0;
    line-height: 1.6;
    animation: diveLineFadeIn 0.3s ease both;
}

@keyframes diveLineFadeIn {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: none; }
}

.dive-line-trace   { color: rgba(0, 200, 200, 0.65); }
.dive-line-packet  { color: rgba(180, 255, 240, 0.75); }
.dive-line-warning { color: rgba(255, 200, 80, 0.85); }
.dive-line-danger  { color: rgba(255, 80, 80, 0.9);  }
.dive-line-system  { color: rgba(0, 255, 255, 0.9);  text-shadow: 0 0 8px rgba(0,255,255,0.5); }
.dive-line-encrypt { color: rgba(100, 180, 200, 0.5); font-size: 0.71rem; letter-spacing: 0.08em; }
.dive-line-cursor::after {
    content: '█';
    animation: gitsCursorBlink 0.6s step-end infinite;
    color: #00ffff;
}

/* Right panel — depth + controls */
.dive-sidebar {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    background: rgba(0, 8, 12, 0.6);
}

.dive-depth-wrap { display: flex; flex-direction: column; gap: 0.6rem; }

.dive-depth-label {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.65);
    text-transform: uppercase;
}

.dive-depth-bar-track {
    height: 180px;
    width: 8px;
    background: rgba(0, 255, 255, 0.08);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.dive-depth-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to top, rgba(0, 180, 180, 0.5), #00ffff);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: height 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gits-net-dive.compromised .dive-depth-bar-fill {
    background: linear-gradient(to top, rgba(180, 0, 0, 0.5), rgba(255, 80, 80, 0.9));
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.5);
}

.dive-depth-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dive-depth-val {
    font-family: var(--font-ghost);
    font-size: 0.79rem;
    color: #e0ffff;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.gits-net-dive.compromised .dive-depth-val {
    color: rgba(255, 120, 120, 0.9);
}

.dive-stats { display: flex; flex-direction: column; gap: 0.6rem; }

.dive-stat-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dive-stat-key {
    font-family: var(--font-ghost);
    font-size: 0.61rem;
    letter-spacing: 0.3em;
    color: rgba(0, 180, 180, 0.55);
    text-transform: uppercase;
}

.dive-stat-val {
    font-family: var(--font-ghost);
    font-size: 0.81rem;
    color: rgba(200, 255, 255, 0.8);
}

.dive-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.gits-btn-danger {
    font-family: var(--font-ghost);
    font-size: 0.7135rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 80, 80, 0.9);
    background: transparent;
    border: 1px solid rgba(255, 80, 80, 0.55);
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gits-btn-danger:hover {
    border-color: rgba(255, 80, 80, 0.9);
    box-shadow: 0 0 20px rgba(255, 80, 80, 0.35);
}

.gits-btn-danger:disabled {
    opacity: 0.25;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 700px) {
    .dive-body { grid-template-columns: 1fr; }
    .dive-log { border-right: none; border-bottom: 1px solid rgba(0, 255, 255, 0.3); max-height: 300px; }
    .dive-depth-bar-track { width: 100%; height: 6px; }
    .dive-depth-bar-fill { bottom: auto; top: 0; left: 0; height: 100% !important; width: 0%; transition: width 0.8s; }
}


/* ─── SECTION 5 · Memory Fragments ──────────────────────────── */

.gits-memory-archive {
    position: relative;
    margin-bottom: 3rem;
}

.memory-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.memory-archive-label {
    font-family: var(--font-ghost);
    font-size: 0.71rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.65);
    text-transform: uppercase;
}

.memory-archive-note {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    font-style: italic;
    color: rgba(0, 180, 180, 0.5);
}

.memory-fragments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.memory-fragment {
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.31);
    background: rgba(0, 8, 12, 0.9);
    padding: 1.4rem;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.memory-fragment::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00cccc, #00ffff, #00cccc, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-fragment:hover {
    border-color: rgba(0, 255, 255, 0.56);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    background: rgba(0, 15, 20, 0.95);
}

.memory-fragment:hover::before { opacity: 1; }

.memory-fragment.repaired {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.memory-fragment.repaired::before { opacity: 1; }

.memory-frag-id {
    font-family: var(--font-ghost);
    font-size: 0.63rem;
    letter-spacing: 0.35em;
    color: rgba(0, 180, 180, 0.5);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.7rem;
}

.memory-frag-text {
    font-family: var(--font-ghost);
    font-size: 0.87rem;
    color: rgba(180, 255, 255, 0.75);
    line-height: 1.85;
    min-height: 4rem;
}

.memory-frag-text .corrupt {
    color: rgba(0, 255, 255, 0.3);
    letter-spacing: 0.05em;
    animation: corruptFlicker 2s ease-in-out infinite;
}

@keyframes corruptFlicker {
    0%, 90%, 100% { opacity: 0.35; }
    95%            { opacity: 0.7;  }
}

.memory-frag-text.clean {
    color: rgba(224, 255, 255, 0.9);
}

.memory-frag-hint {
    display: block;
    font-family: var(--font-ghost);
    font-size: 0.63rem;
    letter-spacing: 0.25em;
    color: rgba(0, 180, 180, 0.4);
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   GITS CYBERBRAIN DIVE FIELD — Character Spotlight
   Thermoptic Reveal layered over Concentric Ring Interface
   ═══════════════════════════════════════════════════════ */

.gits-dive-field {
    position: relative;
    width: 100%;
    min-height: 620px;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 60, 70, 0.3) 0%, rgba(0, 15, 20, 0.7) 45%, rgba(0, 3, 6, 0.97) 100%);
    border: 1px solid rgba(0, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Cloak overlay ───────────────────────────────────── */

.gits-cloak-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.03), rgba(0, 255, 255, 0.03) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(0, 255, 255, 0.02), rgba(0, 255, 255, 0.02) 1px, transparent 1px, transparent 4px);
    z-index: 8;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

.gits-dive-field.revealed .gits-cloak-overlay {
    opacity: 0;
}

/* ── Watermark ───────────────────────────────────────── */

.gits-dive-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ghost);
    font-size: clamp(6rem, 18vw, 13rem);
    font-weight: 900;
    color: rgba(0, 255, 255, 0.025);
    letter-spacing: 0.35em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    text-transform: uppercase;
    transition: opacity 0.8s ease;
}

.gits-dive-field.revealed .gits-dive-watermark {
    color: rgba(0, 255, 255, 0.04);
    animation: gitsWatermarkBreath 8s ease-in-out infinite;
}

/* ── Decloak progress bar ────────────────────────────── */

.gits-decloak-bar-wrap {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 11;
    transition: opacity 0.6s ease;
}

.gits-dive-field.revealed .gits-decloak-bar-wrap {
    opacity: 0;
    pointer-events: none;
}

.gits-decloak-label {
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: rgba(0, 200, 200, 0.7);
    text-transform: uppercase;
    white-space: nowrap;
}

.gits-decloak-track {
    width: 180px;
    height: 3px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.gits-decloak-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, rgba(0, 180, 180, 0.6), #00ffff);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.gits-decloak-pct {
    font-family: var(--font-ghost);
    font-size: 0.67rem;
    letter-spacing: 0.2em;
    color: rgba(0, 220, 220, 0.8);
    min-width: 2.5rem;
}

/* ── Concentric rings ────────────────────────────────── */

.gits-dive-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.gits-dive-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 255, 0.21);
    opacity: 0;
    transition: opacity 0.8s ease, border-color 0.8s ease;
}

.gits-dive-ring-1 { width: 260px;  height: 260px; }
.gits-dive-ring-2 { width: 360px;  height: 360px; }
.gits-dive-ring-3 { width: 460px;  height: 460px; }
.gits-dive-ring-4 { width: 560px;  height: 560px; }

/* Active states triggered by JS at each threshold */
.gits-dive-ring-1.active {
    opacity: 1;
    border-color: rgba(0, 255, 255, 0.45);
    animation: gitsDiveRingPulse 5s ease-in-out infinite;
}
.gits-dive-ring-2.active {
    opacity: 1;
    border-color: rgba(0, 255, 255, 0.34);
    animation: gitsDiveRingPulse 7s ease-in-out infinite 0.5s;
}
.gits-dive-ring-3.active {
    opacity: 1;
    border-color: rgba(0, 255, 255, 0.26);
    animation: gitsDiveRingPulse 9s ease-in-out infinite 1s;
}
.gits-dive-ring-4.active {
    opacity: 1;
    border-color: rgba(0, 255, 255, 0.12);
    animation: gitsDiveRingPulse 12s ease-in-out infinite 1.5s;
}

@keyframes gitsDiveRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: var(--ring-base-opacity, 0.8); }
    50%       { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}

/* Tick marks on rings — 12 ticks each via gradient trick */
.gits-dive-ring-1.active::before,
.gits-dive-ring-2.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
            from 0deg,
            rgba(0,255,255,0.6) 0deg, rgba(0,255,255,0.6) 2deg,
            transparent 2deg, transparent 28deg,
            rgba(0,255,255,0.6) 28deg, rgba(0,255,255,0.6) 30deg,
            transparent 30deg, transparent 58deg,
            rgba(0,255,255,0.6) 58deg, rgba(0,255,255,0.6) 60deg,
            transparent 60deg, transparent 88deg,
            rgba(0,255,255,0.6) 88deg, rgba(0,255,255,0.6) 90deg,
            transparent 90deg, transparent 118deg,
            rgba(0,255,255,0.6) 118deg, rgba(0,255,255,0.6) 120deg,
            transparent 120deg, transparent 148deg,
            rgba(0,255,255,0.6) 148deg, rgba(0,255,255,0.6) 150deg,
            transparent 150deg, transparent 178deg,
            rgba(0,255,255,0.6) 178deg, rgba(0,255,255,0.6) 180deg,
            transparent 180deg, transparent 208deg,
            rgba(0,255,255,0.6) 208deg, rgba(0,255,255,0.6) 210deg,
            transparent 210deg, transparent 238deg,
            rgba(0,255,255,0.6) 238deg, rgba(0,255,255,0.6) 240deg,
            transparent 240deg, transparent 268deg,
            rgba(0,255,255,0.6) 268deg, rgba(0,255,255,0.6) 270deg,
            transparent 270deg, transparent 298deg,
            rgba(0,255,255,0.6) 298deg, rgba(0,255,255,0.6) 300deg,
            transparent 300deg, transparent 328deg,
            rgba(0,255,255,0.6) 328deg, rgba(0,255,255,0.6) 330deg,
            transparent 330deg, transparent 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 5px), black calc(50% - 4px), black calc(50% + 4px), transparent calc(50% + 5px));
    mask: radial-gradient(circle, transparent calc(50% - 5px), black calc(50% - 4px), black calc(50% + 4px), transparent calc(50% + 5px));
    opacity: 0.5;
}

/* ── Waveform canvas ─────────────────────────────────── */

.gits-waveform-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease;
}

.gits-dive-field.waveform-active .gits-waveform-wrap {
    opacity: 1;
}

.gits-waveform-canvas {
    width: 100%;
    height: 100%;
}

/* ── Full-panel thermoptic canvas ────────────────────── */

.gits-panel-glitch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gits-panel-glitch-canvas.active {
    opacity: 1;
}


/* ── Sector stat cards ───────────────────────────────── */

.gits-sector-stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.gits-sector {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.gits-sector.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Quadrant positions */
.gits-sector-tl { top: 12%;  left: 5%; flex-direction: row-reverse; text-align: right; }
.gits-sector-tr { top: 12%;  right: 5%; }
.gits-sector-bl { bottom: 12%; left: 5%; flex-direction: row-reverse; text-align: right; }
.gits-sector-br { bottom: 12%; right: 5%; }

.gits-sector-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(0, 8, 14, 0.82);
    border: 1px solid rgba(0, 255, 255, 0.31);
    border-radius: 6px;
    padding: 0.55rem 1rem;
    backdrop-filter: blur(6px);
    min-width: 160px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.gits-sector-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(90deg, transparent, #00cccc, transparent);
    opacity: 0.6;
}

.gits-sector:hover .gits-sector-content {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.gits-sector-key {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    color: rgba(0, 200, 200, 0.7);
    text-transform: uppercase;
}

.gits-sector-val {
    font-family: var(--font-ghost);
    font-size: 0.83rem;
    color: rgba(224, 255, 255, 0.9);
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Leader tick line from card toward ring */
.gits-sector-tick {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,255,255,0.5), transparent);
    margin-top: 1rem;
    flex-shrink: 0;
}

.gits-sector-tl .gits-sector-tick,
.gits-sector-bl .gits-sector-tick {
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.5));
}

/* ── Hex Portrait Frame ──────────────────────────────── */

.gits-hex-portrait-wrap
{
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.gits-dive-field.portrait-active .gits-hex-portrait-wrap
{
    opacity: 1;
}

.gits-hex-frame
{
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

/* ── SVG hex border overlay ──────────────────────────── */

.gits-hex-svg
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.gits-hex-border
{
    fill: none;
    stroke: rgba(0, 255, 255, 0.65);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
    animation: gitsHexBorderPulse 4s ease-in-out infinite;
}

@keyframes gitsHexBorderPulse
{
    0%, 100% {
        stroke: rgba(0, 255, 255, 0.55);
        filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.4));
    }
    50% {
        stroke: rgba(0, 255, 255, 0.9);
        filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.7));
    }
}

.gits-hex-tick
{
    stroke: rgba(0, 255, 255, 0.8);
    stroke-width: 1.5;
}

.gits-hex-bracket
{
    fill: none;
    stroke: rgba(0, 255, 255, 0.5);
    stroke-width: 1;
}

/* ── Portrait image — clipped to hex shape ───────────── */

.gits-hex-portrait
{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    z-index: 1;
    filter: saturate(0) contrast(1.2) brightness(1.1);
    opacity: 0;
    transition: filter 1.2s ease;
}

/* Cloaked — fully invisible, no transition flash */
.gits-hex-portrait.cloaked
{
    opacity: 0;
    filter: saturate(0) contrast(1.2) brightness(1.1);
    transition: none;
}

/* Decloaking — portrait fades in under peeling shards */
.gits-hex-portrait.decloaking
{
    opacity: 1;
    filter: saturate(0.15) contrast(1.15) brightness(0.95);
    transition: opacity 0.4s ease, filter 2.8s ease;
}

/* Fully revealed */
.gits-hex-portrait.decloaked
{
    opacity: 1;
    filter: saturate(0.7) contrast(1.05) brightness(0.95);
    transition: filter 1.2s ease;
}

/* Scanlines — permanent subtle overlay on portrait */
.gits-hex-portrait::after
{
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 255, 255, 0.04) 3px, rgba(0, 255, 255, 0.04) 4px);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ── Thermoptic triangle glitch canvas ───────────────── */

.gits-hex-glitch
{
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.gits-hex-glitch-canvas
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gits-hex-glitch-canvas.active
{
    opacity: 1;
}


/* ── Reticle corner brackets ─────────────────────────── */

.gits-reticle {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 5;
}

.gits-reticle-tl {
    top: 2px;
    left: 45px;
    border-top: 1px solid rgba(0, 255, 255, 0.7);
    border-left: 1px solid rgba(0, 255, 255, 0.7);
}

.gits-reticle-tr {
    top: 2px;
    right: 45px;
    border-top: 1px solid rgba(0, 255, 255, 0.7);
    border-right: 1px solid rgba(0, 255, 255, 0.7);
}

.gits-reticle-bl {
    bottom: 2px;
    left: 45px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.7);
    border-left: 1px solid rgba(0, 255, 255, 0.7);
}

.gits-reticle-br {
    bottom: 2px;
    right: 45px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.7);
    border-right: 1px solid rgba(0, 255, 255, 0.7);
}

/* ── ID tag below hex ────────────────────────────────── */

.gits-id-tag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.gits-id-tag-name {
    font-family: var(--font-ghost);
    font-size: 0.81rem;
    letter-spacing: 0.3em;
    color: rgba(0, 255, 255, 0.8);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 1s ease;
}

.gits-id-tag-sub {
    font-family: var(--font-ghost);
    font-size: 0.637rem;
    letter-spacing: 0.25em;
    color: rgba(0, 200, 200, 0.5);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

/* ID tag fades in only after full reveal */
.gits-dive-field.revealed .gits-id-tag-name,
.gits-dive-field.revealed .gits-id-tag-sub {
    opacity: 1;
}

/* ── Recording mode ──────────────────────────────────── */

.recording-mode .gits-hex-border {
    animation: none !important;
    stroke: rgba(0, 255, 255, 0.6) !important;
    filter: none !important;
}

.recording-mode .gits-hex-glitch-canvas {
    display: none !important;
}

.recording-mode .gits-hex-portrait {
    opacity: 1 !important;
    filter: saturate(0.7) contrast(1.05) brightness(0.95) !important;
    transition: none !important;
}

.recording-mode .gits-id-tag-name,
.recording-mode .gits-id-tag-sub {
    opacity: 1 !important;
    transition: none !important;
}


/* ── Bottom quote ────────────────────────────────────── */

.gits-dive-quote {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    text-align: center;
    z-index: 7;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.gits-dive-field.revealed .gits-dive-quote {
    opacity: 1;
}

.gits-dive-quote p {
    font-style: italic;
    font-size: 0.84rem;
    color: rgba(200, 255, 255, 0.55);
    line-height: 1.7;
    border-top: 1px solid rgba(0, 255, 255, 0.4);
    padding-top: 0.8rem;
}

/* ── Recording mode ──────────────────────────────────── */

.recording-mode .gits-dive-field .gits-dive-ring { animation: none !important; }
.recording-mode .gits-dive-field .gits-hex-border { animation: none !important; }
.recording-mode .gits-dive-field .gits-dive-watermark { animation: none !important; }
.recording-mode .gits-dive-field .gits-hex-glitch { display: none !important; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
    .gits-dive-field { min-height: 520px; }
    .gits-waveform-wrap { width: 420px; height: 420px; }
    .gits-dive-ring-3, .gits-dive-ring-4 { display: none; }
    .gits-sector-tl, .gits-sector-bl { left: 2%; }
    .gits-sector-tr, .gits-sector-br { right: 2%; }
    .gits-sector-content { min-width: 120px; }
    .gits-sector-val { font-size: 0.78rem; }
    .gits-dive-quote { width: 80%; }
}

@media (max-width: 600px) {
    .gits-sector-stats { display: none; }
    .gits-dive-field { min-height: 440px; }
    .gits-waveform-wrap { width: 300px; height: 300px; }
    .gits-dive-ring-2 { display: none; }
}


.memory-fragment:hover .memory-frag-hint { opacity: 1; }
.memory-fragment.repaired .memory-frag-hint { display: none; }

@media (max-width: 600px) {
    .memory-fragments-grid { grid-template-columns: 1fr; }
}
