* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  background: #f9d6ad;
}
.distribution-page {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(38px + env(safe-area-inset-bottom, 0px));
}
.splash-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -3;
  pointer-events: none;
}
.distribution-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(145deg, #ff9c4955, #77d7bf33 35%, #fff0d7ee 80%);
}
.distribution-header {
  position: absolute;
  top: calc(30px + env(safe-area-inset-top, 0px));
  left: 24px;
}
.distribution-header img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  box-shadow: 0 4px 18px #3332;
}
.distribution-loader-body {
  width: min(100%, 380px);
  text-align: center;
  color: #67492e;
}
h1 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 12px;
}
h1 + p {
  font-size: 14px;
  line-height: 1.7;
}
.distribution-loader-progress {
  height: 4px;
  margin: 24px auto;
  background: #ffdaa7;
  max-width: 230px;
  overflow: hidden;
  border-radius: 4px;
}
.distribution-loader-progress::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: #ff8733;
  animation: loading 1.5s ease-in-out infinite;
}
.distribution-loader-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.distribution-button {
  border: 1px solid #fff8;
  border-radius: 24px;
  background: linear-gradient(90deg, #ff812c, #ffa745);
  padding: 12px 32px;
  min-height: 46px;
  color: white;
  font-weight: 600;
}
.distribution-inline-link {
  font-size: 14px;
  color: #655541;
  min-height: 44px;
  display: flex;
  align-items: center;
}
@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .distribution-loader-progress::after {
    animation: none;
    width: 100%;
  }
}
@media (max-height: 500px) {
  .distribution-header img {
    width: 48px;
    height: 48px;
  }
  .distribution-page {
    padding-top: 100px;
  }
  .distribution-loader-actions {
    margin-top: 12px;
    gap: 6px;
  }
  h1 {
    font-size: 21px;
  }
}

[hidden] {
  display: none !important;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
}
button:disabled,
[aria-disabled="true"] {
  cursor: default;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #196f60;
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.distribution-error {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(94%, 380px);
  padding: 12px;
  border-radius: 12px;
  background: #fff5e9;
  color: #713b21;
  font-size: 13px;
  box-shadow: 0 4px 20px #70451b22;
}
.distribution-error button {
  border: 0;
  background: none;
  color: #b13c0a;
  margin-left: 8px;
  text-decoration: underline;
  min-height: 32px;
}
.distribution-toast {
  position: fixed;
  z-index: 100;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 12px 20px;
  border-radius: 24px;
  background: #35281eed;
  color: white;
  font-size: 14px;
  text-align: center;
}
.distribution-browser-guide {
  margin: auto;
  width: min(90%, 380px);
  padding: 30px;
  border: 0;
  border-radius: 20px;
  color: #463125;
  line-height: 1.7;
}
.distribution-browser-guide::backdrop {
  background: #241b1690;
}
.distribution-close {
  float: right;
  background: none;
  border: 0;
  font-size: 28px;
  min-width: 40px;
  min-height: 40px;
}
.distribution-browser-guide h2 {
  font-size: 20px;
}
.nav-symbol {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #ffb650, #ff671e);
}
.nav-symbol svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.top-btn .nav-symbol {
  width: 24px;
  height: 24px;
}
.top-btn,
.nav-item {
  min-height: 44px;
  justify-content: center;
}
.brand-title {
  color: #ef671e !important;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow:
    0 2px 0 white,
    2px 0 0 white,
    -2px 0 0 white,
    0 -2px 0 white,
    0 4px 0 #bd5b2840;
}

.distribution-page {
  background:
    radial-gradient(ellipse at 75% 18%, #9cdfce 0%, transparent 60%),
    linear-gradient(145deg, #ffb663, #f9e3be 65%, #ffce9b);
}
