:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: #020712; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.support-fab {
  position: fixed;
  z-index: 50;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  background: linear-gradient(145deg, #ff3ca6, #7445ff 68%, #10d9ff);
  color: #fff;
  box-shadow: 0 0 22px rgb(255 54 177 / 58%), 0 12px 34px rgb(0 0 0 / 42%);
  cursor: pointer;
}
.support-fab__icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.support-fab__label { font-size: 11px; font-weight: 750; white-space: nowrap; }
.support-fab:hover { filter: brightness(1.13); }
.support-fab:focus-visible,
.bookmark-button:focus-visible { outline: 3px solid #f8ecff; outline-offset: 3px; }

.toast {
  position: fixed;
  z-index: 80;
  bottom: 20px;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgb(93 231 255 / 42%);
  border-radius: 999px;
  background: rgb(4 13 31 / 96%);
  color: #eefcff;
  box-shadow: 0 0 28px rgb(45 211 255 / 22%);
  font-size: .84rem;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .support-fab { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: 60px; height: 60px; }
  .support-fab__icon { width: 21px; height: 21px; }
  .support-fab__label { font-size: 10px; }
  .toast { bottom: 84px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
