:root {
  --green: #16884f;
  --green-dark: #0d6f3d;
  --text: #17201a;
  --muted: #66736d;
  --line: #e7ece9;
  --soft: #f6f8f7;
  --shadow: 0 14px 40px rgba(20, 30, 25, .10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: Inter, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

body {
  min-height: 100vh;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 32px;
  background: #fff;
}

.topbar {
  height: 58px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230,235,232,.8);
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 32px;
  color: #2b342f;
  line-height: 1;
}

.top-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero-card {
  margin: 18px 16px 12px;
}

.app-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.app-info h1 {
  margin: 0 0 7px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.developer {
  margin: 0 0 5px;
  color: var(--green);
  font-weight: 750;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0 18px;
}

.stats div {
  text-align: center;
  padding: 13px 4px;
  border-right: 1px solid var(--line);
}

.stats div:last-child { border-right: 0; }

.stats strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

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

.install-btn,
.open-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #20a968, var(--green-dark));
  color: #fff;
  font-weight: 850;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(22,136,79,.28);
  cursor: pointer;
  animation: breathe 1.65s infinite ease-in-out;
}

.open-btn {
  background: #edf7f1;
  color: var(--green-dark);
  box-shadow: none;
  animation: none;
}

.install-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 12px 10px 0;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.025); filter: brightness(1.06); }
}

.screenshots,
.block {
  padding: 18px 16px 4px;
  border-top: 8px solid var(--soft);
}

.screenshots h2,
.block h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.03em;
}

.shot-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 10px;
  scroll-snap-type: x mandatory;
}

.shot {
  min-width: 178px;
  height: 316px;
  border-radius: 22px;
  border: 1px solid #dde5e0;
  background: linear-gradient(180deg, #ffffff, #edf6f1);
  padding: 12px;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(20,30,25,.07);
}

.shot-ui {
  height: 100%;
  border-radius: 18px;
  background: #fff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #eef2f0;
}

.shot-ui.alt { background: #f7fbff; }
.shot-ui.dark {
  background: linear-gradient(180deg, #16241d, #0e1713);
  color: #fff;
}

.pill {
  width: 76px;
  height: 12px;
  border-radius: 20px;
  background: var(--green);
  margin-bottom: 28px;
}

.badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f5ed;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}

.circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  margin-bottom: 26px;
}

.shot h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.04em;
}

.shot p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.shot-ui.dark p { color: rgba(255,255,255,.72); }

.shot button {
  border: 0;
  border-radius: 999px;
  padding: 11px 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head span {
  font-size: 24px;
  color: var(--muted);
}

.block p {
  color: #45504a;
  line-height: 1.5;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.tags span {
  border: 1px solid #dce7e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #35423b;
}

.safety-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 0;
}

.safety-item p { margin: 0; }

.safety-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8f6ee;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.rating-big {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}

.score {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.stars {
  color: var(--green-dark);
  letter-spacing: 1px;
  font-size: 17px;
}

.review {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-top span {
  color: var(--green-dark);
  letter-spacing: 1px;
}

footer {
  padding: 20px 16px 0;
  color: #7a847e;
  font-size: 12px;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 16, .46);
  display: grid;
  place-items: end center;
  z-index: 99;
}

.modal-box {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 18px 20px;
  box-shadow: 0 -18px 50px rgba(0,0,0,.18);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: #f0f3f1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
}

.hidden { display: none !important; }

@media (min-width: 700px) {
  body { background: #eef3f0; }
  .page { min-height: 100vh; box-shadow: 0 0 0 1px #e2e8e4; }
}