/* ~*~*~* RETRO UNDER CONSTRUCTION STYLES *~*~*~ */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes rainbow {
  0%   { color: #ff0000; }
  16%  { color: #ff9900; }
  33%  { color: #ffee00; }
  50%  { color: #33ff00; }
  66%  { color: #00d0ff; }
  83%  { color: #cc00ff; }
  100% { color: #ff0000; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes tape-scroll {
  from { background-position: 0 0; }
  to { background-position: 80px 0; }
}

@keyframes progress-grow {
  from { width: 0%; }
  to { width: 37%; }
}

@keyframes strobe-bg {
  0%   { background-color: #000033; }
  20%  { background-color: #330033; }
  40%  { background-color: #003300; }
  60%  { background-color: #330000; }
  80%  { background-color: #003333; }
  100% { background-color: #000033; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes strobe-colors {
  0%   { background: #111; color: #00ff00; border-color: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
  33%  { background: #220022; color: #ffff00; border-color: #00ffff; box-shadow: 0 0 10px #00ffff; }
  66%  { background: #002222; color: #ff00ff; border-color: #ffff00; box-shadow: 0 0 10px #ffff00; }
  100% { background: #111; color: #00ff00; border-color: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fly-across {
  0%   { transform: translateX(-10vw) translateY(0) rotate(0deg); }
  25%  { transform: translateX(35vw) translateY(-20px) rotate(90deg); }
  50%  { transform: translateX(70vw) translateY(10px) rotate(180deg); }
  75%  { transform: translateX(100vw) translateY(-15px) rotate(270deg); }
  100% { transform: translateX(120vw) translateY(0) rotate(360deg); }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.1) 0, transparent 2px);
  color: #00ff00;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive, sans-serif;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><text y="18" font-size="18">🚧</text></svg>') 12 12, auto;
  position: relative;
  overflow-x: hidden;
  animation: strobe-bg 4s ease-in-out infinite;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff, transparent),
    radial-gradient(2px 2px at 30% 80%, #fff, transparent),
    radial-gradient(1px 1px at 50% 40%, #fff, transparent),
    radial-gradient(2px 2px at 70% 10%, #fff, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(2px 2px at 95% 90%, #fff, transparent),
    radial-gradient(1px 1px at 15% 55%, #fff, transparent),
    radial-gradient(2px 2px at 40% 15%, #fff, transparent),
    radial-gradient(1px 1px at 65% 75%, #fff, transparent),
    radial-gradient(2px 2px at 90% 30%, #fff, transparent);
  background-size: 100% 100%;
  animation: twinkle 3s ease-in-out infinite;
}

.top-marquee,
.bottom-marquee {
  position: relative;
  z-index: 2;
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  padding: 4px 0;
  font-size: 1rem;
}

.top-marquee {
  border-bottom: 4px dashed #000;
}

.bottom-marquee {
  border-top: 4px dashed #000;
  background: #ff00ff;
}

.flying-stuff {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.fly {
  position: absolute;
  left: 0;
  font-size: 1.8rem;
  animation-name: fly-across;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 20px auto 40px;
  background: #000066;
  border: 6px ridge #c0c0c0;
  padding: 0 0 20px;
  box-shadow: 0 0 25px rgba(0,255,0,0.4);
}

.banner {
  text-align: center;
  padding: 10px 0;
}

.tape {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  background:
    repeating-linear-gradient(
      45deg,
      #ffcc00,
      #ffcc00 20px,
      #000 20px,
      #000 40px
    );
  background-size: 80px 80px;
  animation: tape-scroll 3s linear infinite;
  height: 26px;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.tape span {
  visibility: hidden;
  width: 0;
}

h1 {
  font-size: 2rem;
  margin: 14px 8px;
  text-shadow: 2px 2px 0 #000;
}

.rainbow-text {
  animation: rainbow 2.5s linear infinite;
}

.blink {
  animation: blink 0.6s steps(1) infinite;
}

.wiggle {
  display: inline-block;
  animation: rainbow 2.5s linear infinite, wiggle 0.4s ease-in-out infinite;
}

.shake {
  display: inline-block;
  animation: blink 0.6s steps(1) infinite, shake 0.3s linear infinite;
}

.bounce {
  display: inline-block;
  animation: bounce 0.6s ease-in-out infinite;
}

.big-blink {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffff00;
}

.content-table {
  background: #000033;
  margin: 0 16px;
  border: 3px inset #999;
  padding: 16px;
}

.cell {
  padding: 10px 4px;
}

.cell.center {
  text-align: center;
}

.rule {
  border: none;
  border-top: 2px dashed #ffcc00;
  margin: 4px 0;
}

.construction-guy {
  font-size: 2.4rem;
  letter-spacing: 10px;
}

.progress-bar {
  width: 90%;
  max-width: 400px;
  height: 22px;
  margin: 8px auto;
  background: repeating-linear-gradient(45deg, #333, #333 6px, #222 6px, #222 12px);
  border: 3px inset #999;
}

.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #ffcc00,
    #ffcc00 10px,
    #000 10px,
    #000 20px
  );
  animation: progress-grow 2s ease-out forwards;
}

.small {
  font-size: 0.75rem;
  color: #cccccc;
}

.section-title {
  color: #ffff00;
  text-decoration: underline;
  text-shadow: 1px 1px 0 #000;
}

.counter {
  display: inline-block;
  background: #000;
  color: #ff0000;
  font-family: "Courier New", monospace;
  font-size: 2rem;
  letter-spacing: 6px;
  padding: 6px 14px;
  border: 3px inset #999;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  padding: 6px;
}

.badge {
  position: relative;
  border: 2px outset #999;
  font-size: 0.7rem;
  padding: 10px 8px;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease-out;
}

.badge::before,
.badge::after {
  content: "★";
  position: absolute;
  font-size: 0.65rem;
  animation: spin 2.4s linear infinite;
}

.badge::before { top: 3px; left: 4px; }
.badge::after { bottom: 3px; right: 4px; animation-direction: reverse; }

.badge:hover {
  transform: scale(1.15) rotate(-2deg);
  z-index: 5;
}

.badge.strobe {
  animation: strobe-colors 1.2s steps(1) infinite;
}

.badge:nth-child(2) { animation-delay: -0.4s; }
.badge:nth-child(3) { animation-delay: -0.8s; }
.badge:nth-child(4) { animation-delay: -0.2s; }

.footer {
  text-align: center;
  margin-top: 16px;
  color: #99ccff;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  font-size: 20px;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  .badges { grid-template-columns: 1fr 1fr; }
}
