:root {
  color-scheme: dark;
  font-family: "Courier Prime", "Courier New", monospace;
  color: #d4f5c7;
  background: #090b09;
  --glow: #a9ff7f;
  --dim: #9cb393;
  --rule: #253b25;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(16px, 5vw, 72px);
  background: radial-gradient(ellipse at 50% 47%, #233020 0%, #111910 47%, #090b09 75%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  inset: 55% -32% -23%;
  background: linear-gradient(90deg, #38583780 1px, transparent 1px),
    linear-gradient(#38583780 1px, transparent 1px);
  background-size: 58px 43px;
  transform: perspective(26rem) rotateX(63deg);
  transform-origin: center top;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 8%, #0000 72%);
}

.terminal {
  width: min(100%, 56rem);
}

.bezel {
  position: relative;
  padding: clamp(10px, 2.7vw, 28px);
  border: 1px solid #434940;
  border-top-color: #626a5e;
  border-left-color: #555e51;
  border-radius: 20px 20px 15px 15px;
  background: linear-gradient(155deg, #41483e, #252a23 40%, #191e18 80%, #222920);
  box-shadow: inset 0 2px #ffffff16, inset 0 -3px #0008,
    0 7px 0 #1b211a, 0 12px 0 #121811, 0 17px 0 #0b100b, 0 35px 40px #000a;
}

.screen {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3.8vw, 42px);
  border: 2px solid #101810;
  border-radius: 13px;
  background: radial-gradient(ellipse at 37% 39%, #142718 0%, #0c170e 54%, #080e09 95%);
  box-shadow: 0 0 0 1px #000d, 0 1px 0 2px #ffffff19, inset 0 0 35px #000;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #0000 0 3px, #000 3px 4px);
  opacity: .16;
}

.screen-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  color: var(--glow);
  font-size: 1.17rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-shadow: 0 0 14px #9cff7555;
}

.workspace {
  color: var(--dim);
  font-size: .78rem;
  line-height: 1.4;
}

.screen-body {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4.5vw, 56px);
  min-height: 23rem;
  padding: clamp(22px, 5vw, 52px) 0;
}

.scope {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  min-height: 14rem;
  height: 100%;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 50%, #76b75b30 4%, #386e3117 43%, #37643500 74%);
}

.scope::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #436e4b4d 1px, transparent 1px), linear-gradient(#436e4b4d 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse, #000 14%, #0000 70%);
}

.mask {
  width: clamp(115px, 19vw, 164px);
  aspect-ratio: 4 / 5;
  transform: perspective(360px) rotateX(5deg) rotateY(-13deg);
  filter: drop-shadow(3px 2px 0 #4f7940) drop-shadow(4px 4px 0 #254329) drop-shadow(0 0 18px #91dc6e50);
}

.mask-face {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: polygon(25% 0, 75% 0, 75% 5%, 85% 5%, 85% 10%, 92% 10%, 92% 20%, 97% 20%, 97% 55%, 92% 55%, 92% 67%, 85% 67%, 85% 76%, 77% 76%, 77% 84%, 68% 84%, 68% 92%, 60% 92%, 60% 100%, 40% 100%, 40% 92%, 32% 92%, 32% 84%, 23% 84%, 23% 76%, 15% 76%, 15% 67%, 8% 67%, 8% 55%, 3% 55%, 3% 20%, 8% 20%, 8% 10%, 15% 10%, 15% 5%, 25% 5%);
  background: linear-gradient(90deg, #b5e7a1 0 16%, #a7d28e 16% 36%, #b7e3a0 36% 62%, #95c67e 62% 82%, #74a65e 82%);
}

.mask-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(#0000 0 6px, #09150822 6px 7px),
    repeating-linear-gradient(90deg, #0000 0 6px, #09150822 6px 7px);
}

.mask-face i {
  position: absolute;
  display: block;
  background: #16351b;
}

.mask-face .brow {
  top: 20%;
  left: 11%;
  width: 34%;
  height: 12%;
  clip-path: polygon(0 74%, 15% 74%, 15% 45%, 30% 45%, 30% 15%, 71% 15%, 71% 42%, 87% 42%, 87% 70%, 100% 70%, 100% 100%, 74% 100%, 74% 72%, 57% 72%, 57% 51%, 34% 51%, 34% 75%, 18% 75%, 18% 100%, 0 100%);
}

.mask-face .brow-right, .mask-face .eye-right {
  right: 11%;
  left: auto;
  transform: scaleX(-1);
}

.mask-face .eye {
  top: 35%;
  left: 12%;
  width: 35%;
  height: 11%;
  clip-path: polygon(0 17%, 19% 17%, 19% 0, 71% 0, 71% 20%, 86% 20%, 86% 42%, 100% 42%, 100% 78%, 78% 78%, 78% 100%, 26% 100%, 26% 76%, 11% 76%, 11% 48%, 0 48%);
}

.mask-face .eye-right {
  right: 12%;
  left: auto;
}

.mask-face .nose {
  top: 39%;
  left: 40%;
  width: 21%;
  height: 21%;
  clip-path: polygon(56% 0, 68% 0, 68% 40%, 82% 40%, 82% 65%, 100% 65%, 100% 86%, 76% 86%, 76% 100%, 23% 100%, 23% 86%, 0 86%, 0 69%, 17% 69%, 17% 77%, 45% 77%, 45% 52%, 56% 52%);
  background: #507c41;
}

.mask-face .cheek {
  top: 52%;
  left: 12%;
  width: 22%;
  height: 6%;
  background: #78aa61;
  clip-path: polygon(0 20%, 18% 20%, 18% 0, 84% 0, 84% 26%, 100% 26%, 100% 76%, 80% 76%, 80% 100%, 22% 100%, 22% 73%, 0 73%);
}

.mask-face .cheek-right { right: 12%; left: auto; }

.mask-face .mouth {
  left: 14%;
  top: 59%;
  width: 72%;
  height: 17%;
  clip-path: polygon(0 0, 8% 0, 8% 25%, 16% 25%, 16% 43%, 24% 43%, 24% 33%, 31% 33%, 31% 17%, 39% 17%, 39% 8%, 61% 8%, 61% 17%, 69% 17%, 69% 33%, 76% 33%, 76% 43%, 84% 43%, 84% 25%, 92% 25%, 92% 0, 100% 0, 100% 47%, 94% 47%, 94% 64%, 86% 64%, 86% 84%, 75% 84%, 75% 100%, 25% 100%, 25% 84%, 14% 84%, 14% 64%, 6% 64%, 6% 47%, 0 47%, 0 0, 29% 54%, 29% 65%, 37% 65%, 37% 75%, 63% 75%, 63% 65%, 71% 65%, 71% 54%, 63% 54%, 63% 41%, 37% 41%, 37% 54%, 29% 54%);
}

.mask-face .chin {
  top: 81%;
  left: 36%;
  width: 28%;
  height: 14%;
  clip-path: polygon(0 0, 100% 0, 100% 26%, 85% 26%, 85% 50%, 70% 50%, 70% 75%, 61% 75%, 61% 100%, 39% 100%, 39% 75%, 30% 75%, 30% 50%, 15% 50%, 15% 26%, 0 26%);
}

.signin { min-width: 0; }

.signin h1 {
  margin: 0 0 30px;
  color: var(--glow);
  font-size: clamp(1.9rem, 5.3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: 3px 3px #203b20, 0 0 23px #91ef5755;
}

.cursor {
  display: inline-block;
  width: .38em;
  height: .13em;
  margin-left: .19em;
  background: var(--glow);
  box-shadow: 2px 2px #203b20, 0 0 10px #91ef5775;
}

form { display: grid; gap: 10px; }

label {
  display: block;
  margin-bottom: 1px;
  color: #c3ddb9;
  font-size: .95rem;
}

input, button {
  width: 100%;
  min-height: 48px;
  border-radius: 0;
  font: inherit;
}

input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #557450;
  outline-offset: 3px;
  color: #e4f9dc;
  background: #111e12;
  caret-color: var(--glow);
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #bcf1a9;
  color: #101e0f;
  background: #a3d889;
  box-shadow: 3px 3px 0 #36512c;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

button:hover { background: #b7efa1; }
button:active { box-shadow: 1px 1px 0 #36512c; transform: translate(2px, 2px); }
input:focus-visible, button:focus-visible { outline: 2px solid #e4f9dc; outline-offset: 4px; }

.status {
  margin: 2px 0 0;
  color: #ffcaab;
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.5;
}

.status:empty { display: none; }

.hardware {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  margin-bottom: -10px;
  padding: 6px 3px 0;
}

.vents {
  width: 46px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #0f1510 0 5px, #778273 5px 6px, transparent 6px 8px);
}

.power {
  width: 5px;
  height: 5px;
  background: #b3ff8a;
  box-shadow: 0 0 8px #8dff75c9;
}

@media (max-width: 620px) {
  .bezel { padding: 13px 13px 15px; border-radius: 14px; }
  .screen { border-radius: 8px; }
  .screen-body { grid-template-columns: 1fr; min-height: 0; }
  .scope { min-height: 9rem; }
  .mask { width: 94px; }
  .signin h1 { margin-bottom: 22px; }
}

@media (forced-colors: active) {
  .screen::after, .scope { display: none; }
  .screen-body { grid-template-columns: 1fr; min-height: 0; }
}
