/* ---------- CRT effect ----------
   The page keeps the normal WardenFox look. Only the screens (screenshots,
   devlog, system requirements) get the old-monitor treatment. */

:root { --mono: "Share Tech Mono", ui-monospace, Consolas, monospace; --phosphor: #5cff7a; }

/* the screen: bezel, rounded glass, inner shadow */
.cam,
.devlog {
  position: relative;
  overflow: hidden;
  border: 1px solid #2a2f58;
  border-radius: 14px;
  box-shadow: 0 0 0 4px #090b1a, 0 0 0 5px #262a4a, inset 0 0 70px rgba(0, 0, 0, .55);
}

/* scanlines + a slow rolling bar */
.cam::before,
.devlog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0, rgba(255, 255, 255, .05) 50%, transparent 100%) 0 -100% / 100% 40% no-repeat,
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .28) 1px, transparent 1px, transparent 3px);
  animation: roll 7s linear infinite;
}
@keyframes roll { to { background-position: 0 220%, 0 0; } }

/* vignette / curved glass */
.cam::after,
.devlog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

/* screenshots */
.cam { margin: 0; background: #000; }
.cam img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 0; filter: contrast(1.08) saturate(.9); animation: flick 6s infinite; }
.cam .tag {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--phosphor);
  text-shadow: 0 0 8px rgba(92, 255, 122, .7);
}
.cam .tag::before { content: "\25CF "; color: #ff4d4d; text-shadow: 0 0 8px rgba(255, 77, 77, .8); }

/* devlog */
.devlog img { filter: contrast(1.08) saturate(.9); opacity: .85; }
.devlog .play { z-index: 5; }
.devlog .cap { z-index: 5; font-family: var(--mono); font-weight: 400; letter-spacing: 1px; color: var(--phosphor); text-shadow: 0 0 8px rgba(92, 255, 122, .7); }

@keyframes flick {
  0%, 93%, 100% { opacity: 1; }
  94% { opacity: .92; }
  95% { opacity: 1; }
  96% { opacity: .9; }
}

/* the story uses the normal site look, with one big opening line */
.story h3 { font-size: 14px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--violet2); }
.story h3 + .lead { margin-bottom: 22px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.15; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .cam::before, .devlog::before, .cam img { animation: none; }
}


/* ---------- banner ---------- */
.game-hero {
  align-items: stretch;
  min-height: 0;
  padding: 64px 0 48px;
  background-image:
    linear-gradient(90deg, rgba(4, 3, 16, .94) 0%, rgba(4, 3, 16, .7) 45%, rgba(6, 4, 20, .2) 100%),
    linear-gradient(180deg, rgba(7, 9, 20, .35) 0%, transparent 30%, transparent 55%, rgba(7, 9, 20, .8) 88%, #070914 100%),
    url("assets/shots/terminal.jpg?v=20261018");
  background-size: cover;
  background-position: center 40%;
}
/* faint CRT scanlines across the banner image */
.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, .18) 1px, transparent 1px, transparent 3px);
}
.game-hero .wrap { display: flex; flex-direction: column; justify-content: flex-start; gap: 40px; }
.game-head { align-items: center; gap: 44px; }
.game-hero .back { margin: 0 0 -22px; }
.genres + h1 { margin-top: 0; }
.game-icon { width: 200px; height: 200px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.game-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.5px; }
.game-hero p { font-size: 16px; }

/* genres: plain line above the title */
.genres { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--violet2); }
.game-hero p { margin-bottom: 28px; }

/* buttons: primary + plain text link on one row */
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.cta-link { font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.cta-link:hover { color: var(--violet2); border-color: var(--violet2); }

/* facts: plain text, no boxes or icons */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-facts dt { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.hero-facts dd { margin: 0; font-size: 16px; font-weight: 500; }


@media (max-width: 820px) {
  .game-hero { min-height: 0; padding: 32px 0 28px; }
  .game-hero .wrap { gap: 28px; }
  .game-head { align-items: flex-start; }
  .game-hero .back { margin: 0; }
  .game-icon { width: 96px; height: 96px; border-radius: 20px; }
  .hero-facts { gap: 16px 32px; }
  .cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .cta .btn { justify-content: center; }
  .cta-link { align-self: flex-start; }
}

/* clue card images */
.cards article img { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 8px; object-fit: cover; background: #060814; }
.cards h4 { margin: 0; }
.cards article { padding: 0; border: 0; background: none; }
.cards article img { margin: 0; }
.cards + .sub { margin-top: 56px; }

/* ---------- screenshot gallery ---------- */
.gallery-main { max-width: 960px; }
.gallery-main img { cursor: zoom-in; }
.g-btn, .g-zoom {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(7, 9, 20, .7);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.g-btn:hover, .g-zoom:hover { background: var(--violet); }
.g-btn { top: 50%; margin-top: -22px; }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-zoom { top: 12px; right: 14px; width: 36px; height: 36px; font-size: 16px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 12px; max-width: 960px; margin-top: 18px; }
.thumb { width: 150px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; opacity: .55; transition: opacity .15s, border-color .15s; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb.on { border-color: var(--violet); opacity: 1; }

.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #050610; }
.lightbox::backdrop { background: rgba(2, 3, 10, .88); }
.lightbox img { display: block; width: 100%; max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(7, 9, 20, .8); color: #fff; font-size: 26px; cursor: pointer; }
.lb-close:hover { background: var(--violet); }

@media (max-width: 820px) {
  .thumb { width: calc(50% - 6px); }
  .g-btn { width: 38px; height: 38px; margin-top: -19px; }
}

/* ---------- system requirements: plain ---------- */
.reqs { gap: 48px; }
.reqs > div { padding: 0; border: 0; background: none; }
.reqs h3 { margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; }
.reqs dl { margin: 0; }
.reqs dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.reqs dt { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.reqs dd { margin: 0; font-size: 15px; color: var(--text); }
.note { padding: 0; border: 0; margin-top: 24px; font-family: inherit; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .reqs { gap: 36px; }
  .reqs dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* trailer, top of the page under the title */
.trailer-title { margin-top: 48px; }
.trailer { width: min(100%, 960px, calc((100vh - 220px) * 16 / 9)); margin: 0; }
.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery-thumbs .thumb { width: auto; }

/* "Waiting for a platform" notice, under the hero facts */
.game-hero .platform-note {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 10px;
  border: 1px solid #ff9a2e;
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(40, 22, 6, 0.85);
  color: #ffb45e;
  font-size: 0.85rem;
  line-height: 1.4;
}
