:root {
    --primary: #facc15;
    --deep-blue: #040b1a;
    --red: #ef4444;
    --green: #22c55e;
    --card-bg: rgba(15, 23, 42, 0.92);
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
 
body {
    background-color: var(--deep-blue);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}
 
/* ===== CONTAINER PRINCIPAL ===== */
.container {
    width: 95%;
    max-width: 480px;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 60px rgba(0,0,0,0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 10;
}
 
.admin-panel {
    text-align: left;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}
 
/* ===== TELA HOME ===== */
.main-title {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 3px 3px 0 #000;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
 
.subtitle {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 0.95rem;
}
 
.btn-start {
    background: var(--red);
    color: white;
    padding: 18px;
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    border: none;
    border-radius: 15px;
    width: 100%;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.1s;
    margin-bottom: 12px;
}
.btn-start:hover { transform: scale(1.02); }
 
.btn-admin {
    background: #1e293b;
    color: #94a3b8;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    border: 1px solid #334155;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s;
}
.btn-admin:hover { border-color: var(--primary); color: var(--primary); }
 
.btn-secondary {
    background: #1e293b;
    color: white;
    padding: 10px 20px;
    border: 1px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    width: 100%;
}
.btn-secondary.small { width: auto; padding: 6px 14px; font-size: 0.8rem; }
 
/* ===== QUIZ ===== */
.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    color: var(--primary);
}
 
.question-card { text-align: left; }
 
.question-text {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}
 
.opt-btn {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0;
    background: #1e293b;
    color: white;
    border: 2px solid #334155;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
    font-size: 0.95rem;
    position: relative;
    overflow: visible;
}
.opt-btn:not(:disabled):hover { border-color: var(--primary); }
.opt-btn:disabled { cursor: default; }
 
.correct { background: #15803d !important; border-color: var(--green) !important; }
.wrong   { background: #991b1b !important; border-color: var(--red) !important; }
 
.img-feedback {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
}
 
.loading-text { color: #94a3b8; text-align: center; padding: 20px 0; }
 
/* ===== RESULTADO ===== */
.result-score {
    font-size: 1.3rem;
    margin: 20px 0 30px;
    color: var(--primary);
    font-weight: 700;
}
 
/* ===== PERSONAGEM HELPER ===== */
.mini-helper {
    position: absolute;
    left: -55px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    z-index: 2000;
    animation: bounce 0.4s infinite alternate;
}
.mini-helper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes bounce {
    from { transform: translateY(-50%) translateY(0); }
    to   { transform: translateY(-50%) translateY(-8px); }
}
 
/* ===== EFEITOS DE ATAQUE ===== */
.attack-fx {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2100;
}
.kamehameha {
    width: 0; height: 20px;
    background: linear-gradient(to right, #fff, #60a5fa);
    box-shadow: 0 0 25px #fff;
    border-radius: 10px;
    animation: beamFx 0.5s forwards;
}
.rasengan {
    width: 45px; height: 45px;
    background: radial-gradient(circle, #fff, #3b82f6, #1d4ed8);
    border-radius: 50%;
    box-shadow: 0 0 30px #3b82f6;
    animation: rotateFx 0.3s infinite linear;
}
.gomu-gomu {
    font-family: 'Bangers', cursive;
    color: #ef4444;
    font-size: 1.6rem;
    white-space: nowrap;
    animation: impactFx 0.5s forwards;
    text-shadow: 2px 2px 0 #000;
}
.kaki-slash {
    width: 100px; height: 7px;
    background: #facc15;
    box-shadow: 0 0 15px #facc15;
    transform: rotate(45deg);
    animation: slashFx 0.3s forwards;
}
@keyframes rotateFx  { from { transform: rotate(0deg); }        to { transform: rotate(360deg); } }
@keyframes beamFx    { 0% { width: 0; opacity: 0; }             100% { width: 220px; opacity: 1; } }
@keyframes impactFx  { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes slashFx   { 0% { transform: rotate(45deg) scaleX(0); } 100% { transform: rotate(45deg) scaleX(1.2); } }
.shake-target { animation: shake 0.2s ease-in-out 2; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}
 
/* ===== MENU DE PODERES ===== */
.powers-dock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;
    z-index: 3000;
}
.main-power-btn {
    width: 55px; height: 55px;
    background: var(--red);
    border-radius: 50%;
    border: 3px solid var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.powers-list {
    display: flex;
    gap: 10px;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s ease-in-out, padding 0.4s ease-in-out;
    background: rgba(0,0,0,0.85);
    border-radius: 40px;
}
.powers-dock.active .powers-list {
    max-width: 400px;
    padding: 8px 15px;
    border: 1px solid var(--primary);
}
.power-item {
    width: 55px; height: 65px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}
.power-item:hover { transform: scale(1.1); background: rgba(255,255,255,0.15); }
.power-item img {
    width: 85%;
    height: 65%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}
.power-item span {
    font-size: 0.75rem;
    font-family: 'Bangers', cursive;
    color: var(--primary);
    margin-top: 2px;
}
 
/* ===== ADMIN ===== */
.admin-form-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.admin-form-card h3 {
    font-family: 'Bangers', cursive;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}
label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 10px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-input {
    width: 100%;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}
.admin-input:focus { outline: none; border-color: var(--primary); }
.admin-input option { background: #1e293b; }
.admin-btn-row { display: flex; gap: 10px; margin-top: 15px; }
.admin-msg { margin-top: 10px; font-size: 0.85rem; min-height: 20px; text-align: center; }
.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.admin-list-header h3 { font-family: 'Bangers', cursive; color: var(--primary); font-size: 1.2rem; }
.admin-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.admin-item-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-item-info strong { font-size: 0.9rem; line-height: 1.3; }
.admin-item-info small { color: #64748b; font-size: 0.8rem; }
.diff-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: bold;
    width: fit-content;
}
.diff-facil  { background: rgba(34,197,94,0.2);  color: #22c55e; border: 1px solid #22c55e; }
.diff-medio  { background: rgba(250,204,21,0.2); color: #facc15; border: 1px solid #facc15; }
.diff-dificil{ background: rgba(239,68,68,0.2);  color: #ef4444; border: 1px solid #ef4444; }
.admin-item-btns { display: flex; flex-direction: column; gap: 6px; }
.btn-edit, .btn-delete {
    padding: 6px 12px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}
.btn-edit   { background: #1d4ed8; color: white; }
.btn-delete { background: var(--red); color: white; }
 

.hidden { display: none !important; }

.hidden { display: none !important; }
