/* Pretty FKD — shared site chrome used across all 3 homepage directions */

* { box-sizing: border-box; }

.pfkd-root {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay — subtle noise */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.8  0 0 0 0 0.5  0 0 0 0 1  0 0 0 0.8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}

/* UV corner blob */
.uv-blob {
  position: absolute;
  width: 70%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 38, 255, 0.55), rgba(176, 38, 255, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Flicker animation for neon */
@keyframes pfkd-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow:
      0 0 6px currentColor,
      0 0 18px currentColor,
      0 0 40px currentColor;
  }
  20%, 24%, 55% {
    opacity: 0.72;
    text-shadow: none;
  }
}
.flicker { animation: pfkd-flicker 6s infinite; }

/* Trim the lit-frame halo on small / dense screens so the glyph is not
   drowned in its own bloom. Same keyframe name — the in-@media definition
   wins when the query matches. Use explicit var(--uv) instead of
   currentColor so the halo stays saturated UV even though the glyph runs
   lighter on small screens (see colors_and_type.css). */
@media (width < 640px) {
  @keyframes pfkd-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      opacity: 1;
      text-shadow:
        0 0 5px var(--uv),
        0 0 16px var(--uv),
        0 0 28px var(--uv-soft);
    }
    20%, 24%, 55% {
      opacity: 0.72;
      text-shadow: none;
    }
  }
}

@keyframes pfkd-breathe-1 {
  0%, 100% { transform: translate(-50%, 0%) scale(1); opacity: 0.5; }
  30% { transform: translate(-42%, 8%) scale(1.15); opacity: 0.38; }
  70% { transform: translate(-58%, -6%) scale(0.88); opacity: 0.6; }
}
@keyframes pfkd-breathe-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  35% { transform: translate(40px, -30px) scale(1.15); opacity: 0.75; }
  75% { transform: translate(-30px, 20px) scale(0.9); opacity: 1.1; }
}
.breathe-1 { animation: pfkd-breathe-1 5s ease-in-out infinite; }
.breathe-2 { animation: pfkd-breathe-2 6s ease-in-out infinite; }

@keyframes pfkd-pulse-glow {
  0%, 100% { box-shadow: 0 0 12px var(--acid), 0 0 2px var(--acid), 4px 4px 0 var(--ink); }
  50%      { box-shadow: 0 0 32px var(--acid), 0 0 4px var(--acid), 4px 4px 0 var(--ink); }
}
.pulse-acid { animation: pfkd-pulse-glow 2.4s ease-in-out infinite; }

/* Marquee */
@keyframes pfkd-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { display: flex; white-space: nowrap; animation: pfkd-marquee 24s linear infinite; }

/* Slow rotate for stickers */
@keyframes pfkd-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.slow-rot { animation: pfkd-rot 18s linear infinite; }

/* Checker edge strip */
.checker {
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: var(--acid);
}

/* Button — acid CTA */
.btn-acid {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.2, 0.9, 0.3, 1.1), box-shadow 120ms;
  text-decoration: none;
}
.btn-acid:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink), 0 0 32px rgba(198,255,61,0.7);
  color: var(--ink);
}
.btn-acid:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--ink); }

.btn-uv {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: transparent;
  color: var(--uv);
  border: 2px solid var(--uv);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(176,38,255,0.35);
  transition: box-shadow 180ms, color 180ms;
  text-decoration: none;
}
.btn-uv:hover {
  color: var(--slime);
  border-color: var(--slime);
  box-shadow: 0 0 28px rgba(255,43,214,0.7);
}

/* Tape */
.tape {
  position: absolute;
  background: rgba(255, 229, 0, 0.45);
  backdrop-filter: blur(1px);
  border-left: 1px dashed rgba(0,0,0,0.25);
  border-right: 1px dashed rgba(0,0,0,0.25);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Sticker price tag */
.price-tag {
  display: inline-block;
  background: var(--highlighter);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 4px 10px;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 var(--ink);
  border: 1.5px solid var(--ink);
}

/* Kandi pill badge */
.kandi-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
}

/* Hide scrollbar inside phone frames */
.noscroll::-webkit-scrollbar { display: none; }
.noscroll { scrollbar-width: none; }

/* Paper mode utilities */
.paper-bg {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 30%, rgba(107, 14, 39, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(176, 38, 255, 0.04) 0%, transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.15  0 0 0 0 0.1  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--paper-ink);
}

/* Underline link style, paper */
.paper-link {
  color: var(--paper-ink);
  text-decoration: underline;
  text-decoration-color: var(--uv);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Section divider bead-strip */
.bead-strip {
  display: flex; gap: 8px; align-items: center;
}
.bead-strip .bead {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.3), inset 0 3px 4px rgba(255,255,255,0.5);
}

/* Select text highlight */
::selection { background: var(--slime); color: var(--ink); }
