:root {
  --phosphor: #d7ffc4;
  --phosphor-mid: #b7e8a4;
  --phosphor-dim: #a4d096;
  --phosphor-faint: rgba(190, 230, 168, 0.62);
  --glow: rgba(150, 255, 120, 0.45);
  --screen: #020503;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #000;
  color: var(--phosphor-mid);
  font-family: "Share Tech Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  text-transform: uppercase;
}

p,
h1,
time {
  margin: 0;
}

.bezel {
  width: 100%;
  height: calc(100vh - 44px);
  min-height: 560px;
  padding: 16px 16px 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, #242824 0%, #121412 18%, #0a0c0a 100%);
  box-shadow:
    0 0 0 1px #30342e,
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 24px rgba(0, 0, 0, 0.45),
    0 30px 90px rgba(0, 0, 0, 0.72),
    0 0 80px rgba(70, 140, 60, 0.08);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--screen);
  box-shadow:
    inset 0 0 0 1px rgba(190, 240, 160, 0.14),
    inset 0 0 80px rgba(0, 0, 0, 0.35);
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(0.92) brightness(0.86);
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(1, 6, 2, 0.86) 0%,
      rgba(1, 6, 2, 0.62) 32%,
      rgba(1, 6, 2, 0.22) 58%,
      rgba(1, 6, 2, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 6, 2, 0.42) 0%,
      rgba(1, 6, 2, 0.05) 22%,
      rgba(1, 6, 2, 0.05) 68%,
      rgba(1, 6, 2, 0.55) 100%
    );
}

.ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 28px 16px;
  animation: boot 0.8s ease both;
}

.topbar,
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.45;
  color: var(--phosphor-mid);
  text-shadow: 0 0 8px var(--glow);
}

.identity p + p,
.status-line {
  margin-top: 2px;
}

.dim {
  color: var(--phosphor-dim);
}

.status-block {
  text-align: right;
}

.status-line {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 1px 7px 0;
  background: #ff4d4d;
  color: #1a0606;
  letter-spacing: 0.12em;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(255, 70, 70, 0.55);
}

.rule {
  height: 1px;
  margin: 12px 0 0;
  background: var(--phosphor-faint);
  box-shadow: 0 0 8px rgba(150, 230, 120, 0.28);
}

.copy {
  max-width: min(540px, 46%);
  padding-top: 26px;
}

h1 {
  color: var(--phosphor);
  font-size: clamp(46px, 5.4vw, 68px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-shadow:
    0 0 2px #eaffdf,
    0 0 16px rgba(160, 255, 130, 0.7),
    0 0 42px rgba(120, 220, 90, 0.35);
}

.subtitle {
  margin-top: 12px;
  color: var(--phosphor-mid);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 10px var(--glow);
}

.stakes {
  margin-top: 28px;
  color: var(--phosphor);
  font-size: 18px;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-shadow: 0 0 10px var(--glow);
}

.dash {
  margin-top: 18px;
  color: var(--phosphor-dim);
  letter-spacing: 0;
  line-height: 1;
}

.log {
  margin-top: 16px;
  color: var(--phosphor-dim);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(120, 200, 90, 0.28);
}

.log p + p {
  margin-top: 1.15em;
}

.bottom {
  margin-top: auto;
}

.footer-row {
  padding-top: 10px;
}

.end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor {
  width: 9px;
  height: 14px;
  background: var(--phosphor-mid);
  box-shadow: 0 0 8px var(--glow);
  animation: blink 1.15s steps(1) infinite;
}

.scanlines,
.vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0px,
    rgba(0, 0, 0, 0.28) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.scanlines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(190, 255, 170, 0.05),
    transparent
  );
  animation: sweep 9s linear infinite;
}

.vignette {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(rgba(180, 255, 170, 0.03), rgba(180, 255, 170, 0.03));
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.35);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes sweep {
  from {
    top: -20%;
  }
  to {
    top: 110%;
  }
}

@keyframes boot {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.docs-link {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: 64px;
  height: 44px;
  display: grid;
  place-items: end;
  padding: 0 10px 8px 0;
  color: transparent;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.docs-link:hover,
.docs-link:focus-visible {
  color: rgba(255, 92, 92, 0.92);
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.5);
  outline: none;
}
@media (max-width: 860px) {
  body {
    padding: 10px;
    place-items: stretch;
  }

  .bezel,
  .screen {
    height: auto;
  }

  .bezel {
    width: 100%;
    min-height: calc(100vh - 20px);
    padding: 10px;
    border-radius: 16px;
  }

  .ui {
    min-height: calc(100vh - 40px);
  }

  .ui {
    padding: 16px 14px 12px;
  }

  .copy {
    max-width: none;
  }

  .topbar,
  .footer-row {
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  h1 {
    font-size: 40px;
  }

  .subtitle,
  .stakes,
  .log {
    font-size: 14px;
  }

  .footer-row {
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui,
  .cursor,
  .scanlines::after {
    animation: none;
  }
}
