@font-face {
  font-family: "Press Start 2P";
  src: url("assets/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #7cff6a;
  --yellow: #ffde00;
  --gold: #ffcc00;
  --aqua: #66ffff;
  --fuchsia: #ff66ff;
  --ink: #f6f0c8;
  --panel: rgba(8, 12, 4, 0.86);
  --edge: #c8a030;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Lucida Console", "Courier New", Courier, monospace;
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: #14180c;
  background-image: url("assets/tile-retro.png");
  background-repeat: repeat;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: #000;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.stripe {
  height: 18px;
  background: repeating-linear-gradient(
    -45deg,
    #111 0 12px,
    #ffcc00 12px 24px
  );
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.marquee {
  overflow: hidden;
  background: #000;
  color: var(--yellow);
  border-bottom: 2px solid var(--gold);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.7rem;
  line-height: 2.4;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 28s linear infinite;
}

.marquee-track span {
  padding-right: 3rem;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.mast {
  text-align: center;
  padding: 1.25rem 0.75rem 0.5rem;
}

.eyebrow {
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.7rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.blink {
  animation: blink 1.1s step-start infinite;
}

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

h1 {
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: clamp(1.05rem, 4.5vw, 1.55rem);
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000, 0 0 12px rgba(255, 204, 0, 0.45);
  line-height: 1.45;
  margin: 0 0 0.6rem;
}

.tag {
  color: var(--aqua);
  margin: 0 0 1rem;
}

.logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 1.1rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.85));
}

.sign-wrap { margin: 0 0 1rem; }

.sign {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.pardon {
  color: var(--lime);
  font-weight: 700;
  margin: 0.25rem 0 1rem;
}

.panel {
  background: var(--panel);
  border: 3px solid var(--edge);
  outline: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 1rem 1.1rem 1.05rem;
  margin: 0 0 1.15rem;
}

h2 {
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: clamp(0.72rem, 3.2vw, 0.95rem);
  color: var(--fuchsia);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 0.85rem;
  text-shadow: 2px 2px 0 #000;
}

.star { color: var(--yellow); }

.panel p { margin: 0 0 0.75rem; }
.panel p:last-child { margin-bottom: 0; }

a {
  color: var(--aqua);
  font-weight: 700;
}
a:visited { color: var(--fuchsia); }
a:hover, a:focus {
  color: var(--yellow);
}

.counter {
  text-align: center;
  margin: 1.4rem 0 0.6rem;
}

.counter-label {
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.62rem;
  color: var(--lime);
  margin: 0 0 0.5rem;
}

.digits {
  display: inline-flex;
  gap: 3px;
  margin: 0;
  padding: 0.35rem 0.4rem;
  background: #050505;
  border: 3px inset #555;
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #ff3b3b;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.8);
}

.updated {
  text-align: center;
  color: #c8d0a0;
  font-size: 0.92rem;
  margin: 0.4rem 0 0;
}

footer {
  background: #000;
  color: #c8d0a0;
  text-align: center;
  padding: 0.9rem 1rem 1.3rem;
  font-size: 0.92rem;
}
footer p { margin: 0.25rem 0; }
.gag { color: var(--yellow); font-style: italic; }

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .marquee { font-size: 0.58rem; }
  .panel { padding: 0.9rem; }
  .digits { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blink, .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
