:root{
  --bg-color:#0a0a0a;
  --accent:#8eb2ff;
  --green:#46d369;
  --muted:#bdbdbd;
  --glass: rgba(255,255,255,0.06);
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:var(--font-sans);background:var(--bg-color);color:#fff}
body{
  background-image: url('assets/fundo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  overflow: hidden;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.98); } }
.fade-in { animation: fadeIn 0.3s ease-out forwards; }
.fade-out { animation: fadeOut 0.3s ease-in forwards; }

/* HUD e Ícone de Perfil */
.player-hud {
    position: fixed;
    top: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
#player-points-display { right: 20px; }
#playtime-display { right: 180px; }
#points-value, #playtime-value { color: var(--accent); margin-left: 8px; }

.profile-icon-btn { position: absolute; top: 20px; left: 20px; width: 48px; height: 48px; background-color: var(--glass); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.2s; }
.profile-icon-btn:hover { background-color: rgba(255,255,255,0.1); transform: scale(1.1); }
.profile-icon-btn svg { width: 28px; height: 28px; }

/* Menu Principal */
.menu-container{ display: block; width: min(920px, 92vw); max-width: 920px; padding: 36px; backdrop-filter: blur(6px); background: linear-gradient(180deg, rgba(10,10,10,0.45), rgba(10,10,10,0.6)); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); position: relative; text-align:center; z-index:1; }
.title{ width: 70%; max-width: 640px; height: auto; margin: 0 auto 28px auto; display:block; }
.menu{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
.btn{ min-width:160px; padding:14px 18px; border-radius:10px; border:1px solid rgba(255,255,255,0.08); background:var(--glass); color:var(--muted); font-weight:600; cursor: default; position:relative; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-transform: uppercase; letter-spacing: 0.8px; font-size:14px; }
.btn.primary{ color: #061233; background: linear-gradient(180deg, var(--accent), #6fa0ff); box-shadow: 0 6px 18px rgba(63,107,255,0.22); cursor: pointer; border: none; }
.btn.primary:hover{ transform: translateY(-4px); box-shadow: 0 12px 30px rgba(63,107,255,0.28); }
.btn.disabled{ opacity:0.58; pointer-events:auto; }
.btn.disabled::after{ content: attr(data-note); position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size:11px; color:var(--muted); opacity:0.9; }
.version{ position:absolute; right:12px; bottom:10px; font-size:12px; color:var(--muted); opacity:0.9; }

/* Base para todas as telas Overlay */
.overlay-bg {
    position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); pointer-events: none;
}
.overlay-bg[aria-hidden="false"] { pointer-events: auto; }

/* Z-index para empilhar as telas */
#selector, #saveSlots, #extras-menu, #cards-gallery, #profile-overlay, #dex-overlay, #profile-creation-overlay { z-index: 10; }
.card-detail-modal, .dex-detail-modal { z-index: 20; }
#admin-panel-overlay { z-index: 1000; }

/* Painel de Seleção de Pixelmon */
.selector-panel{ width: min(1000px, 92vw); max-height: 78vh; position: relative; display:flex; border-radius:14px; overflow:hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.7); }
.selector-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter: saturate(0.95) brightness(0.9); z-index:0; }
.selector-content{ position:relative; z-index:2; width:100%; display:flex; gap:20px; padding: 28px; }
.left-list{ width: 260px; background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.85)); border-radius: 10px; padding: 6px 12px 6px 6px; display:flex; flex-direction:column; gap:10px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); max-height: 65vh; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--accent) rgba(0,0,0,0.3); }
.left-list::-webkit-scrollbar { width: 8px; }
.left-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 4px; }
.left-list::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 4px; }
.list-item{ display:flex; gap:10px; align-items:center; padding: 8px; border-radius:8px; cursor:pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; border: 2px solid transparent; background: rgba(255,255,255,0.02); text-align:left; }
.list-item:hover{ transform: translateX(6px); }
.list-item.selected{ border-color: var(--green); box-shadow: 0 10px 30px rgba(70,211,105,0.12); background: linear-gradient(90deg, rgba(70,211,105,0.06), rgba(255,255,255,0.02)); }
.thumb-wrap{ width:56px; height:56px; border-radius:8px; overflow:hidden; background:rgba(0,0,0,0.08); display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.thumb-img{ width:48px; height:48px; object-fit:contain; display:block; }
.label{ font-weight:700; font-size:13px; color:#e9eefc; }
.center-preview{ flex:1; margin-left: 6px; background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.8)); border-radius: 10px; padding: 18px; display:flex; flex-direction:column; align-items:center; gap:8px; justify-content:center; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.preview-name{ font-size:20px; font-weight:800; letter-spacing:0.6px; color:#fff; text-shadow: 0 4px 18px rgba(0,0,0,0.7); }
.preview-level{ font-size: 14px; color: var(--muted); font-weight: 600; }
.preview-sprite{ width:220px; height:220px; background-size: contain; background-repeat: no-repeat; background-position:center; border-radius:12px; background-color: rgba(0,0,0,0.25); box-shadow: 0 14px 40px rgba(0,0,0,0.6); }
.preview-stats{ width:100%; max-width:520px; background: rgba(255,255,255,0.02); border-radius:8px; padding:10px 12px; color:var(--muted); font-weight:700; display:flex; flex-direction:column; gap:6px; }
.stat-row { display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 8px; font-size:13px; color:#eef3ff; }
.stat-name { font-weight: 700; text-align: left; }
.stat-value { font-weight: 700; text-align: right; }
.stat-bar-container { width: 100%; height: 10px; background-color: rgba(0,0,0,0.3); border-radius: 5px; overflow: hidden; position: relative; }
.stat-bar-fill { height: 100%; border-radius: 5px; transition: width 0.4s ease-out; }
.stat-hp  { background-color: #46d369; } .stat-atk { background-color: #ff6a6a; } .stat-def { background-color: #6a95ff; } .stat-spd { background-color: #ffda6a; }
.preview-actions{ margin-top:8px; display:flex; align-items:center; gap:8px; }
.selector-version{ position:absolute; right:12px; bottom:10px; font-size:12px; color:var(--muted); z-index:3; }

/* TELA DE SAVE SLOTS e CRIAÇÃO DE PERFIL */
.save-slot-panel, .profile-creation-panel { min-height: 400px; width: min(600px, 90vw); background: linear-gradient(180deg, rgba(15, 18, 28, 0.85), rgba(8, 10, 15, 0.95)); border-radius: 14px; padding: 24px; box-shadow: 0 15px 45px rgba(0,0,0,0.6); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; color: #e9eefc; display:flex; flex-direction:column; justify-content:center; }
.save-slot-panel h2, .profile-creation-panel h2 { margin-top: 0; margin-bottom: 20px; font-weight: 700; }
.form-group, #profile-creation-form { margin-bottom: 20px; text-align: left; }
.form-group label, #profile-creation-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form-group input, #profile-creation-form input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: #fff; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, #profile-creation-form input:focus { border-color: var(--accent); box-shadow: 0 0 15px rgba(142, 178, 255, 0.2); }
.slots-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.save-slot { position: relative; width: 100%; padding: 12px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.1); background: var(--glass); cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; transition: transform 0.2s, border-color 0.2s, background-color 0.2s; }
.save-slot:hover { transform: scale(1.02); border-color: var(--accent); }
.save-slot.empty:hover { border-color: var(--green); }
.slot-info { display: flex; flex-direction: column; } .slot-name { font-size: 16px; font-weight: 700; color: #fff; } .slot-details { font-size: 12px; color: var(--muted); }
.slot-team-preview { display: flex; gap: 4px; background-color: rgba(0,0,0,0.2); border-radius: 8px; padding: 4px; min-width: 56px; min-height: 56px; align-items: center; justify-content: center; }
.mini-sprite { width: 48px; height: 48px; object-fit: contain; }
.delete-btn { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none; background-color: #ff6a6a; color: white; font-weight: bold; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, transform 0.2s; display: flex; align-items: center; justify-content: center; line-height: 1; }
.save-slot:hover .delete-btn { opacity: 1; }
.delete-btn:hover { transform: scale(1.1); }

/* PERSONAGENS BLOQUEADOS */
.list-item.locked { cursor: not-allowed; filter: grayscale(80%); opacity: 0.7; }
.list-item.locked:hover { transform: none; border-color: transparent; }
.list-item.locked .thumb-wrap { position: relative; }
.list-item.locked .thumb-img{ filter: brightness(0.5) grayscale(1); }
.lock-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.6); color: #fff; opacity: 0; transition: opacity 0.2s; }
.list-item.locked:hover .lock-icon { opacity: 1; }
.lock-icon svg { width: 28px; height: 28px; }
.preview-sprite.locked { filter: grayscale(1) brightness(0.4); }
.unlock-condition { font-size: 16px; font-weight: 600; color: var(--muted); text-align: center; padding: 20px 0; }
.preview-stats.locked-preview { display: flex; align-items: center; justify-content: center; }
.unlock-buy { text-align: center; padding: 10px; }
.unlock-buy p { margin: 0 0 12px 0; font-size: 16px; }

/* TELA EXTRAS E DEX */
.extras-panel, .dex-panel { width: min(700px, 90vw); padding: 36px; background: linear-gradient(180deg, rgba(25,28,40,0.85), rgba(15,18,28,0.95)); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); text-align: center; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; }
.extras-panel h2, .dex-panel h2 { margin-top: 0; margin-bottom: 24px; }
.extras-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.dex-list { flex-grow: 1; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 8px; scrollbar-width: thin; scrollbar-color: var(--accent) rgba(0,0,0,0.3); }
.dex-list::-webkit-scrollbar { width: 8px; } .dex-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 4px; } .dex-list::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 4px; }
.dex-list-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--glass);
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.dex-list-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}
.dex-thumb { width: 40px; height: 40px; object-fit: contain; }
.dex-number { font-weight: bold; color: var(--muted); width: 40px; text-align: center; }
.dex-name { font-weight: bold; font-size: 16px; flex-grow: 1; text-align: left; }
.dex-types-container { display: flex; gap: 6px; }
.dex-type { padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: bold; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.type-fogo { background-color: #f56e54; } .type-agua { background-color: #54a1f5; } .type-planta { background-color: #61d466; } .type-sombrio { background-color: #624a8f; } .type-void { background-color: #a354f5; } .type-dragão { background: linear-gradient(45deg, #a354f5, #f56e54); } .type-vento { background-color: #a4d4d7; color: #222; } .type-rocha { background-color: #b8a26c; } .type-normal { background-color: #bdbdbd; color: #222; } .type-eletrico { background-color: #f7d33e; color: #222; }

/* MODAIS DE DETALHE (DEX E CARD) */
.card-detail-modal, .dex-detail-modal { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.card-detail-modal.visible, .dex-detail-modal.visible { opacity: 1; }
.card-detail-content, .dex-detail-content { position: relative; display: flex; gap: 24px; width: min(800px, 90vw); background: linear-gradient(180deg, #1d212c, #11131a); border-radius: 14px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.1); }
.close-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 32px; color: #fff; cursor: pointer; line-height: 1; z-index: 2; }
.card-detail-image { width: 250px; flex-shrink: 0; aspect-ratio: 2.5 / 3.5; background-color: #222; border-radius: 12px; background-size: cover; background-position: center; }
.card-detail-image.locked { filter: grayscale(1) brightness(0.6); }
.card-detail-info { color: #e9eefc; flex-grow: 1; }
.card-detail-info h3 { margin-top: 0; font-size: 24px; color: var(--accent); }
.card-detail-info .card-type-label { font-size: 14px; font-style: italic; color: var(--muted); margin: -10px 0 10px 0; }
.card-detail-info p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.card-detail-info hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 16px 0; }
.card-detail-info h4 { margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.dex-detail-content { flex-direction: column; }
.dex-detail-header { display: flex; align-items: center; gap: 20px; }
.dex-detail-sprite { width: 150px; height: 150px; background: rgba(0,0,0,0.2); border-radius: 10px; background-size: contain;
  background-repeat: no-repeat;
  background-position: center; }
.dex-detail-title h3 { margin: 0; font-size: 28px; }
.dex-detail-title .dex-types-container { margin-top: 10px; }
.dex-detail-body h4 { margin-top: 20px; } .dex-detail-body ul { list-style: none; padding: 0; } .dex-detail-body li { background: var(--glass); padding: 8px; border-radius: 5px; margin-bottom: 5px; }

/* GALERIA DE CARDS */
.cards-gallery-panel { width: min(800px, 95vw); height: min(700px, 90vh); padding: 24px; background: linear-gradient(180deg, rgba(15, 18, 28, 0.85), rgba(8, 10, 15, 0.95)); border-radius: 16px; box-shadow: 0 15px 45px rgba(0,0,0,0.6); text-align: center; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.1); }
.cards-gallery-panel h2 { margin-top: 0; margin-bottom: 20px; flex-shrink: 0; }
.cards-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; overflow-y: auto; padding: 10px; background-color: rgba(0,0,0,0.2); border-radius: 10px; }
.card-item { width: 100%; aspect-ratio: 2.5 / 3.5; background-color: #333; border-radius: 10px; background-size: cover; background-position: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 2px solid rgba(255,255,255,0.2); }
.card-item:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.card-item.locked { filter: grayscale(1) brightness(0.5); }
.card-item.locked:hover { box-shadow: 0 0 20px #ff6a6a; }
#card-equip-action .btn { margin-top: 15px; }

/* PERFIL DO JOGADOR */
.profile-panel { width: min(800px, 95vw); max-height: 90vh; overflow-y: auto; background: linear-gradient(180deg, #1d212c, #11131a); border-radius: 14px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.7); position: relative; border: 1px solid rgba(255,255,255,0.1); color: #e9eefc; }
.profile-panel h2 { margin-top: 0; text-align: center; }
.profile-content { display: flex; flex-direction: column; gap: 20px; }
.profile-header { display: flex; gap: 20px; align-items: center; background: rgba(0,0,0,0.2); padding: 16px; border-radius: 10px; }
.profile-pic-container { text-align: center; }
#profile-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.upload-btn { margin-top: 8px; font-size: 12px; }
#profile-player-name { margin: 0 0 8px 0; font-size: 28px; }
.stat-item { font-size: 14px; color: var(--muted); }
.stat-item span { color: #fff; font-weight: bold; }
.profile-section h4 { margin: 0 0 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.profile-team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.team-slot { aspect-ratio: 1/1; background: rgba(0,0,0,0.2); border-radius: 8px; }
.profile-dual-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card-slot { aspect-ratio: 2.5/3.5; background: rgba(0,0,0,0.2); border-radius: 8px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.profile-achieve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achieve-slot { aspect-ratio: 1/1; background: rgba(0,0,0,0.2); border-radius: 50%; }
.team-slot.empty, .card-slot.empty, .achieve-slot.empty { border: 2px dashed rgba(255,255,255,0.1); }

/* PAINEL DE ADMINISTRADOR */
.admin-panel { width: min(500px, 90vw); background: linear-gradient(180deg, #2a2f3d, #1e222c); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); color: #fff; text-align: center; position: relative; }
.admin-panel.wide { width: min(700px, 95vw); }
.admin-panel h2 { margin-top: 0; color: var(--accent); }
#admin-login-form input { z-index: 1001; position: relative; width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.2); color: #fff; margin: 10px 0; font-size: 16px; }
.admin-content { display: flex; gap: 24px; text-align: left; }
.admin-column { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.admin-column > h4 { text-align: center; }
.tool-group { display: flex; gap: 10px; align-items: center; justify-content: center; }
.admin-input { padding: 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.2); color: #fff; font-size: 14px; max-width: 120px; }
.form-actions { margin-top: 24px; }
.admin-pixelmon-list { max-height: 300px; overflow-y: auto; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: var(--accent) rgba(0,0,0,0.3); }
.admin-pixelmon-list::-webkit-scrollbar { width: 8px; }
.admin-pixelmon-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 4px; }
.admin-pixelmon-list::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 4px; }
.admin-list-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 6px; }
.admin-list-item .btn { padding: 4px 8px; min-width: 90px; font-size: 12px; }
.admin-list-item .btn.locked { background-color: #a83c3c; color: #fff; }
.admin-list-item .btn.unlocked { background-color: #3a8e4f; color: #fff; }

/* responsividade */
@media (max-width:920px){
  .selector-content{ flex-direction:column; align-items:center; padding:18px; gap:14px; }
  .left-list{ width:100%; max-height: 150px; flex-direction: row; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 6px; }
  .list-item{ flex-direction:column; align-items:center; padding:6px; width:120px; flex-shrink: 0; }
  .center-preview{ width:100%; margin-left:0; padding:14px; }
  .preview-sprite{ width:160px; height:160px; }
  .preview-stats{ max-width:100%; }
  .card-detail-content { flex-direction: column; align-items: center; }
  .card-detail-image { width: 200px; }
  .extras-nav { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-header { flex-direction: column; }
  .profile-dual-section { grid-template-columns: 1fr; }
  .admin-content { flex-direction: column; }
}

/* Adicione este código ao FINAL do seu arquivo styles.css */

#admin-panel-overlay {
  pointer-events: auto; /* Garante que o overlay aceite cliques */
}

#admin-login-form input {
  pointer-events: auto; /* Garante que o input aceite cliques */
}

/* Adicione ao final de styles.css */
.ability-detail-item {
  background: var(--glass); 
  padding: 12px; 
  border-radius: 8px; 
  margin-bottom: 8px; 
  border: 1px solid rgba(255,255,255,0.1);
}

.ability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ability-name {
  font-weight: bold;
  font-size: 16px;
  color: var(--accent);
}

.ability-level {
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(0,0,0,0.3);
  padding: 3px 6px;
  border-radius: 4px;
}

.ability-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.ability-damage {
  font-size: 13px;
  font-weight: bold;
  color: #ff6a6a;
  text-align: right;
}

/* Adicione no final de styles.css */
#dex-detail-level-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#dex-detail-level {
  font-size: 16px;
  font-weight: bold;
  color: var(--muted);
  background-color: rgba(0,0,0,0.2);
  padding: 4px 8px;
  border-radius: 6px;
}

.preview-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rarity-tag {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rarity-inicial { background-color: #6a95ff; }
.rarity-comum { background-color: #9e9e9e; }
.rarity-raro { background-color: #46d369; }
.rarity-semi-lendário { background-color: #a354f5; }
.rarity-mítico { background: linear-gradient(45deg, #f56e54, #ffda6a); }
.rarity-lendário { background: linear-gradient(45deg, #ff6a6a, #f5c400, #a354f5); }

.dex-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinha nome e tipos à esquerda */
    gap: 5px;
    min-width: 0; /* Impede que o texto empurre outros elementos */
}

.dex-name {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;      /* Impede que o nome quebre em duas linhas */
    overflow: hidden;         /* Esconde o que não couber */
    text-overflow: ellipsis;  /* Adiciona "..." se o nome for muito longo */
    width: 100%;
}

.dex-rarity-container {
    justify-self: end; /* Alinha o container da raridade à direita da sua coluna */
}

/* Você já deve ter essas regras, mas garanta que elas existam */
.rarity-tag {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Garante que a raridade não quebre linha */
}

/* EM styles.css -- ADICIONE NO FINAL */

.config-panel {
    width: min(600px, 90vw);
    padding: 36px;
    background: linear-gradient(180deg, rgba(25,28,40,0.85), rgba(15,18,28,0.95));
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.config-section {
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 10px;
    text-align: left;
}

.config-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--accent);
}

.config-section p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px 0;
}

.config-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
