:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #20222a;
  background: #edf7ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  background: linear-gradient(155deg, #fbfdff 0%, #f0f8ff 48%, #e4f2ff 100%);
  background-attachment: fixed;
}

button {
  font: inherit;
}

.page {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding:
    env(safe-area-inset-top)
    max(22px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  background: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.topbar-title {
  color: #111318;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.primary-button:focus-visible {
  outline: 3px solid rgba(25, 108, 218, 0.28);
  outline-offset: 3px;
}

.content {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(44px, 8svh, 76px);
}

.fuel-visual {
  position: relative;
  width: min(82vw, 344px);
  aspect-ratio: 430 / 660;
  margin-top: clamp(42px, 8svh, 74px);
  overflow: hidden;
}

.fuel-visual::after {
  position: absolute;
  inset: auto 8% 3% 12%;
  height: 14%;
  border-radius: 50%;
  background: rgba(25, 108, 218, 0.1);
  filter: blur(16px);
  content: "";
  pointer-events: none;
}

.fuel-visual img {
  display: block;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  object-position: center 48%;
}

.primary-button {
  display: flex;
  width: calc(100% - 16%);
  min-height: 54px;
  margin-top: clamp(34px, 5svh, 48px);
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #196cdA;
  box-shadow: 0 12px 26px rgba(25, 108, 218, 0.24);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-button:active {
  transform: translateY(1px) scale(0.995);
  background: #145bbd;
  box-shadow: 0 7px 18px rgba(25, 108, 218, 0.2);
}

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

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 18px));
  max-width: calc(100vw - 44px);
  padding: 11px 18px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(30, 32, 38, 0.9);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@media (max-height: 900px) {
  .content {
    padding-top: 30px;
  }

  .fuel-visual {
    width: min(65vw, 270px);
    margin-top: 28px;
  }

  .primary-button {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
