* {
  box-sizing: border-box;
}

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

body {
  background: #000000;
  color: #00ff66;

  font-family:
    "Courier New",
    Courier,
    monospace;
}

.boot-screen {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
  padding: 24px;
}

.boot-text {
  width: min(760px, 100%);
  font-size: clamp(14px, 2.5vw, 20px);
  line-height: 1.7;

  text-shadow:
    0 0 4px #00ff66,
    0 0 10px rgba(0, 255, 102, 0.5);
}

.boot-text p {
  margin: 0;
}

.enter-button {
  display: inline-block;

  margin-top: 30px;
  padding: 10px 14px;

  color: #00ff66;
  background: transparent;

  border: 1px solid #00ff66;

  text-decoration: none;

  box-shadow:
    0 0 8px rgba(0, 255, 102, 0.5),
    inset 0 0 8px rgba(0, 255, 102, 0.12);
}

.enter-button:hover {
  color: #000000;
  background: #00ff66;
}

.cursor {
  display: inline-block;
  margin-left: 8px;

  animation: blink 0.8s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* =================================
   LOW-END ARCADE HOMEPAGE
================================= */

.arcade-page {
  --page-background: #f5edda;
  --page-background-2: #efb9d1;

  --window-background: rgba(255, 249, 239, 0.94);
  --window-bar: #8170cf;
  --window-bar-2: #c19fe9;

  --text-colour: #281b49;
  --muted-text: #675a82;

  --primary: #6555c9;
  --secondary: #e143ad;
  --accent: #52cfa8;

  --border-colour: #8469c7;
  --shadow-colour: #e143ad;

  min-height: 100vh;
  padding: 24px;

  color: var(--text-colour);

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(82, 207, 168, 0.7),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(225, 67, 173, 0.45),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      var(--page-background),
      var(--page-background-2)
    );

  background-attachment: fixed;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.arcade-page.dark-mode {
  --page-background: #08060e;
  --page-background-2: #1a1028;

  --window-background: rgba(16, 10, 25, 0.94);
  --window-bar: #00c996;
  --window-bar-2: #116b67;

  --text-colour: #f7efff;
  --muted-text: #b7aaca;

  --primary: #00e0a4;
  --secondary: #ff28ca;
  --accent: #45efff;

  --border-colour: #00dba0;
  --shadow-colour: #ff28ca;
}

.site-wrapper {
  position: relative;
  z-index: 2;

  width: min(1100px, 100%);
  margin: 0 auto;
}

.arcade-window {
  overflow: hidden;

  background: var(--window-background);
  border: 3px solid var(--border-colour);

  box-shadow:
    7px 7px 0 var(--shadow-colour),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 40px;
  padding: 7px 10px;

  color: white;

  background:
    repeating-linear-gradient(
      90deg,
      var(--window-bar) 0,
      var(--window-bar) 5px,
      var(--window-bar-2) 5px,
      var(--window-bar-2) 10px
    );

  border-bottom: 3px solid var(--border-colour);

  font-weight: bold;
  letter-spacing: 1px;

  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls button {
  width: 27px;
  height: 25px;
  padding: 0;

  color: var(--text-colour);
  background: var(--window-background);

  border: 2px outset var(--border-colour);

  font-family: inherit;
  font-weight: bold;
}

.site-banner {
  margin-bottom: 28px;
}

.banner-content {
  padding: clamp(40px, 8vw, 85px) 20px;

  text-align: center;

  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 20px,
      rgba(255, 255, 255, 0.07) 20px,
      rgba(255, 255, 255, 0.07) 22px
    );
}

.small-heading {
  margin: 0 0 10px;

  color: var(--secondary);

  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 5px;
}

.banner-content h1 {
  margin: 0;

  color: var(--primary);

  font-family:
    Impact,
    Haettenschweiler,
    sans-serif;

  font-size: clamp(3rem, 11vw, 7rem);
  font-style: italic;
  line-height: 0.9;

  text-shadow:
    3px 3px 0 var(--secondary),
    6px 6px 0 var(--border-colour);
}

.banner-content h1 span {
  display: block;

  margin-top: 20px;

  color: var(--secondary);
  font-size: 0.52em;

  text-shadow:
    3px 3px 0 var(--border-colour);
}

.site-tagline {
  margin: 30px auto;
  color: var(--muted-text);

  font-weight: bold;
}

.pixel-button {
  padding: 12px 18px;

  color: white;
  background: var(--primary);

  border: 3px solid var(--text-colour);

  box-shadow:
    5px 5px 0 var(--secondary);

  font-family: inherit;
  font-weight: bold;

  cursor: pointer;
}

.pixel-button:hover {
  transform: translate(-2px, -2px);

  box-shadow:
    7px 7px 0 var(--secondary);
}

.main-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);

  gap: 28px;
}

.navigation-window {
  align-self: start;
}

.site-navigation {
  display: grid;
  gap: 10px;

  padding: 14px;
}

.site-navigation a {
  display: block;

  padding: 14px;

  color: var(--text-colour);

  background:
    linear-gradient(
      to bottom,
      var(--window-bar-2),
      var(--window-background)
    );

  border: 3px outset var(--border-colour);

  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.site-navigation a:hover {
  filter: brightness(1.12);
  transform: translate(-2px, -2px);
}

.content-column {
  display: grid;
  gap: 28px;
}

.window-content {
  padding: clamp(20px, 4vw, 38px);
}

.window-content h2 {
  margin-top: 0;

  color: var(--primary);

  font-size: clamp(1.7rem, 5vw, 2.7rem);

  text-shadow:
    2px 2px 0 var(--secondary);
}

.window-content p {
  line-height: 1.7;
}

.system-status {
  width: fit-content;

  margin-top: 24px;
  padding: 12px 15px;

  background: var(--window-bar-2);
  border: 2px dashed var(--border-colour);

  font-weight: bold;
}

.status-light {
  display: inline-block;

  width: 11px;
  height: 11px;
  margin-right: 8px;

  background: var(--accent);
  border-radius: 50%;

  box-shadow:
    0 0 10px var(--accent);

  animation: status-blink 1.3s steps(2) infinite;
}

@keyframes status-blink {
  50% {
    opacity: 0.25;
  }
}

.video-placeholder {
  display: grid;
  place-items: center;

  min-height: 270px;
  padding: 20px;

  color: var(--accent);
  background:
    repeating-linear-gradient(
      0deg,
      #07070b 0,
      #07070b 4px,
      #14141d 4px,
      #14141d 8px
    );

  border: 4px solid var(--border-colour);

  font-weight: bold;
  text-align: center;
}

.site-footer {
  margin-top: 28px;
  text-align: center;
}

.site-footer a {
  color: var(--primary);
  font-weight: bold;
}


/* =================================
   CRT OVERLAY
================================= */

.crt-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.1) 3px,
      rgba(0, 0, 0, 0.1) 4px
    );
}

.crt-overlay::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      ellipse at center,
      transparent 62%,
      rgba(0, 0, 0, 0.18) 100%
    );
}


/* =================================
   MOBILE
================================= */

@media (max-width: 760px) {
  .arcade-page {
    padding: 12px;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .site-navigation {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-content h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 440px) {
  .site-navigation {
    grid-template-columns: 1fr;
  }
}