@font-face {
  font-family: "Revolution Gothic";
  src: url("../fonts/RevolutionGothic_Regular.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Revolution Gothic ExtraBold";
  src: url("../fonts/RevolutionGothic_ExtraBold.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080b14;
  --white: #f1f2f4;
  --muted: #b7bdc8;
  --blue: #168bff;
  --blue-bright: #52c7ff;
  --line: rgba(255, 255, 255, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(82, 199, 255, 0.3) 0%, transparent 31%),
    radial-gradient(ellipse at 67% 62%, rgba(46, 148, 235, 0.34) 0%, transparent 37%),
    radial-gradient(ellipse at 91% 74%, rgba(13, 77, 151, 0.42) 0%, transparent 34%),
    radial-gradient(ellipse at 48% 35%, rgba(8, 54, 122, 0.46) 0%, transparent 42%),
    linear-gradient(135deg, #040816 0%, #071f4b 58%, #030713 100%);
  color: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.startup-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}

.assets-ready .startup-fade {
  opacity: 0;
  visibility: hidden;
}

button,
a {
  font: inherit;
}

.shader {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 11, 20, 0.92) 0%, rgba(8, 11, 20, 0.72) 48%, rgba(8, 11, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 11, 20, 0.68) 0%, transparent 44%);
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(100% - 64px, 1320px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vh, 96px) 0;
}

.content {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: clamp(42px, 6vw, 90px);
  align-items: center;
}

.hero {
  max-width: 680px;
  min-width: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Revolution Gothic ExtraBold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(62px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.intro {
  max-width: 620px;
  margin: 24px 0 30px;
  color: #7d7d7d;
  font-size: clamp(24px, 2vw, 22px);
  line-height: 1.15;
}

.intro-detail {
  display: block;
  max-width: 620px;
  margin: -12px 0 28px;
  color: #dbdbdb;
  font-size: 16px;
  line-height: 1.45;
}

.hid-feature,
.simplicity-feature {
  padding: 17px 20px 18px;
  border-radius: 3px;
  background: linear-gradient(105deg, rgba(8, 62, 128, 0.42), rgba(4, 19, 47, 0.48));
  box-shadow: inset 0 0 28px rgba(22, 139, 255, 0.07);
}

.hid-feature {
  margin: 20px 0 0;
}

.simplicity-feature {
  margin: 12px 0 0;
  background: linear-gradient(105deg, rgba(8, 50, 108, 0.38), rgba(4, 16, 40, 0.5));
}

.hid-feature p,
.simplicity-feature p {
  margin: 0;
  color: #cbd0d9;
  font-size: 14px;
  line-height: 1.45;
}

.hid-feature strong,
.simplicity-feature strong {
  color: var(--white);
  font-family: "Revolution Gothic ExtraBold", "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
}

.download {
  position: relative;
  display: inline-flex;
  min-width: 210px;
  min-height: 62px;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 27px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(110deg,
      #073775 0%,
      #116fdc 17.5%,
      #2097ff 25%,
      #116fdc 32.5%,
      #073775 50%,
      #116fdc 67.5%,
      #2097ff 75%,
      #116fdc 82.5%,
      #073775 100%);
  background-size: 200% 100%;
  animation: download-gradient 3s linear infinite;
  box-shadow: 0 13px 34px rgba(0, 76, 173, 0.32);
  color: #fff;
  font-family: "Revolution Gothic", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.download-label {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.download-label small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.download::before {
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: 6px;
  background: conic-gradient(from var(--border-angle),
      transparent 0deg 255deg,
      rgba(32, 151, 255, 0.08) 275deg,
      rgba(32, 151, 255, 0.45) 305deg,
      #52c7ff 334deg,
      #ffffff 342deg,
      transparent 350deg 360deg);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: download-border 2.2s linear infinite;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes download-gradient {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

@keyframes download-border {
  to {
    --border-angle: 360deg;
  }
}

.download-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
  transition: transform 180ms ease, filter 180ms ease;
}

.download:hover .download-icon {
  transform: translateY(3px);
  filter: drop-shadow(0 -3px 0 rgba(82, 199, 255, 0.38));
}

.download:hover .download-label small {
  color: #ffffff;
}

.download:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
}

.catalog-link {
  display: inline-flex;
  min-width: 190px;
  min-height: 62px;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  border-radius: 4px;
  background: rgba(5, 29, 67, 0.58);
  box-shadow: inset 0 0 24px rgba(22, 139, 255, 0.08);
  color: #fff;
  font-family: "Revolution Gothic", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.catalog-link:hover {
  background: rgba(8, 52, 112, 0.74);
  box-shadow: inset 0 0 30px rgba(22, 139, 255, 0.14), 0 10px 30px rgba(0, 45, 108, 0.2);
}

.catalog-link:focus-visible,
.back-link:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.catalog-link-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.catalog-link:hover .catalog-link-icon {
  transform: translateX(3px);
}

.requirements {
  color: #d6dae1;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info {
  min-width: 0;
  margin: 52px 0 0;
  border-top: 1px solid var(--line);
  /* border-bottom: 1px solid var(--line); */
}

.info-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 17px 0;
  /* font-size: 18px; */
}

.info-row+.info-row {
  border-top: 1px solid var(--line);
}

.info dt {
  color: var(--white);
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Revolution Gothic", Helvetica;
  color: #737373;
}

.info dd {
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.4;
}

.system-icons {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  gap: 8px;
}

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

.info .hardware-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 14px;
}

.hardware-item {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hardware-item code {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.hardware-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.system-logo {
  display: flex;
  min-width: 0;
  overflow: hidden;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 3px;
  background: rgba(241, 242, 244, 0.94);
}

.system-logo img {
  display: block;
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
}

.preview {
  width: 100%;
  margin: 0;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 24px 0 30px;
  color: rgba(241, 242, 244, 0.58);
  font-size: 12px;
  letter-spacing: 0.06em;
}

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

footer a:hover,
footer a:focus-visible {
  color: var(--white);
}

/* Game library */

.library-page .backdrop {
  background:
    linear-gradient(90deg, rgba(8, 11, 20, 0.94) 0%, rgba(8, 11, 20, 0.78) 54%, rgba(8, 11, 20, 0.46) 100%),
    linear-gradient(0deg, rgba(8, 11, 20, 0.78) 0%, transparent 38%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 18px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.back-link {
  color: var(--white);
  text-decoration: none;
}

.wordmark {
  font-family: "Revolution Gothic ExtraBold", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  letter-spacing: 0.03em;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--blue-bright);
}

.games-main {
  display: block;
  padding: clamp(54px, 7vw, 92px) 0 72px;
}

.library-hero {
  max-width: 890px;
  margin-bottom: clamp(56px, 7vw, 90px);
}

.library-hero h1 {
  max-width: none;
  font-size: clamp(58px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-bright);
  font-family: "Revolution Gothic", "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.library-hero .intro {
  max-width: 780px;
  margin-bottom: 28px;
  color: #c4c9d1;
}

.catalog-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-key span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.key-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(82, 199, 255, 0.9);
}

.key-dot.cloud {
  border: 1px solid var(--blue-bright);
  background: transparent;
  box-shadow: none;
}

.catalog-section + .catalog-section {
  margin-top: clamp(64px, 8vw, 104px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: "Revolution Gothic ExtraBold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-bright);
  font-family: "Revolution Gothic", "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.system-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(18, 62, 123, 0.22), rgba(4, 11, 27, 0.72)),
    rgba(4, 10, 23, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.14);
}

.system-panel.wide {
  grid-column: 1 / -1;
}

.system-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.catalog-logo {
  display: flex;
  width: 92px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 3px;
  background: rgba(241, 242, 244, 0.94);
}

.catalog-logo img {
  display: block;
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
}

.arcade-mark {
  width: auto;
  min-width: 92px;
  background: rgba(22, 139, 255, 0.16);
  color: var(--blue-bright);
  font-family: "Revolution Gothic ExtraBold", "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.09em;
}

.system-heading h3 {
  margin: 0;
  font-family: "Revolution Gothic ExtraBold", "Arial Narrow", Arial, sans-serif;
  font-size: 27px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.system-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-list li {
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8dce3;
  font-size: 14px;
  line-height: 1.35;
}

.game-list li::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px 1px;
  border-radius: 50%;
  background: rgba(82, 199, 255, 0.82);
  content: "";
}

.catalog-note {
  margin: 22px 0 0;
  color: rgba(241, 242, 244, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .content {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview {
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 38px, 1320px);
  }

  main {
    width: 100%;
    min-width: 0;
    padding: 48px 0;
  }

  .hero,
  .intro,
  .actions,
  .info,
  .info-row,
  .system-icons,
  .preview {
    width: 100%;
    max-width: calc(100vw - 38px);
  }

  .intro {
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(55px, 18vw, 92px);
  }

  .info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

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

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

  footer {
    padding-top: 20px;
  }

  .site-header {
    padding-top: 22px;
  }

  .games-main {
    padding-top: 44px;
  }

  .section-heading,
  .system-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    gap: 15px;
  }

  .system-panel.wide {
    grid-column: auto;
  }

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

  .catalog-logo {
    width: 78px;
  }
}
