:root {
  color-scheme: dark;
  font-family: "Times New Roman", "MS PMincho", "Hiragino Mincho ProN", serif;
  background: #000020;
  color: #ffff00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 14px;
  background-color: #000020;
  background-image:
    radial-gradient(circle, #ffffff 0 1px, transparent 1.5px),
    radial-gradient(circle, #00ffff 0 1px, transparent 1.5px),
    radial-gradient(circle, #ff00ff 0 1px, transparent 1.5px);
  background-position: 0 0, 13px 17px, 31px 7px;
  background-size: 37px 37px, 53px 53px, 71px 71px;
  image-rendering: pixelated;
}

a {
  color: #00ffff;
  text-decoration: underline;
}

a:visited {
  color: #ff66ff;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  background: #0000aa;
  outline: 2px dotted #ffff00;
  outline-offset: 2px;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 14px 18px 20px;
  background: rgba(0, 0, 51, 0.96);
  border: 8px ridge #c0c0c0;
  box-shadow: 0 0 0 3px #000000, 0 0 28px #000000;
  text-align: center;
}

.site-header h1 {
  margin: 8px 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 8vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0066ff, #ff00ff, #ff0000);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 #000000);
  animation: rainbow-slide 5s linear infinite;
}

.star-line {
  margin: 5px 0;
  color: #00ffff;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 10px 0 14px;
  color: #ffffff;
  font-weight: 700;
}

.marquee {
  overflow: hidden;
  width: 100%;
  padding: 5px 0;
  border: 2px inset #c0c0c0;
  background: #000000;
  color: #00ff00;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: marquee 14s linear infinite;
}

.rainbow-rule {
  height: 8px;
  margin: 18px 0;
  border: 0;
  background: linear-gradient(90deg, #ff0000 0 16.6%, #ff9900 16.6% 33.2%, #ffff00 33.2% 49.8%, #00ff00 49.8% 66.4%, #00ffff 66.4% 83%, #ff00ff 83% 100%);
}

.welcome-box {
  padding: 10px 14px;
  border: 3px double #00ffff;
  background: #000055;
  color: #ffffff;
}

.welcome-box h2,
.information h2 {
  margin: 0 0 9px;
  color: #ffff00;
  font-size: 1.25rem;
}

.welcome-box p {
  margin: 0;
  line-height: 1.7;
}

.blink {
  color: #ff0000;
  background: #ffff00;
  padding: 1px 5px;
  font-family: Arial, sans-serif;
  animation: blink 0.8s steps(1, end) infinite;
}

.counter-panel {
  margin: 22px auto;
  padding: 16px;
  border: 6px ridge #c0c0c0;
  background: #000000;
}

.you-are,
.visitor-message {
  margin: 4px 0;
  color: #ff66ff;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
}

.counter-frame {
  display: inline-block;
  min-width: min(100%, 350px);
  margin: 8px 0;
  padding: 8px 14px;
  border: 5px inset #808080;
  background: #050505;
}

#count {
  display: block;
  color: #39ff14;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(3rem, 13vw, 6.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 5px #00ff00, 0 0 12px #00aa00;
  font-variant-numeric: tabular-nums;
}

.counter-status {
  min-height: 1.3em;
  margin: 9px 0 0;
  color: #00ffff;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 0.85rem;
}

.construction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0;
  padding: 8px;
  border: 4px outset #ffff00;
  color: #000000;
  background: repeating-linear-gradient(-45deg, #ffff00 0 14px, #000000 14px 28px);
  font-family: Arial, sans-serif;
}

.construction strong {
  padding: 6px 10px;
  color: #ff0000;
  background: #ffffff;
}

.construction span {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #000000;
  background: #ffff00;
  font-weight: 900;
  animation: blink 1s steps(1, end) infinite;
}

.information {
  margin: 18px 0;
}

.information table {
  width: min(100%, 560px);
  margin: 0 auto;
  border-collapse: collapse;
  background: #000044;
  color: #ffffff;
  text-align: left;
}

.information th,
.information td {
  padding: 7px 10px;
  border: 2px solid #00ffff;
}

.information th {
  width: 32%;
  color: #ffff00;
  background: #000088;
}

.web-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0;
}

.badge {
  display: grid;
  width: 88px;
  height: 31px;
  place-content: center;
  border: 2px outset #ffffff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.badge-blue {
  color: #ffffff;
  background: #0000aa;
}

.badge-rainbow {
  color: #000000;
  background: linear-gradient(#ff0000, #ffff00, #00ff00, #00ffff, #ff00ff);
}

.badge-mac {
  color: #000000;
  background: #dddddd;
}

.badge-green {
  color: #00ff00;
  background: #000000;
}

.webring {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px;
  border: 2px dashed #ff00ff;
  color: #c0c0c0;
  background: #000000;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
}

.webring strong {
  color: #ff00ff;
}

footer {
  margin-top: 20px;
  color: #ffffff;
  font-size: 0.85rem;
}

.copyright {
  font-family: "Courier New", monospace;
  color: #c0c0c0;
}

.noscript {
  width: min(100% - 28px, 760px);
  margin: 12px auto;
  padding: 10px;
  color: #ffffff;
  background: #aa0000;
  border: 3px outset #ffffff;
  text-align: center;
}

@keyframes rainbow-slide {
  to {
    background-position: -200% 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-200%);
  }
}

@keyframes blink {
  50% {
    visibility: hidden;
  }
}

@media (max-width: 560px) {
  body {
    padding: 7px;
  }

  .page-shell {
    padding: 10px 9px 16px;
    border-width: 5px;
  }

  .welcome-box p br {
    display: none;
  }

  .construction {
    justify-content: center;
  }

  .construction span {
    display: none;
  }

  .information th,
  .information td {
    padding: 6px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .marquee span {
    padding-left: 0;
    white-space: normal;
  }
}
