.app-store-landing-root,
.app-store-landing-root *,
.app-store-landing-root *::before,
.app-store-landing-root *::after {
  box-sizing: border-box;
}

.app-store-landing-root {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #282828;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --link: #8ab4f8;
  --green: #01875f;
  --green-hover: #01a56e;
  --star: #fbbc04;
  --border: rgba(255,255,255,0.08);
  --max-w: 480px;
  background: #000;
  color: var(--text);
  font-family: 'Roboto', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Age Gate */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.overlay-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.overlay-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.overlay-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.overlay-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-enter {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-leave {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Play Page */
.play-page {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 48px;
}


.play-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #000;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Keep bar opaque while content scrolls underneath */
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.play-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switcher-label {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-switcher select {
  appearance: none;
  background: #1e1e1e;
  color: #e8eaed;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  font-size: 0.78rem;
  line-height: 1.2;
  max-width: 140px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>");
  background-repeat: no-repeat;
  background-size: 8px;
  background-position: calc(100% - 10px) 55%;
}

.lang-switcher select:focus {
  outline: 2px solid #8ab4f8;
  outline-offset: 1px;
}

.play-logo { width: 24px; height: 24px; }

/* App Header — Play Store style */
.app-header {
  display: flex;
  gap: 18px;
  padding: 18px 16px 14px;
  align-items: center;
}

.app-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  /* One clip surface only — kills nested/ghost frames from asset AA. */
  box-shadow: none;
  border: 0;
  line-height: 0;
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 0;
  border-radius: 0;
  background: #000;
}

.app-meta {
  min-width: 0;
  padding-top: 0;
}

.app-name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #fff;
}

.app-dev {
  display: inline-block;
  color: #00e676;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.app-ads-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #9aa0a6;
  line-height: 1.35;
}

.play-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #bdc1c6;
}

/* Portrait screenshot strip */
.shot-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}
.shot-strip::-webkit-scrollbar { display: none; }

.shot-card {
  flex: 0 0 42%;
  max-width: 168px;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d0d;
  border: 2px solid transparent;
  aspect-ratio: 9 / 16;
  transition: border-color 0.2s ease;
}

.shot-card.is-active {
  border-color: #00e676;
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  font-size: 0.82rem;
  background: transparent;
}

.safety-list {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
}
.safety-row {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.safety-row:last-child { border-bottom: 0; }
.safety-row-icon { color: var(--text); flex-shrink: 0; margin-top: 2px; }
.safety-row-title { font-size: 0.92rem; font-weight: 500; margin-bottom: 2px; }
.safety-row-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.bar i { background: var(--green); }

.review-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.review-card:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 14px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
}
.whats-new-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.version-tag {
  color: var(--text);
  font-size: 0.9rem;
  margin: 0;
}

/* Stats card */
.app-stats-wrap {
  padding: 4px 16px 14px;
}

.app-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 12px 4px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding: 2px 6px;
}

.stat strong {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  min-height: 22px;
}

.stat .star {
  color: #fbbc04;
  font-size: 0.78rem;
  line-height: 1;
  margin-left: 1px;
}

.stat span:last-child {
  font-size: 0.7rem;
  color: #9aa0a6;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  align-self: stretch;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.age-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 3px;
  border: 1.6px solid #e8eaed;
  border-radius: 3px;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #e8eaed !important;
  line-height: 1 !important;
}

/* Install */
.install-section {
  padding: 0 16px 16px;
}

.btn-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #00e676;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: none;
}

.btn-install:hover { background: #69f0ae; }
.btn-install:active { transform: scale(0.99); }

.install-note {
  text-align: center;
  font-size: 0.76rem;
  color: #9aa0a6;
  margin: 10px 0 0;
}

/* Sections */
.play-section {
  padding: 20px;
}

.play-section.bordered {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 1.05rem;
  font-weight: 500;
}

.chevron {
  width: 22px;
  height: 22px;
  color: var(--link);
  flex-shrink: 0;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.section-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.carousel {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  width: 100%;
  border-radius: 16px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.shot {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0d;
  position: relative;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 -40px 48px -24px rgba(0, 0, 0, 0.35);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.03);
}

.carousel-btn {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.82);
  transform: scale(1.05);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active {
  background: var(--green);
  transform: scale(1.15);
}

/* Safety Card */
.safety-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.safety-icon { font-size: 1.5rem; flex-shrink: 0; }

.safety-card h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.install-steps {
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Ratings */
.rating-block {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}

.rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.rating-num {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}

.stars { color: var(--star); font-size: 0.85rem; letter-spacing: 1px; }

.rating-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bar-row span { width: 8px; text-align: center; }

.bar {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--star);
  border-radius: 4px;
}

.no-reviews {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.review-card {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.review-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--link);
  flex-shrink: 0;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 500;
}

.review-stars {
  color: var(--star);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.review-stars .dim { color: var(--surface-2); }

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.review-helpful {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.version-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Similar Apps */
.similar-apps {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.similar-apps::-webkit-scrollbar { display: none; }

.similar-app {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  user-select: none;
}

.similar-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.similar-name {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-rating {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Store Footer */
.play-store-footer {
  padding: 32px 20px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: #0f0f0f;
  margin-top: 8px;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.store-brand .play-logo {
  width: 22px;
  height: 22px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.store-links span {
  font-size: 0.78rem;
  color: #bdc1c6;
}

.store-links a {
  font-size: 0.78rem;
  color: #bdc1c6;
  text-decoration: none;
}

.store-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.store-copy {
  font-size: 0.72rem;
  color: #9aa0a6;
  line-height: 1.5;
}

.play-footer {
  padding: 32px 20px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.play-footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 481px) {
  .app-store-landing-root .play-page {
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
}

.landing-contact-form .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.landing-contact-form .contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.landing-contact-form .contact-field input,
.landing-contact-form .contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--text);
}

.landing-contact-form .contact-submit {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.landing-contact-form .contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.landing-contact-form .contact-success {
  font-size: 0.85rem;
  color: #188038;
}

.landing-contact-form .contact-error {
  font-size: 0.85rem;
  color: #d93025;
}

/* === Kass / Play Store mock overrides (match design refs) === */
.app-store-landing-root {
  --green: #00e676;
  --green-hover: #69f0ae;
}
.app-store-landing-root .app-dev { color: #00e676; font-weight: 600; }
.app-store-landing-root .btn-install {
  background: #00e676;
  color: #000;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 24px;
}
.app-store-landing-root .bar i { background: #00e676; }
.app-store-landing-root .carousel-dots button.active { background: #00e676; }
.app-store-landing-root .screenshots-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  margin-top: 2px;
}
.app-store-landing-root .screenshots-section .section-head {
  margin-bottom: 12px;
}
.app-store-landing-root .screenshots-section .section-head h2 {
  font-weight: 600;
  font-size: 1.05rem;
}
.app-store-landing-root .screenshots-section .chevron {
  color: #9aa0a6;
  width: 18px;
  height: 18px;
}
.app-store-landing-root .review-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 0;
}
.app-store-landing-root .reviews-list { gap: 12px; }
.app-store-landing-root .app-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  border: 0;
}
.app-store-landing-root .app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}
.app-store-landing-root .similar-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}
