:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #101114;
  color: #f4f4f5;
  --brand-yellow: #ffda35;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.relay {
  width: min(100%, 400px);
  text-align: center;
  animation: arrive 280ms ease-out both;
}

.brand-mark {
  display: block;
  width: 80px;
  height: 110px;
  margin: 0 auto 26px;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.redirect-message {
  margin: 28px 0 9px;
  font-size: 17px;
  line-height: 1.6;
  color: #c3c4c8;
}

.loading-dot {
  display: inline-block;
  width: 1em;
  animation: pulse 1.3s ease-in-out infinite;
}

.destination {
  margin: 0;
  color: #85878e;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.enter-link {
  min-height: 48px;
  width: 208px;
  max-width: 100%;
  margin: 31px auto 0;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand-yellow);
  color: #171711;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.enter-link:hover { background: #ffe260; }
.enter-link:active { transform: translateY(1px); }
.enter-link:focus-visible { outline: 3px solid #f4f4f5; outline-offset: 5px; }
.enter-link span { transition: transform 140ms ease; }
.enter-link:hover span { transform: translate(2px, -2px); }

.fallback-hint, .noscript-hint {
  margin: 16px 0 0;
  color: #85878e;
  font-size: 12px;
  line-height: 1.7;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 480px) {
  .brand-mark { width: 67px; height: 92px; margin-bottom: 23px; }
  h1 { font-size: 31px; }
  .redirect-message { margin-top: 25px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
