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

:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Helvetica", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.page {
  width: min(1000px, 88vw);
  margin: 0 auto;
}

main {
  flex: 1;
}

.site-header {
  padding: 1.4rem 0 0.6rem;
}

.site-header .page {
  width: min(1200px, 88vw);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  width: min(200px, 40vw);
  height: auto;
}

.top-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.top-nav a,
.top-nav summary {
  padding: 0.2rem 0.1rem;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease;
}

.top-nav a:hover,
.top-nav summary:hover {
  color: #000000;
  background: #f2f2f2;
}

.top-nav .is-active {
  font-weight: 700;
  color: #000000;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: none;
}

.nav-caret {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.nav-dropdown ul {
  position: absolute;
  top: 1.6rem;
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.6rem 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.nav-dropdown li a {
  display: block;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background: #f6f6f6;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
}

h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.section {
  padding: var(--section-padding, clamp(1.8rem, 5vw, 3.2rem)) 0;
}

.center {
  text-align: center;
}

.game-logo {
  width: min(var(--game-logo-width, 320px), 75%);
  margin: 0 auto var(--game-logo-margin-bottom, 1rem);
}

.video-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
  margin: var(--video-margin-top, 1rem) auto var(--video-margin-bottom, 1.2rem);
  max-width: 1000px;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-title {
  font-size: var(--video-title-size, 0.95rem);
  font-weight: 700;
  margin-top: 0.4rem;
  margin-bottom: 0;
  color: #1b1b1b;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cta-gap, 0.8rem);
  align-items: center;
  justify-content: center;
  margin: var(--badge-row-margin-top, 0.8rem) 0 var(--badge-row-margin-bottom, 0.6rem);
}

.badge-row a {
  width: var(--cta-width, auto);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-row a.cta-steam {
  width: var(--cta-steam-width, var(--cta-width, auto));
}

.badge-row a.cta-app-store {
  width: var(--cta-app-store-width, var(--cta-width, auto));
}

.badge-row a.cta-google-play {
  width: var(--cta-google-play-width, var(--cta-width, auto));
}

.badge-row img {
  width: 100%;
  height: auto;
  max-height: var(--cta-height, 34px);
  object-fit: contain;
}

.cta-google-play img {
  max-height: var(--cta-google-play-height, var(--cta-height, 34px));
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.home-title {
  font-size: clamp(1.2rem, 3vw, var(--home-title-size, 1.7rem));
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: var(--home-title-margin-bottom, 0.6rem);
}

.home-cta-title {
  font-size: var(--cta-title-size, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #1b1b1b;
  margin-bottom: 0.8rem;
}

.home-copy {
  max-width: 620px;
  margin: 1rem auto 0;
}

.home-copy p {
  margin-bottom: 0.6rem;
}

.divider {
  height: 0;
  background: transparent;
  width: min(460px, 80%);
  margin: 0 auto;
}

.award {
  width: min(200px, 60%);
  margin: 0 auto;
  clip-path: inset(8px 0 0 0);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: var(--gallery-margin-top, 1.2rem) 0 1.2rem;
}

.video-frame-compact {
  margin-bottom: var(--gallery-compact-gap, 0.6rem);
}

.gallery-compact {
  margin-top: var(--gallery-compact-gap, 0.6rem);
}

.shot-grid img,
.shot-wide img {
  border-radius: 12px;
}

.shot-wide {
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
}

.button.outline {
  background: transparent;
  color: var(--ink);
}

.footer {
  border-top: 1px solid var(--line);
  padding: var(--footer-padding-top, 2.4rem) 0 clamp(2rem, 6vw, 3.4rem);
  margin-top: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.footer-links a {
  padding: 0.2rem 0.1rem;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease;
}

.footer-links a:hover {
  color: #000000;
  background: #f2f2f2;
}

.footer-links .is-active {
  font-weight: 700;
  color: #000000;
}

.footer-copyright {
  margin-top: var(--footer-copyright-margin-top, 1rem);
}

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

.policy-content {
  max-width: 680px;
  margin-top: 1.4rem;
}

.policy-content h2 {
  margin-top: 1.4rem;
}

.policy-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.policy-list-item {
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.policy-list-item h3 {
  margin-bottom: 0.4rem;
}

.mirages-sections {
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.mirages-sections h3 {
  margin-top: 1.4rem;
}

@media (max-width: 720px) {
  .logo {
    width: min(140px, 60vw);
  }

  .top-nav .nav-contact,
  .top-nav .nav-jobs {
    display: none;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
