/* VOIDPACK: ECHO DEPTHS — Mobile-First Stylesheet */
/* Paleta: pastel escuro + neon roxo + amarelo */

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

:root {
  --bg-dark:       #0d0b1a;
  --bg-mid:        #1a1630;
  --bg-panel:      #12102a;
  --neon-purple:   #c060ff;
  --neon-yellow:   #ffe033;
  --neon-cyan:     #33ffee;
  --neon-pink:     #ff60b0;
  --neon-green:    #60ff99;
  --pastel-lavend: #b8a4e8;
  --pastel-rose:   #f0c0c8;
  --pastel-blue:   #90c8f0;
  --pastel-cream:  #f0e8c8;
  --text-main:     #e8e0f8;
  --text-dim:      #8878aa;
  --text-accent:   #ffe033;
  --border-glow:   rgba(192, 96, 255, 0.5);
  --soul-red:      #ff4444;
  --soul-blue:     #4488ff;
  --soul-green:    #44ff88;
  --cell-empty:    #1e1a38;
  --cell-hover:    #2a2450;
  --cell-item:     #2e2860;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  font-family: 'Press Start 2P', monospace;
  color: var(--text-main);
  touch-action: manipulation;
}

/* ===== TELAS ===== */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ===== TELA DE ABERTURA ===== */
#screen-title {
  background: linear-gradient(180deg, #0d0b1a 0%, #1a0d30 50%, #0d0b1a 100%);
  position: relative;
  overflow: hidden;
}

#screen-title .stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.title-logo {
  text-align: center;
  z-index: 2;
  padding: 20px;
}

.title-logo .game-name {
  font-size: clamp(18px, 5vw, 32px);
  color: var(--neon-purple);
  text-shadow:
    0 0 10px var(--neon-purple),
    0 0 30px var(--neon-purple),
    0 0 60px rgba(192,96,255,0.4);
  line-height: 1.4;
  letter-spacing: 2px;
}

.title-logo .game-subtitle {
  font-size: clamp(8px, 2.5vw, 12px);
  color: var(--pastel-lavend);
  margin-top: 12px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.title-logo .title-canvas {
  display: block;
  margin: 20px auto;
  image-rendering: pixelated;
}

.title-logo .tagline {
  font-size: clamp(6px, 2vw, 9px);
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--neon-yellow);
  margin-top: 8px;
  max-width: 320px;
  line-height: 1.8;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  width: 100%;
  max-width: 280px;
  z-index: 2;
}

.btn-main {
  background: linear-gradient(135deg, var(--bg-panel), #1e1840);
  border: 2px solid var(--neon-purple);
  color: var(--text-main);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 2.5vw, 11px);
  padding: 14px 20px;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
  box-shadow: 0 0 8px var(--border-glow);
}

.btn-main::before {
  content: '▶ ';
  color: var(--neon-yellow);
  font-size: 0.8em;
}

.btn-main:hover, .btn-main:active {
  background: linear-gradient(135deg, #2a2460, #1e1840);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  box-shadow: 0 0 16px rgba(255,224,51,0.5);
  transform: scale(1.02);
}

/* ===== TELA DO JOGO PRINCIPAL ===== */
#screen-game {
  background: var(--bg-dark);
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#screen-game.active { display: flex; }

/* Top bar HUD */
.hud-top {
  background: var(--bg-panel);
  border-bottom: 2px solid var(--border-glow);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 50px;
}

.hud-hp {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-hp-label {
  font-size: 7px;
  color: var(--text-dim);
}

.hud-hp-bar {
  width: 100px;
  height: 10px;
  background: #1a0a0a;
  border: 1px solid var(--soul-red);
  position: relative;
  overflow: hidden;
}

.hud-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #cc0000, var(--soul-red));
  transition: width 0.3s;
  box-shadow: 0 0 6px rgba(255,68,68,0.6);
}

.hud-soul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.soul-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.15s;
  image-rendering: pixelated;
}

.soul-icon.active { transform: scale(1.3); filter: brightness(1.5); }
.soul-icon:hover { transform: scale(1.2); }

.hud-stats {
  font-size: 7px;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.8;
}

.hud-stats span { color: var(--neon-yellow); }

/* Main game area */
.game-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Canvas de dungeon / combate */
#game-canvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Painel inferior: inventário + ações */
.game-bottom {
  background: var(--bg-panel);
  border-top: 2px solid var(--border-glow);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Tabs do painel inferior */
.panel-tabs {
  display: flex;
  border-bottom: 1px solid rgba(192,96,255,0.3);
}

.panel-tab {
  flex: 1;
  padding: 8px 4px;
  font-size: 6px;
  text-align: center;
  cursor: pointer;
  color: var(--text-dim);
  border: none;
  background: transparent;
  font-family: 'Press Start 2P', monospace;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
}

.panel-tab.active {
  color: var(--neon-yellow);
  border-bottom-color: var(--neon-yellow);
  background: rgba(255,224,51,0.05);
}

/* ===== INVENTÁRIO — MOCHILA 8x8 ===== */
#panel-inventory {
  padding: 8px;
  display: none;
}
#panel-inventory.active { display: block; }

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.inventory-title {
  font-size: 7px;
  color: var(--neon-purple);
  text-shadow: 0 0 6px var(--neon-purple);
}

.inventory-info {
  font-size: 6px;
  color: var(--text-dim);
}

.inventory-grid-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

#inventory-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  flex-shrink: 0;
}

.grid-cell {
  aspect-ratio: 1;
  background: var(--cell-empty);
  border: 1px solid rgba(100,80,160,0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, border-color 0.1s;
  min-width: 28px;
}

@media (max-width: 380px) {
  .grid-cell { min-width: 24px; }
}

.grid-cell:hover, .grid-cell.highlight {
  background: var(--cell-hover);
  border-color: var(--neon-purple);
}

.grid-cell.has-item {
  background: var(--cell-item);
  border-color: rgba(192,96,255,0.6);
}

.grid-cell.selected {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 6px rgba(255,224,51,0.6);
}

.grid-cell.cursed {
  background: #1a0820;
  border-color: #660088;
  animation: curseFlicker 2s infinite;
}

@keyframes curseFlicker {
  0%, 100% { border-color: #660088; }
  50% { border-color: #cc00ff; box-shadow: 0 0 4px #cc00ff; }
}

.item-sprite {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
}

.item-count {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 5px;
  color: var(--neon-yellow);
  text-shadow: 0 0 3px #000;
}

/* Painel lateral do item selecionado */
.item-detail {
  flex: 1;
  min-width: 0;
  background: rgba(30,26,56,0.8);
  border: 1px solid rgba(192,96,255,0.3);
  padding: 8px;
  min-height: 60px;
}

.item-detail-name {
  font-size: 7px;
  color: var(--neon-yellow);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-detail-type {
  font-size: 6px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.item-detail-desc {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--pastel-lavend);
  line-height: 1.4;
}

.item-detail-stats {
  font-size: 6px;
  color: var(--neon-cyan);
  margin-top: 4px;
  line-height: 1.8;
}

.craft-hint {
  font-size: 6px;
  color: var(--neon-green);
  margin-top: 4px;
  line-height: 1.6;
}

/* ===== PAINEL DE AÇÕES ===== */
#panel-actions {
  padding: 8px;
  display: none;
}
#panel-actions.active { display: block; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-action {
  background: linear-gradient(135deg, var(--bg-dark), #1e1840);
  border: 2px solid rgba(192,96,255,0.5);
  color: var(--text-main);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  line-height: 1.6;
}

.btn-action:active {
  transform: scale(0.97);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
}

.btn-action .action-icon {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.btn-action.attack { border-color: rgba(255,68,68,0.6); }
.btn-action.defend { border-color: rgba(68,136,255,0.6); }
.btn-action.skill  { border-color: rgba(192,96,255,0.6); }
.btn-action.item   { border-color: rgba(255,224,51,0.6); }

/* ===== PAINEL DE CRAFTING ===== */
#panel-craft {
  padding: 8px;
  display: none;
}
#panel-craft.active { display: block; }

.craft-slots {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.craft-slot {
  width: 50px;
  height: 50px;
  background: var(--cell-empty);
  border: 2px dashed rgba(192,96,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 6px;
  color: var(--text-dim);
  text-align: center;
  transition: border-color 0.15s;
}

.craft-slot.filled {
  border-style: solid;
  border-color: var(--neon-purple);
  background: var(--cell-item);
}

.craft-arrow {
  font-size: 16px;
  color: var(--neon-yellow);
}

.craft-result {
  width: 50px;
  height: 50px;
  background: var(--cell-empty);
  border: 2px solid rgba(255,224,51,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  color: var(--text-dim);
}

.craft-result.ready {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(255,224,51,0.5);
  animation: craftPulse 1s infinite;
}

@keyframes craftPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255,224,51,0.4); }
  50% { box-shadow: 0 0 14px rgba(255,224,51,0.8); }
}

.btn-craft {
  width: 100%;
  background: linear-gradient(135deg, #1a1020, #2a1840);
  border: 2px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 6px rgba(255,224,51,0.6);
}

.btn-craft:active { transform: scale(0.98); background: #1a1840; }
.btn-craft:disabled { opacity: 0.4; cursor: not-allowed; }

.recipes-list {
  margin-top: 10px;
  max-height: 80px;
  overflow-y: auto;
}

.recipe-hint {
  font-size: 6px;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 1px solid rgba(100,80,160,0.2);
  line-height: 1.6;
}

.recipe-hint .res { color: var(--neon-green); }

/* ===== TELA DE DIÁLOGO ===== */
#screen-dialog {
  background: rgba(0,0,0,0.85);
  z-index: 50;
  justify-content: flex-end;
  padding: 12px;
}

.dialog-box {
  background: var(--bg-panel);
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 20px var(--border-glow);
  padding: 16px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.dialog-speaker {
  font-size: 8px;
  color: var(--neon-yellow);
  text-shadow: 0 0 6px var(--neon-yellow);
  margin-bottom: 10px;
}

.dialog-portrait {
  display: block;
  margin-right: 12px;
  float: left;
  image-rendering: pixelated;
}

.dialog-text {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 60px;
  overflow: hidden;
}

.dialog-text .highlight { color: var(--neon-yellow); }
.dialog-text .creepy { color: var(--neon-pink); }

.dialog-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.dialog-choice {
  background: var(--bg-dark);
  border: 1px solid rgba(192,96,255,0.4);
  color: var(--text-main);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.dialog-choice:before { content: '> '; color: var(--neon-purple); }
.dialog-choice:active { border-color: var(--neon-yellow); color: var(--neon-yellow); }

.dialog-continue {
  font-size: 7px;
  color: var(--neon-purple);
  text-align: right;
  margin-top: 10px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== TELA DE COMBATE ===== */
#screen-combat {
  background: var(--bg-dark);
  flex-direction: column;
}

.combat-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#combat-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.combat-hud {
  padding: 8px 12px;
  background: var(--bg-panel);
  border-top: 2px solid var(--border-glow);
}

.combat-log {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--text-main);
  min-height: 36px;
  margin-bottom: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(100,80,160,0.3);
  line-height: 1.4;
}

.combat-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-combat {
  flex: 1;
  min-width: 60px;
  background: linear-gradient(135deg, var(--bg-dark), #1e1840);
  border: 2px solid rgba(192,96,255,0.4);
  color: var(--text-main);
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 10px 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-combat:active {
  transform: scale(0.96);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
}

.btn-combat.soul-red   { border-color: rgba(255,68,68,0.6); }
.btn-combat.soul-blue  { border-color: rgba(68,136,255,0.6); }
.btn-combat.soul-green { border-color: rgba(68,255,136,0.6); }

/* Enemy HP bar */
.enemy-hp-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.enemy-name {
  font-size: 7px;
  color: var(--neon-pink);
  white-space: nowrap;
}

.enemy-hp-bar {
  flex: 1;
  height: 10px;
  background: #1a0a14;
  border: 1px solid var(--neon-pink);
  position: relative;
  overflow: hidden;
}

.enemy-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #880033, var(--neon-pink));
  transition: width 0.4s;
  box-shadow: 0 0 6px rgba(255,96,176,0.5);
}

/* ===== TELA DE MAPA ===== */
#screen-map {
  background: var(--bg-dark);
  padding: 16px;
}

.map-title {
  font-size: 10px;
  color: var(--neon-purple);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px var(--neon-purple);
}

.map-biomes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.biome-node {
  background: var(--bg-panel);
  border: 2px solid rgba(100,80,160,0.5);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.biome-node.current {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(255,224,51,0.3);
}

.biome-node.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.biome-node.completed {
  border-color: var(--neon-green);
  opacity: 0.7;
}

.biome-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.biome-info { flex: 1; }

.biome-name {
  font-size: 8px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.biome-desc {
  font-size: 6px;
  color: var(--text-dim);
  line-height: 1.6;
}

.biome-status {
  font-size: 7px;
}

/* ===== TELA GAME OVER / VITÓRIA ===== */
#screen-gameover, #screen-victory {
  background: radial-gradient(ellipse at center, #200a30 0%, #0d0b1a 80%);
  flex-direction: column;
  padding: 30px 20px;
  text-align: center;
  gap: 16px;
}

.gameover-title {
  font-size: clamp(16px, 5vw, 28px);
  color: var(--soul-red);
  text-shadow: 0 0 20px rgba(255,68,68,0.8);
  line-height: 1.4;
}

.victory-title {
  font-size: clamp(14px, 4.5vw, 24px);
  color: var(--neon-yellow);
  text-shadow: 0 0 20px rgba(255,224,51,0.8);
  line-height: 1.4;
}

.result-canvas {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}

.result-quote {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--pastel-lavend);
  max-width: 300px;
  line-height: 1.5;
  font-style: italic;
}

.result-stats {
  font-size: 7px;
  color: var(--text-dim);
  line-height: 2.2;
}

.result-stats span { color: var(--neon-cyan); }

/* ===== TELA DE LOJA ===== */
#screen-shop {
  background: var(--bg-dark);
  padding: 12px;
  overflow-y: auto;
}

.shop-header {
  text-align: center;
  margin-bottom: 16px;
}

.shop-title {
  font-size: 10px;
  color: var(--neon-purple);
  text-shadow: 0 0 8px var(--neon-purple);
  margin-bottom: 4px;
}

.shop-keeper-text {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--pastel-lavend);
  line-height: 1.4;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.shop-item {
  background: var(--bg-panel);
  border: 1px solid rgba(100,80,160,0.4);
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.shop-item:active {
  border-color: var(--neon-yellow);
  background: #1e1840;
}

.shop-item.sold-out {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-item-name {
  font-size: 6px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.shop-item-desc {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 6px;
}

.shop-item-price {
  font-size: 7px;
  color: var(--neon-yellow);
  text-shadow: 0 0 4px rgba(255,224,51,0.5);
}

.shop-gold {
  font-size: 8px;
  color: var(--neon-yellow);
  text-align: right;
  margin-bottom: 10px;
}

/* ===== NOTIFICAÇÕES ===== */
.notification {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 2px solid var(--neon-purple);
  padding: 10px 16px;
  font-size: 8px;
  color: var(--text-main);
  z-index: 200;
  animation: notifSlide 0.3s ease-out;
  box-shadow: 0 0 16px var(--border-glow);
  white-space: nowrap;
  pointer-events: none;
}

@keyframes notifSlide {
  from { top: 40px; opacity: 0; }
  to   { top: 60px; opacity: 1; }
}

/* ===== EFEITOS DE ALMA ===== */
.soul-container {
  position: fixed;
  pointer-events: none;
  z-index: 100;
}

.soul-heart {
  position: absolute;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  animation: soulFloat 0.5s ease-out forwards;
}

@keyframes soulFloat {
  0%   { transform: scale(0) rotate(0deg); opacity: 1; }
  60%  { transform: scale(1.5) rotate(15deg); opacity: 1; }
  100% { transform: scale(0.5) rotate(-10deg) translateY(-30px); opacity: 0; }
}

/* ===== LOADING / TRANSITION ===== */
.fade-overlay {
  position: fixed;
  inset: 0;
  background: #0d0b1a;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.fade-overlay.fade-in  { opacity: 1; pointer-events: all; }
.fade-overlay.fade-out { opacity: 0; }

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 2px; }

/* ===== SAFE AREA MOBILE ===== */
@supports (padding: max(0px)) {
  .hud-top   { padding-top: max(8px, env(safe-area-inset-top)); }
  .game-bottom { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

/* ===== LANDSCAPE ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .game-bottom { max-height: 50vh; overflow-y: auto; }
  #game-canvas { max-height: 50vh; }
}

/* ===== PIXEL ART CANVAS UTILS ===== */
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ===== EQUIPAMENTOS ===== */
.equip-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.equip-slot {
  aspect-ratio: 1;
  background: rgba(30,26,56,0.8);
  border: 1px solid rgba(100,80,160,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s;
}

.equip-slot.filled {
  border-color: rgba(192,96,255,0.6);
  background: var(--cell-item);
}

.equip-slot:active { border-color: var(--neon-yellow); }

/* ===== SINERGIA INDICATOR ===== */
.synergy-badge {
  display: inline-block;
  background: rgba(192,96,255,0.2);
  border: 1px solid var(--neon-purple);
  padding: 2px 6px;
  font-size: 5px;
  color: var(--neon-purple);
  margin: 2px;
}

/* ===== PROGRESS BAR EXP ===== */
.exp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.exp-bar {
  flex: 1;
  height: 6px;
  background: #0d0a20;
  border: 1px solid rgba(100,80,160,0.5);
  overflow: hidden;
}

.exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #6030c0, var(--neon-purple));
  transition: width 0.5s;
}

.exp-label {
  font-size: 5px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ===== ANIMAÇÃO DE DANO ===== */
@keyframes damageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.shake { animation: damageShake 0.3s ease; }

/* ===== GLOW EFFECTS ===== */
.glow-purple { text-shadow: 0 0 8px var(--neon-purple); }
.glow-yellow { text-shadow: 0 0 8px var(--neon-yellow); }
.glow-pink   { text-shadow: 0 0 8px var(--neon-pink); }
.glow-cyan   { text-shadow: 0 0 8px var(--neon-cyan); }
