@font-face { font-family: 'VT323'; src: url(/fonts/vt323.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url(/fonts/silkscreen.woff2) format('woff2'); font-display: swap; }

:root {
  --ph: #33ff66;
  --ph-hi: #b6ffc8;
  --ph-dim: #128a35;
  --amber: #ffb000;
  --black: #000;
  --deep: #001a0d;
  --beige: #d8cfb4;
  --beige-lo: #a99f80;
  --beige-hi: #efe8d2;
  --grey: #c0c0c0;
  --grey-lo: #6f6f6f;
  --grey-hi: #fff;
  --paper: #f4f1e6;
  --ink: #2a2a2a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #3a3528 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23443e30'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23443e30'/%3E%3C/svg%3E");
  font-family: 'VT323', ui-monospace, monospace;
  color: var(--ph);
  font-size: 22px;
  line-height: 1.2;
}
.desk { padding: 28px 14px 60px; }
.monitor { max-width: 1180px; margin: 0 auto; }
.bezel {
  background: var(--beige);
  border-radius: 22px 22px 10px 10px;
  padding: 18px 26px 0;
  box-shadow: inset 4px 4px 0 var(--beige-hi), inset -5px -5px 0 var(--beige-lo), 0 18px 0 #2a261c, 0 26px 40px rgba(0,0,0,.5);
}
.badge-strip { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 12px; color: #4b4535; }
.brand-plate { font-family: 'Silkscreen', monospace; font-size: 16px; letter-spacing: 2px; background: #2b2b2b; color: var(--beige); padding: 3px 10px; box-shadow: inset 1px 1px 0 #555, inset -1px -1px 0 #000; }
.brand-plate small { font-size: 10px; margin-left: 10px; color: #9c957f; }
.leds { display: flex; align-items: center; gap: 6px; font-family: 'Silkscreen', monospace; font-size: 11px; }
.leds b { font-weight: normal; margin-right: 6px; }
.led { width: 10px; height: 10px; background: #1a3a1f; box-shadow: inset 1px 1px 0 rgba(255,255,255,.2); }
.led.cd { background: var(--ph); box-shadow: 0 0 6px var(--ph); }
.led.tx { animation: flick 0.9s steps(2) infinite; }
.led.rx { animation: flick 1.3s steps(2) infinite 0.3s; }
.led.lk { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
@keyframes flick { 0% { background: #1a3a1f; } 50% { background: var(--ph); box-shadow: 0 0 6px var(--ph); } }

.screen {
  position: relative;
  background: var(--black);
  border-radius: 18px / 26px;
  border: 14px solid #1c1a15;
  box-shadow: inset 0 0 0 3px #000, 0 0 0 4px var(--beige-lo), inset 0 0 80px rgba(51,255,102,.08);
  overflow: hidden;
}
.crt { padding: 34px 40px 40px; text-shadow: 0 0 4px rgba(51,255,102,.6); animation: jitter 9s steps(1) infinite; }
@keyframes jitter { 0%,96%,100% { transform: none; } 97% { transform: translateX(3px) skewX(-1deg); } 98% { transform: translateX(-2px); } }
.scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.35) 2px 4px); }
.scan::after { content: ''; position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(rgba(51,255,102,0), rgba(51,255,102,.06), rgba(51,255,102,0)); animation: roll 7s linear infinite; }
@keyframes roll { to { transform: translateY(calc(100vh + 9000px)); } }
.glass { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(0,0,0,.9); border-radius: 18px / 26px; }

pre { font-family: inherit; margin: 0; white-space: pre; overflow-x: auto; }
.dim { color: var(--ph-dim); text-shadow: none; }
.amber { color: var(--amber); text-shadow: 0 0 4px rgba(255,176,0,.5); }
.small { font-size: 18px; }
a { color: var(--ph-hi); }
h2 { font-size: 30px; font-weight: normal; margin: 0 0 18px; border-bottom: 2px dashed var(--ph-dim); padding-bottom: 6px; }
h2::before { content: '▓▒░ '; color: var(--ph-dim); }

.cursor { display: inline-block; width: .6em; height: 1em; background: var(--ph); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; box-shadow: 0 0 6px var(--ph); }
@keyframes blink { 50% { opacity: 0; } }

.boot { min-height: 420px; }
.typed { min-height: 7.5em; color: var(--ph); white-space: pre-wrap; }
.login { display: grid; grid-template-columns: auto 1fr; gap: 10px 34px; align-items: center; margin-top: 10px; }
.login[hidden] { display: none; }
.lock-big { grid-row: span 4; width: 240px; height: 240px; image-rendering: pixelated; border: 3px double var(--ph-dim); padding: 6px; background: #021; }
.wordmark { display: block; width: min(100%, 620px); height: auto; color: var(--ph-hi); filter: drop-shadow(0 0 6px rgba(51,255,102,.8)) drop-shadow(3px 0 0 rgba(255,0,80,.35)) drop-shadow(-3px 0 0 rgba(0,180,255,.35)); animation: wm 6s steps(1) infinite; }
@keyframes wm { 0%,92%,100% { transform: none; } 93% { transform: translateX(-4px) skewX(6deg); } 95% { transform: translateX(3px); } }
.sys { margin: 0; font-size: 26px; }
.motd { font-size: 22px; color: var(--ph-hi); }
.motd #motd { border-right: .6em solid var(--ph); padding-right: 2px; }

.menu { margin: 40px 0 60px; }
.menu ol { list-style: none; padding: 0 0 0 2ch; margin: 6px 0; }
.menu li { margin: 4px 0; }
.menu a { text-decoration: none; color: var(--ph); display: inline-block; padding: 1px 8px; }
.menu a:hover, .menu a:focus-visible { background: var(--ph); color: #000; text-shadow: none; outline: none; }
.menu a:active { transform: translateY(1px); }
kbd { font-family: inherit; color: var(--amber); }
.menu a:hover kbd { color: #000; }
.hint { font-size: 16px; }

.area { margin: 0 0 80px; scroll-margin-top: 20px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s steps(5), transform .5s steps(5); }
.reveal.in { opacity: 1; transform: none; }

.bulletin { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
.hero-frame { margin: 0; border: 2px solid var(--ph-dim); padding: 8px; background: #010; }
.hero-frame img { width: 100%; height: auto; display: block; filter: saturate(1.1) contrast(1.05); }
.hero-frame figcaption { font-size: 17px; color: var(--ph-dim); margin-top: 6px; text-shadow: none; }
.msgs p { margin: 0 0 10px; }
.msgs b { color: var(--amber); font-weight: normal; }

.construction { margin: 34px auto 6px; max-width: 640px; display: flex; align-items: stretch; background: #000; border: 3px outset var(--grey); }
.tape { flex: 1; min-width: 50px; background: repeating-linear-gradient(-45deg, #ffcc00 0 12px, #111 12px 24px); background-size: 34px 34px; animation: tape 1.2s steps(4) infinite; }
@keyframes tape { to { background-position: 34px 0; } }
.cw { font-family: 'Silkscreen', monospace; color: #ffcc00; padding: 10px 16px; font-size: 18px; text-shadow: none; animation: blink2 1.6s steps(1) infinite; }
@keyframes blink2 { 80% { opacity: 0; } }

.dossiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dossier { border: 2px solid var(--ph-dim); padding: 14px; position: relative; background: rgba(51,255,102,.03); }
.dossier::before { content: 'FILE ' attr(class); display: none; }
.dossier img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-bottom: 2px dashed var(--ph-dim); margin-bottom: 10px; padding-bottom: 10px; }
.nopic { color: var(--ph-dim); font-size: 20px; text-align: center; border-bottom: 2px dashed var(--ph-dim); padding: 30px 0; margin-bottom: 10px; animation: blink 3s steps(1) infinite; }
dl { display: grid; grid-template-columns: 9ch 1fr; gap: 4px 10px; margin: 0; font-size: 20px; }
dt { color: var(--ph-dim); }
dd { margin: 0; }
.blinkish { animation: blink 2s steps(1) infinite; }

.chrome {
  font-family: 'Silkscreen', monospace; font-size: 14px; letter-spacing: 1px; color: #000;
  background: var(--grey); border: 0; padding: 0; margin-top: 14px; cursor: pointer;
  box-shadow: inset 2px 2px 0 var(--grey-hi), inset -2px -2px 0 var(--grey-lo), 0 0 0 2px #000;
}
.chrome span { display: block; padding: 8px 14px; }
.chrome:hover { background: #d4d4d4; }
.chrome:active { box-shadow: inset 2px 2px 0 var(--grey-lo), inset -2px -2px 0 var(--grey-hi), 0 0 0 2px #000; }
.chrome:active span { transform: translate(1px, 1px); }
.chrome:focus-visible { outline: 2px dashed var(--amber); outline-offset: 4px; }

.printer { max-width: 760px; position: relative; }
.slot { height: 18px; background: linear-gradient(#222, #555); border: 3px solid var(--beige-lo); border-bottom: 0; }
.paper {
  background: var(--paper) repeating-linear-gradient(to bottom, transparent 0 44px, rgba(120,200,140,.25) 44px 88px);
  color: var(--ink); text-shadow: none; padding: 14px 42px; position: relative;
  transform-origin: top; animation: feed 2.4s steps(12) both paused;
}
.printer.in .paper { animation-play-state: running; }
@keyframes feed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.paper::before, .paper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 26px;
  background: radial-gradient(circle at 13px 13px, #000 5px, transparent 6px) 0 0 / 26px 26px repeat-y;
  border-right: 2px dotted #bbb;
}
.paper::before { left: 0; }
.paper::after { right: 0; border-right: 0; border-left: 2px dotted #bbb; }
.paper pre { font-size: 20px; line-height: 1.1; }


.cert-form { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.cert-form label { color: var(--amber); }
.cert-form input {
  font: inherit; color: var(--ph); background: #000; border: 0; border-bottom: 2px solid var(--ph);
  padding: 4px 6px; width: 16ch; text-transform: uppercase; caret-color: var(--ph); text-shadow: inherit;
}
.cert-form input:focus { outline: none; background: #021; }
.cert-form .chrome { margin-top: 0; }

.dirlist { color: var(--ph); margin-bottom: 16px; }
.ca-slot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 3px double var(--ph-dim); padding: 10px 14px; max-width: 760px; min-height: 58px; }
.ca-slot.small { font-size: 19px; min-height: 0; margin: 16px 0; }
.ca-label { background: var(--ph); color: #000; padding: 0 8px; text-shadow: none; }
.ca-value { font-family: inherit; word-break: break-all; flex: 1; min-width: 10ch; }
.ca-value:empty { overflow: hidden; white-space: nowrap; }
.ca-value:empty::after { content: '__________________________________________'; color: var(--ph-dim); text-shadow: none; }
.ca-tools { display: flex; gap: 8px; }
.ca-tools .chrome { margin: 0; }

.logoff { margin-bottom: 0; }
.foot #ca { margin-bottom: 50px; }
.foot-row { display: flex; gap: 18px; align-items: center; }
.foot-logo { width: 64px; height: 64px; image-rendering: pixelated; border: 2px solid var(--ph-dim); }
.foot-row p { margin: 0; }
.foot-name { font-size: 30px; }
.icons { display: flex; gap: 12px; margin: 10px 0 16px; }
.icons a {
  display: grid; place-items: center; width: 48px; height: 48px; background: var(--grey); color: #000;
  box-shadow: inset 2px 2px 0 var(--grey-hi), inset -2px -2px 0 var(--grey-lo), 0 0 0 2px #000;
}
.icons a:hover { background: var(--ph); }
.icons a:active { box-shadow: inset 2px 2px 0 var(--grey-lo), inset -2px -2px 0 var(--grey-hi), 0 0 0 2px #000; }
.icons svg { width: 26px; height: 26px; shape-rendering: crispEdges; }

.panel { display: flex; align-items: center; gap: 18px; padding: 16px 10px 18px; }
.grille { flex: 1; height: 22px; background: repeating-linear-gradient(90deg, #8f876c 0 4px, transparent 4px 9px); }
.knob { width: 30px; height: 30px; border-radius: 50%; background: #39352a; box-shadow: inset 2px 2px 0 #6b6450, inset -2px -2px 0 #1b1914; }
.power { width: 40px; height: 22px; background: var(--grey); box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #666; position: relative; }
.power::after { content: ''; position: absolute; right: -14px; top: 6px; width: 8px; height: 8px; background: var(--ph); box-shadow: 0 0 6px var(--ph); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 9;
  font-family: 'VT323', monospace; font-size: 22px; background: #000; color: var(--amber);
  border: 3px double var(--amber); padding: 8px 18px; transition: transform .3s steps(3), visibility 0s .3s; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s steps(3); }

@media (max-width: 860px) {
  body { font-size: 20px; }
  .desk { padding: 10px 6px 30px; }
  .bezel { padding: 10px 10px 0; border-radius: 14px 14px 6px 6px; }
  .brand-plate small { display: none; }
  .screen { border-width: 8px; }
  .crt { padding: 20px 16px 26px; }
  .login { grid-template-columns: 1fr; }
  .lock-big { grid-row: auto; width: 160px; height: 160px; }
  .menu ol { columns: 1; }
  .bulletin, .dossiers { grid-template-columns: 1fr; }
  .paper { padding: 10px 30px; }
  .paper pre { font-size: 12px; }
  h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
