/* Hallmark · reference: game hero, split product feature, recruitment banner
 * pre-emit critique: P5 H4 E4 S5 R5 V4 · audience: players and applicants
 */
.game-document,
.game-page {
  overflow-x: clip;
}

.game-page {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font: 14px/1.8 var(--font-body);
}

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

.game-page h1,
.game-page h2,
.game-page h3,
.game-page p,
.game-page figure {
  margin: 0;
}

.game-page h1,
.game-page h2,
.game-page h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-style: normal;
  font-weight: 600;
}

.game-page a {
  text-decoration: none;
}

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

.hero-art img {
  width: 100%;
  height: auto;
}

.hero-actions-wrap {
  padding: 28px 0;
  background: var(--color-surface);
}

.hero-actions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.hero-actions-inner h1 {
  color: var(--color-title);
  font-size: 32px;
  line-height: 1.5;
}

.hero-actions-inner p {
  margin-top: 4px;
  color: var(--color-accent);
  font-size: 16px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.game-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-surface);
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease-out);
}

.game-button:hover {
  background: var(--color-accent-hover);
  color: var(--color-surface);
}

.game-button:active {
  transform: translateY(1px);
}

.game-button-download {
  background: var(--color-download);
}

.game-button-download:hover {
  background: var(--color-download-hover);
}

.products-section {
  padding: var(--space-section) 0 96px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: 40px;
}

.section-heading h2 {
  color: var(--color-title);
  font-size: 28px;
  line-height: 1.5;
}

.section-heading a {
  color: var(--color-accent);
  font-size: 18px;
  white-space: nowrap;
}

.section-heading a:hover {
  color: var(--color-accent-hover);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: var(--color-surface);
  scroll-margin-top: var(--space-lg);
}

.product-art {
  display: flex;
  overflow: clip;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  min-width: 0;
  padding: 28px var(--space-xl);
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
}

.product-heading h3 {
  color: var(--color-title);
  font-size: 30px;
  line-height: 1.5;
}

.product-heading p {
  margin-top: 4px;
  color: var(--color-accent);
  font-size: 14px;
}

.product-tags {
  display: flex;
  gap: var(--space-sm);
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.product-tags li {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  color: var(--color-muted);
  line-height: 30px;
  text-align: center;
}

.product-description {
  max-height: 168px;
  overflow-y: auto;
  padding-right: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted) var(--color-page);
  line-height: 1.9;
}

.product-description p + p {
  margin-top: var(--space-sm);
}

.product-info .game-actions {
  margin-top: var(--space-lg);
}

.product-info .game-button {
  flex: 1;
  padding-inline: var(--space-sm);
  font-size: 15px;
}

.product-banner {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 240px;
  height: min(312px, 22vw);
  overflow: clip;
}

.product-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-banner h1 {
  position: relative;
  color: var(--color-surface);
  font-size: 48px;
  letter-spacing: 3px;
}

.join-section {
  padding: 72px 0;
  background: var(--color-header) url('/static/common/images/join-us.png') center / cover no-repeat;
  color: var(--color-footer-heading);
}

.join-section h2 {
  font-size: 36px;
  line-height: 1.5;
}

.join-section p {
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--color-footer-text);
  font-size: 18px;
}

@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-art img {
    height: auto;
  }

  .product-description {
    max-height: 220px;
  }

  .product-info .game-actions {
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .hero-actions-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .hero-actions-inner h1 {
    font-size: 28px;
  }

  .hero-actions-inner p {
    font-size: 14px;
  }

  .hero-actions-inner .game-actions {
    width: 100%;
  }

  .hero-actions-inner .game-button {
    flex: 1;
    padding-inline: var(--space-sm);
  }

  .products-section {
    padding: 40px 0 var(--space-2xl);
  }

  .section-heading {
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-lg);
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-heading a {
    font-size: 15px;
  }

  .product-info {
    padding: var(--space-lg) 20px;
  }

  .product-heading {
    gap: var(--space-sm);
  }

  .product-icon {
    width: 60px;
    height: 60px;
  }

  .product-heading h3 {
    font-size: 24px;
  }

  .product-heading p {
    font-size: 12px;
  }

  .product-description {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .product-banner {
    min-height: 160px;
  }

  .product-banner h1 {
    font-size: 32px;
  }

  .join-section {
    padding: var(--space-2xl) 0;
    background-position: 40% center;
  }

  .join-section h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-button {
    transition: none;
  }
}
