/* Order of the Seventh Satellite - Official Stylesheet
   Optimized for Netscape Navigator 3.0 at 800x600. Works on your device anyway. */

html { background: #000; }

body {
  margin: 0;
  padding: 16px;
  color: #ffffff;
  background-color: #000;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #ccc 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #aaf 50%, transparent 51%),
    radial-gradient(1px 1px at 170px 20px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 240px 230px, #ffd 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 110px, #888 50%, transparent 51%);
  background-size: 260px 260px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.4;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

a { color: #66ccff; }
a:visited { color: #cc66ff; }
a:hover { color: #ffff00; }

h1, h2, h3 { font-weight: bold; margin: 0.6em 0 0.3em; }
h1 { font-size: 40px; color: #ffcc00; letter-spacing: 2px; text-shadow: 0 0 12px #ff6600; }
h2 { font-size: 28px; color: #ff3333; }
h3 { font-size: 22px; color: #66ff66; }

hr {
  border: 0;
  height: 6px;
  margin: 24px auto;
  width: 90%;
  background: linear-gradient(90deg, transparent, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, transparent);
}

p { margin: 0.6em 0; }
.left { text-align: left; }
.small { font-size: 14px; }
.tiny { font-size: 11px; color: #888; }
.red { color: #ff3333; }
.yellow { color: #ffff00; }
.green { color: #66ff66; }
.cyan { color: #66ffff; }
.violet { color: #cc99ff; }

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.redalert {
  display: inline-block;
  background: #ff0000;
  color: #ffff00;
  font-weight: bold;
  font-size: 30px;
  padding: 6px 18px;
  border: 4px ridge #ffff00;
  margin: 10px 0;
}

/* The scrolling marquee, rebuilt because <marquee> is a creature of the Old Realm. */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
  background: #110022;
  color: #00ff66;
  font-family: "Courier New", monospace;
  font-size: 16px;
  padding: 4px 0;
  margin: 12px 0;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 28s linear infinite;
}
@keyframes scroll { to { transform: translateX(-100%); } }

/* The Comet */
.comet-stage {
  position: relative;
  height: 180px;
  margin: 10px auto;
  max-width: 520px;
}
.comet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffffff, #aeeaff 35%, #3aa0ff 60%, transparent 72%);
  box-shadow: 0 0 30px 10px rgba(120, 200, 255, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}
.comet::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 30px;
  width: 260px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(140, 210, 255, 0.15) 40%, rgba(200, 240, 255, 0.75));
  filter: blur(3px);
  transform-origin: right center;
  transform: rotate(-14deg);
}
/* The Sacred Odyssey (a silver minivan, side view, facing right) */
.vessel {
  position: absolute;
  top: 30%;
  left: 60%;
  width: 40px;
  height: 14px;
  background: linear-gradient(#e6e6e6, #9a9a9a);
  border-radius: 9px 5px 3px 3px;
  box-shadow: 0 0 10px rgba(255, 255, 200, 0.6);
  animation: hide 6s ease-in-out infinite;
}
.vessel::before { /* windows */
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 27px;
  height: 5px;
  background: linear-gradient(90deg, #335 0 30%, #9a9a9a 30% 34%, #335 34% 66%, #9a9a9a 66% 70%, #446 70%);
  border-radius: 4px 3px 0 0;
}
.vessel::after { /* wheels */
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
  box-shadow: 21px 0 0 #111;
}
.vessel i { /* headlight beam */
  position: absolute;
  top: 6px;
  left: 40px;
  width: 26px;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 180, 0.9), transparent);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
}
@keyframes pulse { 50% { box-shadow: 0 0 46px 16px rgba(150, 220, 255, 0.9); } }
@keyframes hide {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50% { transform: translate(14px, -6px); opacity: 0.95; }
}

/* Nav */
.nav {
  margin: 16px auto;
  padding: 0;
  list-style: none;
}
.nav li { margin: 8px 0; font-size: 20px; }
.nav li::before { content: "\2726  "; color: #ffcc00; }
.nav li::after { content: "  \2726"; color: #ffcc00; }

/* Tables, the beating heart of 1997 layout */
table.old {
  margin: 12px auto;
  border: 3px outset #888;
  border-collapse: separate;
  border-spacing: 2px;
  background: #0a0a2a;
  max-width: 100%;
}
table.old td, table.old th {
  border: 2px inset #666;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
table.old th { background: #330066; color: #ffcc00; }

.box {
  border: 3px double #ffcc00;
  background: rgba(20, 0, 40, 0.85);
  padding: 12px 16px;
  margin: 16px auto;
  text-align: left;
}

.counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  background: #000;
  color: #00ff00;
  border: 2px inset #888;
  padding: 2px 6px;
  letter-spacing: 3px;
  font-size: 20px;
}

.badges { margin: 18px 0; }
.badge {
  display: inline-block;
  width: 88px;
  height: 31px;
  margin: 3px;
  font: bold 10px/1.1 Arial, sans-serif;
  border: 1px solid #fff;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 3px 2px;
  overflow: hidden;
}
.b1 { background: linear-gradient(#004, #00a); color: #ff0; }
.b2 { background: #fff; color: #c00; }
.b3 { background: linear-gradient(90deg, #060, #0c0); color: #fff; }
.b4 { background: #000; color: #0ff; border-color: #0ff; }
.b5 { background: repeating-linear-gradient(45deg, #ff0, #ff0 6px, #000 6px, #000 12px); color: #000; text-shadow: 0 0 2px #ff0, 0 0 2px #ff0; }
.b6 { background: linear-gradient(#606, #f0f); color: #fff; }

.construction {
  display: inline-block;
  padding: 6px 12px;
  background: repeating-linear-gradient(45deg, #ffcc00, #ffcc00 10px, #000 10px, #000 20px);
  color: #000;
  font: bold 14px Arial, sans-serif;
}
.construction b { background: #ffcc00; padding: 2px 6px; }

/* Forms */
input[type="text"], input[type="password"], textarea, select {
  font-family: "Courier New", monospace;
  font-size: 16px;
  background: #000;
  color: #0f0;
  border: 2px inset #888;
  padding: 4px;
  max-width: 100%;
  box-sizing: border-box;
}
textarea { width: 100%; }
button, input[type="submit"] {
  font: bold 16px Arial, sans-serif;
  background: #c0c0c0;
  color: #000;
  border: 3px outset #fff;
  padding: 4px 14px;
  cursor: pointer;
}
button:active { border-style: inset; }

.quiz-q { margin: 14px 0; }
.quiz-q label { display: block; margin: 3px 0 3px 18px; cursor: pointer; }

.result {
  display: none;
  border: 4px ridge #00ff66;
  background: #001a0a;
  padding: 14px;
  margin: 16px 0;
  text-align: center;
}

.bigclock {
  font-family: "Courier New", monospace;
  font-size: 44px;
  color: #ff3333;
  text-shadow: 0 0 10px #f00;
  letter-spacing: 2px;
}

.entry {
  border-bottom: 1px dashed #555;
  padding: 10px 0;
  text-align: left;
}
.entry .who { color: #ffcc00; font-weight: bold; }
.entry .when { color: #888; font-size: 13px; }

.footer {
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
}

#cursor-trail span {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  color: #ffff99;
  z-index: 50;
  transition: opacity 0.6s linear;
}

/* The embedded MIDI player, as was the custom */
#midi {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
  padding: 3px 8px 3px 3px;
  font: 12px "MS Sans Serif", Tahoma, Arial, sans-serif;
}
#midi button { font-size: 12px; padding: 1px 7px; border-width: 2px; }

#rollmark {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 60;
  font: bold 13px "Courier New", monospace;
  color: #ffd84a;
  background: #000;
  border: 1px solid #ffd84a;
  padding: 3px 7px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 216, 74, 0.5);
}

/* Sigils of the Odometer. Six are hidden. */
.sigil { color: #c9a227; font-family: "Courier New", monospace; font-size: 12px; letter-spacing: 1px; }

@media (max-width: 600px) {
  body { font-size: 16px; padding: 10px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .bigclock { font-size: 28px; }
  .redalert { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .blink, .marquee span, .comet, .vessel { animation: none; }
  .marquee span { padding-left: 0; white-space: normal; }
}
