:root {
  --bg: #fff;
  --surface: #f8fafd;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --green: #00a173;
  --green-dark: #00875f;
  --hero: #202124;
  --hero-text: #f8f9fa;
  --hero-muted: #bdc1c6;
  --shadow: 0 10px 30px rgba(32, 33, 36, .18);
  font-family: Arial, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button {
  padding: 0;
  border: 0;
  background: none;
}

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

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

h1,
h2,
p {
  margin-top: 0;
}

.play-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 32px;
  padding: 0 30px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #eef0f1;
  backdrop-filter: blur(14px);
}

.play-header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.play-header__brand img {
  width: 180px;
  height: auto;
}

.store-nav {
  display: flex;
  align-self: stretch;
  gap: 6px;
}

.store-nav button {
  position: relative;
  min-width: 66px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.store-nav button::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.store-nav button.is-active {
  color: var(--green-dark);
}

.store-nav button.is-active::after {
  background: var(--green-dark);
}

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

.icon-button,
.profile-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.icon-button svg {
  width: 23px;
  fill: #5f6368;
}

.profile-button {
  width: 34px;
  height: 34px;
  margin-left: 8px;
  background: linear-gradient(135deg, #7857c7, #4f2c8e);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.app-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--hero);
  color: var(--hero-text);
}

.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  left: 35%;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.15) contrast(1.06);
  transform: scale(1.06);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #202124 0%, rgba(32, 33, 36, .96) 12%, rgba(32, 33, 36, .5) 58%, rgba(32, 33, 36, .28) 100%);
  content: "";
}

.hero-shade {
  background:
    linear-gradient(90deg, #202124 0%, #202124 25%, rgba(32, 33, 36, .88) 41%, rgba(32, 33, 36, .28) 75%, rgba(32, 33, 36, .45) 100%),
    linear-gradient(180deg, transparent 65%, rgba(32, 33, 36, .9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1280px, calc(100% - 48px));
  min-height: 650px;
  grid-template-columns: minmax(400px, .8fr) minmax(420px, 1fr);
  align-items: center;
  gap: 72px;
  margin: 0 auto;
  padding: 72px 0 58px;
}

.hero-copy {
  max-width: 620px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--hero-muted);
  font-size: 13px;
}

.breadcrumb span {
  padding: 0 5px;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.03em;
}

.developer-link {
  margin-bottom: 28px;
  color: #00d19a;
  font-weight: 700;
}

.hero-app-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.app-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.hero-meta {
  display: flex;
  align-items: center;
}

.hero-meta > div {
  min-width: 120px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.hero-meta > div:first-child {
  padding-left: 0;
}

.hero-meta > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 16px;
}

.hero-meta strong span {
  display: inline;
  margin-left: 2px;
  font-size: 13px;
}

.hero-meta > div > span {
  color: var(--hero-muted);
  font-size: 12px;
}

.hero-meta img {
  width: 32px;
  height: 32px;
  margin: 0 auto 5px;
  object-fit: contain;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.install-button {
  display: inline-flex;
  min-width: 210px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 8px;
  background: var(--green);
  color: #061f16;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(0, 161, 115, .22);
}

.text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #00d19a;
  font-weight: 700;
}

.text-action svg,
.device-note svg {
  width: 22px;
  fill: currentColor;
}

.wishlist-short {
  display: none;
}

.device-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--hero-muted);
  font-size: 13px;
}

.trailer-card {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: end;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  box-shadow: var(--shadow);
}

.trailer-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .58));
  content: "";
}

.trailer-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer-card__play {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(15, 15, 15, .9);
  color: #fff;
  font-weight: 700;
}

.trailer-card__play svg {
  width: 18px;
  fill: #fff;
}

.page-shell,
.play-footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.screenshots-section {
  padding: 48px 0 36px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-title-row h2,
.content-section h2,
.info-card h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-controls button,
.arrow-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 28px;
}

.screenshot-track {
  display: grid;
  grid-auto-columns: 250px;
  grid-auto-flow: column;
  gap: 18px;
  margin-top: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.screenshot-track img {
  width: 100%;
  aspect-ratio: 273 / 592;
  border-radius: 14px;
  object-fit: cover;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(60, 64, 67, .16);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: start;
  padding-bottom: 72px;
}

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

.content-section p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #3c4043;
  line-height: 1.62;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-row button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.safety-card {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.safety-card > div {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #3c4043;
}

.safety-card svg {
  width: 24px;
  flex: 0 0 auto;
  fill: var(--muted);
}

.safety-card button,
.rating-card button {
  justify-self: start;
  color: var(--green-dark);
  font-weight: 700;
}

.verified-copy {
  margin-top: 6px !important;
  color: var(--muted) !important;
  font-size: 13px;
}

.rating-overview {
  display: grid;
  grid-template-columns: 150px minmax(240px, 420px);
  gap: 38px;
  align-items: center;
  margin-top: 28px;
}

.rating-score strong {
  display: block;
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
}

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

.stars {
  margin-top: 8px;
  color: var(--green-dark);
  letter-spacing: 1px;
}

.stars span {
  color: #bdc1c6;
}

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

.rating-bars div {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.rating-bars i {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eaed;
}

.rating-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-dark);
}

.side-column {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding-top: 32px;
}

.info-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.info-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.info-card h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.info-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.info-card button {
  margin-top: 14px;
}

.info-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-align: left;
}

.install-button--wide {
  width: 100%;
  margin-top: 14px;
  color: #fff;
}

.play-footer {
  padding: 36px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 48px;
}

.footer-grid div {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.footer-grid strong {
  color: var(--text);
  font-size: 14px;
}

.footer-grid button,
.footer-bottom button {
  color: var(--muted);
  text-align: left;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 42px;
}

.footer-bottom span {
  margin-left: auto;
}

button:hover,
.icon-button:hover,
.gallery-controls button:hover,
.arrow-button:hover {
  background: rgba(60, 64, 67, .08);
}

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

button:active,
a:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(1, 135, 95, .38);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .hero-inner {
    grid-template-columns: minmax(360px, .9fr) minmax(360px, 1fr);
    gap: 36px;
  }

  .hero-meta > div {
    min-width: 104px;
    padding: 0 14px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  .play-header {
    gap: 20px;
    padding: 0 18px;
  }

  .store-nav button:not(.is-active) {
    display: none;
  }

  .hero-backdrop {
    left: 0;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(32, 33, 36, .72), #202124 66%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 54px;
  }

  .trailer-card {
    justify-self: start;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
    order: -1;
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }

  .rating-card,
  .install-button--wide {
    grid-column: 1 / -1;
  }

  .screenshot-track {
    grid-auto-columns: minmax(235px, 34%);
  }
}

@media (max-width: 600px) {
  .play-header {
    min-height: 58px;
  }

  .play-header__brand img {
    width: 146px;
  }

  .store-nav {
    margin-left: -8px;
  }

  .store-nav button {
    min-width: 56px;
  }

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

  .app-hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .page-shell,
  .play-footer {
    width: min(100% - 32px, 1280px);
  }

  .hero-inner {
    padding: 42px 0 38px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-app-row {
    align-items: flex-start;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .hero-meta {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta > div {
    min-width: 0;
    padding: 0 8px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 10px 6px;
  }

  .hero-actions .install-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .text-action {
    min-width: 0;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .text-action svg {
    width: 19px;
  }

  .wishlist-long {
    display: none;
  }

  .wishlist-short {
    display: inline;
  }

  .device-note {
    align-items: flex-start;
  }

  .trailer-card {
    border-radius: 12px;
  }

  .screenshots-section {
    padding-top: 34px;
  }

  .gallery-controls {
    display: none;
  }

  .screenshot-track {
    width: calc(100% + 16px);
    grid-auto-columns: minmax(230px, 76%);
  }

  .content-layout {
    gap: 10px;
    padding-bottom: 50px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .rating-card,
  .install-button--wide {
    grid-column: auto;
  }

  .rating-overview {
    grid-template-columns: 108px 1fr;
    gap: 22px;
  }

  .rating-score strong {
    font-size: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-bottom span {
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  .hero-app-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }

  .hero-meta > div {
    padding: 0 5px;
  }

  .hero-meta strong {
    font-size: 14px;
  }

  .hero-meta > div > span {
    font-size: 10px;
  }

  .rating-overview {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .screenshot-track {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
