/* ===========================================================
   namu.land — terminal masonry · aurora bleed
   =========================================================== */

:root {
    --void: #0A0A0A;
    --forest: #1B4332;
    --pale-aurora: #0D3B2E;
    --phosphor: #39FF14;
    --cyan: #00E5FF;
    --magenta: #FF006E;
    --violet: #7B2FBE;
    --soft-white: #E0E0E0;
    --dim: #6B7280;
    --dot-r: #FF6B6B;
    --dot-y: #FFD93D;
    --dot-g: #6BCB77;
    --gutter: #000000;

    --grad-aurora: linear-gradient(135deg, #39FF14 0%, #00E5FF 35%, #FF006E 65%, #7B2FBE 100%);

    --ff-display: "Bebas Neue", "Impact", sans-serif;
    --ff-mono: "IBM Plex Mono", "Menlo", "Consolas", monospace;
    --ff-term: "Share Tech Mono", "Courier New", monospace;
}

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

html, body {
    background: var(--void);
    color: var(--soft-white);
    font-family: var(--ff-mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(57,255,20,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(123,47,190,0.05) 0%, transparent 60%),
        var(--void);
}

a { color: var(--cyan); text-decoration: none; }

::selection { background: var(--phosphor); color: var(--void); }

/* ============== AURORA BACKGROUND ============== */

.aurora-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-band {
    position: absolute;
    inset: -25%;
    opacity: 0.42;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    filter: blur(50px) saturate(1.4);
}

.band-a {
    background: conic-gradient(from 0deg at 30% 50%,
        transparent 0deg,
        rgba(57,255,20,0.55) 60deg,
        rgba(0,229,255,0.45) 120deg,
        transparent 180deg,
        transparent 360deg);
    animation: drift-a 30s linear infinite;
}

.band-b {
    background: conic-gradient(from 180deg at 70% 60%,
        transparent 0deg,
        rgba(255,0,110,0.32) 90deg,
        rgba(123,47,190,0.55) 150deg,
        transparent 220deg,
        transparent 360deg);
    animation: drift-b 45s linear infinite;
}

.band-c {
    background: conic-gradient(from 90deg at 50% 30%,
        transparent 0deg,
        rgba(0,229,255,0.32) 70deg,
        rgba(57,255,20,0.28) 140deg,
        transparent 210deg,
        transparent 360deg);
    animation: drift-c 60s linear infinite;
}

@keyframes drift-a {
    0%   { transform: translateX(-15%) translateY(0%) rotate(0deg); }
    50%  { transform: translateX(15%) translateY(8%) rotate(15deg); }
    100% { transform: translateX(-15%) translateY(0%) rotate(0deg); }
}
@keyframes drift-b {
    0%   { transform: translateX(15%) translateY(0%) rotate(0deg); }
    50%  { transform: translateX(-15%) translateY(-10%) rotate(-20deg); }
    100% { transform: translateX(15%) translateY(0%) rotate(0deg); }
}
@keyframes drift-c {
    0%   { transform: translateY(-12%) rotate(0deg); }
    50%  { transform: translateY(12%) rotate(25deg); }
    100% { transform: translateY(-12%) rotate(0deg); }
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.18) 1px,
        rgba(0,0,0,0.18) 2px
    );
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply;
}

.magnetic-field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

#fieldLinesGroup {
    transform-origin: 50% 50%;
    animation: field-rotate 120s linear infinite;
}

@keyframes field-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============== PARTICLES ============== */

.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    bottom: -10px;
    will-change: transform, opacity;
    box-shadow: 0 0 8px currentColor;
    opacity: 0;
}

@keyframes drift-up {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) translateX(var(--drift-x, 0px)); opacity: 0; }
}

/* ============== NAVIGATION ============== */

.prompt-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.7rem 1.25rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--forest);
    font-family: var(--ff-term);
    font-size: 13px;
    letter-spacing: 0.08em;
    overflow-x: auto;
    white-space: nowrap;
}

.prompt-prefix .user { color: var(--phosphor); }
.prompt-prefix .at,
.prompt-prefix .path { color: var(--dim); }
.prompt-prefix .host { color: var(--cyan); }

.prompt-args {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    flex: 1;
}

.cmd-arg {
    color: var(--soft-white);
    padding: 0.18rem 0.5rem;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: var(--ff-term);
}
.cmd-arg:hover {
    background: var(--phosphor);
    color: var(--void);
    border-color: var(--phosphor);
    text-shadow: none;
}

.nav-status {
    color: var(--dim);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 11px;
    letter-spacing: 0.18em;
}
.nav-status .dot.live {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--phosphor);
    box-shadow: 0 0 8px var(--phosphor);
    animation: blink-soft 2s ease-in-out infinite;
}

@keyframes blink-soft {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ============== BOOT SCREEN ============== */

.boot-screen {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}

.boot-frame {
    width: min(820px, 100%);
    background: rgba(10,10,10,0.78);
    border: 1px solid var(--forest);
    box-shadow: 0 0 60px rgba(57,255,20,0.07);
    position: relative;
    overflow: hidden;
}

.boot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid var(--forest);
    background: linear-gradient(180deg, rgba(27,67,50,0.5), rgba(10,10,10,0.4));
}
.boot-title {
    margin-left: 0.6rem;
    font-family: var(--ff-term);
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.14em;
}

.boot-stream {
    padding: 1.4rem 1.2rem;
    min-height: 280px;
    font-family: var(--ff-mono);
    font-size: 14px;
    line-height: 1.65;
    color: var(--soft-white);
}
.boot-stream .boot-line {
    display: block;
    white-space: pre-wrap;
    opacity: 0.95;
}
.boot-stream .b-tag { color: var(--phosphor); }
.boot-stream .b-warn { color: var(--magenta); }
.boot-stream .b-cyan { color: var(--cyan); }
.boot-stream .b-dim { color: var(--dim); }

.boot-progress {
    height: 2px;
    background: rgba(27,67,50,0.6);
    margin: 0 1.2rem 1.2rem;
}
.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--grad-aurora);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    transition: width 0.4s ease;
}

@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============== LAYERS / GLITCH DIVIDERS ============== */

.layer {
    position: relative;
    z-index: 5;
    padding: 4rem 1rem 3rem;
}

.glitch-divider {
    position: relative;
    text-align: center;
    font-family: var(--ff-display);
    font-size: clamp(48px, 9vw, 120px);
    color: var(--phosphor);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    line-height: 1;
    text-shadow: 0 0 14px rgba(57,255,20,0.45);
}
.glitch-divider.lg {
    font-size: clamp(64px, 12vw, 180px);
}
.glitch-divider span {
    display: block;
    grid-area: 1 / 1;
}
.glitch-divider {
    display: grid;
}
.glitch-divider span:nth-child(1) {
    color: var(--magenta);
    mix-blend-mode: screen;
    transform: translate(-3px, 1px);
    opacity: 0.85;
    animation: glitch-shift-a 3.4s steps(7) infinite;
}
.glitch-divider span:nth-child(2) {
    color: var(--cyan);
    mix-blend-mode: screen;
    transform: translate(3px, -1px);
    opacity: 0.85;
    animation: glitch-shift-b 4.2s steps(7) infinite;
}
.glitch-divider span:nth-child(3) {
    position: relative;
    z-index: 2;
}

@keyframes glitch-shift-a {
    0%, 92%, 100% { transform: translate(-3px, 1px); clip-path: inset(0 0 0 0); }
    93% { transform: translate(-6px, 2px); clip-path: inset(20% 0 60% 0); }
    96% { transform: translate(2px, -2px); clip-path: inset(60% 0 10% 0); }
}
@keyframes glitch-shift-b {
    0%, 90%, 100% { transform: translate(3px, -1px); clip-path: inset(0 0 0 0); }
    92% { transform: translate(7px, -3px); clip-path: inset(40% 0 30% 0); }
    97% { transform: translate(-2px, 1px); clip-path: inset(10% 0 70% 0); }
}

/* ============== MASONRY GRID ============== */

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 28px;
    grid-auto-flow: dense;
    gap: 4px;
    background: var(--gutter);
    padding: 4px;
    border: 1px solid var(--forest);
    max-width: 1480px;
    margin: 0 auto;
}

.pane {
    grid-column: span var(--span, 4);
    grid-row: span 14;
    background: rgba(10,10,10,0.85);
    border: 1px solid var(--forest);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translate(20px, 12px) scale(0.985);
    transition: transform 0.55s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.55s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    will-change: transform, opacity;
}

.pane.is-visible {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

.pane:hover {
    border-color: var(--phosphor);
    box-shadow: 0 0 24px rgba(57,255,20,0.14), inset 0 0 24px rgba(57,255,20,0.04);
}

.pane::after {
    /* Phosphor glow hover overlay */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at top, rgba(57,255,20,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.pane:hover::after { opacity: 1; }

/* Heights via row-span variations */
.pane              { grid-row: span 13; }
.pane--small       { grid-row: span 8; }
.pane--medium      { grid-row: span 13; }
.pane--tall        { grid-row: span 20; }
.pane--corrupted   { background: rgba(10,10,10,0.32); }

.pane-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-bottom: 1px solid var(--forest);
    background: linear-gradient(180deg, rgba(27,67,50,0.45), rgba(10,10,10,0.25));
    flex-shrink: 0;
}
.pane-title {
    margin-left: 0.4rem;
    font-family: var(--ff-term);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--cyan);
    text-transform: lowercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pane--corrupted .pane-title {
    color: var(--magenta);
    animation: corrupt-flicker 5s steps(8) infinite;
}

@keyframes corrupt-flicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.3; transform: translateX(-1px); }
    98% { opacity: 1; transform: translateX(2px); }
}

.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.d-r { background: var(--dot-r); }
.d-y { background: var(--dot-y); }
.d-g { background: var(--dot-g); }

.pane-body {
    padding: 1rem 1.05rem 0.95rem;
    flex: 1;
    overflow: hidden;
    position: relative;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.15) 1px,
        rgba(0,0,0,0.15) 2px
    );
    z-index: 2;
}
.pane-body--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
}
.pane-body--mono pre.ascii-art {
    font-family: var(--ff-term);
    font-size: 13px;
    line-height: 1.05;
    color: var(--phosphor);
    text-align: center;
    letter-spacing: 0;
}

.pane-body--tree {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ltree {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.pane-cursor {
    align-self: flex-end;
    color: var(--phosphor);
    font-family: var(--ff-term);
    font-size: 14px;
    animation: blink-cursor 1.05s steps(1) infinite;
    padding-right: 0.4rem;
}

/* ============== TYPOGRAPHY HELPERS ============== */

.display-h {
    font-family: var(--ff-display);
    font-size: clamp(48px, 6vw, 84px);
    color: var(--phosphor);
    letter-spacing: 0.08em;
    line-height: 0.95;
    text-shadow: 0 0 8px rgba(57,255,20,0.4);
    margin-bottom: 0.7rem;
    position: relative;
}
.display-h.sm { font-size: clamp(36px, 5vw, 64px); }

.display-h[data-glitch]::before,
.display-h[data-glitch]::after {
    content: attr(data-glitch);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    mix-blend-mode: screen;
    pointer-events: none;
}
.display-h[data-glitch]::before {
    color: var(--magenta);
    transform: translate(-2px, 1px);
    opacity: 0.7;
    animation: glitch-shift-a 4s steps(6) infinite;
}
.display-h[data-glitch]::after {
    color: var(--cyan);
    transform: translate(2px, -1px);
    opacity: 0.7;
    animation: glitch-shift-b 5.1s steps(6) infinite;
}

.body-text {
    color: var(--soft-white);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}
.dim-text {
    color: var(--dim);
    font-size: 12px;
    letter-spacing: 0.02em;
}
.hl-green { color: var(--phosphor); }
.hl-cyan { color: var(--cyan); }
.hl-mag { color: var(--magenta); }
.hl-violet { color: var(--violet); }

.prompt-line {
    color: var(--phosphor);
    font-family: var(--ff-term);
    font-size: 13px;
    margin-top: 0.6rem;
}
.prompt-line .typed { color: var(--soft-white); }

.glitch-text {
    font-family: var(--ff-display);
    font-size: clamp(28px, 4vw, 48px);
    color: var(--phosphor);
    letter-spacing: 0.06em;
    line-height: 1;
    position: relative;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 8px rgba(57,255,20,0.4);
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    mix-blend-mode: screen;
    pointer-events: none;
}
.glitch-text::before {
    color: var(--magenta);
    transform: translate(-3px, 1px);
    opacity: 0.85;
    clip-path: inset(20% 0 50% 0);
    animation: glitch-shift-a 2.6s steps(8) infinite;
}
.glitch-text::after {
    color: var(--cyan);
    transform: translate(3px, -1px);
    opacity: 0.85;
    clip-path: inset(60% 0 10% 0);
    animation: glitch-shift-b 3.4s steps(8) infinite;
}

.blink-cursor {
    display: inline-block;
    color: var(--phosphor);
    animation: blink-cursor 1.05s steps(1) infinite;
}
.blink-cursor.solid {
    background: var(--phosphor);
    color: transparent;
    width: 8px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -2px;
}

@keyframes blink-cursor {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============== METRIC LIST ============== */

.metric-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.metric-list li {
    display: grid;
    grid-template-columns: 90px 1fr 70px;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--ff-term);
    font-size: 12px;
}
.m-label { color: var(--dim); letter-spacing: 0.08em; }
.m-bar {
    height: 6px;
    background: rgba(27,67,50,0.5);
    border: 1px solid var(--forest);
    overflow: hidden;
    position: relative;
}
.m-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-aurora);
    background-size: 200% 100%;
    animation: shimmer 6s linear infinite;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pane.is-visible .m-fill { width: var(--pct, 0%); }
.m-value { color: var(--phosphor); text-align: right; }

/* ============== KV / COMMIT / CHANNEL LISTS ============== */

.kv-list, .channel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: var(--ff-term);
    font-size: 12.5px;
    margin-top: 0.6rem;
}
.kv-list li, .channel-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-bottom: 1px dashed rgba(27,67,50,0.6);
    padding-bottom: 0.3rem;
}
.kv-list .k, .channel-list .k {
    color: var(--dim);
    letter-spacing: 0.08em;
}
.kv-list .v, .channel-list .v {
    color: var(--soft-white);
}
.channel-list .v { color: var(--cyan); }

.commit-list {
    list-style: none;
    font-family: var(--ff-term);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.commit-list li {
    display: grid;
    grid-template-columns: 78px 1fr 36px;
    gap: 0.5rem;
    padding: 0.2rem 0;
    border-bottom: 1px dashed rgba(27,67,50,0.5);
}
.commit-list .hash { color: var(--violet); }
.commit-list .msg { color: var(--soft-white); }
.commit-list .dim-text { text-align: right; }

/* ============== LOG STREAM ============== */

.pane-body--log {
    padding: 0.8rem 0.9rem;
}
.log-stream {
    list-style: none;
    font-family: var(--ff-term);
    font-size: 12.5px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    max-height: 100%;
    overflow: hidden;
}
.log-stream li {
    display: grid;
    grid-template-columns: 70px 38px 1fr;
    gap: 0.5rem;
    align-items: baseline;
}
.log-stream .ts { color: var(--dim); font-size: 11.5px; }
.log-stream .lvl {
    text-align: center;
    font-weight: 500;
    border: 1px solid currentColor;
    padding: 0 4px;
    font-size: 10.5px;
}
.log-stream .lvl.ok { color: var(--phosphor); }
.log-stream .lvl.warn { color: var(--dot-y); }
.log-stream .lvl.err { color: var(--magenta); }
.log-stream .lvl.info { color: var(--cyan); }
.log-stream .msg { color: var(--soft-white); }

.log-stream li.new {
    animation: log-in 0.5s ease;
}
@keyframes log-in {
    0% { transform: translateX(-12px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ============== BIG NUMBERS / DIAL / SPARKLINE ============== */

.big-num {
    font-family: var(--ff-display);
    color: var(--phosphor);
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(57,255,20,0.45);
    line-height: 1;
}
.big-num.sm { font-size: clamp(28px, 3.4vw, 42px); }
.big-num .unit {
    font-size: 0.45em;
    color: var(--dim);
    margin-left: 4px;
    letter-spacing: 0.1em;
}

.dial {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--phosphor) 0% var(--load,37%), rgba(27,67,50,0.6) var(--load,37%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.4rem;
}
.dial::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: var(--void);
    border-radius: 50%;
}
.dial-num {
    position: relative;
    z-index: 2;
    font-family: var(--ff-display);
    color: var(--phosphor);
    font-size: 26px;
    letter-spacing: 0.08em;
}

.sparkline {
    width: 100%;
    height: 60px;
}
.spark-line {
    filter: drop-shadow(0 0 4px rgba(57,255,20,0.6));
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: spark-draw 3s ease forwards 0.4s;
}
@keyframes spark-draw {
    to { stroke-dashoffset: 0; }
}

/* ============== CORRUPTION BLOCKS ============== */

.corruption-blocks {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    margin-bottom: 0.9rem;
}
.corruption-blocks span {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--phosphor);
    animation: corrupt-pulse 3.2s ease-in-out infinite;
}
.corruption-blocks span:nth-child(3n)   { background: var(--cyan); animation-delay: 0.2s; }
.corruption-blocks span:nth-child(5n)   { background: var(--magenta); animation-delay: 0.5s; }
.corruption-blocks span:nth-child(7n)   { background: var(--violet); animation-delay: 0.8s; }
.corruption-blocks span:nth-child(11n)  { background: var(--dot-y); animation-delay: 1.1s; }
.corruption-blocks span:nth-child(2n+1) { animation-delay: 0.3s; }

@keyframes corrupt-pulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.85; }
}

.aurora-mini {
    height: 70px;
    margin: 0.7rem 0;
    background: var(--grad-aurora);
    background-size: 300% 300%;
    animation: aurora-shift 12s ease infinite;
    filter: blur(2px);
    border: 1px solid var(--forest);
}
@keyframes aurora-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============== SHELL PANE ============== */

.pane-body--shell {
    font-family: var(--ff-term);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.shell-history p {
    color: var(--soft-white);
    margin-bottom: 0.18rem;
    line-height: 1.5;
}
.prompt-mini {
    color: var(--phosphor);
    margin-right: 0.4rem;
}
.shell-history .cmd { color: var(--cyan); }
.shell-history .response { color: var(--soft-white); padding-left: 0.4rem; }
.live-prompt {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(27,67,50,0.6);
}
.live-prompt .prompt-mini { color: var(--phosphor); }
#liveCmd { color: var(--soft-white); }

/* ============== NODE MAP / FOOTER ============== */

.node-map {
    width: 100%;
    height: auto;
    margin-bottom: 0.6rem;
}
.node-map circle {
    filter: drop-shadow(0 0 4px currentColor);
    animation: node-pulse 2.4s ease-in-out infinite;
}
.node-map circle:nth-child(2) { animation-delay: 0.4s; }
.node-map circle:nth-child(3) { animation-delay: 0.8s; }
.node-map circle:nth-child(4) { animation-delay: 1.2s; }
.node-map circle:nth-child(5) { animation-delay: 1.6s; }

@keyframes node-pulse {
    0%, 100% { opacity: 1; r: 4; }
    50%      { opacity: 0.55; }
}

.footer-prompt {
    max-width: 1480px;
    margin: 1.5rem auto 0;
    padding: 1rem 1rem;
    border-top: 1px solid var(--forest);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    font-family: var(--ff-term);
    font-size: 13px;
}
.footer-msg {
    color: var(--dim);
    flex: 1;
}

.signals-layer .footer-prompt {
    margin-top: 2rem;
}

/* ============== LSYSTEM TREE ============== */

#lsystem line {
    stroke: var(--phosphor);
    stroke-linecap: round;
    filter: drop-shadow(0 0 2px rgba(57,255,20,0.6));
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: tree-grow 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes tree-grow {
    to { stroke-dashoffset: 0; }
}

/* ============== RESPONSIVE ============== */

@media (max-width: 980px) {
    .masonry-grid { grid-template-columns: repeat(8, 1fr); }
    .pane { grid-column: span 4; }
    .pane--tall { grid-column: span 8; }
}

@media (max-width: 640px) {
    .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: 24px; }
    .pane, .pane--tall, .pane--medium, .pane--small {
        grid-column: span 1;
        grid-row: span 12;
    }
    .pane--tall { grid-row: span 18; }
    .prompt-nav { font-size: 11px; gap: 0.7rem; padding: 0.55rem 0.8rem; }
    .nav-status { display: none; }
    .glitch-divider { font-size: clamp(36px, 12vw, 72px); }
    .glitch-divider.lg { font-size: clamp(48px, 16vw, 96px); }
    .layer { padding: 3rem 0.4rem 2rem; }
}

/* ============== REDUCED MOTION ============== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .aurora-band { opacity: 0.25; }
    .pane { opacity: 1; transform: none; }
}
