:root {
  color-scheme: light;
  --green: #01875f;
  --green-dark: #006b4b;
  --green-soft: #e7f5ef;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --soft: #f7f8f8;
  --gold: #d99a00;
  --red: #c4151c;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #fff;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 78px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 18px;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.store-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(60, 64, 67, 0.18);
}

.store-brand span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.store-brand strong {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.store-brand small {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}

.header-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.header-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.store-page {
  width: min(760px, calc(100% - 32px));
  margin: 22px auto 0;
}

.app-summary {
  padding-top: 10px;
}

.app-title-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 20px;
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.2);
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.12;
}

.publisher {
  margin: 7px 0 0;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
}

.ready-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ready-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20a66a;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 24px;
}

.app-facts div {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 0 14px;
  text-align: center;
}

.app-facts div:first-child {
  padding-left: 0;
}

.app-facts div:last-child {
  padding-right: 0;
}

.app-facts div + div::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.app-facts strong {
  overflow: hidden;
  color: #3c4043;
  font-size: 0.93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-facts span {
  color: var(--muted);
  font-size: 0.76rem;
}

.install-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 8px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  box-shadow: 0 2px 4px rgba(0, 87, 61, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.install-button:hover {
  background: var(--green-dark);
  box-shadow: 0 3px 8px rgba(0, 87, 61, 0.28);
}

.install-button:active {
  transform: scale(0.992);
}

.install-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.bolt {
  margin-right: 8px;
  color: #ffe36a;
  font-size: 1.3rem;
  line-height: 1;
}

.install-copy {
  display: grid;
  gap: 1px;
  text-align: center;
}

.install-copy strong {
  font-size: 0.98rem;
}

.install-copy small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.73rem;
}

.status-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dcebe5;
  border-radius: 9px;
  background: #f5fbf8;
}

.status-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #9aa0a6;
}

.status-dot.is-ready {
  background: #e0a100;
}

.status-dot.is-active {
  background: var(--green);
}

.status-dot.is-error {
  background: #d93025;
}

.status-box strong {
  display: block;
  color: #3c4043;
  font-size: 0.84rem;
}

.status-box p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin: 20px 0 28px;
}

.quick-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.quick-actions svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}

.visual-strip article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101010;
}

.visual-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.visual-strip div {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.visual-strip strong {
  font-size: 0.84rem;
}

.visual-strip span {
  color: #c9c9c9;
  font-size: 0.72rem;
}

.detail-section {
  padding: 26px 0;
  border-bottom: 1px solid #eceff1;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
}

.section-heading span {
  color: var(--muted);
  font-size: 1.2rem;
}

.detail-section > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.update-info {
  display: flex;
  gap: 36px;
  margin: 18px 0 0;
}

.update-info div {
  display: grid;
  gap: 3px;
}

.update-info dt {
  color: #3c4043;
  font-size: 0.83rem;
  font-weight: 700;
}

.update-info dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.category-chip {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

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

.safety-card div {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 13px;
}

.safety-card svg {
  width: 21px;
  height: 21px;
  fill: var(--muted);
}

.safety-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.browser-note {
  margin: 24px 0 8px;
  color: #80868b;
  font-size: 0.78rem;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: clamp(48px, 10vw, 100px);
  min-height: 66px;
  padding: 7px 18px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 60px;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.bottom-nav svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.bottom-nav a.active {
  color: var(--green);
}

@media (max-width: 600px) {
  .site-header,
  .store-page {
    width: min(100% - 24px, 760px);
  }

  .site-header {
    padding-top: 14px;
  }

  .store-brand img {
    width: 40px;
    height: 40px;
  }

  .store-brand strong {
    font-size: 1.18rem;
  }

  .store-brand small {
    font-size: 0.84rem;
  }

  .header-mark span {
    display: none;
  }

  .store-page {
    margin-top: 12px;
  }

  .app-title-row {
    grid-template-columns: 78px 1fr;
    gap: 15px;
  }

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

  .app-facts div {
    padding: 0 8px;
  }

  .visual-strip {
    grid-template-columns: repeat(3, 74vw);
    margin-right: -12px;
    padding-right: 12px;
    scroll-snap-type: x mandatory;
  }

  .visual-strip article {
    scroll-snap-align: start;
  }

  .quick-actions {
    gap: 34px;
  }
}

@media (max-width: 390px) {
  .app-facts strong {
    font-size: 0.82rem;
  }

  .app-facts span {
    font-size: 0.68rem;
  }

  .install-button {
    min-height: 58px;
  }

  .status-box {
    padding: 11px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
