/* =====================================================================
   PIXEELBB2 — SHARED TERMINAL SKIN  (style.css)
   =====================================================================
   ONE stylesheet for the whole site. Every page loads it FIRST, before
   its own inline <style>, so page-specific rules can safely override.

   THEME THE WHOLE SITE IN ONE PLACE
   ---------------------------------
   All colors, glows and fonts are custom properties in :root below.
   Edit a value there and it re-colors/every page instantly:
       --neon-purple       primary accent (borders, active nav, buttons)
       --card-purple-text  headings + labels
       --body-purple       body copy
       --term-green        terminal green (text)
       --led-green         LED green (visitor counter glow)
       --link-purple       unvisited links
       --link-visited      visited links
       --red-alert         warnings + X-button hover
       --bg-dark           html/body background
       --panel-black/dark/darker  panel fills (blackest -> grayest)
       --grad-a / --grad-b gradient stops for bars, titles, buttons
       --glow-*            reusable box/text glows (mostly purple/green)
       --font-stack        terminal font stack

   FILE LAYOUT
   -----------
   1. @font-face            VCR OSD Mono (the main terminal font)
   2. :root                 the palette + typography tokens
   3. Base reset            box-sizing, margins, html/body defaults
   4. TERMINAL SKIN         the CRT window every page is built from
      - #realWebsite        the "tube": background, scanline + vignette
      - .vintage-page       the black window + title bar + [X] button
      - Shutdown FX         .kill-* states, #killLine, #killDot, #shutOverlay
      - .banner/.marquee-bar/.vintage-nav/.vintage-footer/.webring
   5. CONSOLIDATED PAGE COMPONENTS   panels & tables used by the subpages
      (these used to be copy-pasted into every .html — now shared here)
   6. Responsive rules     small screens (bottom of file)

   Page-specific rules (boot sequence, tables, chat frame, guestbook
   form, ...) intentionally stay inline in each .html file.
   ===================================================================== */

@font-face {
  font-family: 'VCR OSD Mono';
  src: url('https://fonts.cdnfonts.com/s/14798/VCR_OSD_MONO_1.001[1].woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- palette --- */
  --neon-purple: #9d00ff;
  --card-purple-text: #b22cff;
  --red-alert: #ff1818;
  --bg-dark: #020005;

  --link-purple: #e0aaff;
  --link-visited: #9d4edd;
  --body-purple: #d9a7ff;
  --term-white: #fff;
  --panel-black: #000;
  --panel-dark: #0a0612;
  --panel-darker: #050308;

  --grad-a: #1a0033;
  --grad-b: #4c007a;

  --term-green: #33ff66;
  --led-green: #2bf872;

  /* --- reusable glows --- */
  --glow-purple: rgba(178, 44, 255, 0.9);
  --glow-purple-soft: rgba(178, 44, 255, 0.8);
  --glow-violet-bright: rgba(157, 0, 255, 0.9);
  --line-purple: rgba(157, 0, 255, 0.5);
  --glow-violet: rgba(157, 0, 255, 0.35);
  --glow-green: rgba(51, 255, 102, 0.7);
  --glow-led: rgba(43, 248, 114, 0.7);

  --font-stack: 'VCR OSD Mono', 'VT323', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-dark);
  font-family: var(--font-stack);
  color: var(--term-white);
}

html {
  /* Reserve the scrollbar gutter so pages with/without a scrollbar
     don't shift or resize against each other when navigating. */
  scrollbar-gutter: stable;
}

/* ================= TERMINAL SKIN ================= */
#realWebsite {
  width: 100%;
  min-height: 100vh;
  display: block;
  padding: 26px 10px 60px 10px;
  background: radial-gradient(ellipse 95% 75% at 35% 70%, #5d117e 0%, #2a0440 45%, #0e0018 75%, #020005 100%);
  background-attachment: fixed;
  position: relative;
  z-index: 1;
  font-family: var(--font-stack);
  color: var(--body-purple);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#realWebsite::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
      transparent 0px, transparent 2px,
      rgba(0, 0, 0, 0.30) 2px, rgba(0, 0, 0, 0.30) 4px);
  opacity: 0.5;
}

#realWebsite::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  background: radial-gradient(ellipse 95% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35) 85%, rgba(0, 0, 0, 0.7) 100%);
}

#realWebsite a:link {
  color: var(--link-purple);
  text-decoration: underline;
  text-shadow: 0 0 6px var(--glow-purple-soft);
}

#realWebsite a:visited {
  color: var(--link-visited);
}

#realWebsite a:active {
  color: var(--red-alert);
}

#realWebsite a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--card-purple-text);
}

#realWebsite ::selection {
  background: var(--neon-purple);
  color: var(--panel-black);
}

/* Retro-window anatomy every page reuses: a dark CRT "glass" frame
   (.vintage-page) topped by a gradient title bar with the fake [X]. */
.vintage-page {
  width: 820px;
  max-width: 96vw;
  margin: 0 auto;
  background: var(--panel-darker);
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 0 1px var(--panel-black), 0 0 34px var(--glow-violet), 0 16px 50px rgba(0, 0, 0, 0.9);
  text-align: left;
  position: relative;
  z-index: 2;
}

.title-bar {
  background: linear-gradient(to right, var(--grad-a), var(--grad-b));
  color: var(--link-purple);
  font-size: 13px;
  padding: 5px 10px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--neon-purple);
  text-shadow: 0 0 8px var(--glow-purple);
}

.title-bar .x-btn {
  background: var(--grad-a);
  border: 1px solid var(--neon-purple);
  color: var(--link-purple);
  font-size: 12px;
  width: 22px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* The bar's 2px letter-spacing adds invisible space after a lone
     character, pushing it left — zero it here for true centering. */
  letter-spacing: 0;
  /* Optical lift: measured from the real VCR OSD Mono file, its X ink
     sits ~0.6px below the line center — this puts the glyph dead-center. */
  padding-bottom: 2px;
  cursor: pointer;
  user-select: none;
}

.title-bar .x-btn:hover {
  background: var(--red-alert);
  border-color: var(--red-alert);
  color: var(--panel-black);
}

/* Fake window shutdown: yanked plug — wobble, flash line, dot, dark */
.vintage-page.kill-wobble {
  animation: killWobble 0.13s linear 1;
  filter: brightness(2);
}

@keyframes killWobble {
  0% {
    transform: scale(1, 1) skewX(0);
  }

  25% {
    transform: scale(1.02, 0.97) skewX(0.8deg);
  }

  50% {
    transform: scale(0.985, 1.015) skewX(-0.8deg);
  }

  75% {
    transform: scale(1.01, 0.99) skewX(0.4deg);
  }

  100% {
    transform: scale(1, 1) skewX(0);
  }
}

.vintage-page.kill-line {
  transition: transform 0.16s ease-in, filter 0.12s ease;
  filter: brightness(4) saturate(0.2);
  transform: scaleY(0.008);
}

.vintage-page.kill-dot {
  transition: transform 0.14s ease-in, opacity 0.3s ease 0.05s;
  transform: scale(0.004);
  opacity: 0;
}

/* Fullscreen kill FX: the light itself punches through the glass.
   Only shown while the fake [X] shutdown plays (see shutdown.js). */
#killLine {
  position: fixed;
  left: -2vw;
  right: -2vw;
  top: 50%;
  height: 5px;
  margin-top: -2.5px;
  z-index: 291;
  pointer-events: none;
  display: none;
  background: linear-gradient(to bottom, rgba(178, 44, 255, 0) 0%, #fff 35%, #fff 65%, rgba(178, 44, 255, 0) 100%);
  box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.9), 0 0 70px 16px rgba(178, 44, 255, 0.75), 0 0 140px 40px rgba(157, 0, 255, 0.45);
}

#killLine.on {
  display: block;
}

#killDot {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  z-index: 292;
  pointer-events: none;
  display: none;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #f3e8ff 30%, rgba(178, 44, 255, 0.9) 58%, rgba(157, 0, 255, 0) 72%);
  box-shadow: 0 0 26px 10px rgba(255, 255, 255, 0.85), 0 0 90px 34px rgba(178, 44, 255, 0.6);
}

#killDot.on {
  display: block;
  animation: dotDie 0.7s ease-out forwards;
}

@keyframes dotDie {
  0% {
    transform: scale(1.8);
    opacity: 1;
  }

  30% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.2);
    opacity: 0;
  }
}

#shutOverlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--panel-black);
  text-align: center;
  padding: 20px;
}

#shutOverlay.show {
  display: flex;
}

#shutOverlay .shut-msg {
  font-size: clamp(24px, 5vw, 40px);
  letter-spacing: 6px;
  color: var(--card-purple-text);
  text-shadow: 0 0 12px rgba(178, 44, 255, 0.95), 0 0 40px rgba(157, 0, 255, 0.6), 1px 0 0 rgba(255, 0, 60, 0.45), -1px 0 0 rgba(0, 255, 255, 0.45);
  animation: shutFlicker 3s infinite;
}

@keyframes shutFlicker {

  0%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  93% {
    opacity: 0.4;
  }

  94% {
    opacity: 1;
  }
}

#shutOverlay .shut-sub {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--link-visited);
  margin-top: 12px;
}

#shutOverlay .shut-reopen {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 2px;
}
/* Beats #realWebsite a:link on specificity in every state — no underline, ever. */
#shutOverlay a.shut-reopen:link,
#shutOverlay a.shut-reopen:visited,
#shutOverlay a.shut-reopen:hover,
#shutOverlay a.shut-reopen:active,
#rickOverlay a.shut-reopen:link,
#rickOverlay a.shut-reopen:visited,
#rickOverlay a.shut-reopen:hover,
#rickOverlay a.shut-reopen:active {
  text-decoration: none;
}

.banner {
  background: var(--panel-black);
  color: var(--card-purple-text);
  text-align: center;
  padding: 26px 10px 20px 10px;
  border-bottom: 1px solid var(--neon-purple);
  /* Fixed height for every page: banners hold 2 or 3 lines depending on
     the page, and without this the nav buttons below sit higher/lower
     per page. Content stays vertically centered inside. */
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner h1 {
  font-weight: normal;
  font-size: 46px;
  margin: 0;
  letter-spacing: 6px;
  color: var(--card-purple-text);
  text-shadow: 0 0 10px rgba(178, 44, 255, 0.95), 0 0 34px rgba(157, 0, 255, 0.6), 1px 0 0 rgba(255, 0, 60, 0.45), -1px 0 0 rgba(0, 255, 255, 0.45);
}

.banner .subtitle {
  font-size: 14px;
  color: var(--link-purple);
  margin-top: 8px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--glow-purple-soft);
}

.marquee-bar {
  background: var(--panel-dark);
  border-top: 1px solid var(--neon-purple);
  border-bottom: 1px solid var(--neon-purple);
  font-size: 13px;
  padding: 5px 0;
  color: var(--card-purple-text);
  text-shadow: 0 0 8px var(--glow-purple);
}

.marquee-bar marquee {
  display: block;
}

.vintage-nav {
  background: var(--panel-darker);
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--neon-purple);
  font-size: 13px;
}

.vintage-nav a {
  display: inline-block;
  background: var(--panel-dark);
  border: 1px solid var(--neon-purple);
  padding: 5px 10px;
  margin: 2px 2px;
  text-decoration: none !important;
  color: var(--link-purple) !important;
  text-shadow: 0 0 6px var(--glow-purple-soft);
  letter-spacing: 1px;
  white-space: nowrap;
}

.vintage-nav a:hover {
  background: var(--grad-a);
  color: #fff !important;
  box-shadow: 0 0 14px rgba(157, 0, 255, 0.7);
}

.vintage-nav a.active {
  background: var(--neon-purple);
  color: var(--panel-black) !important;
  text-shadow: none;
  box-shadow: 0 0 16px var(--glow-violet-bright);
}

.rainbow-hr {
  border: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--neon-purple), var(--link-purple), var(--neon-purple), transparent);
  box-shadow: 0 0 12px rgba(157, 0, 255, 0.7);
  margin: 12px 0;
}

.thin-hr {
  border: 0;
  border-top: 1px solid var(--line-purple);
  margin: 10px 0;
}

.vintage-footer {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 12px 10px;
  border-top: 1px solid var(--neon-purple);
  color: var(--body-purple);
  white-space: nowrap;
}

/* Footer flush under a box: the box's bottom border is the divider, so
   the footer's own top border (a double line) and top padding go — the
   12px box margin keeps the gap even like the bottom. */
.box + .vintage-footer {
  border-top: 0;
  padding-top: 0;
}

.webring {
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 14px rgba(157, 0, 255, 0.25);
  padding: 8px 6px;
  font-size: 12px;
  margin: 8px auto;
  max-width: 440px;
  background: var(--panel-dark);
}

/* =====================================================================
   CONSOLIDATED PAGE COMPONENTS
   These blocks used to be copy-pasted into every page's inline <style>.
   They are shared here so each page only carries its own unique rules.
   ===================================================================== */

/* Content panels */
.box {
  background: var(--panel-black);
  border: 1px solid var(--neon-purple);
  box-shadow: inset 0 0 24px rgba(157, 0, 255, 0.12), 0 0 16px rgba(157, 0, 255, 0.18);
  margin-bottom: 12px;
}

.box-title {
  background: linear-gradient(to right, var(--grad-a), var(--grad-b));
  color: var(--link-purple);
  font-size: 12px;
  padding: 4px 8px;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--neon-purple);
  text-shadow: 0 0 8px var(--glow-purple);
}

.box-body {
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.box-body b {
  color: var(--term-white);
}

/* Section headings + body copy */
.section h2 {
  font-weight: normal;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--card-purple-text);
  text-shadow: 0 0 10px rgba(178, 44, 255, 0.95);
  margin: 14px 0 6px 0;
}

.section h2:first-child {
  margin-top: 0;
}

.section p {
  margin: 6px 0;
}

/* Placeholder markers: bright so you can spot what to fill in */
.todo {
  color: var(--term-green);
  text-shadow: 0 0 8px var(--glow-green);
}

/* Key/value spec tables */
.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 12px;
}

.stat-table td {
  border: 1px solid var(--line-purple);
  padding: 5px 8px;
  vertical-align: top;
}

.stat-table td.k {
  color: var(--link-purple);
  width: 34%;
  letter-spacing: 2px;
  text-shadow: 0 0 6px var(--glow-purple-soft);
}

/* Two-column content table (side + main) */
.content-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.content-table td {
  vertical-align: top;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body-purple);
}

.col-side {
  width: 30%;
}

.col-main {
  width: 70%;
  border-left: 1px solid var(--line-purple);
}

/* Link buttons + badges */
#realWebsite img {
  image-rendering: pixelated;
}

#realWebsite img.badge {
  border: 1px solid var(--neon-purple);
}

/* Responsive: shrink the banner, stack two-column tables */
@media (max-width: 700px) {
  .banner h1 {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .col-side,
  .col-main {
    display: block;
    width: 100%;
    border: 0;
  }

  /* Narrow screens: shrink footer type so the one-liner still holds. */
  .vintage-footer {
    font-size: 10px;
    letter-spacing: 0;
  }
}
