:root {
  --bg0: #130026;
  --bg1: #240046;
  --bg2: #001a44;
  --panel: #2f0f4d;
  --panel-light: #4a1b6e;
  --line: #f48bff;
  --text: #ffe5ff;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "VT323", monospace;
  background:
    url("assets/pattern 521.gif") 0 0 / auto repeat,
    radial-gradient(circle at 20% 10%, rgba(255, 122, 233, 0.2), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(91, 183, 255, 0.16), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(132, 0, 255, 0.3), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, var(--bg1), var(--bg0) 60%, #090012);
}

/* Soft-focus pass so the tiled BG feels less harsh */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(10, 4, 18, 0.5), rgba(10, 4, 18, 0.5)),
    url("assets/pattern 521.gif") 0 0 / auto repeat,
    radial-gradient(circle at 20% 10%, rgba(255, 122, 233, 0.2), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(91, 183, 255, 0.16), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(132, 0, 255, 0.3), transparent 45%);
  filter: blur(2.5px);
  opacity: 0.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  mix-blend-mode: soft-light;
}

.blinkies-page {
  width: min(1120px, 96vw);
  margin: 20px auto 28px;
  position: relative;
  z-index: 1;
}

.blinkies-header {
  border: 3px dashed var(--line);
  background: linear-gradient(180deg, rgba(80, 20, 115, 0.92), rgba(39, 8, 62, 0.95));
  box-shadow: 0 0 0 3px rgba(142, 71, 196, 0.6), 0 0 30px rgba(188, 71, 255, 0.35);
  padding: 14px 16px 10px;
}

.back-home {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #fff6ff;
  text-decoration: none;
  border: 2px dashed #ffd3ff;
  background: linear-gradient(180deg, #6a2c86, #44205f);
  font-family: "VT323", monospace;
  font-size: 1.3rem;
}

.back-home:hover {
  color: #3a083d;
  background: linear-gradient(180deg, #ffd1ff, #efabff);
}

.blinkies-header h1 {
  margin: 0 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: #ffe9ff;
  text-shadow: 2px 2px 0 #540e7a, 0 0 16px rgba(255, 180, 255, 0.5);
}

.blinkies-header marquee {
  padding: 4px 0;
  font-size: 1.4rem;
  color: #ffd0ff;
  border-top: 1px dashed rgba(255, 196, 255, 0.7);
  border-bottom: 1px dashed rgba(255, 196, 255, 0.7);
}

.blinkies-panel {
  margin-top: 14px;
  border: 3px dashed #f3a4ff;
  background:
    linear-gradient(180deg, rgba(104, 31, 150, 0.9), rgba(45, 16, 76, 0.94));
  box-shadow: 0 0 0 3px rgba(118, 49, 170, 0.75), inset 0 0 30px rgba(255, 255, 255, 0.07);
  padding: 14px;
}

.blinkies-panel p {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #ffe5ff;
}

.blinkies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.blinkies-grid img {
  width: 150px;
  max-width: 150px;
  height: 20px;
  object-fit: contain;
  image-rendering: auto;
}

@media (max-width: 640px) {
  .blinkies-grid {
    justify-content: center;
  }

  .blinkies-grid img {
    width: 150px;
    max-width: 150px;
    height: 20px;
  }
}
