/* 悬浮按钮基础样式 */
.score-float-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--button-bg-light);
  color: var(--button-text-dark);
  border: 2px solid var(--button-bg-light);
  border-radius: 50%;
  font-family: var(--theme-font);
  width: 60px;
  height: 60px;
  font-size: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 面板样式 */
/* ======================
   主浮窗主题
====================== */

/* ======================
   主浮窗（结构 + 主题）
====================== */

.score-float-panel {
  position: fixed;
  top: 90px;
  left: 20px;
  width: 300px;
  max-height: 420px;

  display: none;
  flex-direction: column;

  background: var(--panel-bg-light);
  border: 2px solid var(--panel-bg-light);
  border-radius: 12px;

  padding: 14px;

  color: var(--panel-text-dark);
  font-family: var(--theme-font);

  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  z-index: 99998;
}


.gs-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(85,58,58,0.2);
  margin-bottom: 10px;
}

.gs-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #553A3A;
}

.gs-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-username {
  font-weight: bold;
  font-size: 15px;
}

.gs-user-score {
  font-size: 13px;
  opacity: 0.85;
}

.gs-panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.gs-panel-actions button {
  flex: 1;
  background: var(--button-bg-dark);
  color: var(--button-text-light);
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  font-family: var(--theme-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gs-panel-actions button:hover {
  background: var(--button-bg-medium);
}

.gs-panel-actions button.active {
  background: var(--button-bg-medium);
}


.score-float-panel h3 {
  margin-top: 0;
  font-family: var(--theme-font);
  font-size: 18px;
  text-align: center;
}

/* 三色闪烁动画 */
@keyframes flash-scale-colors {
  0%   { transform: scale(1); color: #000; }
  25%  { transform: scale(1.4); color: #f44336; } /* 红 */
  50%  { transform: scale(1.2); color: #2196F3; } /* 蓝 */
  75%  { transform: scale(1.3); color: #FFEB3B; } /* 黄 */
  100% { transform: scale(1); color: #000; }
}

.score-flash {
  animation: flash-scale-colors 0.6s ease;
}
