:root {
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f3f6f9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f3f6f9;
}

button {
  font: inherit;
}

button,
[role="button"] {
  outline: none;
  box-shadow: none;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:hover,
button:active,
button:focus,
[role="button"]:hover,
[role="button"]:active,
[role="button"]:focus {
  outline: none;
  box-shadow: none;
  filter: none;
  opacity: 1;
}

.page-loading {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 500px);
  transform: translateX(-50%);
  place-items: center;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.page-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loading__spinner {
  width: 32px;
  height: 32px;
  border: 4px solid transparent;
  border-top-color: #526de3;
  border-left-color: #526de3;
  border-radius: 50%;
  animation: loading-rotate 800ms linear infinite;
}

@keyframes loading-rotate {
  to {
    transform: rotate(360deg);
  }
}

.page-shell {
  position: relative;
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: min(16vw, 80px);
  overflow: hidden;
  background: #142658;
}

.section-image,
.carousel img {
  display: block;
  width: 100%;
  height: auto;
}

.section-image--action {
  cursor: default;
}

.carousel {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform var(--carousel-transition-duration, 500ms) ease;
}

.carousel-track img {
  flex: 0 0 100%;
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-indicators span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
}

.carousel-indicators .is-active {
  background: #1678ff;
}

.floating-tools {
  position: fixed;
  z-index: 10;
  top: min(34.53vw, 172.65px);
  left: calc(50% + min(34.86vw, 174.3px));
  display: grid;
  gap: min(2.53vw, 12.65px);
}

.floating-tools button {
  width: min(13.33vw, 66.66px);
  height: min(13.33vw, 66.66px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: default;
}

.floating-tools img {
  display: block;
  width: 100%;
  height: 100%;
}

.download-footer {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 500px);
  height: min(16vw, 80px);
  margin: 0 auto;
  padding: 0 min(2.53vw, 12.65px);
  background: rgb(0 0 0 / 80%);
}

.footer-button {
  position: relative;
  width: 47.35%;
  height: min(9.07vw, 45.35px);
  border: 0;
  border-radius: min(2.67vw, 13.35px);
  color: #fff;
  font-size: min(4.27vw, 21.35px);
  cursor: default;
}

.footer-button--game {
  background: #1678ff;
}

.footer-button--download {
  background: #ffaa09;
}

.footer-bubble {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  min-width: max-content;
  padding: min(1.2vw, 6px) min(2.13vw, 10.65px);
  transform: translateX(-50%);
  border-radius: min(1.33vw, 6.65px) min(1.33vw, 6.65px) 0 0;
  background: #f04438;
  font-size: min(3.2vw, 16px);
  line-height: 1;
}

.footer-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 12px;
  border: 5px solid transparent;
  border-top-color: #f04438;
  border-left-color: #f04438;
}

.line-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 40%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.line-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.line-modal__dialog {
  display: flex;
  width: min(88vw, 440px);
  flex-direction: column;
  align-items: center;
}

.line-modal__panel {
  width: 100%;
  padding: min(2.74vw, 13.7px);
  border-radius: min(2.13vw, 10.65px);
  background: #0a0a0a;
}

.line-modal__item {
  display: grid;
  height: min(12vw, 60px);
  grid-template-columns: min(8vw, 40px) 1fr min(18.13vw, 90.65px);
  align-items: center;
}

.line-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0fdd42;
  font-size: min(2.93vw, 14.65px);
  line-height: 1;
}

.signal-bars {
  display: flex;
  height: min(4.64vw, 23.2px);
  align-items: flex-end;
  gap: 3px;
}

.signal-bars i {
  display: block;
  width: min(1.07vw, 5.35px);
  border-radius: 2px 2px 0 0;
  background: #0fdd42;
}

.signal-bars i:nth-child(1) {
  height: 42%;
}

.signal-bars i:nth-child(2) {
  height: 70%;
}

.signal-bars i:nth-child(3) {
  height: 100%;
}

.line-delay {
  margin-top: 4px;
  line-height: min(3.2vw, 16px);
}

.line-name {
  display: flex;
  justify-content: center;
  color: #09efd1;
  font-size: min(3.47vw, 17.35px);
  line-height: min(4.96vw, 24.8px);
}

.line-play-button {
  height: min(8vw, 40px);
  padding: 0;
  border: 0;
  border-radius: min(2.13vw, 10.65px);
  background: #1678ff;
  color: #fff;
  font-size: min(2.93vw, 14.65px);
  cursor: default;
}

.line-modal__close {
  width: min(10.13vw, 50.65px);
  height: min(10.13vw, 50.65px);
  margin-top: min(5.87vw, 29.35px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: default;
}

.line-modal__close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.toast {
  position: fixed;
  z-index: 30;
  bottom: min(23vw, 115px);
  left: 50%;
  padding: 10px 16px;
  transform: translate(-50%, 12px);
  border-radius: 7px;
  background: rgb(0 0 0 / 78%);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 500px) {
  html,
  body {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading__spinner {
    animation-duration: 1600ms;
  }

  .carousel-track,
  .line-modal,
  .toast {
    transition: none;
  }
}
