/* Fonts are self-hosted (OFL) so no visitor request ever goes to Google. */
@font-face { font-family: "VT323"; font-weight: 400; font-display: swap; src: url(/fonts/vt323-latin.woff2) format("woff2"); }
@font-face { font-family: "Comic Neue"; font-weight: 700; font-display: swap; src: url(/fonts/comic-neue-700-latin.woff2) format("woff2"); }
/* Layout: one 760px "frameset" — a beveled left nav + a content well — on a
   tiled starfield, the way a 1997 GeoCities page sat on a black desktop.
   Single deliberate dark world (no light theme): it's a period piece. */
:root {
  color-scheme: dark;
  --space: #00001a;        /* the night sky behind the tiles */
  --panel: #c0c0c0;        /* Windows 95 face gray */
  --panel-hi: #ffffff;     /* bevel highlight */
  --panel-lo: #808080;     /* bevel shadow */
  --panel-ink: #000000;    /* text on gray */
  --ink: #e8e8ff;          /* body text on space */
  --link: #00ffff;         /* unvisited link cyan */
  --visited: #ff66ff;      /* visited link magenta */
  --hot: #ffff00;          /* attention yellow */
  --lime: #33ff33;         /* terminal green */
  --hazard: #ffcc00;       /* construction tape */
  --font-display: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  --font-body: "Times New Roman", Times, Georgia, serif;
  --font-term: "VT323", "Courier New", Courier, monospace;
}
body {
  background-color: var(--space);
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff 99%, transparent),
    radial-gradient(1px 1px at 63px 77px, #ccf 99%, transparent),
    radial-gradient(1.5px 1.5px at 101px 34px, #fff 99%, transparent),
    radial-gradient(1px 1px at 141px 121px, #ffc 99%, transparent),
    radial-gradient(1px 1px at 29px 139px, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 157px 66px, #cff 99%, transparent);
  background-size: 170px 160px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  padding-inline: 16px;
  padding-block: 24px 40px;
}
a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hot); }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--hot); outline-offset: 2px; }

.page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* ---------- masthead ---------- */
.masthead { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.rainbow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  background: linear-gradient(90deg, #ff3b3b, #ff9f1c, #ffff00, #33ff33, #00ffff, #6a7bff, #ff66ff, #ff3b3b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slide 6s linear infinite;
}
@keyframes slide { to { background-position: 200% 0; } }
.tagline { font-family: var(--font-term); font-size: 22px; color: var(--lime); margin: 0; }

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 2px solid var(--hot);
  font-family: var(--font-term);
  font-size: 22px;
  color: var(--hot);
  padding-block: 2px;
}
.marquee span { display: inline-block; padding-left: 100%; animation: crawl 22s linear infinite; }
@keyframes crawl { to { transform: translateX(-100%); } }

.construction {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px;
  color: #000;
  font-family: var(--font-display); font-weight: 700;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, #111 14px 28px);
}
.construction b { background: var(--hazard); padding: 2px 10px; border: 2px solid #000; }

/* ---------- frameset ---------- */
.frames { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: start; }
.bevel {
  background: var(--panel); color: var(--panel-ink);
  border: 2px solid; border-color: var(--panel-hi) var(--panel-lo) var(--panel-lo) var(--panel-hi);
  box-shadow: 1px 1px 0 #000;
}
.titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 2px 6px; display: flex; justify-content: space-between; align-items: center;
}
.titlebar i { font-style: normal; display: flex; gap: 2px; }
.titlebar i::before, .titlebar i::after {
  content: ""; width: 12px; height: 11px; background: var(--panel);
  border: 1px solid; border-color: var(--panel-hi) #000 #000 var(--panel-hi);
}
nav ul { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
nav a {
  display: block; padding: 3px 8px; text-decoration: none; color: var(--panel-ink);
  border: 2px solid; border-color: var(--panel-hi) var(--panel-lo) var(--panel-lo) var(--panel-hi);
  font-weight: 700;
}
nav a:visited { color: var(--panel-ink); }
nav a:hover { background: #000080; color: #fff; }
nav a:active { border-color: var(--panel-lo) var(--panel-hi) var(--panel-hi) var(--panel-lo); }
.nav-note { margin: 0; padding: 0 10px 10px; font-size: 13px; }
.new {
  color: #ff0000; font-family: var(--font-term); font-size: 18px; margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { visibility: hidden; } }

.well { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
section h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--hot);
  margin: 0 0 6px; text-shadow: 2px 2px 0 #a00;
}
section p { margin: 0 0 8px; max-width: 62ch; }
hr.rainbow-hr {
  border: 0; height: 4px; width: 100%; margin: 0;
  background: linear-gradient(90deg, #ff3b3b, #ffff00, #33ff33, #00ffff, #ff66ff);
}

.specs { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.specs li::marker { content: "\25B6  "; color: var(--lime); }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 18px; padding: 0; margin: 0; list-style: none; }
.links li { min-width: 0; }
.links small { display: block; color: #aab; font-size: 14px; }

/* ---------- counter & badges ---------- */
.footer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.counter { font-family: var(--font-term); font-size: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.odometer { display: flex; gap: 2px; }
.odometer span {
  background: #000; color: var(--lime); font-size: 30px; line-height: 1; padding: 4px 6px;
  border: 2px inset var(--panel-lo); font-variant-numeric: tabular-nums;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.badge {
  width: 88px; height: 31px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-term); font-size: 15px; line-height: 0.95; text-transform: uppercase;
  border: 1px solid #fff; outline: 1px solid #000;
}
.b1 { background: #000; color: var(--lime); }
.b2 { background: #800000; color: #fff; }
.b3 { background: #000080; color: var(--hot); }
.b4 { background: var(--panel); color: #000; }
.b5 { background: #ff66ff; color: #000; }

.webring { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-weight: 700; }
.webring .ring { font-family: var(--font-display); color: var(--hot); }

.fine { font-size: 14px; color: #aab; max-width: 60ch; margin: 0; }

/* ---------- arcade cartridges ---------- */
.carts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cart { display: flex; flex-direction: column; min-width: 0; }
.cart .label {
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1;
  background: var(--panel); color: var(--panel-ink);
}
.cart .label p { margin: 0; font-size: 15px; line-height: 1.35; }
.cart .year { font-family: var(--font-term); font-size: 18px; color: #000080; }
.cart .play {
  align-self: flex-start; margin-top: auto;
  font-family: var(--font-term); font-size: 20px; text-decoration: none;
  background: #000; color: var(--lime); padding: 2px 10px;
  border: 2px solid; border-color: var(--panel-hi) var(--panel-lo) var(--panel-lo) var(--panel-hi);
}
.cart .play:visited { color: var(--lime); }
.cart .play:hover { color: var(--hot); }
.cart .where { font-size: 13px; color: #333; }

/* ---------- guestbook ---------- */
.gb { display: flex; flex-direction: column; gap: 12px; }
.gb form { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.gb label { font-weight: 700; display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.gb input, .gb textarea {
  font: 16px var(--font-body); color: #000; background: #fff; padding: 4px 6px;
  border: 2px solid; border-color: var(--panel-lo) var(--panel-hi) var(--panel-hi) var(--panel-lo);
}
.gb textarea { min-height: 70px; resize: vertical; }
.gb .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb button {
  align-self: flex-start; font: 700 15px var(--font-body); color: #000; background: var(--panel);
  padding: 4px 16px; cursor: pointer;
  border: 2px solid; border-color: var(--panel-hi) var(--panel-lo) var(--panel-lo) var(--panel-hi);
}
.gb button:active { border-color: var(--panel-lo) var(--panel-hi) var(--panel-hi) var(--panel-lo); }
.gb .status { margin: 0; font-size: 15px; color: #000080; font-weight: 700; }
.gb .rules { margin: 0; font-size: 13px; }
.entries {
  border: 2px dashed var(--link); padding: 12px; margin: 0;
  font-family: var(--font-display); color: var(--ink); text-align: center;
}

@media (max-width: 600px) {
  .frames { grid-template-columns: 1fr; }
  nav ul { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rainbow, .marquee span, .new { animation: none; }
  .marquee span { padding-left: 0; }
}
.gb .entries-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gb .entry { padding: 8px 12px; border: 2px dashed var(--link); }
.gb .entry b { font-family: var(--font-display); color: var(--hot); }
.gb .entry time { font-family: var(--font-term); color: var(--lime); font-size: 17px; margin-left: 8px; }
.gb .entry p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- sidebar stack, DANAMP player, character sheet ---------- */
.side { display: flex; flex-direction: column; gap: 14px; }
.player .lcd { background: #000; margin: 6px; padding: 6px 8px; border: 2px inset var(--panel-lo); font-family: var(--font-term); color: var(--lime); }
.player .lcd p { margin: 0; }
.player .track { overflow: hidden; white-space: nowrap; font-size: 18px; }
.player .track span { display: inline-block; padding-left: 100%; animation: crawl 12s linear infinite; }
.player .eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin: 4px 0; }
.player .eq b { width: 8px; background: linear-gradient(to top, var(--lime), var(--hot) 70%, #ff3b3b); animation: eq 0.9s ease-in-out infinite alternate; }
.player .eq b:nth-child(2n) { animation-duration: 0.6s; }
.player .eq b:nth-child(3n) { animation-duration: 1.2s; }
.player .eq b:nth-child(4n+1) { animation-delay: -0.3s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }
.player .queue { font-size: 15px; line-height: 1.15; color: #9f9; }

.sheet dl { margin: 0; padding: 10px 12px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.sheet dt { font-family: var(--font-term); font-size: 19px; color: #000080; text-transform: uppercase; }
.sheet dd { margin: 0; font-size: 16px; }
@media (max-width: 600px) { .sheet dl { grid-template-columns: 1fr; } .sheet dd { margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) {
  .player .track span, .player .eq b { animation: none; }
  .player .track span { padding-left: 0; }
  .player .eq b { height: 60%; }
}
