/* ============================================
   忍术结印系统 - 完整样式表
   ============================================ */

:root {
  --fire: #ff4500;
  --fire-glow: rgba(255, 69, 0, 0.3);
  --water: #1e90ff;
  --water-glow: rgba(30, 144, 255, 0.3);
  --earth: #cd853f;
  --earth-glow: rgba(205, 133, 63, 0.3);
  --lightning: #ffd700;
  --lightning-glow: rgba(255, 215, 0, 0.3);
  --wind: #98fb98;
  --wind-glow: rgba(152, 251, 152, 0.3);
  --none-color: #da70d6;
  --none-glow: rgba(218, 112, 214, 0.3);
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #161633;
  --bg-input: #1a1a3e;
  --border: #2a2a5a;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-dim: #555577;
  --accent: #e94560;
  --accent-glow: rgba(233, 69, 96, 0.4);
  --success: #4caf50;
  --radius: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- Header ---- */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease;
}
.title {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff4500, #ffd700, #ff4500);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease infinite;
  letter-spacing: 2px;
}
.subtitle {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ---- Search ---- */
.search-section {
  position: relative;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  position: relative;
  z-index: 100;
}
.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.search-icon {
  padding: 0 0.5rem 0 1.2rem;
  font-size: 1.2rem;
  opacity: 0.6;
}
.search-input {
  flex: 1;
  padding: 1rem 0.8rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  outline: none;
  font-family: inherit;
}
.search-input::placeholder {
  color: var(--text-dim);
}
.search-btn {
  padding: 0.9rem 1.6rem;
  margin: 0.35rem;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ---- Suggestions ---- */
.suggestions-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(233, 69, 96, 0.15);
}
.suggestion-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.suggestion-element {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
}
.suggestion-name {
  font-weight: 600;
}
.suggestion-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.suggestion-user {
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.suggestion-rank {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}
.rank-S {
  background: rgba(255, 0, 255, 0.2);
  color: #ff66ff;
}
.rank-A {
  background: rgba(255, 69, 0, 0.2);
  color: #ff6633;
}
.rank-B {
  background: rgba(255, 215, 0, 0.2);
  color: #ffdd33;
}
.rank-C {
  background: rgba(76, 175, 80, 0.2);
  color: #66cc66;
}
.rank-D {
  background: rgba(150, 150, 150, 0.2);
  color: #aaa;
}

/* ---- Jutsu Card ---- */
.jutsu-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeInScale 0.5s ease;
  z-index: 1;
}
.card-glow {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.jutsu-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.jutsu-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.jutsu-rank {
  font-size: 0.85rem;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
}
.jutsu-romaji {
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}
.jutsu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.meta-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.meta-value {
  font-weight: 600;
  font-size: 0.95rem;
}
.jutsu-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.jutsu-card[data-element="fire"] .card-glow {
  background: linear-gradient(90deg, var(--fire), #ff8c00);
}
.jutsu-card[data-element="fire"] .jutsu-name {
  color: var(--fire);
}
.jutsu-card[data-element="water"] .card-glow {
  background: linear-gradient(90deg, var(--water), #00bfff);
}
.jutsu-card[data-element="water"] .jutsu-name {
  color: var(--water);
}
.jutsu-card[data-element="earth"] .card-glow {
  background: linear-gradient(90deg, var(--earth), #daa520);
}
.jutsu-card[data-element="earth"] .jutsu-name {
  color: var(--earth);
}
.jutsu-card[data-element="lightning"] .card-glow {
  background: linear-gradient(90deg, var(--lightning), #ffee00);
}
.jutsu-card[data-element="lightning"] .jutsu-name {
  color: var(--lightning);
}
.jutsu-card[data-element="wind"] .card-glow {
  background: linear-gradient(90deg, var(--wind), #00ff7f);
}
.jutsu-card[data-element="wind"] .jutsu-name {
  color: var(--wind);
}
.jutsu-card[data-element="none"] .card-glow {
  background: linear-gradient(90deg, var(--none-color), #9370db);
}
.jutsu-card[data-element="none"] .jutsu-name {
  color: var(--none-color);
}

/* ============================================
     ★★★ 高亮动画区（大图展示）★★★
     ============================================ */
.seal-spotlight {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  min-height: 300px;
  padding: 1.5rem;
}

.spotlight-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.25;
  animation: ringPulse 1.5s ease infinite;
}
.spotlight-ring.ring-2 {
  width: 260px;
  height: 260px;
  animation-delay: 0.3s;
  opacity: 0.12;
}

.spotlight-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 420px;
}

/* ★ 高亮区图片容器 ★ */
.spotlight-img-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.8rem;
  border-radius: 20px;
  border: 3px solid var(--accent);
  overflow: hidden;
  background: rgba(233, 69, 96, 0.08);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(233, 69, 96, 0.15);
  animation: spotlightBounce 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.spotlight-fallback {
  font-size: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.spotlight-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.3rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.spotlight-step {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.spotlight-guide {
  margin-top: 0.8rem;
  padding: 0.7rem 1.2rem;
  background: rgba(233, 69, 96, 0.06);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.3s ease;
}

/* ============================================
     ★★★ 结印序列卡片（时间线）★★★
     ============================================ */
.seals-section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease;
}
.seals-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.seals-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.seal-node {
  width: 90px;
  padding: 0.5rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  opacity: 0.3;
  cursor: default;
  position: relative;
}

.seal-node .seal-step {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
  letter-spacing: 1px;
}

/* ★ 卡片中的手势图片 ★ */
.seal-img-wrap {
  width: 54px;
  height: 54px;
  margin: 0.1rem auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}

.seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  filter: grayscale(80%) brightness(0.6);
  transition: filter 0.3s;
}

.seal-img-fallback {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.seal-node .seal-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.seal-node .seal-kanji {
  font-size: 0.62rem;
  color: var(--text-dim);
}

/* ---- 卡片状态 ---- */
.seal-node.waiting {
  opacity: 0.25;
}

.seal-node.active {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.1);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
  z-index: 2;
}
.seal-node.active .seal-img-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.seal-node.active .seal-img {
  filter: grayscale(0%) brightness(1.1);
}
.seal-node.active .seal-label {
  color: #fff;
}
.seal-node.active .seal-step {
  color: var(--accent);
}

.seal-node.done {
  opacity: 0.75;
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.06);
}
.seal-node.done .seal-img {
  filter: grayscale(20%) brightness(0.85);
}
.seal-node.done .seal-label {
  color: #ccc;
}
.seal-node.done::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: 0.6rem;
  color: var(--success);
}

/* ---- 悬浮提示（tooltip）---- */
.seal-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  width: 240px;
  text-align: center;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.seal-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--border);
}
.seal-tooltip strong {
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* tooltip 里的图片 */
.tooltip-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0.4rem auto;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}

.seal-node:hover .seal-tooltip {
  display: block;
  animation: fadeInUp 0.2s ease;
}

/* ---- Controls ---- */
.seals-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.control-btn {
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.control-btn:hover:not(:disabled) {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.speed-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.speed-btn {
  padding: 0.35rem 0.7rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  font-family: inherit;
}
.speed-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.speed-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ---- No Seal ---- */
.no-seal-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  animation: fadeInScale 0.5s ease;
}
.no-seal-effect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
}
.energy-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--none-color);
  border-radius: 50%;
  animation: energyPulse 2s ease infinite;
  opacity: 0.4;
}
.energy-ring.ring-2 {
  width: 120%;
  height: 120%;
  animation-delay: 0.4s;
  opacity: 0.25;
}
.energy-ring.ring-3 {
  width: 140%;
  height: 140%;
  animation-delay: 0.8s;
  opacity: 0.1;
}
.no-seal-emoji {
  font-size: 4rem;
  position: relative;
  z-index: 2;
  animation: float 3s ease infinite;
}
.no-seal-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--none-color);
}
.no-seal-sub {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ============================================
忍术释放特效
============================================ */

.jutsu-release {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.jutsu-release.hidden {
  display: none;
}

/* ---- 全屏闪光 ---- */
.release-flash {
  position: fixed;
  top: 50vh;
  left: 50vw;
  width: 200vmax;
  height: 200vmax;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    var(--release-color, rgba(255, 255, 255, 0.9)) 0%,
    transparent 70%
  );
  opacity: 0;
}

.jutsu-release:not(.hidden) .release-flash {
  animation: flashBurst 0.6s ease-out forwards;
}

@keyframes flashBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ---- 冲击波 ---- */
.release-shockwave {
  position: fixed;
  top: 50vh;
  left: 50vw;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  border: 3px solid var(--release-color, rgba(255, 255, 255, 0.8));
  opacity: 0;
}

.jutsu-release:not(.hidden) .release-shockwave {
  animation: shockwaveExpand 0.8s ease-out 0.1s forwards;
}

@keyframes shockwaveExpand {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
    border-width: 4px;
  }
  50% {
    opacity: 0.5;
    border-width: 2px;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(40);
    border-width: 0.5px;
  }
}

/* ---- 查克拉能量环 ---- */
.release-chakra-ring {
  position: fixed;
  top: 50vh;
  left: 50vw;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  border: 2px solid var(--release-color, rgba(255, 255, 255, 0.6));
  box-shadow: 0 0 15px var(--release-glow, rgba(255, 255, 255, 0.3)),
    inset 0 0 15px var(--release-glow, rgba(255, 255, 255, 0.1));
  opacity: 0;
}

.jutsu-release:not(.hidden) .release-chakra-ring {
  animation: chakraRingExpand 1s ease-out 0.05s forwards;
}

.release-chakra-ring.delay-1 {
  width: 60px;
  height: 60px;
  animation-delay: 0.15s !important;
}

.release-chakra-ring.delay-2 {
  width: 40px;
  height: 40px;
  animation-delay: 0.3s !important;
}

@keyframes chakraRingExpand {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
  }
  30% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(25) rotate(180deg);
  }
}

/* ---- 粒子画布 ---- */
#releaseParticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
}

/* ---- 忍术名文字 ---- */
.release-text-wrapper {
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: max-content;
  max-width: 90vw;
}

.release-text {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px var(--release-glow, rgba(255, 255, 255, 0.8)),
    0 0 40px var(--release-glow, rgba(255, 255, 255, 0.5)),
    0 0 80px var(--release-glow, rgba(255, 255, 255, 0.3)),
    0 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.15em;
  opacity: 0;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.release-text.animate-in {
  animation: textSlashIn 0.8s ease-out forwards;
}

.release-sub {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3em;
  margin-top: 0.8rem;
  opacity: 0;
  text-shadow: 0 0 10px var(--release-glow, rgba(255, 255, 255, 0.3));
}

.release-sub.animate-in {
  animation: textFadeUp 0.6s ease-out 0.3s forwards;
}

@keyframes textSlashIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
    filter: blur(10px);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
    filter: blur(0);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes textFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
}

.release-text.fade-out {
  animation: textFadeOut 0.5s ease-in forwards !important;
}

.release-sub.fade-out {
  animation: textFadeOut 0.4s ease-in forwards !important;
}

@keyframes textFadeOut {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(5px);
  }
}

/* ---- 屏幕震动（作用在内容层）---- */
#appWrapper.screen-shake {
  animation: screenShake 0.4s ease-out;
}

@keyframes screenShake {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-4px, 2px);
  }
  20% {
    transform: translate(4px, -2px);
  }
  30% {
    transform: translate(-3px, -1px);
  }
  40% {
    transform: translate(3px, 1px);
  }
  50% {
    transform: translate(-2px, 2px);
  }
  60% {
    transform: translate(2px, -1px);
  }
  70% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
  90% {
    transform: translate(-1px, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---- 属性配色 ---- */
.jutsu-release.element-fire {
  --release-color: rgba(255, 80, 20, 0.9);
  --release-glow: rgba(255, 120, 20, 0.6);
}
.jutsu-release.element-water {
  --release-color: rgba(30, 144, 255, 0.9);
  --release-glow: rgba(80, 180, 255, 0.6);
}
.jutsu-release.element-earth {
  --release-color: rgba(180, 140, 60, 0.9);
  --release-glow: rgba(200, 160, 80, 0.6);
}
.jutsu-release.element-lightning {
  --release-color: rgba(180, 130, 255, 0.9);
  --release-glow: rgba(200, 160, 255, 0.6);
}
.jutsu-release.element-wind {
  --release-color: rgba(120, 220, 180, 0.9);
  --release-glow: rgba(150, 240, 200, 0.6);
}
.jutsu-release.element-none {
  --release-color: rgba(200, 200, 255, 0.9);
  --release-glow: rgba(180, 180, 255, 0.6);
}

/* ---- Quick Select ---- */
.quick-section {
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.quick-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.element-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 0.4rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-btn {
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.25s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.quick-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-color: var(--text-dim);
}
.quick-btn:hover::before {
  transform: scaleX(1);
}
.quick-btn[data-element="fire"]:hover {
  border-color: var(--fire);
}
.quick-btn[data-element="fire"]::before {
  background: var(--fire);
}
.quick-btn[data-element="water"]:hover {
  border-color: var(--water);
}
.quick-btn[data-element="water"]::before {
  background: var(--water);
}
.quick-btn[data-element="earth"]:hover {
  border-color: var(--earth);
}
.quick-btn[data-element="earth"]::before {
  background: var(--earth);
}
.quick-btn[data-element="lightning"]:hover {
  border-color: var(--lightning);
}
.quick-btn[data-element="lightning"]::before {
  background: var(--lightning);
}
.quick-btn[data-element="wind"]:hover {
  border-color: var(--wind);
}
.quick-btn[data-element="wind"]::before {
  background: var(--wind);
}
.quick-btn[data-element="none"]:hover {
  border-color: var(--none-color);
}
.quick-btn[data-element="none"]::before {
  background: var(--none-color);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---- Utils ---- */
.hidden {
  display: none !important;
}

/* ---- Animations ---- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.08;
  }
}
@keyframes energyPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}
@keyframes spotlightBounce {
  0% {
    transform: scale(0.5) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes releaseZoom {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes sealPop {
  0% {
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .title {
    font-size: 1.8rem;
  }
  .search-wrapper {
    flex-direction: column;
  }
  .search-btn {
    width: calc(100% - 0.7rem);
    justify-content: center;
    margin-bottom: 0.35rem;
    text-align: center;
  }
  .jutsu-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
  .seals-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .speed-control {
    justify-content: center;
  }
  .seal-node {
    width: 74px;
  }
  .seal-img-wrap {
    width: 44px;
    height: 44px;
  }
  .spotlight-img-container {
    width: 110px;
    height: 110px;
  }
  .spotlight-name {
    font-size: 1.2rem;
  }
  .spotlight-guide {
    font-size: 0.8rem;
    max-width: 280px;
  }
  .seal-tooltip {
    width: 190px;
    font-size: 0.72rem;
  }
  .tooltip-img {
    width: 60px;
    height: 60px;
  }
  .release-text {
    font-size: 2rem;
  }
}

/* ---- 快捷按钮上的结印数量标签 ---- */
.seal-count-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  margin-left: 0.3rem;
  background: rgba(233, 69, 96, 0.2);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1.4;
}

.quick-btn:hover .seal-count-tag {
  background: rgba(233, 69, 96, 0.35);
}

/* ============================================
   高亮区常驻 & 完成状态
   ============================================ */

/* 完成后高亮区的呼吸光效 */
.seal-spotlight.completed .spotlight-img-container {
  border-color: var(--success);
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.3), 0 0 50px rgba(76, 175, 80, 0.1);
  animation: completedPulse 2s ease infinite;
}

.seal-spotlight.completed .spotlight-name {
  background: linear-gradient(135deg, #ff4500, #ffd700, #ff4500);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease infinite;
  font-size: 1.3rem;
}

.seal-spotlight.completed .spotlight-step {
  color: var(--success);
  font-weight: 700;
  font-size: 0.95rem;
}

.seal-spotlight.completed .spotlight-guide {
  background: rgba(76, 175, 80, 0.06);
  border-color: rgba(76, 175, 80, 0.2);
  color: var(--text-dim);
  cursor: pointer;
}

.seal-spotlight.completed .spotlight-guide:hover {
  color: var(--text-secondary);
  border-color: rgba(76, 175, 80, 0.4);
}

/* 完成后光环变绿 */
.seal-spotlight.completed .spotlight-ring {
  border-color: var(--success);
  animation: ringPulseGreen 2.5s ease infinite;
}

@keyframes completedPulse {
  0%,
  100% {
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.3), 0 0 50px rgba(76, 175, 80, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(76, 175, 80, 0.5),
      0 0 70px rgba(76, 175, 80, 0.15);
  }
}

@keyframes ringPulseGreen {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.06;
  }
}

/* ---- 点击高亮区提示文字可重播 ---- */
.seal-spotlight.completed .spotlight-guide::after {
  content: " 🔄";
}

/* ---- 动画播放中的状态标识 ---- */
.seal-spotlight:not(.completed) .spotlight-img-container {
  animation: spotlightBounce 0.45s ease;
}

/* ---- 高亮区过渡动画 ---- */
.seal-spotlight {
  transition: opacity 0.3s ease;
}

.seal-spotlight.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
