* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --play-green: #01875f;
  --text: #202124;
  --muted: #5f6368;
  --hairline: #e0e3e7;
  --surface: #ffffff;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: Roboto, Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.store-page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 30px 28px 104px;
}

.app-summary {
  display: grid;
  gap: 28px;
}

.app-identity {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
}

.app-title {
  min-width: 0;
}

.app-title h1 {
  margin: 0 0 5px;
  font-size: 34px;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0;
}

.app-title p {
  margin: 0 0 5px;
  color: var(--play-green);
  font-size: 18px;
  line-height: 1.35;
}

.app-title span {
  color: var(--muted);
  font-size: 16px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  text-align: center;
}

.metric {
  min-width: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
}

.age-mark {
  transform: rotate(-11deg);
}

.divider {
  height: 46px;
  background: var(--hairline);
}

.install-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  background: var(--play-green);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.install-button:hover {
  background: #047857;
  box-shadow: 0 2px 6px rgba(1, 135, 95, 0.2);
}

.install-button:active {
  background: #056449;
}

.install-button:disabled {
  background: #d5dadd;
  color: #7b8186;
  cursor: not-allowed;
  box-shadow: none;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.quick-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--play-green);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.action-icon {
  font-size: 24px;
}

.device-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.device-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: block;
  fill: currentColor;
}

.screenshots {
  margin-top: 34px;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(124px, 31%, 176px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 12px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.screenshot-strip::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  margin: 0;
  aspect-ratio: 9 / 16;
  min-height: 276px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f3f4;
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.12);
  scroll-snap-align: start;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  min-height: 276px;
  display: block;
  object-fit: cover;
}

.about-section {
  margin-top: 34px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.section-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 400;
}

.content-text {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 680px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -1px 6px rgba(60, 64, 67, 0.12);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}

.bottom-nav a.active {
  color: var(--play-green);
}

.nav-icon {
  width: 27px;
  height: 24px;
  display: block;
  position: relative;
}

.nav-game::before,
.nav-game::after,
.nav-app::before,
.nav-movie::before,
.nav-book::before,
.nav-kids::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.nav-game::after {
  inset: 10px 6px auto auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.nav-app::before {
  border-radius: 5px;
  box-shadow: inset 8px 0 0 rgba(1, 135, 95, 0.22), inset -8px 0 0 rgba(1, 135, 95, 0.22);
}

.nav-movie::before {
  border-radius: 3px;
  box-shadow: inset 7px 0 0 rgba(95, 99, 104, 0.18), inset -7px 0 0 rgba(95, 99, 104, 0.18);
}

.nav-book::before {
  border-radius: 2px;
  border-bottom-width: 4px;
}

.nav-kids::before {
  transform: rotate(45deg);
  border-radius: 5px;
}

@media (max-width: 560px) {
  .store-page {
    padding: 24px 20px 100px;
  }

  .app-identity {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 19px;
  }

  .app-title h1 {
    font-size: 30px;
  }

  .metrics {
    margin-inline: -6px;
  }

  .metric strong {
    font-size: 19px;
  }

  .metric span {
    font-size: 14px;
  }

  .screenshot-strip {
    grid-auto-columns: minmax(118px, 31%);
    gap: 8px;
    padding-bottom: 10px;
  }

  .screenshot-card,
  .screenshot-card img {
    min-height: 210px;
  }
}
