/* ---------- 环形计时器 ---------- */
.ring {
  --ring-color: var(--lime);
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(10, 15, 2, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .rg-bg { stroke: rgba(255, 255, 255, 0.14); }
.ring .rg-fg { stroke: var(--ring-color); filter: drop-shadow(0 0 6px var(--ring-color)); transition: stroke 0.3s ease; }
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.ring-label b { display: block; font-weight: 800; line-height: 1; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.ring-label span { display: block; font-size: 9px; line-height: 1; letter-spacing: 1.2px; color: var(--t3); }
.ring.tick b { animation: tick 0.35s var(--ease-spring); }
@keyframes tick { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }

.dock-top {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: popIn 0.5s 0.2s var(--ease-spring) backwards;
}

/* ---------- 浮层提示 ---------- */
.hint-pill {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 9;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(10, 15, 2, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
  transition: color 0.2s ease, background 0.2s ease;
}
.hint-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.hint-pill.warn { color: var(--yellow); }
.hint-pill.bad { color: #ff7a9a; background: rgba(60, 0, 14, 0.6); }
.hint-pill.good { color: var(--lime); }

/* 诱饵按钮 */
.bait {
  position: absolute;
  left: 50%;
  z-index: 11;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), var(--lime));
  box-shadow: 0 10px 28px -6px rgba(245, 235, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  animation: baitBounce 1.4s ease-in-out infinite;
  cursor: pointer;
}
.bait::before { content: "🎁"; font-size: 15px; }
.bait[data-ico]::before { content: attr(data-ico); }
@keyframes baitBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }

/* 关闭按钮 */
.close-btn {
  position: absolute;
  z-index: 12;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: popIn 0.4s var(--ease-spring) both;
  cursor: pointer;
}
.close-btn svg { width: 12px; height: 12px; }
.close-btn:active { transform: scale(0.88); }
/* 红绿灯：尺寸、描边、✕ 和普通关闭按钮完全一致，只换底色 */
.close-btn.green { background: rgba(34, 197, 94, 0.85); }
.close-btn.red { background: rgba(239, 35, 60, 0.85); }
.close-btn.out { animation: fadeOut 0.2s ease both; }

/* 玻璃面板 */
.glass {
  border-radius: 20px;
  background: rgba(17, 23, 10, 0.62);
  box-shadow: inset 0 0 0 1px rgba(218, 252, 169, 0.14), 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.center-abs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.label-sm { font-size: 11px; letter-spacing: 1px; color: var(--t3); }
