/* ====== OJOLPEDIA SCENE – GAME UI STYLE ====== */

#ojol-ojolpedia-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  /* background sky ala game + animasi pelan */
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.8) 0%, transparent 55%),
    radial-gradient(circle at 50% 120%, #065f46 0%, #022c22 50%, #020617 100%);
  background-size: 120% 120%;
  animation: ojolpedia-bg-move 18s ease-in-out infinite alternate;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f9fafb;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* container utama */
.ojolpedia-scene {
  width: 100%;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-bottom: 16px;
}

/* ====== HEADER ====== */
.ojolpedia-header {
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.98),
    rgba(6, 95, 70, 0.98)
  );
  border-bottom: 2px solid rgba(16, 185, 129, 0.9);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(16, 185, 129, 0.7);
  backdrop-filter: blur(16px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  justify-content: space-between;
  animation: ojolpedia-header-drop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.ojolpedia-btn-back {
  background: radial-gradient(circle at 30% 0, #fef9c3 0, #facc15 55%, #f59e0b 100%);
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 0 rgba(124, 45, 18, 0.9),
    0 8px 16px rgba(0, 0, 0, 0.7);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.ojolpedia-btn-back:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 5px 0 rgba(124, 45, 18, 1),
    0 12px 20px rgba(0, 0, 0, 0.8);
  filter: brightness(1.05);
}

.ojolpedia-btn-back:active {
  transform: translateY(1px) scale(0.96);
  box-shadow:
    0 1px 0 rgba(124, 45, 18, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.8);
}

.ojolpedia-btn-back img {
  height: 22px;
  filter: brightness(0) contrast(1.2);
}

.ojolpedia-title {
  font-size: 22px;
  font-weight: 900;
  color: #ecfdf5;
  text-shadow:
    0 2px 0 rgba(15, 23, 42, 0.9),
    0 0 16px rgba(16, 185, 129, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ojolpedia-title-icon {
  font-size: 26px;
  animation: ojolpedia-title-bob 2s ease-in-out infinite;
}
img.ojolpedia-title-icon {
    height: 48px;
    width: auto;
}

/* ====== CONTENT WRAPPER ====== */
.ojolpedia-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ====== SECTION CARD ====== */
.ojolpedia-section {
  background: radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.25) 0%, rgba(15, 23, 42, 0.98) 50%);
  border-radius: 18px;
  border: 2px solid rgba(45, 212, 191, 0.9);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(34, 197, 94, 0.4);
  position: relative;
  /* overflow: hidden; */
  animation: ojolpedia-section-pop 0.4s ease-out backwards;
}

.ojolpedia-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -10%, rgba(59, 130, 246, 0.35), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.ojolpedia-section:nth-child(1) { animation-delay: 0.08s; }
.ojolpedia-section:nth-child(2) { animation-delay: 0.16s; }
.ojolpedia-section:nth-child(3) { animation-delay: 0.24s; }
.ojolpedia-section:nth-child(4) { animation-delay: 0.32s; }
.ojolpedia-section:nth-child(5) { animation-delay: 0.40s; }

.ojolpedia-section-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.3), rgba(8, 47, 73, 0.9));
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.ojolpedia-section-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.9));
}

.ojolpedia-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #e0f2f1;
  margin: 0;
  letter-spacing: 0.03em;
}

.ojolpedia-section-subtitle {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* ====== ITEM LIST ====== */
.ojolpedia-item-list {
  position: relative;
  z-index: 1;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ojolpedia-item {
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.18) 0%, rgba(15, 23, 42, 0.96) 45%);
  border-radius: 14px;
  padding: 10px 11px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(15, 118, 110, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ojolpedia-item:hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(34, 197, 94, 0.8);
  border-color: rgba(45, 212, 191, 0.9);
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.28) 0%, rgba(15, 23, 42, 0.98) 55%);
}

/* ====== ITEM VISUAL (ICON / IMG) ====== */
.ojolpedia-item-visual {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 30px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(15, 23, 42, 0.9);
}

.ojolpedia-item-visual img {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
  border-radius: 10px;
}

/* rarity base colors */
.ojolpedia-item-visual.danger { background: radial-gradient(circle, rgba(239, 68, 68, 0.25), rgba(127, 29, 29, 0.95)); border: 2px solid #ef4444; }
.ojolpedia-item-visual.warning { background: radial-gradient(circle, rgba(245, 158, 11, 0.3), rgba(133, 77, 14, 0.95)); border: 2px solid #f59e0b; }
.ojolpedia-item-visual.success { background: radial-gradient(circle, rgba(34, 197, 94, 0.3), rgba(6, 78, 59, 0.98)); border: 2px solid #22c55e; }
.ojolpedia-item-visual.info { background: radial-gradient(circle, rgba(59, 130, 246, 0.28), rgba(30, 64, 175, 0.98)); border: 2px solid #3b82f6; }
.ojolpedia-item-visual.purple { background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(76, 29, 149, 0.98)); border: 2px solid #a855f7; }
.ojolpedia-item-visual.cyan { background: radial-gradient(circle, rgba(34, 211, 238, 0.35), rgba(22, 78, 99, 0.98)); border: 2px solid #22d3ee; }
.ojolpedia-item-visual.gold { background: radial-gradient(circle, rgba(250, 204, 21, 0.45), rgba(161, 98, 7, 0.98)); border: 2px solid #facc15; }

/* efek rare / legendary lebih hidup */
.ojolpedia-item-visual.purple::before,
.ojolpedia-item-visual.gold::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(244, 114, 182, 0.1),
    rgba(129, 140, 248, 0.2),
    rgba(34, 211, 238, 0.18),
    rgba(250, 204, 21, 0.25),
    rgba(244, 114, 182, 0.1)
  );
  mix-blend-mode: screen;
  animation: ojolpedia-rarity-spin 9s linear infinite;
  pointer-events: none;
}

/* ====== ITEM INFO ====== */
.ojolpedia-item-info {
  flex: 1;
  min-width: 0;
}

.ojolpedia-item-name {
  font-size: 14px;
  font-weight: 800;
  color: #e5f9f5;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ojolpedia-item-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
}

/* tag colors */
.ojolpedia-item-tag.danger { background: #ef4444; color: #fff; }
.ojolpedia-item-tag.warning { background: #f59e0b; color: #000; }
.ojolpedia-item-tag.success { background: #22c55e; color: #022c22; }
.ojolpedia-item-tag.info { background: #3b82f6; color: #eff6ff; }
.ojolpedia-item-tag.purple { background: #8b5cf6; color: #f9fafb; }
.ojolpedia-item-tag.gold { background: #facc15; color: #422006; }
.ojolpedia-item-tag.legendary {
  background: linear-gradient(90deg, #facc15, #f97316, #facc15);
  color: #1c1917;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.9);
}
.ojolpedia-item-tag.rare {
  background: linear-gradient(90deg, #22c55e, #6366f1);
  color: #f9fafb;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}
.ojolpedia-item-tag.common { background: #6b7280; color: #f9fafb; }

.ojolpedia-item-desc {
  font-size: 12px;
  color: #cbd5f5;
  line-height: 1.5;
}

.ojolpedia-item-effect {
  margin-top: 5px;
  font-size: 11px;
  color: #facc15;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.7);
}

.ojolpedia-item-effect::before {
  content: "⚡";
}

/* ====== SPAWN INFO / BADGE ====== */
.ojolpedia-spawn-info {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ojolpedia-spawn-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.6);
  text-shadow: 0 1px 0 rgba(15, 23, 42, 0.8);
}

/* ====== TIPS BOX ====== */
.ojolpedia-tips-box {
  background: radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.25), rgba(15, 23, 42, 0.98));
  border: 2px dashed rgba(45, 212, 191, 0.85);
  border-radius: 18px;
  padding: 14px 14px 16px;
  animation: ojolpedia-section-pop 0.4s ease-out backwards;
  animation-delay: 0.45s;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(45, 212, 191, 0.7);
}

.ojolpedia-tips-title {
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ojolpedia-tips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ojolpedia-tip-item {
  font-size: 12px;
  color: #e5f9f5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ojolpedia-tip-item::before {
  content: "✓";
  color: #22c55e;
  font-weight: 900;
  flex-shrink: 0;
}

/* ====== LOADING STATE ====== */
.ojolpedia-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  gap: 14px;
}

.ojolpedia-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(148, 163, 184, 0.4);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: ojolpedia-spin 0.8s linear infinite;
}

.ojolpedia-loading-text {
  font-size: 13px;
  color: #cbd5f5;
}

/* ====== SKELETON ====== */
.ojolpedia-skeleton-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 11px;
  display: flex;
  gap: 12px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

.ojolpedia-skeleton-visual {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.25) 25%, rgba(56, 189, 248, 0.4) 50%, rgba(30, 64, 175, 0.25) 75%);
  background-size: 200% 100%;
  animation: ojolpedia-shimmer 1.4s infinite;
}

.ojolpedia-skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ojolpedia-skeleton-line {
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.25) 25%, rgba(226, 232, 240, 0.45) 50%, rgba(148, 163, 184, 0.25) 75%);
  background-size: 200% 100%;
  animation: ojolpedia-shimmer 1.4s infinite;
}

.ojolpedia-skeleton-line.short { width: 60%; }
.ojolpedia-skeleton-line.medium { width: 80%; }
.ojolpedia-skeleton-line.long { width: 100%; }

/* ====== SCROLLBAR ====== */
.ojolpedia-content::-webkit-scrollbar {
  width: 6px;
}

.ojolpedia-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 3px;
}

.ojolpedia-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
  border-radius: 3px;
}

/* ====== TOAST ====== */
.ojolpedia-toast {
  position: fixed;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.3), rgba(15, 23, 42, 0.98));
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: #e5e7eb;
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(34, 197, 94, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 20;
  border: 1px solid rgba(45, 212, 191, 0.8);
}

.ojolpedia-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== ANIMATIONS ====== */
@keyframes ojolpedia-bg-move {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%;
  }
  100% {
    background-position: 20% 20%, 80% 0%, 50% 110%;
  }
}

@keyframes ojolpedia-header-drop {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ojolpedia-title-bob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(-5deg);
  }
}

@keyframes ojolpedia-section-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ojolpedia-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ojolpedia-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes ojolpedia-rarity-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 480px) {
  .ojolpedia-scene {
    max-width: 100%;
  }

  .ojolpedia-header {
    padding: 10px 14px;
  }

  .ojolpedia-title {
    font-size: 20px;
  }

  .ojolpedia-content {
    padding: 12px;
  }
}

/* ====== ANIMASI KHUSUS DANGER ICON ====== */

/* container danger: glow merah + napas */
.ojolpedia-item-visual.danger {
  position: relative;
  animation: ojolpedia-danger-pulse 1.6s ease-in-out infinite;
}

.ojolpedia-item-visual.danger::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.35), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ojolpedia-danger-glow 1.6s ease-in-out infinite;
}

/* icon / image di dalam danger: wiggle halus */
.ojolpedia-item-visual.danger img,
.ojolpedia-item-visual.danger:not(:has(img)) {
  /* kalau pakai emoji/icon langsung juga kena animasi */
  animation: ojolpedia-danger-wiggle 1.1s ease-in-out infinite;
  transform-origin: 50% 80%;
}

/* ====== KEYFRAMES DANGER ====== */

@keyframes ojolpedia-danger-pulse {
  0%, 100% {
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
      0 0 10px rgba(248, 113, 113, 0.7);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 1),
      0 0 18px rgba(248, 113, 113, 1);
    transform: translateY(-1px) scale(1.03);
  }
}

@keyframes ojolpedia-danger-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes ojolpedia-danger-wiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-1px) rotate(-5deg);
  }
  40% {
    transform: translateY(0) rotate(3deg);
  }
  60% {
    transform: translateY(-1px) rotate(-3deg);
  }
  80% {
    transform: translateY(0) rotate(2deg);
  }
}

/* ====== ANIMASI KHUSUS RARITY LAIN ====== */

/* === WARNING (⚠️ – jebakan, obstacle berisiko) === */
.ojolpedia-item-visual.warning {
  position: relative;
  animation: ojolpedia-warning-pulse 1.7s ease-in-out infinite;
}

.ojolpedia-item-visual.warning::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ojolpedia-warning-glow 1.7s ease-in-out infinite;
}

.ojolpedia-item-visual.warning img,
.ojolpedia-item-visual.warning:not(:has(img)) {
  animation: ojolpedia-warning-wiggle 1.1s ease-in-out infinite;
  transform-origin: 50% 85%;
}

/* === SUCCESS (✅ – buff/power-up enak dipake) === */
.ojolpedia-item-visual.success {
  position: relative;
  animation: ojolpedia-success-float 2.1s ease-in-out infinite;
}

.ojolpedia-item-visual.success::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ojolpedia-success-glow 2.1s ease-in-out infinite;
}

.ojolpedia-item-visual.success img,
.ojolpedia-item-visual.success:not(:has(img)) {
  animation: ojolpedia-success-breathe 2s ease-in-out infinite;
  transform-origin: 50% 80%;
}

/* === INFO (ℹ️ – penjelasan / item netral) === */
.ojolpedia-item-visual.info {
  position: relative;
  animation: ojolpedia-info-pulse 2s ease-in-out infinite;
}

.ojolpedia-item-visual.info::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 75%);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ojolpedia-info-glow 2s ease-in-out infinite;
}

.ojolpedia-item-visual.info img,
.ojolpedia-item-visual.info:not(:has(img)) {
  animation: ojolpedia-info-tilt 1.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}

/* === CYAN (💨 – speed / dash / movement) === */
.ojolpedia-item-visual.cyan {
  position: relative;
  overflow: hidden;
  animation: ojolpedia-cyan-dash 1.6s ease-in-out infinite;
}

.ojolpedia-item-visual.cyan::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.0),
    rgba(125, 211, 252, 0.5),
    rgba(34, 211, 238, 0.0)
  );
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: ojolpedia-cyan-trail 1.6s ease-in-out infinite;
}

.ojolpedia-item-visual.cyan img,
.ojolpedia-item-visual.cyan:not(:has(img)) {
  animation: ojolpedia-cyan-wiggle 1.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}

/* === PURPLE (✨ – rare/epic, berasa magic) === */
.ojolpedia-item-visual.purple {
  position: relative;
  animation: ojolpedia-rare-pulse 2.3s ease-in-out infinite;
}

.ojolpedia-item-visual.purple::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38), transparent 75%);
  opacity: 0.65;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ojolpedia-rare-glow 2.3s ease-in-out infinite;
}

.ojolpedia-item-visual.purple img,
.ojolpedia-item-visual.purple:not(:has(img)) {
  animation: ojolpedia-rare-wiggle 1.9s ease-in-out infinite;
  transform-origin: 50% 75%;
}

/* ====== KEYFRAMES: WARNING ====== */
@keyframes ojolpedia-warning-pulse {
  0%, 100% {
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
      0 0 8px rgba(245, 158, 11, 0.7);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 1),
      0 0 16px rgba(245, 158, 11, 1);
    transform: translateY(-1px) scale(1.03);
  }
}

@keyframes ojolpedia-warning-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@keyframes ojolpedia-warning-wiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-1px) rotate(-4deg);
  }
  50% {
    transform: translateY(1px) rotate(3deg);
  }
  75% {
    transform: translateY(-0.5px) rotate(-2deg);
  }
}

/* ====== KEYFRAMES: SUCCESS ====== */
@keyframes ojolpedia-success-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
      0 0 8px rgba(34, 197, 94, 0.8);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
      0 7px 20px rgba(0, 0, 0, 1),
      0 0 16px rgba(34, 197, 94, 1);
  }
}

@keyframes ojolpedia-success-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

@keyframes ojolpedia-success-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.05);
  }
}

/* ====== KEYFRAMES: INFO ====== */
@keyframes ojolpedia-info-pulse {
  0%, 100% {
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
      0 0 10px rgba(59, 130, 246, 0.7);
  }
  50% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 1),
      0 0 18px rgba(59, 130, 246, 1);
  }
}

@keyframes ojolpedia-info-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.07);
  }
}

@keyframes ojolpedia-info-tilt {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-1px) rotate(-3deg);
  }
  70% {
    transform: translateY(0.5px) rotate(2deg);
  }
}

/* ====== KEYFRAMES: CYAN (SPEED) ====== */
@keyframes ojolpedia-cyan-dash {
  0%, 100% {
    transform: translateX(0) scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
      0 0 10px rgba(56, 189, 248, 0.7);
  }
  50% {
    transform: translateX(2px) scale(1.02);
    box-shadow:
      0 7px 20px rgba(0, 0, 0, 1),
      0 0 18px rgba(56, 189, 248, 1);
  }
}

@keyframes ojolpedia-cyan-trail {
  0% {
    opacity: 0;
    transform: translateX(-40%);
  }
  30% {
    opacity: 0.85;
    transform: translateX(40%);
  }
  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

@keyframes ojolpedia-cyan-wiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-1px) rotate(-3deg);
  }
  60% {
    transform: translateY(1px) rotate(2deg);
  }
}

/* ====== KEYFRAMES: PURPLE (RARE / MAGIC) ====== */
@keyframes ojolpedia-rare-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.9),
      0 0 12px rgba(168, 85, 247, 0.9);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 1),
      0 0 22px rgba(168, 85, 247, 1);
  }
}

@keyframes ojolpedia-rare-glow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes ojolpedia-rare-wiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-1px) rotate(-4deg);
  }
  60% {
    transform: translateY(1px) rotate(3deg);
  }
}
