:root {
  --green: #00875f;
  --green-dark: #056449;
  --ink: #202124;
  --muted: #5f6368;
  --soft: #e8eaed;
  --page: #fff;
  --surface: #f8fafd;
  --shadow: 0 14px 28px rgba(60, 64, 67, .18), 0 6px 12px rgba(60, 64, 67, .12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.material-symbols-rounded {
  direction: ltr;
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-feature-settings: "liga";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
}

.site-header {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 34px;
  height: 72px;
  left: 0;
  padding: 0 32px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 160px;
}

.brand__text {
  color: #5f6368;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.play-mark {
  display: block;
  flex: 0 0 auto;
  height: 38px;
  width: 38px;
}

.main-nav {
  align-items: stretch;
  display: flex;
  gap: 30px;
  height: 100%;
}

.main-nav a {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.main-nav a.is-active {
  color: var(--green);
}

.main-nav a.is-active::after {
  background: var(--green);
  border-radius: 3px 3px 0 0;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.icon-button,
.avatar-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5f6368;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.avatar-button img {
  border-radius: 50%;
  display: block;
  height: 32px;
  width: 32px;
}

.account-menu {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 282px;
  padding: 8px 0;
  position: absolute;
  right: 24px;
  top: 62px;
}

.account-menu.is-open {
  display: block;
}

.account-menu a {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 16px;
  min-height: 44px;
  padding: 0 20px;
}

.account-menu a:hover {
  background: #f1f3f4;
}

.menu-legal {
  align-items: center;
  border-top: 1px solid var(--soft);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 7px;
  margin-top: 8px;
  padding: 10px 18px 2px;
}

.menu-legal a {
  display: inline;
  min-height: auto;
  padding: 0;
}

.page-shell {
  margin: 0 auto;
  max-width: 1140px;
  padding: 44px 0 64px;
}

.page-shell:focus {
  outline: 0;
}

.hero-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 310px;
}

.hero-copy h1 {
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 6px 0 26px;
}

.developer-link {
  color: var(--green);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 6px;
}

.verified {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 34px;
}

.stats-row {
  align-items: stretch;
  display: flex;
  gap: 0;
  margin-bottom: 38px;
}

.stat {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  min-width: 110px;
  padding: 0 22px;
  position: relative;
}

.stat:first-child {
  padding-left: 0;
}

.stat + .stat::before {
  background: var(--soft);
  bottom: 7px;
  content: "";
  left: 0;
  position: absolute;
  top: 7px;
  width: 1px;
}

.stat strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.star-inline {
  font-size: 13px;
  margin-left: 1px;
}

.age-box {
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  display: inline-flex;
  font-size: 14px !important;
  line-height: 1;
  padding: 1px 2px;
}

.primary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.install-button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  height: 44px;
  min-width: 200px;
  padding: 0 28px;
}

.install-button:hover {
  background: var(--green-dark);
}

.text-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-weight: 700;
  gap: 9px;
  min-height: 44px;
  padding: 0 2px;
}

.hero-icon {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.hero-icon img {
  border-radius: 32px;
  box-shadow: var(--shadow);
  height: 240px;
  object-fit: cover;
  width: 240px;
}

.screenshot-strip {
  display: flex;
  gap: 28px;
  margin: 10px 0 42px;
  overflow-x: auto;
  padding: 0 0 6px;
}

.screenshot-thumb {
  align-items: center;
  background: transparent;
  border: 0;
  color: #4d5156;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  height: 24px;
  padding: 0;
}

.broken-icon {
  border: 1px solid #cfd8dc;
  display: inline-block;
  height: 16px;
  margin-right: 0;
  position: relative;
  width: 16px;
}

.broken-icon::before {
  border-bottom: 6px solid #81c995;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  bottom: 1px;
  content: "";
  left: 2px;
  position: absolute;
}

.broken-icon::after {
  background: #8ab4f8;
  border-radius: 50%;
  content: "";
  height: 4px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 4px;
}

.content-section {
  margin: 0 0 44px;
}

.section-narrow {
  max-width: 720px;
}

.section-heading-link {
  align-items: center;
  display: inline-flex;
  gap: 18px;
  margin-bottom: 5px;
}

.section-heading-link h2,
.content-section h2,
.subpage h1,
.subpage h2 {
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.section-heading-link h2,
.content-section h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.lead-text {
  color: #4d5156;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 46px;
}

.metadata-list {
  margin: 0 0 30px;
}

.metadata-list div {
  margin-bottom: 18px;
}

.metadata-list dt {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 7px;
}

.metadata-list dd {
  color: var(--muted);
  margin: 0;
}

.chip,
.device-pill {
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  min-height: 32px;
  padding: 0 18px;
}

.reviews-layout {
  max-width: 720px;
}

.verified-note {
  color: #80868b;
  font-size: 13px;
  margin: 0 0 48px;
  text-align: right;
}

.device-pill {
  background: #e6f4ef;
  border: 0;
  color: #19765c;
  gap: 9px;
  margin-bottom: 36px;
}

.device-pill .material-symbols-rounded {
  font-size: 19px;
}

.rating-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 90px minmax(0, 1fr);
  margin-bottom: 50px;
}

.score-block strong {
  display: block;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .95;
}

.score-block span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 14px;
}

.star-line {
  color: var(--green);
  font-size: 17px;
  letter-spacing: 0;
  margin-top: 10px;
}

.rating-bars {
  display: grid;
  gap: 7px;
  padding-top: 5px;
}

.rating-bars div {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 14px minmax(0, 1fr);
}

.rating-bars span {
  color: #80868b;
  font-size: 13px;
  text-align: right;
}

.rating-bars i {
  background: #e4e7eb;
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.rating-bars i::before {
  background: var(--green);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--fill);
}

.review-list {
  display: grid;
  gap: 45px;
}

.review-item {
  display: grid;
  gap: 0 16px;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
}

.review-avatar {
  align-items: center;
  background: #4f6770;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.review-avatar.is-blue {
  background: #7baaf7;
}

.review-header {
  align-items: center;
  display: flex;
  min-height: 32px;
}

.review-name {
  color: #5f6368;
  font-size: 14px;
  font-weight: 700;
}

.more-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.review-body {
  grid-column: 1 / -1;
  padding-top: 22px;
}

.review-rating {
  align-items: center;
  color: var(--green);
  display: flex;
  font-size: 13px;
  gap: 12px;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.review-rating time {
  color: #80868b;
  letter-spacing: 0;
}

.review-text {
  color: #5f6368;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.helpful,
.question {
  color: #80868b;
  font-size: 12px;
}

.question {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.mini-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: #5f6368;
  display: inline-flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  min-width: 55px;
  padding: 0 14px;
}

.see-all {
  color: var(--green);
  display: inline-block;
  font-weight: 700;
  margin: 28px 0 0 8px;
}

.subpage {
  margin: 0 auto;
  max-width: 800px;
}

.subpage h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 18px 0 28px;
}

.subpage h2 {
  font-size: 24px;
  margin: 34px 0 14px;
}

.subpage p {
  color: #4d5156;
  font-size: 15px;
  line-height: 1.6;
}

.back-link {
  align-items: center;
  color: var(--green);
  display: inline-flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 10px;
}

.info-grid {
  border-top: 1px solid var(--soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
}

.info-row {
  border-bottom: 1px solid var(--soft);
  min-height: 76px;
  padding: 18px 0;
}

.info-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}

.info-row strong {
  display: block;
  font-weight: 500;
}

.safety-card,
.listing-card {
  border: 1px solid var(--soft);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 18px;
}

.safety-card strong,
.listing-card strong {
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
}

.safety-card span,
.listing-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.listing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-card {
  min-height: 128px;
}

.search-box {
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 8px;
  display: flex;
  height: 52px;
  margin: 18px 0 28px;
  padding: 0 14px;
}

.search-box input {
  border: 0;
  flex: 1;
  font-size: 18px;
  height: 100%;
  outline: 0;
}

.toast {
  background: #2f3136;
  border-radius: 6px;
  bottom: 24px;
  color: #fff;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .site-header {
    gap: 16px;
    height: auto;
    padding: 12px 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand__text {
    font-size: 22px;
  }

  .main-nav {
    bottom: 0;
    gap: 24px;
    height: 44px;
    left: 0;
    overflow-x: auto;
    padding: 0 16px;
    position: absolute;
    right: 0;
    top: 54px;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .header-actions {
    gap: 8px;
  }

  .page-shell {
    padding: 72px 20px 44px;
  }

  .hero-layout {
    gap: 22px;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .hero-copy h1,
  .developer-link,
  .verified,
  .stats-row,
  .primary-actions {
    grid-column: 1 / -1;
  }

  .hero-copy h1 {
    font-size: 44px;
    margin: 0 0 18px;
  }

  .hero-icon {
    grid-row: 1;
    justify-content: flex-start;
    padding: 0;
  }

  .hero-icon img {
    border-radius: 20px;
    height: 96px;
    width: 100px;
  }

  .stats-row {
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .stat {
    min-width: 0;
    padding: 0 12px;
  }

  .install-button {
    width: 100%;
  }

  .screenshot-strip {
    gap: 20px;
    margin-top: 24px;
  }

  .verified-note {
    margin-bottom: 32px;
    text-align: left;
  }

  .rating-grid {
    gap: 18px;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .score-block strong {
    font-size: 52px;
  }

  .info-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1220px) and (min-width: 821px) {
  .page-shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 520px) {
  .icon-button {
    display: none;
  }

  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-row {
    overflow-x: auto;
  }

  .primary-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .text-action {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: 40px;
  }
}
