:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bg: #0b0d12;
  --text: #f1f3f5;
  --muted: rgba(255, 255, 255, 0.45);
  --yellow: #facc15;
  --pink: #ff2c55;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a {
  color: var(--yellow);
}
.state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 12px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}
.state.show {
  display: flex;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-ico {
  font-size: 40px;
  opacity: 0.5;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 80vw;
  pointer-events: none;
}
.is-hidden {
  display: none !important;
}
