:root {
    --primary: #c84b31;
    --primary-hover: #a63d27;
    --poke-orange: #F08030;
    --bg-dark: #222;
    --bg-light: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Arial', sans-serif; }
body { background-color: var(--bg-dark); margin: 0; padding: 0; overflow-x: hidden; }

.hidden { display: none !important; }

/* ANIMAÇÃO GLOBAL DE CLIQUE EM TUDO QUE É PRESSIONÁVEL */
button:active, .list-item:active, .ability-box-btn:active, .evo-item:active, 
.team-slot:active, .move-row:active, .mini-poke-card:active, .hamburger-btn:active, 
#shiny-toggle:active, #cry-btn:active, .form-btn:active {
    transform: scale(0.94) !important;
    transition: transform 0.08s ease-in-out !important;
}

.app-container { 
    background-color: #e0e0e0; 
    width: 100%; 
    max-width: none; 
    margin: 0; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    padding-top: 68px;
}

/* CABEÇALHO INTELIGENTE (SMART STICKY HEADER) */
.header { 
    background-color: var(--primary); 
    padding: 10px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    z-index: 50;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    transition: transform 0.3s ease-in-out;
}
.header.header-hidden {
    transform: translateY(-100%);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.hamburger-btn {
    background: rgba(0,0,0,0.2);
    border: 2px solid white;
    color: white;
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO DEXKE COM FONTE POKÉMON LARANJA E STROKE PRETO */
.dexke-logo {
    font-family: 'Pokemon Solid', 'Impact', 'Arial Black', sans-serif;
    font-size: 30px;
    color: var(--poke-orange);
    -webkit-text-stroke: 2px #000;
    text-shadow: 3px 3px 0px #000, -1px -1px 0 #000;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    padding-bottom: 4px;
}

/* SIDEBAR LATERAL ESQUERDA */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 150;
}

.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    height: 100vh;
    background-color: #1e1e1e;
    z-index: 160;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.6);
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
    background-color: var(--primary);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #111;
}
.close-sidebar-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    overflow-y: auto;
}
.nav-btn { 
    width: 100%; 
    padding: 12px 15px; 
    font-size: 14px; 
    background-color: #2c2c2c; 
    border: 1px solid #444; 
    color: white; 
    font-weight: bold; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s; 
    text-align: left;
}
.nav-btn.active { background-color: var(--poke-orange); color: white; border-color: white; }
.nav-btn:hover { background-color: #3d3d3d; }
.battle-tab-btn { border: 1px solid var(--poke-orange); }

.lang-selector-container select { padding: 8px 10px; border-radius: 6px; border: 2px solid #000; font-weight: bold; background: white; color: var(--primary); cursor: pointer; outline: none; }

.search-container { padding: 15px; background-color: #fff; border-bottom: 2px solid #ccc; display: flex; flex-direction: column; gap: 10px;}
.search-container input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 15px; }
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group select { flex: 1; min-width: 130px; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; }

.aba-content { display: none; flex: 1; overflow-y: auto; }
.aba-content.active { display: block !important; }
.list-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 15px;}
.list-item { display: flex; align-items: center; background-color: white; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 10px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;}
.list-item:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.list-img-box { width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; margin-right: 15px; }
.list-img-box img { max-width: 100%; max-height: 100%; }
.list-info { flex: 1; display: flex; flex-direction: column; justify-content: center;}
.list-name { font-size: 16px; color: #333; text-transform: capitalize; font-weight: bold;}
.list-types { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.list-type-badge { padding: 3px 6px; border-radius: 4px; color: white; font-size: 10px; font-weight: bold; text-transform: uppercase; text-shadow: 1px 1px 1px rgba(0,0,0,0.5); }

/* MODAIS E SISTEMA DE ANIMAÇÃO DE BARALHO DE CARTAS */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.82); display: flex; justify-content: center; align-items: center; z-index: 200; overflow: hidden; perspective: 1000px; }
.modal-content { background-color: white; width: 95%; max-width: 540px; height: 92%; border-radius: 10px; padding: 20px 38px; overflow-y: auto; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); will-change: transform, opacity, filter; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #333; z-index: 10;}

.modal-card-clone {
    pointer-events: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.65) !important;
}

/* Avançar (Direita para Esquerda): Tira a carta da frente e revela a de baixo */
.card-exit-left { animation: cardExitLeftAnim 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.card-reveal-under { animation: cardRevealUnderAnim 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* Voltar (Esquerda para Direita): Nova carta vem da esquerda sobrepondo a atual */
.card-enter-left { animation: cardEnterLeftAnim 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.card-stay-under { animation: cardStayUnderAnim 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes cardExitLeftAnim {
    0% { transform: translateX(var(--drag-x, 0px)) rotate(var(--drag-rot, 0deg)); opacity: 1; }
    100% { transform: translateX(-125%) rotate(-8deg); opacity: 0; }
}

@keyframes cardRevealUnderAnim {
    0% { transform: scale(0.91) translateY(12px); filter: brightness(0.65); }
    100% { transform: scale(1) translateY(0); filter: brightness(1); }
}

@keyframes cardEnterLeftAnim {
    0% { transform: translateX(-125%) rotate(-8deg); box-shadow: 25px 0 40px rgba(0,0,0,0.7); }
    100% { transform: translateX(0) rotate(0deg); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
}

@keyframes cardStayUnderAnim {
    0% { transform: scale(1) translateY(0); filter: brightness(1); }
    100% { transform: scale(0.91) translateY(12px); filter: brightness(0.6); }
}

/* SETAS DE NAVEGAÇÃO LATERAIS NOS MODAIS */
.modal-nav-arrow {
    position: sticky;
    top: 48%;
    width: 34px;
    height: 48px;
    background: rgba(150, 150, 150, 0.25);
    color: #888;
    border: none;
    border-radius: 6px;
    font-size: 22px;
    cursor: pointer;
    z-index: 15;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-nav-arrow.left { float: left; margin-left: -32px; }
.modal-nav-arrow.right { float: right; margin-right: -32px; }
.modal-nav-arrow:hover { background: rgba(150, 150, 150, 0.45); color: #444; }
.modal-nav-arrow.clicked-orange, .modal-nav-arrow:active {
    background-color: var(--poke-orange) !important;
    color: white !important;
}

/* HABILIDADES EM BOX PARECENDO BOTÃO */
.abilities-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.ability-box-btn {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    text-transform: capitalize;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: 0.15s;
}
.ability-box-btn:hover {
    background: var(--primary);
    color: white;
}

/* LISTA DE POKÉMONS DENTRO DO MODAL DE HABILIDADES E MOVES */
.mini-poke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
}
.mini-poke-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    text-transform: capitalize;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mini-poke-card:hover { border-color: var(--primary); background: #fff8f6; }
.mini-poke-card img { width: 48px; height: 48px; }

#shiny-toggle:hover { transform: scale(1.2); }
#cry-btn:hover { transform: scale(1.2); }

.form-toggles { display: flex; gap: 6px; align-items: center; flex-wrap: wrap;}
.form-btn { font-size: 12px; font-weight: bold; border-radius: 4px; cursor: pointer; padding: 3px 8px; box-shadow: 1px 1px 3px rgba(0,0,0,0.3); transition: 0.2s; }
.form-base { background: #eee; color: #333; border: 1px solid #ccc;}
.form-mega-x { background: linear-gradient(135deg, #2980b9, #3498db); color: white; border:none; }
.form-mega-y { background: linear-gradient(135deg, #c0392b, #e74c3c); color: white; border:none; }
.form-mega-z { background: linear-gradient(135deg, #27ae60, #2ecc71); color: white; border:none; }
.form-dmax { background: linear-gradient(135deg, #d35400, #e67e22); color: white; border:none; font-size: 11px; }
.form-alola { background: linear-gradient(135deg, #f39c12, #f1c40f); color: white; border:none; }
.form-hisui { background: linear-gradient(135deg, #8e44ad, #9b59b6); color: white; border:none; }
.form-special { background: linear-gradient(135deg, #900c3f, #c70039); color: white; border:none; }

.modal-header { text-align: center; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.modal-header img { width: 140px; height: 140px; transition: 0.3s;}
.types { display: flex; gap: 5px; justify-content: center; margin-top: 10px;}
.type-badge { padding: 5px 10px; border-radius: 4px; color: white; font-size: 13px; font-weight: bold; text-transform: capitalize; text-shadow: 1px 1px 1px rgba(0,0,0,0.5);}
.info-section { margin-bottom: 20px; background: #f9f9f9; padding: 15px; border-radius: 8px;}
.info-section h3 { margin-bottom: 10px; font-size: 15px; color: var(--primary); border-bottom: 1px solid #ddd; padding-bottom: 5px; text-transform: uppercase;}
.info-section p { margin-bottom: 5px; font-size: 14px;}
.stat-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px;}

.btn-dark { background: #333; color: white; width: 100%; padding: 12px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s;}
.btn-dark:hover { background: #555; }
.btn-small { background: var(--primary); color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: bold; }

.damage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 5px; }
.dmg-item { display: flex; justify-content: space-between; font-size: 12px; padding: 6px; border-radius: 4px; border: 1px solid #ddd; font-weight: bold;}

.evo-chain { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;}
.evo-item { text-align: center; font-size: 12px; text-transform: capitalize; cursor: pointer; transition: 0.2s;}
.evo-item:hover { transform: scale(1.08); }
.evo-item img { width: 60px; height: 60px; margin-bottom: -5px; }
.evo-arrow { font-weight: bold; color: #ccc; }
.evo-method { color: #444; font-size: 10px; background: #e8e8e8; padding: 2px 6px; border-radius: 4px; margin-top: 5px; border: 1px solid #ccc; font-weight: bold;}

.move-section-title { font-size: 14px; font-weight: bold; margin: 15px 0 5px 0; color: #555; text-transform: uppercase;}
.move-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding: 10px 0; text-transform: capitalize; cursor: pointer;}
.move-row:hover { background: #eee; }
.move-lvl { color: #888; font-size: 13px; text-transform: none;}

.class-badge { font-size: 10px; padding: 3px 6px; border-radius: 4px; color: white; font-weight: bold; text-transform: uppercase;}
.class-physical { background-color: #c03028; } 
.class-special { background-color: #6890f0; } 
.class-status { background-color: #a8a878; } 

.team-builder-container { padding: 15px; }
.team-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-bottom: 15px;}
.team-slot { background: white; border: 2px dashed #ccc; border-radius: 8px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; position: relative; transition: 0.2s;}
.team-slot:hover { border-color: var(--primary); background: #fafafa;}
.team-slot img { max-height: 70px; }
.team-slot-name { font-size: 13px; text-transform: capitalize; font-weight: bold; text-align: center;}
.team-slot-remove { position: absolute; top: -8px; right: -8px; background: red; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.3);}

.type-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; margin: 0 auto; }
.type-table th, .type-table td { border: 1px solid #ddd; padding: 6px; }
.type-table th { background: var(--primary); color: white; text-transform: uppercase; font-size: 11px;}

/* SIMULADOR DE BATALHA 1v1 */
.battle-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 15px;
    padding: 15px;
}
.battle-card select {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-transform: capitalize;
}
.battle-setup-preview {
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}
.battle-setup-preview img { width: 96px; height: 96px; }
.iv-grid { display: flex; flex-direction: column; gap: 5px; background: #fff; padding: 8px; border-radius: 6px; border: 1px solid #ddd; }
.iv-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; gap: 8px; }
.iv-row input[type="number"] { width: 55px; padding: 4px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.moves-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }

.arena-field {
    background: linear-gradient(to bottom, #87CEEB 0%, #e0f6ff 55%, #8fbc8f 55%, #2e8b57 100%);
    border: 3px solid #333;
    border-radius: 10px;
    padding: 20px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.combatant { display: flex; align-items: center; gap: 15px; }
.cpu-side { justify-content: flex-end; }
.player-side { justify-content: flex-start; margin-top: 20px; }
.combatant img { width: 110px; height: 110px; filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4)); }
.hp-box {
    background: rgba(255,255,255,0.92);
    border: 2px solid #222;
    border-radius: 8px;
    padding: 8px 12px;
    width: 210px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}
.hp-bar-bg { width: 100%; height: 12px; background: #ddd; border-radius: 6px; overflow: hidden; margin: 5px 0; border: 1px solid #555; }
.hp-bar-fill { height: 100%; width: 100%; background: #2ecc71; transition: width 0.35s ease, background-color 0.35s ease; }

.battle-moves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.battle-move-btn {
    padding: 12px;
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-transform: capitalize;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.battle-log {
    margin-top: 15px;
    background: #1a1a1a;
    color: #f1f1f1;
    padding: 12px;
    border-radius: 8px;
    height: 170px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
}

.loading-message { padding: 40px; text-align: center; color: #555; font-weight: bold; font-size: 18px; }
#selecao-time-banner { background-color: var(--primary); color: white; padding: 15px; justify-content: space-between; align-items: center; font-weight: bold; position: sticky; top: 68px; z-index: 10; box-shadow: 0 4px 6px rgba(0,0,0,0.2);}
#selecao-time-banner button { padding: 8px 15px; background: white; color: var(--primary); border: none; border-radius: 5px; cursor: pointer; font-weight: bold;}

.app-footer { margin-top: auto; background-color: #1a1a1a; padding: 25px 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.app-footer a { display: flex; justify-content: center; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: bold; font-size: 15px; transition: 0.2s;}
.app-footer a:hover { color: var(--primary); transform: translateY(-2px);}
.copyright-notice { color: white; font-size: 11px; max-width: 600px; line-height: 1.5; margin: 0 auto; }
/* EMULADOR GBA */
.gba-wrapper { width: 100%; max-width: 720px; margin: 15px auto 0; background: #000; border-radius: 8px; overflow: hidden; }
.gba-game-box { width: 100%; aspect-ratio: 3 / 2; background: #000; overflow: hidden; }
.gba-game-box #gba-game { width: 100%; height: 100%; }
.gba-note { font-size: 12px; color: #777; }
.gba-bar { cursor: move; touch-action: none; user-select: none; -webkit-user-select: none; display: none; justify-content: space-between; align-items: center; background: var(--primary); color: #fff; font-size: 12px; font-weight: bold; padding: 4px 8px; }
.gba-bar button { background: rgba(0,0,0,0.25); color: #fff; border: none; border-radius: 4px; width: 26px; height: 22px; cursor: pointer; margin-left: 4px; touch-action: manipulation; }

/* Modo flutuante: aparece no canto enquanto você navega nas outras abas */
.gba-wrapper.gba-floating { position: fixed; right: 12px; bottom: 12px; width: min(var(--gba-w, 420px), 96vw); max-width: none; margin: 0; z-index: 120; box-shadow: 0 6px 20px rgba(0,0,0,0.6); border: 2px solid var(--primary); }
.gba-wrapper.gba-floating .gba-bar { display: flex; }
.gba-wrapper.gba-core-gb .gba-game-box { aspect-ratio: 10 / 9; }
.gba-wrapper.gba-collapsed .gba-game-box { aspect-ratio: auto !important; height: 0; overflow: hidden; }

/* Celular em pé: encolhe a interface do emulador (botões e controles) dentro da janelinha */
@media (max-width: 700px) and (orientation: portrait) {
    .gba-wrapper.gba-floating { --gba-ui: 0.6; }
    .gba-wrapper.gba-floating .gba-game-box #gba-game {
        width: calc(100% / var(--gba-ui)); height: calc(100% / var(--gba-ui));
        transform: scale(var(--gba-ui)); transform-origin: top left;
    }
}
@media (pointer: coarse) {
    .gba-bar button { width: 32px; height: 28px; }
}


/* ==========================================================
   MINHA DEX (Aba personalizada de criação e palpite de tipos)
   ========================================================== */
.minhadex-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

/* Card Principal de Introdução / Resumo */
.minhadex-intro-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary);
}

.minhadex-intro-card h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.minhadex-intro-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.minhadex-steps-box {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.minhadex-steps-box h3 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: bold;
}

.minhadex-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.minhadex-steps-list li {
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
    padding-left: 10px;
    border-left: 3px solid var(--poke-orange);
}

.minhadex-form-group {
    margin-bottom: 24px;
}

.minhadex-form-group label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.minhadex-region-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #2d3748;
    background: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}

.minhadex-region-select:focus {
    border-color: var(--primary);
}

.minhadex-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--poke-orange) 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(200, 75, 49, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.minhadex-btn-primary:hover {
    box-shadow: 0 6px 14px rgba(200, 75, 49, 0.45);
    transform: translateY(-2px);
}

/* Área de Gameplay */
.minhadex-game-header {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.minhadex-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.minhadex-badge-region {
    background: var(--bg-dark);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.minhadex-header-actions {
    display: flex;
    gap: 8px;
}

.minhadex-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.minhadex-progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.minhadex-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--poke-orange), var(--primary));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

/* Card Central do Pokémon */
.minhadex-poke-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 15px;
}

.minhadex-poke-num {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    letter-spacing: 1px;
}

.minhadex-poke-title {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    text-transform: capitalize;
    margin: 4px 0 12px;
}

.minhadex-art-box {
    width: 190px;
    height: 190px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(240, 128, 48, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.minhadex-art-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

.minhadex-official-types-container {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 auto 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.minhadex-official-label {
    font-size: 12px;
    font-weight: bold;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.minhadex-official-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.minhadex-btn-keep-official {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #334155;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.minhadex-btn-keep-official:hover {
    background: var(--poke-orange);
    color: white;
    border-color: var(--poke-orange);
}

.minhadex-selected-preview {
    min-height: 52px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.minhadex-type-pill {
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    user-select: none;
    transition: transform 0.1s;
}

.minhadex-type-pill:hover {
    transform: scale(1.05);
}

.minhadex-type-pill .remove-icon {
    font-size: 13px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid de Seleção dos 18 Tipos */
.minhadex-types-label {
    font-size: 13px;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 10px;
    text-align: center;
}

.minhadex-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .minhadex-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.minhadex-type-btn {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px 4px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.minhadex-type-btn:hover {
    filter: brightness(1.1);
}

.minhadex-type-btn.selected {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px #1a202c, 0 4px 10px rgba(0,0,0,0.3) !important;
    transform: scale(1.04);
}

.minhadex-type-btn.selected::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 11px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Controles de Navegação no Jogo */
.minhadex-actions-bar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.minhadex-btn-nav {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.minhadex-btn-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.minhadex-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.minhadex-btn-skip {
    background: #edf2f7;
    color: #718096;
    border: 1px dashed #cbd5e0;
}

.minhadex-btn-next {
    background: var(--primary);
    color: white;
    flex: 1;
    min-width: 180px;
    box-shadow: 0 3px 8px rgba(200, 75, 49, 0.3);
}

.minhadex-btn-next:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    box-shadow: none;
    cursor: not-allowed;
}

/* Tela de Resultados / Lista Final */
.minhadex-results-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 5px solid var(--poke-orange);
}

.minhadex-results-header h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 6px;
}

.minhadex-results-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.minhadex-stat-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.minhadex-stat-val {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.minhadex-stat-lbl {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.minhadex-results-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Filtro da Lista de Resultados */
.minhadex-filter-bar {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.minhadex-filter-bar input {
    flex: 2;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

.minhadex-filter-bar select {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Grid de Cards de Resultados */
.minhadex-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.minhadex-result-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    gap: 12px;
    align-items: center;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    border-left: 4px solid #cbd5e0;
}

.minhadex-result-card.match-exact {
    border-left-color: #2ecc71;
}

.minhadex-result-card.match-partial {
    border-left-color: #f39c12;
}

.minhadex-result-card.match-diff {
    border-left-color: #9b59b6;
}

.minhadex-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.14);
}

.minhadex-result-img-box {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minhadex-result-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.minhadex-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minhadex-result-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minhadex-result-name {
    font-size: 15px;
    font-weight: bold;
    color: #2d3748;
    text-transform: capitalize;
}

.minhadex-result-id {
    font-size: 12px;
    font-weight: bold;
    color: #a0aec0;
}

.minhadex-types-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #555;
    margin-top: 2px;
}

.minhadex-result-match-tag {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.tag-exact {
    background: #e8f8f0;
    color: #27ae60;
}

.tag-partial {
    background: #fef5e7;
    color: #d35400;
}

.tag-diff {
    background: #f4ecf7;
    color: #8e44ad;
}
