/* They Keep Rolling landing page
   Palette pulled from the key art: deep purple starburst, orange/gold coins,
   red cabinet, teal screen, cream text. */

:root {
  --purple-deep: #22103f;
  --purple: #3a1f6b;
  --purple-light: #5a3aa0;
  --orange: #ff8a1f;
  --orange-dark: #c95d00;
  --gold: #ffc42d;
  --red: #d0392c;
  --teal: #3fd0d0;
  --cream: #fff6e8;
  --cream-dim: #d9c9e6;
  --ink: #140a26;
  --display: "Titan One", "Arial Black", Impact, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow-chunky: 0 6px 0 var(--orange-dark), 0 10px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--purple-deep)
    radial-gradient(ellipse at 50% 0%, rgba(90,58,160,.45) 0%, rgba(34,16,63,0) 60%) no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
h3 { font-size: 1.35rem; color: var(--gold); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.wrap.narrow { width: min(860px, 92%); }
.center { text-align: center; }
.section { padding: clamp(56px, 8vw, 96px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: .85em 1.6em; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: var(--shadow-chunky); }
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-dark), 0 14px 28px rgba(0,0,0,.4); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--orange-dark); }
.btn-secondary { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-secondary:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-big { font-size: clamp(1.1rem, 2.4vw, 1.4rem); padding: .9em 1.9em; }
.btn-small { font-size: .95rem; padding: .6em 1.2em; }

.steam-icon {
  width: 1.15em; height: 1.15em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-9.97 9.2l5.36 2.22a2.83 2.83 0 0 1 1.6-.49l2.38-3.46v-.05a3.77 3.77 0 1 1 3.77 3.77h-.09l-3.4 2.43a2.83 2.83 0 0 1-5.6.61l-3.83-1.58A10 10 0 1 0 12 2zm-3.3 15.2l-1.23-.51a2.13 2.13 0 0 0 3.9-.51 2.13 2.13 0 0 0-1.16-2.77l-1.27-.53a1.9 1.9 0 0 1 2.5 1.02 1.9 1.9 0 0 1-.99 2.5l-1.75.8zm6.44-5.27a2.52 2.52 0 1 1 0-5.04 2.52 2.52 0 0 1 0 5.04zm0-4.41a1.89 1.89 0 1 0 0 3.78 1.89 1.89 0 0 0 0-3.78z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-9.97 9.2l5.36 2.22a2.83 2.83 0 0 1 1.6-.49l2.38-3.46v-.05a3.77 3.77 0 1 1 3.77 3.77h-.09l-3.4 2.43a2.83 2.83 0 0 1-5.6.61l-3.83-1.58A10 10 0 1 0 12 2zm-3.3 15.2l-1.23-.51a2.13 2.13 0 0 0 3.9-.51 2.13 2.13 0 0 0-1.16-2.77l-1.27-.53a1.9 1.9 0 0 1 2.5 1.02 1.9 1.9 0 0 1-.99 2.5l-1.75.8zm6.44-5.27a2.52 2.52 0 1 1 0-5.04 2.52 2.52 0 0 1 0 5.04zm0-4.41a1.89 1.89 0 1 0 0 3.78 1.89 1.89 0 0 0 0-3.78z'/></svg>") center / contain no-repeat;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(14px, 3vw, 32px);
  background: rgba(20,10,38,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-brand img { width: 110px; height: auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.topbar-nav { display: flex; gap: 22px; margin-left: 6px; }
.topbar-nav a { color: var(--cream-dim); text-decoration: none; font-weight: 700; font-size: .95rem; }
.topbar-nav a:hover { color: #fff; }
.topbar .btn { margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 820px);
  display: grid; place-items: center;
  padding: clamp(40px, 7vw, 90px) 20px;
  background: url("assets/hero-1920.jpg") center / cover no-repeat var(--purple);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20,10,38,.15) 0%, rgba(20,10,38,.55) 55%, rgba(20,10,38,.9) 100%),
    linear-gradient(to bottom, rgba(20,10,38,.35), rgba(34,16,63,.95));
}
.hero-inner { width: min(860px, 100%); }
.hero-logo { width: min(640px, 92vw); margin: 0 auto 12px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
.hero-tagline {
  font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  color: #fff; line-height: 1.15; margin: 0 0 14px; text-shadow: 0 4px 0 rgba(0,0,0,.4);
}
.hero-sub { font-size: clamp(1rem, 1.9vw, 1.2rem); color: var(--cream); max-width: 640px; margin: 0 auto 26px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-meta { margin: 20px 0 0; font-weight: 700; color: var(--gold); text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hero-meta .dot { color: var(--cream-dim); margin: 0 .4em; }

/* ---------- Pitch ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pitch-media img {
  width: 100%; border-radius: var(--radius);
  border: 4px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
}
.pitch-copy p { font-size: 1.08rem; color: var(--cream-dim); }
.pitch-copy p:first-of-type { color: var(--cream); }

/* ---------- Features ---------- */
.features { padding-top: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,196,45,.5); }
.card-icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.card p { margin: 0; color: var(--cream-dim); font-size: .98rem; }

/* ---------- Trailer ---------- */
.trailer h2, .screens h2, .details h2 { text-align: center; margin-bottom: 28px; }
.video-facade {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  border: 4px solid rgba(255,255,255,.08);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-button {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 6px 0 var(--orange-dark), 0 12px 30px rgba(0,0,0,.5);
  transition: transform .15s;
}
.play-button::after {
  content: ""; position: absolute; left: 38px; top: 28px;
  border-left: 32px solid var(--ink); border-top: 20px solid transparent; border-bottom: 20px solid transparent;
}
.video-facade:hover .play-button { transform: scale(1.06); }

/* ---------- Screenshots ---------- */
.screen-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.screen-grid a { display: block; border-radius: 10px; overflow: hidden; border: 3px solid rgba(255,255,255,.08); transition: transform .15s, border-color .15s; }
.screen-grid a:hover { transform: translateY(-3px); border-color: var(--gold); }
.screen-grid a:nth-child(1) { grid-column: span 3; }
.screen-grid a:nth-child(2) { grid-column: span 3; }
.screen-grid a:nth-child(n+3) { grid-column: span 2; }
.screen-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Details ---------- */
.detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px;
}
.detail-grid > div {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 16px 18px;
}
.detail-grid dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.detail-grid dd { margin: 4px 0 0; font-weight: 700; color: #fff; }
.details-note { text-align: center; color: var(--cream-dim); font-size: .98rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,138,31,.22), rgba(34,16,63,0) 60%),
    url("assets/page-bg.jpg") center / cover no-repeat;
  position: relative; isolation: isolate;
}
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(34,16,63,.82); }
.final-cta p { color: var(--cream); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 32px; font-size: .92rem; color: var(--cream-dim); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--cream-dim); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-fine { width: 100%; font-size: .8rem; opacity: .7; }

/* ---------- Consent banner ---------- */
.consent[hidden] { display: none; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.consent p { margin: 0; flex: 1 1 320px; font-size: .95rem; }
.consent a { color: var(--purple-light); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn-ghost { color: var(--ink); border-color: rgba(0,0,0,.25); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,4,20,.9); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--orange); color: var(--ink); font-size: 1.6rem; cursor: pointer;
  box-shadow: 0 4px 0 var(--orange-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .screen-grid a:nth-child(n) { grid-column: span 3; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { gap: 12px; padding: 8px 12px; }
  .topbar-nav { display: none; }
  .topbar-brand img { width: 84px; }
  .topbar .btn-small { font-size: .85rem; padding: .55em 1em; }
  .hero { min-height: 0; background-position: 50% 45%; }
  .hero-logo { width: min(420px, 94vw); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; gap: 12px; }
  .screen-grid a:nth-child(n) { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .detail-grid > div { padding: 12px 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .consent { left: 10px; right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .screen-grid a, .play-button { transition: none; }
}
