/* ============ Section ============ */
.hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
}
.mode-wu .section-label { color: var(--wu-red); }
.mode-wen .section-label { color: var(--wen-silver); font-family: 'Cinzel', serif; }
.keyhint { font-size: 11px; color: var(--text-mute); font-family: ui-monospace, monospace; }
.keyhint kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  margin: 0 1px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

/* ============ 维度面板 ============ */
.dim-panel {
  background: rgba(0, 0, 0, 0.65);
  padding: 6px;
  position: relative;
  transition: all 0.5s;
}
.mode-wu .dim-panel {
  border-top: 4px solid var(--wu-red);
  border-bottom: 4px solid var(--wu-red);
}
.mode-wen .dim-panel {
  border-radius: 12px;
  border: 1px solid rgba(192, 216, 255, 0.5);
  background: linear-gradient(180deg, rgba(15, 30, 61, 0.6), rgba(0, 0, 0, 0.7));
  box-shadow: inset 0 0 30px rgba(30, 144, 255, 0.12);
}

.dim {
  display: grid;
  grid-template-columns: 90px 1fr 60px 80px;
  gap: 14px;
  align-items: center;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  position: relative;
  animation: dimWaveBreath 8s ease-in-out infinite;
}
.dim:nth-child(1) { animation-delay: 0s; }
.dim:nth-child(2) { animation-delay: 0.2s; }
.dim:nth-child(3) { animation-delay: 0.4s; }
.dim:nth-child(4) { animation-delay: 0.6s; }
.dim:nth-child(5) { animation-delay: 0.8s; }
.dim:nth-child(6) { animation-delay: 1.0s; }
@keyframes dimWaveBreath {
  0%, 90%, 100% { background: transparent; }
  5% { background: rgba(255, 255, 255, 0.04); }
}

.mode-wu .dim:hover { background: rgba(230, 0, 18, 0.1); }
.mode-wu .dim.focused {
  background: rgba(230, 0, 18, 0.18);
  border-left-color: var(--wu-red);
  transform: translateX(4px);
  box-shadow: inset 0 0 16px rgba(230, 0, 18, 0.15);
  animation: none;
}
.mode-wen .dim:hover { background: rgba(30, 144, 255, 0.1); }
.mode-wen .dim.focused {
  background: rgba(30, 144, 255, 0.15);
  border-left-color: var(--wen-silver);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 0 20px rgba(30, 144, 255, 0.15);
  animation: none;
}

.dim-ctrl {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.dim-btn {
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  font-family: 'Bebas Neue', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-light);
  text-shadow: 1px 1px 0 #000;
  user-select: none;
  padding: 0;
  line-height: 1;
}
.mode-wu .dim-btn {
  background: rgba(230, 0, 18, 0.6);
  border: 1px solid var(--wu-red);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}
.mode-wu .dim-btn:hover {
  background: var(--wu-red);
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--wu-red);
}
.mode-wu .dim-btn:active {
  transform: scale(0.92);
}
.mode-wen .dim-btn {
  background: rgba(30, 144, 255, 0.3);
  border: 1px solid var(--wen-silver);
  border-radius: 50%;
}
.mode-wen .dim-btn:hover {
  background: rgba(30, 144, 255, 0.7);
  transform: scale(1.15);
  box-shadow: 0 0 14px var(--wen-blue);
}
.mode-wen .dim-btn:active {
  transform: scale(0.92);
}

.dim-name { font-size: 16px; font-weight: 900; letter-spacing: 1px; }

.dim-bar {
  position: relative;
  height: 22px;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: all 0.3s;
}
.mode-wu .dim-bar { border: 1px solid var(--wu-red); transform: skewX(-15deg); }
.mode-wen .dim-bar { border-radius: 11px; border: 1px solid rgba(192, 216, 255, 0.3); }

.dim-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 50%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mode-wu .dim-fill {
  background: linear-gradient(90deg, var(--wu-red-dark), var(--wu-red));
  box-shadow: 0 0 12px var(--wu-red);
}
.mode-wen .dim-fill {
  background: linear-gradient(90deg, var(--wen-blue-dark), var(--wen-silver));
  box-shadow: 0 0 12px var(--wen-blue);
}
.dim-fill.is-S::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: fillShine 1.6s linear infinite;
}
@keyframes fillShine { to { left: 200%; } }

.dim-grade {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  font-family: 'Bebas Neue', monospace;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #000;
  transition: all 0.3s;
  white-space: nowrap;
}
.dim.focused .dim-grade { animation: gradeBreath 1.5s ease-in-out infinite; }
@keyframes gradeBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.dim-grade.boom { animation: gradeBoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes gradeBoom {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); filter: brightness(2) blur(1px); }
  100% { transform: scale(1); filter: brightness(1) blur(0); }
}

/* 观众缘标签 */
.dim-tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 5px;
  margin-left: 6px;
  letter-spacing: 1px;
  vertical-align: middle;
  border-radius: 3px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
}
.mode-wu .dim-tag { background: var(--wu-gold); color: var(--wu-black); }
.mode-wen .dim-tag { background: var(--wen-cyan); color: var(--wen-blue-dark); }

/* 观众缘输入框 */
.audience-input {
  width: 76px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  font-family: 'Bebas Neue', monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  outline: none;
  padding: 0 4px;
  transition: all 0.2s;
}
.mode-wu .audience-input:focus {
  border-color: var(--wu-gold);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}
.mode-wen .audience-input:focus {
  border-color: var(--wen-cyan);
  box-shadow: 0 0 12px rgba(94, 230, 240, 0.5);
}
.audience-input::placeholder { color: var(--text-mute); font-size: 11px; letter-spacing: 2px; }
/* 隐藏数字输入的spinner箭头 */
.audience-input::-webkit-inner-spin-button,
.audience-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* 观众缘维度行的特殊背景 */
.dim.is-audience {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02));
}
.mode-wu .dim.is-audience { border-left: 3px solid rgba(245, 197, 24, 0.4); }
.mode-wen .dim.is-audience { border-left: 3px solid rgba(94, 230, 240, 0.4); }

.g-S { color: #FFD700; }
.g-A { color: #97C459; }
.g-B { color: #5DADE2; }
.g-C { color: #F4B942; }
.g-D { color: #888780; }
.g-E { color: #5F5E5A; }

