*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #111;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

[hidden] {
  display: none !important;
}

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.entry {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/** 整张图就是按钮，点哪里都能跳 */
.entry .btn {
  display: block;
  width: 100%;
  line-height: 0;
  cursor: pointer;
  -webkit-touch-callout: none;
}

.entry .btn .bg {
  display: block;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.entry .btn:active .bg {
  opacity: 0.94;
}

.switch-bar {
  position: fixed;
  left: 50%;
  bottom: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.switch-item {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.switch-item.is-active[data-switch="flash"] {
  color: #fff;
  background: linear-gradient(180deg, #2bb0ff 0%, #0097ff 100%);
  box-shadow: 0 4px 10px rgba(0, 151, 255, 0.35);
}

.switch-item.is-active[data-switch="tb"] {
  color: #fff;
  background: linear-gradient(180deg, #ff7a33 0%, #ff5000 100%);
  box-shadow: 0 4px 10px rgba(255, 80, 0, 0.35);
}

.switch-item:active {
  transform: scale(0.96);
}
