@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Outfit:wght@400;600;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --yt-bg: #0f0f0f;
  --yt-card-bg: #1f1f1f;
  --yt-border: rgba(255, 255, 255, 0.1);
  --yt-text: #f1f1f1;
  --yt-text-secondary: #aaaaaa;
  --gold: #f59e0b;
  --panel-bg: rgba(20, 16, 26, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.15);

  --rarity-common: #9ca3af;
  --rarity-uncommon: #22c55e;
  --rarity-rare: #3b82f6;
  --rarity-epic: #a855f7;
  --rarity-legendary: #fbbf24;
  --rarity-mythic: #f43f5e;
  --ui-scale: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #0f0f0f !important;
  font-family: 'Roboto', 'Outfit', sans-serif;
  color: var(--yt-text);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ========================================== */
/* YOUTUBE TOP NAVBAR                         */
/* ========================================== */
#yt-topbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: var(--yt-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid #272727;
}

.yt-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yt-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.yt-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.yt-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.yt-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.yt-logo-svg {
  height: 20px;
  width: 90px;
}

.yt-badge-playables {
  background: #272727;
  color: #f1f1f1;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 600px;
}

.yt-search-box {
  display: flex;
  width: 100%;
  height: 40px;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 40px;
  overflow: hidden;
}

.yt-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.yt-search-btn {
  width: 64px;
  background: #222222;
  border: none;
  border-left: 1px solid #303030;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-search-btn:hover {
  background: #2c2c2c;
  color: #fff;
}

.yt-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222222;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-create-btn {
  background: #272727;
  border: none;
  color: #fff;
  padding: 0 14px;
  height: 36px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.yt-create-btn:hover {
  background: #3f3f3f;
}

.yt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ========================================== */
/* MAIN LAYOUT (2 COLUNAS)                    */
/* ========================================== */
#yt-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 24px 40px 24px;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  #yt-main-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================== */
/* COLUNA DO JOGO (ESQUERDA)                  */
/* ========================================== */
#yt-game-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

#game-player-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 160px);
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

#game-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #6a9fc0;
  touch-action: none;
  overscroll-behavior: none;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#canvas-container canvas {
  display: block;
  touch-action: none;
}

/* INFORMAÇÕES DO JOGO */
#yt-info-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-game-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f1f1;
}

.yt-action-buttons {
  display: flex;
  gap: 8px;
}

.yt-pill-btn {
  background: #272727;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.yt-pill-btn:hover {
  background: #3f3f3f;
}

.yt-svg-small {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.yt-channel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.yt-channel-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-verified {
  font-size: 11px;
  background: #717171;
  color: #000;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yt-channel-subs {
  font-size: 12px;
  color: var(--yt-text-secondary);
}

.yt-subscribe-btn {
  background: #f1f1f1;
  color: #0f0f0f;
  border: none;
  padding: 0 16px;
  height: 36px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.yt-subscribe-btn:hover {
  background: #d9d9d9;
}

/* ========================================== */
/* SIDEBAR (DIREITA)                          */
/* ========================================== */
#yt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.yt-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.yt-see-all-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #3ea6ff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.yt-see-all-btn:hover {
  background: rgba(62, 166, 255, 0.1);
}

.yt-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.yt-game-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.yt-game-card:hover {
  transform: translateY(-3px);
}

.yt-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.thumb-snake { background: linear-gradient(135deg, #10b981, #047857); }
.thumb-cat { background: linear-gradient(135deg, #ec4899, #be185d); }
.thumb-market { background: linear-gradient(135deg, #f59e0b, #b45309); }
.thumb-word { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.thumb-water { background: linear-gradient(135deg, #06b6d4, #0e7490); }

.card-icon {
  font-size: 44px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.yt-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card-meta {
  font-size: 11px;
  color: var(--yt-text-secondary);
  margin-bottom: 4px;
}

.yt-rating-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ========================================== */
/* UI OVERLAYS FLUTUANTES (HUD DENTRO DO JOGO)*/
/* TEMA ROMANO LUXUOSO / ESCALA DOBRADA       */
/* ========================================== */

/* ── HUD SUPERIOR (TOP BAR) ── */
#top-bar {
  position: absolute;
  top: clamp(8px, 1.5vw, 20px);
  left: clamp(8px, 1.5vw, 20px);
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  z-index: 15;
  pointer-events: none;
  transform-origin: top left;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.95) 0%, rgba(16, 12, 10, 0.98) 100%);
  border: 2px solid rgba(217, 119, 6, 0.45);
  padding: 12px 22px;
  border-radius: 30px;
  backdrop-filter: blur(14px);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(217, 119, 6, 0.2);
  color: #fde047;
}

button.stat-card {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.stat-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

#gold-card {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde047;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#arena-tier-card {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#ore-card {
  border-color: rgba(96, 165, 250, 0.6);
  color: #93c5fd;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.arena-menu-btn {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
  border-color: #f59e0b !important;
  border-width: 2px !important;
  color: #fef08a !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  cursor: pointer;
  pointer-events: auto !important;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  padding: 12px 22px !important;
}

.arena-menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.7) !important;
  filter: brightness(1.15);
}

.talents-menu-btn,
.leaderboard-top-btn,
.profile-top-btn,
.main-menu-btn {
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.97) 0%, rgba(16, 12, 10, 0.99) 100%) !important;
  border-color: #b45309 !important;
  border-width: 2px !important;
  border-style: solid !important;
  color: #fde047 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(217, 119, 6, 0.25) !important;
  cursor: pointer;
  pointer-events: auto !important;
  backdrop-filter: blur(16px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  padding: 12px 22px !important;
}

.talents-menu-btn:hover,
.leaderboard-top-btn:hover,
.profile-top-btn:hover,
.main-menu-btn:hover {
  transform: translateY(-3px);
  border-color: #f59e0b !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.5) !important;
  filter: brightness(1.18);
}

.talents-menu-btn:active,
.leaderboard-top-btn:active,
.profile-top-btn:active,
.main-menu-btn:active {
  transform: translateY(-1px);
}

.talents-menu-btn.has-unspent-points {
  animation: talentBtnPulse 1.4s ease-in-out infinite alternate !important;
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, rgba(50, 30, 22, 0.98) 0%, rgba(26, 15, 12, 0.99) 100%) !important;
  color: #ffffff !important;
}

.talents-menu-btn.has-unspent-points .stat-icon {
  animation: talentStarWiggle 1.4s ease-in-out infinite !important;
  display: inline-block;
  filter: drop-shadow(0 0 6px #f59e0b);
}

.talents-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  display: inline-block;
  vertical-align: middle;
}

@keyframes talentBtnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.35), 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    border-color: #b45309 !important;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.95), 0 0 35px rgba(217, 119, 6, 0.7), inset 0 0 12px rgba(245, 158, 11, 0.3) !important;
    border-color: #fde047 !important;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.35), 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    border-color: #b45309 !important;
  }
}

@keyframes talentStarWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-14deg) scale(1.3); }
  75% { transform: rotate(14deg) scale(1.3); }
}


/* ── PAINEL DO GLADIADOR (TOP RIGHT) ── */
#gladiator-panel {
  position: absolute;
  top: clamp(8px, 1.5vw, 20px);
  right: clamp(8px, 1.5vw, 20px);
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.97) 0%, rgba(16, 12, 10, 0.99) 100%);
  border: 2px solid #b45309;
  padding: 16px 20px;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  z-index: 15;
  width: 320px;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(217, 119, 6, 0.3);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform-origin: top right;
  scale: var(--ui-scale, 1);
  transition: transform 0.15s ease, scale 0.15s ease-out, border-color 0.15s ease, box-shadow 0.15s ease;
}

#gladiator-panel:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.45);
}

.glad-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.glad-inspect-badge {
  font-family: 'Cinzel', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.8px;
  opacity: 0.85;
  background: none;
  border: none;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.glad-inspect-badge:hover {
  opacity: 1;
  transform: scale(1.1);
  color: #ffffff;
}

.gladiator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 8px;
}

.glad-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.25) 0%, rgba(20, 10, 8, 0.9) 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.65), 0 0 6px rgba(239, 68, 68, 0.7);
  padding: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glad-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.85), 0 0 10px rgba(239, 68, 68, 0.9);
}

.glad-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.glad-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.glad-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.glad-level {
  font-size: 13.5px;
  font-weight: 800;
  color: #fde047;
}

/* ── Integrated Resource Capsules (Gold & Ores - Opção 1) ── */
.glad-resources-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.glad-res-capsule {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 20px;
  font-family: 'Cinzel', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.glad-res-capsule.gold {
  background: rgba(26, 18, 12, 0.88);
  border: 1.5px solid #d97706;
  color: #fef08a;
  box-shadow: inset 0 1px 3px rgba(251, 191, 36, 0.25), 0 2px 8px rgba(0, 0, 0, 0.65);
}

.glad-res-capsule.gold:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.glad-res-capsule.ores {
  background: rgba(10, 20, 32, 0.88);
  border: 1.5px solid #0284c7;
  color: #7dd3fc;
  box-shadow: inset 0 1px 3px rgba(56, 189, 248, 0.25), 0 2px 8px rgba(0, 0, 0, 0.65);
}

.glad-res-capsule.ores:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.45);
}

.glad-res-icon {
  font-size: 15px;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.glad-res-val {
  font-weight: 900;
  font-size: 13.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.gear-slots {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 4px 0;
}

.slot {
  width: 62px;
  height: 62px;
  background: rgba(12, 9, 10, 0.88);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.slot:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3), inset 0 0 12px rgba(0, 0, 0, 0.7);
}

.slot-icon {
  font-size: 26px;
  pointer-events: none;
}

.slot-icon svg {
  width: 32px;
  height: 32px;
}

.slot-tier {
  font-size: 11px;
  font-weight: 900;
  position: absolute;
  bottom: 2px;
  right: 4px;
  letter-spacing: 0.3px;
}

.slot-tier.common { color: var(--rarity-common); }
.slot-tier.uncommon { color: var(--rarity-uncommon); }
.slot-tier.rare { color: var(--rarity-rare); }
.slot-tier.epic { color: var(--rarity-epic); }
.slot-tier.legendary { color: var(--rarity-legendary); text-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
.slot-tier.mythic { color: var(--rarity-mythic); font-weight: 900; text-shadow: 0 0 10px rgba(244, 63, 94, 0.9); }
.slot-tier.abyssal { color: #06b6d4; font-weight: 900; text-shadow: 0 0 10px rgba(6, 182, 212, 0.9); }
.slot-tier.tartarus { color: #f43f5e; font-weight: 900; text-shadow: 0 0 10px rgba(244, 63, 94, 0.9); }
.slot-tier.demigod { color: #c084fc; font-weight: 900; text-shadow: 0 0 12px rgba(192, 132, 252, 0.9); }
.slot-tier.primal { color: #f97316; font-weight: 900; text-shadow: 0 0 14px rgba(249, 115, 22, 0.95); }
.slot-tier.celestial { color: #facc15; font-weight: 900; text-shadow: 0 0 16px rgba(250, 204, 21, 1); }
.slot-tier.excellent_primal, .slot-tier.excellent_celestial { color: #22d3ee; font-weight: 900; text-shadow: 0 0 16px rgba(34, 211, 238, 1), 0 0 24px rgba(6, 182, 212, 0.8); }
.slot-tier.empty { color: #6b7280; }

.slot.glow-common { border-color: var(--rarity-common); }
.slot.glow-uncommon { border-color: var(--rarity-uncommon); box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
.slot.glow-rare { border-color: var(--rarity-rare); box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
.slot.glow-epic { border-color: var(--rarity-epic); box-shadow: 0 0 16px rgba(168, 85, 247, 0.7); }
.slot.glow-legendary { border-color: var(--rarity-legendary); box-shadow: 0 0 18px rgba(251, 191, 36, 0.8); }
.slot.glow-mythic { border-color: var(--rarity-mythic); box-shadow: 0 0 22px rgba(244, 63, 94, 0.9); }
.slot.glow-abyssal { border-color: #06b6d4; box-shadow: 0 0 22px rgba(6, 182, 212, 0.9); }
.slot.glow-tartarus { border-color: #f43f5e; box-shadow: 0 0 22px rgba(244, 63, 94, 0.9); }
.slot.glow-demigod { border-color: #c084fc; box-shadow: 0 0 24px rgba(192, 132, 252, 0.9); }
.slot.glow-primal { border-color: #f97316; box-shadow: 0 0 26px rgba(249, 115, 22, 0.95); }
.slot.glow-celestial { border-color: #facc15; box-shadow: 0 0 30px rgba(250, 204, 21, 1); }
.slot.glow-excellent_primal, .slot.glow-excellent_celestial,
.bag-slot.glow-excellent_primal, .bag-slot.glow-excellent_celestial,
.chest-slot.glow-excellent_primal, .chest-slot.glow-excellent_celestial,
.grimoire-mini-item.glow-excellent_primal, .grimoire-mini-item.glow-excellent_celestial {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 26px rgba(6, 182, 212, 1), inset 0 0 12px rgba(34, 211, 238, 0.45) !important;
  animation: pulse-excellent-glow 2s infinite alternate ease-in-out;
}
@keyframes pulse-excellent-glow {
  0% { box-shadow: 0 0 18px rgba(6, 182, 212, 0.85), inset 0 0 8px rgba(34, 211, 238, 0.3); }
  100% { box-shadow: 0 0 32px rgba(34, 211, 238, 1), inset 0 0 16px rgba(6, 182, 212, 0.65); }
}

.hp-bar-wrap {
  width: 100%;
  height: 18px;
  background: rgba(0, 0, 0, 0.8);
  border: 1.5px solid rgba(220, 38, 38, 0.5);
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}

.hp-bar {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 60%, #22c55e 100%);
  border-radius: 8px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.hp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11.5px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}


/* Barra de Experiência (XP) Dedicada */
.xp-bar-wrap {
  width: 100%;
  height: 18px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(168, 85, 247, 0.55);
}

.xp-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed 0%, #9333ea 50%, #c084fc 100%);
  border-radius: 8px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

.xp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11.5px;
  font-weight: 900;
  color: #f3e8ff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}


#inventory-bag {
  position: absolute;
  bottom: clamp(8px, 1.5vh, 20px);
  left: clamp(8px, 1.5vw, 20px);
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.97) 0%, rgba(16, 12, 10, 0.99) 100%);
  border: 2px solid #b45309;
  padding: 16px 20px;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(217, 119, 6, 0.3);
  user-select: none;
  transform-origin: bottom left;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
}

#inventory-bag:has(.tutorial-spotlight-target),
#inventory-bag.tutorial-spotlight-target {
  z-index: 100005 !important;
}

.bag-slot.tutorial-spotlight-target {
  z-index: 100006 !important;
  position: relative !important;
  pointer-events: auto !important;
  box-shadow: none !important;
}

.bag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 8px;
}

.bag-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bag-icon-badge {
  font-size: 22px;
}

.bag-title {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
}

.bag-count {
  font-size: 14px;
  font-weight: 800;
  color: #fde047;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
}

.bag-grid {
  display: grid;
  grid-template-columns: repeat(4, 68px);
  grid-template-rows: repeat(2, 68px);
  gap: 8px;
}

.bag-slot {
  width: 68px;
  height: 68px;
  background: rgba(12, 9, 10, 0.88);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.bag-slot:hover {
  border-color: #fde047;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.bag-slot.has-item {
  border: 2px solid rgba(245, 158, 11, 0.45);
  background: rgba(24, 18, 20, 0.95);
}

.bag-slot-icon {
  font-size: 30px;
  pointer-events: none;
}

.bag-slot-icon svg {
  width: 36px;
  height: 36px;
}

.bag-slot-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 11.5px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

.bag-slot-tier,
.chest-slot-tier {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 11px;
  font-weight: 900;
  color: #fde047;
  background: rgba(0, 0, 0, 0.85);
  padding: 1px 5px;
  border-radius: 4px;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  border: 1px solid rgba(245, 158, 11, 0.5);
  letter-spacing: 0.3px;
}

.bag-slot.glow-common { border-color: var(--rarity-common); }
.bag-slot.glow-uncommon { border-color: var(--rarity-uncommon); box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
.bag-slot.glow-rare { border-color: var(--rarity-rare); box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
.bag-slot.glow-epic { border-color: var(--rarity-epic); box-shadow: 0 0 16px rgba(168, 85, 247, 0.7); }
.bag-slot.glow-legendary { border-color: var(--rarity-legendary); box-shadow: 0 0 18px rgba(251, 191, 36, 0.8); }
.bag-slot.glow-mythic { border-color: var(--rarity-mythic); box-shadow: 0 0 22px rgba(244, 63, 94, 0.9); }
.bag-slot.glow-abyssal { border-color: #06b6d4; box-shadow: 0 0 22px rgba(6, 182, 212, 0.9); }
.bag-slot.glow-tartarus { border-color: #f43f5e; box-shadow: 0 0 22px rgba(244, 63, 94, 0.9); }
.bag-slot.glow-demigod { border-color: #c084fc; box-shadow: 0 0 24px rgba(192, 132, 252, 0.9); }
.bag-slot.glow-primal { border-color: #f97316; box-shadow: 0 0 26px rgba(249, 115, 22, 0.95); }
.bag-slot.glow-celestial { border-color: #facc15; box-shadow: 0 0 30px rgba(250, 204, 21, 1); }

/* Banner de Fileira Trancada da Mochila (Ocupa os 4 slots da 2ª fileira) */
.bag-locked-row-banner {
  grid-column: 1 / -1;
  height: 68px;
  background: linear-gradient(90deg, rgba(30, 20, 15, 0.95) 0%, rgba(45, 26, 12, 0.95) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
  gap: 8px;
}

.bag-locked-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bag-locked-left .locked-icon {
  font-size: 20px;
}

.bag-locked-left .locked-text {
  font-size: 11px;
  font-weight: bold;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.btn-unlock-bag-row {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a0f03;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.btn-unlock-bag-row:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.bag-actions-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.trash-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.4) 0%, rgba(69, 10, 10, 0.55) 100%);
  border: 1.5px dashed #ef4444;
  padding: 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: inset 0 0 10px rgba(220, 38, 38, 0.25);
  white-space: nowrap;
}

.trash-zone:hover, .trash-zone.drag-over {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.7) 0%, rgba(127, 29, 29, 0.9) 100%);
  border-color: #f87171;
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

.btn-dismantle-all {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border: 1.5px solid #ef4444;
  color: #fee2e2;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  white-space: nowrap;
}

.btn-dismantle-all:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  border-color: #fca5a5;
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.7);
}

.btn-dismantle-all:active {
  transform: translateY(1px) scale(0.97);
}

/* ── PAINEL DE BUFFS TEMPORÁRIOS ATIVOS (ACOPLADO AO LADO DIREITO DA MOCHILA) ── */
#active-buffs-hud {
  position: absolute;
  left: calc(100% + 14px);
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 100;
  pointer-events: auto;
  min-width: 44px;
}

.hud-buff-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(32, 26, 22, 0.95), rgba(14, 11, 9, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), inset 0 0 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  opacity: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hud-buff-item:hover {
  transform: translateY(-2px) scale(1.08);
  z-index: 40;
}

/* Ícone central do buff */
.hud-buff-icon-box {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Máscara de Cooldown / Duração (Varredura de cima para baixo escura com linha de varredura iluminada) */
.hud-buff-shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.9);
  border-radius: 8px 8px 0 0;
  z-index: 3;
  pointer-events: none;
  transition: height 0.15s linear;
}

/* Tooltip customizado ao passar o mouse (surge à direita do ícone) */
.hud-buff-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(14, 11, 9, 0.96);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 130px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hud-buff-item:hover .hud-buff-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(2px);
}

.hud-buff-tooltip-title {
  font-size: 11px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.hud-buff-tooltip-desc {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

/* ── BAÚ DO LUDUS (STORAGE VAULT 24 SLOTS) ── */
#storage-chest-panel {
  position: absolute;
  bottom: clamp(8px, 1.5vh, 20px);
  left: calc(clamp(8px, 1.5vw, 20px) + 338px * var(--ui-scale, 1));
  width: fit-content;
  max-width: fit-content;
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.98) 0%, rgba(16, 12, 10, 0.99) 100%);
  border: 2.5px solid #b45309;
  padding: 16px 18px;
  border-radius: 22px;
  backdrop-filter: blur(18px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(217, 119, 6, 0.4);
  user-select: none;
  animation: chestSlideIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom left;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
}

@media (max-width: 680px) {
  #storage-chest-panel {
    left: clamp(8px, 1.5vw, 20px);
    bottom: calc(clamp(8px, 1.5vh, 20px) + 160px * var(--ui-scale, 1));
  }
}

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

.chest-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.35);
  padding-bottom: 10px;
}

.chest-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chest-icon-badge {
  font-size: 30px;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chest-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chest-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.chest-subtitle {
  font-size: 13px;
  font-style: italic;
  color: #fca5a5;
}

.chest-capacity-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #fde047;
}

/* 6 Abas do Baú do Ludus */
.vault-tabs-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 4px 0 2px 0;
}

.vault-tab-btn {
  background: rgba(30, 24, 20, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  color: #cbd5e1;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}
.vault-tab-btn:hover {
  border-color: #f59e0b;
  color: #ffffff;
  background: rgba(45, 36, 30, 0.95);
}
.vault-tab-btn.active-tab {
  background: linear-gradient(135deg, #b45309, #78350f);
  border-color: #fbbf24;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}
.vault-tab-btn.locked-tab {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(30, 15, 15, 0.8);
}
.vault-tab-btn.locked-tab:hover {
  border-color: #ef4444;
  background: rgba(50, 20, 20, 0.9);
}

.chest-grid {
  display: grid;
  grid-template-columns: repeat(6, 56px);
  grid-template-rows: repeat(4, 56px);
  gap: 7px;
  justify-content: center;
}

.chest-slot {
  width: 56px;
  height: 56px;
  background: rgba(12, 9, 10, 0.88);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.chest-slot:hover {
  border-color: #fde047;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.chest-slot.has-item {
  border: 2px solid rgba(245, 158, 11, 0.45);
  background: rgba(24, 18, 20, 0.95);
}

.chest-slot-icon {
  font-size: 26px;
  pointer-events: none;
}

.chest-slot-icon svg {
  width: 32px;
  height: 32px;
}

.chest-slot-badge {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 10.5px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

.chest-slot.glow-common { border-color: var(--rarity-common); }
.chest-slot.glow-uncommon { border-color: var(--rarity-uncommon); box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
.chest-slot.glow-rare { border-color: var(--rarity-rare); box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
.chest-slot.glow-epic { border-color: var(--rarity-epic); box-shadow: 0 0 16px rgba(168, 85, 247, 0.7); }
.chest-slot.glow-legendary { border-color: var(--rarity-legendary); box-shadow: 0 0 18px rgba(251, 191, 36, 0.8); }
.chest-slot.glow-mythic { border-color: var(--rarity-mythic); box-shadow: 0 0 22px rgba(244, 63, 94, 0.9); }

/* Banner de Fileira Trancada do Baú (Ocupa as 6 colunas) */
.chest-locked-row-banner {
  grid-column: 1 / -1;
  height: 56px;
  background: rgba(18, 12, 14, 0.92);
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 10px;
}

.chest-locked-row-banner.available-unlock {
  border: 1.5px solid #f59e0b;
  background: linear-gradient(90deg, rgba(30, 20, 15, 0.95) 0%, rgba(45, 26, 12, 0.95) 100%);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.locked-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.locked-row-left .locked-icon {
  font-size: 18px;
}

.locked-row-left .locked-text {
  font-size: 11px;
  font-weight: bold;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.btn-unlock-chest-row {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a0f03;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.btn-unlock-chest-row:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.chest-locked-row-banner.disabled-unlock {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 9, 10, 0.85);
  justify-content: center;
  color: #64748b;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.chest-locked-row-banner.disabled-unlock .locked-icon {
  font-size: 16px;
  opacity: 0.6;
}


/* ── TOOLTIP FLUTUANTE DE ITENS ── */
#item-tooltip {
  position: absolute;
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.98) 0%, rgba(16, 12, 10, 0.99) 100%);
  border: 2px solid #d97706;
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  z-index: 100000 !important;
  min-width: 220px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(217, 119, 6, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  transform-origin: bottom left;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
}

.tt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 6px;
  gap: 10px;
}

.tt-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 900;
  color: #fef08a;
}

.tt-rarity {
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

.tt-rarity.common { background: #334155; color: #cbd5e1; border: 1px solid #475569; }
.tt-rarity.uncommon { background: #14532d; color: #86efac; border: 1px solid #22c55e; }
.tt-rarity.rare { background: #1e3a8a; color: #93c5fd; border: 1px solid #3b82f6; }
.tt-rarity.epic { background: #581c87; color: #d8b4fe; border: 1px solid #a855f7; }
.tt-rarity.legendary { background: #78350f; color: #fef08a; border: 1px solid #f59e0b; }
.tt-rarity.mythic { background: #4c0519; color: #ffe4e6; border: 1px solid #e11d48; }
.tt-rarity.abyssal { background: #083344; color: #67e8f9; border: 1px solid #06b6d4; }
.tt-rarity.tartarus { background: #4c0519; color: #fda4af; border: 1px solid #f43f5e; }
.tt-rarity.demigod { background: #3b0764; color: #e9d5ff; border: 1px solid #c084fc; }
.tt-rarity.primal { background: #431407; color: #fed7aa; border: 1px solid #f97316; }
.tt-rarity.celestial { background: #422006; color: #fef08a; border: 1px solid #facc15; }
.tt-rarity.excellent_primal { background: #083344; color: #a5f3fc; border: 1px solid #06b6d4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.7); }
.tt-rarity.excellent_celestial { background: #042f2e; color: #67e8f9; border: 1px solid #22d3ee; box-shadow: 0 0 14px rgba(34, 211, 238, 0.9); }

.titan-excellent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.90) 0%, rgba(4, 47, 46, 0.92) 100%);
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45), inset 0 0 10px rgba(34, 211, 238, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 10px 0 14px 0;
  font-size: 11.5px;
  color: #e0f2fe;
  line-height: 1.45;
}
.titan-excellent-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.titan-excellent-banner .excellent-banner-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px #22d3ee);
  animation: pulse-excellent-icon 2s infinite ease-in-out;
}
@keyframes pulse-excellent-icon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px #06b6d4); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 12px #22d3ee); }
}
.titan-excellent-banner .cyan-highlight {
  color: #22d3ee;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.9);
}

.btn-titan-ad-boost {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-titan-ad-boost:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}
.btn-titan-ad-boost.active {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: #4ade80;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.6);
  color: #f0fdf4;
}

.tt-stats {
  font-size: 15px;
  font-weight: 800;
  color: #fde047;
}

.tt-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tt-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.5px;
  transition: transform 0.1s, filter 0.1s;
}

.tt-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.tt-equip {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border: 1.5px solid #fde047;
  color: #1a0f03;
}

.tt-trash {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  border: 1.5px solid #ef4444;
  color: #fee2e2;
}

/* ── STATUS SECUNDÁRIOS DOS EQUIPAMENTOS ── */
.item-sec-stats-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
}

.item-sec-title {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sec-stat-line {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.35;
}

.sec-stat-line.sec-tier-common {
  color: #cbd5e1;
}

.sec-stat-line.sec-tier-rare {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.sec-stat-line.sec-tier-epic {
  color: #c084fc;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.45);
}

.sec-stat-line.sec-tier-legendary {
  color: #facc15;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}



/* ── TOAST DE NOVO ITEM (LOOT DROP) ── */
#loot-toast {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.98) 0%, rgba(16, 12, 10, 0.99) 100%);
  border: 2.5px solid #f59e0b;
  border-radius: 20px;
  padding: 18px 44px;
  text-align: center;
  backdrop-filter: blur(16px);
  z-index: 70;
  pointer-events: none;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.5);
}

.loot-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.loot-name {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 4px 0;
  text-shadow: 0 2px 4px #000;
}

.loot-stats {
  font-size: 16px;
  font-weight: 800;
  color: #4ade80;
}

.loot-sec-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  align-items: center;
}

.loot-sec-line {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.loot-sec-line.sec-tier-legendary {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(245, 158, 11, 0.20);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.loot-sec-line.sec-tier-rare {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.18);
}

.loot-sec-line.sec-tier-common {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
}

@keyframes popLoot {
  0% { opacity: 0; transform: translate(-50%, 25px) scale(0.85); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
  25% { transform: translate(-50%, 0) scale(1); }
  85% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -25px) scale(0.9); }
}


#ares-modal,
#arena-upgrades-modal,
#character-sheet-modal,
#game-menu-modal,
#reset-confirm-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

#talents-modal,
#profile-modal,
#craft-modal,
#leaderboard-modal,
#titan-forge-modal,
#imperial-general-modal,
#hall-of-champions-modal,
#roadmap-modal,
#endgame-gate-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

#titan-forge-reveal-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100005;
}

/* ============================================================ */
/* REGRA MESTRA UNIVERSAL: ESCALA ADAPTATIVA DE TODOS OS MODAIS */
/* ============================================================ */
[id$="-modal"] > div:not(.modal-close-btn):not([class*="backdrop"]),
[id$="-overlay"] > div:not(.modal-close-btn):not([class*="backdrop"]),
.arena-modal-content,
.craft-modal-box,
.grimoire-modal-box,
.talents-modal-box,
.profile-modal-box,
.blackmarket-modal-box,
.diamond-modal-box,
.titan-reveal-phase-box,
.titan-reveal-card,
.game-menu-content,
.roadmap-modal-box,
.reset-confirm-content,
.tut-complete-box,
.endgame-unlocked-box,
.victory-modal-box,
.tutorial-box,
.ares-modal-box,
.general-modal-box,
.hall-champions-content,
.char-sheet-content,
.dungeon-raid-content,
.titan-forge-content,
.char-sheet-modal-box,
.profile-modal-card,
.leaderboard-modal-box,
.main-menu-card,
.forge-modal-box,
.gate-modal-card,
.endgame-gate-card,
.interactive-tutorial-card,
.modal-box,
.craft-modal-content,
.hall-modal-card {
  transform-origin: center center !important;
  scale: var(--ui-scale, 1) !important;
  max-height: calc(92vh / var(--ui-scale, 1)) !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  transition: scale 0.15s ease-out;
}

/* Custom Sleek Scrollbars para Modais e Painéis */
[id$="-modal"] > div::-webkit-scrollbar,
.arena-modal-content::-webkit-scrollbar,
.craft-modal-box::-webkit-scrollbar,
.grimoire-modal-box::-webkit-scrollbar,
.talents-modal-box::-webkit-scrollbar,
.profile-modal-box::-webkit-scrollbar,
.blackmarket-modal-box::-webkit-scrollbar,
.diamond-modal-box::-webkit-scrollbar,
.roadmap-modal-box::-webkit-scrollbar,
.victory-modal-box::-webkit-scrollbar,
.game-menu-content::-webkit-scrollbar {
  width: 6px;
}

[id$="-modal"] > div::-webkit-scrollbar-track,
.arena-modal-content::-webkit-scrollbar-track,
.craft-modal-box::-webkit-scrollbar-track,
.grimoire-modal-box::-webkit-scrollbar-track,
.talents-modal-box::-webkit-scrollbar-track,
.profile-modal-box::-webkit-scrollbar-track,
.blackmarket-modal-box::-webkit-scrollbar-track,
.diamond-modal-box::-webkit-scrollbar-track,
.roadmap-modal-box::-webkit-scrollbar-track,
.victory-modal-box::-webkit-scrollbar-track,
.game-menu-content::-webkit-scrollbar-track {
  background: rgba(14, 11, 9, 0.6);
  border-radius: 4px;
}

[id$="-modal"] > div::-webkit-scrollbar-thumb,
.arena-modal-content::-webkit-scrollbar-thumb,
.craft-modal-box::-webkit-scrollbar-thumb,
.grimoire-modal-box::-webkit-scrollbar-thumb,
.talents-modal-box::-webkit-scrollbar-thumb,
.profile-modal-box::-webkit-scrollbar-thumb,
.blackmarket-modal-box::-webkit-scrollbar-thumb,
.diamond-modal-box::-webkit-scrollbar-thumb,
.roadmap-modal-box::-webkit-scrollbar-thumb,
.victory-modal-box::-webkit-scrollbar-thumb,
.game-menu-content::-webkit-scrollbar-thumb {
  background: #b45309;
  border-radius: 4px;
}

#craft-modal.hidden,
#ares-modal.hidden,
#endgame-gate-modal.hidden,
#imperial-general-modal.hidden,
#arena-upgrades-modal.hidden,
#talents-modal.hidden,
#profile-modal.hidden,
#leaderboard-modal.hidden,
#hall-of-champions-modal.hidden,
#character-sheet-modal.hidden,
#titan-forge-modal.hidden,
#titan-forge-reveal-modal.hidden,
#game-menu-modal.hidden,
#roadmap-modal.hidden,
#reset-confirm-modal.hidden {
  display: none !important;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.modal-close-btn:hover {
  background: #ef4444;
  border-color: #f87171;
  color: #fff;
  transform: scale(1.1);
}


/* ── 1. MODAL DE FORJA / CRAFT ── */
.craft-modal-box {
  max-width: 480px;
  width: 92%;
  background: linear-gradient(180deg, #1e1b18 0%, #120f0d 100%);
  border: 2.5px solid #b45309;
  border-radius: 20px;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.4);
  padding: 24px 28px;
  color: #fff;
  position: relative;
  animation: craftModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes craftModalPop {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.craft-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1.5px solid rgba(180, 83, 9, 0.45);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.craft-stall-icon {
  font-size: 40px;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 14px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.craft-stall-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.craft-stall-desc {
  font-size: 13.5px;
  font-style: italic;
  color: #fca5a5;
  display: block;
  margin-top: 3px;
}

.craft-ores-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 8, 10, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 800;
}

.craft-player-ores {
  color: #93c5fd;
}

.craft-rarities-box {
  background: rgba(12, 9, 10, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.craft-rarities-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.craft-rarity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.craft-rarity-row:last-child {
  border-bottom: none;
}

.rarity-badge {
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 88px;
  text-align: center;
  letter-spacing: 0.5px;
}

.rarity-badge.common { background: #334155; color: #cbd5e1; border: 1px solid #475569; }
.rarity-badge.uncommon { background: #14532d; color: #86efac; border: 1px solid #22c55e; }
.rarity-badge.rare { background: #1e3a8a; color: #93c5fd; border: 1px solid #3b82f6; }
.rarity-badge.epic { background: #581c87; color: #d8b4fe; border: 1px solid #a855f7; }
.rarity-badge.legendary { background: #78350f; color: #fef08a; border: 1px solid #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.rarity-badge.mythic { background: #4c0519; color: #ffe4e6; border: 1px solid #e11d48; box-shadow: 0 0 12px rgba(225, 29, 72, 0.6); }

.rarity-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  flex: 1;
  margin-left: 12px;
}

.rarity-pct {
  font-size: 13.5px;
  font-weight: 800;
}

.rarity-common .rarity-pct { color: #cbd5e1; }
.rarity-uncommon .rarity-pct { color: #4ade80; }
.rarity-rare .rarity-pct { color: #60a5fa; }
.rarity-epic .rarity-pct { color: #c084fc; }
.rarity-legendary .rarity-pct { color: #fde047; text-shadow: 0 0 6px rgba(253, 224, 71, 0.6); }
.rarity-mythic .rarity-pct { color: #f43f5e; text-shadow: 0 0 8px rgba(244, 63, 94, 0.8); }

.craft-boost-container {
  margin: 14px 0 10px 0;
}

.btn-forge-rarity-boost {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.85) 0%, rgba(30, 27, 75, 0.95) 100%);
  border: 1.5px solid #a855f7;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  transition: all 0.15s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-forge-rarity-boost:hover {
  transform: translateY(-2px);
  border-color: #fde047;
  box-shadow: 0 6px 22px rgba(253, 224, 71, 0.4);
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.95) 0%, rgba(49, 46, 129, 1) 100%);
}

.btn-forge-rarity-boost .boost-icon-glow {
  font-size: 24px;
  filter: drop-shadow(0 0 6px #fde047);
  animation: boostGlowPulse 1.8s infinite ease-in-out;
}

@keyframes boostGlowPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #fde047); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px #f43f5e); }
}

.boost-info-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.boost-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fde047;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.boost-sub {
  font-size: 11px;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.boost-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* Estado Ativo do Boost */
.btn-forge-rarity-boost.boost-active {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.9) 0%, rgba(120, 53, 15, 0.95) 100%);
  border-color: #f43f5e;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
  animation: boostActiveBorder 1.5s infinite alternate;
}

@keyframes boostActiveBorder {
  0% { border-color: #f43f5e; box-shadow: 0 0 12px rgba(244, 63, 94, 0.5); }
  100% { border-color: #fbbf24; box-shadow: 0 0 22px rgba(251, 191, 36, 0.8); }
}

.btn-forge-rarity-boost.boost-active .boost-title {
  color: #ffffff;
}

.btn-forge-rarity-boost.boost-active .boost-badge {
  background: #22c55e;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.6);
}

.craft-actions {
  display: flex;
  justify-content: center;
}

.btn-do-craft {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fde047;
  border-radius: 12px;
  color: #1a0f03;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  letter-spacing: 0.5px;
}

.btn-do-craft:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.7);
  filter: brightness(1.1);
}

.btn-do-craft:disabled {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}


/* ── 2. MODAL DO ARES (DEUS DA GUERRA) ── */
.ares-modal-box {
  border-color: #ef4444 !important;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.95), 0 0 40px rgba(220, 38, 38, 0.45), inset 0 0 20px rgba(185, 28, 28, 0.2) !important;
}

.ares-avatar-icon {
  background: rgba(220, 38, 38, 0.25) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6) !important;
}

.ares-title-text {
  color: #f87171 !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8) !important;
}

.ares-subtitle {
  color: #fca5a5 !important;
  font-weight: 700;
  font-style: italic;
  font-size: 15px !important;
}

.ares-message-box {
  background: rgba(15, 6, 8, 0.85);
  border: 1.5px solid rgba(220, 38, 38, 0.4);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
}

.ares-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  background: #450a0a;
  border: 1.5px solid #dc2626;
  border-radius: 10px;
  color: #fecaca;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.btn-ares-dismiss {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%) !important;
  border-color: #ef4444 !important;
  color: #fee2e2 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.5px !important;
  padding: 14px 18px !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.45) !important;
}

.btn-ares-dismiss:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%) !important;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.75) !important;
}


/* ── 3. MODAL DE UPGRADES DO COLISEU ── */
.arena-modal-content {
  background: linear-gradient(180deg, #1e1b18 0%, #120f0d 100%);
  border: 2.5px solid #b45309;
  border-radius: 20px;
  width: 92%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 28px;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.4);
  color: #fff;
  animation: craftModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arena-modal-content::-webkit-scrollbar { width: 8px; }
.arena-modal-content::-webkit-scrollbar-thumb { background: #b45309; border-radius: 4px; }

.arena-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.35);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  font-size: 30px;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spartan-badge-glow {
  background: radial-gradient(circle, rgba(185, 28, 28, 0.25) 0%, rgba(20, 10, 8, 0.9) 100%) !important;
  border: 1.5px solid #f59e0b !important;
  border-radius: 50% !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.65), 0 0 6px rgba(239, 68, 68, 0.7) !important;
  padding: 3px !important;
  width: 48px !important;
  height: 48px !important;
}

.modal-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.modal-main-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: #fde047;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-subtitle {
  font-size: 13px;
  font-style: italic;
  color: #fca5a5;
}

.arena-modal-gold-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 8, 10, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  color: #fde047;
  margin-bottom: 16px;
}

.gold-bar-label {
  font-size: 14px;
  color: #cbd5e1;
}

.leaderboard-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px 0;
}

.leaderboard-tabs-row .theme-pill-btn {
  cursor: pointer;
  font-family: inherit;
}

.leaderboard-tabs-row .theme-pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.arena-modal-section-title {
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  margin: 14px 0 10px 0;
}

.arena-upgrades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 10, 10, 0.85);
  border: 2px solid rgba(245, 158, 11, 0.3);
  padding: 12px 16px;
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

/* Slot Mítico (Pós-Nível 30 na Leaderboard) */
.upgrade-row.mythic-upgrade-row {
  background: linear-gradient(135deg, rgba(40, 10, 15, 0.95) 0%, rgba(20, 5, 8, 0.98) 100%);
  border: 2.5px solid #dc2626;
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.45), inset 0 0 14px rgba(239, 68, 68, 0.2);
}
.upgrade-row.mythic-upgrade-row:hover {
  background: linear-gradient(135deg, rgba(60, 15, 20, 0.98) 0%, rgba(30, 8, 12, 1) 100%);
  border-color: #ef4444;
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.65);
}

.mythic-level-select {
  background: #1e1b2e;
  border: 1.5px solid #ef4444;
  color: #fecaca;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  margin-top: 4px;
}
.mythic-level-select:focus {
  border-color: #f87171;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.6);
}

.btn-start-mythic {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  border: 2px solid #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6) !important;
  animation: pulse-mythic-btn 2s infinite ease-in-out;
}
@keyframes pulse-mythic-btn {
  0%, 100% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(248, 113, 113, 0.85); transform: scale(1.03); }
}

.upgrade-row:hover {
  background: rgba(26, 18, 16, 0.95);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.upg-icon-badge {
  font-size: 26px;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upg-info { flex: 1; }

.upg-title {
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 3px;
}

.upg-desc {
  font-size: 12.5px;
  color: #cbd5e1;
}

.upg-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.upg-buy-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: 1.5px solid #4ade80;
  border-radius: 10px;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  min-width: 90px;
  transition: transform 0.1s, filter 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
  font-family: inherit;
}

.upg-buy-btn:hover:not(:disabled) {
  transform: scale(1.06);
  filter: brightness(1.15);
}

.upg-ad-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1.5px solid #fde047 !important;
  color: #1a0f03 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important;
  min-width: 90px;
}

.upg-ad-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.7) !important;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.btn-ad-icon {
  font-size: 15px;
  color: #1a0f03;
  font-weight: 900;
  line-height: 1;
}

.btn-ad-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #1a0f03;
}

.upg-buy-btn:disabled, .upg-buy-btn.maxed {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-cost {
  font-size: 14px;
  font-weight: 900;
  color: #fde047;
}

.btn-buy-text {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ── BOSS SUMMON PANEL (ABOVE BACKPACK ON ARENA ENTRY) ── */
#boss-summon-panel {
  position: absolute !important;
  bottom: calc(clamp(8px, 1.5vh, 20px) + 295px * var(--ui-scale, 1));
  left: clamp(8px, 1.5vw, 20px);
  width: 334px;
  box-sizing: border-box;
  z-index: 22;
  user-select: none;
  transform-origin: bottom left;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
  animation: bossPanelPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#boss-summon-panel:has(.tutorial-spotlight-target) {
  z-index: 100005 !important;
}

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

.btn-arena-boss-summon {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  border: 2.5px solid #ef4444;
  border-radius: 16px;
  color: #fef08a;
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.65), 0 6px 18px rgba(0, 0, 0, 0.75);
  letter-spacing: 0.5px;
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
  animation: bossPulse 1.8s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-arena-boss-summon:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.95);
}

.btn-arena-boss-summon:disabled {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* ── BARRA DE HP DO CHEFE (HUD TOPO CENTRAL) ── */
#boss-hp-bar-container {
  position: absolute;
  top: calc(clamp(8px, 1.5vw, 20px) + 96px * var(--ui-scale, 1));
  left: 50%;
  translate: -50% 0;
  transform: none;
  transform-origin: center top;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
  width: 440px;
  max-width: calc(88vw / var(--ui-scale, 1));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(28, 18, 18, 0.96) 0%, rgba(16, 10, 10, 0.99) 100%);
  border: 2.5px solid #ef4444;
  border-radius: 16px;
  padding: 10px 18px;
  backdrop-filter: blur(14px);
  z-index: 40;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5), 0 8px 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  animation: bossHpBarPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bossHpBarPop {
  from { opacity: 0; translate: -50% -6px; }
  to { opacity: 1; translate: -50% 0; }
}

.boss-hp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boss-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px #000;
}

.boss-hp-num {
  font-size: 13px;
  font-weight: 800;
  color: #fca5a5;
}

.boss-hp-track {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 7px;
  overflow: hidden;
}

.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 60%, #f97316 100%);
  border-radius: 7px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

@keyframes bossPulse {
  0% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.45); }
  100% { box-shadow: 0 0 32px rgba(239, 68, 68, 0.85); }
}

/* ── BARRA DE INTEGRIDADE DO BAÚ SAGRADO (MODO 3: VAULT DEFENSE) ── */
#vault-integrity-container {
  position: absolute;
  top: calc(clamp(8px, 1.5vw, 20px) + 96px * var(--ui-scale, 1));
  left: 50%;
  translate: -50% 0;
  transform: none;
  transform-origin: center top;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
  width: 440px;
  max-width: calc(88vw / var(--ui-scale, 1));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(28, 22, 14, 0.96) 0%, rgba(18, 12, 6, 0.99) 100%);
  border: 2.5px solid #f59e0b;
  border-radius: 16px;
  padding: 10px 18px;
  backdrop-filter: blur(14px);
  z-index: 40;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5), 0 8px 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  animation: bossHpBarPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.vault-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px #000;
}

.vault-hp-num {
  font-size: 13px;
  font-weight: 800;
  color: #fef08a;
}

.vault-hp-track {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 7px;
  overflow: hidden;
}

.vault-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #fde047 100%);
  border-radius: 7px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.8);
}

/* ── CRONÔMETRO DO SURVIVAL INFERNO (MODO 4: TRIAL ARENA 4) ── */
#survival-inferno-container {
  position: absolute;
  top: calc(clamp(8px, 1.5vw, 20px) + 96px * var(--ui-scale, 1));
  left: 50%;
  translate: -50% 0;
  transform: none;
  transform-origin: center top;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
  width: 440px;
  max-width: calc(88vw / var(--ui-scale, 1));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(38, 12, 10, 0.96) 0%, rgba(20, 6, 6, 0.99) 100%);
  border: 2.5px solid #ef4444;
  border-radius: 16px;
  padding: 10px 18px;
  backdrop-filter: blur(14px);
  z-index: 40;
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.55), 0 8px 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  animation: bossHpBarPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.inferno-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 900;
  color: #f87171;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px #000;
}

.inferno-time-num {
  font-family: 'Cinzel', monospace, serif;
  font-size: 14px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.7);
}

.inferno-timer-track {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 7px;
  overflow: hidden;
}

.inferno-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #ea580c 50%, #facc15 100%);
  border-radius: 7px;
  transition: width 0.1s linear;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
}


/* ── 4. MODAL DE TALENTOS & MAESTRIAS ── */
.talents-modal-box {
  position: relative;
  max-width: 980px !important;
  width: 92% !important;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1e1b18 0%, #120f0d 100%) !important;
  border: 2.5px solid #b45309 !important;
  border-radius: 22px;
  padding: 26px 32px;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.4) !important;
  animation: craftModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.talents-modal-box::-webkit-scrollbar { width: 8px; }
.talents-modal-box::-webkit-scrollbar-thumb { background: #b45309; border-radius: 4px; }

/* ── Badge de tecla (Q/E/R/F) reutilizado no cabeçalho de cada nível de skill ── */
.skill-build-key {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 15px;
  color: #120f0d;
  background: #fbbf24;
  border: 1.5px solid #78350f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotkey-indicator {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 800;
  color: #120f0d;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border: 1.5px solid #78350f;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.talents-hotkey-sub {
  font-size: 12px;
  color: #fbbf24;
  opacity: 0.9;
  margin: 3px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Lista de níveis da árvore ──
   Antes usava cinza-neutro genérico (rgba(255,255,255,...)), destoando do
   resto da UI (lojas/backpack são sempre âmbar-sobre-madeira-escura, ver
   .upgrade-row/.bag-slot). Agora usa a mesma paleta quente em todo lugar —
   os estados done/current/milestone continuam se destacando por cima. */
.talent-tree-list { gap: 10px; }

.talent-level-row {
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(14, 10, 10, 0.85);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.talent-level-row:not(.locked):hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(26, 18, 16, 0.92);
  transform: translateY(-1px);
}

.talent-level-row.done { border-color: rgba(74, 222, 128, 0.45); background: rgba(16, 26, 18, 0.85); }
.talent-level-row.current { border-color: #fbbf24; background: rgba(251, 191, 36, 0.08); box-shadow: 0 0 16px rgba(251, 191, 36, 0.22); }
.talent-level-row.locked { opacity: 0.42; }

/* ── Níveis marco (1/5/10/15/20/25/30) — mais ornamentados, não só maiores.
   Moldura dourada dupla, fundo em gradiente sutil, brilho pulsante e uma
   fitinha "MILESTONE" no canto — os níveis comuns ficam de propósito mais
   discretos (cinza-chapado) pra esses aqui saltarem aos olhos na lista. */
.talent-level-row.milestone {
  position: relative;
  border: 2px solid #fbbf24;
  border-image: linear-gradient(135deg, #fde68a, #b45309, #fde68a) 1;
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.14) 0%, rgba(24, 18, 12, 0.6) 55%);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25) inset, 0 0 22px rgba(251, 191, 36, 0.28), 0 6px 18px rgba(0, 0, 0, 0.5);
  padding: 16px 18px 18px;
  animation: milestoneGlow 2.6s ease-in-out infinite;
}

.talent-level-row.milestone.locked {
  animation: none;
  box-shadow: none;
}

.talent-level-row.milestone::before {
  content: '★ MILESTONE';
  position: absolute;
  top: -11px;
  right: 16px;
  background: linear-gradient(135deg, #b45309, #fbbf24);
  color: #1e1004;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.talent-level-row.milestone .talent-level-head {
  font-size: 14.5px;
  color: #fef3c7;
}

.talent-level-row.milestone .talent-level-head .skill-build-key {
  width: 26px;
  height: 26px;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.talent-level-row.milestone .talent-option-btn {
  padding: 11px 13px;
  border-width: 2px;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.talent-level-row.milestone .talent-option-name { font-size: 13px; }
.talent-level-row.milestone .talent-option-desc { font-size: 11px; }

.talent-level-row.milestone .talent-option-btn.chosen {
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

@keyframes milestoneGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25) inset, 0 0 16px rgba(251, 191, 36, 0.2), 0 6px 18px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35) inset, 0 0 28px rgba(251, 191, 36, 0.4), 0 6px 18px rgba(0, 0, 0, 0.5); }
}

.talent-level-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fde68a;
}

.talent-level-head .skill-build-key { width: 22px; height: 22px; font-size: 12px; }

.talent-options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.talent-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  background: rgba(20, 14, 10, 0.6);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.talent-option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.talent-option-btn:disabled { cursor: not-allowed; }

.talent-option-btn.chosen {
  background: linear-gradient(135deg, #b45309 0%, #fbbf24 100%);
  color: #1e1004;
  border-color: #fef08a;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.talent-option-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.talent-option-name { font-size: 12px; font-weight: 800; color: #fde68a; }

.talent-option-cd {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.talent-option-desc { font-size: 10.5px; opacity: 0.85; line-height: 1.3; color: #cbd5e1; }

.talent-option-btn.chosen .talent-option-name,
.talent-option-btn.chosen .talent-option-desc {
  color: #1e1004;
  opacity: 1;
}

.talent-option-btn.chosen .talent-option-cd {
  color: #0c4a6e;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(12, 74, 110, 0.4);
}

.talents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0;
}

.talent-card {
  position: relative;
  background: rgba(14, 10, 10, 0.85);
  border: 2px solid rgba(180, 83, 9, 0.4);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.talent-card:hover {
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.talent-card.active {
  border-color: #fbbf24 !important;
  background: linear-gradient(180deg, rgba(45, 30, 18, 0.95) 0%, rgba(24, 16, 10, 0.95) 100%) !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), inset 0 0 18px rgba(245, 158, 11, 0.2) !important;
}

.talent-badge-status {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.7);
}

.talent-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.icon-whirlwind { border-color: #38bdf8; box-shadow: 0 0 16px rgba(56, 189, 248, 0.4); }
.icon-shockwave { border-color: #38bdf8; box-shadow: 0 0 16px rgba(56, 189, 248, 0.5); }
.icon-berserk { border-color: #ef4444; box-shadow: 0 0 16px rgba(239, 68, 68, 0.5); }

.talent-title {
  font-family: 'Cinzel', serif;
  font-size: 16.5px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.talent-type {
  font-size: 12px;
  font-weight: 800;
  color: #fb923c;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.talent-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 14px;
  flex-grow: 1;
}

.talent-perk-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.talent-perk-box span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.btn-select-talent {
  width: 100%;
  padding: 12px 0;
  border-radius: 10px;
  border: 2px solid #b45309;
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
  color: #fef3c7;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}

.btn-select-talent:hover {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-select-talent.active-btn {
  background: linear-gradient(135deg, #16a34a 0%, #14532d 100%) !important;
  border-color: #22c55e !important;
  color: #fff !important;
  cursor: default;
  transform: none !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5) !important;
}


/* ── WRAPPER DA BARRA DE AÇÃO & HP DO GLADIADOR ──
   Centralizado no rodapé inferior, alinhando a barra de HP diretamente acima das 4 skills */
#skill-bar-wrapper {
  position: absolute;
  bottom: clamp(6px, 1.5vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 50;
  pointer-events: auto;
  transform-origin: bottom center;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
}

/* ── BARRA DE HP DO GLADIADOR ACIMA DAS SKILLS ── */
#skill-player-hp-container {
  width: 100%;
  max-width: 278px;
  height: 18px;
  position: relative;
  border-radius: 9px;
  background: rgba(15, 10, 12, 0.92);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), inset 0 0 8px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-player-hp-bar-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(20, 10, 12, 0.9);
}

.skill-player-hp-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 65%, #4ade80 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  border-radius: 7px;
  transition: width 0.18s ease-out, background 0.25s, box-shadow 0.25s;
}

.skill-player-hp-text {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', serif, sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  user-select: none;
}

#skill-action-bar {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

/* Mesma linguagem visual do #inventory-bag/.bag-slot e .upg-icon-badge:
   fundo escuro com sombra interna de "soquete", borda âmbar translúcida em
   repouso (não um contorno sólido berrante o tempo todo), badge de ícone
   com fundo âmbar suave, brilho só quando a skill está PRONTA pra usar. */
.skill-slot {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: rgba(12, 9, 10, 0.9);
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75), 0 6px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s, box-shadow 0.15s;
}

.skill-slot:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: #fde047;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.55);
}

.skill-slot.ready {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.55), 0 0 14px rgba(251, 191, 36, 0.45);
}

.skill-slot.empty {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
  opacity: 0.55;
}

.skill-slot.locked {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
  opacity: 0.4;
  cursor: not-allowed;
}

.skill-slot-key {
  position: absolute;
  top: 3px;
  left: 3px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 0 4px;
  border-radius: 5px;
  text-shadow: 0 1px 2px #000;
  z-index: 3;
  letter-spacing: 0.3px;
}

.skill-slot-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.skill-slot-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.skill-slot-icon .skill-svg-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.talent-option-name .skill-svg-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 5px;
}

.skill-slot-cd-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(8, 6, 6, 0.82);
  z-index: 2;
  transition: height 0.2s linear;
}

.skill-slot-cd-text {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 12px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 1px 2px #000;
  z-index: 3;
}

.skill-slot.on-cooldown .skill-slot-icon-badge { opacity: 0.4; }


/* ── JOYSTICK ── */
#joystick-base {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
}

#joystick-stick {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* ── CONTROLS PANEL ── */
#controls-panel {
  position: absolute;
  bottom: clamp(8px, 1.5vh, 20px);
  right: clamp(8px, 1.5vw, 20px);
  display: flex;
  gap: 10px;
  z-index: 15;
  transform-origin: bottom right;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out;
}

.ui-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.95) 0%, rgba(16, 12, 10, 0.98) 100%);
  border: 2px solid rgba(217, 119, 6, 0.5);
  color: #fde047;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s, filter 0.12s;
}

.ui-btn:hover {
  transform: scale(1.12);
  filter: brightness(1.25);
}



/* ========================================== */
/* RESPONSIVE UI — ADAPTAÇÃO CIRÚRGICA        */
/* ========================================== */

/* Viewports com ALTURA MUITO PEQUENA (ex: janelas < 550px) */
@media (max-height: 550px) {
  #top-bar { top: 6px; left: 6px; gap: 6px; }
  .stat-card { padding: 6px 12px; font-size: 13px; border-radius: 18px; }
  #arena-tier-card { font-size: 12px; }
  .arena-menu-btn, .talents-menu-btn, .leaderboard-top-btn, .profile-top-btn, .main-menu-btn { font-size: 11px; padding: 6px 12px !important; }

  #gladiator-panel { top: 6px; right: 6px; padding: 8px 12px; width: 220px; border-radius: 14px; }
  .glad-name { font-size: 13px; }
  .glad-level { font-size: 10px; }
  .glad-avatar { font-size: 18px; width: 32px; height: 32px; border-radius: 50%; }
  .gear-slots { gap: 4px; }
  .slot { width: 42px; height: 42px; border-radius: 8px; }
  .slot-icon { font-size: 18px; }
  .slot-icon svg { width: 22px; height: 22px; }
  .hp-bar-wrap, .xp-bar-wrap { height: 11px; }
  .hp-text, .xp-text { font-size: 8px; }

  #inventory-bag { bottom: 8px; left: 8px; padding: 8px 12px; gap: 6px; border-radius: 14px; }
  .bag-header { font-size: 12px; }
  .bag-count { font-size: 11px; }
  .bag-grid { grid-template-columns: repeat(4, 42px); grid-template-rows: repeat(2, 42px); gap: 4px; }
  .bag-slot { width: 42px; height: 42px; border-radius: 8px; }
  .bag-slot-icon { font-size: 18px; }
  .bag-slot-icon svg { width: 22px; height: 22px; }
  .bag-slot-badge { font-size: 9px; }
  .bag-slot-tier, .chest-slot-tier { font-size: 8.5px; }
  .bag-locked-row-banner { height: 42px; padding: 4px 8px; }
  .bag-locked-left .locked-icon { font-size: 15px; }
  .bag-locked-left .locked-text { font-size: 9px; }
  .btn-unlock-bag-row { padding: 4px 8px; font-size: 9px; }
  .trash-zone { padding: 6px 10px; font-size: 10.5px; }

  .citadel-net-container { bottom: calc(clamp(8px, 1.5vh, 20px) + 295px * var(--ui-scale, 1)); left: clamp(8px, 1.5vw, 20px); }
  .citadel-chat-box { width: 280px; }

  #storage-chest-panel { bottom: clamp(8px, 1.5vh, 20px); left: calc(clamp(8px, 1.5vw, 20px) + 338px * var(--ui-scale, 1)); padding: 12px 14px; }
  .chest-grid { grid-template-columns: repeat(6, 38px); grid-template-rows: repeat(4, 38px); gap: 4px; }
  .chest-slot { width: 38px; height: 38px; }
  .chest-slot-icon { font-size: 17px; }
  .chest-slot-icon svg { width: 20px; height: 20px; }
  .chest-locked-row-banner { height: 38px; padding: 4px 6px; }
  .locked-row-left .locked-icon { font-size: 14px; }
  .locked-row-left .locked-text { font-size: 8.5px; }
  .btn-unlock-chest-row { padding: 4px 6px; font-size: 8.5px; }

  #controls-panel { bottom: 8px; right: 8px; gap: 6px; }
  .ui-btn { width: 36px; height: 36px; font-size: 15px; }

  #skill-bar-wrapper { bottom: 8px; gap: 4px; }
  #skill-player-hp-container { height: 14px; max-width: 200px; }
  .skill-player-hp-text { font-size: 9.5px; }
  #skill-action-bar { gap: 6px; }
  .skill-slot { width: 44px; height: 44px; border-radius: 10px; }
  .skill-slot-icon { font-size: 18px; }
  .skill-slot-key { font-size: 9px; }
  .skill-slot-cd-text { font-size: 10px; }

  .arena-modal-content { padding: 16px 20px; max-height: 85vh; }
  .talents-modal-box { padding: 16px 20px; max-height: 90vh; overflow-y: auto; }
  .talents-grid { gap: 10px; margin: 12px 0; }
  .talent-card { padding: 12px 12px; }
  .talent-icon-wrap { width: 48px; height: 48px; font-size: 24px; margin-bottom: 8px; }
}

/* ===================================================
   MODAL DO MERCADO NEGRO (BLACK MARKET)
   =================================================== */
#blackmarket-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.blackmarket-modal-box {
  background: linear-gradient(145deg, #150a26 0%, #0d0617 100%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.45), inset 0 0 20px rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  width: 92%;
  max-width: 640px;
  padding: 24px 28px;
  position: relative;
  color: #f3e8ff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: bmModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bmModalPop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.blackmarket-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding-bottom: 12px;
}

.blackmarket-header-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: radial-gradient(circle, #581c87 0%, #2e1065 100%);
  border: 2px solid #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.5);
}

.blackmarket-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f3e8ff;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.blackmarket-desc {
  font-size: 12px;
  color: #c084fc;
}

.blackmarket-gold-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 13, 53, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: bold;
}

.blackmarket-tier-badge {
  background: #581c87;
  color: #fde047;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.5px;
  border: 1px solid #a855f7;
}

/* Container do Card de Item Único do Black Market */
.blackmarket-single-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bm-single-card {
  background: rgba(26, 12, 46, 0.9);
  border: 1.5px solid #a855f7;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.25);
  position: relative;
  overflow: hidden;
}

.bm-single-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.08), transparent);
  animation: bmShine 3s infinite linear;
  pointer-events: none;
}

@keyframes bmShine {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.bm-single-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bm-single-icon-wrap {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #4c1d95 0%, #170b2c 100%);
  border: 2px solid #fbbf24;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
  flex-shrink: 0;
}

.bm-single-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.bm-single-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.bm-single-name {
  font-size: 16px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.bm-single-badge {
  font-size: 11px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 0.6px;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.bm-single-stats-box {
  background: rgba(46, 16, 101, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f3e8ff;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bm-single-buy-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a0f03;
  border: 2px solid #fde047;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.bm-single-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.85);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.bm-single-buy-btn:disabled {
  background: #374151;
  color: #9ca3af;
  border-color: #4b5563;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Botão de Reroll do Black Market */
.blackmarket-reroll-wrap {
  margin-top: 4px;
}

.btn-bm-reroll {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.85) 0%, rgba(30, 27, 75, 0.95) 100%);
  border: 1.5px solid #a855f7;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-bm-reroll:hover {
  transform: translateY(-2px);
  border-color: #fde047;
  box-shadow: 0 6px 22px rgba(253, 224, 71, 0.4);
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.95) 0%, rgba(49, 46, 129, 1) 100%);
}

.bm-reroll-icon {
  font-size: 22px;
  color: #fde047;
  animation: rerollSpin 4s infinite linear;
}

@keyframes rerollSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bm-reroll-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.bm-reroll-title {
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.5px;
}

.bm-reroll-sub {
  font-size: 11px;
  color: #e2e8f0;
}

.bm-reroll-badge {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5);
}

.blackmarket-footer {
  text-align: center;
  font-size: 11px;
  color: #a855f7;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding-top: 8px;
}

/* ===================================================
   MODAL DO GRIMÓRIO ANCESTRAL (REFORJA DE AFÍXOS)
   =================================================== */
#grimoire-reforge-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

#grimoire-reforge-modal.hidden {
  display: none !important;
}

.grimoire-modal-box {
  background: linear-gradient(145deg, #1e112a 0%, #0f071a 100%);
  border: 2px solid #eab308;
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.35), inset 0 0 25px rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  width: 94%;
  max-width: 680px;
  max-height: 92vh;
  padding: 22px 26px;
  position: relative;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: grimoirePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto;
}

@keyframes grimoirePop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.grimoire-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.3);
  padding-bottom: 10px;
}

.grimoire-header-icon {
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: radial-gradient(circle, #713f12 0%, #2e1065 100%);
  border: 2px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
}

.grimoire-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fde047;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

.grimoire-desc {
  font-size: 12px;
  color: #cbd5e1;
}

.grimoire-gold-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.grimoire-hint-badge {
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.5px;
}

.grimoire-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grimoire-dropzone {
  background: rgba(0, 0, 0, 0.35);
  border: 2px dashed rgba(234, 179, 8, 0.4);
  border-radius: 14px;
  padding: 14px;
  min-height: 160px;
  transition: all 0.2s ease;
}

.grimoire-dropzone.drag-over {
  border-color: #facc15;
  background: rgba(234, 179, 8, 0.15);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.35);
}

.grimoire-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  text-align: center;
  gap: 6px;
}

.grimoire-empty-icon {
  font-size: 34px;
  opacity: 0.6;
}

.grimoire-empty-title {
  font-size: 14px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.8px;
}

.grimoire-empty-sub {
  font-size: 12px;
  color: #94a3b8;
}

.grimoire-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  position: relative;
}

.grimoire-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1.5px solid #facc15;
}

.grimoire-item-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.grimoire-item-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grimoire-item-name {
  font-size: 15px;
  font-weight: 900;
  color: #fbbf24;
}

.grimoire-item-stats {
  font-size: 12px;
  color: #e2e8f0;
}

.grimoire-remove-btn {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: all 0.15s;
}

.grimoire-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.grimoire-affix-section {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grimoire-affix-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fde047;
  text-transform: uppercase;
}

.grimoire-affix-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grimoire-affix-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

.grimoire-affix-card:hover {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.5);
  transform: translateX(3px);
}

.grimoire-affix-card.is-selected {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.grimoire-affix-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.grimoire-affix-radio {
  font-size: 16px;
  color: #facc15;
}

.grimoire-bag-strip {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grimoire-bag-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.grimoire-bag-items {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.grimoire-strip-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grimoire-group-label {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fbbf24;
}

.grimoire-group-items {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grimoire-strip-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

.grimoire-empty-bag-text {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  padding: 4px 6px;
}

.grimoire-mini-item {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid #4b5563;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
  padding: 2px;
}

/* Bordas de Raridade Sempre Visíveis nos Itens do Grimório */
.grimoire-mini-item.glow-common { border-color: #9ca3af; box-shadow: 0 0 6px rgba(156, 163, 175, 0.35); }
.grimoire-mini-item.glow-uncommon { border-color: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.45); }
.grimoire-mini-item.glow-rare { border-color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.55); }
.grimoire-mini-item.glow-epic { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.65); }
.grimoire-mini-item.glow-legendary { border-color: #f59e0b; box-shadow: 0 0 14px rgba(245, 158, 11, 0.75); }
.grimoire-mini-item.glow-mythic { border-color: #ef4444; box-shadow: 0 0 16px rgba(239, 68, 68, 0.85); }
.grimoire-mini-item.glow-abyssal { border-color: #06b6d4; box-shadow: 0 0 16px rgba(6, 182, 212, 0.85); }
.grimoire-mini-item.glow-tartarus { border-color: #f43f5e; box-shadow: 0 0 16px rgba(244, 63, 94, 0.85); }
.grimoire-mini-item.glow-demigod { border-color: #c084fc; box-shadow: 0 0 18px rgba(192, 132, 252, 0.9); }
.grimoire-mini-item.glow-primal { border-color: #f97316; box-shadow: 0 0 20px rgba(249, 115, 22, 0.95); }
.grimoire-mini-item.glow-celestial { border-color: #facc15; box-shadow: 0 0 24px rgba(250, 204, 21, 1); }

.grimoire-mini-item:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.2);
}

.grimoire-mini-item.is-active {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  transform: translateY(-3px) scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  filter: brightness(1.25);
  z-index: 10;
}

.grimoire-mini-item .mini-tier {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 8.5px;
  font-weight: 800;
  color: #94a3b8;
  z-index: 2;
  text-shadow: 0 1px 2px #000;
}

.grimoire-mini-item .mini-equipped-tag {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 7.5px;
  font-weight: 800;
  color: #38bdf8;
  z-index: 2;
  text-shadow: 0 1px 2px #000;
}

.grimoire-mini-item .mini-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.grimoire-mini-item .mini-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
}

.grimoire-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.grimoire-btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fde047;
  color: #1c0a00;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
  font-family: inherit;
  transition: all 0.15s ease;
}

.grimoire-btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.75);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.grimoire-btn-gold:disabled {
  background: #374151;
  color: #9ca3af;
  border-color: #4b5563;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.grimoire-btn-video {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.9) 0%, rgba(30, 27, 75, 1) 100%);
  border: 2px solid #c084fc;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
  font-family: inherit;
  transition: all 0.15s ease;
}

.grimoire-btn-video:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #fde047;
  box-shadow: 0 6px 22px rgba(253, 224, 71, 0.45);
}

.grimoire-btn-video:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================
   DIAMOND PICKAXE FRENZY MODAL (+100% MINING SPEED)
   ========================================== */
#diamond-pickaxe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 8, 20, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: auto;
}

#diamond-pickaxe-modal.hidden {
  display: none !important;
}

.diamond-modal-box {
  background: linear-gradient(160deg, #031525 0%, #082840 50%, #03121f 100%);
  border: 2px solid #00f5ff;
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.4), inset 0 0 20px rgba(0, 245, 255, 0.15);
  border-radius: 20px;
  width: 480px;
  max-width: 92vw;
  padding: 24px;
  color: #ffffff;
  font-family: 'Cinzel', serif, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: diamondPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes diamondPop {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.diamond-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  padding-bottom: 14px;
}

.diamond-icon-glow {
  font-size: 38px;
  filter: drop-shadow(0 0 12px #00f5ff);
  animation: diamondPulse 2s infinite ease-in-out;
}

@keyframes diamondPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px #00f5ff); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px #38bdf8); }
}

.diamond-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.diamond-main-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 245, 255, 0.3);
}

.diamond-badge-perk {
  font-size: 11px;
  color: #fbbf24;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.diamond-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diamond-preview-card {
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.diamond-sparkle-icon {
  font-size: 32px;
}

.diamond-card-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #38bdf8;
}

.diamond-card-info p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.diamond-perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diamond-perk-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.diamond-perk-item .perk-icon {
  font-size: 16px;
}

.diamond-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
  width: 100%;
}

.btn-activate-diamond {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #00f5ff 100%);
  color: #031525;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.4);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-activate-diamond:hover:not(:disabled):not(.locked) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(0, 245, 255, 0.7);
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.btn-super-diamond {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #fde047 100%);
  color: #451a03;
  border: 2px solid #fef08a;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.45);
}

.btn-super-diamond:hover:not(:disabled):not(.locked) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.85);
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 50%, #fef08a 100%);
}

.btn-super-diamond.locked {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #64748b;
  border: 2px dashed #475569;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-super-diamond.locked:hover {
  transform: none;
  box-shadow: none;
  border-color: #ef4444;
  color: #94a3b8;
}

/* ========================================== */
/* MODAL DE ATTACK SPEED (+30% POR 2 MINUTOS) */
/* ========================================== */
#attack-speed-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 4, 20, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#attack-speed-modal.hidden {
  display: none !important;
}

.atk-speed-modal-box {
  background: linear-gradient(160deg, #180828 0%, #2e0854 50%, #150524 100%) !important;
  border: 2px solid #c084fc !important;
  box-shadow: 0 0 40px rgba(192, 132, 252, 0.45), inset 0 0 20px rgba(147, 51, 234, 0.2) !important;
}

.atk-speed-header {
  border-bottom: 1.5px solid rgba(192, 132, 252, 0.35);
}

.atk-speed-icon {
  background: radial-gradient(circle, #581c87 0%, #2e0854 100%);
  border: 2px solid #c084fc;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.6);
}

.atk-speed-title {
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 50%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 2px 10px rgba(192, 132, 252, 0.4) !important;
}

.atk-speed-card {
  background: rgba(147, 51, 234, 0.08) !important;
  border-color: rgba(192, 132, 252, 0.3) !important;
}

.atk-speed-tag {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  border-color: #c084fc !important;
}

.btn-activate-atk-speed {
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%) !important;
  color: #120422 !important;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.55) !important;
}

.btn-activate-atk-speed:hover {
  background: linear-gradient(135deg, #a855f7 0%, #e9d5ff 100%) !important;
  box-shadow: 0 6px 28px rgba(192, 132, 252, 0.85) !important;
}

/* ========================================== */
/* MODAL DE LIFESTEAL (+5% POR 2 MINUTOS)     */
/* ========================================== */
#lifesteal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 10, 24, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#lifesteal-modal.hidden {
  display: none !important;
}

.lifesteal-modal-box {
  background: linear-gradient(160deg, #031528 0%, #072744 50%, #021220 100%) !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.45), inset 0 0 20px rgba(2, 132, 199, 0.2) !important;
}

.lifesteal-header {
  border-bottom: 1.5px solid rgba(56, 189, 248, 0.35);
}

.lifesteal-icon {
  background: radial-gradient(circle, #0369a1 0%, #082f49 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.lifesteal-title {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 50%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.4) !important;
}

.lifesteal-card {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.lifesteal-tag {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
}

.btn-activate-lifesteal {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  color: #031528 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.55) !important;
}

.btn-activate-lifesteal:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #e0f2fe 100%) !important;
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.85) !important;
}

/* ========================================== */
/* MODAL DOS BUFFS ANCESTRAIS (ANCESTRAL'S BUFFS) */
/* ========================================== */
#ancestral-buff-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 6, 16, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#ancestral-buff-modal.hidden {
  display: none !important;
}

/* ======================================================== */
/* UNIFIED OPTION 3 CLEAN BUFF MODALS (COM LORE HEROICA)    */
/* ======================================================== */
.v3-buff-modal-box {
  background: linear-gradient(165deg, #150e1d 0%, #1c1128 50%, #0d0814 100%) !important;
  border: 2px solid rgba(245, 158, 11, 0.8) !important;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.35), inset 0 0 25px rgba(245, 158, 11, 0.1) !important;
  border-radius: 20px;
  width: 480px;
  max-width: 92vw;
  padding: 22px;
  color: #ffffff;
  font-family: 'Cinzel', serif, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: diamondPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v3-buff-modal-box.diamond-pickaxe-theme {
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35), inset 0 0 25px rgba(56, 189, 248, 0.1) !important;
}

.v3-buff-modal-box.atk-speed-theme {
  border-color: rgba(250, 204, 21, 0.85) !important;
  box-shadow: 0 0 50px rgba(250, 204, 21, 0.35), inset 0 0 25px rgba(250, 204, 21, 0.1) !important;
}

.v3-buff-modal-box.lifesteal-theme {
  border-color: rgba(239, 68, 68, 0.85) !important;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.35), inset 0 0 25px rgba(239, 68, 68, 0.1) !important;
}

/* Header */
.v3-buff-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
}

.v3-buff-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.v3-buff-icon-wrap.gold-glow {
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

.v3-buff-icon-wrap.diamond-glow {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.v3-buff-icon-wrap.yellow-glow {
  border-color: #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
}

.v3-buff-icon-wrap.red-glow {
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.v3-buff-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v3-buff-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.v3-buff-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Lore Card */
.v3-buff-lore-card {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
}

.diamond-pickaxe-theme .v3-buff-lore-card {
  border-left-color: #38bdf8;
}

.atk-speed-theme .v3-buff-lore-card {
  border-left-color: #facc15;
}

.lifesteal-theme .v3-buff-lore-card {
  border-left-color: #ef4444;
}

.v3-buff-lore-text {
  font-size: 11.5px;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.4;
  display: block;
}

/* Main Effect Card */
.v3-buff-effect-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.v3-buff-effect-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-buff-effect-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v3-buff-stat-highlight {
  font-size: 16px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.diamond-pickaxe-theme .v3-buff-stat-highlight {
  color: #38bdf8;
}

.atk-speed-theme .v3-buff-stat-highlight {
  color: #fde047;
}

.lifesteal-theme .v3-buff-stat-highlight {
  color: #f87171;
}

.v3-buff-stat-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Status Bar */
.v3-buff-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 12.5px;
  color: #94a3b8;
  white-space: nowrap;
}

.v3-buff-status-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.v3-buff-status-bar b {
  color: #f1f5f9;
}

.btn-activate-ancestral {
  width: 100%;
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 60%, #fef08a 100%) !important;
  color: #1e0f04 !important;
  border: 2px solid #ffffff !important;
  border-radius: 14px;
  padding: 15px 22px;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6) !important;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.btn-activate-ancestral:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 32px rgba(251, 191, 36, 0.9) !important;
  background: linear-gradient(135deg, #f59e0b 0%, #fde047 100%) !important;
}

/* ========================================== */
/* PÍLULAS DE ABA REUTILIZÁVEIS (usadas pelo Leaderboard) */
/* ========================================== */
.theme-pill-btn {
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 20px;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.theme-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.col-0-active {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%) !important;
  color: #ffffff !important;
  border-color: #94a3b8 !important;
}

/* ========================================== */
/* TELA DE LOADING ÉPICA (GLADIATOR THEME)    */
/* ========================================== */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1c150c 0%, #0d0a06 65%, #050403 100%);
  color: #f59e0b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  user-select: none;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 90%;
}

.loading-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #d97706;
  border-radius: 50%;
  background: radial-gradient(circle, #78350f 0%, #1e130a 80%);
  box-shadow: 0 0 35px rgba(217, 119, 6, 0.45), inset 0 0 20px rgba(245, 158, 11, 0.35);
  animation: loadingPulse 2s infinite alternate ease-in-out;
}

@keyframes loadingPulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.3), inset 0 0 15px rgba(245, 158, 11, 0.2);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.6), inset 0 0 25px rgba(251, 191, 36, 0.5);
  }
}

.emblem-icon {
  font-size: 46px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.loading-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 3px 6px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.loading-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a8a29e;
  margin: 0 0 32px 0;
  text-transform: uppercase;
}

.loading-bar-container {
  width: 100%;
  max-width: 340px;
  height: 16px;
  background: #1c1917;
  border: 2px solid #b45309;
  border-radius: 10px;
  padding: 2px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9), inset 0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.loading-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 50%, #d97706 100%);
  border-radius: 6px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

.loading-status {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #e7e5e4;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

/* ========================================== */
/* ONBOARDING SPOTLIGHT MASK & POINTER        */
/* ========================================== */
#tutorial-spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010 !important;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.82);
  transition: opacity 0.25s ease;
}

#tutorial-spotlight-overlay.hidden {
  display: none !important;
}

#tutorial-spotlight-box {
  position: fixed;
  z-index: 100020 !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow: none !important;
  pointer-events: none;
  animation: tutSpotlightNeutralPulse 1.8s infinite alternate ease-in-out;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tutSpotlightNeutralPulse {
  0% {
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.65);
    transform: scale(1.02);
  }
}

/* POINTER / INDICADOR COM MÃOZINHA & TEXTO GRANDE EM INGLÊS */
#tutorial-spotlight-pointer {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(28, 22, 17, 0.98) 0%, rgba(12, 10, 9, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  z-index: 100030 !important;
  text-align: center;
  scale: var(--ui-scale, 1);
  transform-origin: center center;
  transition: scale 0.15s ease-out;
  max-width: min(420px, 90vw);
  box-sizing: border-box;
}

.spotlight-pointer-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

#tutorial-spotlight-pointer.pointer-right {
  left: calc(100% + 18px);
  top: 50%;
  transform: translateY(-50%);
  animation: pointerBobRight 1s infinite alternate ease-in-out;
}

#tutorial-spotlight-pointer.pointer-left {
  right: calc(100% + 18px);
  top: 50%;
  transform: translateY(-50%);
  animation: pointerBobLeft 1s infinite alternate ease-in-out;
}

#tutorial-spotlight-pointer.pointer-top {
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  animation: pointerBobTop 1s infinite alternate ease-in-out;
}

#tutorial-spotlight-pointer.pointer-top-left {
  bottom: calc(100% + 18px);
  left: 0;
  animation: pointerBobTopLeft 1s infinite alternate ease-in-out;
}

#tutorial-spotlight-pointer.pointer-top-right {
  bottom: calc(100% + 18px);
  right: 0;
  animation: pointerBobTopRight 1s infinite alternate ease-in-out;
}

#tutorial-spotlight-pointer.pointer-bottom {
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  animation: pointerBobBottom 1s infinite alternate ease-in-out;
}

@keyframes pointerBobRight {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(10px); }
}

@keyframes pointerBobLeft {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-10px); }
}

@keyframes pointerBobTop {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pointerBobTopLeft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes pointerBobTopRight {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes pointerBobBottom {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(10px); }
}

.spotlight-pointer-hand {
  font-size: 28px;
  filter: drop-shadow(0 0 10px #fbbf24);
  animation: pointerHandBounce 0.8s infinite alternate ease-in-out;
}

@keyframes pointerHandBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.15); }
}

.spotlight-pointer-text {
  font-size: 15px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  white-space: normal;
  word-break: break-word;
}

.spotlight-pointer-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  white-space: normal;
  word-break: break-word;
}

/* ELEVAÇÃO DO ELEMENTO ALVO */
.tutorial-spotlight-target {
  position: relative !important;
  z-index: 100005 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
}

/* ========================================== */
/* ONBOARDING MOVE PROMPT (HOLD W TO ENGAGE)  */
/* ========================================== */
#tutorial-move-prompt {
  position: fixed;
  bottom: calc(clamp(72px, 13vh, 105px) * var(--ui-scale, 1) + 20px);
  left: 50%;
  translate: -50% 0;
  transform: none;
  transform-origin: bottom center;
  scale: var(--ui-scale, 1);
  max-width: min(520px, 94vw);
  box-sizing: border-box;
  z-index: 9990;
  pointer-events: none;
  animation: movePromptSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.3s ease, translate 0.3s ease, scale 0.15s ease-out;
}

#tutorial-move-prompt.hidden {
  display: none !important;
}

#tutorial-move-prompt.fade-out {
  opacity: 0;
  translate: -50% 15px;
  transform: none;
  pointer-events: none;
}

@keyframes movePromptSlide {
  0% { translate: -50% 25px; opacity: 0; }
  100% { translate: -50% 0; opacity: 1; }
}

.move-prompt-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(35, 26, 18, 0.98) 0%, rgba(18, 14, 10, 0.99) 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 14px 26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), 0 0 25px rgba(251, 191, 36, 0.6);
  backdrop-filter: blur(10px);
}

.move-prompt-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border: 2px solid #fbbf24;
  border-bottom: 4px solid #d97706;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  animation: keyPulse 1s infinite alternate ease-in-out;
}

@keyframes keyPulse {
  0% { transform: scale(1); border-color: #fbbf24; }
  100% { transform: scale(1.1); border-color: #fef08a; box-shadow: 0 0 15px rgba(253, 224, 71, 0.8); }
}

/* ── TUTORIAL SKILL [R] PULSE ON ACTION BAR ── */
.skill-slot.skill-slot-tutorial-pulse {
  animation: skillSlotPulse 0.9s ease-in-out infinite alternate !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.95), 0 0 40px rgba(239, 68, 68, 0.8), inset 0 0 15px rgba(250, 204, 21, 0.4) !important;
  z-index: 10000 !important;
  position: relative !important;
}

.skill-slot.skill-slot-tutorial-pulse .skill-slot-key {
  animation: keyRPulse 0.8s ease-in-out infinite alternate !important;
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  color: #1c1917 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.95) !important;
}

.key-badge-r-pulse {
  animation: keyBadgeRPulse 0.8s ease-in-out infinite alternate !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 2px solid #fde047 !important;
  border-bottom: 4px solid #b45309 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

@keyframes skillSlotPulse {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(250, 204, 21, 0.5); }
  100% { transform: scale(1.15); box-shadow: 0 0 35px rgba(250, 204, 21, 1), 0 0 50px rgba(239, 68, 68, 0.9); }
}

@keyframes keyRPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.35); }
}

@keyframes keyBadgeRPulse {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(250, 204, 21, 0.5); }
  100% { transform: scale(1.2); box-shadow: 0 0 25px rgba(250, 204, 21, 1), 0 0 35px rgba(239, 68, 68, 0.8); }
}

.key-sep {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.key-badge-joy {
  font-size: 24px;
  filter: drop-shadow(0 0 6px #fbbf24);
}

.move-prompt-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.move-prompt-title {
  font-size: 16px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.move-prompt-sub {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ==================================================== */
/* ONBOARDING BOSS SKILL [ R ] PROMPT (100% OPACO)      */
/* ==================================================== */
#tutorial-boss-r-prompt {
  position: fixed;
  bottom: calc(clamp(72px, 13vh, 105px) * var(--ui-scale, 1) + 20px);
  left: 50%;
  translate: -50% 0;
  transform: none;
  transform-origin: bottom center;
  scale: var(--ui-scale, 1);
  max-width: min(540px, 94vw);
  box-sizing: border-box;
  z-index: 99999;
  pointer-events: auto;
  cursor: pointer;
  animation: bossRPromptPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.35s ease, translate 0.35s ease, scale 0.15s ease-out;
  user-select: none;
}

#tutorial-boss-r-prompt.hidden {
  display: none !important;
}

#tutorial-boss-r-prompt.fade-out {
  opacity: 0 !important;
  translate: -50% 20px;
  transform: none;
  pointer-events: none;
}

@keyframes bossRPromptPop {
  0% { translate: -50% 30px; opacity: 0; }
  100% { translate: -50% 0; opacity: 1; }
}

.boss-r-prompt-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0c0612 !important; /* 100% Sólido opaco, zero translucidez */
  border: 3px solid #facc15;
  border-radius: 18px;
  padding: 12px 24px;
  box-shadow: 0 12px 40px #000000, 0 0 35px rgba(250, 204, 21, 0.9), inset 0 0 15px rgba(250, 204, 21, 0.3);
  opacity: 1 !important;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
}

.boss-r-badge-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
}

.boss-r-key-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  border: 3px solid #fde047;
  border-bottom: 5px solid #7f1d1d;
  border-radius: 14px;
  font-family: 'Cinzel', serif, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  animation: bossKeyRPulse 0.8s ease-in-out infinite alternate;
}

.boss-r-glow-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid rgba(253, 224, 71, 0.7);
  border-radius: 18px;
  animation: bossGlowRingPulse 1.2s ease-out infinite;
  pointer-events: none;
}

@keyframes bossKeyRPulse {
  0% { transform: scale(1); border-color: #fde047; }
  100% { transform: scale(1.15); border-color: #ffffff; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 35px rgba(253, 224, 71, 1), inset 0 2px 6px #ffffff; }
}

@keyframes bossGlowRingPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.boss-r-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.boss-r-title {
  font-family: 'Cinzel', serif, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fef08a;
  text-shadow: 0 2px 8px #000000, 0 0 16px rgba(250, 204, 21, 0.9);
  white-space: normal;
}

.boss-r-sub {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: normal;
}

@media (max-width: 768px) {
  #tutorial-boss-r-prompt {
    width: 92vw;
    max-width: 420px;
  }
  .boss-r-prompt-container {
    padding: 10px 16px;
    gap: 12px;
  }
  .boss-r-badge-wrapper {
    width: 46px;
    height: 46px;
  }
  .boss-r-key-badge {
    width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 10px;
  }
  .boss-r-title {
    font-size: 15px;
  }
  .boss-r-sub {
    font-size: 11px;
  }
}

/* ========================================== */
/* BANNER TÁTICO DE DERROTA DO BOSS (9 SEGUNDOS) */
/* ========================================== */
#boss-defeat-hint-banner {
  position: fixed;
  top: calc(clamp(60px, 10vh, 100px) * var(--ui-scale, 1) + 20px);
  left: 50%;
  translate: -50% 0;
  transform: none;
  transform-origin: top center;
  scale: var(--ui-scale, 1);
  z-index: 10000;
  pointer-events: auto;
  animation: defeatBannerPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.4s ease, translate 0.4s ease, scale 0.15s ease-out;
}

#boss-defeat-hint-banner.hidden {
  display: none !important;
}

#boss-defeat-hint-banner.fade-out {
  opacity: 0;
  translate: -50% -20px;
  transform: none;
}

@keyframes defeatBannerPop {
  0% { translate: -50% -35px; opacity: 0; }
  100% { translate: -50% 0; opacity: 1; }
}

.defeat-hint-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(38, 14, 14, 0.98) 0%, rgba(18, 8, 8, 0.99) 100%);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 14px 24px;
  min-width: 440px;
  max-width: 560px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(239, 68, 68, 0.65);
  backdrop-filter: blur(12px);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.defeat-hint-box:hover {
  transform: scale(1.02);
  border-color: #f87171;
}

.defeat-hint-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.defeat-hint-skull {
  font-size: 20px;
  filter: drop-shadow(0 0 8px #ef4444);
  animation: skullPulse 1s infinite alternate ease-in-out;
}

@keyframes skullPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); filter: drop-shadow(0 0 14px #f87171); }
}

.defeat-hint-title {
  font-size: 17px;
  font-weight: 900;
  color: #f87171;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.defeat-hint-subtitle {
  font-size: 13px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
}

.defeat-hint-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
}

.defeat-hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
}

.defeat-hint-row span:first-child {
  font-size: 14px;
  flex-shrink: 0;
}

.defeat-hint-row b {
  color: #facc15;
  font-weight: 800;
}

.tutorial-hud-card {
  background: linear-gradient(145deg, rgba(28, 22, 17, 0.95) 0%, rgba(18, 14, 10, 0.95) 100%);
  border: 2px solid #d97706;
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 320px;
  max-width: 440px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(217, 119, 6, 0.35);
  backdrop-filter: blur(8px);
}

.tutorial-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
}

.tutorial-hud-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fbbf24;
  text-transform: uppercase;
}

.btn-tut-skip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-tut-skip:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: #ef4444;
}

.tutorial-hud-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tutorial-hud-icon {
  font-size: 24px;
  background: rgba(217, 119, 6, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f59e0b;
  flex-shrink: 0;
  animation: tutIconPulse 1.5s infinite alternate;
}

@keyframes tutIconPulse {
  0% { transform: scale(1); box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
  100% { transform: scale(1.08); box-shadow: 0 0 16px rgba(245, 158, 11, 0.7); }
}

.tutorial-hud-text h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
}

.tutorial-hud-text p {
  margin: 2px 0 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #e2e8f0;
}

/* DESTAQUE EM ELEMENTOS DA UI (SEM GLOW DOURADO FALSO) */
.tutorial-highlight-pulse {
  position: relative !important;
  box-shadow: none !important;
  z-index: 10005 !important;
}

/* MODAL ÉPICO DE CONCLUSÃO DO TUTORIAL */
#tutorial-complete-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 3, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: tutFadeIn 0.3s ease;
}

#tutorial-complete-modal.hidden {
  display: none !important;
}

@keyframes tutFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.tut-complete-box {
  background: linear-gradient(145deg, #1c1611 0%, #120e0a 100%);
  border: 2px solid #fbbf24;
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 520px;
  width: 90%;
  color: #f5f5f4;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(251, 191, 36, 0.4);
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tut-complete-crown {
  font-size: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.8));
  animation: tutCrownBob 2s infinite ease-in-out;
}

@keyframes tutCrownBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tut-complete-box h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fbbf24;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 14px rgba(251, 191, 36, 0.5);
  text-transform: uppercase;
}

.tut-complete-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  margin: 0 auto 18px auto;
  width: 80%;
}

.tut-complete-main-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0 0 20px 0;
  text-align: center;
}

.tut-complete-main-text b {
  color: #fbbf24;
}

.tut-complete-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.tut-hl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  text-align: left;
}

.tut-hl-item span {
  font-size: 18px;
}

.tut-hl-item b {
  color: #fde047;
}

.btn-tut-finish {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 6px 25px rgba(217, 119, 6, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease;
  text-transform: uppercase;
}

.btn-tut-finish:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.7);
}

/* ============================================================ */
/* MODAL ÉPICO DE DESBLOQUEIO DO ENDGAME (NÍVEL 30 ATINGIDO)    */
/* ============================================================ */
.endgame-unlocked-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.endgame-unlocked-box {
  background: linear-gradient(155deg, #0b1329 0%, #030712 100%);
  border: 2px solid #0ea5e9;
  border-radius: 22px;
  padding: 34px 38px;
  max-width: 530px;
  width: 92%;
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(14, 165, 233, 0.45);
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.endgame-unlocked-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.endgame-unlocked-portal-emblem {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.endgame-portal-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
  animation: portalRingSpin 10s linear infinite;
}

@keyframes portalRingSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

.endgame-portal-icon {
  font-size: 40px;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.9));
  animation: tutCrownBob 2.2s infinite ease-in-out;
}

.endgame-unlocked-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 14px rgba(56, 189, 248, 0.4);
  text-transform: uppercase;
}

.endgame-unlocked-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #fbbf24, transparent);
  margin: 0 auto 16px auto;
  width: 85%;
}

.endgame-unlocked-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 16px 0;
  text-align: center;
}

.endgame-unlocked-desc b {
  color: #38bdf8;
}

.endgame-portal-location-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
  box-shadow: inset 0 0 16px rgba(14, 165, 233, 0.1);
}

.endgame-portal-location-card .location-pin {
  font-size: 26px;
  filter: drop-shadow(0 0 8px #38bdf8);
  animation: portalRingSpin 6s linear infinite;
}

.endgame-portal-location-card .location-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.endgame-portal-location-card .location-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fbbf24;
}

.endgame-portal-location-card .location-coords {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
}

.endgame-portal-location-card .location-coords code {
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.endgame-portal-location-card .location-hint {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.endgame-unlocked-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 22px;
  background: rgba(3, 7, 18, 0.55);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.endgame-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.endgame-feat-item .feat-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.endgame-feat-item .feat-info {
  display: flex;
  flex-direction: column;
}

.endgame-feat-item .feat-info b {
  font-size: 12.5px;
  color: #f1f5f9;
}

.endgame-feat-item .feat-info span {
  font-size: 11px;
  color: #94a3b8;
}

.btn-endgame-unlocked {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-endgame-unlocked:hover {
  transform: scale(1.025);
  filter: brightness(1.18);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.7);
}

/* ========================================== */
/* TUTORIAL / BOAS-VINDAS INICIAL ANTIGO      */
/* ========================================== */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#tutorial-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.tutorial-box {
  background: linear-gradient(145deg, #1c1611 0%, #120e0a 100%);
  border: 2px solid #d97706;
  border-radius: 18px;
  padding: 32px 36px;
  max-width: 480px;
  width: 90%;
  color: #f5f5f4;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(217, 119, 6, 0.3);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.tutorial-box h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fbbf24;
  margin-top: 0;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
  text-transform: uppercase;
}

.tutorial-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #d6d3d1;
  margin: 0 0 10px 0;
  text-align: left;
}

.tutorial-box b {
  color: #fbbf24;
  font-weight: 800;
}

#btn-start {
  margin-top: 22px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
}

#btn-start:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

#btn-start:active {
  transform: scale(0.98);
}

/* ========================================== */
/* ARES MODAL STYLES (ENDGAME GATE UNLOCK)    */
/* ========================================== */
.ares-modal-box {
  background: linear-gradient(145deg, #181111 0%, #0d0909 100%) !important;
  border: 2px solid #ef4444 !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.3) !important;
}

.ares-header {
  border-bottom: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.ares-avatar-icon {
  background: radial-gradient(circle, rgba(239,68,68,0.3) 0%, rgba(0,0,0,0) 70%) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.ares-title-text {
  color: #f87171 !important;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.5) !important;
}

.ares-message-box {
  margin: 18px 0;
  width: 100%;
}

.ares-claim-key-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: 2px solid #22c55e;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  padding: 15px 22px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.ares-claim-key-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.7);
}

.ares-claim-key-btn:active {
  transform: scale(0.98);
}

/* ==========================================
   FORJA DOS TITÃS — ULTIMATE CRAFTER (TIER 14 & TIER 15)
   ========================================== */

.titan-forge-content {
  max-width: 690px !important;
  max-height: calc(92vh / var(--ui-scale, 1)) !important;
  padding: 18px 24px !important;
  background: radial-gradient(circle at 50% 0%, #1e112a 0%, #0b0f19 80%) !important;
  border: 2px solid #b45309 !important;
  box-shadow: 0 0 45px rgba(217, 119, 6, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.8) !important;
  overflow-y: auto !important;
}

.titan-badge-glow {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
  border-color: #f59e0b !important;
}

.titan-title-gradient {
  background: linear-gradient(135deg, #ffd700 0%, #ff7170 60%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(244, 63, 94, 0.35);
}

.titan-resource-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 6px 14px;
  border-radius: 12px;
  margin: 8px 0 10px 0;
}

.titan-res-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
}

.titan-res-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.titan-res-val {
  color: #fbbf24;
  font-weight: 900;
}

.titan-tab-t15.active-tab {
  background: linear-gradient(135deg, #be123c 0%, #881337 100%) !important;
  border-color: #fb7185 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.5) !important;
}

.titan-tab-t14.active-tab {
  background: linear-gradient(135deg, #6b21a8 0%, #4c1d95 100%) !important;
  border-color: #c084fc !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5) !important;
}

.titan-tab-t16 {
  background: rgba(51, 65, 85, 0.45) !important;
  border: 1px solid #64748b !important;
  color: #94a3b8 !important;
}

.titan-tab-t16:hover {
  background: rgba(71, 85, 105, 0.65) !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
}

.titan-tab-t16.active-tab {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  border-color: #cbd5e1 !important;
  color: #f8fafc !important;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.5) !important;
}

.titan-info-bar {
  background: rgba(30, 41, 59, 0.7) !important;
  border-left: 3px solid #fbbf24 !important;
  margin-bottom: 10px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.titan-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

.titan-item-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.titan-item-card.card-t16 {
  border: 2px solid #64748b;
  box-shadow: 0 0 15px rgba(100, 116, 139, 0.35);
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.titan-item-card.card-t16:hover {
  box-shadow: 0 0 25px rgba(148, 163, 184, 0.6);
  border-color: #cbd5e1;
}

.titan-item-card.card-t15 {
  border: 2px solid #f43f5e;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
}

.titan-item-card.card-t15:hover {
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
  border-color: #fb7185;
}

.titan-item-card.card-t14 {
  border: 2px solid #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.titan-item-card.card-t14:hover {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  border-color: #c084fc;
}

.titan-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.titan-item-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.card-t15 .titan-item-icon-box {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.card-t14 .titan-item-icon-box {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.icon-titan-gear {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.titan-item-card:hover .icon-titan-gear {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.75));
}

.titan-card-title-group {
  overflow: hidden;
}

.titan-card-name {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-t15 .titan-card-name {
  color: #ffe4e6;
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

.card-t14 .titan-card-name {
  color: #f3e8ff;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.titan-card-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-t15 .titan-card-badge {
  color: #fb7185;
}

.card-t14 .titan-card-badge {
  color: #c084fc;
}

.titan-card-stats {
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.titan-card-stats b {
  color: #f8fafc;
}

.titan-card-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}

.titan-cost-pill {
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.titan-cost-ok {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #86efac;
}

.titan-cost-missing {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.btn-forge-titan {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.card-t15 .btn-forge-titan:not(:disabled) {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border: 1px solid #fb7185;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.45);
}

.card-t15 .btn-forge-titan:not(:disabled):hover {
  filter: brightness(1.2);
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.75);
}

.card-t14 .btn-forge-titan:not(:disabled) {
  background: linear-gradient(135deg, #7e22ce 0%, #581c87 100%);
  border: 1px solid #c084fc;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.45);
}

.card-t14 .btn-forge-titan:not(:disabled):hover {
  filter: brightness(1.2);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.75);
}

.btn-forge-titan:disabled {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ========================================== */
/* TELA DE TRANSIÇÃO / TELEPORTE MÍSTICO      */
/* ========================================== */
#teleport-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.99) 100%);
  color: #fbbf24;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease-in-out, visibility 0.22s ease-in-out;
  pointer-events: all;
  user-select: none;
}

#teleport-transition-overlay.fade-in {
  opacity: 1;
  visibility: visible;
}

#teleport-transition-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.teleport-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 90%;
}

.teleport-rune-portal {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teleport-rune-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed #fbbf24;
  border-top-color: #38bdf8;
  border-right-color: #c084fc;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.35);
  animation: teleportRuneSpin 1.4s linear infinite;
}

@keyframes teleportRuneSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.teleport-rune-icon {
  font-size: 38px;
  animation: teleportIconPulse 1.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.7));
}

@keyframes teleportIconPulse {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.1); }
}

#teleport-transition-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  margin: 0 0 6px 0;
}

#teleport-transition-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin: 0 0 22px 0;
}

.teleport-bar-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.teleport-bar-glow {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #38bdf8, #fbbf24, transparent);
  border-radius: 4px;
  animation: teleportBeamMove 1s ease-in-out infinite;
}

@keyframes teleportBeamMove {
  0% { left: -50%; }
  100% { left: 100%; }
}



/* ── BADGE DE BÔNUS DE CONJUNTO (SET BONUS) ── */
.set-bonus-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  animation: setGlowPulse 2.5s infinite ease-in-out;
  margin: 2px 0 4px 0;
}

@keyframes setGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.02); opacity: 1; filter: brightness(1.2); }
}

.set-bonus-badge.set-uncommon {
  background: linear-gradient(90deg, rgba(20, 83, 45, 0.85) 0%, rgba(22, 101, 52, 0.85) 100%);
  border: 1px solid #22c55e;
  color: #86efac;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.set-bonus-badge.set-rare {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
  border: 1px solid #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.set-bonus-badge.set-epic {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.85) 0%, rgba(126, 34, 206, 0.85) 100%);
  border: 1px solid #a855f7;
  color: #d8b4fe;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.set-bonus-badge.set-legendary {
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.9) 0%, rgba(180, 83, 9, 0.9) 100%);
  border: 1px solid #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.set-bonus-badge.set-mythic {
  background: linear-gradient(90deg, rgba(76, 5, 25, 0.95) 0%, rgba(159, 18, 57, 0.95) 100%);
  border: 1px solid #e11d48;
  color: #ffe4e6;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.7);
}

.set-bonus-badge.set-abyssal {
  background: linear-gradient(90deg, rgba(8, 51, 68, 0.95) 0%, rgba(14, 116, 144, 0.95) 100%);
  border: 1.5px solid #06b6d4;
  color: #cffafe;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
}

.set-bonus-badge.set-tartarus {
  background: linear-gradient(90deg, rgba(76, 5, 25, 0.95) 0%, rgba(190, 18, 60, 0.95) 100%);
  border: 1.5px solid #f43f5e;
  color: #ffe4e6;
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.85);
}

.set-bonus-badge.set-demigod {
  background: linear-gradient(90deg, rgba(59, 7, 100, 0.95) 0%, rgba(126, 34, 206, 0.95) 100%);
  border: 1.5px solid #c084fc;
  color: #f3e8ff;
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.85);
}

.set-bonus-badge.set-primal {
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.95) 0%, rgba(194, 65, 12, 0.95) 100%);
  border: 1.5px solid #f97316;
  color: #ffedd5;
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.9);
}

.set-bonus-badge.set-celestial {
  background: linear-gradient(90deg, rgba(66, 32, 6, 0.95) 0%, rgba(202, 138, 4, 0.95) 100%);
  border: 1.5px solid #facc15;
  color: #fef08a;
  box-shadow: 0 0 30px rgba(250, 204, 21, 1);
}

.set-bonus-badge.set-titan {
  background: linear-gradient(90deg, rgba(67, 56, 202, 0.95) 0%, rgba(147, 51, 234, 0.95) 100%);
  border: 1.5px solid #c084fc;
  color: #fef08a;
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.8);
}

/* ========================================== */
/* ⚙️ MODAL DE MENU PRINCIPAL DO JOGO          */
/* ========================================== */
/* (Estilo de .main-menu-btn unificado no topo com .talents-menu-btn, .leaderboard-top-btn e .profile-top-btn) */

.game-menu-content {
  background: linear-gradient(180deg, #1e1b18 0%, #0f0d0c 100%);
  border: 2px solid #b45309;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.25);
  width: 92%;
  max-width: 520px;
  padding: 24px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: craftModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 14px;
}

.game-menu-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-menu-icon {
  font-size: 26px;
}

.game-menu-header h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fbbf24;
  margin: 0;
  text-transform: uppercase;
}

.game-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.game-menu-grid .menu-action-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

.menu-action-card {
  background: linear-gradient(135deg, rgba(30, 27, 24, 0.9) 0%, rgba(18, 15, 13, 0.95) 100%);
  border: 1.5px solid #78350f;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.menu-action-card:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(45, 38, 30, 0.95) 0%, rgba(28, 22, 18, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.menu-card-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.menu-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.menu-card-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
}

.game-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.game-menu-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-setting-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #475569;
  border-radius: 12px;
  padding: 12px 14px;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.menu-setting-btn:hover {
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.game-menu-danger-zone {
  margin-top: 4px;
}

.btn-reset-danger {
  width: 100%;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.85) 0%, rgba(69, 10, 10, 0.95) 100%);
  border: 1.5px solid #dc2626;
  border-radius: 12px;
  padding: 13px 16px;
  color: #fee2e2;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset-danger:hover {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.95) 0%, rgba(127, 29, 29, 0.95) 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* Modal de Confirmação de Reset */
.reset-confirm-content {
  background: linear-gradient(180deg, #201010 0%, #120808 100%);
  border: 2px solid #ef4444;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 45px rgba(239, 68, 68, 0.4);
  width: 90%;
  max-width: 440px;
  padding: 26px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: craftModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reset-icon-warning {
  font-size: 42px;
  animation: pulse 1.5s infinite;
}

.reset-confirm-content h3 {
  font-size: 20px;
  font-weight: 900;
  color: #f87171;
  margin: 0;
}

.reset-confirm-content p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.reset-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.btn-reset-cancel {
  background: rgba(30, 41, 59, 0.9);
  border: 1.5px solid #64748b;
  border-radius: 10px;
  padding: 12px;
  color: #f1f5f9;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset-cancel:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #94a3b8;
}

.btn-reset-wipe {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1.5px solid #f87171;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
  transition: all 0.15s;
}

.btn-reset-wipe:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  transform: scale(1.02);
}

/* ── MODAL DE ATRIBUTOS DO PERSONAGEM (CHARACTER SHEET) ── */
.char-sheet-content {
  max-width: 680px !important;
  width: 95% !important;
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.98) 0%, rgba(14, 10, 8, 0.99) 100%) !important;
  border: 2px solid #d97706 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(217, 119, 6, 0.45) !important;
  padding: 24px 28px !important;
  gap: 16px !important;
}

.char-sheet-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(40, 30, 22, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 12px;
}

.char-sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.char-sum-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

.char-sum-val {
  font-family: 'Cinzel', serif;
  font-size: 15.5px;
  font-weight: 900;
  color: #fef08a;
}

.char-power-glow {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.char-set-glow {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.char-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .char-sheet-grid {
    grid-template-columns: 1fr;
  }
}

.char-stat-card {
  background: rgba(30, 22, 16, 0.65);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.char-card-header {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fde047;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 6px;
}

.char-stat-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.char-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.cs-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 600;
}

.cs-icon {
  font-size: 14px;
}

.cs-value {
  font-family: 'Cinzel', monospace;
  font-size: 13.5px;
  font-weight: 900;
  color: #ffffff;
}

.cs-gold { color: #facc15; text-shadow: 0 0 6px rgba(250, 204, 21, 0.4); }
.cs-blue { color: #38bdf8; text-shadow: 0 0 6px rgba(56, 189, 248, 0.4); }
.cs-green { color: #4ade80; }
.cs-orange { color: #fb923c; }
.cs-yellow { color: #fde047; }
.cs-purple { color: #c084fc; }

.char-modifiers-card {
  background: rgba(30, 22, 16, 0.65);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.char-modifiers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.char-mod-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 33, 24, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 700;
}

.char-mod-pill.active-buff {
  border-color: #22c55e;
  background: rgba(20, 83, 45, 0.4);
  color: #86efac;
}

/* ========================================================================= */
/* MODAL DO PERFIL DO GLADIADOR (PROFILE PAGE & CLOUD SYNC)                 */
/* ========================================================================= */

.profile-modal-box {
  background: linear-gradient(180deg, #1e1514 0%, #120b0c 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f1f5f9;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(90deg, rgba(45, 26, 12, 0.95) 0%, rgba(26, 15, 18, 0.95) 100%);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.35);
  gap: 12px;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.profile-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #78350f, #451a03);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.profile-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-input {
  background: rgba(15, 10, 12, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
  width: 240px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-name-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.profile-save-name-btn {
  background: linear-gradient(135deg, #15803d, #166534);
  border: 1px solid #22c55e;
  border-radius: 8px;
  color: #f0fdf4;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}

.profile-save-name-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.profile-sub-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-rank-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.5);
  padding: 2px 8px;
  border-radius: 6px;
}

.profile-id-badge {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.profile-server-badge {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
  background: rgba(20, 83, 45, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.profile-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-section-title {
  font-size: 13px;
  font-weight: 900;
  color: #f59e0b;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 6px;
  margin-top: 4px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-stat-card {
  background: rgba(28, 20, 18, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-stat-card.highlight {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.5), rgba(45, 26, 12, 0.7));
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.p-stat-icon {
  font-size: 24px;
}

.p-stat-data {
  display: flex;
  flex-direction: column;
}

.p-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.p-stat-val {
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
}

.p-stat-val.gold {
  color: #fbbf24;
  font-size: 18px;
}

.profile-career-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-records-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-record-row {
  background: rgba(20, 14, 16, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-record-row.lb-mode-row {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 23, 42, 0.85);
}

.p-rec-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.p-rec-val {
  font-size: 13px;
  font-weight: 900;
  color: #fbbf24;
}

.p-rec-val.highlight-lb {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.profile-server-footer {
  margin-top: 6px;
}

.profile-server-info-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-serv-icon {
  font-size: 24px;
}

.p-serv-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-serv-title {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.p-serv-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-records-grid {
    grid-template-columns: 1fr;
  }
  .profile-name-input {
    width: 160px;
  }
}

/* ==========================================================================
   HALL OF CHAMPIONS • MYTHIC RANKINGS UI
   ========================================================================== */
.hall-champions-content {
  max-width: 960px !important;
  width: 95vw;
}

.hall-gold-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hall-meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.hall-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.hall-meta-val {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
}

.hall-ladder-container {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hall-ladder-header {
  display: grid;
  grid-template-columns: 80px 1.8fr 1.3fr 1.2fr 1fr;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  padding: 10px 16px;
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.3);
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1px;
}

.hall-ladder-list {
  max-height: 420px;
  overflow-y: auto;
}

.hall-ladder-list::-webkit-scrollbar {
  width: 6px;
}
.hall-ladder-list::-webkit-scrollbar-thumb {
  background: #b45309;
  border-radius: 4px;
}

.hall-ladder-row {
  display: grid;
  grid-template-columns: 80px 1.8fr 1.3fr 1.2fr 1fr;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.hall-ladder-row:hover {
  background: rgba(251, 191, 36, 0.06);
}

.hall-ladder-row.rank-1 {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), transparent);
  border-left: 3px solid #eab308;
}

.hall-ladder-row.rank-2 {
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.12), transparent);
  border-left: 3px solid #cbd5e1;
}

.hall-ladder-row.rank-3 {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), transparent);
  border-left: 3px solid #f97316;
}

.hall-ladder-row.is-player {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), transparent);
  border-left: 3px solid #38bdf8;
}

.hl-rank-badge {
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hl-rank-badge.gold { color: #facc15; }
.hl-rank-badge.silver { color: #e2e8f0; }
.hl-rank-badge.bronze { color: #fb923c; }
.hl-rank-badge.normal { color: #64748b; font-size: 12px; }

.hl-name-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hl-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hl-name-text {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.hl-title-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.hl-tier-badge {
  font-size: 12px;
  font-weight: 800;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hl-tier-badge.max-tier {
  color: #fb7185;
  text-shadow: 0 0 8px rgba(251, 113, 133, 0.6);
}

.hl-time-text {
  font-size: 12px;
  font-family: monospace;
  font-weight: 700;
  color: #38bdf8;
}

.hl-power-text {
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
}

.hl-unclaimed-text {
  color: #475569;
  font-style: italic;
  font-size: 12px;
}

/* Banner Inferior do Jogador */
.hall-player-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hall-player-badge, .hall-player-progress {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
}

.hp-val {
  font-size: 13.5px;
  font-weight: 900;
  color: #38bdf8;
}

.btn-hall-action {
  background: linear-gradient(135deg, #b45309, #d97706);
  border: 1px solid #fde047;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-hall-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

/* ==========================================
   MODAL DE REVELAÇÃO ÉPICA DE FORJA DE TITÃS (T14 & T15)
   ========================================== */
#titan-forge-reveal-modal {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#titan-forge-reveal-modal.hidden {
  display: none !important;
}

.titan-reveal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.94) 0%, rgba(5, 7, 15, 0.98) 100%);
  backdrop-filter: blur(12px);
}

.titan-reveal-phase-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 440px;
  max-width: 92vw;
  animation: revealBoxPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.titan-reveal-phase-box.hidden {
  display: none !important;
}

@keyframes revealBoxPop {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* FASE 1: FORGING ANIMATION */
.titan-forge-fx-container {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.titan-forge-rune-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 25px rgba(245, 158, 11, 0.25);
  animation: spinRune 12s linear infinite;
}

@keyframes spinRune {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.titan-forge-molten-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(245, 158, 11, 0.4) 50%, transparent 70%);
  filter: blur(8px);
  animation: moltenPulse 0.8s ease-in-out infinite alternate;
}

@keyframes moltenPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.titan-forge-anvil-icon {
  font-size: 68px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 16px #f59e0b) drop-shadow(0 0 24px #ef4444);
  animation: anvilVibrate 0.4s ease-in-out infinite;
}

@keyframes anvilVibrate {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.titan-forge-hammer-strike {
  font-size: 52px;
  position: absolute;
  top: 5px;
  right: 15px;
  z-index: 4;
  transform-origin: bottom right;
  animation: hammerSmashStrike 0.45s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px #fbbf24);
}

@keyframes hammerSmashStrike {
  0% { transform: rotate(-35deg) translate(-10px, -15px); }
  100% { transform: rotate(15deg) translate(0px, 0px); }
}

.titan-forge-sparks-emitter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.titan-forge-sparks-emitter .spark {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  animation: sparkBurst 0.9s ease-out infinite;
}

.titan-forge-sparks-emitter .s1 { top: 20%; left: 20%; animation-delay: 0.1s; }
.titan-forge-sparks-emitter .s2 { top: 15%; right: 25%; animation-delay: 0.3s; }
.titan-forge-sparks-emitter .s3 { bottom: 25%; left: 15%; animation-delay: 0.5s; }
.titan-forge-sparks-emitter .s4 { bottom: 20%; right: 20%; animation-delay: 0.2s; }
.titan-forge-sparks-emitter .s5 { top: 50%; right: 10%; animation-delay: 0.4s; }

@keyframes sparkBurst {
  0% { transform: scale(0.3) translate(0, 0); opacity: 0; }
  40% { transform: scale(1.3) translate(var(--tx, 8px), var(--ty, -12px)); opacity: 1; }
  100% { transform: scale(0.5) translate(var(--tx, 16px), var(--ty, -24px)); opacity: 0; }
}

.titan-forge-status-title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
  margin-bottom: 6px;
  text-align: center;
}

.titan-forge-status-sub {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 18px;
  text-align: center;
}

.titan-forge-progress-track {
  width: 320px;
  max-width: 80vw;
  height: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.titan-forge-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #38bdf8 100%);
  box-shadow: 0 0 12px #38bdf8;
  border-radius: 12px;
  transition: width 0.05s linear;
}

/* FASE 2: REVELAÇÃO DO ITEM */
.titan-reveal-sunburst {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(168, 85, 247, 0.15) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: sunburstPulse 3s ease-in-out infinite alternate;
}

@keyframes sunburstPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.titan-reveal-banner-header {
  margin-bottom: 12px;
  z-index: 2;
  text-align: center;
}

.titan-reveal-banner-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 5px 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid #fbbf24;
  color: #fde047;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.4);
  text-transform: uppercase;
}

.titan-reveal-banner-tag.is-excellent {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%), #0f172a;
  border-color: #22d3ee;
  color: #67e8f9;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.7);
  animation: excGlow 1.5s ease-in-out infinite alternate;
}

@keyframes excGlow {
  0% { filter: drop-shadow(0 0 8px #22d3ee); }
  100% { filter: drop-shadow(0 0 18px #facc15); }
}

.titan-reveal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 100%);
  border: 2px solid #a855f7;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}

.titan-reveal-card.card-t15 {
  border-color: #f43f5e;
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at 50% 0%, #3b0720 0%, #090d16 100%);
}

.titan-reveal-card.card-t14 {
  border-color: #a855f7;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at 50% 0%, #2e1065 0%, #090d16 100%);
}

.titan-reveal-card.is-excellent {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 20px rgba(250, 204, 21, 0.4), inset 0 0 25px rgba(6, 182, 212, 0.2) !important;
}

.titan-reveal-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: floatItem 3s ease-in-out infinite;
}

@keyframes floatItem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.titan-reveal-icon-svg {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.titan-reveal-icon-svg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.titan-reveal-item-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
}

.titan-reveal-item-tier-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #c084fc;
  margin-bottom: 10px;
}

.card-t15 .titan-reveal-item-tier-badge {
  color: #fb7185;
}

.titan-reveal-primary-stat-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.titan-reveal-primary-stat-val {
  font-size: 15px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.titan-reveal-substats-panel {
  width: 100%;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.titan-reveal-substats-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-align: left;
  margin-bottom: 6px;
}

.titan-reveal-substats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.titan-reveal-substat-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}

.titan-reveal-substat-pill.bonus-roll {
  border-color: #22d3ee;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.15);
}

.titan-reveal-lore-box {
  width: 100%;
  font-size: 11px;
  font-style: italic;
  color: #cbd5e1;
  opacity: 0.85;
  margin-top: 4px;
}

.titan-reveal-claim-btn {
  position: relative;
  z-index: 3;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 2px solid #fde047;
  border-radius: 12px;
  padding: 13px 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.titan-reveal-claim-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.8), 0 6px 20px rgba(0, 0, 0, 0.6);
}

.titan-reveal-claim-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* ======================================================== */
/* LEADERBOARD VICTORY & SPOILS MODAL (RNG CHEST + 2x AD)   */
/* ======================================================== */
.victory-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 4, 12, 0.90);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100050 !important;
  padding: 16px;
}

.victory-modal-overlay.hidden {
  display: none !important;
}

.victory-modal-box {
  background: linear-gradient(165deg, #181022 0%, #1e122b 50%, #0d0714 100%);
  border: 2px solid rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.40), inset 0 0 30px rgba(245, 158, 11, 0.15);
  border-radius: 24px;
  width: 550px;
  max-width: 95vw;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.victory-ribbon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  width: 100%;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 14px;
}

.victory-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.victory-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 20px rgba(250, 204, 21, 0.7), 0 2px 5px rgba(0,0,0,0.9);
  letter-spacing: 1.5px;
}

.victory-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  letter-spacing: 0.8px;
}

.chest-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

.chest-container {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
  padding: 16px;
}

.chest-container:hover {
  transform: scale(1.05);
}

.chest-icon-wrap {
  width: 105px;
  height: 105px;
  border-radius: 24px;
  background: radial-gradient(circle at center, #352052 0%, #150a24 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.55), inset 0 0 20px rgba(251, 191, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  animation: chestPulse 1.8s infinite alternate ease-in-out;
}

.chest-shake {
  animation: chestShakeAnim 0.6s ease-in-out !important;
}

.chest-prompt {
  font-size: 15px;
  font-weight: 900;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

.chest-hint {
  font-size: 12px;
  color: #94a3b8;
}

.rng-spinner-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px;
}

.rng-dice-spin {
  font-size: 54px;
  animation: diceRotate 0.6s infinite linear;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.8));
}

.rng-rolling-text {
  font-size: 15px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.rewards-list {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.reward-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.reward-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #fbbf24;
}

.reward-card.gold-card::before { background: #fde047; }
.reward-card.shard-card::before { background: #f97316; }
.reward-card.gear-card::before { background: #c084fc; }

.reward-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reward-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
}

.reward-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.reward-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reward-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.reward-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.reward-amount {
  font-size: 16px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reward-double-badge {
  display: none;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.action-row {
  width: 100%;
  display: none;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  margin-top: 6px;
}

.btn-exit-ok {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-exit-ok:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18);
}

.btn-double-ad {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 55%, #fde047 100%);
  border: 2px solid #ffffff;
  border-radius: 14px;
  color: #1a0c02;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  animation: pulseGold 2s infinite;
}

.btn-double-ad:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 34px rgba(251, 191, 36, 1);
}

.btn-double-ad .dice-icon {
  font-size: 22px;
  display: inline-block;
  animation: wiggleDice 2.2s infinite ease-in-out;
}

.ad-tag {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-toast {
  font-size: 12px;
  color: #4ade80;
  font-weight: 700;
  display: none;
  text-align: center;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* ========================================================================= */
/* EMPIRE ROADMAP MODAL                                                      */
/* ========================================================================= */
#roadmap-modal {
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}

.roadmap-modal-box {
  width: 100%;
  max-width: 1080px;
  max-height: 94vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(28, 21, 17, 0.98) 0%, rgba(14, 11, 9, 0.99) 100%);
  border: 2px solid #b45309;
  border-radius: 24px;
  padding: 16px 26px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(217, 119, 6, 0.25);
  position: relative;
  box-sizing: border-box;
}

.roadmap-modal-box::-webkit-scrollbar {
  width: 6px;
}
.roadmap-modal-box::-webkit-scrollbar-track {
  background: rgba(14, 11, 9, 0.8);
  border-radius: 4px;
}
.roadmap-modal-box::-webkit-scrollbar-thumb {
  background: #b45309;
  border-radius: 4px;
}

.roadmap-modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, #f59e0b, transparent);
}

/* Medieval Map SVG Styling & Centering */
.icon-medieval-map {
  width: 24px;
  height: 24px;
  display: block;
  margin: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.roadmap-icon-badge .icon-medieval-map {
  width: 32px;
  height: 32px;
}

.menu-card-icon .icon-medieval-map {
  width: 28px;
  height: 28px;
}

.roadmap-mini-icon .icon-medieval-map {
  width: 18px;
  height: 18px;
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 10px;
  margin-bottom: 14px;
  gap: 20px;
}

.roadmap-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.roadmap-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.3) 0%, rgba(24, 16, 12, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.roadmap-title-wrap h2 {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.roadmap-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.roadmap-cycle-pill {
  text-align: right;
}

.roadmap-cycle-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.roadmap-cycle-status {
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.roadmap-cycle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 2s infinite;
}

.roadmap-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(30, 24, 20, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde047;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.roadmap-close-btn:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}

.roadmap-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
}

.roadmap-stat-pill {
  background: rgba(18, 14, 12, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.roadmap-stat-pill-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.roadmap-stat-pill-val {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.roadmap-stat-pill.pvp {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(28, 16, 40, 0.88);
  box-shadow: inset 0 1px 3px rgba(168, 85, 247, 0.2), 0 0 12px rgba(168, 85, 247, 0.15);
}
.roadmap-stat-pill.pvp .roadmap-stat-pill-val { color: #d8b4fe; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 800; }
.roadmap-stat-pill.dungeon .roadmap-stat-pill-val { color: #fde047; }
.roadmap-stat-pill.raid .roadmap-stat-pill-val { color: #fca5a5; }
.roadmap-stat-pill.realm .roadmap-stat-pill-val { color: #7dd3fc; }

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-card {
  background: radial-gradient(circle at top left, rgba(38, 28, 22, 0.9) 0%, rgba(16, 12, 10, 0.96) 100%);
  border: 1.5px solid rgba(180, 83, 9, 0.5);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.roadmap-card.pvp-card {
  border-color: rgba(168, 85, 247, 0.85);
  background: radial-gradient(circle at top left, rgba(46, 22, 54, 0.95) 0%, rgba(18, 11, 22, 0.98) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.25);
}

.roadmap-card.pvp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #a855f7, #f59e0b);
}

.roadmap-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roadmap-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(24, 18, 14, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.roadmap-card-icon.pvp {
  background: rgba(42, 18, 62, 0.9);
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.roadmap-card-title-area {
  flex-grow: 1;
}

.roadmap-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.roadmap-card-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.4px;
}

.roadmap-badge-next {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.roadmap-badge-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.roadmap-badge-tag.multi {
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #d8b4fe;
}

.roadmap-badge-tag.dungeon {
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde047;
}

.roadmap-badge-tag.raid {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.roadmap-badge-tag.realm {
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
}

.roadmap-badge-tag.event {
  background: rgba(185, 28, 28, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.roadmap-badge-tag.expansion {
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #fdba74;
}

.roadmap-card-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 2px;
}

.roadmap-mini-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roadmap-mini-card:hover {
  transform: translateX(3px);
}

.roadmap-mini-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-mini-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.roadmap-mini-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.roadmap-mini-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}

/* Themes for mini-cards */
.roadmap-mini-card.pvp-theme {
  background: rgba(36, 16, 52, 0.7);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  box-shadow: inset 0 1px 3px rgba(168, 85, 247, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.roadmap-mini-card.pvp-theme:hover {
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.roadmap-mini-card.pvp-theme .roadmap-mini-title { color: #e9d5ff; }

.roadmap-mini-card.dungeon-theme {
  background: rgba(34, 24, 12, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: inset 0 1px 3px rgba(245, 158, 11, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.roadmap-mini-card.dungeon-theme:hover {
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.roadmap-mini-card.dungeon-theme .roadmap-mini-title { color: #fef08a; }

.roadmap-mini-card.raid-theme {
  background: rgba(38, 14, 18, 0.7);
  border: 1.5px solid rgba(244, 63, 94, 0.55);
  box-shadow: inset 0 1px 3px rgba(244, 63, 94, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.roadmap-mini-card.raid-theme:hover {
  border-color: #fda4af;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}
.roadmap-mini-card.raid-theme .roadmap-mini-title { color: #fecdd3; }

.roadmap-mini-card.realm-theme {
  background: rgba(12, 28, 42, 0.7);
  border: 1.5px solid rgba(14, 165, 233, 0.55);
  box-shadow: inset 0 1px 3px rgba(14, 165, 233, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.roadmap-mini-card.realm-theme:hover {
  border-color: #7dd3fc;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}
.roadmap-mini-card.realm-theme .roadmap-mini-title { color: #bae6fd; }

.roadmap-mini-card.event-theme {
  background: rgba(38, 12, 14, 0.7);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  box-shadow: inset 0 1px 3px rgba(239, 68, 68, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.roadmap-mini-card.event-theme:hover {
  border-color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
.roadmap-mini-card.event-theme .roadmap-mini-title { color: #fecaca; }

.roadmap-mini-card.expansion-theme {
  background: rgba(36, 18, 12, 0.7);
  border: 1.5px solid rgba(249, 115, 22, 0.55);
  box-shadow: inset 0 1px 3px rgba(249, 115, 22, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.roadmap-mini-card.expansion-theme:hover {
  border-color: #fed7aa;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}
.roadmap-mini-card.expansion-theme .roadmap-mini-title { color: #ffedd5; }

.roadmap-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid rgba(245, 158, 11, 0.25);
  padding-top: 14px;
  margin-top: 18px;
  font-size: 11px;
  color: #94a3b8;
}

.roadmap-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.roadmap-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.roadmap-footer-right {
  color: #ca8a04;
  font-weight: 600;
}

/* ============================================================================
   CITADEL MULTIPLAYER HUB & CHAT UI
   ============================================================================ */
.citadel-net-container {
  position: fixed;
  left: clamp(8px, 1.5vw, 20px);
  bottom: calc(clamp(8px, 1.5vh, 20px) + 295px * var(--ui-scale, 1));
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  font-family: 'Cinzel', serif;
  transform-origin: bottom left;
  scale: var(--ui-scale, 1);
  transition: scale 0.15s ease-out, bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Quando o tooltip do item estiver aberto, garante que o chat fique totalmente por baixo e sem capturar cliques */
body:has(#item-tooltip:not(.hidden)) .citadel-net-container {
  pointer-events: none !important;
}

.citadel-net-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #ca8a04;
  border-radius: 20px;
  padding: 6px 14px;
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.citadel-net-badge.online {
  border-color: #22c55e;
  color: #86efac;
}

.citadel-net-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ca8a04;
}

.citadel-net-badge.online .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.citadel-chat-box {
  width: 340px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(202, 138, 4, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(202, 138, 4, 0.2);
  pointer-events: auto;
}

.citadel-chat-messages {
  max-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-family: sans-serif;
  font-size: 12px;
}

.citadel-chat-messages:empty {
  display: none;
  margin-bottom: 0;
}

.citadel-chat-msg {
  color: #e2e8f0;
  line-height: 1.3;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.citadel-chat-msg .author {
  color: #f59e0b;
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

.citadel-chat-input-row {
  display: flex;
  gap: 6px;
}

#citadel-chat-input {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  font-family: sans-serif;
}

#citadel-chat-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

#citadel-chat-send {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  border: 1px solid #f59e0b;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

#citadel-chat-send:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

/* ==========================================================================
   OVERLAY DE ORIENTAÇÃO OBRIGATÓRIA HORIZONTAL (MOBILE LANDSCAPE LOCK)
   ========================================================================== */
#rotate-device-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  background: radial-gradient(circle at center, #1e1610 0%, #080706 100%);
  z-index: 2147483647;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  color: #fef08a;
  user-select: none;
  touch-action: none;
}

.rotate-phone-anim {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: 44px;
  height: 74px;
  border: 3px solid #f59e0b;
  border-radius: 9px;
  position: relative;
  background: #18181b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  animation: rotatePhone 2.2s infinite ease-in-out;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(220, 38, 38, 0.2));
  border-radius: 5px;
}

.rotate-arrow {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 26px;
  filter: drop-shadow(0 0 8px #f59e0b);
  animation: pulseRotate 2.2s infinite ease-in-out;
}

@keyframes rotatePhone {
  0%, 15% {
    transform: rotate(0deg);
  }
  50%, 75% {
    transform: rotate(-90deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

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

.rotate-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
  margin: 0 0 10px 0;
}

.rotate-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 320px;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.rotate-hint {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0;
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
  #rotate-device-overlay {
    display: flex !important;
  }
}

/* ── BOSS SUMMON PANEL (ABOVE BACKPACK ON ARENA ENTRY) ── */
#boss-summon-panel {
  position: absolute;
  bottom: calc(var(--safe-area-bottom, 0px) + 295px);
  left: calc(var(--safe-area-left, 0px) + 20px);
  width: 334px;
  box-sizing: border-box;
  z-index: 22;
  user-select: none;
  animation: bossPanelPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn-arena-boss-summon {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  border: 2.5px solid #ef4444;
  border-radius: 16px;
  color: #fef08a;
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.65), 0 6px 18px rgba(0, 0, 0, 0.75);
  letter-spacing: 0.5px;
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
  animation: bossPulse 1.8s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-arena-boss-summon:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.95);
}

@keyframes bossPulse {
  0% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 32px rgba(239, 68, 68, 0.95); }
}

