/* Import Google Fonts for Retro CRT Terminals */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap');

/* Color Variables */
:root {
    --bg-color: #070c08;
    --bg-darker: #040704;
    --primary-color: #33ff33;
    --primary-dim: #1a6f1a;
    --primary-glow: rgba(51, 255, 51, 0.25);
    --primary-light: #80ff80;
    --warn-color: #ffaa00;
    --danger-color: #ff3333;
    --danger-glow: rgba(255, 51, 51, 0.25);
    --text-color: #33ff33;
    --scanline-color: rgba(51, 255, 51, 0.05);
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. CRT Monitor Frame and Outer Container */
.crt-monitor {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #0d120d;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Curved glass and screen distortion */
.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border: 20px solid #1a1e1a;
    border-radius: 10px;
    padding: 24px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9), 0 0 40px rgba(0,255,0,0.1);
    overflow: hidden;
    animation: crt-flicker 0.25s infinite;
}

/* Phosphor glow, scanlines, and vignette layers */
.crt-screen::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
}

.crt-screen::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 120%);
    z-index: 9;
    pointer-events: none;
}

/* Animations */
@keyframes crt-flicker {
    0% { opacity: 0.99; }
    50% { opacity: 1; }
    100% { opacity: 0.99; }
}

@keyframes power-on {
    0% { transform: scaleY(0.01) scaleX(0); filter: brightness(3); }
    50% { transform: scaleY(0.01) scaleX(1); filter: brightness(2); }
    100% { transform: scaleY(1) scaleX(1); filter: brightness(1); }
}

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

@keyframes alert-pulse {
    0% { background-color: rgba(255, 51, 51, 0.05); }
    50% { background-color: rgba(255, 51, 51, 0.25); }
    100% { background-color: rgba(255, 51, 51, 0.05); }
}

.screen-glitch-active {
    animation: alert-pulse 0.4s infinite !important;
}

.power-on-anim {
    animation: power-on 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border: 1px solid var(--primary-dim);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border: 1px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Helper Text Styles */
.highlight {
    color: var(--primary-light);
    font-weight: bold;
}
.warning-text {
    color: var(--warn-color) !important;
}
.danger-text {
    color: var(--danger-color) !important;
}
.success-text {
    color: var(--primary-color) !important;
}

/* Audio & System Controls Bar */
.system-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-dim);
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    z-index: 12;
    position: relative;
}

.control-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.2);
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.time-readout {
    color: var(--primary-dim);
}

/* 2. Boot Screen Styling */
.boot-container {
    position: absolute;
    top: 50px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
    background-color: var(--bg-color);
}

.boot-text {
    flex-grow: 1;
    overflow-y: auto;
    font-family: 'VT323', monospace;
    font-size: 22px;
    white-space: pre-wrap;
    line-height: 1.2;
}

.boot-action-area {
    padding: 20px 0;
    text-align: center;
}

.terminal-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 18px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: all 0.3s;
}

.terminal-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--primary-color);
}

.active-pulse {
    animation: btn-pulse 1.5s infinite;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 10px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-color); }
    100% { box-shadow: 0 0 10px var(--primary-glow); }
}

/* 3. Main Terminal Layout */
.terminal-layout {
    display: flex;
    flex-direction: column;
    height: calc(100% - 35px);
    z-index: 5;
    position: relative;
}

/* Terminal Header */
.terminal-header {
    display: flex;
    border: 2px solid var(--primary-dim);
    background-color: var(--bg-darker);
    padding: 10px;
    margin-bottom: 12px;
    gap: 16px;
    align-items: center;
}

.ascii-logo {
    font-family: 'VT323', monospace;
    font-size: 11px;
    line-height: 1.0;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

.header-info {
    flex-grow: 1;
}

.main-title {
    font-family: 'VT323', monospace;
    font-size: 28px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-size: 13px;
    color: var(--primary-dim);
    gap: 8px;
}

.status-indicator {
    position: relative;
    padding-left: 14px;
}
.status-indicator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-indicator.online::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 6px var(--primary-color);
}
.status-indicator.glitched::before {
    background-color: var(--danger-color);
    box-shadow: 0 0 6px var(--danger-color);
}

/* Alert Ticker */
.alert-ticker-container {
    display: flex;
    border: 2px solid var(--danger-color);
    background-color: rgba(255, 51, 51, 0.05);
    margin-bottom: 12px;
    padding: 6px;
    font-size: 13px;
    align-items: center;
    gap: 8px;
}

.ticker-label {
    color: var(--danger-color);
    font-weight: bold;
    animation: text-blink 1s infinite;
}

.ticker-text-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-move 30s linear infinite;
    color: var(--danger-color);
}

@keyframes ticker-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Workspace Navigation and Panels */
.terminal-workspace {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    flex-grow: 1;
    min-height: 0; /* Important for scroll inheritance */
    margin-bottom: 12px;
}

/* Navigation Buttons */
.terminal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    background-color: var(--bg-darker);
    border: 2px solid var(--primary-dim);
    color: var(--primary-dim);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-btn:hover, .nav-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
    background-color: rgba(51, 255, 51, 0.03);
}

.nav-btn.active {
    font-weight: bold;
    background-color: rgba(51, 255, 51, 0.08);
}

/* Main Display Panels */
.terminal-main-content {
    border: 2px solid var(--primary-dim);
    background-color: var(--bg-darker);
    padding: 16px;
    position: relative;
    overflow-y: auto;
    min-height: 0;
}

.view-panel {
    display: none;
    height: 100%;
    flex-direction: column;
}

.view-panel.active {
    display: flex;
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: 26px;
    color: var(--primary-light);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--primary-dim);
    padding-bottom: 4px;
    text-shadow: 0 0 5px var(--primary-glow);
}

.section-desc {
    font-size: 14px;
    color: var(--primary-dim);
    margin-bottom: 16px;
}

/* 4. VIEW: FEED (Logs & Submit) */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.form-container {
    border-right: 1px dashed var(--primary-dim);
    padding-right: 16px;
    overflow-y: auto;
}

.logs-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.logs-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--primary-dim);
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--primary-dim);
    color: var(--primary-color);
    padding: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-glow);
}

.input-group textarea {
    height: 90px;
    resize: none;
}

.terminal-btn-action {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
    padding: 10px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 0 5px var(--primary-glow);
}

.terminal-btn-action:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.terminal-btn-small {
    background: none;
    border: 1px solid var(--primary-dim);
    color: var(--primary-dim);
    padding: 2px 8px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
}

.terminal-btn-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.transmission-status {
    margin-top: 10px;
    font-size: 12px;
    color: var(--warn-color);
    white-space: pre-line;
    font-family: 'VT323', monospace;
    font-size: 16px;
    line-height: 1.3;
}

/* Grievance Feed List */
.grievance-feed-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.grievance-card {
    background-color: var(--bg-color);
    border: 1px solid var(--primary-dim);
    padding: 10px;
    font-size: 13px;
    position: relative;
    transition: border-color 0.2s;
}

.grievance-card:hover {
    border-color: var(--primary-color);
}

.grievance-card-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--primary-dim);
    padding-bottom: 4px;
    margin-bottom: 6px;
    color: var(--primary-dim);
    font-size: 12px;
}

.grievance-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

.meta-badge {
    padding: 1px 4px;
    border: 1px solid var(--primary-dim);
}

.meta-badge.danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.meta-badge.warn {
    border-color: var(--warn-color);
    color: var(--warn-color);
}

.grievance-text {
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 5. VIEW: PATIENCE MATRIX */
.matrix-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.matrix-card {
    background-color: var(--bg-color);
    border: 1px solid var(--primary-dim);
    padding: 12px;
}

.matrix-card h3 {
    font-size: 14px;
    border-bottom: 1px solid var(--primary-dim);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.chart-card canvas {
    display: block;
    width: 100%;
}

.metrics-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.1);
}

.metric-row span {
    font-size: 14px;
}

.metric-val {
    font-weight: bold;
}

.matrix-monitors h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.table-container {
    overflow-x: auto;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.status-table th, .status-table td {
    border: 1px solid var(--primary-dim);
    padding: 8px;
    text-align: left;
}

.status-table th {
    background-color: var(--bg-darker);
    color: var(--primary-light);
}

.status-table tr:hover {
    background-color: rgba(51, 255, 51, 0.03);
}

/* 6. VIEW: THE RABBIT HOLE (Grid Mini-game) */
.loop-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.loop-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.loop-status-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.stat-box {
    background-color: var(--bg-color);
    border: 1px solid var(--primary-dim);
    padding: 10px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: var(--primary-dim);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
}

.loop-controls-desc {
    background-color: rgba(51, 255, 51, 0.02);
    border: 1px dashed var(--primary-dim);
    padding: 12px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.loop-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    border: 1px solid var(--primary-dim);
}

/* The grid itself */
.containment-grid-map {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    grid-template-rows: repeat(7, 40px);
    gap: 4px;
}

.grid-cell {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(51, 255, 51, 0.15);
    background-color: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: default;
    user-select: none;
    transition: all 0.2s;
}

/* Clickable cells */
.grid-cell.clickable {
    cursor: pointer;
    border-color: var(--primary-dim);
    color: var(--primary-dim);
}

.grid-cell.clickable:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(51, 255, 51, 0.05);
}

.grid-cell.boundary {
    background-color: #0c150c;
    border-color: var(--primary-dim);
    color: var(--primary-dim);
    font-size: 11px;
}

.grid-cell.boundary.exit {
    border-color: var(--warn-color);
    color: var(--warn-color);
}

.grid-cell.entity {
    background-color: rgba(255, 51, 51, 0.15);
    border-color: var(--danger-color);
    color: var(--danger-color);
    text-shadow: 0 0 5px var(--danger-color);
    font-weight: bold;
    animation: pulse-danger 0.5s infinite alternate;
}

@keyframes pulse-danger {
    0% { background-color: rgba(255, 51, 51, 0.1); }
    100% { background-color: rgba(255, 51, 51, 0.4); }
}

/* 7. VIEW: HONEYPOT VAULT */
.vault-container {
    display: grid;
    grid-template-rows: 1.3fr 1fr;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.vault-browser {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid var(--primary-dim);
    background-color: var(--bg-color);
    min-height: 0;
}

.browser-sidebar {
    border-right: 1px solid var(--primary-dim);
    padding: 8px;
    overflow-y: auto;
}

.folder-node {
    font-size: 13px;
    padding: 4px 6px;
    cursor: pointer;
    user-select: none;
    color: var(--primary-light);
}

.folder-node:hover {
    background-color: rgba(51, 255, 51, 0.05);
}

.folder-node.sub {
    padding-left: 20px;
    color: var(--primary-dim);
}

.folder-node.sub:hover {
    color: var(--primary-color);
}

.browser-files {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.files-header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--primary-dim);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--primary-dim);
}

.files-list {
    padding: 10px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    align-content: start;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 8px 4px;
    border: 1px solid transparent;
}

.file-item:hover {
    border-color: var(--primary-dim);
    background-color: rgba(51, 255, 51, 0.03);
}

.file-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.file-name {
    font-size: 12px;
    word-break: break-all;
}

.vault-viewer {
    border: 1px solid var(--primary-dim);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.viewer-header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--primary-dim);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--primary-dim);
}

.viewer-body {
    background-color: var(--bg-darker);
    padding: 12px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.3;
    overflow-y: auto;
    flex-grow: 1;
    white-space: pre-wrap;
}

/* 8. VIEW: ADMIN DECREES */
.admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.admin-text {
    overflow-y: auto;
    padding-right: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.admin-text h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--primary-light);
}

.admin-text blockquote {
    border-left: 2px solid var(--primary-color);
    padding-left: 12px;
    margin: 8px 0 16px 0;
    color: var(--primary-dim);
    font-style: italic;
}

.admin-text ul {
    list-style-type: none;
    margin-bottom: 16px;
}

.admin-text li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}

.admin-text li::before {
    content: "■";
    position: absolute;
    left: 0;
    font-size: 9px;
    top: 2px;
    color: var(--primary-color);
}

.admin-map-container {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    border: 1px solid var(--primary-dim);
    padding: 12px;
}

.admin-map-container h3 {
    font-size: 13px;
    margin-bottom: 8px;
}

.map-grid-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-darker);
    border: 1px solid rgba(51, 255, 51, 0.1);
    margin-bottom: 8px;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(12, 18px);
    grid-template-rows: repeat(12, 18px);
    gap: 2px;
}

.map-cell {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(51, 255, 51, 0.05);
    background-color: var(--bg-color);
    cursor: crosshair;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
}

.map-cell:hover {
    background-color: rgba(51, 255, 51, 0.2);
    border-color: var(--primary-color);
}

.map-cell.safe {
    border-color: var(--primary-dim);
    color: var(--primary-color);
}

.map-cell.danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.map-cell.portal {
    border-color: var(--warn-color);
    color: var(--warn-color);
    animation: btn-pulse 1s infinite;
}

.map-readout {
    font-size: 12px;
    color: var(--primary-dim);
    background-color: var(--bg-darker);
    padding: 6px;
    border: 1px solid var(--primary-dim);
    text-align: center;
}

/* 9. VIEW: RAW CONSOLE */
.console-output-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--primary-dim);
    padding: 12px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.25;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Footer & CLI Bar */
.terminal-footer {
    display: flex;
    border: 2px solid var(--primary-dim);
    background-color: var(--bg-darker);
    padding: 6px 12px;
    align-items: center;
    font-size: 14px;
}

.prompt-arrow {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
    animation: text-blink 1s infinite;
}

#terminal-cli-form {
    flex-grow: 1;
    display: flex;
}

#terminal-cli-input {
    width: 100%;
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
}

#terminal-cli-input:focus {
    outline: none;
}

.footer-status {
    color: var(--primary-dim);
    font-size: 11px;
    margin-left: 16px;
    white-space: nowrap;
}

/* Responsive Scaling for smaller heights */
@media (max-height: 600px) {
    .crt-screen {
        padding: 10px;
    }
    .main-title {
        font-size: 20px;
    }
    .ascii-logo {
        display: none;
    }
    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Jumpscare Overlay Styling */
.jumpscare-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #000;
    color: #ff3333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: jumpscare-flash 0.08s infinite;
}

#jumpscare-art {
    font-family: 'VT323', monospace;
    font-size: 22px;
    line-height: 1.15;
    text-shadow: 0 0 20px #ff3333;
    text-align: center;
    white-space: pre;
}

@keyframes jumpscare-flash {
    0% { filter: invert(0) brightness(1.2); }
    50% { filter: invert(0.8) brightness(0.6); }
    100% { filter: invert(0) brightness(1.2); }
}

/* Alternative color themes triggered by noclip / easter eggs */
.amber-theme {
    --primary-color: #ffaa00 !important;
    --primary-dim: #996600 !important;
    --primary-glow: rgba(255, 170, 0, 0.25) !important;
    --primary-light: #ffcc66 !important;
    --text-color: #ffaa00 !important;
    --bg-color: #0d0803 !important;
    --bg-darker: #060401 !important;
}

.toxic-red-theme {
    --primary-color: #ff3333 !important;
    --primary-dim: #991111 !important;
    --primary-glow: rgba(255, 51, 51, 0.25) !important;
    --primary-light: #ff8080 !important;
    --text-color: #ff3333 !important;
    --bg-color: #0f0505 !important;
    --bg-darker: #080202 !important;
}

