/* Linky Run game page — extends /styles.css */

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

.game-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.brand-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 56px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  letter-spacing: -0.01em;
  transition: color 120ms ease;
}

.brand-back img {
  display: block;
  width: 24px;
  height: auto;
}

.brand-back:hover {
  color: #111;
}

.game-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
}

.game-icon {
  border-radius: 22px;
  display: block;
}

.game-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.game-tag {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.game-about {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-about p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

.game-status {
  margin-bottom: 64px;
}

/* Gallery — 5 phone screenshots. Page container is 560px which crams
   5-up phone shots (~100px each). Stays inside the container and
   horizontal-scrolls so each thumb is wide enough that wiki paragraph
   text is readable but not so wide that it dominates the page. */
.game-gallery {
  margin-bottom: 56px;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-strip figure {
  margin: 0;
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 12px;
  background: #f0f0f0;
  display: block;
}

.gallery-strip figcaption {
  font-size: 12px;
  color: #666;
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-align: center;
  padding: 0 4px;
}

/* Feature list — short cards explaining the loop. */
.game-features {
  margin-bottom: 56px;
  display: grid;
  gap: 18px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-item .feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-item p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 120ms ease;
}

.store-btn:hover {
  opacity: 0.75;
}

.store-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .brand-back {
    color: #888;
  }
  .brand-back:hover {
    color: #fff;
  }
  .brand-back img {
    filter: invert(1);
  }
  .game-tag {
    color: #999;
  }
  .game-about p {
    color: #ccc;
  }
  .store-btn {
    background: #f0f0f0;
    color: #111;
  }
  .game-icon {
    /* 아이콘은 자체 색이라 invert X */
  }
  .gallery-strip img {
    background: #1a1a1a;
  }
  .gallery-strip figcaption {
    color: #999;
  }
  .feature-item p {
    color: #bbb;
  }
}
