* { box-sizing: border-box; }
body {
  margin: 0; color: #fff; background-color: #000014;
  font-family: "Times New Roman", Times, serif; overflow-x: hidden;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #ffd, transparent),
    radial-gradient(1.6px 1.6px at 160px 60px, #fff, transparent),
    radial-gradient(1px 1px at 210px 180px, #aaf, transparent),
    radial-gradient(1px 1px at 120px 210px, #fff, transparent),
    radial-gradient(1.3px 1.3px at 40px 170px, #fcf, transparent);
  background-size: 240px 240px;
}
a { color: #00ffff; }
a:visited { color: #ff66ff; }
:focus-visible { outline: 2px dashed #ffff00; outline-offset: 3px; }

.marquee {
  overflow: hidden; white-space: nowrap; padding: 4px 0;
  background: #000080; color: #ffff00; border-bottom: 2px solid #ffff00;
  font: bold 15px "Times New Roman", serif;
}
.marquee span { display: inline-block; padding-left: 100%; animation: marq 16s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }

.page { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; text-align: center; }

.rainbow {
  margin: .2em 0;
  font: bold clamp(2rem, 8vw, 3.6rem) "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #303); animation: rb 3s linear infinite;
}
@keyframes rb { to { background-position: 200% center; } }
.sub { color: #ff99ff; font-style: italic; }
.blink { animation: blink 1s steps(1) infinite; }
.blink-slow { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.construction {
  max-width: 420px; margin: 18px auto; padding: 7px;
  background: repeating-linear-gradient(-45deg, #ffd800 0 16px, #111 16px 32px);
}
.construction span { background: #ffd800; color: #000; padding: 2px 12px; font: bold 1rem Arial, sans-serif; letter-spacing: .1em; }

.counter { margin: .5em 0; font: bold .85rem "Courier New", monospace; color: #33ff33; }
.odo {
  display: inline-block; padding: 1px 5px; letter-spacing: .25em;
  background: #000; border: 2px inset #777; color: #33ff33; font-family: "Courier New", monospace;
}

.rainbow-hr { height: 6px; margin: 26px 0; border: 0; background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f); }

.win95 {
  max-width: 520px; margin: 0 auto; text-align: left; color: #000; background: #c0c0c0;
  border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 1px 1px 0 #000;
  font: 14px Tahoma, "MS Sans Serif", Arial, sans-serif;
}
.titlebar {
  display: flex; justify-content: space-between; padding: 3px 6px;
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: bold;
}
.win-body { display: grid; gap: 10px; padding: 12px; }
.win95 label { display: grid; gap: 4px; }
.win95 input, .win95 textarea {
  width: 100%; padding: 4px; color: #000; background: #fff;
  border: 2px inset #fff; font: 14px "Courier New", monospace;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.buttons button, .win-btn {
  padding: 4px 14px; cursor: pointer; color: #000; background: #c0c0c0;
  border: 2px solid; border-color: #fff #404040 #404040 #fff; font: 14px Tahoma, Arial, sans-serif;
}
.buttons button:active, .win-btn:active { border-color: #404040 #fff #fff #404040; }
.buttons button:disabled { color: #808080; }
.fine { margin: 0; font-size: 12px; color: #222; }

.gb-status { min-height: 1.4em; margin: 16px 0 0; color: #ffff00; font: bold 1.1rem "Comic Sans MS", "Comic Neue", cursive; }

h2 { color: #ff66ff; font: bold 1.4rem "Comic Sans MS", "Comic Neue", cursive; }
.entry { margin: 14px 0; padding: 10px 14px; text-align: left; background: rgba(0, 0, 70, .7); border: 3px ridge #8888aa; }
.entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #99ccff; font: 13px "Courier New", monospace; }
.entry .who { color: #ffff66; font: bold 1.05rem "Comic Sans MS", "Comic Neue", cursive; overflow-wrap: anywhere; }
.entry .new { padding: 0 4px; color: #f00; background: #ff0; font: bold 11px Arial, sans-serif; animation: blink 1s steps(1) infinite; }
.entry .msg { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.35; }
.empty { color: #ccc; font-style: italic; }

footer { color: #aaa; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .rainbow, .blink, .blink-slow, .marquee span, .entry .new { animation: none; }
}
