/* Layout modelled on a single-page game site: fixed nav, CSS-3D parallax
   backdrop, centred hero column, full-bleed feature/community bands, footer. */

:root {
  --bg: #000;
  --text-muted: #7a7a7a;
  --text: #fff;
  --accent: #b46cff;
  --accent-deep: #3a1660;
  --panel: rgba(18, 12, 28, 0.85);
  --font-ui: "Bebas Neue", sans-serif;
  --font-body: "Goudy Bookletter 1911", serif;
  --font-display: "Pirata One", serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

img { display: block; max-width: 100%; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Nav ---------- */
.nav-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 60px;
  padding: 0 30px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
}
.nav-container { display: flex; justify-content: center; align-items: center; max-width: 1200px; height: 100%; margin: 0 auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a, .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover, .footer-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }

.wishlist-button {
  --icon-bg: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  background: #fff;
  color: #000 !important;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.wishlist-button:hover { --icon-bg: #4d4d4d; background: #4d4d4d; color: #fff !important; box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }

/* ---------- Parallax ---------- */
.parallax-container {
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 1px;
  scroll-behavior: smooth;
}
.parallax-layer { position: absolute; inset: 0; }

.background {
  transform: translateZ(-1px) scale(2);
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85)), url("assets/bg.webp") center / cover;
  z-index: -1;
}
.background2 {
  transform: translateZ(-1px) scale(2) translateY(850px);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120, 50, 200, 0.35), transparent 60%),
    linear-gradient(#000, #0d0618 30%, #0d0618 70%, #000);
  z-index: -2;
}
.background3 {
  transform: translateZ(-1px) scale(2) translateY(1500px);
  background:
    linear-gradient(#000, rgba(30, 8, 50, 0.55) 25%, rgba(30, 8, 50, 0.55) 70%, #000),
    url("assets/bg.webp") center / cover;
  filter: grayscale(40%) brightness(0.6);
  z-index: -1;
}
.middleground {
  /* Glowing sigil behind the logo; drifts at half speed. Swap for a character GIF/PNG. */
  transform: translateZ(-0.5px) scale(1.5);
  left: 50%;
  width: 500px;
  height: 1000px;
  margin: -160px 0 0 -250px;
  background:
    radial-gradient(circle at 50% 38%, rgba(180, 108, 255, 0.55), transparent 30%),
    radial-gradient(circle at 50% 38%, transparent 34%, rgba(180, 108, 255, 0.35) 35%, transparent 36%),
    radial-gradient(circle at 50% 38%, transparent 42%, rgba(180, 108, 255, 0.2) 43%, transparent 44%);
  z-index: 0;
}
.foreground {
  left: 50%;
  width: 600px;
  margin: 200px 0 0 -300px;
  text-align: center;
  z-index: 0;
}

/* ---------- Hero ---------- */
.content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px; }
.section-padding { padding-top: 60px; padding-bottom: 60px; }

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(88px, 22vw, 150px);
  line-height: 0.9;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(180, 108, 255, 0.6), 4px 4px 0 #000, -2px -2px 0 #000;
  padding: 60px 0 40px;
}
.logo span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 26px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 6px #000;
}

/* Stand-in for the Steam store widget (store.steampowered.com/widget/APP_ID/). */
.store-card {
  --icon-bg: #2a3f5a;
  margin: 10px auto 0;
  max-width: 560px;
  padding: 14px 16px 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2a3f5a, #1b2838);
  text-align: left;
  font-family: Arial, sans-serif;
}
.store-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; color: #c7d5e0; }
.store-card-head b { font-weight: 400; color: #fff; margin-right: auto; padding-right: 6px; }
.store-card-head .icon { width: 30px; height: 30px; color: #c7d5e0; }
.store-card-body { display: flex; gap: 12px; margin-top: 10px; }
.store-card-body img { width: 45%; aspect-ratio: 460 / 215; object-fit: cover; }
.store-card-body p { font-size: 12px; line-height: 1.45; color: #c7d5e0; }
.store-card-cta {
  display: inline-block;
  margin-top: 12px;
  float: right;
  padding: 6px 14px;
  border-radius: 2px;
  background: linear-gradient(to right, #75b022, #588a1b);
  color: #d2efa9;
  font-size: 13px;
  text-decoration: none;
}
.store-card::after { content: ""; display: block; clear: both; }

.video-frame {
  position: relative;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: 50px auto 20px;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  top: 50%; left: 50%;
  width: 68px; height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: #f00;
}
.play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.socials { display: flex; justify-content: center; gap: 20px; padding: 20px 10px; }
.socials a { color: #fff; }
.socials svg {
  width: 50px; height: 50px;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.6;
  transition: transform 0.1s, opacity 0.1s;
}
.socials a:hover svg { transform: scale(1.1); opacity: 1; }
.socials a:active svg { transform: scale(0.95); }

/* ---------- Section headers ---------- */
h2 {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 68px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 4px 4px 8px rgba(0, 0, 0, 0.8);
}

/* Full-bleed bands break out of the 600px foreground column. */
.gif-section, .gif-section-cult, .footer {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  padding-left: 20px;
  padding-right: 20px;
}
.gif-section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.separator {
  height: 40px;
  margin-bottom: 30px;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 5px, transparent 6px),
    linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.6) 80%, transparent) center / 100% 2px no-repeat;
}
.separator.flip { margin: 30px auto 0; }

/* ---------- Features ---------- */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 30px 30px;
  border: 1px solid rgba(180, 108, 255, 0.25);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9);
}
.gif-item { display: flex; flex-direction: column; }
.media-tile {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%) brightness(0.55); transition: transform 0.3s, filter 0.3s; }
.media-tile span {
  position: absolute;
  top: 16px; left: 0; right: 0;
  font-family: var(--font-display);
  font-size: 40px;
  text-shadow: 2px 2px 0 #000, 0 0 12px #000;
}
.gif-item:hover .media-tile img { transform: scale(1.02); filter: none; }

.gif-caption, .community-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
  padding: 10px;
  margin-top: 10px;
}
.gif-caption::first-letter, .community-text::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.85;
  padding: 4px 6px 0 0;
  color: #fff;
}

/* ---------- Community ---------- */
.community-art { width: 400px; max-width: 90%; margin: 10px auto; border-radius: 8px; }
.community-text { max-width: 500px; margin: 0 auto; line-height: 1.6; }
.community-text b { color: #fff; font-weight: 400; }

/* ---------- Media ---------- */
.media-section { text-align: center; padding: 40px 20px; }
.presskit-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
}
.presskit-button:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer {
  min-height: 250px;
  padding-top: 40px;
  padding-bottom: 40px;
  background: linear-gradient(rgba(40, 40, 40, 0), #282828);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; margin: 20px 0; }
.copyright { font-size: 14px; color: var(--text-muted); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .foreground { width: 100%; left: 0; margin: 120px 0 0; }
  .middleground { margin-top: -230px; }
  .gif-grid { grid-template-columns: 1fr; padding: 24px 16px; }
  .gif-section, .gif-section-cult, .footer { padding-left: 16px; padding-right: 16px; }
  .nav-bar { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .wishlist-button { padding: 8px 14px; }
  h2 { font-size: 52px; }
  .store-card-body { flex-direction: column; }
  .store-card-body img { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-container { scroll-behavior: auto; }
}
