/* AURDON GHOST PROTOCOL — phosphor terminal, mainframe, ACCESS GRANTED/DENIED, CRT power-on/off. GPU-light: text,
   transforms, opacity and clip-path only; one small canvas for static. Reduced motion removes shakes, flicker and rolls. */
:root { --gp-g: #33ff77; --gp-g2: #1fbf55; --gp-dim: #1b8f45; --gp-gold: #e6c27a; --gp-amber: #ffb547; --gp-red: #ff3355; }
.gp-term { position: absolute; inset: 0; z-index: 30; padding: max(22px, 3.2vh) max(16px, 3vw); overflow: hidden; color: var(--gp-g);
  font: 400 clamp(17px, 2.25vh, 24px)/1.32 'VT323', 'Cascadia Mono', Consolas, monospace; letter-spacing: .04em; text-shadow: 0 0 6px rgba(51,255,119,.55), 0 0 1px #b6ffd0; pointer-events: none; }
.gp-term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.gp-lines { position: relative; max-width: 1100px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-line { min-height: 1.32em; } .gp-blank { min-height: .66em; }
.gp-gold { color: var(--gp-gold); text-shadow: 0 0 8px rgba(230,194,122,.55); }
.gp-bright { color: #c8ffd9; text-shadow: 0 0 10px rgba(120,255,170,.85); }
.gp-dim { color: var(--gp-dim); text-shadow: none; } .gp-amber { color: var(--gp-amber); text-shadow: 0 0 6px rgba(255,181,71,.5); }
.gp-redtext { color: var(--gp-red); text-shadow: 0 0 8px rgba(255,51,85,.65); }
.gp-bar { color: #b6ffd0; }
.gp-cursor { display: inline-block; margin-left: 2px; animation: gpBlink 1.05s steps(1) infinite; }
.gp-cursor.gp-three { animation: gpBlink .5s steps(1) 3 forwards; }
.gp-blink { animation: gpBlink 1s steps(1) infinite; }
@keyframes gpBlink { 50% { opacity: 0; } }
.gp-await { display: grid; place-items: center; } .gp-await .gp-lines { font-size: clamp(22px, 3.4vh, 38px); text-align: center; }
.gp-await + .dx-auth .dx-frame, .gp-auth .dx-frame { margin-top: 18vh; }
.gp-hidden { opacity: 0; } .gp-under { padding-top: 58vh; } .gp-under .gp-lines { margin: 0 auto; text-align: center; max-width: 900px; }

/* glitch: a fast horizontal tear */
.gp-glitch { animation: gpTear .42s steps(6) both; }
@keyframes gpTear { 0% { transform: translateX(0); clip-path: inset(0 0 0 0); filter: none; } 20% { transform: translateX(-18px) skewX(8deg); clip-path: inset(12% 0 58% 0); filter: hue-rotate(40deg); }
  40% { transform: translateX(22px); clip-path: inset(44% 0 22% 0); } 60% { transform: translateX(-9px) scaleY(1.04); clip-path: inset(70% 0 4% 0); filter: brightness(2); } 80% { transform: translateX(5px); clip-path: inset(0 0 80% 0); } 100% { transform: none; clip-path: inset(0 0 0 0); filter: none; } }
html.gp-shake .dx, html.gp-shake body > .gp-host { animation: gpShake .12s steps(2) 3; }
@keyframes gpShake { 50% { transform: translate(2px, -1px); } }

/* the mainframe */
.gp-frame { position: absolute; inset: 0; transition: opacity .38s; }
.gp-frame.gp-out { opacity: 0; }
.gp-scroll { position: absolute; inset: 3vh 3vw; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; font-size: clamp(13px, 1.7vh, 18px); line-height: 1.18; }
.gp-mf { white-space: pre; color: var(--gp-g2); opacity: .9; } .gp-mf.gp-amber { color: var(--gp-amber); } .gp-mf.gp-red { color: var(--gp-red); }
.gp-mf.gp-req { color: #d8ffe5; font-size: 1.45em; line-height: 1.5; letter-spacing: .08em; text-shadow: 0 0 12px rgba(120,255,170,.9); white-space: pre-wrap; }
.gp-cols pre { position: absolute; top: -40%; margin: 0; font: 400 15px/1.1 'VT323', monospace; color: rgba(51,255,119,.16); text-shadow: none; animation: gpCol 6s linear infinite; }
@keyframes gpCol { to { transform: translateY(140vh); } }

/* big words */
.gp-big { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 0 16px; opacity: 0;
  font: 400 clamp(52px, 12vw, 190px)/1 'VT323', monospace; letter-spacing: .06em; transition: opacity .25s, transform .9s cubic-bezier(.2,.8,.2,1); }
.gp-big.on { opacity: 1; animation: gpFlicker 2.4s steps(1) infinite; }
.gp-big.up { transform: translateY(-22vh) scale(.62); }
.gp-big.granted { color: #9dffbe; text-shadow: 0 0 12px #33ff77, 0 0 46px rgba(51,255,119,.75), 0 0 110px rgba(51,255,119,.35); }
.gp-big.denied { color: var(--gp-red); text-shadow: 0 0 14px #ff3355, 0 0 60px rgba(255,30,70,.7); }
.gp-big.brokie { place-items: start center; padding-top: 16vh; font-size: clamp(34px, 7.4vw, 120px); color: #9dffbe; text-shadow: 0 0 12px #33ff77, 0 0 50px rgba(51,255,119,.6); }
.gp-big.gone { opacity: 0; }
@keyframes gpFlicker { 0%, 100% { opacity: 1; } 31% { opacity: .82; } 32% { opacity: 1; } 67% { opacity: .9; } 68% { opacity: 1; } }
.gp-red::before { content: ""; position: absolute; inset: 0; z-index: 29; background: radial-gradient(ellipse at center, rgba(120,0,20,.55), rgba(40,0,6,.85)); animation: gpRed .9s ease-out both; pointer-events: none; }
@keyframes gpRed { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: .55; } }
.gp-fadeout { transition: opacity .7s ease; opacity: 0; }

/* the authentication box in terminal dress (the real sign-in form from desktop.js) */
.gp-auth .dx-frame { background: rgba(0,10,4,.86); border-color: rgba(51,255,119,.45); box-shadow: 0 0 0 1px rgba(51,255,119,.12), 0 0 60px rgba(51,255,119,.12); }
.gp-auth .dx-title { color: var(--gp-g); font-family: 'VT323', monospace; letter-spacing: .08em; }
.gp-auth .dx-pass { font-family: 'VT323', monospace; font-size: 22px; color: var(--gp-g); caret-color: var(--gp-g); }
.gp-opts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font: 400 16px 'VT323', monospace; color: var(--gp-dim); }
.gp-opts button { background: none; border: 1px solid rgba(51,255,119,.3); color: var(--gp-g2); font: inherit; padding: 2px 10px; border-radius: 4px; cursor: pointer; pointer-events: auto; }
.gp-opts button[aria-pressed="true"] { color: #021; background: var(--gp-g2); }

/* CRT layers over the live station */
.gp-crt { position: fixed; inset: 0; z-index: 2147483001; pointer-events: none; }
.gp-crt-black { position: absolute; inset: 0; background: #000; transition: opacity .05s; }
.gp-crt-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #f4fbff; box-shadow: 0 0 12px 4px #cfe9ff, 0 0 40px 12px rgba(150,200,255,.6); opacity: 0; transform: scale(.2); }
.gp-crt-line { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: #f4fbff; box-shadow: 0 0 14px 4px #cfe9ff, 0 0 50px 10px rgba(150,200,255,.5); opacity: 0; transform: scaleX(.003); }
.gp-crt-static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .9; mix-blend-mode: screen; }
.gp-crt-scan { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); opacity: 0; transition: opacity 1s; }
.gp-crt-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 80% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); opacity: 0; border-radius: 6% / 9%; transition: opacity 1s; }
.gp-crt.s-dot .gp-crt-dot { transition: opacity .12s, transform .24s cubic-bezier(.2,1.6,.4,1); opacity: 1; transform: scale(1); }
.gp-crt.s-line .gp-crt-dot { opacity: 0; transition: opacity .1s; }
.gp-crt.s-line .gp-crt-line { transition: opacity .06s, transform .26s cubic-bezier(.3,.9,.2,1); opacity: 1; transform: scaleX(1); }
.gp-crt.s-open .gp-crt-line { transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .42s; transform: scaleY(80); opacity: 0; }
.gp-crt.s-open .gp-crt-scan, .gp-crt.s-open .gp-crt-vignette { opacity: 1; }
.gp-crt.s-roll::after { content: ""; position: absolute; left: 0; right: 0; height: 22vh; top: -22vh; background: linear-gradient(180deg, transparent, rgba(220,240,255,.14), transparent); animation: gpRoll .8s ease-in 1 forwards; }
@keyframes gpRoll { to { transform: translateY(144vh); } }
.gp-crt.s-done { transition: opacity .7s; opacity: 0; }
.gp-crt.s-off .gp-crt-scan, .gp-crt.s-off .gp-crt-vignette { opacity: 1; }
.gp-crt.s-flash .gp-crt-dot { opacity: 1; transform: scale(1.6); transition: transform .12s, opacity .16s; }
.gp-crt.s-dark .gp-crt-dot, .gp-crt.s-dark .gp-crt-scan, .gp-crt.s-dark .gp-crt-vignette { opacity: 0; }
.gp-host { position: fixed; inset: 0; z-index: 2147483002; background: #000; }
html.gp-crt-on { background: #000; }
.gp-skip { position: absolute; right: max(16px, 2vw); bottom: max(14px, 2vh); z-index: 41; font: 400 16px 'VT323', monospace; color: var(--gp-dim); background: none; border: 1px solid rgba(51,255,119,.25); padding: 3px 10px; border-radius: 4px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .gp-big.on, .gp-cols pre, .gp-cursor, .gp-blink { animation: none; } .gp-glitch { animation: none; } .gp-red::before { animation: none; opacity: .6; } }
@media (max-width: 640px) { .gp-term { font-size: 16px; } .gp-scroll { font-size: 11px; } .gp-under { padding-top: 50vh; } }
.dx-whiteout.gp-black { background: #000; }
.gp-greet { position: fixed; left: 50%; bottom: max(28px, 6vh); transform: translateX(-50%); z-index: 2147483003; max-width: min(860px, calc(100vw - 32px)); padding: 10px 18px; border-radius: 10px;
  background: rgba(0,10,8,.82); border: 1px solid rgba(39,230,193,.35); color: #d7fff4; font: 500 18px/1.4 'Chakra Petch', system-ui, sans-serif; text-align: center; transition: opacity .8s; }
.gp-greet b { color: #27e6c1; letter-spacing: .12em; margin-right: 6px; } .gp-greet.gone { opacity: 0; }

/* exit: the progress and closing lines sit well below REINSTATING BROKIE WINDOWS... (even when it wraps to two lines) */
.gp-exit.gp-under { padding-top: 54vh; }
@media (max-width: 640px) { .gp-big.brokie { padding-top: 12vh; } .gp-exit.gp-under { padding-top: 48vh; } }
/* the launch log (real startup facts) stays out of the way of the terminal; only problems show */
.dx .dx-status > :not(.bad) { display: none; }
.gp-term:has(.gp-frame) > .gp-lines { visibility: hidden; } /* no stray cursor over the mainframe */

/* ── half length (owner 2026-11-19): boot and exit scenes at half their original length. Pairs with PACE = 0.5 in
   ghost-protocol.js. To undo: delete this block and set PACE = 1. ── */
.gp-cursor.gp-three { animation: gpBlink .25s steps(1) 3 forwards; }
.gp-glitch { animation: gpTear .21s steps(6) both; }
html.gp-shake .dx, html.gp-shake body > .gp-host { animation: gpShake .06s steps(2) 3; }
.gp-frame { transition: opacity .19s; }
.gp-big { transition: opacity .13s, transform .45s cubic-bezier(.2,.8,.2,1); }
.gp-red::before { animation-duration: .45s; }
.gp-fadeout { transition: opacity .35s ease; }
.gp-crt-scan, .gp-crt-vignette { transition-duration: .5s; }
.gp-crt.s-dot .gp-crt-dot { transition: opacity .06s, transform .12s cubic-bezier(.2,1.6,.4,1); }
.gp-crt.s-line .gp-crt-dot { transition: opacity .05s; }
.gp-crt.s-line .gp-crt-line { transition: opacity .03s, transform .13s cubic-bezier(.3,.9,.2,1); }
.gp-crt.s-open .gp-crt-line { transition: transform .21s cubic-bezier(.2,.8,.2,1), opacity .21s; }
.gp-crt.s-roll::after { animation-duration: .4s; }
.gp-crt.s-done { transition: opacity .35s; }
.gp-crt.s-flash .gp-crt-dot { transition: transform .06s, opacity .08s; }
@media (prefers-reduced-motion: reduce) { .gp-glitch { animation: none; } .gp-red::before { animation: none; opacity: .6; } }
.gp-greet.gp-listen { opacity: .85; font-size: 15px; bottom: calc(max(28px, 6vh) + 70px); } /* owner 2026-11-19: "listening…" cue after the greeting */
