:root {
  --ink: #9cff9c;
  --dim: #4ea74e;
  --hot: #e5ffe5;
  --danger: #ff6b6b;
  --bg: #020702;
  --panel: rgba(3, 16, 5, .92);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(33,90,35,.18), transparent 34rem),
    #010401;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: .035em;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.026) 0, rgba(255,255,255,.026) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  z-index: 8;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.terminal {
  width: min(960px, calc(100% - 28px));
  margin: 5vh auto;
  border: 1px solid var(--dim);
  box-shadow: 0 0 45px rgba(77,255,92,.12), inset 0 0 40px rgba(13,65,18,.2);
  background: var(--panel);
  padding: clamp(16px, 3vw, 34px);
  position: relative;
}
.terminal::before {
  content: "RESTRICTED // RESTRICTED // RESTRICTED // RESTRICTED";
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 2px 10px;
  color: #050505;
  background: var(--ink);
  font-size: 11px;
  font-weight: bold;
}
.masthead { display: flex; gap: 18px; align-items: center; border-bottom: 1px dashed var(--dim); padding-bottom: 18px; }
.leaf {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 44px;
  text-shadow: 0 0 12px var(--ink);
  transform: rotate(45deg);
}
.leaf::before { content: "🍁"; transform: rotate(-45deg); filter: grayscale(1) brightness(1.8) sepia(1) hue-rotate(60deg) saturate(4); font-size: 39px; }
.leaf { font-size: 0; }
.micro { color: var(--dim); font-size: 11px; }
h1 { margin: 5px 0 2px; color: var(--hot); font-size: clamp(30px, 6vw, 58px); letter-spacing: .12em; text-shadow: 0 0 13px rgba(156,255,156,.48); }
.classification { color: var(--danger); font-size: 12px; font-weight: bold; }
.status-grid {
  margin: 20px 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 5px 18px;
  font-size: 12px;
}
.status-grid span { color: var(--dim); }
.status-grid strong { color: var(--ink); font-weight: normal; }
.boot { min-height: 190px; border: 1px solid rgba(78,167,78,.45); padding: 14px; margin: 18px 0; font-size: 13px; line-height: 1.6; background: rgba(0,0,0,.28); }
.boot-line { opacity: .9; }
.boot-line.ok::after { content: " [OK]"; color: var(--hot); }
.boot-line.redacted { color: var(--dim); }
.clearance { animation: reveal .6s steps(5,end); }
.hidden { display: none; }
@keyframes reveal { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
.warning { border: 1px solid var(--danger); color: var(--danger); padding: 12px; margin: 18px 0; font-size: 12px; line-height: 1.5; }
.memo { color: var(--dim); font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; color: var(--hot); font-size: 13px; }
.input-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; align-items: center; }
.prompt { color: var(--hot); font-weight: bold; }
input {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--dim);
  background: #000;
  color: var(--hot);
  outline: none;
  font: inherit;
  box-shadow: inset 0 0 15px rgba(35,120,40,.14);
}
input:focus { border-color: var(--hot); box-shadow: 0 0 10px rgba(156,255,156,.2); }
button {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: bold 12px "Courier New", monospace;
  cursor: pointer;
}
button:hover, button:focus { background: var(--ink); color: #001600; }
.response { margin-top: 12px; min-height: 20px; color: var(--dim); font-size: 12px; }
.response.denied { color: var(--danger); animation: glitch .18s linear 3; }
.response.accepted { color: var(--hot); text-shadow: 0 0 8px var(--ink); }
@keyframes glitch { 50% { transform: translateX(2px); } }
footer { margin-top: 26px; padding-top: 12px; border-top: 1px dashed var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--dim); font-size: 10px; }
@media (max-width: 620px) {
  .terminal { margin: 18px auto; width: calc(100% - 18px); }
  .masthead { align-items: flex-start; }
  .leaf { width: 52px; height: 52px; flex-basis: 52px; }
  .leaf::before { font-size: 28px; }
  .input-row { grid-template-columns: auto 1fr; }
  button { grid-column: 2; width: 100%; }
  .boot { min-height: 240px; }
}
