/* immoralstudios.com */

:root {
  --bg: #0b090d;
  --bg-2: #120f16;
  --surface: #17131d;
  --surface-2: #1f1a27;
  --line: #2c2434;
  --ink: #f2ecf5;
  --ink-2: #b3a8bd;
  --ink-3: #7d7288;
  --accent: #e0355a;
  --gold: #e6b45c;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted { color: var(--ink-3); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.25em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover { filter: brightness(1.1); }

.btn--ghost { background: transparent; }

.btn--text {
  background: none;
  border: none;
  padding: .7em .4em;
  color: var(--ink-2);
}
.btn--text:hover { color: var(--accent); transform: none; }

/* --------------------------------------------------------------- age gate */

.agegate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 4, 8, .96);
  backdrop-filter: blur(8px);
}
.agegate[hidden] { display: none; }

.agegate__box {
  max-width: 520px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.agegate__logo { width: 160px; margin: 0 auto 24px; opacity: .9; }
.agegate__box h1 { font-size: 1.5rem; }
.agegate__box p { color: var(--ink-2); font-size: .95rem; }
.agegate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(11, 9, 13, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand img { width: 132px; }
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .92rem;
  font-weight: 600;
}
.topbar__nav a { color: var(--ink-2); text-decoration: none; }
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta {
  padding: .5em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
}
.topbar__cta:hover { border-color: var(--accent); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 28px 96px;
  border-bottom: 1px solid var(--line);
}
.hero__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .16;
  filter: blur(3px) saturate(1.2);
  transform: scale(1.08);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 10%, transparent, var(--bg) 78%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__title {
  max-width: 16ch;
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.hero__lede {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --------------------------------------------------------------- sections */

.section { padding: 88px 28px; }
.section--muted { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: var(--maxw); margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section__eyebrow {
  margin: 0 0 10px;
  color: var(--ink-3);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section__note { max-width: 60ch; margin: 0; color: var(--ink-2); }

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

.grid {
  display: grid;
  gap: 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  /* min(...) keeps the track from exceeding the container on narrow phones,
     where a bare minmax(320px, 1fr) would force a horizontal scrollbar. */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.grid--mini { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__link { display: block; text-decoration: none; color: inherit; }

.card__art {
  width: 100%;
  /* height:auto is required — the img's height attribute would otherwise
     override aspect-ratio and make object-fit crop the capsule sideways. */
  height: auto;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  background: var(--surface-2);
}
.card__art--plate {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, var(--surface)), var(--surface));
}
/* Absolutely positioned so logos of wildly different proportions cannot
   stretch the plate — every card in a row keeps the same height. */
.card__art--plate img {
  position: absolute;
  inset: 14%;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}
.plate__word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.card__body { padding: 20px 22px 4px; }
.card__meta { margin-bottom: 10px; }
.card__title { font-size: 1.3rem; margin-bottom: .3em; }
.card__tagline { margin: 0 0 .7em; color: var(--accent); font-size: .95rem; font-weight: 600; }
.card__short { margin: 0; color: var(--ink-2); font-size: .93rem; }

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 18px 22px 22px;
}

.minicard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease;
}
.minicard:hover { transform: translateY(-3px); border-color: var(--accent); }
.minicard a { display: block; text-decoration: none; color: inherit; }
.minicard__body { padding: 18px 20px 22px; }
.minicard__body h3 { font-size: 1.1rem; margin: 10px 0 .35em; }
.minicard__body p { margin: 0; color: var(--ink-2); font-size: .88rem; }

/* ------------------------------------------------------------------- tags */

.tag {
  display: inline-block;
  padding: .3em .8em;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag--released { background: rgba(63, 176, 138, .16); color: #6fdcb4; }
.tag--upcoming { background: rgba(224, 180, 92, .14); color: var(--gold); }
.tag--development { background: rgba(255, 255, 255, .07); color: var(--ink-2); }

/* ------------------------------------------------------------- collective */

.collective {
  padding: 96px 28px;
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(224, 53, 90, .14), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.collective__inner { max-width: 780px; margin: 0 auto; }
.collective__title { font-size: clamp(2rem, 5vw, 3rem); }
.collective__blurb { color: var(--ink-2); font-size: 1.05rem; }
.collective__points {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.collective__points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}
.collective__points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.collective__cta { font-weight: 600; font-size: 1.05rem; }
.collective__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ------------------------------------------------------------------ about */

.about { padding: 88px 28px; background: var(--bg-2); border-top: 1px solid var(--line); }
.about__inner { max-width: 740px; margin: 0 auto; }
.about__inner p { color: var(--ink-2); }
.about__inner strong { color: var(--ink); }

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

.gamepage { display: block; }

.gamehero {
  position: relative;
  overflow: hidden;
  padding: 84px 28px 64px;
  border-bottom: 1px solid var(--line);
}
.gamehero__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .2;
  filter: blur(5px) saturate(1.25);
  transform: scale(1.1);
}
.gamehero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 13, .6), var(--bg) 88%);
}
.gamehero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.gamehero__inner h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-top: .4em; }
.gamehero__tagline { max-width: 50ch; color: var(--accent); font-size: 1.15rem; font-weight: 600; }
.gamehero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.backlink {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.backlink:hover { color: var(--ink); }

.gamebody {
  display: grid;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 28px;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
}
.gamebody__text p { color: var(--ink-2); font-size: 1.02rem; }
.gamebody__side {
  align-self: start;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.gamebody__side h2 { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.gamebody__side ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .93rem; }
.gamebody__side li { margin-bottom: .5em; }
.side__meta { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }

.shots { max-width: var(--maxw); margin: 0 auto; padding: 0 28px 96px; }
.shots h2 { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.shots__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.shots__item { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }

/* --------------------------------------------------------------- notfound */

.notfound { max-width: 640px; margin: 0 auto; padding: 140px 28px; text-align: center; }
.notfound h1 { font-size: 5rem; color: var(--accent); }
.notfound p { color: var(--ink-2); margin-bottom: 28px; }

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

.footer { padding: 56px 28px 32px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__brand img { width: 150px; margin-bottom: 12px; opacity: .85; }
.footer__brand p { margin: 0; color: var(--ink-3); font-size: .9rem; max-width: 34ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; font-size: .9rem; font-weight: 600; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__legal {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .8rem;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 880px) {
  .gamebody { grid-template-columns: 1fr; padding-block: 52px; }
  .hero { padding: 72px 20px 64px; }
  .section, .collective, .about { padding-inline: 20px; }
  .topbar { padding: 12px 18px; }
  .topbar__nav { gap: 14px; font-size: .85rem; }
  .topbar__brand img { width: 108px; }
}

@media (max-width: 560px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
