/* ============================================================
   FILDI GAME STUDIO — YELLOW PUNK
   shared stylesheet
   ============================================================ */

:root {
  --yellow: #F2CD00;
  --yellow-deep: #E5BC00;
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --hot: #FF2E63;
  --paper: #FFF5BF;
  --cream: #FEF3C7;
  --shadow: 6px 6px 0 var(--black);
  --shadow-lg: 10px 10px 0 var(--black);
  --shadow-hot: 6px 6px 0 var(--hot);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  background: var(--yellow);
  min-height: 100vh;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--ink);
  position: relative;
  /* halftone dot pattern overlay */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0);
  background-size: 22px 22px;
}

body.dark {
  background: #0a0a0a;
  color: #fff;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
}

/* ============================================================
   MARQUEE - scrolling text bars at top/bottom
   ============================================================ */

.marquee {
  background: var(--black);
  color: var(--yellow);
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 5;
}

.marquee.reverse { background: var(--yellow); color: var(--black); }
.marquee.hot { background: var(--hot); color: var(--black); }

.marquee-track {
  display: inline-flex;
  gap: 32px;
  animation: scroll 112s linear infinite;
  padding-left: 32px;
}

.marquee.reverse .marquee-track {
  animation: scroll-reverse 128s linear infinite;
}

.marquee-track span { display: inline-flex; align-items: center; gap: 32px; }
.marquee-track .dot { color: var(--hot); }
.marquee.reverse .marquee-track .dot { color: var(--hot); }

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

/* ============================================================
   NAV — chunky black blocks rotated off-axis
   ============================================================ */

.nav-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 2;
}

.nav-bottom a {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 28px 8px;
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}

.nav-bottom a:nth-child(1) { transform: rotate(-2deg); }
.nav-bottom a:nth-child(2) { transform: rotate(1.5deg); }
.nav-bottom a:nth-child(3) { transform: rotate(-1deg); }
.nav-bottom a:nth-child(4) { transform: rotate(2deg); }

.nav-bottom a:hover {
  background: var(--hot);
  color: var(--black);
  transform: rotate(0deg) translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

body.dark .nav-bottom a {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 6px 6px 0 var(--yellow);
}
body.dark .nav-bottom a:hover {
  background: var(--hot);
  color: var(--black);
  box-shadow: 10px 10px 0 var(--hot);
}

/* ============================================================
   LOGO — with wobble + googly-eye overlay support
   ============================================================ */

.logo-wrap {
  display: inline-block;
  position: relative;
  transition: transform .2s ease;
}
.logo-wrap.bouncy { animation: wobble 5s ease-in-out infinite; }
.logo-wrap:hover { transform: scale(1.04) rotate(-1deg); }

.logo-wrap img {
  display: block;
  border-radius: 10px;
  border: 4px solid var(--black);
  box-shadow: var(--shadow);
}

.logo-wrap.big img  { width: min(440px, 80vw); }
.logo-wrap.mid img  { width: min(240px, 50vw); }
.logo-wrap.small img { width: 90px; border-width: 3px; box-shadow: 4px 4px 0 var(--black); border-radius: 6px; }

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

/* googly eyes removed */

/* ============================================================
   HEADERS - the kind of giant brutalist type
   ============================================================ */

.giant {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: var(--black);
}

.giant.size-xxl { font-size: clamp(64px, 14vw, 200px); }
.giant.size-xl  { font-size: clamp(54px, 10vw, 140px); }
.giant.size-l   { font-size: clamp(40px, 7vw, 96px); }

.outlined {
  -webkit-text-stroke: 3px var(--black);
  color: transparent;
}

.subtitle {
  font-family: 'Space Mono', monospace;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 620px;
}

/* ============================================================
   PAGE FRAMES
   ============================================================ */

.page-pad {
  padding: 48px 32px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section { margin: 64px 0; position: relative; }

/* ============================================================
   STICKERS - draggable decorative tags
   ============================================================ */

.sticker {
  position: absolute;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 14px 6px;
  border: 3px solid var(--black);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--black);
  cursor: grab;
  user-select: none;
  z-index: 4;
  touch-action: none;
  transition: box-shadow .15s ease;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.sticker:active { cursor: grabbing; box-shadow: 2px 2px 0 var(--black); }
.sticker.pink { background: var(--hot); color: white; }
.sticker.black { background: var(--black); color: var(--yellow); }
.sticker.white { background: white; }

.sticker.tape {
  font-size: 13px;
  padding: 4px 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed var(--ink);
  box-shadow: none;
}

/* ============================================================
   CARDS - chunky tile blocks
   ============================================================ */

.tile {
  display: block;
  background: var(--paper);
  border: 4px solid var(--black);
  box-shadow: var(--shadow-lg);
  padding: 32px 36px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.tile:hover {
  transform: translate(-4px, -4px);
  box-shadow: 14px 14px 0 var(--black);
}
.tile.dark { background: var(--black); color: white; }
.tile.dark:hover { box-shadow: 14px 14px 0 var(--hot); }
.tile.coming-soon { opacity: 0.55; pointer-events: none; }

/* Unreleased: still fully styled and named, but non-interactive,
   with a "coming soon" rubber stamp in the corner. */
.tile.unreleased {
  cursor: default;
}
.tile.unreleased:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
}
.tile.dark.unreleased:hover { box-shadow: var(--shadow-lg); }
.tile.unreleased:hover .coming-stamp {
  transform: rotate(-7deg) scale(1.05);
}

.coming-stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  transform: rotate(-10deg);
  border: 3px solid var(--hot);
  color: var(--hot);
  background: transparent;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px 6px;
  line-height: 0.95;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  transition: transform .2s ease;
}

.tile-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}
.tile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.tile-desc {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 480px;
  opacity: 0.85;
}
.tile-arrow {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 48px;
  transition: transform .2s ease;
}
.tile:hover .tile-arrow { transform: translateX(8px); }

/* ============================================================
   BETA ARCADE — hub intro
   ============================================================ */

.arcade-intro { max-width: 640px; margin-top: 18px; }

/* ============================================================
   CURSOR DOT
   ============================================================ */

.cursor {
  position: fixed;
  width: 16px; height: 16px;
  background: var(--hot);
  border: 2px solid var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
  mix-blend-mode: normal;
}
.cursor.hover { width: 36px; height: 36px; background: var(--yellow); }

@media (max-width: 700px) {
  .cursor { display: none; }
}

/* ============================================================
   FOOTER COUNTER
   ============================================================ */

.counter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 18px;
  padding: 20px 24px;
  background: var(--black);
  color: var(--yellow);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.counter-strip b { color: var(--hot); font-weight: 700; }

/* ============================================================
   EIB - dark page specific
   ============================================================ */

.eib-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 16vw, 220px);
  color: #fff;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  position: relative;
  display: inline-block;
}
.eib-title .glitch-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.eib-title .glitch-layer.red {
  color: var(--hot);
  mix-blend-mode: screen;
  animation: glitch1 4s infinite steps(1);
}
.eib-title .glitch-layer.cyan {
  color: #00FFE0;
  mix-blend-mode: screen;
  animation: glitch2 4s infinite steps(1);
}

@keyframes glitch1 {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93% { transform: translate(-3px, 1px); opacity: 0.8; }
  94% { transform: translate(2px, -2px); opacity: 0.8; }
  95% { transform: translate(-1px, 2px); opacity: 0.8; }
  96% { transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0, 0); opacity: 0; }
  91% { transform: translate(3px, -1px); opacity: 0.7; }
  92% { transform: translate(-2px, 2px); opacity: 0.7; }
  93% { transform: translate(1px, -2px); opacity: 0.7; }
  94% { transform: translate(0, 0); opacity: 0; }
}

.qr-wrap {
  display: inline-block;
  position: relative;
  margin-top: 40px;
  padding: 16px;
  background: white;
  border: 4px solid white;
  box-shadow: 0 0 0 8px var(--black), 0 0 60px rgba(255, 46, 99, 0.4);
  transition: box-shadow .2s ease, transform .2s ease;
}
.qr-wrap:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 0 0 0 8px var(--hot), 0 0 80px rgba(255, 46, 99, 0.8);
}
.qr-wrap img { display: block; width: min(260px, 60vw); }

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.02) 2px,
    rgba(255,255,255,0.02) 3px
  );
}

/* ============================================================
   ENVELOPE — contact page
   ============================================================ */

.envelope {
  position: relative;
  background: var(--cream);
  border: 4px solid var(--black);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px 40px;
  max-width: 580px;
  margin: 32px auto;
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.envelope:hover { transform: rotate(0); }

.envelope::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px;
  height: 50%;
  background: linear-gradient(135deg, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
  pointer-events: none;
  opacity: 0.18;
}

.stamp {
  position: absolute;
  top: 20px; right: 24px;
  width: 90px; height: 110px;
  background: var(--hot);
  border: 3px dashed var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.95;
  transform: rotate(8deg);
  padding: 8px;
}

.envelope-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}
.envelope-addr {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT - facts list
   ============================================================ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.fact {
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fact:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--hot);
  background: white;
}
.fact:nth-child(2n) { transform: rotate(0.6deg); }
.fact:nth-child(3n) { transform: rotate(-0.6deg); }

.fact-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--hot);
  display: block;
  margin-bottom: 4px;
}
.fact-text {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   HOME ENTER LINK
   ============================================================ */
.enter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.click-hint {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================================================
   PRIVACY POLICY DOCUMENT
   ============================================================ */

.doc {
  background: var(--cream);
  border: 4px solid var(--black);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 56px);
  max-width: 760px;
  margin: 32px auto 16px;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
}

.doc h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 3px solid var(--black);
  scroll-margin-top: 24px;
}
.doc h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.doc h2 .num {
  color: var(--hot);
  margin-right: 12px;
  font-size: 0.85em;
  vertical-align: 0.06em;
}

.doc h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 24px 0 10px;
  color: var(--ink);
}

.doc p { margin: 0 0 14px; }

.doc ul {
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
}
.doc ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.doc ul li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--hot);
  font-weight: 800;
}

.doc strong { font-weight: 700; }

.doc-meta {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--yellow);
  padding: 8px 14px 6px;
  margin-bottom: 8px;
}
.doc-meta b { color: var(--hot); font-weight: 700; }

/* table of contents chip strip */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto 16px;
}
.toc a {
  display: inline-block;
  background: var(--paper);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px 5px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.toc a:hover {
  background: var(--hot);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}


@media (max-width: 700px) {
  .page-pad { padding: 32px 18px; }
  .marquee { font-size: 18px; padding: 10px 0; }
  .nav-bottom a { font-size: 22px; padding: 8px 18px; }
  .envelope { padding: 40px 24px 28px; }
  .stamp { width: 70px; height: 86px; font-size: 17px; }
}
