/* ============================================================
   Silent Death Online — 90's "under construction" landing page.
   Deliberately period-accurate: system fonts, table layout,
   <marquee>-style scroll, blink, visitor counter. Space skin on top
   (starfield, teal chrome) to keep it a little on-brand.
   Placeholder styling — iterate freely.
   ============================================================ */

html,
body {
  margin: 0;
  padding: 0;
  background: #000006;
  color: #c8f0ff;
  font-family: 'Courier New', Courier, monospace;
  min-height: 100%;
  text-align: center;
}

/* twinkly starfield injected by stars.js */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stars .star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* cursor comet trail (trail.js) */
.spark {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  color: #aefff2;
  text-shadow:
    0 0 8px #23c3d6,
    0 0 16px #23c3d6;
  font-size: 22px;
  line-height: 1;
  animation: spark-fade 0.8s ease-out forwards;
}
@keyframes spark-fade {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) translateY(8px);
  }
}

/* everything above the stars */
center {
  position: relative;
  z-index: 1;
}

/* the classic beveled "frame" — fixed width, centered.
   A div (not a table) so the marquee is clipped rather than stretching it. */
.frame {
  width: 640px;
  max-width: 92%;
  box-sizing: border-box;
  margin: 28px auto;
  background: #05141a;
  border: 4px ridge #23c3d6;
  box-shadow:
    0 0 24px #0a7f8e,
    inset 0 0 40px #001015;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* scrolling marquee header */
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: #001b22;
  border: 2px inset #23c3d6;
  color: #7dffea;
  font-weight: bold;
  padding: 4px 0;
  margin-bottom: 16px;
}
/* the real <marquee> tag handles the scroll; just size it to the bar */
.marquee {
  display: block;
  width: 100%;
}

.logo {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  line-height: 1;
  margin: 8px 0 24px;
  color: #eaffff;
  text-shadow:
    0 0 6px #23c3d6,
    2px 2px 0 #0a7f8e,
    4px 4px 0 #063f47;
}
.logo .online {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  letter-spacing: 8px;
  color: #ff5a3c;
  text-shadow: 0 0 6px #ff5a3c;
}

/* under-construction bar — yellow/black hazard stripes that march sideways,
   the way the old animated construction GIFs did. Seamless "barber pole":
   a 45deg tile of background-size 40px translated by exactly one tile width. */
.construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
  padding: 8px;
  background-image: linear-gradient(
    45deg,
    #111 25%,
    #ffcc00 25%,
    #ffcc00 50%,
    #111 50%,
    #111 75%,
    #ffcc00 75%
  );
  background-size: 40px 40px;
  border: 3px outset #ffcc00;
  animation: march 2.5s linear infinite;
}
@keyframes march {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}
.digger {
  font-size: 30px;
}
.construction-text {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #000;
  background: #ffcc00;
  padding: 2px 8px;
  border: 2px solid #000;
}

.blink {
  animation: blink 2s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}

.tagline {
  font-size: 14px;
  line-height: 1.6;
  color: #a9e6f2;
}

/* animated rainbow divider — the classic scrolling "bar.gif" separator */
.rule {
  border: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff5a3c, #ffcc00, #4dff7a, #23c3d6, #7d5cff, #ff5a3c);
  background-size: 200% 100%;
  box-shadow: 0 0 8px rgba(125, 255, 234, 0.5);
  animation: bar-scroll 4s linear infinite;
  margin: 24px 0;
}
@keyframes bar-scroll {
  to {
    background-position: -200% 0;
  }
}

.counter-line {
  font-size: 13px;
  color: #a9e6f2;
}
.counter {
  display: inline-block;
  background: #000;
  color: #4dff7a;
  border: 2px inset #4dff7a;
  padding: 2px 6px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* classic 88x31 "best viewed with" browser badges (genuine GIFs) */
.badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.badge {
  display: block;
}

.madewith {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #5c8b96;
  margin-top: 10px;
}
.notepad {
  color: #a9e6f2;
  text-decoration: underline;
}

@media (max-width: 660px) {
  .frame {
    width: 92% !important;
  }
  .logo {
    font-size: 30px;
  }
}
