:root {
  --bg: #14101f;
  --bg-2: #1d1730;
  --card: #241c3b;
  --line: #3a2f5c;
  --text: #ece6ff;
  --muted: #a99fc9;
  --accent: #ffcc33;
  --accent-2: #ff4f8b;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 17px;
}
body.no-scroll { overflow: hidden; }

/* subtle scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 3px);
  z-index: 50;
}

a { color: var(--accent); }

h1, h2, h3, .badge, nav a, .button, .link-tile strong {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

h2 { font-size: 1.6rem; text-transform: uppercase; margin: 0 0 1.5rem; }
h2::before { content: "> "; color: var(--accent-2); }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: rgba(20, 16, 31, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand-logo { height: 36px; display: block; }
nav { display: flex; gap: 1.4rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9rem;
  text-transform: uppercase;
}
nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 79, 139, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 70%, rgba(255, 204, 51, 0.10), transparent 55%);
}
.hero-logo { width: min(420px, 80vw); height: auto; }
.hero-line { color: var(--muted); font-size: 1.15rem; margin-top: 1.5rem; }
.scroll-hint {
  margin-top: 3rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.4rem;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

.section { max-width: 1040px; margin: 0 auto; padding: 5rem 1.5rem; }
.section.narrow { max-width: 720px; }

/* ---------- game cards ---------- */

.game-list { display: grid; gap: 2rem; }

.game {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 #0b0814;
  overflow: hidden;
}
.game-art {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}
a.game-art img { transition: transform 0.3s; }
a.game-art:hover img { transform: scale(1.04); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.art-placeholder {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  padding: 1rem;
  text-align: center;
}
.game-body { padding: 1.8rem; }
.game-body h3 { font-size: 1.8rem; margin: 0.6rem 0 0.2rem; }
.tagline { color: var(--accent); margin-top: 0; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
}
.badge-coming-soon, .badge-wishlist { color: var(--accent); }
.badge-released { color: #5dff9b; }
.badge-unannounced { color: var(--muted); }

.game.secret .art-placeholder { font-size: 6rem; color: var(--line); animation: flicker 3s infinite; }
.game.secret h3 { color: var(--muted); filter: blur(1px); }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: 0.3; } 96% { opacity: 0.8; } }

.game-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  background: var(--accent);
  color: #14101f;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  box-shadow: 4px 4px 0 var(--accent-2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent-2); }
.button.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.button.steam { background: #66c0f4; box-shadow: 4px 4px 0 #1b2838; }
.button.steam:hover { box-shadow: 2px 2px 0 #1b2838; }

/* ---------- thumbnails + gallery ---------- */

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

.thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: zoom-in;
}
.thumb:hover, .thumb:focus-visible { border-color: var(--accent); outline: none; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  background: rgba(0,0,0,0.35);
}
.thumb .more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,16,31,0.75);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 6, 14, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem;
}
.lightbox[hidden] { display: none; }
.lb-stage { width: 100%; max-width: 1280px; display: flex; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 80vh; display: block; }
.lb-stage iframe { width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; border: 0; }
.lb-caption { color: var(--muted); margin: 0.8rem 0 0; }
.lb-btn {
  position: absolute;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--line);
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.8rem; top: 50%; }
.lb-next { right: 0.8rem; top: 50%; }
.lb-count { position: absolute; bottom: 1rem; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }

/* ---------- link tiles ---------- */

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.link-stack { display: grid; gap: 0.8rem; }

.link-tile {
  --brand: var(--accent);
  --brand-bg: var(--brand);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-left: 6px solid var(--brand);
  color: var(--text);
  text-decoration: none;
  min-height: 72px;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
a.link-tile:hover, a.link-tile:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--brand);
  border-color: var(--brand);
  outline: none;
}
.link-tile.off { opacity: 0.45; }

.lt-icon {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
  overflow: hidden;
}
.lt-icon img { width: 26px; height: 26px; }
.lt-icon img.cover { width: 100%; height: 100%; object-fit: cover; }
.lt-icon .q { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: var(--muted); }
.lt-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lt-text strong { font-size: 1rem; }
.lt-text small { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-arrow { color: var(--brand); font-size: 1.3rem; font-weight: 700; }

.link-tile[data-id="youtube"]     { --brand: #ff0033; }
.link-tile[data-id="instagram"]   { --brand: #e1306c; --brand-bg: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.link-tile[data-id="tiktok"]      { --brand: #25f4ee; --brand-bg: #000; }
.link-tile[data-id="tiktok"] .lt-icon { box-shadow: inset -3px -3px 0 #fe2c55, inset 3px 3px 0 #25f4ee; }
.link-tile[data-id="facebook"]    { --brand: #1877f2; }
.link-tile[data-id="x"]           { --brand: #e7e9ea; --brand-bg: #000; }
.link-tile[data-id="x"] .lt-icon  { border: 1px solid #444; }
.link-tile[data-id="steam-group"] { --brand: #66c0f4; --brand-bg: #1b2838; }
.link-tile[data-id="steam-dev"]   { --brand: #66c0f4; --brand-bg: linear-gradient(135deg, #1b2838, #2a475e); }
.link-tile[data-id="email"]       { --brand: var(--accent); --brand-bg: var(--accent-2); }
.link-tile[data-id="game"]        { --brand: var(--accent); --brand-bg: var(--bg-2); }

#mail-tile .link-tile { max-width: 420px; }

/* ---------- game page ---------- */

.game-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.game-hero > img {
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 #0b0814;
}
.game-hero-text { order: 1; }
.game-hero-text h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 0.5rem 0 0.2rem; text-transform: uppercase; }
.game-hero-text .tagline { font-size: 1.2rem; }

.game-detail { padding-top: 2rem; }
.detail-block { margin-bottom: 4rem; }
.detail-block p { max-width: 720px; }
.features { list-style: none; padding: 0; max-width: 720px; }
.features li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; }
.features li::before { content: "\25A0"; color: var(--accent-2); position: absolute; left: 0; font-size: 0.8rem; top: 0.65rem; }

/* ---------- links page ---------- */

.links-page { background: radial-gradient(ellipse at 50% 0%, rgba(255, 79, 139, 0.18), transparent 50%), var(--bg); min-height: 100vh; }
.links-wrap { max-width: 520px; margin: 0 auto; padding: 3rem 1.2rem 4rem; text-align: center; }
.links-logo { width: 220px; max-width: 70vw; }
.links-wrap .link-stack { text-align: left; }
.links-heading { text-align: left; font-size: 0.85rem; text-transform: uppercase; color: var(--muted); margin: 2rem 0 0.7rem; }
.links-home { display: inline-block; margin-top: 2.5rem; font-family: var(--mono); font-size: 0.9rem; }

/* ---------- footer ---------- */

footer { text-align: center; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0.2rem 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; }
  .game-art { min-height: 190px; }
  .top { padding: 0.6rem 0.9rem; }
  .brand-logo { height: 30px; }
  nav { gap: 0.8rem; }
  nav a { font-size: 0.72rem; }
  h2 { font-size: 1.25rem; }
  .section { padding: 3.5rem 1.2rem; }
  .link-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 3.5rem 0.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.6rem; }
  .game-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .game-hero > img { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint, .game.secret .art-placeholder { animation: none; }
  html { scroll-behavior: auto; }
}
