/* Estilos extraídos de character.html */
.header-info-bar { width: 90%; max-width: 600px; margin: 5px auto 15px auto; text-align: center; font-size: 0.8em; color: #a0a0a0; }
  .header-info-bar a { color: var(--cor-titulo-dourado); text-decoration: none; }
  .header-info-bar a:hover { text-decoration: underline; }
  .character-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }
  .character-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .character-display {
    position: relative;
    width: 200px;
    height: 250px;
  }
  .character-display img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
  }
  .left-slots, .right-slots {
    display: flex;
    flex-direction: column;
    height: 250px;
    justify-content: space-between;
    gap: 5px;
  }
  
/* ===== REGRAS SUBSTITUÍDAS PELAS DO style.css?v=1763872063691 ===== */
  .slot-square {
    width: 50px; height: 50px; background: rgba(255, 255, 255, 0.1);
    border-radius: 5px; background-size: contain; background-position: center;
    background-repeat: no-repeat; position: relative; cursor: pointer;
    border: 2px solid #444;
  }
  @media (min-width: 601px) {
    .character-display { width: 380px; height: 440px; }
    .left-slots, .right-slots { height: 440px; gap: 10px; }
    .slot-square { width: 80px; height: 80px; }
  }
  
  .borda-comum    { border-color: #9d9d9d !important; }
  .borda-raro     { border-color: #1eff00 !important; }
  .borda-epico    { border-color: #9f00ff !important; }
  .borda-lendario { border-color: #ff7f00 !important; }
  .borda-mistico  { border-color: #ff0000 !important; }

  .afiacao-level { 
      position: absolute; 
      top: -5px;
      left: -5px;
      font-size: 0.9em; 
      font-weight: bold; 
      color: var(--cor-titulo-dourado);
      text-shadow: 1px 1px 2px #000;
      z-index: 10;
      /* Removido background, padding e border das regras inline antigas */
  }

  .runa-icon-overlay {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    display: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.7));
  }
/* ===== FIM DAS REGRAS SUBSTITUÍDAS ===== */

  .char-header-info { text-align: center; margin: 15px 0; }
  .char-header-info h1, .char-header-info p { margin: 4px 0; }
  .char-header-info a { color: var(--cor-texto-principal); text-decoration: none; }
  .char-header-info a:hover { text-decoration: underline; }

  .clan-info-header {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 5px 10px;
      background: rgba(0,0,0,0.2);
      border-radius: 5px;
  }
  .clan-info-header .clan-icon {
      width: 30px;
      height: 30px;
      border: 1px solid var(--cor-borda-container);
      border-radius: 4px;
      background-size: cover;
      background-position: center;
  }

  /* (O CSS do Modal do HTML extraído foi mantido, pois é global) */
  .modal-backdrop {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.7); display: none; justify-content: center; align-items: center; z-index: 2000;
  }
  .modal-content {
      background: var(--cor-fundo-geral); border: 2px solid var(--cor-borda-container);
      border-radius: 8px; padding: 20px; width: 90%; max-width: 400px;
  }
  .modal-header { display: flex; justify-content: space-between; align-items: center; }
  .modal-header h3 { color: var(--cor-titulo-dourado); }
  .modal-close-btn { background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; }
  .modal-body p { margin: 10px 0; font-size: 0.9em; }
  .summary-item { padding: 8px 15px !important; }
  .equipment-summary { display: flex; flex-direction: column; gap: 4px; }
  .summary-label { color: #aaa; }

  .summary-runes-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .rune-icons-wrapper {
    display: flex;
    gap: 4px;
  }
  .summary-rune-icon {
    width: 22px;
    height: 22px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #555;
    border-radius: 3px;
  }

  .char-power-container {
      cursor: pointer;
      user-select: none; 
  }
  .power-breakdown {
      display: none; 
      font-size: 0.8em;
      color: var(--cor-texto-secundario);
      margin: 8px auto 0 auto;
      padding: 8px;
      background: rgba(0,0,0,0.3);
      border-radius: 4px;
      max-width: 250px;
      border: 1px solid #444;
  }
  .power-breakdown-stats {
      text-align: left;
      display: table; 
      margin: 0 auto;
  }
