@font-face {
    font-family: "NeueBit";
    src: url("../fonts/PPNeueBit-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: #090c0b;
    color: #c3cec6;
    font-synthesis: none;
    --green: #b9f879;
    --muted: #819187;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100svh; margin: 0; padding: 3rem 2rem; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, #19251a55, transparent 65%), #090c0b; }
button, input { font: inherit; }
.workspace { width: min(100%, 1040px); min-width: 0; }
.masthead, .page-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 10px; letter-spacing: 0.12em; }
.masthead { margin-bottom: 1.2rem; color: #c7d0c9; }
.masthead b { color: var(--green); font-size: 16px; margin-right: 0.7rem; letter-spacing: -0.08em; }
.year { margin-left: 0.5rem; color: var(--green); }
.masthead-note { color: var(--muted); }
.terminal { border: 1px solid #354238; border-radius: 9px; overflow: hidden; background: #0c110e; box-shadow: 0 30px 100px #0008; }
.titlebar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #1b211d; border-bottom: 1px solid #303b32; }
.window-controls { display: flex; gap: 7px; width: 75px; }
.window-controls i { width: 9px; height: 9px; border-radius: 50%; background: #526057; }
.window-controls i:first-child { background: #b6685c; }
.window-controls i:nth-child(2) { background: #b8a161; }
.window-controls i:nth-child(3) { background: #749b67; }
h1 { font-size: 11px; font-weight: 400; letter-spacing: 0.04em; margin: 0; color: #afbbb2; }
.protocol { width: 75px; text-align: right; font-size: 9px; color: #9aaa9e; }
.session-bar { display: flex; justify-content: space-between; gap: 1rem; padding: 12px 25px; font-size: 10px; color: #9aaa9e; border-bottom: 1px solid #233026; }
.indicator { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #b9f87960; vertical-align: middle; }
#session-state { color: var(--green); font-size: 9px; letter-spacing: 0.08em; }
.screen { position: relative; padding: 30px 34px 22px; height: clamp(440px, 68vh, 720px); overflow: auto; scrollbar-color: #354238 #0c110e; font-size: 13px; line-height: 1.7; }
.screen:focus-visible { outline: 1px solid var(--green); outline-offset: -3px; }
.motd { width: 100%; max-width: 800px; }
.event-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 235px;
    align-items: center;
    gap: 24px;
    min-height: 276px;
    padding: 27px 32px;
    overflow: hidden;
    border: 1px solid #31412b;
    background: radial-gradient(ellipse at 84% 40%, #a5df5512, transparent 60%), #10170f;
}
.event-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(#a2bd712b 0.7px, transparent 0.7px);
    background-size: 6px 6px;
    mask-image: linear-gradient(100deg, transparent 30%, #000);
}
.banner-copy { position: relative; z-index: 1; min-width: 0; }
.banner-eyebrow { display: flex; align-items: center; gap: 8px; color: #b2c0a4; font-size: 9px; letter-spacing: 0.12em; white-space: nowrap; }
.banner-dot { width: 5px; height: 5px; background: var(--green); box-shadow: 0 0 8px #b9f87960; }
.banner-edition { margin-left: 4px; padding: 0 5px; border: 1px solid #526442; color: #cbe8a5; }
.event-wordmark {
    margin: 22px 0 18px;
    font-family: "NeueBit", monospace;
    font-size: 88px;
    font-weight: 700;
    line-height: 0.65;
    letter-spacing: 0.015em;
    color: #d3ff8b;
    text-shadow: 1px 1px #82a84c, 2px 2px #719441, 3px 3px #607e37, 4px 4px #4d672d, 5px 5px #3e5425, 6px 6px #2d401c, 10px 12px 12px #0008;
}
.wordmark-cursor { color: #78984c; }
.banner-tagline { display: block; color: #c3df9e; font-size: 10px; letter-spacing: 0.23em; margin-top: 22px; }
.banner-coordinate { display: block; color: #7e916f; font-size: 8px; letter-spacing: 0.1em; margin-top: 5px; }
.logo-stage { position: relative; display: grid; place-items: center; height: 220px; }
.stage-axis { position: absolute; background: #8eb95525; }
.axis-horizontal { width: 100%; height: 1px; top: 50%; }
.axis-vertical { height: 100%; width: 1px; left: 50%; }
.logo-stage::before { content: ""; position: absolute; bottom: 15px; width: 155px; height: 22px; background: #0009; filter: blur(10px); border-radius: 50%; transform: rotate(-8deg); }
.logo-sculpture { position: relative; width: 154px; height: 169px; transform: rotate(-9deg) skewY(7deg); margin: -16px 15px 0 0; }
.logo-layer, .logo-face { position: absolute; inset: 0; mask: url("../images/blackalpaca-logo.svg") center / contain no-repeat; }
.logo-layer { background: #536f32; transform: translate(calc(var(--depth) * 1.1px), calc(var(--depth) * 1.1px)); }
.logo-layer:nth-child(2n) { background: #435c29; }
.logo-face {
    background: repeating-linear-gradient(0deg, #0c180e66 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, #0c180e44 0 1px, transparent 1px 4px), linear-gradient(125deg, #ecffc4, #c7ff70 48%, #8fbd47);
}
.logo-caption { position: absolute; bottom: -4px; font-size: 7px; letter-spacing: 0.12em; color: #9bb27f; }
.logo-caption span { margin: 0 5px; color: #526c3e; }
.banner-corner { position: absolute; width: 9px; height: 9px; border-color: #b2d97e; border-style: solid; }
.corner-top { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.corner-bottom { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.rule { border: 0; border-top: 1px solid #334637; margin: 20px 0; }
.welcome { font-size: 12px; letter-spacing: 0.15em; color: #dce7df; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 11px; margin: 0; }
.transcript-line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript-line.system { color: var(--muted); }
.transcript-line.success, .shell-prompt { color: var(--green); }
.input-line { display: flex; align-items: baseline; gap: 0.65rem; margin-top: 6px; }
.input-line label { flex-shrink: 0; }
.input-line input { color: #e1ebdf; caret-color: var(--green); background: transparent; border: 0; border-radius: 0; outline: none; padding: 0; min-width: 0; width: 100%; line-height: 1.7; }
.input-line:focus-within label { color: var(--green); }
.input-line input:disabled { opacity: 0.45; }
.password-entry { position: relative; flex: 1; min-width: 0; }
.password-entry input { display: block; caret-color: transparent; }
.password-entry::after {
    content: "";
    position: absolute;
    left: clamp(0px, var(--password-caret-left, 0px), calc(100% - 0.65em));
    top: 50%;
    transform: translateY(-50%);
    width: 0.65em;
    height: 1.2em;
    background: var(--green);
    pointer-events: none;
    visibility: hidden;
}
.password-entry:focus-within::after { visibility: visible; animation: caret-blink 1s step-end infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.connection-message { color: var(--muted); font-size: 11px; margin: 8px 0 0; min-height: 1.7em; }
.statusbar { display: flex; justify-content: space-between; gap: 1rem; padding: 11px 18px; background: #121a14; border-top: 1px solid #2c3a30; font-size: 9px; letter-spacing: 0.08em; color: var(--muted); }
#input-hint { color: #adc49c; }
.footer-separator { color: #435547; margin: 0 6px; }
.page-footer { color: #77867c; margin-top: 17px; font-size: 9px; }
.denied-overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: #150202bb; backdrop-filter: blur(4px); }
.denied-panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(100%, 470px); padding: 35px 20px 38px; background: #1b090af5; border: 1px solid #ff4d55; box-shadow: 0 0 70px #ff1b2930, inset 0 0 50px #ff1b290a; color: #ff535c; text-align: center; overflow: hidden; }
.warning-icon { width: 62px; height: 58px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.warning-icon circle { fill: currentColor; stroke: none; }
.denied-code { font-size: 9px; letter-spacing: 0.18em; }
.denied-panel strong { font-size: clamp(25px, 6vw, 38px); letter-spacing: 0.08em; text-shadow: 0 0 20px #ff4d5570; }
.denied-detail { color: #ce7e83; font-size: 9px; letter-spacing: 0.16em; }
.denied-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: #ff535c; transform-origin: left; animation: countdown 3s linear forwards; }
@keyframes countdown { to { transform: scaleX(0); } }
@media (max-width: 600px) {
    body { padding: 20px 10px; }
    .masthead { padding: 0 5px; }
    .masthead-note { display: none; }
    .session-bar { padding: 11px 15px; font-size: 8px; gap: 5px; }
    #session-state { font-size: 8px; }
    .screen { padding: 24px 16px 14px; height: 72svh; font-size: 12px; }
    .event-banner { grid-template-columns: minmax(0, 1fr) 98px; gap: 7px; padding: 19px 15px; min-height: 210px; }
    .banner-eyebrow { gap: 5px; font-size: 6px; letter-spacing: 0.04em; }
    .banner-edition { margin-left: 0; padding: 0 3px; }
    .banner-dot { width: 3px; height: 3px; }
    .event-wordmark { font-size: clamp(43px, 12vw, 66px); margin: 24px 0 20px; }
    .banner-tagline { font-size: 7px; letter-spacing: 0.15em; }
    .banner-coordinate { font-size: 6px; letter-spacing: 0.02em; }
    .logo-stage { height: 150px; }
    .logo-sculpture { width: 79px; height: 87px; margin: -10px 9px 0 0; }
    .logo-layer { transform: translate(calc(var(--depth) * 0.65px), calc(var(--depth) * 0.65px)); }
    .logo-face { background-size: auto, auto, auto; }
    .logo-stage::before { width: 75px; bottom: 30px; }
    .logo-caption { font-size: 5px; letter-spacing: 0; bottom: 7px; white-space: nowrap; }
    .logo-caption span { margin: 0 2px; }
    .input-line { gap: 6px; }
    .input-line input { font-size: 16px; }
    .password-entry { font-size: 16px; }
    .statusbar { font-size: 8px; padding: 10px 12px; }
    .page-footer { font-size: 8px; letter-spacing: 0.04em; padding: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .denied-progress, .password-entry:focus-within::after { animation: none; }
}
