:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.45;
  scroll-behavior: smooth;
  --wide: 1280px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --heading: "Arial", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #64b7fd; outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }
[hidden] { display: none !important; }

.section-inner, .header-inner, .hero-inner {
  margin-inline: auto;
  width: min(100% - 2 * var(--gutter), var(--wide));
}

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(.75rem, 3vw, 2.5rem);
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  gap: .68rem;
  align-items: center;
  justify-self: start;
  width: max-content;
  font: 800 1.38rem/1 var(--heading);
  letter-spacing: -.065em;
}

.wordmark > span:last-child > span { color: var(--brand-secondary); }

.brand-mark { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; }

.site-header nav { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 2.3rem); }
.site-header nav a { color: var(--muted); font-size: .91rem; font-weight: 700; transition: color .2s; text-align: center; }
.site-header nav a:hover { color: var(--ink); }
[data-language-switcher] { justify-self: end; min-width: 0; color: var(--ink); }
[data-language-switcher] select { max-width: 100%; color: inherit; background-color: var(--switcher-bg); border-color: var(--border); }
.eyebrow {
  color: var(--eyebrow);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: .75rem 1.1rem;
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.25;
  transition: transform .22s, color .22s, background-color .22s, border-color .22s;
}
.button:hover { transform: translateY(-3px); }
.button > span[aria-hidden] { flex: none; font-size: 1.25rem; line-height: 1; }


.studio {
  --studio-header-height: 76px;
  color-scheme: dark;
  --ink: #f4f5f7;
  --muted: #a7b1c2;
  --border: #27303b;
  --eyebrow: #95caff;
  --brand-secondary: #b9c9e1;
  --switcher-bg: #141d29;
  background: #090d14;
  color: var(--ink);
}
.studio .site-header { border: 0; }
.studio .header-inner { grid-template-columns: minmax(0, 1fr) max-content; }
.studio-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - var(--studio-header-height));
  min-height: calc(100svh - var(--studio-header-height));
  isolation: isolate;
  border-bottom: 1px solid #293341;
  background: #0a1018;
}

.hero-background, .hero-video, .hero-shade, .smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background {
  top: calc(-1 * var(--studio-header-height));
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 44%, #1c304b 0, #111b2a 41%, transparent 71%),
              linear-gradient(122deg, #0a0f17 12%, #0b141e 70%, #17293e 100%);
}
.hero-background::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  opacity: .13;
  background: repeating-linear-gradient(124deg, transparent 0 96px, #78a5d777 97px, transparent 99px 197px);
  mask-image: linear-gradient(101deg, #0000 6%, #000 72%, #0000);
  transition: opacity .45s;
}
.smoke {
  background: url("assets/studio-smoke.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: var(--smoke-opacity);
  transition: opacity .55s;
}
.smoke-one {
  --smoke-opacity: .72;
  inset: -35% -18% -38% -42%;
  animation: smoke-rise 24s linear -13s infinite;
}
.smoke-two {
  --smoke-opacity: .57;
  inset: -7% -40% -55% -6%;
  animation: smoke-cross 29s linear -18s infinite;
}
.smoke-three {
  --smoke-opacity: .45;
  inset: -54% -31% 9% -10%;
  animation: smoke-rise 31s linear -4s infinite reverse;
}
@keyframes smoke-rise {
  0%, 100% { transform: translate3d(-10%, 18%, 0) rotate(9deg) scale(1.08); }
  25% { transform: translate3d(3%, 3%, 0) rotate(3deg) scale(1.17); }
  50% { transform: translate3d(10%, -12%, 0) rotate(-6deg) scale(1.23); }
  75% { transform: translate3d(-5%, -1%, 0) rotate(-14deg) scale(1.14); }
}
@keyframes smoke-cross {
  0%, 100% { transform: translate3d(13%, 9%, 0) rotate(-15deg) scaleX(-1); }
  25% { transform: translate3d(3%, -7%, 0) rotate(-24deg) scale(-1.12, 1.12); }
  50% { transform: translate3d(-14%, -15%, 0) rotate(-4deg) scale(-1.19, 1.19); }
  75% { transform: translate3d(-2%, 0, 0) rotate(3deg) scale(-1.1, 1.1); }
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(.8);
  transition: opacity .72s ease, transform 3s ease;
}
.hero-shade {
  background: linear-gradient(91deg, #080e17ee 0, #0a1322a6 36%, #0a172b38 75%),
              linear-gradient(0deg, #080e17c9, transparent 31%, transparent 77%, #080e1799);
  opacity: .58;
  transition: opacity .55s;
}
.is-previewing .hero-video { opacity: .96; transform: scale(1); }
.is-previewing .hero-shade { opacity: 1; }
.is-previewing .hero-background::after { opacity: 0; }
.is-previewing .smoke { opacity: .13; }

.hero-inner {
  display: grid;
  place-items: start center;
  padding-block: clamp(1.45rem, 4.5vh, 4rem) 1.5rem;
}
@keyframes rise-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.featured {
  position: relative;
  width: min(100%, 42.5rem);
  animation: rise-in .6s ease both;
}
.featured-card {
  --card-padding: clamp(.8rem, 4vw, 1.65rem);
  --card-gap: clamp(.65rem, 3.2vw, 1.65rem);
  --card-logo: clamp(3rem, 16vw, 8.5rem);
  position: relative;
  display: grid;
  grid-template-columns: var(--card-logo) minmax(0, 1fr);
  grid-template-areas: "logo details" "logo platforms";
  align-items: center;
  column-gap: var(--card-gap);
  row-gap: .45rem;
  padding: var(--card-padding);
  color: #f4f7fb;
  border: 1px solid #6885a79c;
  border-radius: 15px;
  background: radial-gradient(ellipse 60% 64% at 50% 36%, #223c50, #101b29 75%), #101b29;
  box-shadow: 0 25px 75px #0207117a, inset 0 1px #b2d4ef23;
  transition: border-color .35s, box-shadow .35s;
}
.featured-card:hover, .featured-card:focus-within {
  border-color: #a2cfff;
  box-shadow: 0 20px 80px #071524cd, 0 0 34px #6fb2ff43;
}
.featured-link { grid-area: details; align-self: end; }
.featured-link::after { position: absolute; inset: 0; border-radius: 15px; content: ""; }
.featured-link:focus-visible { outline: none; }
.featured-link:focus-visible::after { outline: 3px solid #64b7fd; outline-offset: 4px; }
.featured-platforms {
  grid-area: platforms;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: center;
  gap: clamp(.46rem, 1.25vw, .82rem);
  margin-inline-end: 2.5rem;
}
.featured-platforms .button { position: relative; justify-self: start; }
.featured-logo {
  grid-area: logo;
  width: var(--card-logo);
  height: auto;
  filter: drop-shadow(0 10px 22px #030d16aa);
  transition: transform .45s ease;
}
.featured-card:hover .featured-logo { transform: scale(1.035); }
.featured-link h1 {
  font: 800 clamp(.95rem, 5.25vw, 2.55rem)/1 var(--heading);
  letter-spacing: -.055em;
  white-space: nowrap;
}
.featured-genre {
  margin-top: .4rem;
  color: #b7cbe4;
  font-size: clamp(.75rem, 2.7vw, .94rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.featured-platforms .steam-note { font-size: clamp(.68rem, 2.35vw, .78rem); }
.is-previewing .featured-card {
  background: linear-gradient(140deg, #152838ed, #0b1723f0);
  border-color: #a2cfffba;
}

.steam-note { display: inline-flex; gap: .62rem; align-items: center; color: #f1f4f6; font-size: .86rem; font-weight: 750; }
.steam-note img { flex: none; }
.featured-arrow {
  position: absolute;
  right: clamp(.65rem, 2.5vw, 1.35rem);
  bottom: clamp(.65rem, 2.5vw, 1.35rem);
  display: grid;
  width: clamp(27px, 6vw, 39px);
  height: clamp(27px, 6vw, 39px);
  place-items: center;
  border: 1px solid #d7e9ff8c;
  border-radius: 50%;
  background: #141d2c7f;
  font-size: clamp(.9rem, 3vw, 1.2rem);
  transition: background-color .25s, color .25s, transform .25s;
}
.featured-link:hover .featured-arrow { transform: rotate(8deg); color: #0a1b30; background: #a6d3ff; }
.featured-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: .65rem;
}
.button-playgama {
  min-height: 43px;
  gap: .42rem;
  padding: .5rem .62rem;
  color: #111e30;
  background: #b5d9ff;
  font-size: .8rem;
}
.button-playgama:hover { background: #d5eaff; }
.playgama-logo { width: 22px; height: 22px; flex: none; object-fit: contain; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .featured-controls { display: none; }
}
.preview-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: .55rem;
  padding: .45rem .78rem;
  border: 1px solid #c1d1e46b;
  border-radius: 6px;
  background: #090f1bd9;
  color: #f2f7ff;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color .22s;
}
.preview-button:hover { background: #203853; }
.preview-glyph { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid #bfddfa; flex: none; }
.preview-button:disabled { opacity: .55; cursor: default; }

.petrol {
  --ink: #252318;
  --muted: #595447;
  --border: #d4c5a8;
  --eyebrow: #8a3828;
  --brand-secondary: #3d5b39;
  --switcher-bg: #f4ecda;
  color: var(--ink);
  background: #f2e9d6;
}
.petrol :focus-visible { outline-color: #74321f; }
.petrol .site-header { background: #f0e6d1; }
.petrol-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 83% 45%, #e2c89e 0, transparent 65%), #ece0c9;
  border-bottom: 1px solid var(--border);
}
.petrol-hero::after {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #9a4134 0 11%, #4d633d 11% 27%, #302b20 27% 100%);
}
.petrol-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.8rem, 4.8vw, 5.5rem);
  padding-block: clamp(2.7rem, 6.5vw, 6.7rem);
}
.petrol-copy { animation: rise-in .7s ease both; }
.back-link {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  min-height: 35px;
  margin-bottom: .68rem;
  color: #733a2c;
  font-size: .85rem;
  font-weight: 800;
}
.back-link:hover { text-decoration: underline; }
.petrol-copy h1 {
  margin-bottom: .8rem;
  max-width: 11ch;
  font: 900 clamp(3.1rem, 6.5vw, 6.55rem)/.89 var(--heading);
  letter-spacing: -.085em;
  text-wrap: balance;
}
.petrol-tagline { color: #385639; margin-top: 1.2rem; font-size: 1.23rem; font-weight: 850; }
.petrol-intro { max-width: 45ch; margin-top: .57rem; color: #4d493a; font-size: 1.04rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.button-green { color: #fff8e6; background: #355338; }
.button-green:hover { background: #223c27; }
.button-outline { color: #3b3528; border-color: #aa9979; background: #fff1; }
.button-outline:hover { background: #f9f1db; border-color: #8b4c3b; }

.petrol-feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(325px, 34vw, 470px);
  border: 1px solid #5a5542;
  border-radius: 12px;
  background: #534b3c;
  box-shadow: 0 17px 43px #52422a33;
  animation: rise-in .85s .12s ease both;
}
.petrol-feature > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.petrol-feature::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(3deg, #151711a6, transparent 32%); }
.petrol-feature figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .57rem .73rem; border: 1px solid #f0ead565; border-radius: 6px; background: #171a16ee; }


.station-features { border-bottom: 1px solid var(--border); background: #e7d7b9; }
.station-features-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.station-features a {
  position: relative;
  display: block;
  padding: clamp(1.1rem, 2.45vw, 2.35rem) clamp(1.55rem, 3vw, 3rem) clamp(1.1rem, 2.45vw, 2.35rem) clamp(.8rem, 2.3vw, 2.25rem);
  border-inline-start: 1px solid var(--border);
  transition: background .25s ease;
}
.station-features a:last-child { border-inline-end: 1px solid var(--border); }
.station-features a:hover { background: #f3e7cf; }
.station-features h2 { margin-bottom: .34rem; color: #385639; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.2; letter-spacing: -.035em; }
.station-features p { max-width: 29ch; color: #4d493a; font-size: .89rem; }
.station-features a > span { position: absolute; right: .75rem; top: 1.1rem; color: #803d2d; font-weight: 800; transition: transform .25s; }
.station-features a:hover > span { transform: translate(2px, -2px); }

.petrol-gallery, .petrol-handbook { padding-block: clamp(3.4rem, 6.5vw, 6.5rem); }
.petrol-gallery { background: #f5ecda; }
.section-title {
  overflow-wrap: anywhere;
  hyphens: auto;
  margin: .35rem 0 1.5rem;
  font: 850 clamp(2.2rem, 4.5vw, 4.2rem)/1.02 var(--heading);
  letter-spacing: -.07em;
  text-wrap: balance;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .78rem; }
.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid #655946;
  border-radius: 7px;
  background: #453b24;
  color: white;
  text-align: left;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.04); filter: saturate(1.13); }
.gallery-tile::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(0deg, #131711ef, transparent 43%); pointer-events: none; }
.gallery-tile span { position: absolute; z-index: 2; bottom: .62rem; left: .76rem; right: .7rem; font-size: .84rem; font-weight: 800; }
.gallery-dialog {
  position: fixed;
  width: min(100vw - 1.5rem, 900px);
  max-width: none;
  max-height: calc(100% - 1.5rem);
  padding: .65rem;
  overflow: auto;
  border: 1px solid #ac9a78;
  border-radius: 11px;
  color: #fff6e7;
  background: #232219;
}
.gallery-dialog::backdrop { background: #14130edf; backdrop-filter: blur(6px); }
.gallery-dialog[open] { animation: rise-in .25s ease both; }
.gallery-dialog figure img { width: 100%; max-height: min(70vh, 690px); object-fit: contain; }
.gallery-dialog figcaption { margin: .6rem 3.6rem 0 .25rem; padding-bottom: .3rem; }
.gallery-dialog button { min-width: 43px; min-height: 43px; border: 1px solid #fff5; border-radius: 7px; background: #1d1b15e8; color: white; font-size: 1.25rem; }
.gallery-close { position: absolute; top: 1rem; right: 1rem; }
.gallery-navigation { display: flex; gap: .35rem; justify-content: flex-end; margin-top: .4rem; }

.petrol-handbook { border-top: 1px solid var(--border); background: #eadcc0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-heading .section-title { margin: .35rem 0 0; }
.handbook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.handbook-group {
  min-width: 0;
  border: 1px solid #c4b393;
  border-top: 4px solid #536943;
  border-radius: 8px;
  padding: 1.05rem;
  background: #f4ead6;
}
.handbook-group:nth-child(2) { border-top-color: #964736; }
.handbook-group:nth-child(3) { border-top-color: #493f2d; }
.handbook-group h3 { font: 800 1.19rem/1.1 var(--heading); letter-spacing: -.035em; }
.handbook-group ul { margin: .65rem 0 0; padding: 0; list-style: none; }
.handbook-group li { border-bottom: 1px solid #dccdaf; }
.handbook-group li:last-child { border-bottom: 0; }
.handbook-group li a, .dlc-link { display: flex; justify-content: space-between; gap: .6rem; align-items: center; min-height: 43px; padding: .45rem .1rem; font-size: .9rem; font-weight: 750; }
.handbook-group li a:hover { color: #8a3828; }
.handbook-group li a span:last-child { color: #725e43; flex: none; }
.dlc-link { margin-top: .65rem; padding: .65rem; border-radius: 6px; background: #e5d5b6; }
.dlc-link:hover { background: #d8c5a0; }
.dlc-link strong { display: block; margin-bottom: .2rem; }
.dlc-link strong + span { display: block; color: #575040; font-size: .8rem; font-weight: 600; }

@media (max-width: 980px) {
  .petrol-copy h1 { font-size: clamp(3rem, 6.65vw, 5.7rem); }
  .handbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handbook-extra { grid-column: 1 / -1; }
}

@media (max-width: 730px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) minmax(0, max-content); row-gap: .25rem; min-height: 66px; padding-block: .67rem .52rem; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 1.25rem; min-width: 0; flex-wrap: wrap; }
  .site-header nav a { display: flex; align-items: center; min-height: 34px; font-size: .84rem; text-align: left; }
  .studio { --studio-header-height: 66px; }
  .studio .header-inner { padding-block: .7rem; }
  .studio-tools { grid-column: 2; grid-row: 1; }
  .site-header [data-language-switcher] { grid-column: 2; grid-row: 1; }
  .hero-inner { padding-block: 1.95rem 1.25rem; }
  .hero-video { object-position: center; }
  .hero-shade { background: linear-gradient(180deg, #080e176e 0, #0a132218 43%, #080e17dd); }
  .petrol-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .petrol-copy h1 { max-width: 11ch; font-size: clamp(3.05rem, 11vw, 5.6rem); }
  .petrol-feature { min-height: clamp(270px, 67vw, 440px); }
  .station-features-inner { grid-template-columns: minmax(0, 1fr); }
  .station-features a, .station-features a:last-child { border-inline: 0; }
  .station-features a + a { border-top: 1px solid var(--border); }
  .station-features p { max-width: none; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .handbook-grid { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .handbook-extra { grid-column: auto; }
}

@media (max-width: 630px) {
  .featured-card { grid-template-areas: "logo details" "platforms platforms"; }
  .featured-link { align-self: center; }
  .featured-platforms { margin-inline-end: 0; }
  .featured-arrow { display: none; }
}

@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  .wordmark { gap: .45rem; font-size: 1.2rem; }
  .brand-mark { width: 27px; height: 27px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .smoke { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
