:root {
  --bg: #fffaf4;
  --bg-accent: #fff1df;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #fff7ec;
  --text: #2d241d;
  --muted: #6e6156;
  --line: rgba(120, 90, 60, 0.16);
  --shadow: 0 20px 60px rgba(109, 74, 33, 0.12);
  --shadow-soft: 0 12px 30px rgba(109, 74, 33, 0.08);
  --accent: #ef7b45;
  --accent-strong: #d95f2c;
  --accent-soft: #ffe1c8;
  --accent-ink: #7b3f1f;
  --max-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 221, 181, 0.9), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 239, 201, 0.85), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 46%, #fff6eb 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 244, 0.86);
  border-bottom: 1px solid rgba(120, 90, 60, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(120, 90, 60, 0.12);
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-store-link {
  background: rgba(239, 123, 69, 0.12);
  color: var(--accent-ink);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.58);
}

.hero-section {
  padding: 36px 0 20px;
}

.hero-grid {
  display: grid;
  gap: 20px;
}

.hero-copy,
.hero-panel,
.download-card,
.info-card,
.feature-card,
.screenshot-card,
.update-item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 236, 0.94));
  border-radius: var(--radius-lg);
  padding: 26px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 244, 229, 0.98), rgba(255, 255, 255, 0.84));
  border-radius: var(--radius-lg);
  padding: 18px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.footer-title {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.55rem);
  max-width: 12.5ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 14ch;
}

h3,
.footer-title {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.hero-lead,
.section-heading p,
.panel-copy,
.download-note,
.download-meta,
.site-footer p {
  color: var(--muted);
}

.hero-lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 1.03rem;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 95, 44, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 28px rgba(217, 95, 44, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-highlights {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-highlights li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffbd79, #ef7b45);
}

.panel-label {
  color: var(--accent-ink);
  font-weight: 700;
}

.hero-panel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: start;
}

.hero-preview-image {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  border: 1px solid rgba(120, 90, 60, 0.1);
  background: #f5eadb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 36px rgba(80, 52, 22, 0.14);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-stats article {
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 16px 14px;
  min-height: 104px;
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel-points {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-panel-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-panel-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffbd79, #ef7b45);
  flex: 0 0 8px;
}

.content-section,
.download-section {
  padding: 22px 0;
}

.alt-section {
  position: relative;
}

.alt-section::before {
  content: "";
  position: absolute;
  inset: 14px 0;
  background: linear-gradient(180deg, rgba(255, 241, 223, 0.58), rgba(255, 250, 244, 0.32));
  z-index: -1;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.card-grid,
.screenshots-grid,
.updates-list,
.footer-grid {
  display: grid;
  gap: 16px;
}

.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-card,
.feature-card,
.screenshot-card,
.update-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
}

.info-card,
.feature-card,
.update-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.info-card p,
.feature-card p,
.update-item p,
.screenshot-card figcaption {
  margin-top: 12px;
  color: var(--muted);
}

.screenshots-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.screenshot-card {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 241, 0.88));
  padding: 16px;
}

.screenshot-card figcaption {
  line-height: 1.55;
}

.screenshot-image {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  background: #f5eadb;
  border: 1px solid rgba(120, 90, 60, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 20px 40px rgba(80, 52, 22, 0.12);
}

.updates-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.update-date {
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card {
  display: grid;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255, 238, 214, 0.95), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-lg);
  padding: 26px;
}

.download-note {
  max-width: 32ch;
  margin-top: 2px;
}

.download-details {
  display: grid;
  gap: 8px;
  max-width: 32ch;
}

.download-meta {
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer {
  padding: 26px 0 38px;
}

.footer-grid {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(120, 90, 60, 0.1);
  border-radius: 24px;
  padding: 22px;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px 16px;
}

.copyright {
  color: var(--muted);
  font-size: 0.94rem;
  padding-top: 6px;
}

.footer-platform {
  margin-top: 10px;
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .hero-section {
    padding-top: 44px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: stretch;
  }

  .download-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 759px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    gap: 6px;
  }

  .hero-panel-top {
    grid-template-columns: 1fr;
  }

  .hero-preview-image {
    max-width: 180px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .download-card,
  .footer-grid {
    padding: 20px;
  }

  .screenshot-card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
