:root {
  --play-green: #01875f;
  --play-green-dark: #056449;
  --play-blue: #1a73e8;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --soft-line: #e8eaed;
  --paper: #fff;
  --soft-paper: #f8fafd;
  --chip: #f1f3f4;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.16), 0 1px 3px rgba(60, 64, 67, 0.08);
  --page: min(1280px, calc(100vw - 96px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Google Sans", "Product Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.play-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  padding: 0 24px 0 32px;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.play-brand {
  width: 145px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.play-brand img {
  width: 144px;
  height: auto;
}

.play-tabs {
  display: flex;
  align-items: stretch;
  gap: 32px;
  align-self: stretch;
}

.play-tabs a {
  position: relative;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

.play-actions button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-actions svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.play-actions button:hover {
  background: var(--chip);
}

.avatar,
.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ff6037, #ed174f);
  font-weight: 800;
}

.page {
  width: var(--page);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(72px, 9vw, 132px);
  align-items: start;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.1rem, 5vw, 4.45rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.developer,
.mobile-title a {
  margin-top: 10px;
  display: inline-flex;
  color: var(--play-green);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-title {
  display: none;
}

.app-icon-card {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-plate,
.mobile-icon-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090617;
}

.app-icon-plate {
  width: 240px;
  height: 240px;
  border-radius: 52px;
}

.app-icon-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-icon-plate {
  width: 82px;
  height: 82px;
  border-radius: 20px;
}

.mobile-icon-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  margin-top: 40px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.stat {
  min-width: 124px;
  padding: 0 30px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

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

.stat strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.install-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.install-button {
  min-width: 214px;
  height: 40px;
  padding: 0 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--play-green);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

.text-action {
  border: 0;
  color: var(--play-green);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.device-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.screenshot-strip {
  margin-top: 56px;
  padding-bottom: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 230px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.screenshot-strip figure {
  height: 408px;
  margin: 0;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  overflow: hidden;
  background: #f8f9fa;
  scroll-snap-align: start;
}

.screenshot-strip .wide-shot {
  grid-column: span 2;
}

.screenshot-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 72px;
  align-items: start;
}

.main-column,
.side-column {
  min-width: 0;
}

.card-section {
  padding: 32px 0;
  border-top: 1px solid var(--soft-line);
}

.card-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.card-section h2,
.side-card h2 {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
}

.card-section p,
.side-card p {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.muted {
  color: var(--muted) !important;
}

.chip-row,
.device-tabs {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-row span,
.device-tabs button {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.device-tabs button {
  cursor: pointer;
}

.device-tabs button.active {
  border-color: #d7f1e7;
  color: var(--play-green);
  background: #eff8f4;
}

.update-list {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.update-list div {
  margin: 0;
}

.update-list dt {
  color: var(--muted);
  font-size: 13px;
}

.update-list dd {
  margin: 3px 0 0;
  font-size: 14px;
}

.safety-card {
  margin-top: 22px;
  padding: 2px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.safety-card div {
  min-height: 76px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.safety-card div + div {
  border-top: 1px solid var(--soft-line);
}

.safety-card span {
  color: var(--muted);
  font-size: 22px;
  text-align: center;
}

.review-summary {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.score strong {
  display: block;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score span {
  color: var(--play-green);
  letter-spacing: 1px;
}

.score small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 8px;
}

.bars div {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

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

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

.review {
  margin-top: 28px;
}

.review header {
  display: grid;
  grid-template-columns: 40px minmax(0, max-content) minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
}

.review header strong {
  font-size: 14px;
  font-weight: 600;
}

.review header small,
.review > small {
  color: var(--muted);
  font-size: 12px;
}

.review header button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.stars {
  margin-top: 12px;
  color: var(--play-green);
  font-size: 13px;
  letter-spacing: 1px;
}

.review p {
  margin-top: 8px;
}

.side-column {
  display: grid;
  gap: 28px;
}

.side-card {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--soft-line);
}

.side-card a {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.side-card a + a {
  border-top: 1px solid var(--soft-line);
}

.side-card a > span {
  color: var(--muted);
  text-align: center;
}

.side-card strong,
.side-card small {
  display: block;
}

.side-card strong {
  font-size: 14px;
  font-weight: 500;
}

.side-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.rating-box > strong {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.rating-box p {
  margin: 0;
  font-size: 14px;
}

.rating-box small {
  color: var(--muted);
}

.support-card {
  padding-bottom: 34px;
}

.support-card h2 {
  margin-bottom: 26px;
}

.support-card .support-row {
  min-height: 62px;
  border-top: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.support-card .support-row + .support-row {
  margin-top: 18px;
  border-top: 0;
}

.support-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
}

.support-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.support-copy {
  min-width: 0;
  display: block;
}

.support-card .support-copy strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.support-card .support-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.developer-info {
  margin-top: 34px;
}

.developer-info h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.developer-info p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.developer-info p + p {
  margin-top: 2px;
}

@media (max-width: 900px) {
  :root {
    --page: min(100vw - 32px, 720px);
  }

  .play-header {
    padding: 0 16px;
    gap: 16px;
  }

  .play-brand {
    width: 136px;
  }

  .play-brand img {
    width: 134px;
  }

  .play-tabs {
    display: none;
  }

  .play-actions {
    gap: 8px;
  }

  .page {
    padding-top: 28px;
  }

  .hero {
    display: block;
  }

  .desktop-title,
  .app-icon-card {
    display: none;
  }

  .mobile-title {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .mobile-title h1 {
    font-size: 2.3rem;
  }

  .stats {
    margin-top: 28px;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    overflow: hidden;
  }

  body .page .hero .hero-copy .stats > .stat {
    width: auto !important;
    min-width: 0 !important;
    max-width: 33.333% !important;
    flex: 0 0 33.333% !important;
    padding: 0 10px;
  }

  .install-row {
    gap: 14px;
  }

  .install-button {
    width: 100%;
  }

  .screenshot-strip {
    grid-auto-columns: 184px;
    margin-right: -16px;
  }

  .screenshot-strip figure {
    height: 326px;
  }

  .content-grid {
    display: block;
  }

  .side-column {
    margin-top: 10px;
  }

  .review-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --page: min(100vw - 24px, 480px);
  }

  .play-header {
    height: 58px;
  }

  .play-brand img {
    width: 128px;
  }

  .play-actions button:nth-child(2) {
    display: none;
  }

  .mobile-title {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .mobile-icon-plate {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .mobile-icon-plate img {
    width: 100%;
    height: 100%;
  }

  .hero-copy h1,
  .mobile-title h1 {
    font-size: 2rem;
  }

  .developer,
  .mobile-title a {
    font-size: 14px;
  }

  .stats {
    display: flex !important;
  }

  body .page .hero .hero-copy .stats > .stat {
    min-width: 0 !important;
    max-width: 50% !important;
    flex-basis: 50% !important;
    padding: 0 6px;
  }

  body .page .hero .hero-copy .stats > .stat:nth-child(3) {
    display: none;
  }

  .stat strong {
    font-size: 15px;
  }

  .stat span {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .screenshot-strip {
    grid-auto-columns: 160px;
  }

  .screenshot-strip figure {
    height: 284px;
    border-radius: 14px;
  }

  .card-section h2,
  .side-card h2 {
    font-size: 20px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }
}

/* Final small-screen guard: only screenshot rows may scroll horizontally. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 520px) {
  .play-header,
  .page,
  .hero,
  .hero-copy,
  .content-grid,
  .main-column,
  .side-column {
    max-width: 100%;
    overflow-x: hidden;
  }

  .stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .stats > .stat {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  .stats > .stat:nth-child(3) {
    display: none !important;
  }

  .install-row,
  .install-button {
    width: 100%;
    max-width: 100%;
  }

  .screenshot-strip {
    max-width: 100vw;
    overflow-x: auto;
  }
}
