:root {
  color-scheme: light;
  --ink: #172034;
  --muted: #5f6678;
  --line: #e8e6f0;
  --surface: #ffffff;
  --brand: #0fa6b8;
  --pink: #e848a1;
  --gold: #ffd64f;
  --deep: #21123d;
  --shadow: 0 24px 70px rgba(33, 18, 61, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fbfbff;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 78px;
  position: relative;
  z-index: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(232, 72, 161, 0.22);
}

.nav-links,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

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

.hero {
  min-height: calc(100vh - 78px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-art,
.hero-art img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 11, 37, 0.82) 0%, rgba(16, 11, 37, 0.58) 38%, rgba(16, 11, 37, 0.08) 100%),
    linear-gradient(180deg, rgba(16, 11, 37, 0.22) 0%, rgba(16, 11, 37, 0.34) 100%);
  z-index: 1;
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 54px;
  position: relative;
  z-index: 2;
}

.game-logo {
  width: min(330px, 76vw);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  width: 100%;
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.lead,
.project-note {
  width: 100%;
  max-width: 610px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.project-note {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.store-button {
  min-width: 178px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(11, 14, 24, 0.88);
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.store-button-apple {
  background: linear-gradient(135deg, #0a84ff 0%, #0066cc 58%, #004c99 100%);
  border-color: rgba(130, 200, 255, 0.72);
}

.store-button-google {
  background: linear-gradient(135deg, #202124 0%, #2d333b 62%, #101318 100%);
  border-color: rgba(95, 231, 151, 0.64);
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(8, 7, 30, 0.3);
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.1;
}

.store-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.store-button-apple .store-icon {
  color: #ffffff;
}

.store-button-google .store-icon {
  background: #ffffff;
}

.store-button-google .store-icon i {
  background: linear-gradient(135deg, #34a853 0%, #4285f4 42%, #fbbc05 68%, #ea4335 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.store-button.is-disabled {
  cursor: default;
  opacity: 0.82;
  pointer-events: none;
}

.quick-info {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quick-info div,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(33, 18, 61, 0.08);
}

.quick-info div {
  padding: 26px;
}

.quick-info h2 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 1.1rem;
}

.quick-info p {
  margin: 0;
  color: var(--muted);
}

.legal-page {
  width: min(850px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 74px;
}

.legal-content {
  padding: 44px;
}

.legal-content h1 {
  margin-bottom: 24px;
  color: var(--deep);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.legal-content h2 {
  margin: 34px 0 8px;
  color: var(--deep);
  font-size: 1.1rem;
}

.legal-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.legal-content a {
  color: #0f7180;
  font-weight: 800;
}

.site-footer {
  min-height: 82px;
  padding: 24px 0;
  border-top: 1px solid rgba(33, 18, 61, 0.08);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-header {
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    gap: 10px 14px;
  }

  .nav-links a,
  .site-footer a {
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(16, 11, 37, 0.42) 0%, rgba(16, 11, 37, 0.88) 54%, rgba(16, 11, 37, 0.94) 100%);
  }

  .hero-art img {
    object-position: center top;
  }

  .hero-content {
    width: min(100% - 28px, 1120px);
    min-height: calc(100vh - 124px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 150px 0 28px;
  }

  .game-logo {
    width: min(250px, 76vw);
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .lead,
  .project-note {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .store-actions {
    width: 100%;
    gap: 10px;
    margin-top: 18px;
  }

  .store-button {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-width: calc(50% - 5px);
    min-height: 54px;
    padding: 8px 10px;
    gap: 9px;
    font-size: 0.88rem;
  }

  .store-button span {
    min-width: 0;
  }

  .store-icon {
    width: 30px;
    height: 30px;
  }

  .quick-info {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
    padding: 34px 0 54px;
  }

  .legal-page {
    width: min(100% - 28px, 850px);
    padding-top: 26px;
  }

  .legal-content {
    padding: 28px;
  }
}
