:root {
  color-scheme: light;
  --green: #01875f;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --page: 480px;
}

* { box-sizing: border-box; }

html { background: #f1f3f4; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #f1f3f4;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { cursor: pointer; }

.store-shell {
  width: min(100%, var(--page));
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #eef0f1;
}

.store-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 10px 16px;
}

.store-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
}

.play-mark { width: 24px; height: 24px; flex: 0 0 24px; }
.store-brand-name { font-size: 19px; white-space: nowrap; }
.top-developer { margin-left: 4px; padding: 4px 7px; border-radius: 12px; color: #8a6500; background: #fff8e1; font-size: 9px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-button { width: 36px; height: 36px; padding: 7px; border: 0; border-radius: 50%; color: #5f6368; background: transparent; }
.icon-button:hover, .action-btn:hover { background: #f1f3f4; }
.icon-button svg { display: block; width: 22px; height: 22px; fill: currentColor; }

.main-content { width: 100%; padding-top: 0; }
.app-info, .content-section { padding: 20px 16px; }
.app-info { padding-top: 20px; }
.app-main { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.app-icon { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 16px; object-fit: cover; background: #f1f3f4; }
.app-text { min-width: 0; padding-top: 1px; }
.app-name { margin: 0 0 6px; font-size: 22px; line-height: 27px; font-weight: 500; overflow-wrap: anywhere; }
.verified-icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; margin-left: 3px; border-radius: 50%; color: white; background: var(--green); font-size: 12px; vertical-align: 2px; }
.developer { display: inline-block; color: var(--green); font-size: 14px; text-decoration: none; }
.verified-line, .verified-reviews { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.verified-line { margin-top: 10px; }
.shield-icon { display: inline-flex; width: 17px; height: 17px; align-items: center; justify-content: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-size: 11px; font-weight: 700; }

.stats-row { display: flex; width: 100%; margin-bottom: 16px; }
.stat { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 12px; text-align: center; }
.stat + .stat::before { position: absolute; left: 0; top: 8px; width: 1px; height: 25px; background: var(--line); content: ''; }
.stat strong { color: var(--text); font-size: 16px; font-weight: 500; line-height: 19px; }
.stat span:not(.star) { white-space: nowrap; }
.star { color: #fbbc04; font-size: 14px; }

.download-form { margin: 0 0 12px; }
.install-btn { display: block; width: 100%; min-height: 40px; padding: 12px; border: 0; border-radius: 8px; color: #fff; background: var(--green); font-size: 14px; font-weight: 600; line-height: 16px; text-align: center; }
.install-btn:hover { background: #006e4d; }
.install-btn:disabled { opacity: .65; cursor: wait; }

.action-row { display: flex; gap: 12px; }
.action-btn { display: inline-flex; min-height: 40px; flex: 1; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; color: var(--green); background: transparent; font-size: 14px; }
.action-btn.is-selected { background: #e6f4ee; }
.action-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }

.screenshots-section { padding: 16px; }
.screenshots-scroll { display: flex; gap: 12px; width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot { display: block; width: 120px; height: 213px; flex: 0 0 120px; border-radius: 8px; object-fit: cover; object-position: center; background: #f1f3f4; user-select: none; -webkit-user-drag: none; }

.content-section { border-top: 1px solid #f1f3f4; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 20px; line-height: 25px; font-weight: 500; }
.section-heading > span { color: var(--muted); font-size: 26px; line-height: 22px; }
.about-section p { margin: 16px 0 0; color: #3c4043; font-size: 14px; line-height: 21px; }
.about-section .updated { margin-top: 18px; color: var(--muted); font-size: 12px; }
.updated span { margin-right: 4px; }

.data-safety-section { padding-bottom: 24px; }
.section-intro { margin: 16px 0 20px; color: var(--muted); font-size: 13px; line-height: 19px; }
.safety-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 17px; }
.safety-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 24px; align-items: center; justify-content: center; color: var(--green); font-size: 17px; }
.safety-row div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.safety-row strong { color: #3c4043; font-size: 13px; font-weight: 500; line-height: 18px; }
.safety-row div span { color: var(--muted); font-size: 12px; line-height: 17px; }
.details-button { margin-top: 20px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 20px; color: var(--green); background: #fff; font-size: 13px; }
.details-button:hover { background: #e6f4ee; }

.ratings-section { padding-bottom: 28px; }
.verified-reviews { margin: 16px 0 14px; }
.device-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.device-tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: #fff; font-size: 12px; }
.device-tab.active { border-color: #c6e8da; color: var(--green); background: #e6f4ee; }
.rating-overview { display: flex; align-items: center; gap: 22px; }
.rating-score { display: flex; min-width: 114px; flex-direction: column; align-items: center; }
.rating-score strong { font-size: 48px; line-height: 52px; font-weight: 400; }
.rating-score span { color: #fbbc04; font-size: 17px; letter-spacing: -1px; }
.rating-score small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.rating-bars { min-width: 0; flex: 1; }
.rating-bars div { display: flex; height: 17px; align-items: center; gap: 7px; }
.rating-bars div > span { width: 10px; color: var(--muted); font-size: 11px; text-align: right; }
.rating-bars i { height: 4px; flex: 1; overflow: hidden; border-radius: 4px; background: #e8eaed; }
.rating-bars b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.review-card { margin-top: 20px; padding: 14px; border-radius: 8px; background: #f8f9fa; font-size: 13px; line-height: 19px; }
.review-card div { display: flex; justify-content: space-between; gap: 8px; }
.review-card p { margin: 8px 0 0; }

.store-footer { padding: 28px 16px 24px; border-top: 1px solid #f1f3f4; color: var(--muted); }
.store-footer strong { display: block; margin-bottom: 18px; color: var(--text); font-size: 14px; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-links a { color: var(--green); font-size: 12px; text-decoration: none; }
.bottom-nav { display: flex; border-top: 1px solid #f1f3f4; background: #fff; }
.bottom-nav button { min-height: 48px; flex: 1; padding: 6px 2px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.bottom-nav button:first-child { color: var(--green); }

@media (max-width: 360px) {
  .store-brand-name { font-size: 17px; }
  .top-developer { display: none; }
  .screenshot { width: 112px; flex-basis: 112px; }
  .rating-overview { gap: 10px; }
  .rating-score { min-width: 102px; }
}
