/* ==========================================================
   ENTEXEL — shared website styles
   Edit the colors below to change the whole website.
   ========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-bold.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-semibold.ttf") format("truetype");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #101110;
  --surface: #191b18;
  --surface-light: #22251f;
  --text: #f4f4ed;
  --muted: #a3a79c;
  --accent: #d3ff6b;
  --border: #343730;
  --font-body: "Manrope", Arial, sans-serif;
  --font-heading: "Outfit", "Trebuchet MS", sans-serif;
  --page-width: 1200px;
  --radius: 18px;
}

/* 1. Page defaults and useful reusable classes */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
  opacity: 0.35;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--page-width), calc(100% - 96px));
  margin-inline: auto;
}

.section {
  padding-block: 108px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent);
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 52px;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: #151a0e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.button:hover {
  transform: translateY(-3px);
  background: #e0ff9b;
}

.button-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
}

.text-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 200ms ease;
}

.text-link:hover .icon {
  transform: translate(3px, -3px);
}

/* 2. Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 17, 16, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 6px;
  background: transparent;
  line-height: 0;
}

/* Display the original logo and its custom lettering as one image. */
.brand img {
  width: 210px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  font-size: 11px;
  font-weight: 700;
  transition: color 200ms;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a:last-child {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 3. Homepage hero */

.home-hero {
  position: relative;
  overflow: clip;
  padding: 70px 0 34px;
  background-image: radial-gradient(#ffffff0b 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 475px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.home-hero h1 {
  font-size: clamp(52px, 6.6vw, 88px);
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.hero-description {
  max-width: 360px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.hero-visual {
  position: relative;
  width: 120%;
  margin-left: -6%;
}

.hero-visual > img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  mask-image: radial-gradient(ellipse at 50% 50%, black 38%, transparent 73%);
  animation: gentle-float 9s ease-in-out infinite;
}

.hero-stamp {
  position: absolute;
  top: 8%;
  right: 14%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-stamp .spark {
  color: var(--accent);
  font-size: 28px;
  animation: slow-spin 20s linear infinite;
}

.hero-caption {
  position: absolute;
  right: 11%;
  bottom: 13%;
  padding: 9px 15px;
  border: 1px solid #ffffff20;
  border-radius: 5px;
  background: #151a13b3;
  backdrop-filter: blur(12px);
  color: #e1edce;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 15px;
}

.game-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}

.game-proof strong {
  color: var(--text);
  font-weight: 700;
}

.mini-icons {
  display: flex;
  padding-left: 8px;
}

.mini-icons img {
  width: 35px;
  height: 35px;
  margin-left: -8px;
  border: 3px solid var(--background);
  border-radius: 10px;
  object-fit: cover;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cue .icon {
  width: 15px;
  animation: nudge-down 2s ease-in-out infinite;
}

/* 4. Animated text ribbon */

.ribbon {
  overflow: hidden;
  margin-top: 30px;
  padding-block: 19px;
  border-block: 1px solid var(--border);
  color: #b6b9ae;
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-move 34s linear infinite;
}

.ribbon-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 45px;
  padding-right: 45px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ribbon-group span {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

/* 5. Game showcase and game cards */

.section-topline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 38px;
}

.section-title {
  font-size: clamp(34px, 4.3vw, 56px);
}

.section-intro {
  max-width: 280px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

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

.game-card {
  min-width: 0;
}

.game-art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1024 / 500;
  border-radius: 12px;
  background: var(--surface);
}

.game-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.game-art:hover > img {
  transform: scale(1.045);
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0006, transparent 45%);
  pointer-events: none;
}

.game-badge {
  position: absolute;
  top: 17px;
  left: 17px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  background: #101110cc;
  backdrop-filter: blur(10px);
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #12161066;
  color: white;
  transition:
    background 200ms,
    color 200ms;
}

.game-art:hover .card-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #151a0e;
}

.game-card-info {
  display: flex;
  align-items: start;
  gap: 14px;
  padding-top: 20px;
}

.game-card-info > img {
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.game-card h3 {
  margin-bottom: 6px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.game-card h3 a:hover {
  color: var(--accent);
}

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

.game-card-info > .icon {
  width: 16px;
  height: 16px;
  margin: 9px 0 0 auto;
  color: #7c8372;
}

/* 6. The studio */

.studio-section {
  border-block: 1px solid var(--border);
  background: #171916;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.studio-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 345px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: radial-gradient(
    ellipse at center,
    #334026 0%,
    #20251b 48%,
    #1a1e17 78%
  );
}

.studio-art::before,
.studio-art::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #d3ff6b18;
  border-radius: 50%;
}

.studio-art::after {
  width: 310px;
  height: 310px;
}

.studio-art > img {
  z-index: 1;
  width: 110px;
  border-radius: 50%;
  filter: drop-shadow(0 15px 30px #0005);
  animation: gentle-float 7s ease-in-out infinite;
}

.studio-art-label {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  color: #8c997b;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pixel {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 6px 6px 0 #668532;
  transform: rotate(-12deg);
  animation: gentle-float 6s ease-in-out infinite;
}

.pixel-one {
  top: 65px;
  left: 65px;
}
.pixel-two {
  top: 72px;
  right: 67px;
  width: 11px;
  height: 11px;
  background: #87d9c9;
  animation-delay: -2s;
}
.pixel-three {
  bottom: 78px;
  left: 98px;
  width: 12px;
  height: 12px;
  background: #fba880;
  animation-delay: -4s;
}
.pixel-four {
  bottom: 83px;
  right: 62px;
  width: 21px;
  height: 21px;
  animation-delay: -1s;
}

.studio-copy .section-title {
  font-size: clamp(34px, 4vw, 50px);
}

.studio-copy > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.studio-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 29px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.studio-values strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.studio-values span {
  color: var(--muted);
  font-size: 10px;
}

/* 7. Contact and footer */

.contact-section {
  padding-block: 100px;
}

.contact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-grid .section-title {
  font-size: clamp(38px, 5vw, 65px);
}

.contact-grid p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-links {
  flex-shrink: 0;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-links .icon {
  margin-left: auto;
}

.site-footer {
  padding: 40px 0 22px;
  border-top: 1px solid var(--border);
  background: #0c0e0c;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  padding-bottom: 37px;
}

.footer-description {
  max-width: 220px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 65px;
}

.footer-column strong {
  display: block;
  margin-bottom: 12px;
  color: #d9ddcf;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 21px;
  border-top: 1px solid var(--border);
  color: #808879;
  font-size: 9px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.back-to-top .icon {
  width: 12px;
  height: 12px;
}

/* 8. Game detail pages */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 10px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span[aria-hidden] {
  color: #66705a;
}

.game-hero {
  padding-block: 35px 80px;
  overflow: clip;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 65px;
}

.game-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

.game-identity > img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.game-identity .eyebrow {
  margin: 0 0 4px;
}

.game-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.game-hero h1 {
  font-size: clamp(52px, 5.5vw, 78px);
  line-height: 1;
}

.game-tagline {
  margin: 22px 0 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.game-summary {
  max-width: 410px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.play-button {
  gap: 13px;
  padding: 11px 22px;
}

.play-button .icon {
  width: 24px;
  height: 26px;
}

.play-button span {
  text-align: left;
  font-size: 15px;
  line-height: 1.3;
}

.play-button small {
  display: block;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 10px;
}

.game-legal-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}

.game-legal-links a:hover {
  color: var(--accent);
}

.game-hero-art {
  position: relative;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transform: rotate(2deg);
  box-shadow: 0 25px 70px #0003;
}

.game-hero-art img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  border-radius: 11px;
  object-fit: contain;
}

.game-hero-art .art-caption {
  padding: 12px 7px 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-meta-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.game-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.game-meta-grid > div {
  padding: 25px 28px;
}

.game-meta-grid > div + div {
  border-left: 1px solid var(--border);
}

.game-meta-grid small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-meta-grid strong {
  font-size: 12px;
  font-weight: 700;
}

.game-about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.game-about-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.feature-list {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: start;
  gap: 17px;
}

.feature-item > .icon {
  width: 24px;
  height: 24px;
  padding: 1px;
  margin-top: 3px;
  color: var(--accent);
}

.feature-item h3 {
  margin-bottom: 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.screenshots-section {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.circle-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition:
    color 200ms,
    border-color 200ms;
}

.circle-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.screenshot-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 5px 0 24px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #65734d #252a20;
  scrollbar-width: thin;
}

.screenshot-button {
  flex: 0 0 48%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  scroll-snap-align: start;
  cursor: zoom-in;
}

.screenshot-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform 350ms ease;
}

.screenshot-button:hover img {
  transform: scale(1.025);
}

.screenshot-gallery.portrait .screenshot-button {
  flex-basis: 23%;
}

.screenshot-gallery.portrait img {
  aspect-ratio: 9 / 16;
}

.gallery-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.image-dialog {
  width: min(1000px, 94vw);
  max-height: 94vh;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
}

.image-dialog::backdrop {
  background: #080b08e8;
  backdrop-filter: blur(10px);
}

.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px 6px;
  font-size: 12px;
}

.image-dialog > img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.game-download {
  padding-block: 80px;
  text-align: center;
}

.game-download .eyebrow {
  justify-content: center;
}

.game-download h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 4.5vw, 58px);
}

.game-download p {
  max-width: 460px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 12px;
}

.game-download .game-legal-links {
  justify-content: center;
}

.more-games {
  border-top: 1px solid var(--border);
}

.more-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.more-games-grid .game-card h3 {
  font-size: 19px;
}

.more-games-grid .game-card-info > img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.availability-note {
  padding: 15px 18px;
  margin: 22px 0;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: #bbc7ac;
  font-size: 11px;
}

.mission-art {
  aspect-ratio: 1.65;
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 80%, #236b65, #0c272d 65%);
}

/* 9. Animation — content stays visible if JavaScript is disabled. */

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nudge-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes ribbon-move {
  to {
    transform: translateX(-50%);
  }
}

/* 10. Tablet and phone layouts */

@media (min-width: 1500px) {
  .home-hero {
    padding-top: 90px;
  }
  .hero-grid {
    min-height: 550px;
  }
}

@media (max-width: 1000px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero-grid {
    min-height: 420px;
  }
  .home-hero {
    padding-top: 55px;
  }
  .home-hero h1 {
    font-size: clamp(45px, 6.2vw, 65px);
  }
  .hero-visual {
    width: 135%;
    margin-left: -17%;
  }
  .studio-grid {
    gap: 50px;
  }
  .game-hero-grid {
    gap: 35px;
  }
  .game-about {
    gap: 50px;
  }
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 740px) {
  .container {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 72px;
  }
  .header-inner {
    min-height: 73px;
  }
  .brand img {
    width: 170px;
    height: auto;
  }
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--border);
    background: #101110;
    box-shadow: 0 20px 40px #0005;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 16px 0;
    font-size: 13px;
  }
  .site-nav a:last-child {
    margin-top: 5px;
    text-align: center;
  }
  .home-hero {
    padding: 45px 0 27px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-hero h1 {
    font-size: clamp(50px, 11vw, 76px);
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-description {
    max-width: 365px;
    margin-block: 22px;
    font-size: 14px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 19px;
  }
  .hero-actions {
    gap: 22px;
  }
  .hero-visual {
    width: 110%;
    margin: -15px 0 -16px -5%;
  }
  .hero-visual > img {
    aspect-ratio: 1.5;
  }
  .hero-stamp {
    top: 14%;
    right: 11%;
    font-size: 7px;
  }
  .hero-caption {
    bottom: 13%;
    right: 6%;
    font-size: 8px;
  }
  .hero-bottom {
    padding-top: 0;
  }
  .scroll-cue {
    font-size: 0;
    gap: 0;
  }
  .scroll-cue .icon {
    width: 18px;
  }
  .game-proof {
    font-size: 9px;
    gap: 12px;
  }
  .ribbon {
    margin-top: 16px;
    padding-block: 17px;
  }
  .ribbon-group {
    font-size: 10px;
    gap: 30px;
    padding-right: 30px;
  }
  .section-topline {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
  }
  .section-intro {
    max-width: 330px;
  }
  .section-title {
    font-size: 39px;
  }
  .games-grid {
    gap: 35px 20px;
  }
  .game-badge {
    top: 10px;
    left: 10px;
    font-size: 7px;
  }
  .card-arrow {
    right: 12px;
    bottom: 12px;
    width: 31px;
    height: 31px;
  }
  .card-arrow .icon {
    width: 16px;
  }
  .game-card-info {
    gap: 10px;
    padding-top: 15px;
  }
  .game-card-info > img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
  }
  .game-card h3 {
    font-size: 21px;
  }
  .game-card p {
    font-size: 10px;
  }
  .game-card-info > .icon {
    display: none;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .studio-art {
    min-height: 300px;
  }
  .studio-copy .section-title {
    font-size: 39px;
  }
  .contact-section {
    padding-block: 72px;
  }
  .contact-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .contact-grid .section-title {
    font-size: 45px;
  }
  .contact-links a {
    max-width: 360px;
    font-size: 13px;
  }
  .footer-main {
    flex-direction: column;
    gap: 28px;
  }
  .footer-description {
    max-width: 250px;
  }
  .footer-links {
    width: 100%;
    gap: 35px;
    justify-content: space-between;
  }
  .footer-column a {
    font-size: 10px;
  }
  .footer-bottom {
    font-size: 9px;
  }
  .game-hero {
    padding: 26px 0 50px;
  }
  .breadcrumb {
    margin-bottom: 35px;
    font-size: 9px;
  }
  .game-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .game-hero h1 {
    font-size: 62px;
  }
  .game-hero-art {
    width: calc(100% - 8px);
    margin-inline: auto;
    transform: rotate(1deg);
  }
  .game-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-meta-grid > div {
    padding: 20px 15px;
  }
  .game-meta-grid > div:nth-child(3) {
    border-left: 0;
  }
  .game-meta-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .game-about {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .screenshots-section .section-topline {
    flex-direction: row;
    align-items: end;
  }
  .screenshots-section .section-title {
    font-size: 32px;
  }
  .screenshot-button {
    flex-basis: 90%;
  }
  .screenshot-gallery.portrait .screenshot-button {
    flex-basis: 58%;
  }
  .circle-button {
    width: 35px;
    height: 35px;
  }
  .game-download {
    padding-block: 65px;
  }
  .more-games-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .more-games-grid .game-card {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    gap: 18px;
  }
  .more-games-grid .game-card-info {
    padding-top: 0;
  }
  .more-games-grid .game-card-info > img {
    display: none;
  }
  .more-games-grid .game-badge {
    display: none;
  }
}

@media (max-width: 520px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .game-art {
    aspect-ratio: 1024 / 500;
  }
  .game-card-info {
    padding-top: 17px;
  }
  .game-card-info > img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .game-card h3 {
    font-size: 23px;
  }
  .game-card p {
    font-size: 12px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 25px 35px;
  }
  .footer-column {
    min-width: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
