@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@900&display=swap');

/* Scoped glowing text widget: use .gt-wrapper to avoid global pollution */
.gt-wrapper {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  gap: 6px;
  background: transparent; /* keep page background unchanged */
  font-family: 'Poppins', sans-serif;
}

/* Responsive main size for the glowing buttons. Only affects sizing; layout and proportions remain. */
:root {
  /* 缩小整体尺寸：减少最小值、基于 vw 的比例和最大值。所有依赖 --gt-size 的样式会按比例自动调整。 */
  --gt-size: clamp(28px, 4.8vw, 96px);
}

.gt-wrapper ul {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
}

.gt-wrapper li {
  list-style: none;
}

.gt-wrapper label {
  position: relative;
}

.gt-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: var(--gt-size);
  width: var(--gt-size);
  z-index: 100;
  /* 不捕获指针，以便下面的 .gt-text 接收 hover 事件 */
  pointer-events: none;
}

.gt-wrapper .gt-text {
  position: relative;
  height: var(--gt-size);
  width: var(--gt-size);
  background: #18191f;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size scales to keep the same visual proportion relative to the box */
  font-size: calc(var(--gt-size) * 0.575);
  cursor: pointer;
  margin: 0 calc(var(--gt-size) * 0.05);
  /* border-radius kept proportional */
  border-radius: calc(var(--gt-size) * 0.25);
  box-shadow: -1px -1px 4px rgba(255, 255, 255, 0.05),
    4px 4px 6px rgba(0, 0, 0, 0.2),
    inset -1px -1px 4px rgba(255, 255, 255, 0.05),
    inset 1px 1px 1px rgba(0, 0, 0, 0.1);
  /* smooth transitions for color and glow */
  transition: color 360ms ease, text-shadow 360ms ease, box-shadow 360ms ease, transform 220ms ease;
}

/* .gt-wrapper .gt-text:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 75px;
  height: 38px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
} */

.gt-wrapper input[type="checkbox"]:checked ~ .gt-text,
.gt-wrapper .gt-text.glow {
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.05),
    inset 4px 4px 6px rgba(0, 0, 0, 0.2);
  color: #18bfef;
  text-shadow: 0 0 15px #18bfef, 0 0 25px #18bfef;
  transform: scale(1.02);
  /* no CSS animation here so fade-in/out uses transitions above */
}

@keyframes glow {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}