/* ============================================================
   retro-fx.css -- the 90s furniture shared by every page:
   scrolling news bar, footer badges, visit counter, webring, sparkle trail.
   The markup for these is added by retro.js.
   ============================================================ */

/* ---------- Scrolling news bar (injected by retro.js) ---------- */
.marquee-bar {
  background: #800080;
  border-bottom: 3px ridge #ff66ff;
  color: #ffff00;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-bar .marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 34s linear -7s infinite;
}
.marquee-bar:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* extras injected by retro.js */
.retro-extras { flex: 0 0 100%; text-align: center; font-size: 12px; color: #c0c0c0; }
.retro-extras p { margin: 10px 0; color: #c0c0c0; }
.retro-extras .fire { display: block; width: 100%; height: 40px; image-rendering: pixelated; margin: 4px 0 14px; }
.retro-extras .construction { vertical-align: middle; max-width: 70%; height: auto; }
.retro-extras .worker { vertical-align: middle; }
.retro-extras .flip { transform: scaleX(-1); }
.retro-extras .mailrow img { vertical-align: middle; margin-right: 6px; }

.counter .digits {
  display: inline-block;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 3px;
  padding: 1px 6px;
  border: 2px inset #808080;
  vertical-align: middle;
}

.webring {
  display: inline-block;
  background: #c0c0c0;
  color: #000;
  border: 3px outset #fff;
  padding: 5px 12px;
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 12px;
}
.webring b { color: #000080; }
.webring a { color: #0000ee; margin: 0 4px; }
.webring a:visited { color: #551a8b; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.badges img { image-rendering: pixelated; }
.badge88 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  border: 2px outset #d0d0d0;
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
}
.badge88 b { font-size: 11px; }
.badge88.y2k { background: #000; color: #00ff00; border-color: #00ff00; }
.badge88.y2k b { animation: blink 1s steps(1, end) infinite; }
.badge88.secure { background: linear-gradient(#ffffcc, #ffcc00); color: #000; }
.badge88.any { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; }
.badge88.any b { color: #ffff00; }
.badge88.free { background: #ff00ff; color: #fff; }
.badge88.free b { color: #ffff00; }

.fx-toggle {
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 11px;
  padding: 2px 10px;
  cursor: pointer;
}
.fx-toggle:active { border-style: inset; }

.cursor-sparkle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  line-height: 1;
  animation: sparkle-fall 0.8s ease-out forwards;
}
@keyframes sparkle-fall {
  to { transform: translateY(26px) rotate(160deg) scale(0.3); opacity: 0; }
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Effects off (the footer switch, or the OS reduced-motion setting) ---------- */
.fx-off *, .fx-off *::before, .fx-off *::after { animation: none !important; }
.fx-off .marquee-bar .marquee-track { padding-left: 8px; }
.fx-off .marquee-bar { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .marquee-bar .marquee-track { padding-left: 8px; }
  .marquee-bar { overflow-x: auto; }
}
