@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Press+Start+2P&display=swap');

:root {
  --panel: linear-gradient(145deg, #d0d0d0 0%, #c0c0c0 50%, #b0b0b0 100%);
  --border: #c0c0c0;
  --shadow-outer: 2px 2px 0px #000;
  --glow: rgba(0, 255, 255, 0.35);
  --text-main: #000;
  --accent: #00ffff;
  --accent-soft: rgba(0, 255, 255, 0.16);
  --bg-dark: #1a1a1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.1) 0%, transparent 50%),
    #101318;
  color: var(--text-main);
}

.frame {
  max-width: 960px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 10px;
  border: 2px solid var(--border);
  box-shadow:
    var(--shadow-outer),
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(0, 255, 255, 0.2);
  padding: 16px 20px 20px;
  position: relative;
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.7);
  pointer-events: none;
}

header {
  text-align: center;
  margin-bottom: 18px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

h1 {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 20px;
  margin: 0;
  color: #000;
  text-shadow:
    0 0 6px rgba(0,255,255,0.7),
    1px 1px 0px #fff;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 12px;
  margin-top: 4px;
  color: #111;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  font-size: 13px;
  color: #222;
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.6;
  text-shadow: 1px 1px 0px #fff;
}

.header-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.header-btn {
  padding: 6px 10px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  border-radius: 4px;
  border: 2px outset var(--border);
  background: linear-gradient(135deg, #f5f5f5, #dcdcdc);
  box-shadow: 1px 1px 0px #000;
  cursor: pointer;
}

.header-btn:hover {
  background: linear-gradient(135deg, #ffffff, #e8e8e8);
  box-shadow:
    1px 1px 0px #000,
    0 0 8px rgba(0,255,255,0.4);
}

.nav-tabs {
  display: flex;
  margin: 10px 0 12px;
  border-bottom: 2px solid #999;
  gap: 4px;
}

.nav-tab {
  padding: 6px 10px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  border-radius: 4px 4px 0 0;
  border: 2px solid #999;
  border-bottom: none;
  background: linear-gradient(145deg, #f5f5f5, #d0d0d0);
  cursor: pointer;
  box-shadow: 1px 1px 0px #000;
  position: relative;
  top: 2px;
}

.nav-tab.active {
  background: linear-gradient(145deg, #ffffff, #e0e0e0);
  box-shadow:
    1px 1px 0px #000,
    0 0 8px rgba(0,255,255,0.4);
  z-index: 2;
}

#view-lore {
  position: relative;
}

#view-usage {
  position: relative;
}

.scroll-top-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 2px solid #999;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow: 1px 1px 0px #000;
  cursor: pointer;
}

.scroll-top-btn:hover {
  box-shadow:
    1px 1px 0px #000,
    0 0 10px rgba(0,255,255,0.4);
}

.controls {
  padding: 10px;
  border-radius: 6px;
  border: 2px inset var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(210,210,210,0.9));
  box-shadow:
    inset 1px 1px 2px rgba(0,0,0,0.6),
    0 0 12px rgba(0,255,255,0.3);
  margin-bottom: 12px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

label {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 1px 1px 0px #fff;
}

select {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 3px;
  border: 2px inset var(--border);
  background: #f2f2f2;
  box-shadow: inset 1px 1px 1px #fff, inset -1px -1px 1px #888;
  font-family: "JetBrains Mono", monospace;
}

#mode {
  min-width: 260px;
}

#qtype {
  min-width: 260px;
}

button {
  font-family: "JetBrains Mono", monospace;
  padding: 5px 12px;
  border-radius: 4px;
  border: 2px outset var(--border);
  background: linear-gradient(145deg, #f8f8f8, #e0e0e0);
  cursor: pointer;
  box-shadow: 1px 1px 0px #000;
  font-size: 12px;
}

button:hover:not(:disabled) {
  background: linear-gradient(145deg, #ffffff, #e8e8e8);
  box-shadow:
    1px 1px 0px #000,
    0 0 10px rgba(0,255,255,0.5);
}

button:disabled {
  cursor: not-allowed;
  background: #808080;
  color: #c0c0c0;
  border: 2px inset #c0c0c0;
  box-shadow: inset 1px 1px 2px #000;
}

#status {
  margin-top: 10px;
  font-size: 13px;
  color: #222;
  text-shadow: 1px 1px 0px #fff;
  position: relative;
  padding-left: 18px;
}

#status::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ffff 0%, #007777 55%, transparent 60%);
  box-shadow: 0 0 8px rgba(0,255,255,0.8);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateY(-50%) scale(1.2); opacity: 1; }
}

#result {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 6px;
  border: 2px inset var(--border);
  box-shadow:
    inset 1px 1px 2px #000,
    0 0 10px rgba(0,0,0,0.4),
    0 0 16px rgba(0,255,255,0.25);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 16px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.8);
  pointer-events: none;
}

.card-left {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 255, 255, 0.3);
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed #aaa;
}

.card-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(0,0,0,0.6));
  box-shadow:
    0 0 10px rgba(0,255,255,0.7),
    inset 0 0 10px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.element-icon {
  width: 38px;
  height: 38px;
  color: #00ffff;
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.8));
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.8;
}

.overlay-fire {
  background: radial-gradient(circle at 50% 0%, rgba(255,120,0,0.6), transparent 60%);
}

.overlay-water {
  background: radial-gradient(circle at 0% 100%, rgba(0,160,255,0.5), transparent 60%);
}

.overlay-wind {
  background: radial-gradient(circle at 100% 0%, rgba(200,255,255,0.7), transparent 60%);
}

.overlay-earth {
  background: radial-gradient(circle at 50% 100%, rgba(120,80,40,0.7), transparent 60%);
}

.overlay-mind {
  background: radial-gradient(circle at 50% 50%, rgba(220,200,255,0.9), transparent 70%);
}

.overlay-star {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(0,255,255,0.8), transparent 70%);
}

.overlay-arrow {
  background:
    linear-gradient(135deg, rgba(0,255,255,0.6) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.5) 100%);
}

.overlay-lock {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.8), transparent 70%);
}

.overlay-heart {
  background:
    radial-gradient(circle at 40% 40%, rgba(255,0,80,0.8), transparent 60%);
}

.overlay-free {
  background:
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.9), transparent 70%);
}

.overlay-eye {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,255,255,0.5), transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  text-shadow: 1px 1px 0px #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  font-size: 11px;
  border: 1px solid #98ffff;
  background: linear-gradient(135deg, rgba(0,255,255,0.18), rgba(255,255,255,0.9));
  box-shadow: 1px 1px 0px #000, 0 0 6px rgba(0,255,255,0.25);
  border-radius: 3px;
}

.label {
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 0.95rem;
  text-shadow: 1px 1px 0px #fff;
}

.section-title {
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #222;
  text-shadow: 1px 1px 0px #fff;
}

.section-body {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.meta-info {
  margin-top: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #f7f7f7, #ededed);
  border: 1px dashed #9bdada;
  font-size: 0.87rem;
  color: #444;
  border-radius: 4px;
}

.meta-info strong {
  color: #222;
}

.stage-bar {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.stage-bar-label {
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 1px 1px 0px #fff;
}

.stage-bar-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c0f9ff, #fce7ff);
  box-shadow: inset 0 0 3px rgba(0,0,0,0.4), 0 0 6px rgba(0,255,255,0.35);
  margin-bottom: 4px;
}

.stage-bar-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 6px rgba(0,255,255,0.8);
}

.stage-bar-stages {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  font-size: 0.75rem;
  color: #333;
}

.stage-bar-stages span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.next-chain-btn {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 12px;
  background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
  border: 2px outset var(--border);
  cursor: pointer;
  box-shadow: 1px 1px 0px #000;
  border-radius: 4px;
}

.next-chain-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  box-shadow: 1px 1px 0px #000, 0 0 8px rgba(0,255,255,0.3);
}

.lore-scroll {
  background: linear-gradient(145deg, #fff 0%, #f8f8f8 100%);
  border: 2px inset var(--border);
  padding: 24px;
  box-shadow:
    inset 1px 1px 2px #000,
    0 0 10px rgba(0,255,255,0.15);
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 6px;
}

.lore-scroll h2 {
  margin-top: 0;
  font-size: 1.5rem;
  text-shadow: 1px 1px 0px #fff;
  border-bottom: 2px solid #c0c0c0;
  padding-bottom: 8px;
  color: #000;
}

.lore-scroll h3 {
  margin-top: 20px;
  font-size: 1.2rem;
  text-shadow: 1px 1px 0px #fff;
  color: #111;
}

.lore-scroll p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}

.lore-scroll ul {
  padding-left: 18px;
  margin: 8px 0;
}

.lore-scroll li {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #999;
  padding-bottom: 4px;
}

.chapter-tab {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 4px 4px 0 0;
  border: 2px solid #999;
  border-bottom: none;
  background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
  cursor: pointer;
  box-shadow: 1px 1px 0px #000;
  position: relative;
  top: 2px;
  transition: all 0.2s ease;
}

.chapter-tab:hover {
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
  box-shadow:
    1px 1px 0px #000,
    0 0 8px rgba(0,255,255,0.3);
}

.chapter-tab.active {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow:
    1px 1px 0px #000,
    0 0 12px rgba(0,255,255,0.5);
  font-weight: 600;
  z-index: 2;
}

.chapter-content-wrapper {
  position: relative;
  min-height: 300px;
}

.chapter-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.chapter-content.active {
  display: block;
}

.chapter-content,
#lore-content,
#usage-content {
  background: #fdfdfd;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 16px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 6px 18px rgba(0,0,0,0.08);
  line-height: 1.72;
}

REMOVED_TOC_PLACEHOLDER {
  background: #f4f7fb;
  border: 1px solid #d6e6ff;
  border-radius: 8px;
  padding: 12px 12px 8px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

REMOVED_TOC_PLACEHOLDER-title {
  font-weight: 700;
  color: #0f1b33;
  margin-bottom: 8px;
}

REMOVED_TOC_PLACEHOLDER-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

REMOVED_TOC_PLACEHOLDER-list a {
  color: #0f4ea6;
  text-decoration: none;
}

REMOVED_TOC_PLACEHOLDER-list a:hover {
  text-decoration: underline;
}

REMOVED_TOC_PLACEHOLDER-list .toc-sub {
  padding-left: 12px;
}

.chapter-content h2,
.chapter-content h3,
#lore-content h2,
#lore-content h3,
#usage-content h2,
#usage-content h3 {
  margin: 14px 0 10px;
  color: #0f1b33;
  letter-spacing: 0.02em;
}

.chapter-content p,
#lore-content p,
#usage-content p {
  margin: 10px 0;
  font-size: 15px;
  color: #1f1f1f;
}

.chapter-content ul,
#lore-content ul,
#usage-content ul {
  margin: 10px 0 10px 20px;
  padding: 0;
  color: #1f1f1f;
}

.chapter-content li,
#lore-content li,
#usage-content li {
  margin: 6px 0;
}

.chapter-content hr,
#lore-content hr,
#usage-content hr {
  border: none;
  border-top: 1px dashed #c8c8c8;
  margin: 16px 0;
}

.chapter-content blockquote,
#lore-content blockquote,
#usage-content blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  background: #f4f7fb;
  border-left: 3px solid #7ec8ff;
  color: #0f1b33;
}

.chapter-content img,
#lore-content img,
#usage-content img {
  max-width: 100%;
  display: block;
  margin: 12px auto;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.event-reaction .event-primary {
  background: #f4f7fb;
  padding: 4px 6px;
  border-radius: 6px;
  margin-top: 4px;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  margin: 12px 0;
}

code {
  font-family: "JetBrains Mono", monospace;
}

.chapter-content table,
#lore-content table,
#usage-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.chapter-content th,
.chapter-content td,
#lore-content th,
#lore-content td,
#usage-content th,
#usage-content td {
  border: 1px solid #d8d8d8;
  padding: 8px 10px;
  text-align: left;
}

.chapter-content th,
#lore-content th,
#usage-content th {
  background: #f3f6fb;
  font-weight: 700;
}

.math {
  font-family: "JetBrains Mono", monospace;
  background: #eef5ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.math-block {
  font-family: "JetBrains Mono", monospace;
  background: #eef5ff;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 12px 0;
  overflow-x: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(860px, 100% - 32px);
  max-height: 80vh;
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
  border-radius: 8px;
  border: 2px solid #aaa;
  box-shadow:
    0 0 20px rgba(0,0,0,0.8),
    0 0 18px rgba(0,255,255,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 10px 14px;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 1px 1px 0px #000;
}

.modal-close {
  width: 26px;
  height: 22px;
  border-radius: 4px;
  border: 2px outset #777;
  background: linear-gradient(145deg, #d0d0d0, #f0f0f0);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 1px 0px #000;
}

.modal-close:hover {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow:
    1px 1px 0px #000,
    0 0 8px rgba(0,255,255,0.5);
}

.modal-body {
  padding: 14px;
  overflow-y: auto;
  background: radial-gradient(circle at 0% 0%, rgba(0,255,255,0.06), transparent 55%), #e0e0e0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .controls-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #mode,
  #qtype {
    width: 100%;
  }

  .card {
    flex-direction: column;
  }

  .card-left {
    flex: 1;
    width: 100%;
  }

  .card-right {
    flex: 1;
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    padding-top: 12px;
  }

  .card-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ========== 能量匯聚動畫 ========== */
.energy-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.7), rgba(0,0,0,0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.energy-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.energy-circle-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.energy-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.6;
  animation: energyPulse 2s ease-in-out infinite;
}

.energy-circle.outer {
  width: 280px;
  height: 280px;
  border-color: rgba(0, 255, 255, 0.4);
  animation-delay: 0s;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.energy-circle.middle {
  width: 200px;
  height: 200px;
  border-color: rgba(0, 255, 255, 0.6);
  animation-delay: 0.3s;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.energy-circle.inner {
  width: 120px;
  height: 120px;
  border-color: rgba(0, 255, 255, 0.8);
  animation-delay: 0.6s;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.energy-core {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ffff, #007777);
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.8),
    0 0 60px rgba(0, 255, 255, 0.6),
    0 0 80px rgba(0, 255, 255, 0.4);
  animation: coreGlow 1.5s ease-in-out infinite;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow:
    0 0 10px #00ffff,
    20px 30px 0 #00ffff,
    -30px 20px 0 #00ffff,
    40px -10px 0 #00ffff,
    -20px -40px 0 #00ffff,
    50px 50px 0 #00ffff,
    -50px -50px 0 #00ffff,
    60px -30px 0 #00ffff,
    -40px 60px 0 #00ffff;
  animation: particleFloat 3s ease-in-out infinite;
}

.particles::after {
  animation-delay: 1.5s;
  opacity: 0.7;
}

.energy-text {
  margin-top: 40px;
  font-size: 16px;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 2px;
  animation: textGlow 1.5s ease-in-out infinite;
}

@keyframes energyPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 1;
  }
}

@keyframes coreGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 40px rgba(0, 255, 255, 0.8),
      0 0 60px rgba(0, 255, 255, 0.6),
      0 0 80px rgba(0, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow:
      0 0 60px rgba(0, 255, 255, 1),
      0 0 80px rgba(0, 255, 255, 0.8),
      0 0 100px rgba(0, 255, 255, 0.6);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(10px, -10px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translate(-5px, 15px) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: translate(15px, 5px) scale(1.1);
    opacity: 1;
  }
}

@keyframes textGlow {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 20px rgba(0, 255, 255, 1),
      0 0 30px rgba(0, 255, 255, 0.8);
  }
}


.copyright {
  text-align: center;
  font-size: 12px;
  color: #444;
  margin-top: 10px;
}
