:root {
  color-scheme: dark;
  background: #171918;
  --red: #ff3b32;
  --red-hot: #ff554b;
  --red-dim: #7e1d1a;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

html {
  background-color: #171918;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.page-texture {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(.75);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

button,
a {
  font: inherit;
}

.artboard {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  width: min(100vw, 177.778vh, 1920px);
  width: min(100vw, 177.778dvh, 1920px);
  aspect-ratio: 16 / 9;
  flex: none;
}

.master-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.screen {
  position: absolute;
  left: 23.47%;
  top: 23.66%;
  width: 69.5%;
  height: 54.78%;
  transform: scale(.763542);
  transform-origin: top left;
  overflow: hidden;
  border: 1px solid #3a2524;
  background: #080303;
  color: var(--red);
  font-family: var(--mono);
  text-shadow: 0 0 .34cqw rgba(255, 52, 43, .48);
}

.screen-status {
  height: 3.65cqw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.75cqw;
  border-bottom: .07cqw solid var(--red-dim);
  color: #db3d35;
  font-size: .96cqw;
  letter-spacing: .06em;
  line-height: 1;
}

.screen-status time {
  justify-self: end;
}

.screen-status b {
  color: var(--red-hot);
}

.screen-body {
  height: calc(100% - 3.65cqw);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: .78cqw;
  padding: 1.65cqw 2cqw 1.5cqw;
  overflow: hidden;
}

.command,
.hostname,
.state,
.description,
.screen-footer p {
  margin: 0;
}

.command {
  color: #b73530;
  font-size: 1.02cqw;
  line-height: 1.2;
}

.command span {
  color: var(--red-hot);
}

.project-row {
  min-height: 6.85cqw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2cqw;
}

h1 {
  margin: .3cqw 0 0;
  color: var(--red-hot);
  font-size: 4.65cqw;
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.hostname {
  margin-top: .72cqw;
  color: #e2443b;
  font-size: 1.05cqw;
  line-height: 1;
}

.state {
  margin-top: 1.05cqw;
  padding: .52cqw .74cqw;
  border: .07cqw solid var(--red-dim);
  color: var(--red-hot);
  font-size: .92cqw;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}

.signal-rule {
  height: .66cqw;
  border-block: .07cqw solid #4f1210;
}

.signal-rule span {
  display: block;
  width: 28%;
  height: 100%;
  background: #a72521;
}

.description {
  align-self: start;
  max-width: 61cqw;
  color: #eb4a40;
  font-size: 1.08cqw;
  line-height: 1.55;
}

.screen-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2cqw;
}

.screen-footer p {
  color: #b62d28;
  font-size: .88cqw;
  letter-spacing: .03em;
  white-space: nowrap;
}

.screen-footer a {
  min-width: 10.5cqw;
  padding: .65cqw .88cqw;
  border: .07cqw solid var(--red-dim);
  color: var(--red-hot);
  font-size: .88cqw;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.screen-footer a[hidden] {
  visibility: hidden;
}

.screen-footer a:hover,
.screen-footer a:focus-visible {
  background: #c82b25;
  color: #120202;
  outline: 0;
  text-shadow: none;
}

.programs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.selector {
  position: absolute;
  left: var(--x);
  top: 72.26%;
  width: 6.87%;
  height: 15.1%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.selector::before {
  content: "";
  position: absolute;
  left: 73.04%;
  top: 15.85%;
  width: .473cqw;
  height: .473cqw;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

.selector.is-active::before {
  opacity: 1;
  background: #ff3029;
  box-shadow: 0 0 .496cqw .137cqw rgba(255, 44, 37, .72);
}

.selector[data-project="photon"]:not(.is-active)::before {
  opacity: 1;
  background: #4b100e;
  box-shadow:
    0 0 .214cqw .092cqw rgba(43, 45, 44, .94),
    inset 0 .046cqw .061cqw #170302;
}

.selector[data-project="photon"].is-active::before {
  opacity: 0;
}

.selector:focus-visible {
  outline: .092cqw solid rgba(255, 78, 68, .92);
  outline-offset: -.611cqw;
}

body[data-project="photon"] .screen {
  visibility: hidden;
}
