/* === Pyg Lab Games — shared styles === */

/* --- Base --- */
body {
  background-color: #ff1e89;
  color: #090909;
  overflow-x: hidden;
}

/* --- CRT effects --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.2)
  );
  background-size: 100% 4px;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.8;
  mix-blend-mode: overlay;
}

.crt-text {
  color: #bced09;
  text-shadow: 0 0 5px rgba(188, 237, 9, 0.5);
}

/* --- Hard shadows --- */
.hard-shadow-black {
  box-shadow: 12px 12px 0px #090909;
  border: 4px solid #090909;
}

.hard-shadow-pink {
  box-shadow: 10px 10px 0px #ff1e89;
  border: 4px solid #ff1e89;
}

.hard-shadow-orange {
  box-shadow: 8px 8px 0px #ff5e00;
  border: 4px solid #090909;
}

.hard-shadow-crt {
  box-shadow: 8px 8px 0px #bced09;
  border: 4px solid #090909;
}

/* --- Cutout edges --- */
.cutout-edge {
  clip-path: polygon(1% 2%, 99% 0%, 100% 98%, 0% 100%);
}

.cutout-edge-alt {
  clip-path: polygon(0% 0%, 100% 2%, 98% 100%, 2% 98%);
}

@media (max-width: 640px) {
  .cutout-edge,
  .cutout-edge-alt {
    clip-path: none;
    -webkit-clip-path: none;
  }
}

/* --- Tape --- */
.tape {
  background-color: #f4f4f0;
  opacity: 0.9;
  transform: rotate(-2deg);
  border: 1px solid #ccc;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Marker highlight --- */
.marker-highlight {
  background: #ff5e00;
  color: #090909;
  padding: 0 4px;
  display: inline-block;
  transform: skew(-5deg);
}

/* --- Cards (index.html) --- */
.brutal-card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.brutal-card:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0px #090909;
}

/* --- Polaroids (prototype.html gallery) --- */
.polaroid {
  background: #f4f4f0;
  padding: 12px 12px 48px 12px;
  border: 4px solid #090909;
  box-shadow: 8px 8px 0px #090909;
  position: relative;
}

/* --- Post / prototype content --- */
.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.125rem;
  text-transform: none;
}

.post-content h2 {
  font-family: "Anton", sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 4px solid #090909;
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ff5e00;
}

.post-content a {
  color: #ff1e89;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  font-weight: bold;
}

.post-content a:hover {
  background-color: #090909;
  color: #bced09;
  text-decoration: none;
}

.post-content ul {
  list-style-type: square;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  text-transform: none;
  line-height: 1.6;
  font-weight: bold;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #ff1e89;
  border-left: 3px solid #090909;
}

::-webkit-scrollbar-thumb {
  background: #090909;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5e00;
}

/* --- Hero carousel (index.html) --- */
.hero-slide {
  display: none;
}

.hero-slide--active {
  display: flex;
}
