:root {
  --play-green: #01875f;
  --play-orange: #ef6c00;
  --text: #202124;
  --muted: #5f6368;
  --line: #e8eaed;
  --cta: var(--play-green);
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8f9fa; }
body[data-skin="21"] { --cta: var(--play-orange); }

.play-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.play-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34a853, #4285f4 55%, #fbbc04);
  color: #fff;
  font-size: 11px;
}
.play-word { font-size: 20px; font-weight: 500; letter-spacing: .2px; }
.share-button {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.share-button img { width: 22px; height: 22px; }

.invite-banner {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px;
  background: linear-gradient(90deg, #0b7a4b, #14b87a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.invite-banner[hidden] { display: none; }

.store-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 20px 16px 8px;
  align-items: start;
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 1px 4px #00000022;
}
h1 { margin: 0 0 4px; font-size: 22px; font-weight: 500; line-height: 1.25; }
.developer { margin: 0; color: var(--cta); font-size: 13px; font-weight: 500; }
.contains { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; min-width: 0; }
.stat strong, .age-badge {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.stat span { display: block; color: var(--muted); font-size: 11px; }
.age-badge {
  display: inline-block;
  min-width: 38px;
  padding: 2px 6px;
  border: 1.5px solid #5f6368;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: .3px;
}

.cta-block { padding: 16px; }
.install-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--cta);
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
}
.install-btn:active { filter: brightness(.92); }
.cta-sub {
  margin: 8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.age-warn {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e1;
  color: #5d4037;
  font-size: 12px;
  line-height: 1.45;
}

.screenshots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 20px;
  scrollbar-width: none;
}
.screenshots::-webkit-scrollbar { display: none; }
.screenshots img {
  width: 148px;
  flex: 0 0 148px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #eef0f1;
}

.games, .description, .ratings, .reviews { padding: 8px 16px 20px; }
h2 { margin: 0 0 14px; font-size: 18px; font-weight: 500; }
.games-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.game-card { text-align: center; }
.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}
.game-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text);
}

.description p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #3c4043; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; }
.info-list dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.info-list dd { margin: 0; font-size: 14px; }

.rating-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.score strong { display: block; font-size: 48px; font-weight: 400; line-height: 1; }
.score .stars { color: var(--cta); letter-spacing: 2px; font-size: 14px; margin-top: 6px; }
.score span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.rating-bars { width: min(58%, 280px); display: grid; gap: 6px; }
.rating-bars > div { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.rating-bars i { display: block; flex: 1; height: 8px; border-radius: 8px; background: #e8eaed; overflow: hidden; }
.rating-bars em { display: block; height: 100%; background: var(--cta); }

.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-top span { color: var(--cta); }
.review p { margin: 0; font-size: 14px; line-height: 1.45; color: #3c4043; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #202124;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #000000b8;
}
.install-overlay[hidden] { display: none; }
.install-sheet {
  position: relative;
  width: min(100%, 560px);
  padding: 68px 24px 28px;
  background: #fff;
  border-radius: 12px 12px 0 0;
}
.install-logo {
  position: absolute;
  top: -50px;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translateX(-50%);
  border-radius: 24px;
}
.install-sheet h2 { font-size: 22px; text-align: center; margin: 0 0 22px; }
.install-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f2;
  font-size: 24px;
  cursor: pointer;
}
.install-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.install-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
}
.install-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
}
.install-steps img { width: 28px; height: 28px; vertical-align: middle; }
.install-steps .ios-menu {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f1f3;
}
.install-mini-logo { width: 40px !important; height: 40px !important; border-radius: 9px; }
.install-copy { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 390px) {
  .hero { grid-template-columns: 64px 1fr; }
  .app-icon { width: 64px; height: 64px; }
  .screenshots img { width: 128px; flex-basis: 128px; }
}
