/* Piro Games static site styles.
   Replace colors, spacing, and placeholder asset treatments here when the final brand system is ready. */

:root {
  --bg: #050505;
  --bg-raised: #101010;
  --bg-panel: #171717;
  --text: #ffffff;
  --muted: #c5c5c5;
  --line: rgba(255, 255, 255, 0.16);
  --brand-red: #F41C29;
  --red-dark: #a80f18;
  --lime: var(--brand-red);
  --cyan: #ffffff;
  --coral: var(--brand-red);
  --gold: #ffffff;
  --ink: #050505;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-card: 8px;
  --radius-pill: 999px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  background:
    linear-gradient(112deg, rgba(244, 28, 41, 0.14) 0%, rgba(244, 28, 41, 0) 34%),
    linear-gradient(244deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #000000 0%, #0b0b0b 45%, #000000 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(118deg, transparent 0%, transparent 56%, rgba(244, 28, 41, 0.11) 57%, transparent 64%),
    linear-gradient(64deg, transparent 0%, transparent 66%, rgba(255, 255, 255, 0.05) 67%, transparent 73%);
  opacity: 0.9;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-red);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 4px;
}

::selection {
  color: var(--text);
  background: var(--brand-red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--text);
  background: var(--brand-red);
  border-radius: var(--radius-pill);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 14px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 850;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--brand-red);
  border-radius: var(--radius-card);
  box-shadow: 0 0 28px rgba(244, 28, 41, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a,
.lang-button {
  min-height: 42px;
  padding: 11px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(244, 28, 41, 0.16);
  border-color: rgba(244, 28, 41, 0.42);
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 48px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}

.lang-button.is-active {
  color: var(--text);
  background: var(--brand-red);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Layout */
.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100svh - 132px);
  padding: 92px 0 72px;
}

.hero::before,
.page-hero::before,
.featured-section::before,
.updates-section::before {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(244, 28, 41, 0.42), transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: 96px;
  line-height: 0.92;
  font-weight: 950;
}

.hero-title .char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.hero-tagline,
.page-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--text);
  background: var(--brand-red);
  box-shadow: 0 18px 46px rgba(244, 28, 41, 0.26);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  border-color: rgba(244, 28, 41, 0.72);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-red);
  font-weight: 850;
}

.text-link::after {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 42px;
}

/* Hero visual */
.hero-stage {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.stage-grid {
  position: absolute;
  inset: 34px 18px 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(244, 28, 41, 0.22), rgba(255, 255, 255, 0.06));
  background-size: 54px 54px, 54px 54px, auto;
  border-radius: var(--radius-card);
  transform: rotateX(61deg) rotateZ(-13deg) translateZ(-80px);
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
}

.stage-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(16, 16, 16, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
}

.stage-card-top {
  top: 62px;
  right: 34px;
  width: 210px;
  min-height: 72px;
  color: var(--text);
  font-weight: 850;
  background: var(--brand-red);
  transform: rotateY(-12deg) rotateX(8deg) translateZ(70px);
}

.stage-card-main {
  top: 132px;
  left: 32px;
  right: 72px;
  height: 284px;
  padding: 12px;
  transform: rotateY(-10deg) rotateX(6deg) translateZ(112px);
}

.stage-card-bottom {
  right: 18px;
  bottom: 46px;
  gap: 12px;
  min-width: 210px;
  min-height: 88px;
  padding: 16px 20px;
  transform: rotateY(12deg) rotateX(-6deg) translateZ(92px);
}

.stage-card-bottom strong {
  color: var(--brand-red);
  font-size: 42px;
  line-height: 1;
}

.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
  border-radius: var(--radius-card);
  background:
    linear-gradient(125deg, rgba(244, 28, 41, 0.34), rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #131313, #050505);
}

.video-placeholder::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(255, 255, 255, 0.05) 13px);
}

.video-placeholder span {
  position: relative;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(5, 5, 5, 0.62);
}

/* Shared sections */
.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.pin-title,
.page-title {
  margin: 0;
  font-size: 58px;
  line-height: 1;
  font-weight: 930;
}

.page-hero {
  position: relative;
  padding: 110px 0 70px;
}

.page-title {
  max-width: 900px;
  font-size: 72px;
}

.page-lede {
  max-width: 760px;
}

.featured-section,
.games-preview,
.updates-section,
.catalog-section,
.story-section,
.image-band,
.values-section,
.indie-section,
.contact-section {
  position: relative;
  padding: 86px 0;
}

.featured-game {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 42px;
}

.featured-media {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.featured-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-copy h3 {
  max-width: 620px;
  margin: 18px 0;
  font-size: 42px;
  line-height: 1.05;
}

.featured-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

.meta-row strong {
  color: var(--text);
  font-weight: 800;
}

.meta-row b,
.game-meta-row b {
  color: var(--muted);
}

/* Pinned home sequence */
.pin-section {
  position: relative;
  min-height: 100svh;
  margin: 34px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(100deg, rgba(244, 28, 41, 0.18), transparent 34%),
    linear-gradient(280deg, rgba(255, 255, 255, 0.08), transparent 44%),
    #080808;
}

.pin-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, transparent 48%, rgba(244, 28, 41, 0.14) 49%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 92px);
}

.pin-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 52px;
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 92px 0;
}

.pin-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.concept-grid {
  display: grid;
  gap: 16px;
  perspective: 1000px;
}

.concept-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background: rgba(18, 18, 18, 0.78);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

.concept-number {
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 850;
}

.concept-card h3 {
  margin: 8px 0 6px;
  font-size: 28px;
}

.concept-card p {
  margin: 0;
  color: var(--muted);
}

/* Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1400px;
}

.game-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
  border-color: rgba(244, 28, 41, 0.56);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.game-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: translateZ(34px);
}

.game-card-image-contain {
  padding: 24px;
  object-fit: contain;
  background:
    linear-gradient(145deg, rgba(244, 28, 41, 0.14), rgba(255, 255, 255, 0.04)),
    #080808;
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  transform: translateZ(46px);
}

.game-card h3 {
  margin: 0;
  font-size: 28px;
}

.game-card p {
  margin: 0;
  color: var(--muted);
}

.game-card .text-link,
.game-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Updates */
.update-grid,
.value-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.update-card,
.value-card,
.contact-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-card);
  background: rgba(16, 16, 16, 0.74);
}

.update-card time,
.update-card span {
  display: inline-block;
  margin: 0 10px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.update-card h3,
.value-card h3,
.contact-card h3 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.12;
}

.update-card a,
.contact-card a,
.social-list a {
  color: var(--brand-red);
  font-weight: 850;
}

.value-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

/* Games page */
.game-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.game-details div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.game-details dt {
  color: var(--muted);
  font-size: 14px;
}

.game-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

/* About page */
.story-grid,
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 56px;
  align-items: start;
}

.story-copy p,
.split-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.studio-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.studio-panel img {
  width: 100%;
  object-fit: cover;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Contact page */
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
  min-height: 245px;
}

.contact-card > a {
  display: inline-flex;
  margin-bottom: 18px;
  word-break: break-word;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.social-list a {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

/* Game detail pages */
.game-detail-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.78fr);
  min-height: auto;
  padding: 96px 0 78px;
}

.game-detail-hero .hero-title {
  font-size: 86px;
}

.game-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.game-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

.game-meta-row strong {
  color: var(--text);
  font-weight: 850;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  color: var(--text);
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-button:hover {
  color: var(--text);
  border-color: rgba(244, 28, 41, 0.72);
  background: rgba(244, 28, 41, 0.18);
  transform: translateY(-2px);
}

.game-visual {
  justify-self: center;
  width: min(330px, 100%);
}

.phone-frame {
  position: relative;
  aspect-ratio: 1242 / 2688;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    #080808;
  box-shadow: var(--shadow);
}

.phone-frame::before {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 18px;
  content: "";
  border-radius: var(--radius-pill);
  background: #050505;
  transform: translateX(-50%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-panel);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-showcase {
  display: grid;
  place-items: center;
  width: min(460px, 100%);
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(244, 28, 41, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(8, 8, 8, 0.9);
  box-shadow: var(--shadow);
}

.logo-showcase img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.game-section {
  position: relative;
  padding: 78px 0;
}

.game-detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 52px;
  align-items: start;
}

.game-detail-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.step-grid,
.feature-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.feature-card,
.screenshot-card,
.game-cta {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-card);
  background: rgba(16, 16, 16, 0.74);
}

.step-card,
.feature-card {
  min-height: 210px;
  padding: 22px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 900;
  border-radius: var(--radius-card);
  background: var(--brand-red);
}

.step-card h3,
.feature-card h3,
.screenshot-card h3,
.game-cta h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.12;
}

.step-card p,
.feature-card p,
.screenshot-card p,
.game-cta p {
  margin: 0;
  color: var(--muted);
}

.feature-card {
  min-height: 170px;
}

.screenshot-card {
  overflow: hidden;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 1242 / 2688;
  object-fit: cover;
}

.screenshot-card div {
  padding: 18px;
}

.game-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 34px;
  margin: 42px auto 0;
}

.game-cta h2 {
  font-size: 34px;
}

.game-cta .store-actions,
.game-cta .hero-actions {
  justify-content: flex-end;
  margin-top: 0;
}

/* Footer */
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 54px auto 0;
  padding: 40px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 34px;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columns div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-columns h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}

.footer-columns a,
.footer-columns span {
  color: var(--text);
}

.footer-columns a:hover {
  color: var(--brand-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

/* Motion fallbacks */
.is-reveal,
.pin-step,
.js-card-3d {
  will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
  .card-3d:hover {
    transform: rotateX(5deg) rotateY(-7deg) translateY(-8px);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 78px;
  }

  .hero-title {
    font-size: 72px;
  }

  .page-title,
  .section-heading h2,
  .pin-title {
    font-size: 56px;
  }

  .hero-stage {
    min-height: 440px;
  }

  .featured-game,
  .pin-inner,
  .story-grid,
  .split-panel,
  .game-detail-hero,
  .game-detail-copy {
    grid-template-columns: 1fr;
  }

  .game-grid,
  .game-grid-large,
  .update-grid,
  .value-grid,
  .step-grid,
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-detail-hero .hero-title {
    font-size: 72px;
  }

  .game-visual {
    justify-self: start;
  }

  .game-cta {
    grid-template-columns: 1fr;
  }

  .game-cta .store-actions,
  .game-cta .hero-actions {
    justify-content: flex-start;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    flex-wrap: wrap;
    top: 8px;
    width: min(100% - 20px, 1180px);
    gap: 10px;
    margin-top: 8px;
  }

  .brand {
    margin-right: auto;
  }

  .menu-toggle {
    display: block;
  }

  .language-switch {
    order: 2;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  .nav-open .site-nav {
    max-height: 280px;
    padding-top: 8px;
  }

  .site-nav a {
    justify-content: flex-start;
    border-radius: var(--radius-card);
  }

  .section-shell,
  .pin-inner,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 70px 0 56px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 0.96;
  }

  .hero-tagline,
  .page-lede {
    font-size: 18px;
  }

  .hero-actions,
  .footer-brand,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 330px;
  }

  .stage-grid {
    inset: 28px 12px 28px;
  }

  .stage-card-main {
    top: 92px;
    left: 14px;
    right: 34px;
    height: 180px;
  }

  .stage-card-top {
    top: 34px;
    right: 12px;
    width: 178px;
    min-height: 58px;
    font-size: 14px;
  }

  .stage-card-bottom {
    right: 6px;
    bottom: 20px;
    min-width: 174px;
    min-height: 66px;
    font-size: 14px;
  }

  .stage-card-bottom strong {
    font-size: 30px;
  }

  .page-hero {
    padding: 76px 0 44px;
  }

  .page-title,
  .section-heading h2,
  .pin-title {
    font-size: 38px;
  }

  .featured-section,
  .games-preview,
  .updates-section,
  .catalog-section,
  .story-section,
  .image-band,
  .values-section,
  .indie-section,
  .contact-section,
  .game-section {
    padding: 58px 0;
  }

  .featured-copy h3 {
    font-size: 32px;
  }

  .pin-section,
  .pin-inner {
    min-height: auto;
  }

  .pin-inner {
    padding: 70px 0;
  }

  .game-grid,
  .game-grid-large,
  .update-grid,
  .value-grid,
  .contact-grid,
  .step-grid,
  .feature-grid,
  .screenshot-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .game-detail-hero {
    padding: 70px 0 56px;
  }

  .game-detail-hero .hero-title {
    font-size: 48px;
  }

  .game-meta-row span,
  .store-button {
    width: 100%;
    justify-content: center;
  }

  .game-cta {
    padding: 24px;
  }

  .game-cta h2 {
    font-size: 28px;
  }

  .game-card,
  .card-3d:hover {
    transform: none;
  }

  .game-card-image {
    transform: none;
  }

  .game-card-body {
    transform: none;
  }

  .game-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    font-size: 15px;
  }

  .language-switch {
    width: 100%;
    justify-content: stretch;
  }

  .lang-button {
    flex: 1;
  }

  .hero-title {
    font-size: 42px;
  }

  .game-detail-hero .hero-title {
    font-size: 42px;
  }

  .page-title,
  .section-heading h2,
  .pin-title {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card-3d,
  .stage-grid,
  .stage-card,
  .game-card-image,
  .game-card-body {
    transform: none !important;
  }
}
