:root {
  --paper: #fcfdff;
  --ink: #000;
  --brand-red: #e70013;
  --footer: #ededed;
  --card-border: #e8e8e8;
  --link: #418dc2;
  --focus: #146db0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #f2f3f5;
  color: var(--ink);
  font-family: "Asap", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: #111;
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border-radius: clamp(0px, 0.8vw, 20px);
  background-color: var(--paper);
  background-image: radial-gradient(circle, #dfe5ed 2.3px, transparent 2.5px);
  background-size: 30px 30px;
  animation: dots-drift 6s linear infinite;
}

@keyframes dots-drift {
  to { background-position: 0 -60px; }
}

.hero {
  min-height: 0;
  padding: clamp(95px, 6.52vw, 167px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rockalot-mark { width: clamp(166px, 12vw, 307px); height: auto; }

.studio-intro {
  position: relative;
  width: min(59vw, 1511px);
  margin: clamp(38px, 3.15vw, 81px) 0 0;
  font-size: clamp(14px, 1.02vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.gday {
  position: absolute;
  top: -0.75em;
  right: 12%;
  color: #a5a5a5;
  font-size: 0.78em;
  transform: rotate(15deg);
}

.social-cluster {
  --social-color: #abb9ce;
  position: relative;
  width: clamp(150px, 11.69vw, 299px);
  aspect-ratio: 299 / 44;
}

.social-cluster--hero { margin-top: clamp(26px, 2.33vw, 60px); }

.social-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  background: currentColor;
  color: var(--social-color);
  -webkit-mask: url("assets/figma/rockalot-logo.svg") no-repeat;
  -webkit-mask-size: 400% 100%;
  mask: url("assets/figma/rockalot-logo.svg") no-repeat;
  mask-size: 400% 100%;
  transition: color 150ms ease;
}

.social-hit--one { left: 0; width: 25%; -webkit-mask-position: left center; mask-position: left center; }
.social-hit--two { left: 37%; width: 25%; -webkit-mask-position: center; mask-position: center; }
.social-hit--three { right: 0; width: 25%; -webkit-mask-position: right center; mask-position: right center; }
.social-hit:hover, .social-hit:focus-visible { color: var(--brand-red); }

.game-card {
  position: relative;
  width: clamp(460px, 40vw, 1024px);
  margin-top: clamp(96px, 6.8vw, 174px);
  margin-bottom: clamp(62px, 4.25vw, 109px);
  padding: 0 clamp(30px, 3.1vw, 79px) clamp(30px, 2.3vw, 59px);
  border: clamp(3px, 0.27vw, 7px) solid var(--card-border);
  border-radius: clamp(14px, 0.94vw, 24px);
  background: #fff;
  box-shadow: 0 clamp(13px, 1.17vw, 30px) 0 var(--card-border);
}

.game-art { width: 96.6%; height: auto; margin: -14.5% auto 0; }

.action-row {
  position: relative;
  z-index: 2;
  min-height: clamp(52px, 3.7vw, 95px);
  margin-top: clamp(20px, 1.35vw, 35px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-button {
  width: clamp(156px, 11.02vw, 282px);
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
  transition: transform 150ms ease;
}

.wishlist-button:hover, .wishlist-button:focus-visible { transform: translateY(-3px); }
.wishlist-button img { width: 100%; height: auto; }

.game-pitch {
  margin: clamp(22px, 1.75vw, 45px) 0 0;
  font-size: clamp(12px, 0.86vw, 22px);
  font-weight: 400;
  text-align: center;
}

.game-details {
  margin-top: clamp(24px, 1.45vw, 37px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, 1fr);
  gap: clamp(22px, 2.1vw, 54px);
}

.game-copy { font-size: clamp(10px, 0.7vw, 18px); font-weight: 300; line-height: 1.8; }
.game-copy ul { margin: 0; padding-left: 1.5em; }
.game-copy p { margin: clamp(22px, 1.45vw, 37px) 0 0; }
.game-copy .tagline { margin-top: clamp(20px, 1.35vw, 35px); }

.screenshot-rail { display: grid; align-content: start; gap: clamp(4px, 0.2vw, 6px); }

.screenshot-rail button {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  cursor: zoom-in;
}

.screenshot-rail img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 160ms ease, transform 160ms ease; }
.screenshot-rail button:hover img, .screenshot-rail button:focus-visible img { opacity: 0.82; transform: scale(1.02); }

.trailer-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: clamp(34px, 2.65vw, 68px);
  overflow: hidden;
  background: #111;
}

.trailer-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  min-height: clamp(190px, 10.4vw, 266px);
  padding: clamp(36px, 3vw, 77px) 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--footer);
}

.social-cluster--footer { --social-color: #999; width: clamp(145px, 11.69vw, 299px); }
.copyright { margin: clamp(24px, 1.9vw, 48px) 0 0; font-size: clamp(13px, 0.82vw, 21px); font-weight: 300; }

.screen-australia {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #555;
  font-size: clamp(11px, 0.62vw, 16px);
}

.screen-australia img { width: clamp(132px, 8.2vw, 210px); height: auto; }
.screen-australia p { margin: 0; }

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0.65rem;
  background: #111;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.65);
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); }
.lightbox > img { width: 100%; height: auto; border-radius: inherit; }

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  padding: 0.4rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 700 1rem "Asap", sans-serif;
}

.lightbox-close span { margin-left: 0.3rem; font-size: 1.35rem; }

@media (max-width: 700px) {
  .page-shell { border-radius: 0; background-size: 26px 26px; }
  .hero { padding-top: 92px; }
  .rockalot-mark { width: 122px; }
  .studio-intro { width: min(80%, 32rem); margin-top: 34px; font-size: 15px; }
  .gday { right: 5%; }
  .social-cluster--hero { margin-top: 30px; }

  .game-card {
    width: calc(100% - 32px);
    margin-top: 84px;
    margin-bottom: 72px;
    padding-inline: 22px;
  }

  .game-art { width: 100%; margin-top: -15%; }
  .action-row { margin-top: 20px; }
  .wishlist-button { width: 170px; }
  .game-pitch { margin-top: 22px; font-size: 15px; }
  .game-details { grid-template-columns: 1fr; gap: 28px; }
  .game-copy { font-size: 14px; line-height: 1.7; }
  .screenshot-rail { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .trailer-embed { margin-top: 30px; }
  .site-footer { min-height: 230px; }
  .screen-australia { max-width: 320px; flex-direction: column; gap: 0.65rem; text-align: center; }
  .screen-australia img { width: 150px; }
}

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