/* =========================================================================
   THIEVES & TASERS — landing page styles
   Theme: lo-fi retro / noir. Warm amber accent on deep, slightly-warm dark.
   ========================================================================= */

:root {
  --bg:        #080809;
  --bg-2:      #0e0f10;
  --bg-3:      #16181a;
  --ink:       #f1ece2;
  --ink-soft:  #b3ada1;
  --ink-dim:   #6f6a60;
  --line:      rgba(255, 240, 210, 0.09);

  --thief:     #f2b441;
  --thief-2:   #ffcf6b;
  --danger:    #d9483f;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --glow-thief: 0 0 0 1px rgba(242, 180, 65, 0.5), 0 0 30px rgba(242, 180, 65, 0.35);
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* room so the fixed wishlist bar never covers the footer / closing content */
  padding-bottom: 5.5rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: 0.5px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
::selection { background: var(--thief); color: #1a1206; }

/* Warm amber "spotlight" at the top + a fade that deepens all the way to the
   bottom of the page, so the lower half glows continuously through the footer. */
body {
  background:
    radial-gradient(90% 60% at 50% -5%, rgba(242,180,65,0.10), transparent 60%),
    radial-gradient(70% 50% at 85% 20%, rgba(47,120,90,0.06), transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(242,180,65,0.05) 58%, rgba(242,180,65,0.16) 100%),
    var(--bg);
  background-attachment: fixed, fixed, scroll, scroll;
}

/* Lo-fi grain + CRT scanlines + vignette overlay (PSX flavor) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px),
    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='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 100% 3px, 120px 120px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 35%, transparent 55%, rgba(0,0,0,0.6) 100%);
}

/* ----------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; font-size: 0.95rem;
  padding: 0.78em 1.4em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--ink); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { font-size: 1.05em; line-height: 1; }
.btn--lg { font-size: 1.1rem; padding: 1em 1.9em; border-radius: 12px; }

.btn--wishlist {
  background: linear-gradient(135deg, var(--thief-2), #e09a1f);
  color: #1a1206; border-color: transparent;
}
.btn--wishlist:hover { box-shadow: var(--glow-thief); filter: brightness(1.06); }

.btn--discord { background: #5865F2; color: #fff; border-color: transparent; }
.btn--discord:hover { box-shadow: 0 0 24px rgba(88,101,242,0.45); filter: brightness(1.05); }

/* ----------------------------- Sticky wishlist bar --------------------- */
.wishbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.05rem var(--gutter);
  background: rgba(8, 8, 9, 0.86); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(242,180,65,0.25);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.wishbar.is-visible { transform: translateY(0); }
.wishbar[hidden] { display: none; }
.wishbar__btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; font-size: 1.4rem;
  padding: 0.7em 2em; border-radius: 12px;
  background: linear-gradient(135deg, var(--thief-2), #e09a1f); color: #1a1206;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.wishbar__btn:hover { transform: translateY(-2px); box-shadow: var(--glow-thief); filter: brightness(1.06); }
.wishbar__steam { width: 1.1em; height: 1.1em; }

/* ----------------------------- Hero ------------------------------------ */
/* Two columns: the game (image) on the left, identity (logo + tagline) on
   the right. Stacks to a single centered column on narrow screens. */
.hero {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}
.hero__logo {
  width: min(560px, 82%); height: auto;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
}
.hero__tagline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: clamp(1px, 0.6vw, 3px); font-size: clamp(1.15rem, 5.2vw, 3.2rem); line-height: 1.05;
  color: var(--thief-2); text-shadow: 0 0 24px rgba(242,180,65,0.4);
  margin-top: -0.3rem; white-space: nowrap;
}

/* Amber keyword accent in section headers */
.hl { color: var(--thief-2); text-shadow: 0 0 20px rgba(242,180,65,0.3); }

.hero__media {
  position: relative;
  width: 100%; max-width: 960px;
  overflow: hidden;
  border: 3px solid rgba(242,180,65,0.32); box-shadow: var(--shadow);
  aspect-ratio: 16 / 9; background: var(--bg-3);
}
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Retro erosion: a coarse, chunky pixel dither chews in from the edges of the
   hero image so the picture looks like it's dissolving into the dark page.
   Pure CSS gradients (GPU-composited, no JS, no repaint) so it stays cheap. */
.hero__erode {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(125% 125% at 50% 42%, transparent 46%, rgba(8,8,9,0.5) 80%, var(--bg) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
/* chunky dark squares that thicken toward the edges, biting holes in the image */
.hero__erode::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--bg) 42%, transparent 44%);
  background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(118% 118% at 50% 45%, transparent 48%, #000 90%);
          mask-image: radial-gradient(118% 118% at 50% 45%, transparent 48%, #000 90%);
}

.steam-widget { width: 100%; max-width: 646px; margin: 0 auto; }
.steam-widget iframe { width: 100%; max-width: 646px; border-radius: 6px; display: block; margin: 0 auto; }

/* ----------------------------- Alternating rows ------------------------ */
.rows {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
}
.row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.row--reverse .row__media { order: 2; }

.row__media {
  padding: 0; border: 3px solid rgba(242,180,65,0.32); overflow: hidden;
  cursor: pointer; background: var(--bg-3); aspect-ratio: 16/9; box-shadow: var(--shadow);
}
.row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.row__media:hover img { transform: scale(1.04); }

.row__text h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.7rem; }
.row__text p { color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.18rem); max-width: 46ch; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 1.2rem; }
  .row--reverse .row__media { order: 0; }
  .row__text { text-align: center; }
  .row__text p { margin: 0 auto; }
}

/* ----------------------------- Screenshot strip ------------------------ */
.strip {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.shot {
  position: relative;
  padding: 0; border: 3px solid rgba(242,180,65,0.32); overflow: hidden;
  cursor: pointer; background: var(--bg-3); aspect-ratio: 16/9; width: 100%;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover img { transform: scale(1.04); }

/* PSX-style fade: the dark page background bleeds into the image edges, with a
   pixelated dither so it reads as retro low-res rather than a clean gradient. */
.shot__fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 130% at 50% 38%, transparent 52%, rgba(8,8,9,0.55) 80%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
/* coarse dither dots that thicken toward the edges, eating into the image */
.shot__fade::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(8,8,9,0.9) 38%, transparent 39%);
  background-size: 4px 4px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 45%, transparent 55%, #000 95%);
          mask-image: radial-gradient(120% 120% at 50% 45%, transparent 55%, #000 95%);
}

/* ----------------------------- CTA ------------------------------------- */
.cta {
  text-align: center;
  /* Reduced bottom padding so the title sits closer to the closing video. */
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(0.75rem, 2vw, 1.5rem);
  /* No section background — the page-wide amber fade (on body) shows through. */
}
.cta__title { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 1.6rem; }

/* Community channels — four equal icon buttons */
.channels {
  max-width: 420px; margin: 2.2rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.channel {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.channel svg { width: 60%; height: 60%; transition: transform 0.2s ease; }
.channel:hover { color: var(--thief-2); }
.channel:hover svg { transform: scale(1.18); }
/* channels without a configured URL (set to "" in CONFIG) — muted, non-clickable */
.channel[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
/* Icons stay on a single row at every width — the grid keeps four equal columns. */

/* ----------------------------- Footer ---------------------------------- */
.footer {
  text-align: center; padding: 2.5rem var(--gutter);
  background: transparent;
}
.footer__links {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-bottom: 1rem;
}
.footer__links a {
  color: var(--ink-soft); font-size: 0.95rem; transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--thief); }
.footer__by { color: var(--ink-dim); font-size: 0.85rem; }

/* ----------------------------- Lightbox -------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(2,4,8,0.9); backdrop-filter: blur(4px); }
.lightbox__img { position: relative; z-index: 2; max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; z-index: 3; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--ink);
  font-size: 2rem; width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }

/* ----------------------------- Reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
