:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --paper: #fff4d8;
  --text: #2b1d14;
  --muted: #64594e;
  --line: rgba(74, 49, 28, 0.14);
  --green: #3f852d;
  --green-dark: #2f681f;
  --wheat: #f3c45e;
  --shadow: 0 24px 60px rgba(75, 47, 18, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  color: #352012;
}

.brand.small {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 24px;
}

.nav,
.footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.nav a,
.footer a {
  color: #2b211a;
}

.nav a:hover,
.footer a:hover,
.resource-links a:hover,
.game-actions a:hover {
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.32fr);
  align-items: center;
  min-height: clamp(640px, calc(100svh - 74px), 760px);
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 34px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.9) 31%, rgba(255, 250, 240, 0.08) 58%);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 530px;
  padding: 78px 0 78px 56px;
}

.hero h1,
.support-hero h1,
.legal-page h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.hero p {
  max-width: 470px;
  margin: 28px 0 0;
  color: #2d261d;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.28;
  font-weight: 650;
}

.hero-actions,
.game-actions,
.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 850;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(63, 133, 45, 0.25);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  border: 2px solid var(--green);
  background: rgba(255, 250, 240, 0.58);
}

.store-button {
  color: #fff;
  background: #171717;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.88) 28%, rgba(255, 250, 240, 0.1) 56%, rgba(255, 250, 240, 0) 100%);
  pointer-events: none;
}

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

.game-section,
.publisher-section,
.footer,
.legal-page,
.support-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.game-section {
  padding: 54px 0 42px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 24px;
}

.section-heading h2,
.publisher-section h2,
.support-grid h2,
.legal-page h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 930;
  letter-spacing: 0;
}

.section-heading p,
.publisher-section p,
.support-page p,
.legal-page p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.featured-game {
  display: grid;
  grid-template-columns: 132px minmax(260px, 1fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4)),
    url("/assets/hamster-golden-fields-hero.png");
  background-size: 380%;
  background-position: 74% 58%;
  box-shadow: 0 16px 30px rgba(75, 47, 18, 0.18);
}

.app-icon span {
  font-size: 48px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.game-copy h3 {
  max-width: 560px;
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.02;
  font-weight: 930;
}

.game-copy p {
  max-width: 620px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 17px;
}

.game-copy .game-summary {
  color: #2f5f21;
  font-size: 20px;
  font-weight: 800;
}

.game-actions a {
  font-weight: 800;
  color: var(--green-dark);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 18px;
  border-left: 3px solid rgba(63, 133, 45, 0.28);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 3px;
  font-size: 18px;
}

.feature-list span {
  color: var(--muted);
}

.publisher-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 48px;
  padding: 34px;
  background: var(--paper);
  border-radius: var(--radius);
}

.resource-links {
  margin-top: 0;
}

.resource-links a {
  font-weight: 850;
  color: var(--green-dark);
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

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

.copyright {
  grid-column: 1 / -1;
  font-size: 14px;
  text-align: center;
}

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

.legal-page,
.support-page {
  padding: 54px 0;
}

.legal-page article,
.support-hero,
.support-grid > div {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.legal-page article {
  max-width: 860px;
}

.legal-page h1 {
  font-size: clamp(48px, 7vw, 78px);
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 28px;
}

.legal-page p {
  margin-top: 12px;
}

.legal-page a,
.support-page a:not(.button) {
  color: var(--green-dark);
  font-weight: 800;
}

.updated {
  color: var(--green-dark);
  font-weight: 800;
}

.support-hero {
  max-width: 840px;
  margin-bottom: 22px;
}

.support-hero h1 {
  font-size: clamp(54px, 8vw, 92px);
}

.support-hero p {
  max-width: 720px;
  margin-top: 18px;
}

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

.support-grid h2 {
  font-size: 26px;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 28px, 720px);
  }

  .brand {
    font-size: 25px;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero {
    display: block;
    min-height: 690px;
    width: calc(100% - 24px);
  }

  .hero-copy {
    padding: 54px 24px 310px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 84px);
  }

  .hero p {
    max-width: 330px;
    font-size: 22px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.99) 0%, rgba(255, 250, 240, 0.87) 44%, rgba(255, 250, 240, 0.08) 78%),
      linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0) 100%);
  }

  .hero-media img {
    object-position: 66% bottom;
  }

  .featured-game,
  .publisher-section,
  .footer,
  .footer.compact,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .featured-game {
    gap: 22px;
    padding: 24px;
  }

  .publisher-section {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 720px;
  }

  .hero-actions,
  .game-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .store-button {
    width: 100%;
  }

  .app-icon {
    width: 112px;
  }

  .footer nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}
