:root {
  --teal: #00605f;
  --surface: #ececef;
  --text: #202124;
  --muted: #5f6368;
  --green: #028760;
  --line: #dadce0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--teal);
  font-family: "Roboto", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 52% 28%, #0f8b84 0%, #0d6d6a 42%, #075958 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pre-card {
  width: min(84vw, 330px);
  border-radius: 18px;
  padding: 22px 18px 18px;
  background: rgba(236, 236, 239, 0.98);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
}

.pre-core {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.pre-core img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  z-index: 2;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-a {
  border-top-color: #028760;
  border-left-color: #028760;
  animation: ringSpin 1.45s linear infinite;
}

.ring-b {
  inset: 9px;
  border-right-color: #0f9f70;
  border-bottom-color: #0f9f70;
  animation: ringSpinReverse 1.1s linear infinite;
}

.pre-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f3731;
}

.pre-bar {
  margin: 14px auto 10px;
  width: 100%;
  max-width: 248px;
  height: 7px;
  border-radius: 999px;
  background: #d2ded8;
  overflow: hidden;
}

.pre-bar i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #028760 0%, #1fc48b 100%);
  animation: preBar 1.2s ease-in-out infinite;
}

.pre-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pre-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #028760;
  opacity: 0.35;
  animation: preDot 1.05s ease-in-out infinite;
}

.pre-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.pre-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.page {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.is-loading .page {
  opacity: 0;
  transform: translateY(16px);
}

body.is-loaded .page {
  opacity: 1;
  transform: translateY(0);
}

.container {
  padding: 30px 20px 34px;
  text-align: left;
}

.hero {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-top: 4px;
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
}

.hero-meta {
  text-align: left;
}

.hero-meta h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 500;
}

.domain {
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.05;
  color: var(--green);
}

.verify {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.22;
  color: var(--muted);
}

.stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  gap: 6px;
}

.stat {
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 5px;
  width: 1px;
  height: 34px;
  background: #e8eaed;
}

.stat .main {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.stat .sub {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
}

.install {
  margin-top: 24px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 11px 10px;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.install-link {
  display: block;
  text-decoration: none;
}

.install::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.16) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  animation: shine 2.8s linear infinite;
  pointer-events: none;
}

.install .title {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.install .title b {
  color: #ffd84b;
  margin-right: 4px;
}

.install .desc {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green);
}

.action img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.action svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.action p {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.gallery {
  margin-top: 24px;
}

.gallery-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-color: #4b4b4b #c2c3c6;
}

.gallery-track::-webkit-scrollbar {
  height: 10px;
}

.gallery-track::-webkit-scrollbar-track {
  background: #c2c3c6;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: #4b4b4b;
}

.gallery-track img {
  width: 116px;
  height: 258px;
  object-fit: cover;
  flex: 0 0 auto;
}

.about {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.section-title img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.about p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #5f6368;
  text-align: left;
}

.about h4 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.2;
  color: #202124;
}

.updated {
  margin-top: 28px;
}

.updated h3,
.rating h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.updated p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  text-align: left;
}

.rating {
  margin-top: 28px;
}

.tabs {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: #666d75;
  font-size: 14px;
}

.tab img {
  width: 14px;
  height: 15px;
  object-fit: contain;
}

.tab.on {
  color: var(--green);
  background: #e6f3ef;
}

.score-box {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.score-left .score {
  margin: 0;
  font-size: 42px;
  line-height: 0.95;
}

.stars {
  margin-top: 6px;
  display: flex;
  gap: 2px;
}

.stars img {
  width: 13px;
  height: 13px;
}

.score-left .count {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5f6368;
}

.bars p {
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: #5f6368;
}

.bars b {
  width: 100%;
  height: 10px;
  border-radius: 8px;
  background: #d5d5d8;
  display: block;
  position: relative;
}

.bars b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: 8px;
  background: var(--green);
}

.review {
  margin-top: 22px;
}

.review header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.review .user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.review .user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.review .user b {
  font-size: 17px;
  font-weight: 500;
  color: #4d535d;
}

.review header > img {
  width: 8px;
  height: 24px;
  object-fit: contain;
}

.review .meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--green);
  text-align: left;
}

.review .meta time {
  color: var(--muted);
  font-size: 14px;
}

.review .text {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #5b626c;
  text-align: left;
}

.rating::after {
  content: "";
  display: block;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

@keyframes shine {
  0% {
    left: -140%;
  }
  45% {
    left: 135%;
  }
  100% {
    left: 135%;
  }
}

@keyframes ringSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes ringSpinReverse {
  to {
    transform: rotate(-1turn);
  }
}

@keyframes preBar {
  0% {
    transform: translateX(-115%);
  }
  50% {
    transform: translateX(140%);
  }
  100% {
    transform: translateX(140%);
  }
}

@keyframes preDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 22px 12px 26px;
  }

  .hero {
    gap: 10px;
  }

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

  .hero-meta h1 {
    font-size: 24px;
  }

  .domain {
    font-size: 20px;
  }
}
