:root {
  --bg: #120c0a;
  --panel: #1e1512;
  --line: #3a2a22;
  --text: #f4ece6;
  --muted: #b8a89c;
  --fire: #ff7a1a;
  --fire-hot: #ffc24d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--fire-hot); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 16px 72px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 122, 26, 0.35), transparent 65%);
  border-bottom: 1px solid var(--line);
}

/* The studio logo, faded behind the heading and melting into the page at the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("images/renegade-games-backdrop.jpg") center / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85); }

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero h1 span {
  background: linear-gradient(180deg, var(--fire-hot), var(--fire));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { margin: 12px 0 0; color: var(--muted); font-size: 1.15rem; }

main { max-width: 960px; margin: 0 auto; padding: 40px 16px 56px; }

.section-title {
  margin: 0 0 20px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}


.jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin: 28px auto 0;
}
.jump a {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 12, 10, 0.6);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}
.jump a:hover, .jump a:focus-visible { border-color: var(--fire); color: var(--fire-hot); }
.jump a.home { display: inline-flex; align-items: center; gap: 6px; }
.jump a[aria-current="page"] { background: linear-gradient(180deg, var(--fire-hot), var(--fire)); border-color: var(--fire); color: #1a0d05; font-weight: 600; }

/* Every page but the home page: the studio name small, so the page starts sooner. */
.hero-small { padding: 26px 16px 22px; }
.hero-small .jump { margin-top: 14px; }
.brand { margin: 0 !important; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.brand a { color: var(--text); text-decoration: none; }
.brand span { background: linear-gradient(180deg, var(--fire-hot), var(--fire)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.page-title { margin: 0 0 10px; font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The home page: a tile for each page. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.tile:hover, .tile:focus-visible { border-color: var(--fire); transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--fire-hot); outline-offset: 2px; }
.tile img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.tile-wide { grid-column: 1 / -1; border-color: var(--fire); }
.tile-wide img { aspect-ratio: 16 / 7; object-fit: cover; object-position: 22% 40%; }
.tile-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 20px 18px; }
.tile-title { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.tile-title span { color: var(--fire-hot); }
.tile-line { color: var(--muted); font-size: 0.95rem; }
.tile-more { margin-top: auto; padding-top: 6px; color: var(--fire-hot); font-weight: 600; }

main section, main .games { margin-bottom: 48px; }
main > .section-title { margin-top: 8px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.features div {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.features h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--fire-hot); }
.features p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.game {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 16px;
}

.game img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}

.game-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.game-body .stores { margin-top: auto; }

.game h3 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.2; }
.game p { margin: 0 0 14px; color: var(--muted); }
.game .lead { color: var(--text); font-weight: 600; }

.points { margin: 0 0 16px; padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; }
.points li { margin: 3px 0; }
.points li::marker { color: var(--fire); }

.section-note { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }

/* Pest Control: Wizard Edition, still being made: one wide card with a carousel of pictures and a battle. */
.spotlight { scroll-margin-top: 16px; }
.spotlight-card {
  background: var(--panel);
  border: 1px solid var(--fire);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.15), 0 18px 60px rgba(255, 122, 26, 0.12);
}
/* The carousel of pictures across the top of the card: swipe, arrows, dots or arrow keys (carousel.js). */
.carousel { position: relative; border-bottom: 1px solid var(--line); }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--fire-hot); outline-offset: -2px; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: var(--focus, 50% 50%); }
.slide::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(transparent, rgba(18, 12, 10, 0.85));
  pointer-events: none;
}
.slide figcaption {
  position: absolute; left: 22px; bottom: 16px; z-index: 1; max-width: calc(100% - 200px);
  font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 194, 77, 0.5); border-radius: 50%;
  background: rgba(18, 12, 10, 0.65); color: var(--fire-hot); cursor: pointer;
}
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: rgba(18, 12, 10, 0.9); border-color: var(--fire-hot); }
.carousel-arrow:focus-visible { outline: 2px solid var(--fire-hot); outline-offset: 2px; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots {
  position: absolute; right: 16px; bottom: 12px; display: flex; gap: 0; padding: 1px 6px;
  border-radius: 999px; background: rgba(18, 12, 10, 0.55);
}
.carousel-dots button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.carousel-dots button::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(244, 236, 230, 0.45); transition: background 0.2s, transform 0.2s;
}
.carousel-dots button[aria-current="true"]::before { background: var(--fire-hot); transform: scale(1.25); }
.carousel-dots button:focus-visible { outline: 2px solid var(--fire-hot); border-radius: 50%; }

.spotlight-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 26px 28px 28px; }
.spotlight-shot { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.kicker { margin: 0 0 4px; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fire); }
.spotlight h3 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; }
.spotlight h3 span { color: var(--fire-hot); }
.spotlight p { margin: 0 0 14px; color: var(--muted); }
.spotlight .lead { color: var(--text); font-weight: 600; }
.spotlight .tags { margin-bottom: 0; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.faq summary:focus-visible { outline: 2px solid var(--fire); outline-offset: 2px; border-radius: 12px; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li {
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, var(--fire-hot), var(--fire));
  color: #1a0d05;
}
.store.soon {
  background: transparent;
  border: 1px dashed var(--fire);
  color: var(--fire-hot);
}

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

/* Privacy policy page */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 56px; }
.doc h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 4px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; color: var(--fire-hot); }
.doc p, .doc li { color: var(--muted); }
.doc .back { display: inline-block; margin-bottom: 24px; }

@media (max-width: 640px) {
  .hero { padding: 72px 16px 48px; }
  .game-body { padding: 16px 16px 18px; }
}

@media (max-width: 800px) {
  .spotlight-body { grid-template-columns: 1fr; padding: 18px 16px 20px; gap: 18px; }
  /* On a phone the pictures are taller, cropped at the sides; the dots move to the top. */
  .slide img { aspect-ratio: 16 / 9; }
  .slide::after { height: 45%; }
  .slide figcaption { left: 14px; right: 14px; bottom: 10px; max-width: none; font-size: 0.9rem; }
  .carousel-dots { right: auto; left: 50%; bottom: auto; top: 8px; transform: translateX(-50%); }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
}
