:root {
    --bg: #040607;
    --frame: #171916;
    --frame-edge: rgba(163, 151, 112, 0.35);
    --screen-bg: #07120f;
    --screen-glow: rgba(126, 174, 143, 0.18);
    --phosphor: #b8d4b0;
    --phosphor-dim: #76907c;
    --gold: #c7b07a;
    --danger: #c56f59;
    --steel: #b8bfb6;
    --muted: #7f8b82;
    --line: rgba(184, 212, 176, 0.12);
    --transmission-background-image: url("../hazeroth_abyss.jpg");
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 18% 14%, rgba(114, 136, 150, 0.08), transparent 24%),
        radial-gradient(circle at 81% 18%, rgba(186, 117, 89, 0.08), transparent 20%),
        linear-gradient(180deg, #040607 0%, #060909 100%);
    color: var(--steel);
    font-family: "Cinzel", serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.7)),
        var(--transmission-background-image) center / cover no-repeat;
    opacity: 0.32;
    filter: saturate(0.65) blur(1.1px);
    transform: scale(1.02);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.5) 100%),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: screen;
    opacity: 0.28;
}

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.console {
    width: min(1280px, 100%);
    border: 1px solid rgba(199, 176, 122, 0.18);
    background:
        linear-gradient(180deg, rgba(26, 29, 26, 0.96), rgba(14, 16, 14, 0.98)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 48%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.56),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    --expiry-fade-ms: 3000ms;
    transition:
        filter var(--expiry-fade-ms) ease,
        opacity var(--expiry-fade-ms) ease,
        transform var(--expiry-fade-ms) ease;
}

.console::before,
.console::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(199, 176, 122, 0.45);
    border-style: solid;
    pointer-events: none;
}

.console::before {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.console::after {
    right: 10px;
    bottom: 10px;
    border-width: 0 2px 2px 0;
}

.console > * {
    position: relative;
    z-index: 1;
}

.console.expiring > :not(.console-expiry-overlay):not(.footer-links) {
    filter:
        grayscale(0.24)
        saturate(0.72)
        sepia(0.14)
        contrast(1.08)
        hue-rotate(-14deg)
        blur(1.4px);
    opacity: 0.18;
    transform: scale(0.992);
    transition:
        filter var(--expiry-fade-ms) ease,
        opacity var(--expiry-fade-ms) ease,
        transform var(--expiry-fade-ms) ease;
}

.console-expiry-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    background:
        linear-gradient(180deg, rgba(10, 0, 0, 0.12), rgba(48, 0, 0, 0.42)),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 4px),
        radial-gradient(circle at center, rgba(148, 12, 12, 0.34), rgba(0, 0, 0, 0.82) 74%);
    transition:
        opacity var(--expiry-fade-ms) ease,
        background var(--expiry-fade-ms) ease;
}

.console.expiring .console-expiry-overlay {
    opacity: 1;
}

.console-expiry-label {
    padding: 18px 24px;
    border: 1px solid rgba(211, 67, 67, 0.56);
    background:
        linear-gradient(180deg, rgba(34, 4, 4, 0.82), rgba(12, 2, 2, 0.92));
    color: #c41818;
    font-family: "Azeret Mono", monospace;
    font-size: clamp(28px, 4vw, 58px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    text-shadow:
        0 0 12px rgba(187, 22, 22, 0.42),
        0 0 28px rgba(122, 6, 6, 0.34);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.46),
        0 0 34px rgba(110, 8, 8, 0.34);
    transform: scale(0.96);
    transition:
        opacity var(--expiry-fade-ms) ease,
        transform var(--expiry-fade-ms) ease,
        filter var(--expiry-fade-ms) ease;
    filter: blur(0.3px);
    opacity: 1;
}

.console.expiring .console-expiry-label {
    transform: scale(1);
    filter: blur(0);
    animation: expiryDangerPulse 900ms ease-in-out infinite;
}

.console-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(199, 176, 122, 0.14);
    background:
        linear-gradient(180deg, rgba(43, 30, 18, 0.28), rgba(14, 13, 12, 0.08)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 35%);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--muted);
}

.console-title {
    color: var(--gold);
    font-family: "Azeret Mono", monospace;
}

.console-header a {
    color: inherit;
    text-decoration: none;
    transition:
        color 0.15s ease,
        text-shadow 0.15s ease;
}

.console-header a:hover,
.console-header a:focus-visible {
    color: #fff;
    text-shadow: 0 0 14px rgba(199, 176, 122, 0.22);
    outline: none;
}

.console-body {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.panel {
    border: 1px solid rgba(199, 176, 122, 0.12);
    background:
        linear-gradient(180deg, rgba(17, 18, 17, 0.92), rgba(10, 12, 10, 0.96)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 45%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 16px 36px rgba(0, 0, 0, 0.26);
    position: relative;
    overflow: hidden;
}

.status-panel {
    padding: 18px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.status-grid {
    display: grid;
    gap: 10px;
}

.datum {
    border: 1px solid rgba(184, 212, 176, 0.08);
    background-color: rgba(8, 12, 10, 0.94);
    padding: 12px 12px 11px;
}

.datum-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-family: "Azeret Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.datum-value {
    display: block;
    color: var(--phosphor);
    font-family: "Azeret Mono", monospace;
    font-size: 12px;
    line-height: 1.5;
    text-transform: uppercase;
}

.datum-value.danger {
    color: #e1a794;
}

.meter {
    height: 9px;
    border: 1px solid rgba(184, 212, 176, 0.12);
    background: rgba(7, 10, 8, 0.92);
    position: relative;
    overflow: hidden;
}

.meter.corrupted {
    border-color: rgba(197, 111, 89, 0.28);
    background:
        linear-gradient(180deg, rgba(20, 9, 8, 0.96), rgba(8, 6, 6, 0.98)),
        repeating-linear-gradient(90deg, transparent 0, transparent 14px, rgba(197, 111, 89, 0.08) 14px, rgba(197, 111, 89, 0.08) 16px);
    box-shadow: inset 0 0 18px rgba(197, 111, 89, 0.12);
}

.meter.oscillating {
    border-color: rgba(108, 234, 164, 0.26);
    background:
        linear-gradient(180deg, rgba(7, 24, 15, 0.98), rgba(4, 12, 8, 0.98)),
        repeating-linear-gradient(90deg, transparent 0, transparent 14px, rgba(108, 234, 164, 0.08) 14px, rgba(108, 234, 164, 0.08) 16px);
    box-shadow:
        inset 0 0 18px rgba(108, 234, 164, 0.1),
        0 0 18px rgba(40, 212, 129, 0.08);
}

.meter.glitching {
    border-color: rgba(170, 226, 176, 0.24);
    background:
        linear-gradient(180deg, rgba(10, 18, 12, 0.98), rgba(7, 8, 8, 0.98)),
        repeating-linear-gradient(90deg, transparent 0, transparent 12px, rgba(118, 255, 166, 0.06) 12px, rgba(201, 72, 72, 0.06) 15px, transparent 16px);
    box-shadow:
        inset 0 0 18px rgba(117, 255, 165, 0.08),
        0 0 18px rgba(189, 74, 74, 0.06);
}

.meter-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 74%;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(126, 174, 143, 0.2), rgba(184, 212, 176, 0.8)),
        repeating-linear-gradient(90deg, transparent 0, transparent 10px, rgba(0, 0, 0, 0.24) 10px, rgba(0, 0, 0, 0.24) 12px);
    box-shadow: 0 0 16px rgba(126, 174, 143, 0.28);
}

.meter-fill.corrupted {
    background:
        linear-gradient(90deg, rgba(122, 53, 44, 0.88) 0%, rgba(149, 78, 63, 0.96) 28%, rgba(138, 155, 118, 0.52) 62%, rgba(184, 95, 76, 0.9) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 9px, rgba(0, 0, 0, 0.34) 9px, rgba(0, 0, 0, 0.34) 12px);
    box-shadow:
        0 0 16px rgba(197, 111, 89, 0.3),
        0 0 28px rgba(126, 174, 143, 0.12);
}

.meter-fill.oscillating {
    background:
        linear-gradient(90deg, rgba(34, 152, 96, 0.84) 0%, rgba(123, 255, 180, 0.98) 55%, rgba(204, 255, 226, 0.96) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 9px, rgba(0, 0, 0, 0.24) 9px, rgba(0, 0, 0, 0.24) 12px);
    box-shadow:
        0 0 20px rgba(86, 255, 164, 0.38),
        0 0 38px rgba(51, 214, 129, 0.2);
    transition:
        width 300ms ease-in-out,
        transform 220ms ease-in-out;
    animation: meterOscillateFloat 760ms ease-in-out infinite;
}

.meter-fill.glitching {
    background:
        linear-gradient(90deg, rgba(53, 198, 118, 0.94) 0%, rgba(145, 255, 186, 0.98) 38%, rgba(213, 84, 84, 0.92) 64%, rgba(255, 168, 168, 0.96) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 7px, rgba(0, 0, 0, 0.28) 7px, rgba(0, 0, 0, 0.28) 10px);
    box-shadow:
        0 0 18px rgba(96, 255, 160, 0.26),
        0 0 28px rgba(231, 84, 84, 0.22);
    transition:
        width 120ms steps(2, end),
        transform 120ms steps(2, end);
    animation: meterGlitchFloat 520ms steps(2, end) infinite;
}

.meter-fill.corrupted::before,
.meter-fill.corrupted::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.meter-fill.oscillating::before,
.meter-fill.oscillating::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.meter-fill.glitching::before,
.meter-fill.glitching::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.meter-fill.corrupted::before {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 7px, rgba(255, 242, 205, 0.24) 7px, rgba(255, 242, 205, 0.24) 8px, rgba(0, 0, 0, 0.32) 8px, rgba(0, 0, 0, 0.32) 11px),
        linear-gradient(90deg, transparent 0%, rgba(232, 125, 96, 0.4) 44%, transparent 62%);
    mix-blend-mode: screen;
    animation: meterCorruptionBands 1180ms steps(6, end) infinite;
}

.meter-fill.corrupted::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 232, 181, 0.64) 50%, transparent 100%);
    opacity: 0.55;
    filter: blur(1px);
    animation: meterCorruptionSweep 1850ms linear infinite;
}

.meter-fill.oscillating::before {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 8px, rgba(223, 255, 240, 0.24) 8px, rgba(223, 255, 240, 0.24) 9px, rgba(0, 0, 0, 0.24) 9px, rgba(0, 0, 0, 0.24) 12px),
        linear-gradient(90deg, transparent 0%, rgba(140, 255, 198, 0.42) 48%, transparent 72%);
    mix-blend-mode: screen;
    animation: meterOscillationBands 1180ms linear infinite;
}

.meter-fill.oscillating::after {
    background: linear-gradient(90deg, transparent 0%, rgba(230, 255, 242, 0.8) 50%, transparent 100%);
    opacity: 0.72;
    filter: blur(1px);
    animation: meterOscillationSweep 1420ms linear infinite;
}

.meter-fill.glitching::before {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 6px, rgba(224, 255, 236, 0.24) 6px, rgba(224, 255, 236, 0.24) 7px, rgba(255, 111, 111, 0.2) 7px, rgba(255, 111, 111, 0.2) 9px, rgba(0, 0, 0, 0.24) 9px, rgba(0, 0, 0, 0.24) 11px),
        linear-gradient(90deg, transparent 0%, rgba(114, 255, 172, 0.44) 34%, rgba(255, 120, 120, 0.38) 68%, transparent 100%);
    mix-blend-mode: screen;
    animation: meterGlitchBands 420ms steps(3, end) infinite;
}

.meter-fill.glitching::after {
    background:
        linear-gradient(90deg, transparent 0%, rgba(225, 255, 236, 0.7) 34%, rgba(255, 197, 197, 0.66) 70%, transparent 100%);
    opacity: 0.8;
    filter: blur(1px);
    animation: meterGlitchSweep 820ms steps(4, end) infinite;
}

.controls {
    display: grid;
    gap: 10px;
}

.control-btn {
    display: block;
    appearance: none;
    border: 1px solid rgba(199, 176, 122, 0.16);
    background:
        linear-gradient(180deg, rgba(26, 19, 10, 0.78), rgba(10, 9, 8, 0.96));
    color: var(--gold);
    font-family: "Azeret Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

a.control-btn {
    text-decoration: none;
}

.control-btn:hover,
.control-btn:focus-visible {
    transform: translateY(-1px);
    color: #fff6e5;
    box-shadow: 0 0 24px rgba(199, 176, 122, 0.16);
    outline: none;
}

.control-btn.alert {
    color: #ffd9d3;
    border-color: rgba(184, 67, 50, 0.8);
    background:
        linear-gradient(180deg, rgba(44, 11, 10, 0.94), rgba(14, 5, 5, 0.98));
    box-shadow:
        inset 0 0 22px rgba(0, 0, 0, 0.78),
        0 0 18px rgba(184, 67, 50, 0.34);
}

.control-btn.alert:hover,
.control-btn.alert:focus-visible {
    color: #fff4f1;
    box-shadow:
        inset 0 0 26px rgba(0, 0, 0, 0.84),
        0 0 28px rgba(224, 77, 58, 0.52);
}

.screen-panel {
    padding: 18px;
}

.screen {
    position: relative;
    min-height: 760px;
    border: 1px solid rgba(184, 212, 176, 0.16);
    background:
        radial-gradient(circle at 50% 18%, rgba(126, 174, 143, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(6, 13, 10, 0.98), rgba(3, 8, 7, 0.98));
    color: var(--phosphor);
    box-shadow:
        inset 0 0 0 1px rgba(184, 212, 176, 0.04),
        inset 0 0 36px rgba(126, 174, 143, 0.08),
        0 0 32px var(--screen-glow);
    overflow: hidden;
}

.screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.03)),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 4px);
    opacity: 0.16;
    mix-blend-mode: screen;
}

.screen::after {
    content: attr(data-ghost);
    position: absolute;
    inset: 128px 28px 88px 28px;
    pointer-events: none;
    white-space: pre-wrap;
    overflow: hidden;
    font-family: "Azeret Mono", monospace;
    font-size: 14px;
    line-height: 1.82;
    letter-spacing: 0.04em;
    color: rgba(230, 89, 89, 0.2);
    opacity: 0;
    transform: translate(0, 0);
    text-shadow:
        -2px 0 rgba(255, 62, 62, 0.18),
        2px 0 rgba(86, 164, 255, 0.12);
}

.screen.glitch {
    animation: screenGlitch 180ms linear;
}

.screen.glitch::after {
    opacity: 1;
    transform: translate(4px, -1px);
}

.screen-content {
    position: relative;
    z-index: 1;
    padding: 24px 28px 26px;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 18px;
}

.screen-head {
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.screen-title {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.08;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d9e7d3;
}

.screen-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    font-family: "Azeret Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--phosphor-dim);
}

.screen-meta span {
    padding: 7px 9px;
    border: 1px solid rgba(184, 212, 176, 0.1);
    background-color: rgba(8, 14, 11, 0.8);
}

.progress-wrap {
    display: grid;
    gap: 8px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-family: "Azeret Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.decode-bar {
    height: 12px;
    border: 1px solid rgba(184, 212, 176, 0.12);
    background:
        linear-gradient(180deg, rgba(6, 10, 8, 0.96), rgba(3, 6, 5, 0.98));
    overflow: hidden;
    position: relative;
}

.decode-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background:
        linear-gradient(90deg, rgba(126, 174, 143, 0.25), rgba(184, 212, 176, 0.92)),
        repeating-linear-gradient(90deg, transparent 0, transparent 12px, rgba(0, 0, 0, 0.2) 12px, rgba(0, 0, 0, 0.2) 15px);
    box-shadow: 0 0 22px rgba(126, 174, 143, 0.26);
    transition: width 120ms linear;
}

.transmission {
    white-space: pre-wrap;
    font-family: "Azeret Mono", monospace;
    font-size: 14px;
    line-height: 1.82;
    letter-spacing: 0.04em;
    color: var(--phosphor);
    text-shadow: 0 0 10px rgba(184, 212, 176, 0.08);
}

.block {
    margin: 0 0 1.15em;
}

.block.meta {
    color: #d4ddb8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.block.directive {
    color: #e0c89d;
}

.corrupted-redaction {
    display: inline-block;
    color: #f0b8aa;
    text-shadow:
        -1px 0 rgba(255, 88, 72, 0.22),
        1px 0 rgba(96, 180, 255, 0.14),
        0 0 10px rgba(197, 111, 89, 0.18);
    will-change: contents;
}

.glyph-token {
    display: inline-block;
    color: #8ff3b7;
    text-shadow:
        0 0 8px rgba(93, 240, 161, 0.34),
        0 0 18px rgba(60, 200, 126, 0.18);
    will-change: contents;
    animation: glyphPulse 880ms ease-in-out infinite;
}

.golden-cipher {
    display: inline-block;
    color: #e9c77d;
    text-shadow:
        0 0 8px rgba(224, 176, 84, 0.28),
        0 0 18px rgba(201, 155, 60, 0.18);
    will-change: contents;
    animation: goldenCipherPulse 760ms ease-in-out infinite;
}

.cipher-lockup {
    position: relative;
    display: block;
    margin-top: 0.45em;
    min-height: 5.4em;
}

.cipher-lockup .golden-cipher {
    display: block;
    white-space: pre-wrap;
}

.cipher-lockup.revealed {
    min-height: 0;
}

.golden-cipher.revealed {
    color: var(--phosphor);
    text-shadow: 0 0 10px rgba(184, 212, 176, 0.08);
    animation: none;
}

.cipher-upload-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    appearance: none;
    border: 1px solid rgba(199, 176, 122, 0.26);
    background:
        linear-gradient(180deg, rgba(30, 22, 11, 0.94), rgba(10, 9, 8, 0.98));
    color: var(--gold);
    font-family: "Azeret Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(201, 178, 124, 0.18);
    transition:
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.cipher-upload-btn:hover,
.cipher-upload-btn:focus-visible {
    color: #fff6e5;
    box-shadow:
        inset 0 0 22px rgba(0, 0, 0, 0.78),
        0 0 26px rgba(201, 178, 124, 0.32);
    outline: none;
}

.cipher-lockup.decrypting .cipher-upload-btn {
    cursor: wait;
}

.cursor-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: "Azeret Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--phosphor-dim);
}

.prompt {
    color: var(--danger);
}

.ticker {
    min-height: 1.2em;
}

.cursor {
    width: 10px;
    height: 18px;
    background: rgba(184, 212, 176, 0.9);
    box-shadow: 0 0 12px rgba(184, 212, 176, 0.32);
    animation: blink 1s steps(1, end) infinite;
}

.footer-note {
    font-family: "Azeret Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 1px solid rgba(199, 176, 122, 0.12);
    padding: 12px 18px 14px;
}

.footer-links {
    display: none;
}

.console.expiring .footer-links {
    display: flex;
    justify-content: center;
    padding: 0 18px 16px;
    z-index: 4;
}

.footer-link-btn {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid rgba(199, 176, 122, 0.18);
    background:
        linear-gradient(180deg, rgba(26, 19, 10, 0.78), rgba(10, 9, 8, 0.96));
    color: var(--gold);
    font-family: "Azeret Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
    transform: translateY(-1px);
    color: #fff6e5;
    box-shadow: 0 0 18px rgba(199, 176, 122, 0.16);
    outline: none;
}

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

@keyframes meterCorruptionBands {
    0% {
        transform: translateX(0);
        opacity: 0.82;
    }

    18% {
        transform: translateX(6%);
        opacity: 0.54;
    }

    34% {
        transform: translateX(-8%);
        opacity: 0.88;
    }

    49% {
        transform: translateX(14%);
        opacity: 0.46;
    }

    67% {
        transform: translateX(-4%);
        opacity: 0.92;
    }

    100% {
        transform: translateX(0);
        opacity: 0.7;
    }
}

@keyframes meterCorruptionSweep {
    0% {
        transform: translateX(-160%);
    }

    100% {
        transform: translateX(180%);
    }
}

@keyframes meterOscillateFloat {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-1px);
    }

    50% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes meterOscillationBands {
    0% {
        transform: translateX(-6%);
        opacity: 0.46;
    }

    50% {
        transform: translateX(8%);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-4%);
        opacity: 0.54;
    }
}

@keyframes meterOscillationSweep {
    0% {
        transform: translateX(-180%);
    }

    100% {
        transform: translateX(180%);
    }
}

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

    25% {
        transform: translate(-1px, 0);
    }

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

    75% {
        transform: translate(0, 1px);
    }

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

@keyframes meterGlitchBands {
    0% {
        transform: translateX(-3%);
        opacity: 0.84;
    }

    33% {
        transform: translateX(5%);
        opacity: 0.52;
    }

    66% {
        transform: translateX(-6%);
        opacity: 0.9;
    }

    100% {
        transform: translateX(2%);
        opacity: 0.58;
    }
}

@keyframes meterGlitchSweep {
    0% {
        transform: translateX(-140%);
        opacity: 0.24;
    }

    30% {
        transform: translateX(12%);
        opacity: 0.86;
    }

    60% {
        transform: translateX(-22%);
        opacity: 0.42;
    }

    100% {
        transform: translateX(180%);
        opacity: 0.7;
    }
}

@keyframes glyphPulse {
    0% {
        opacity: 0.84;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.88;
    }
}

@keyframes goldenCipherPulse {
    0% {
        opacity: 0.82;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.86;
    }
}

@keyframes expiryDangerPulse {
    0% {
        color: #8e0d0d;
        text-shadow:
            0 0 8px rgba(133, 10, 10, 0.24),
            0 0 18px rgba(92, 3, 3, 0.2);
    }

    50% {
        color: #ff3030;
        text-shadow:
            0 0 16px rgba(255, 70, 70, 0.58),
            0 0 34px rgba(157, 13, 13, 0.44);
    }

    100% {
        color: #980f0f;
        text-shadow:
            0 0 10px rgba(145, 12, 12, 0.3),
            0 0 22px rgba(104, 5, 5, 0.24);
    }
}

@keyframes screenGlitch {
    0% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-1px, 1px);
        filter: hue-rotate(-8deg);
    }
    40% {
        transform: translate(2px, -1px);
        filter: hue-rotate(8deg);
    }
    100% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
    }
}

@media (max-width: 980px) {
    .page {
        padding: 14px;
    }

    .console-body {
        grid-template-columns: 1fr;
    }

    .screen {
        min-height: 640px;
    }
}

@media (max-width: 640px) {
    .console-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .console-body,
    .screen-panel,
    .status-panel {
        padding: 14px;
    }

    .screen-content {
        padding: 18px 18px 20px;
    }

    .screen::after {
        inset: 148px 18px 74px 18px;
        font-size: 13px;
        line-height: 1.72;
    }

    .transmission {
        font-size: 13px;
        line-height: 1.72;
    }

    .cursor-line {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor,
    .screen,
    .control-btn {
        animation: none;
        transition: none;
    }

    .screen::after {
        display: none;
    }

    .meter-fill.corrupted::before,
    .meter-fill.corrupted::after,
    .meter-fill.oscillating::before,
    .meter-fill.oscillating::after,
    .meter-fill.glitching::before,
    .meter-fill.glitching::after,
    .glyph-token,
    .golden-cipher,
    .console-expiry-label {
        animation: none;
    }
}
