:root {
  color-scheme: dark;
  --app-width: 400px;
  --page-bg: #090909;
  --content-bg: #171717;
  --accent: #ffe100;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-page {
  width: min(100%, var(--app-width));
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: min(35.2vw, 140.8px);
  overflow: hidden;
  background: var(--page-bg);
}

.app-header,
.content {
  width: 100%;
}

.app-header img,
.section-image {
  width: 100%;
  height: auto;
}

.content {
  background: var(--content-bg);
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0c0c0c;
  touch-action: pan-y;
}

.carousel-viewport {
  width: 100%;
  aspect-ratio: 750 / 456;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 500ms ease;
  will-change: transform;
}

.carousel-track.is-dragging {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(1.6vw, 6.4px);
  width: 100%;
  padding: min(2.133vw, 8.53px) 0;
  background: #0c0c0c;
}

.carousel-dots button {
  width: 17px;
  height: 5px;
  min-width: 17px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #777;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.carousel-dots button.is-active {
  width: 26px;
  background: #fff;
}

.carousel-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.more-copy {
  margin: 0;
  padding: 15px 8px 19px;
  color: #ffdc49;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.download-dock-bg,
.download-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, var(--app-width));
  margin: 0 auto;
}

.download-dock-bg {
  z-index: 9;
  aspect-ratio: 750 / 164;
  background: url("../img/bottom.webp") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.download-dock {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(2.667vw, 10.67px);
  height: min(18.667vw, 74.67px);
  padding: 0 min(2.667vw, 10.67px) max(env(safe-area-inset-bottom), 0px);
}

.dock-action {
  width: auto;
  height: min(13.333vw, 53.33px);
  max-width: 48%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dock-action img {
  width: auto;
  height: 100%;
}

.dock-action:active {
  transform: translateY(1px);
}

.dock-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.online-action {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --app-width: 100vw;
  }
}

@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
  .online-action {
    display: block;
  }

  .download-dock {
    justify-content: space-between;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-dots button {
    transition-duration: 0ms;
  }
}
