/* ============================================================
   logic.quest // cyberpunk data-viz terminal
   palette: #00ff41 #ffb700 #b0b0b8 #050508 #1a1a22 #0a0a12 #ff0040
   fonts: Major Mono Display, Fira Code, Share Tech Mono, Inter (fallback)
   ============================================================ */

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

:root {
    --c-bg:     #050508;
    --c-true:   #00ff41;
    --c-false:  #ff0040;
    --c-unknown:#ffb700;
    --c-text:   #b0b0b8;
    --c-dim:    #1a1a22;
    --c-grid:   #0a0a12;

    --f-display: 'Major Mono Display', 'Inter', monospace;
    --f-body:    'Fira Code', 'Inter', monospace;
    --f-label:   'Share Tech Mono', 'Inter', monospace;

    --pad-section: clamp(2rem, 6vw, 5rem);
}

html, body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    position: relative;
    /* faint subterranean glow */
    background:
        radial-gradient(ellipse at 20% 10%, rgba(0,255,65,0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 90%, rgba(255,183,0,0.03) 0%, transparent 50%),
        var(--c-bg);
}

/* GLOBAL SCANLINE */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 1px,
        rgba(0, 255, 65, 0.015) 1px,
        rgba(0, 255, 65, 0.015) 2px
    );
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* faint flicker */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 255, 65, 0.012);
    pointer-events: none;
    z-index: 9998;
    animation: flicker 6s steps(4) infinite;
}

@keyframes flicker {
    0%, 92%, 100% { opacity: 1; }
    93%           { opacity: 0.7; }
    95%           { opacity: 1; }
    96%           { opacity: 0.85; }
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   STATUS BAR
   ============================================================ */

.status-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 36px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(5, 5, 8, 0.85);
    border-bottom: 1px solid var(--c-dim);
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-text);
}

.status-text { color: var(--c-text); }

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot--true {
    background: var(--c-true);
    box-shadow: 0 0 6px var(--c-true);
    animation: pulseDot 1.6s ease-in-out infinite;
}

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

.status-nav {
    display: flex;
    gap: 1.2rem;
    color: var(--c-text);
}
.status-nav a {
    transition: color 0.2s ease;
    opacity: 0.55;
}
.status-nav a:hover,
.status-nav a.is-active {
    color: var(--c-true);
    opacity: 1;
    text-shadow: 0 0 6px rgba(0,255,65,0.45);
}

@media (max-width: 720px) {
    .status-nav { display: none; }
}

/* ============================================================
   DEPTH INDICATOR
   ============================================================ */

.depth-indicator {
    position: fixed;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--c-true);
    opacity: 0.8;
}

.depth-label,
.depth-status {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
}

.depth-number {
    font-family: var(--f-display);
    font-size: 1.6rem;
    color: var(--c-true);
    text-shadow: 0 0 8px rgba(0,255,65,0.6);
    letter-spacing: 0.05em;
}

.depth-bar {
    width: 2px;
    height: 28vh;
    background: var(--c-dim);
    position: relative;
    overflow: hidden;
}
.depth-bar-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--c-true), rgba(0,255,65,0.2));
    box-shadow: 0 0 6px rgba(0,255,65,0.6);
    transition: height 0.4s ease;
}

.depth-status {
    color: var(--c-text);
    opacity: 0.7;
}

@media (max-width: 720px) {
    .depth-indicator { display: none; }
}

/* ============================================================
   HERO :: AND-GATE
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 5rem 4rem 4rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,65,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--c-text);
    opacity: 0.7;
    z-index: 2;
}
.hero-meta--top-left {
    position: absolute;
    top: 3rem;
    left: 4rem;
}
.hero-meta--top-right {
    position: absolute;
    top: 3rem;
    right: 4rem;
    align-items: flex-end;
}
.hero-meta--bottom {
    position: absolute;
    bottom: 1.5rem;
    left: 4rem;
    right: 4rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.meta-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--c-dim);
    background: rgba(0,255,65,0.02);
    color: var(--c-text);
}

.hero-stage {
    align-self: center;
    justify-self: center;
    text-align: center;
    width: min(960px, 92%);
    z-index: 2;
    position: relative;
}

.hero-gate {
    width: 100%;
    height: auto;
    max-height: 50vh;
    filter: drop-shadow(0 0 6px rgba(0,255,65,0.3));
}

.hero-domain {
    margin-top: 1rem;
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 5vw, 3.8rem);
    color: var(--c-true);
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(0,255,65,0.5), 0 0 24px rgba(0,255,65,0.25);
    text-transform: lowercase;
    display: inline-flex;
    align-items: baseline;
    gap: 0.1em;
}

.hero-domain-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
}

.hero-cursor {
    display: inline-block;
    color: var(--c-true);
    animation: blink 1.05s steps(2) infinite;
    margin-left: 0.05em;
}

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

.hero-tagline {
    margin-top: 1.25rem;
    font-family: var(--f-label);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--c-text);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.tag-bracket { color: var(--c-true); margin: 0 0.4em; }

.hero-prompt {
    font-family: var(--f-body);
    font-size: 0.85rem;
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.prompt-prefix { color: var(--c-true); }
.prompt-cursor {
    display: inline-block;
    color: var(--c-true);
    animation: blink 1s steps(2) infinite;
    width: 0.6em;
    height: 1em;
    line-height: 1;
}

.hero-scroll {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-true);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.7;
}
.scroll-arrow {
    animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (max-width: 720px) {
    .hero {
        padding: 4rem 1.25rem 3rem;
    }
    .hero-meta--top-left,
    .hero-meta--top-right {
        position: relative;
        top: auto; left: auto; right: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
        align-items: flex-start;
    }
    .hero-meta--bottom {
        position: relative;
        bottom: auto; left: auto; right: auto;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* ============================================================
   PROTOCOL / MANIFEST
   ============================================================ */

.protocol {
    padding: var(--pad-section) 4rem;
    display: flex;
    justify-content: center;
}

.panel {
    position: relative;
    background: var(--c-bg);
    border: 1px solid var(--c-dim);
    padding: 1.4rem 1.6rem 1.6rem;
    color: var(--c-text);
    overflow: hidden;
}

.panel::before {
    /* corner brackets */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--c-true), var(--c-true)) top left/16px 1px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) top left/1px 16px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) top right/16px 1px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) top right/1px 16px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) bottom left/16px 1px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) bottom left/1px 16px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) bottom right/16px 1px no-repeat,
        linear-gradient(var(--c-true), var(--c-true)) bottom right/1px 16px no-repeat;
    opacity: 0.5;
}

.panel--wide { width: min(960px, 100%); }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-true);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--c-dim);
}
.panel-tag { color: var(--c-true); }
.panel-id  { color: var(--c-text); opacity: 0.6; }

.panel-tag--false { color: var(--c-false); }

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.panel-body--center {
    align-items: center;
    text-align: center;
}

.panel--accent { border-color: rgba(0,255,65,0.35); }
.panel--alert  { border-color: rgba(255,0,64,0.4); background: rgba(255,0,64,0.03); }

.ascii-frame, .ascii-mini {
    font-family: var(--f-body);
    font-size: 0.78rem;
    color: var(--c-true);
    line-height: 1.45;
    white-space: pre;
    overflow-x: auto;
    margin: 0.25rem 0;
}
.ascii-frame .ok   { color: var(--c-true); }
.ascii-frame .warn { color: var(--c-unknown); }
.ascii-frame .bad  { color: var(--c-false); }

.protocol-text {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--c-text);
}
.protocol-text--dim { opacity: 0.7; }

.kw-true    { color: var(--c-true);    }
.kw-false   { color: var(--c-false);   }
.kw-unknown { color: var(--c-unknown); }

/* ============================================================
   LOGIC SECTION
   ============================================================ */

.logic-section {
    padding: var(--pad-section) 4rem;
    border-top: 1px dashed var(--c-dim);
    position: relative;
}

.logic-section::before {
    content: "";
    position: absolute;
    top: 0; left: 4rem;
    width: 80px;
    height: 1px;
    background: var(--c-true);
    box-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.section-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.gate-icon {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(0,255,65,0.4));
}

.section-titles { display: flex; flex-direction: column; gap: 0.25rem; }
.section-title {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    color: var(--c-true);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0,255,65,0.4);
}
.section-title--false {
    color: var(--c-false);
    text-shadow: 0 0 8px rgba(255,0,64,0.4);
}
.section-subtitle {
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text);
    opacity: 0.7;
}
.section-depth {
    font-family: var(--f-display);
    font-size: 1.2rem;
    color: var(--c-true);
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--c-dim);
    background: rgba(0,255,65,0.03);
}
.section-depth--false { color: var(--c-false); border-color: rgba(255,0,64,0.4); }

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.panel--span2 { grid-column: span 2; }

@media (max-width: 1100px) {
    .panel-grid { grid-template-columns: repeat(2, 1fr); }
    .panel--span2 { grid-column: span 2; }
}
@media (max-width: 720px) {
    .logic-section { padding: var(--pad-section) 1.25rem; }
    .panel-grid { grid-template-columns: 1fr; }
    .panel--span2 { grid-column: span 1; }
    .section-header { grid-template-columns: auto 1fr; }
    .section-depth { display: none; }
}

/* ============================================================
   PROPOSITIONS / BADGES / EXPRESSIONS
   ============================================================ */

.prop-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.prop {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-family: var(--f-body);
    font-size: 0.92rem;
    color: var(--c-text);
}
.prop-text { flex: 1; }
.prop--conclusion {
    padding-top: 0.55rem;
    border-top: 1px dashed var(--c-dim);
    color: var(--c-true);
    font-weight: 500;
}

.badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.45rem;
    display: inline-block;
}
.badge--true {
    background: var(--c-true);
    box-shadow: 0 0 6px rgba(0,255,65,0.7);
}
.badge--false {
    background: var(--c-false);
    box-shadow: 0 0 6px rgba(255,0,64,0.7);
}
.badge--unknown {
    background: transparent;
    border: 1.5px solid var(--c-unknown);
    box-shadow: 0 0 6px rgba(255,183,0,0.4);
}

.expr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: var(--c-grid);
    border: 1px dashed var(--c-dim);
    font-family: var(--f-body);
    font-size: 0.88rem;
}
.expr        { color: var(--c-text); }
.expr--true  { color: var(--c-true);    }
.expr--false { color: var(--c-false);   }
.expr--unknown { color: var(--c-unknown); }
.expr-equals { color: var(--c-true); }

/* ============================================================
   TRUTH TABLE
   ============================================================ */

.truth-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-body);
    font-size: 0.88rem;
}

.truth-table th,
.truth-table td {
    padding: 0.45rem 1rem;
    border: 1px solid var(--c-dim);
    text-align: center;
}
.truth-table thead th {
    background: var(--c-grid);
    color: var(--c-true);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--f-label);
    font-size: 0.78rem;
}
.truth-table tbody tr:hover td {
    background: rgba(0,255,65,0.03);
}
.cell-true  { color: var(--c-true);  font-weight: 500; }
.cell-false { color: var(--c-false); font-weight: 500; }

.truth-table--wide th,
.truth-table--wide td { padding: 0.45rem 0.7rem; }

/* ============================================================
   VENN
   ============================================================ */

.venn {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(0,255,65,0.25));
}
.venn-caption {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text);
    opacity: 0.8;
}

/* ============================================================
   LEGEND
   ============================================================ */

.legend {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-family: var(--f-label);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text);
}
.legend li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================================
   PARADOX
   ============================================================ */

.paradox-quote {
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    color: var(--c-false);
    text-align: center;
    padding: 1.25rem 1rem;
    border-top: 1px dashed rgba(255,0,64,0.35);
    border-bottom: 1px dashed rgba(255,0,64,0.35);
    text-shadow: 0 0 8px rgba(255,0,64,0.4);
    letter-spacing: 0.04em;
    text-transform: lowercase;
}
.quote-mark { color: var(--c-text); opacity: 0.5; margin: 0 0.2em; }

/* ============================================================
   DEDUCTION
   ============================================================ */

.deduction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.deduce-btn {
    background: var(--c-grid);
    border: 1px solid var(--c-dim);
    color: var(--c-text);
    padding: 1rem 0.75rem;
    font-family: var(--f-body);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    position: relative;
}
.deduce-btn:hover {
    border-color: var(--c-true);
    color: var(--c-true);
    background: rgba(0,255,65,0.04);
    box-shadow: 0 0 12px rgba(0,255,65,0.15) inset;
}

.deduce-id {
    font-family: var(--f-display);
    font-size: 1.6rem;
    color: var(--c-true);
    letter-spacing: 0.05em;
}
.deduce-claim {
    font-family: var(--f-label);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--c-text);
    opacity: 0.8;
}
.deduce-verdict {
    font-family: var(--f-label);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    color: var(--c-text);
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.deduce-btn[data-verdict-state="guilty"]   .deduce-verdict { color: var(--c-true); text-shadow: 0 0 6px rgba(0,255,65,0.5); }
.deduce-btn[data-verdict-state="innocent"] .deduce-verdict { color: var(--c-false); }
.deduce-btn[data-verdict-state="guilty"]   { border-color: var(--c-true); }
.deduce-btn[data-verdict-state="innocent"] { border-color: rgba(255,0,64,0.4); }

.deduction-result {
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: var(--c-grid);
    border: 1px dashed var(--c-dim);
    font-family: var(--f-body);
    font-size: 0.85rem;
    color: var(--c-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (max-width: 540px) {
    .deduction-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   METRICS
   ============================================================ */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.metric {
    background: var(--c-bg);
    border: 1px solid var(--c-dim);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}
.metric-label {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text);
    opacity: 0.75;
}
.metric-value {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--c-true);
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(0,255,65,0.4);
}
.metric-bar {
    width: 100%;
    height: 4px;
    background: var(--c-grid);
    position: relative;
    overflow: hidden;
}
.metric-bar-fill {
    display: block;
    width: var(--w, 50%);
    height: 100%;
    background: linear-gradient(90deg, var(--c-true), rgba(0,255,65,0.2));
    box-shadow: 0 0 6px rgba(0,255,65,0.5);
    animation: barShimmer 3s ease-in-out infinite;
}

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

@media (max-width: 1100px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .metrics-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ENTER SECTION
   ============================================================ */

.enter-section {
    padding: var(--pad-section) 4rem;
    border-top: 1px dashed var(--c-dim);
    display: flex;
    justify-content: center;
}

.enter-frame {
    width: min(820px, 100%);
    background: var(--c-bg);
    border: 1px solid var(--c-true);
    padding: 2rem;
    position: relative;
    box-shadow:
        0 0 24px rgba(0,255,65,0.08),
        inset 0 0 80px rgba(0,255,65,0.02);
}

.enter-frame::before,
.enter-frame::after {
    content: "";
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--c-true);
}
.enter-frame::before { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.enter-frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.ascii-frame--enter .warn { color: var(--c-unknown); }

.enter-title {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: var(--c-true);
    letter-spacing: 0.08em;
    text-align: center;
    margin: 1rem 0 0.75rem;
    text-shadow: 0 0 16px rgba(0,255,65,0.5), 0 0 32px rgba(0,255,65,0.2);
}

.enter-sub {
    font-family: var(--f-label);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.enter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta {
    background: transparent;
    border: 1px solid var(--c-true);
    color: var(--c-true);
    padding: 0.85rem 1.4rem;
    font-family: var(--f-body);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-true);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}
.cta:hover {
    background: rgba(0,255,65,0.1);
    box-shadow: 0 0 16px rgba(0,255,65,0.35);
}
.cta--primary {
    background: rgba(0,255,65,0.06);
}
.cta--ghost {
    border-color: var(--c-dim);
    color: var(--c-text);
}
.cta--ghost:hover {
    border-color: var(--c-true);
    color: var(--c-true);
    background: rgba(0,255,65,0.04);
}

.cta-prefix { color: var(--c-true); }
.cta-cursor {
    display: inline-block;
    animation: blink 1s steps(2) infinite;
}

.enter-log {
    background: var(--c-grid);
    border: 1px dashed var(--c-dim);
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: var(--f-body);
    font-size: 0.82rem;
    color: var(--c-text);
}

.log-line {
    display: grid;
    grid-template-columns: 90px 50px 1fr;
    gap: 0.6rem;
    align-items: baseline;
    opacity: 0;
    transform: translateY(4px);
    animation: logIn 0.6s ease forwards;
}
.log-line:nth-child(1) { animation-delay: 0.1s; }
.log-line:nth-child(2) { animation-delay: 0.4s; }
.log-line:nth-child(3) { animation-delay: 0.7s; }
.log-line:nth-child(4) { animation-delay: 1.0s; }
.log-line:nth-child(5) { animation-delay: 1.3s; }

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

.log-time { color: var(--c-text); opacity: 0.55; }
.log-tag {
    font-family: var(--f-label);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    padding: 0 0.3rem;
    border: 1px solid var(--c-dim);
    text-align: center;
}
.log-tag--ok   { color: var(--c-true);    border-color: rgba(0,255,65,0.4); }
.log-tag--warn { color: var(--c-unknown); border-color: rgba(255,183,0,0.4); }
.log-tag--err  { color: var(--c-false);   border-color: rgba(255,0,64,0.4); }

@media (max-width: 720px) {
    .enter-section { padding: var(--pad-section) 1.25rem; }
    .enter-frame { padding: 1.25rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    padding: 2rem 4rem 3rem;
    border-top: 1px dashed var(--c-dim);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--c-text);
    opacity: 0.85;
}
.footer-left {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.footer-right {
    display: flex; justify-content: flex-end;
}
.footer-ascii {
    font-family: var(--f-body);
    color: var(--c-true);
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: pre;
}

@media (max-width: 720px) {
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.25rem;
    }
    .footer-right { justify-content: center; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
    background: var(--c-dim);
    border: 2px solid var(--c-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-true); }

::selection { background: rgba(0,255,65,0.3); color: var(--c-true); }
