:root {
  color: #1d1d1f;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #f2f2f7; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

.page {
  width: min(920px, 100%);
  margin: 0 auto;
  background: #fff;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top)) 16px 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.top-mark { font-weight: 700; font-size: 20px; }
.os-switch { display: flex; background: #f2f2f7; border-radius: 999px; padding: 3px; }
.os-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  color: #3a3a3c;
}
.os-btn.on { background: #fff; color: #007aff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.hero { display: flex; gap: 14px; align-items: flex-start; }
.icon { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.hero-copy { min-width: 0; flex: 1; }
h1 { margin: 0; font-size: 22px; line-height: 1.15; }
.dev { margin: 2px 0 10px; color: #8a8a8d; font-size: 14px; }
.cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.btn-ios { background: #007aff; }
.btn-android { background: #01875f; }
.iap { color: #8a8a8d; font-size: 11px; }

html[data-os="ios"] .btn-android,
html[data-os="android"] .btn-ios { display: none; }
html[data-os="android"] .iap { display: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin: 18px 0;
  padding: 12px 0;
  border-top: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
}
.stats strong { display: block; font-size: 22px; font-weight: 600; color: #8a8a8d; }
.stat-label, .stat-sub, .stars { display: block; color: #8a8a8d; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.stars { letter-spacing: 1px; font-size: 12px; }

h2 { font-size: 20px; margin: 22px 0 8px; }
.device-note { margin: 0 0 10px; color: #8a8a8d; font-size: 13px; }
.shots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  height: 280px;
  width: auto;
  border-radius: 16px;
  scroll-snap-align: start;
}

.about-text {
  margin: 0;
  color: #1d1d1f;
  line-height: 1.45;
  max-height: 4.4em;
  overflow: hidden;
}
.about-text.open { max-height: none; }
.more {
  border: 0;
  background: none;
  color: #007aff;
  padding: 6px 0 0;
  font-size: 15px;
}
.dev-line { display: flex; justify-content: space-between; border-top: 1px solid #e5e5ea; margin-top: 14px; padding-top: 12px; }
.dev-line span { color: #8a8a8d; }

.score-line { color: #8a8a8d; margin: 0 0 8px; }
.score-line b { color: #1d1d1f; font-size: 28px; margin-right: 8px; }
.review { background: #f2f2f7; border-radius: 12px; padding: 12px; }
.review header { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.review header span, .ver span { color: #8a8a8d; }
.review p, .ver { margin: 6px 0 0; }
.ver { display: flex; justify-content: space-between; }

.info { margin: 0; }
.info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e5e5ea;
}
.info dt { color: #8a8a8d; }
.info dd { margin: 0; text-align: right; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(249,249,249,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid #d1d1d6;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  color: #8a8a8d;
}
.tabbar .on { color: #007aff; font-weight: 700; }
html[data-os="android"] .tabbar .on { color: #01875f; }
html[data-os="android"] .more { color: #01875f; }
html[data-os="android"] .os-btn.on { color: #01875f; }

@media (min-width: 768px) {
  .page { padding-left: 28px; padding-right: 28px; }
  .hero { align-items: center; }
  .icon { width: 118px; height: 118px; }
  h1 { font-size: 32px; }
  .shots img { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .shots { scroll-behavior: auto; }
}
