:root {
  --bg: #fff;
  --surface: #f8fafd;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --green: #00875f;
  --green-dark: #006b4f;
  --hero: #161315;
  --hero-text: #f8f9fa;
  --hero-muted: #c7c2c5;
  --accent: #ff426d;
  --shadow: 0 12px 34px rgba(22, 19, 21, .24);
  font-family: Arial, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

button,
a {
  font: inherit;
}

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

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

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

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

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

p {
  line-height: 1.62;
}

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

.header-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.header-brand img {
  width: 180px;
  height: auto;
}

.primary-navigation {
  display: flex;
  align-self: stretch;
  gap: 6px;
}

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

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

.primary-navigation button[aria-current="page"] {
  color: var(--green-dark);
}

.primary-navigation button[aria-current="page"]::after {
  background: var(--green-dark);
}

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

.header-actions button,
.profile-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
}

.header-actions button[aria-label="Help"] {
  font-size: 18px;
  font-weight: 700;
}

.header-actions .profile-button {
  width: 34px;
  height: 34px;
  margin-left: 8px;
  background: linear-gradient(135deg, #e84c78, #a52051);
  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 {
  position: absolute;
  inset: 0 0 0 34%;
  width: 66%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.03);
}

.app-hero::before,
.app-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.app-hero::before {
  background: linear-gradient(90deg, #161315 0%, #161315 29%, rgba(22, 19, 21, .94) 42%, rgba(22, 19, 21, .34) 74%, rgba(22, 19, 21, .55) 100%);
}

.app-hero::after {
  background:
    radial-gradient(circle at 80% 34%, rgba(255, 66, 109, .14), transparent 31%),
    linear-gradient(180deg, transparent 57%, rgba(22, 19, 21, .92) 100%);
}

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

.hero-copy {
  min-width: 0;
  max-width: 640px;
}

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

.app-identity {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.developer-name {
  color: #49d6ad;
  font-weight: 700;
  text-align: left;
}

.monetization-notice {
  margin: 7px 0 0;
  color: var(--hero-muted);
  font-size: 13px;
}

.app-metadata {
  display: flex;
  align-items: stretch;
  margin: 32px 0 30px;
}

.metadata-item {
  display: grid;
  min-width: 122px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.metadata-item:first-child {
  padding-left: 0;
}

.metadata-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.metadata-item strong {
  color: #fff;
  font-size: 16px;
}

.metadata-item span {
  color: var(--hero-muted);
  font-size: 12px;
}

.metadata-item > span[aria-label] {
  color: #49d6ad;
  font-size: 14px;
}

.content-rating-summary {
  grid-template-columns: 32px auto;
  grid-template-rows: auto;
  align-items: center;
  justify-content: center;
  justify-items: start;
  column-gap: 8px;
}

.content-rating-summary img {
  width: 32px;
  height: 32px;
  grid-row: 1;
  object-fit: contain;
}

.content-rating-summary strong {
  grid-column: 2;
  grid-row: 1;
}

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

.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: #fff;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(0, 161, 115, .22);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hero-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 8px;
  color: #49d6ad;
  font-weight: 700;
}

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

.trailer-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 34%, rgba(0, 0, 0, .12)),
    linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, .68));
  pointer-events: none;
  content: "";
}

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

.trailer-label {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.trailer-play {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 18px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 15, 15, .9);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .32);
}

.screenshots-section,
.content-layout,
.play-footer {
  width: min(1280px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

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

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

.section-heading-row h2,
.about-section h2,
.safety-section h2,
.ratings-section h2,
.content-rating-card h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.01em;
}

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

.gallery-controls 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;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #bdc1c6 transparent;
  scrollbar-width: thin;
}

.screenshot-track img {
  width: 100%;
  height: auto;
  aspect-ratio: 333 / 592;
  border-radius: 14px;
  background: #111;
  object-fit: contain;
  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;
}

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

.about-section,
.safety-section,
.ratings-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.about-section > p,
.safety-section > p {
  max-width: 850px;
  margin: 18px 0 0;
  color: #3c4043;
}

.about-note {
  color: var(--text) !important;
  font-weight: 600;
}

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

.about-highlights > div {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.about-highlights h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.about-highlights p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.update-details {
  margin: 26px 0 0;
}

.update-details > div {
  display: grid;
  gap: 4px;
}

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

.update-details dd {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

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

.safety-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
  color: #3c4043;
}

.safety-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
}

.safety-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.safety-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

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

.rating-distribution {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.rating-row progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8eaed;
  color: var(--green-dark);
  appearance: none;
}

.rating-row progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e8eaed;
}

.rating-row progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--green-dark);
}

.rating-row progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--green-dark);
}

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

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

.content-rating-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: auto;
}

.content-rating-card h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.content-rating-card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.sidebar-row span:last-child {
  color: var(--muted);
  font-size: 26px;
}

.sidebar-install {
  width: 100%;
  margin-top: 14px;
}

.play-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
  padding: 36px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.play-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

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

.play-footer p {
  margin-bottom: 0;
  font-size: inherit;
}

.primary-navigation button:hover,
.gallery-controls button:hover,
.header-actions button:not(.profile-button):hover,
.sidebar-row:hover,
.category-chips button:hover {
  background: rgba(60, 64, 67, .08);
}

.hero-actions button:hover,
.developer-name:hover {
  background: rgba(73, 214, 173, .1);
}

.install-button:hover {
  background: var(--green-dark);
  box-shadow: 0 7px 20px rgba(0, 135, 95, .28);
}

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

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #00875f;
  outline-offset: 3px;
}

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

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

  .app-identity {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .metadata-item {
    min-width: 104px;
    padding: 0 14px;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

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

  .primary-navigation button:not([aria-current="page"]) {
    display: none;
  }

  .hero-backdrop {
    inset: 0;
    width: 100%;
  }

  .app-hero::before {
    background: linear-gradient(180deg, rgba(22, 19, 21, .7), #161315 68%);
  }

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

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

  .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;
  }

  .content-rating-card,
  .sidebar-install {
    grid-column: 1 / -1;
  }

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

@media (max-width: 600px) {
  .play-header {
    min-height: 58px;
    gap: 10px;
    padding: 0 12px;
  }

  .header-brand img {
    width: 136px;
  }

  .primary-navigation {
    margin-left: -4px;
  }

  .primary-navigation button {
    min-width: 48px;
    padding: 0 6px;
    font-size: 13px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-actions button {
    width: 36px;
    height: 36px;
  }

  .header-actions button[aria-label="Help"] {
    display: none;
  }

  .header-actions .profile-button {
    width: 30px;
    height: 30px;
    margin-left: 2px;
  }

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

  .hero-inner,
  .screenshots-section,
  .content-layout,
  .play-footer {
    width: min(100% - 32px, 1280px);
  }

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

  .breadcrumb {
    margin-bottom: 18px;
  }

  .app-identity {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

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

  h1 {
    font-size: clamp(32px, 10.5vw, 46px);
    line-height: 1.08;
  }

  .app-metadata {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0 26px;
  }

  .metadata-item {
    min-width: 0;
    padding: 0 7px;
  }

  .metadata-item strong {
    font-size: 14px;
  }

  .metadata-item span {
    font-size: 10px;
  }

  .content-rating-summary {
    grid-template-columns: 28px auto;
    column-gap: 5px;
  }

  .content-rating-summary img {
    width: 28px;
    height: 28px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

  .hero-actions button {
    min-width: 0;
    padding: 0 5px;
    font-size: 13px;
  }

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

  .trailer-label {
    bottom: 19px;
    left: 18px;
  }

  .trailer-play {
    right: 16px;
    bottom: 12px;
    width: 46px;
    height: 46px;
  }

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

  .gallery-controls {
    display: none;
  }

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

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

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

  .content-rating-card,
  .sidebar-install {
    grid-column: auto;
  }

  .about-section,
  .safety-section,
  .ratings-section {
    padding: 30px 0;
  }

  .about-highlights {
    gap: 12px;
  }

  .about-highlights > div,
  .safety-card,
  .content-rating-card {
    padding: 18px;
  }

  .ratings-summary {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 22px;
  }

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

  .play-footer {
    align-items: flex-start;
  }

  .play-footer nav {
    gap: 16px 20px;
  }
}

@media (max-width: 390px) {
  .header-brand img {
    width: 126px;
  }

  .app-identity {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

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

  h1 {
    font-size: 32px;
  }

  .metadata-item {
    padding: 0 5px;
  }

  .metadata-item strong {
    font-size: 13px;
  }

  .metadata-item span {
    font-size: 9px;
  }

  .content-rating-summary {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 4px;
  }

  .content-rating-summary img,
  .content-rating-summary strong {
    grid-column: 1;
  }

  .content-rating-summary img {
    grid-row: 1;
  }

  .content-rating-summary strong {
    grid-row: 2;
  }

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

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

  .safety-card {
    padding: 16px;
  }

  .safety-item {
    gap: 10px;
  }

  .play-footer nav {
    display: grid;
    gap: 14px;
  }
}

@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;
  }
}
