/* NSFW Games — one stylesheet for the whole site.
   Colours are set once here; change them to re-theme every page. */
:root {
  --bg: #120b1c;          /* page background (dark purple, matches game art) */
  --panel: #1e1430;       /* content panels */
  --border: #3a2856;
  --text: #e6e0ee;
  --muted: #a99bbd;
  --red: #c0161c;         /* logo red */
  --yellow: #d4d34c;      /* logo text yellow */
  --link: #ffcf4a;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #2a1a44 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--red);
  border-bottom: 3px solid #000;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header .logo img { height: 64px; width: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--yellow); }

/* ---------- Main content ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px 48px;
}
h1, h2, h3 { line-height: 1.25; color: #fff; }
h1 { font-size: 2rem; margin: 0 0 .75em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .4em; color: var(--yellow); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.panel > h2:first-of-type { margin-top: 0; }

/* Row of clickable promo images (home + Glory Hole Arcade page) */
.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.tiles a, .tiles figure { flex: 0 1 460px; margin: 0; }
.tiles a { transition: transform .15s ease, filter .15s ease; }
.tiles a:hover { transform: translateY(-3px); filter: brightness(1.08); }

.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Video ---------- */
.video {
  max-width: 940px;
  margin: 0 auto;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.video video { display: block; width: 100%; height: auto; }

/* ---------- Press kit ---------- */
.kit { max-width: 980px; margin: 0 auto; }
.kit section { margin-bottom: 48px; }
.kit h2 { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.kit .panel { max-width: none; }
.kit .release-head { text-align: center; color: #fff; font-weight: 700; margin: 0 0 1em; }
.kit .kicker { font-style: italic; font-weight: 700; color: var(--muted); margin: 0 0 .5em; }
.kit .small { font-size: 14px; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { font-weight: 700; color: #fff; }
.facts dd { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.gallery a.thumb { display: block; background: #0b0712; aspect-ratio: 16 / 10; }
.gallery a.thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption { padding: 8px 12px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.gallery figcaption span { color: var(--muted); }

/* ---------- Game embed ---------- */
.game-frame {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
  width: max-content;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #000;
}
.game-frame iframe {
  display: block;
  border: 0;
  width: 1024px;   /* the Unity build is a fixed 1024x600 + its footer bar */
  height: 660px;
}

/* ---------- Buttons & forms ---------- */
.button {
  display: inline-block;
  background: linear-gradient(#ffd23a, #f08a12);
  color: #1b1030;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid #ffe98a;
}
.button:hover { color: #1b1030; filter: brightness(1.08); }

form label { display: block; font-weight: 600; margin: 14px 0 4px; }
form input, form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0f0918;
  color: var(--text);
  font: inherit;
}
form textarea { min-height: 160px; resize: vertical; }
form button { margin-top: 18px; cursor: pointer; font: inherit; font-weight: 800; }
.hp { position: absolute; left: -9999px; }   /* spam trap, hidden from people */
.notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.notice.ok { background: #1f4d2a; }
.notice.err { background: #5a1a1f; }

address { font-style: normal; }

/* ---------- Age gate (see /js/age-gate.js) ---------- */
.age-locked body { overflow: hidden; }
.age-locked body > *:not(.age-gate) { visibility: hidden; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: radial-gradient(ellipse at top, #2a1a44 0%, var(--bg) 70%), var(--bg);
}
.age-gate-box {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}
.age-gate-box img { width: 240px; max-width: 80%; margin: 0 auto 12px; background: var(--red); border-radius: 6px; padding: 6px 10px; }
.age-gate-badge {
  display: inline-block;
  margin: 4px 0 0;
  padding: 2px 14px;
  border: 3px solid var(--red);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}
.age-gate-box h1 { margin: .4em 0 .3em; }
.age-gate-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 8px; }
.age-gate-buttons .button { cursor: pointer; font: inherit; font-weight: 800; }
.button-alt { background: transparent; color: var(--text); border-color: var(--border); }
.button-alt:hover { color: #fff; border-color: var(--muted); }
.age-gate-small { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0b0712;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .site-header .inner { justify-content: center; }
  .site-header .logo img { height: 52px; }
  .site-nav ul { justify-content: center; }
  h1 { font-size: 1.6rem; }
  .panel { padding: 20px; }
}
