/* 烟花 · 样式（.g-fireworks 前缀） */

.g-fireworks {
  padding: 0;
  gap: 0;
}

.g-fireworks .fw-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(140% 90% at 50% 112%, rgba(255, 158, 92, 0.1), transparent 55%),
    radial-gradient(120% 80% at 50% 100%, #1b2338 0%, #111627 42%, #070a13 100%);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.g-fireworks .fw-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
}

/* ---------------- 顶部计数 / 开关 ---------------- */

.g-fireworks .fw-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
}

.g-fireworks .fw-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 13, 19, 0.52);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: var(--dim);
  line-height: 1.2;
}

.g-fireworks .fw-chip b {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.g-fireworks .fw-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-fireworks .fw-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 13, 19, 0.55);
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
}

.g-fireworks .fw-btn:active { transform: scale(0.95); }

.g-fireworks .fw-btn.on {
  color: #fff;
  border-color: rgba(255, 158, 92, 0.62);
  background: linear-gradient(180deg, rgba(255, 158, 92, 0.3), rgba(217, 106, 37, 0.16));
  box-shadow: 0 0 18px rgba(255, 158, 92, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ---------------- 底部提示 ---------------- */

.g-fireworks .fw-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + var(--safe-b));
  z-index: 2;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(238, 242, 250, 0.55);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ---------------- 窄屏 ---------------- */

@media (max-width: 359px) {
  .g-fireworks .fw-btn { padding: 0 11px; font-size: 11.5px; }
  .g-fireworks .fw-hint { font-size: 11px; }
}
