:root {
  color-scheme: dark;
  --paper: #eeeae2;
  --ink: #141414;
  --red: #ef392c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Barlow, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
}
.skip {
  position: absolute;
  top: -60px;
  padding: 12px;
  background: var(--red);
}
.skip:focus {
  top: 0;
  z-index: 5;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 25px 0;
  border-bottom: 1px solid #595752;
  font-size: 16px;
  font-weight: 600;
  gap: 20px;
  padding-left: 4%;
  padding-right: 4%;
}
nav {
  display: flex;
  gap: 35px;
}
.logo {
  width: 100px;
  height: 48px;
  object-fit: contain;
}
section {
  padding: 30px 6%;
}
.release-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 20px;
  padding: 3px 4%;
  border-bottom: 1px solid #595752;
  font-size: 15px;
}
.release-banner-details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}
.release-banner-version {
  font-weight: 600;
}
.release-banner time {
  color: #b7b5ae;
}
.release-banner-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  padding-top: 30px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #595752;
}
.eyebrow,
small,
figcaption {
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 500;
}
h1 {
  font-size: clamp(76px, 12.4vw, 185px);
  line-height: 0.83;
  letter-spacing: -0.025em;
  margin: 65px 0 40px;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
}
p {
  line-height: 1.6;
  font-size: 17px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}
.button {
  background: var(--red);
  color: var(--ink);
  padding: 24px 28px;
  display: inline-flex;
  justify-content: center;
  gap: 0;
  font-weight: 600;
  font-size: 15px;
  min-width: 220px;
}
.button:hover {
  background: var(--paper);
  text-decoration: none;
}
figure {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
figcaption {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
}
h2 {
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.92;
  margin: 25px 0 35px;
  letter-spacing: -1px;
}
.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.columns article {
  border-top: 1px solid #77736b;
  padding-top: 20px;
}
.columns p {
  max-width: 340px;
  color: #b7b5ae;
}
h3,
.download-platform h4 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  margin: 25px 0 20px;
}
.showcase {
  background: var(--paper);
  color: var(--ink);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: transparent;
  height: auto;
}
.gallery figcaption {
  border-bottom: 0;
}
.steps {
  margin-bottom: 35px;
}
.steps b {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 65px;
  color: var(--red);
}
.last {
  background: var(--red);
  color: var(--paper);
}
.download-platforms:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 12px;
}
.download-platform {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
}
.download-platform :is(h3, h4) {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
}
.download-platform img {
  flex-shrink: 0;
  object-fit: contain;
}
.download-platform-summary {
  margin: 0;
  padding: 12px 18px;
  color: #b7b2a9;
  font-size: 0.875rem;
  line-height: 1.4;
}
.download-platform ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.download-platform a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 18px;
  border-top: 1px solid #595752;
  font-weight: 600;
}
.download-platform a:hover {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.download-platform a:focus-visible {
  outline-offset: -3px;
}
.download-all {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.download-all:focus-visible {
  outline-color: var(--ink);
}
footer {
  padding: 35px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.hero-logo {
  width: min(78%, 850px);
  height: auto;
  margin: 35px auto 55px;
}
.hero h1 {
  font-size: clamp(42px, 6.5vw, 94px);
  margin: 30px 0;
  line-height: 0.94;
  text-align: center;
}
.language {
  border: 1px solid #77736b;
  padding: 9px 12px;
  text-transform: none;
  white-space: nowrap;
}
html[lang='es'] .hero h1 {
  font-size: clamp(33px, 5.6vw, 80px);
}
header .language {
  margin-left: auto;
}
header nav {
  margin-left: auto;
  gap: 38px;
}
header .logo {
  width: 160px;
  height: 70px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 20, 20, 0.48), rgba(20, 20, 20, 0.62) 70%, #141414),
    linear-gradient(rgba(239, 57, 44, 0.28), rgba(239, 57, 44, 0.28)),
    url('assets/arcade-hero-v2.jpg') center 42% / cover no-repeat;
  background-blend-mode: normal, color, normal;
}
.hero .intro {
  justify-content: center;
  align-items: center;
}
.screenshot-link {
  display: block;
  cursor: zoom-in;
}
.screenshot-link:hover {
  opacity: 0.85;
}
.image-viewer {
  width: min(96vw, 1920px);
  max-width: 96vw;
  max-height: 94vh;
  padding: 42px 12px 12px;
  border: 1px solid #595752;
  background: var(--ink);
  color: var(--paper);
}
.image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.9);
}
.image-viewer img {
  width: 100%;
  height: auto;
}
.close-viewer {
  position: absolute;
  right: 12px;
  top: 8px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 5px 10px;
}
.close-viewer:focus-visible {
  outline: 2px solid var(--red);
}
h1,
h2,
h3,
.download-platform h4 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  header {
    padding: 12px 4%;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
  }
  nav {
    gap: 14px;
    margin-left: auto;
  }
  .logo {
    width: 75px;
  }
  section {
    padding: 15px 6%;
  }
  h1 {
    margin-top: 45px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .columns,
  .gallery {
    grid-template-columns: 1fr;
  }
  .columns {
    gap: 25px;
  }
  .columns p {
    max-width: none;
  }
  footer {
    flex-wrap: wrap;
  }
  footer .logo {
    width: 100%;
    object-position: left;
  }
  h3 {
    font-size: 35px;
  }
  .language {
    font-size: 12px;
  }
  .hero-logo {
    width: 92%;
    margin: 30px auto 40px;
  }
  .hero h1 {
    font-size: clamp(36px, 7vw, 54px);
  }
  header nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    gap: 0 20px;
    border-top: 1px solid #595752;
    padding-top: 8px;
  }
  header nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
  header .language {
    flex-shrink: 0;
  }
  header .logo {
    width: 115px;
    height: 55px;
  }
  .button {
    min-width: 200px;
  }
  header > a[href*='/releases'] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (min-width: 1600px) {
  .hero::before {
    background-position:
      center,
      center,
      center calc(42% - 300px);
  }
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}
.footer-links a + a::before {
  content: '/';
  display: inline-block;
  margin-right: 12px;
  color: var(--paper);
}

/* Mobile navigation stays expanded when JavaScript is unavailable. */
.menu-toggle {
  display: none;
}
@media (max-width: 700px) {
  header {
    position: relative;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: 2;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #595752;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
  }
  .menu-toggle svg {
    display: block;
    flex-shrink: 0;
  }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
  }
  header .language {
    order: 1;
  }
  header nav {
    flex-basis: calc(100% + 8vw);
    width: calc(100% + 8vw);
    margin: 0 -4vw -12px;
    padding: 8px 4vw;
    grid-template-columns: 1fr;
  }
  header:has(.menu-toggle[data-ready='true'][aria-expanded='false']) nav {
    display: none;
  }
}

/* Static plugin status remains visible while release downloads load. */
.download-platform[hidden] {
  display: none;
}
.coming-soon {
  display: table;
  margin: 18px auto;
  padding: 8px 12px;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
