* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c2e 0%, #1a1a3e 100%);
    overflow-x: hidden;
    color: #f0f0f0;
    min-height: 100vh;
}

/* ---------------- SPLASH SCREEN ---------------- */
@media {

    #splashScreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 30%, #2d1b69 70%, #0a0a1a 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: opacity 0.8s ease;
        overflow: hidden;
    }

    #splashScreen.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* Fundo com elementos mitológicos */
    .splash-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0.4;
    }

    .mythical-element {
        position: absolute;
        font-size: 60px;
        opacity: 0.1;
        animation: floatElement 20s infinite ease-in-out;
    }

    .temple-left {
        top: 20%;
        left: 5%;
        font-size: 80px;
        animation-delay: 0s;
    }

    .temple-right {
        top: 20%;
        right: 5%;
        font-size: 80px;
        animation-delay: 5s;
    }

    .lightning {
        top: 40%;
        left: 15%;
        font-size: 50px;
        animation: lightningFlash 10s infinite;
        animation-delay: 2s;
    }

    .shield {
        bottom: 30%;
        left: 10%;
        animation-delay: 8s;
    }

    .sword {
        bottom: 40%;
        right: 15%;
        animation-delay: 12s;
    }

    .scroll {
        top: 60%;
        right: 10%;
        font-size: 40px;
        animation-delay: 15s;
    }

    .mist-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(10, 10, 26, 0.8) 70%);
        z-index: 2;
    }

    /* Conteúdo principal */
    .splash-content {
        position: relative;
        z-index: 3;
        text-align: center;
        width: 100%;
        max-width: 800px;
        padding: 30px;
    }

    /* Logo */
    .splash-logo-container {
        position: relative;
        margin: 0 auto 40px;
        width: 400px;
        height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .splash-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 0 30px rgba(106, 17, 203, 0.5));
        animation: logoFloat 6s infinite ease-in-out;
    }

    .logo-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120%;
        height: 120%;
        background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
        z-index: -1;
        animation: pulseGlow 4s infinite alternate;
    }

    .logo-sparkle {
        position: absolute;
        top: 20%;
        left: 20%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        z-index: -1;
        animation: rotateSparkle 20s infinite linear;
    }

    /* Título */
    .splash-title {
        position: relative;
        margin-bottom: 50px;
        padding: 0 60px;
    }

    .title-text {
        font-family: "MedievalSharp", cursive;
        font-size: 48px;
        background: linear-gradient(45deg, #ffd700 20%, #ff8a00 40%, #ff416c 60%, #8a2be2 80%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
        margin-bottom: 10px;
        letter-spacing: 3px;
        animation: titleGlow 3s infinite alternate;
    }

    .title-subtitle {
        font-size: 18px;
        color: #aaa;
        letter-spacing: 2px;
        font-weight: 300;
        text-transform: uppercase;
        margin-top: 10px;
    }

    .title-ornament {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 32px;
        color: #ffd700;
        opacity: 0.5;
    }

    .title-ornament.left {
        left: 0;
    }

    .title-ornament.right {
        right: 0;
    }

    /* Container de carregamento */
    .loading-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 40px;
        padding: 30px;
        background: rgba(15, 15, 35, 0.7);
        border-radius: 20px;
        border: 2px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
    }

    .loading-container::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #8a2be2, #2575fc, #ffd700, #38ef7d);
        border-radius: 22px;
        z-index: -1;
        opacity: 0.3;
        animation: rotateBorder 10s linear infinite;
    }

    .loading-text {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        font-size: 18px;
        color: #ffd700;
        font-family: "MedievalSharp", cursive;
        min-height: 30px;
    }

    .loading-msg {
        margin-right: 5px;
    }

    .loading-dots {
        animation: dotsBlink 1.5s infinite;
    }

    /* Barra de carregamento */
    .loading-bar {
        position: relative;
        height: 25px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 15px;
        border: 2px solid rgba(255, 215, 0, 0.2);
    }

    .loading-bar-track {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 215, 0, 0.1) 25%,
                transparent 50%,
                rgba(138, 43, 226, 0.1) 75%,
                transparent 100%);
        background-size: 200% 100%;
        animation: shimmer 3s infinite linear;
    }

    .loading-bar-fill {
        position: absolute;
        top: 2px;
        left: 2px;
        height: calc(100% - 4px);
        width: 0%;
        background: linear-gradient(90deg, #6a11cb 0%, #2575fc 50%, #38ef7d 100%);
        border-radius: 12px;
        transition: width 0.3s ease;
        animation: fillPulse 2s infinite alternate;
    }

    .loading-bar-glow {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 100%);
        animation: glowMove 3s infinite linear;
        opacity: 0;
    }

    .loading-bar-runes {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        color: rgba(255, 215, 0, 0.3);
        font-size: 14px;
        font-family: monospace;
    }

    .loading-percentage {
        font-size: 24px;
        color: #ffd700;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        font-family: "MedievalSharp", cursive;
    }

    /* Símbolos decorativos */
    .loading-symbols {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 25px;
    }

    .loading-symbols .symbol {
        font-size: 24px;
        animation: symbolFloat 4s infinite ease-in-out;
        opacity: 0.7;
    }

    .loading-symbols .symbol:nth-child(1) {
        animation-delay: 0s;
    }

    .loading-symbols .symbol:nth-child(2) {
        animation-delay: 1s;
    }

    .loading-symbols .symbol:nth-child(3) {
        animation-delay: 2s;
    }

    .loading-symbols .symbol:nth-child(4) {
        animation-delay: 3s;
    }

    /* Container de dica */
    .tip-container {
        background: rgba(255, 215, 0, 0.1);
        border-radius: 15px;
        padding: 15px 25px;
        margin: 30px auto;
        max-width: 500px;
        display: flex;
        align-items: center;
        gap: 15px;
        border-left: 4px solid #ffd700;
        backdrop-filter: blur(5px);
    }

    .tip-icon {
        font-size: 24px;
        color: #ffd700;
        animation: tipPulse 2s infinite;
    }

    .tip-text {
        color: #e0d0b0;
        font-size: 14px;
        flex: 1;
        text-align: left;
    }

    /* Créditos */
    .credits {
        margin-top: 40px;
        color: rgba(255, 255, 255, 0.3);
        font-size: 12px;
        letter-spacing: 1px;
    }

    .version {
        font-weight: bold;
        margin-bottom: 5px;
        color: rgba(255, 215, 0, 0.5);
    }

    .copyright {
        font-size: 11px;
    }

    /* Animações */
    @keyframes logoFloat {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        25% {
            transform: translateY(-10px) rotate(1deg);
        }

        50% {
            transform: translateY(0) rotate(0deg);
        }

        75% {
            transform: translateY(10px) rotate(-1deg);
        }
    }

    @keyframes pulseGlow {
        0% {
            opacity: 0.3;
        }

        100% {
            opacity: 0.6;
        }
    }

    @keyframes rotateSparkle {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    @keyframes titleGlow {
        0% {
            text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
        }

        100% {
            text-shadow: 0 0 50px rgba(255, 215, 0, 0.8), 0 0 80px rgba(138, 43, 226, 0.5);
        }
    }

    @keyframes dotsBlink {

        0%,
        20% {
            opacity: 0.2;
        }

        50% {
            opacity: 1;
        }

        80%,
        100% {
            opacity: 0.2;
        }
    }

    @keyframes shimmer {
        0% {
            background-position: -200% 0;
        }

        100% {
            background-position: 200% 0;
        }
    }

    @keyframes fillPulse {
        0% {
            box-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
        }

        100% {
            box-shadow: 0 0 20px rgba(106, 17, 203, 0.8), 0 0 30px rgba(37, 117, 252, 0.5);
        }
    }

    @keyframes glowMove {
        0% {
            transform: translateX(-100%);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        30% {
            opacity: 1;
        }

        50% {
            transform: translateX(100%);
            opacity: 0;
        }

        100% {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    @keyframes symbolFloat {

        0%,
        100% {
            transform: translateY(0) scale(1);
            opacity: 0.7;
        }

        50% {
            transform: translateY(-15px) scale(1.2);
            opacity: 1;
        }
    }

    @keyframes floatElement {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        33% {
            transform: translateY(-20px) rotate(5deg);
        }

        66% {
            transform: translateY(10px) rotate(-5deg);
        }
    }

    @keyframes lightningFlash {

        0%,
        90%,
        100% {
            opacity: 0.1;
        }

        95% {
            opacity: 0.8;
        }
    }

    @keyframes rotateBorder {
        0% {
            filter: hue-rotate(0deg);
        }

        100% {
            filter: hue-rotate(360deg);
        }
    }

    @keyframes tipPulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 0.7;
        }

        50% {
            transform: scale(1.1);
            opacity: 1;
        }
    }

    /* Responsividade */
    @media (max-width: 768px) {
        .splash-logo-container {
            width: 300px;
            height: 165px;
        }

        .title-text {
            font-size: 36px;
        }

        .loading-container {
            padding: 20px;
            margin-bottom: 30px;
        }

        .loading-text {
            font-size: 16px;
        }

        .tip-container {
            padding: 12px 20px;
            margin: 20px auto;
        }
    }

    @media (max-width: 480px) {
        .splash-logo-container {
            width: 250px;
            height: 140px;
        }

        .title-text {
            font-size: 28px;
            letter-spacing: 2px;
        }

        .title-subtitle {
            font-size: 14px;
        }

        .splash-title {
            padding: 0 40px;
        }

        .title-ornament {
            font-size: 24px;
        }
    }


}

/* ---------------- FORMULÁRIO DE LOGIN ---------------- */
@media {

    /* ---------------- AUTENTICAÇÃO TEMÁTICA ---------------- */
    .auth-container {
        max-width: 450px;
        margin: 50px auto;
        padding: 30px 40px;
        background: linear-gradient(135deg, rgba(30, 25, 45, 0.95), rgba(20, 15, 35, 0.98));
        border-radius: 25px;
        border: 3px solid #8a2be2;
        box-shadow:
            0 20px 50px rgba(138, 43, 226, 0.3),
            0 0 30px rgba(106, 17, 203, 0.2),
            inset 0 0 50px rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        position: relative;
        overflow: hidden;
    }

    /* Banner temático */
    .auth-banner {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid rgba(212, 175, 55, 0.3);
        position: relative;
    }

    .auth-banner::before {
        content: "⚜";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        opacity: 0.5;
    }

    .auth-banner::after {
        content: "⚜";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        opacity: 0.5;
    }

    .banner-icon {
        font-size: 60px;
        margin-bottom: 15px;
        animation: pulseGlow 2s infinite;
        text-shadow: 0 0 20px #ffd700;
    }

    /* Substituir o ícone pelo logo */
    .logo-icon {
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }

    .banner-logo {
        width: 200px;
        height: 100px;
        object-fit: contain;
        border-radius: 15px;
        border: 2px solid rgba(212, 175, 55, 0.5);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        background: rgba(255, 255, 255, 0.05);
        animation: pulseGlow 2s infinite;
    }

    @keyframes pulseGlow {

        0%,
        100% {
            opacity: 1;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        }

        50% {
            opacity: 0.9;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
        }
    }

    /* Remover a animação anterior do banner-icon */
    .banner-icon {
        display: none;
        /* Oculta o ícone antigo ⚡ */
    }

    @keyframes pulseGlow {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.8;
            text-shadow: 0 0 30px #ffd700;
        }
    }

    .auth-title {
        font-family: "MedievalSharp", cursive;
        font-size: 32px;
        background: linear-gradient(45deg, #ffd700, #ff8a00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 8px;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    .auth-subtitle {
        color: #aaa;
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* Tabs temáticas */
    .auth-tabs {
        display: flex;
        gap: 15px;
        margin-bottom: 30px;
        background: rgba(255, 255, 255, 0.05);
        padding: 8px;
        border-radius: 15px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    .auth-tab {
        flex: 1;
        padding: 15px;
        background: transparent;
        border: 2px solid transparent;
        border-radius: 12px;
        color: #aaa;
        font-family: "MedievalSharp", cursive;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all 0.3s ease;
    }

    .auth-tab:hover {
        background: rgba(106, 17, 203, 0.2);
        transform: translateY(-2px);
    }

    .auth-tab.active {
        background: linear-gradient(45deg, rgba(106, 17, 203, 0.3), rgba(37, 117, 252, 0.3));
        border-color: #6a11cb;
        color: #fff;
        box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    }

    .tab-icon {
        font-size: 20px;
    }

    /* Grupos de input temáticos */
    .input-group {
        position: relative;
        margin-bottom: 20px;
    }

    .input-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #ffd700;
        z-index: 2;
    }

    .auth-form {
        display: none;
    }

    .auth-form.active {
        display: block;
    }

    .auth-form input {
        width: 100%;
        padding: 16px 16px 16px 50px;
        border-radius: 15px;
        border: 2px solid rgba(212, 175, 55, 0.3);
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
        font-size: 16px;
        transition: all 0.3s ease;
        font-family: "Poppins", sans-serif;
    }

    .auth-form input:focus {
        outline: none;
        border-color: #ffd700;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    .auth-form input::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-style: italic;
    }

    /* Botões temáticos */
    .auth-btn {
        width: 100%;
        padding: 18px;
        border: none;
        border-radius: 15px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
        font-family: "MedievalSharp", cursive;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
    }

    .login-btn {
        background: linear-gradient(45deg, #11998e, #38ef7d);
        box-shadow: 0 8px 20px rgba(17, 153, 142, 0.4);
    }

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(17, 153, 142, 0.5);
        background: linear-gradient(45deg, #0d8a7f, #2dd873);
    }

    .register-btn {
        background: linear-gradient(45deg, #8a2be2, #2575fc);
        box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
    }

    .register-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(138, 43, 226, 0.5);
        background: linear-gradient(45deg, #7b1fd8, #1c6de8);
    }

    .btn-icon {
        font-size: 22px;
    }

    /* Mensagens temáticas */
    .auth-error,
    .auth-success {
        padding: 15px;
        border-radius: 12px;
        margin-top: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-left: 5px solid;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .auth-error {
        display: none;
        background: rgba(255, 87, 87, 0.1);
        border-left-color: #ff5757;
        color: #ff5757;
    }

    .auth-success {
        background: rgba(56, 239, 125, 0.1);
        border-left-color: #38ef7d;
        color: #38ef7d;
    }

    .error-icon,
    .success-icon,
    .warning-icon {
        font-size: 24px;
    }

    /* Decorações mitológicas */
    .mythical-decoration {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .decoration-icon {
        font-size: 24px;
        opacity: 0.3;
        animation: float 3s infinite ease-in-out;
    }

    .decoration-icon:nth-child(2) {
        animation-delay: 0.5s;
    }

    .decoration-icon:nth-child(3) {
        animation-delay: 1s;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* Efeito de brilho no container */
    .auth-container::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #6a11cb, #2575fc, #ffd700, #38ef7d);
        border-radius: 27px;
        z-index: -1;
        animation: rotateBorder 10s linear infinite;
        opacity: 0.3;
    }

    @keyframes rotateBorder {
        0% {
            filter: hue-rotate(0deg);
        }

        100% {
            filter: hue-rotate(360deg);
        }
    }

    /* Responsividade */
    @media (max-width: 768px) {
        .auth-container {
            max-width: 90%;
            padding: 25px 20px;
        }

        .auth-title {
            font-size: 28px;
        }

        .auth-btn {
            padding: 16px;
            font-size: 16px;
        }
    }

    @media (max-width: 480px) {
        .auth-banner {
            margin-bottom: 20px;
        }

        .banner-icon {
            font-size: 50px;
        }

        .auth-title {
            font-size: 24px;
        }
    }



}

/* ---------------- HEADER ATUALIZADO ---------------- */

@media {

    .header-content {
        flex: 1;
        text-align: center;
    }

    .header-title h1 {
        font-size: 24px;
        font-family: "MedievalSharp", cursive;
        background: linear-gradient(45deg, #8a2be2, #2575fc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
        margin-bottom: 4px;
    }

    .header-title .subtitle {
        font-size: 12px;
        color: #aaa;
        letter-spacing: 1px;
        font-weight: 300;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
    }

    .logout-btn {
        background: rgba(255, 87, 87, 0.2);
        color: #ff5757;
        border: 1px solid rgba(255, 87, 87, 0.3);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .logout-btn:hover {
        background: rgba(255, 87, 87, 0.3);
    }

    /* Estilo para o botão do menu (3 tracinhos) */
    #menuBtn {
        font-size: 32px;
        cursor: pointer;
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        border-radius: 10px;
        padding: 5px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    #menuBtn:hover {
        transform: scale(1.1);
    }

    header {
        background: linear-gradient(90deg,
                rgba(15, 15, 35, 0.95) 0%,
                rgba(26, 26, 62, 0.95) 100%);
        backdrop-filter: blur(15px);
        padding: 10px 20px;
        color: white;
        display: flex;
        align-items: center;
        gap: 15px;
        position: sticky;
        top: 0;
        z-index: 50;
        border-bottom: 2px solid #6a11cb;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        min-height: 70px;
    }

    /* Botão menu */
    .menu-toggle {
        font-size: 28px;
        cursor: pointer;
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        border-radius: 10px;
        padding: 8px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .menu-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(106, 17, 203, 0.5);
    }

    /* Logo no header */
    .header-logo-container {
        position: relative;
        width: 140px;
        height: 50px;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .header-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(106, 17, 203, 0.5));
    }

    .header-logo-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120%;
        height: 120%;
        background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
        z-index: -1;
        animation: pulseGlow 4s infinite alternate;
    }

    /* Título do header */
    .header-title-container {
        flex: 1;
        text-align: center;
        padding: 0 10px;
    }

    .header-title {
        font-size: 22px;
        font-family: "MedievalSharp", cursive;
        background: linear-gradient(45deg, #ffd700, #ff8a00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        margin-bottom: 2px;
        letter-spacing: 1px;
    }

    .header-subtitle {
        font-size: 11px;
        color: #aaa;
        letter-spacing: 1px;
        font-weight: 300;
    }

}

/* ---------------- MENU LATERAL ---------------- */

@media {

    #menu h2 {
        font-size: 22px;
        margin-bottom: 30px;
        color: #8a2be2;
        text-align: center;
        font-family: "MedievalSharp", cursive;
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }


    #menuOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    #menuOverlay.active {
        opacity: 1;
        pointer-events: auto;
    }


    /* ---------------- HEADER ATUALIZADO COM LOGO ---------------- */

    /* ---------------- MENU LATERAL ATUALIZADO COM LOGO ---------------- */
    #menu {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg,
                rgba(10, 10, 26, 0.98) 0%,
                rgba(15, 15, 35, 0.97) 30%,
                rgba(20, 15, 40, 0.96) 100%);
        backdrop-filter: blur(15px);
        color: white;
        padding: 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101;
        border-right: 3px solid #8a2be2;
        box-shadow: 5px 0 30px rgba(106, 17, 203, 0.4);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #menu.open {
        left: 0;
    }

    /* Logo no menu */
    .menu-logo-container {
        position: relative;
        width: 100%;
        height: 120px;
        padding: 20px;
        background: linear-gradient(180deg,
                rgba(40, 35, 60, 0.9) 0%,
                rgba(25, 20, 40, 0.8) 100%);
        border-bottom: 2px solid rgba(212, 175, 55, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .menu-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
    }

    .menu-logo-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 110%;
        height: 110%;
        background: radial-gradient(circle,
                rgba(255, 215, 0, 0.15) 0%,
                rgba(138, 43, 226, 0.1) 50%,
                transparent 80%);
        z-index: -1;
    }

    /* Título do menu */
    .menu-title {
        font-size: 20px;
        margin: 0 20px 20px;
        color: #ffd700;
        text-align: center;
        font-family: "MedievalSharp", cursive;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Itens do menu */
    .menu-item {
        padding: 15px 20px;
        margin: 0 15px 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .menu-item:hover {
        background: rgba(106, 17, 203, 0.3);
        transform: translateX(5px);
        border-color: #6a11cb;
    }

    .menu-item.active {
        background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
        box-shadow: 0 0 15px rgba(106, 17, 203, 0.5);
        border-color: transparent;
    }

    .menu-text {
        flex: 1;
        font-size: 15px;
    }

    .menu-item .material-icons {
        font-size: 22px;
        opacity: 0.9;
    }

    /* Item de logout */
    .logout-item {
        margin-top: auto;
        margin-bottom: 20px;
        background: rgba(255, 87, 87, 0.1);
        border-color: rgba(255, 87, 87, 0.2);
        color: #ff5757;
    }

    .logout-item:hover {
        background: rgba(255, 87, 87, 0.2);
        border-color: #ff5757;
    }

    /* Rodapé do menu */
    .menu-footer {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .menu-version {
        font-size: 11px;
        color: #aaa;
        margin-bottom: 3px;
    }

    .menu-copyright {
        font-size: 10px;
        color: #666;
    }

    /* Conteúdo rolável do menu */
    #menu .menu-scroll {
        flex: 1;
        overflow-y: auto;
        padding: 0 0 20px;
    }

    #menu .menu-scroll::-webkit-scrollbar {
        width: 4px;
    }

    #menu .menu-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    #menu .menu-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        border-radius: 2px;
    }

    /* Efeito de brilho na borda do menu */
    #menu::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #6a11cb, #2575fc, #ffd700, #38ef7d);
        border-radius: 0 5px 5px 0;
        z-index: -1;
        opacity: 0.3;
        animation: rotateBorder 10s linear infinite;
    }

    /* Responsividade */
    @media (max-width: 768px) {
        .header-logo-container {
            width: 120px;
            height: 45px;
        }

        .header-title {
            font-size: 18px;
        }

        .header-subtitle {
            font-size: 10px;
        }

        .menu-toggle {
            width: 40px;
            height: 40px;
            font-size: 24px;
        }

        #menu {
            width: 250px;
        }

        .menu-logo-container {
            height: 100px;
            padding: 15px;
        }
    }

    @media (max-width: 480px) {
        header {
            padding: 10px 15px;
            min-height: 60px;
        }

        .header-logo-container {
            width: 100px;
            height: 40px;
        }

        .header-title {
            font-size: 16px;
        }

        .header-subtitle {
            font-size: 9px;
        }

        .menu-toggle {
            width: 36px;
            height: 36px;
            font-size: 20px;
            padding: 6px;
        }

        #menu {
            width: 240px;
        }

        .menu-item {
            padding: 12px 15px;
            margin: 0 10px 6px;
        }

        .menu-text {
            font-size: 14px;
        }
    }

    /* Para telas muito pequenas em altura */
    @media (max-height: 600px) {
        .menu-logo-container {
            height: 80px;
            padding: 10px;
        }

        .menu-title {
            margin: 0 15px 15px;
            font-size: 18px;
        }

        .menu-item {
            padding: 10px 15px;
            margin: 0 10px 5px;
        }
    }



}

/* ---------------- CONTEÚDOS ---------------- */
/* Container principal da aplicação */
#appContainer {
    position: relative;
}

/* Limita largura do conteúdo das telas, mantendo header em largura total */
.screen {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease;
    max-width: 1400px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active {
    display: block;
}

/* CARDS PADRÃO */
.box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

h2,
h3 {
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

h2 {
    font-size: 28px;
    font-family: "MedievalSharp", cursive;
    background: linear-gradient(45deg, #8a2be2, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 20px;
    margin-top: 25px;
}

.btn {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    min-width: 130px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.progress {
    background: rgba(255, 255, 255, 0.1);

    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.progress div {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 10px;
}

/* ---------------- MODAL DE CARTAS ---------------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3e 0%, #0c0c2e 100%);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #6a11cb;
    box-shadow: 0 20px 50px rgba(106, 17, 203, 0.4);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------------- CARTA INDIVIDUAL ---------------- */
.card-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-item:hover {
    transform: translateX(10px);
    background: linear-gradient(145deg, rgba(106, 17, 203, 0.2), rgba(37, 117, 252, 0.2));
}

.card-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.card-info {
    flex: 1;
}

.card-name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.card-rarity {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------------- RANKING ---------------- */

@media {

    /* ---------------- RANKING SIMPLIFICADO ---------------- */
    .ranking-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.05);
        padding: 8px;
        border-radius: 15px;
    }

    .ranking-tab {
        flex: 1;
        padding: 12px;
        background: transparent;
        border: 2px solid transparent;
        border-radius: 12px;
        color: #aaa;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .ranking-tab:hover {
        background: rgba(106, 17, 203, 0.1);
    }

    .ranking-tab.active {
        background: rgba(106, 17, 203, 0.2);
        border-color: #6a11cb;
        color: #fff;
    }

    .ranking-content {
        display: none;
    }

    .ranking-content.active {
        display: block;
    }

    .rank-item {
        background: rgba(255, 255, 255, 0.05);
        padding: 15px 20px;
        border-radius: 12px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s ease;
    }

    .rank-item:hover {
        transform: translateX(5px);
        background: rgba(106, 17, 203, 0.1);
    }

    .top1 {
        background: linear-gradient(135deg, rgba(255, 241, 168, 0.1), rgba(255, 215, 0, 0.1));
        border: 1px solid rgba(255, 215, 0, 0.3);
    }

    .top2 {
        background: linear-gradient(135deg, rgba(234, 234, 234, 0.1), rgba(194, 194, 194, 0.1));
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .top3 {
        background: linear-gradient(135deg, rgba(255, 215, 181, 0.1), rgba(255, 159, 67, 0.1));
        border: 1px solid rgba(255, 159, 67, 0.3);
    }

}

/* ---------------- CHAT ---------------- */
@media {

    .chat-box {
        background: rgba(255, 255, 255, 0.05);
        padding: 20px;
        height: 300px;
        overflow-y: auto;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 15px;
    }

    .message {
        padding: 12px 15px;
        background: rgba(106, 17, 203, 0.1);
        margin: 8px 0;
        border-radius: 12px;
        border-left: 4px solid #6a11cb;
    }

    .message b {
        color: #8a2be2;
    }

    .message small {
        display: block;
        font-size: 10px;
        color: #aaa;
        margin-top: 3px;
        text-align: right;
    }


    /* Container das mensagens (rolável) */
    .chat-messages-container {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        padding-bottom: 80px;
        /* Espaço para o input fixo */
        scroll-behavior: smooth;
    }

    /* Estilo da barra de rolagem */
    .chat-messages-container::-webkit-scrollbar {
        width: 6px;
    }

    .chat-messages-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .chat-messages-container::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        border-radius: 10px;
    }


    /* Mensagens individuais */
    .chat-message {
        margin-bottom: 15px;
        max-width: 80%;
        animation: fadeIn 0.3s ease;
    }

    .chat-message.sent {
        align-self: flex-end;
        text-align: right;
    }

    .chat-message.received {
        align-self: flex-start;
        text-align: left;
    }

    /* Bolha da mensagem */
    .message-bubble {
        display: inline-block;
        padding: 12px 16px;
        border-radius: 20px;
        word-break: break-word;
        position: relative;
        max-width: 100%;
        white-space: pre-wrap;
    }

    .chat-message.sent .message-bubble {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
        color: white;
        border-top-right-radius: 5px;
    }

    .chat-message.received .message-bubble {
        background: rgba(255, 255, 255, 0.1);
        color: #f0f0f0;
        border-top-left-radius: 5px;
    }

    /* Informações da mensagem */
    .message-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
        font-size: 11px;
    }

    .chat-message.sent .message-info {
        justify-content: flex-end;
    }

    .chat-message.received .message-info {
        justify-content: flex-start;
    }

    .message-sender {
        font-weight: bold;
        color: #8a2be2;
        margin-right: 8px;
    }

    .message-time {
        color: rgba(255, 255, 255, 0.5);
        font-size: 10px;
    }

    /* Indicador de mensagem mais recente */
    .latest-message-indicator {
        text-align: center;
        margin: 10px 0;
        font-size: 11px;
        color: #6a11cb;
        font-weight: bold;
        letter-spacing: 1px;
    }

    /* Responsividade para dispositivos móveis */
    @media (max-width: 768px) {
        .chat-container {
            height: calc(100vh - 130px);
            max-height: none;
            border-radius: 15px;
        }

        .chat-messages-container {
            padding: 15px;
            padding-bottom: 70px;
        }

        .chat-input-container {
            padding: 12px 15px;
        }

        /* Ajuste para quando o teclado está aberto */
        .chat-container.keyboard-open {
            height: calc(100vh - 200px);
        }
    }

    /* Para dispositivos muito pequenos */
    @media (max-height: 600px) {
        .chat-container {
            height: calc(100vh - 100px);
        }
    }

    /* Efeito de placeholder quando não há mensagens */
    .empty-chat-placeholder {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        color: rgba(255, 255, 255, 0.3);
        text-align: center;
    }

    .empty-chat-placeholder .material-icons {
        font-size: 60px;
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 270px);
        /* <--- AQUI: Aumentei de 150px para 200px */
        max-height: none;
        /* <--- AQUI: Removi a limitação de 70vh */
        position: relative;
        background: rgba(15, 15, 35, 0.8);
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #chatInput {
        resize: none;
        overflow-y: auto;
        line-height: 1.4;
        max-height: calc(1.4em * 5);
        /* 5 linhas */
    }

    .chat-input-container {
        align-items: flex-end;
        /* botão fica embaixo */
    }

    #sendBtn {
        width: 50px;
        height: 50px;
        /* altura fixa = 1 linha */
        min-width: 44px;
        border-radius: 20px;
        border: none;
        color: white;
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        font-size: 18px;
        cursor: pointer;
        display: flex;
        justify-content: center;
    }

    #sendBtn:active {
        transform: scale(0.95);
    }

}

/* ---------------- NOTIFICAÇÕES ---------------- */
.notify {
    background: linear-gradient(135deg, rgba(255, 248, 214, 0.2), rgba(241, 196, 15, 0.2));
    padding: 15px;
    border-left: 5px solid #f1c40f;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(241, 196, 15, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ---------------- INPUTS ---------------- */
input,
textarea {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #6a11cb;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(106, 17, 203, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .header-title .subtitle {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        min-width: 120px;
    }

    .user-info {
        flex-direction: column;
        gap: 5px;
    }

    .logout-btn {
        font-size: 10px;
        padding: 6px 8px;
    }
}

/* CSS para as cartas */

/* moldura card mitologico */
@media {

    /* ---------------- ESTILO MITOLÓGICO PARA CARTAS ---------------- */
    .card-mythological-frame {
        background: linear-gradient(145deg, rgba(30, 25, 45, 0.9), rgba(20, 15, 35, 0.95));
        border-radius: 20px;
        overflow: hidden;
        border: 4px solid;
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.5),
            inset 0 0 40px rgba(255, 255, 255, 0.05);
        height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* Efeitos de brilho nas bordas */
    .card-mythological-frame::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, transparent 20%, rgba(255, 215, 0, 0.3) 40%, rgba(255, 140, 0, 0.3) 60%, transparent 80%);
        border-radius: 22px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .card-mythological-frame:hover::before {
        opacity: 1;
    }

    /* Cabeçalho com estilo de templo */
    .card-mythological-header {
        padding: 15px 20px;
        background: linear-gradient(to bottom, rgba(40, 35, 60, 0.9) 0%, rgba(25, 20, 40, 0.8) 100%);
        border-bottom: 3px solid;
        position: relative;
        overflow: hidden;
    }

    /* Elementos decorativos no cabeçalho */
    .card-mythological-header::before {
        content: "⚜";
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        opacity: 0.6;
    }

    .card-mythological-header::after {
        content: "⚜";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        opacity: 0.6;
    }

    .card-mythology-title {
        font-family: "MedievalSharp", cursive;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Área da imagem com moldura ornamental */
    .card-mythological-image {
        padding: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 180px;
        position: relative;
        background: linear-gradient(45deg,
                rgba(255, 255, 255, 0.03) 25%,
                transparent 25%,
                transparent 50%,
                rgba(255, 255, 255, 0.03) 50%,
                rgba(255, 255, 255, 0.03) 75%,
                transparent 75%,
                transparent);
        background-size: 20px 20px;
    }

    .image-mythological-frame {
        width: 130px;
        height: 130px;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 70%);
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border: 4px solid;
        position: relative;
        box-shadow:
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 255, 255, 0.1);
    }

    /* Anéis concêntricos decorativos */
    .image-mythological-frame::before {
        content: "";
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border: 2px solid rgba(255, 255, 255, 0.1);

        z-index: -1;
    }

    .image-mythological-frame::after {
        content: "";
        position: absolute;
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        border: 1px solid rgba(255, 255, 255, 0.05);

        z-index: -2;
    }

    .image-mythological-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        filter: sepia(0.3) brightness(1.1) contrast(1.1);
    }

    .icon-mythological-fallback {
        font-size: 60px;
        opacity: 0.8;
        text-shadow: 0 0 20px currentColor;
    }

    /* Corpo da carta com papiro/textura antiga */
    .card-mythological-body {
        padding: 20px;
        flex-grow: 1;
        background: linear-gradient(rgba(40, 35, 50, 0.7), rgba(30, 25, 40, 0.9)),
            url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(120,90,60,0.1)" stroke-width="1"/></svg>');
        background-size: 100px 100px;
        position: relative;
        overflow: hidden;
    }

    /* Efeito de papiro envelhecido */
    .card-mythological-body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255, 240, 200, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(200, 180, 140, 0.02) 0%, transparent 50%);
        pointer-events: none;
    }

    .card-mythological-name {
        font-family: "MedievalSharp", cursive;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
        color: #ffd700;
        text-align: center;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 10px rgba(255, 215, 0, 0.3);
        letter-spacing: 1px;
        position: relative;
        padding-bottom: 8px;
    }

    /* Linha decorativa abaixo do nome */
    .card-mythological-name::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 25%;
        right: 25%;
        height: 2px;
        background: linear-gradient(to right, transparent, currentColor, transparent);
        opacity: 0.5;
    }

    .card-mythological-description {
        font-size: 12px;
        color: #e0d0b0;
        text-align: center;
        line-height: 1.5;
        font-style: italic;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Rodapé com elementos mitológicos */
    .card-mythological-footer {
        padding: 15px 20px;
        background: linear-gradient(to top, rgba(40, 35, 60, 0.9) 0%, rgba(25, 20, 40, 0.8) 100%);
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

    /* Símbolos decorativos no rodapé */
    .card-mythological-footer::before {
        content: "🜚";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        opacity: 0.5;
    }

    .card-mythological-footer::after {
        content: "🜚";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        opacity: 0.5;
    }

    /* Estilos específicos por mitologia */
    .card-mythology-grega {
        border-color: #d4af37;
        background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(20, 15, 35, 0.95));
    }

    .card-mythology-grega .card-mythological-header {
        border-bottom-color: #d4af37;
        background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), rgba(20, 15, 40, 0.8));
    }

    .card-mythology-grega .image-mythological-frame {
        border-color: #d4af37;
        box-shadow:
            inset 0 0 30px rgba(212, 175, 55, 0.3),
            0 0 30px rgba(212, 175, 55, 0.2);
    }

    .card-mythology-nordica {
        border-color: #4a90e2;
        background: linear-gradient(145deg, rgba(74, 144, 226, 0.15), rgba(20, 15, 35, 0.95));
    }

    .card-mythology-nordica .card-mythological-header {
        border-bottom-color: #4a90e2;
        background: linear-gradient(to bottom, rgba(74, 144, 226, 0.2), rgba(20, 15, 40, 0.8));
    }

    .card-mythology-nordica .image-mythological-frame {
        border-color: #4a90e2;
        box-shadow:
            inset 0 0 30px rgba(74, 144, 226, 0.3),
            0 0 30px rgba(74, 144, 226, 0.2);
    }

    .card-mythology-nordica .card-mythology-title::before {
        content: "ᛉ ";
        margin-right: 5px;
    }

    .card-mythology-nordica .card-mythology-title::after {
        content: " ᛉ";
        margin-left: 5px;
    }

    .card-mythology-egipcia {
        border-color: #ffd700;
        background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(20, 15, 35, 0.95));
    }

    .card-mythology-egipcia .card-mythological-header {
        border-bottom-color: #ffd700;
        background: linear-gradient(to bottom, rgba(255, 215, 0, 0.2), rgba(40, 30, 20, 0.8));
    }

    .card-mythology-egipcia .image-mythological-frame {
        border-color: #ffd700;
        box-shadow:
            inset 0 0 30px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(255, 215, 0, 0.2);
    }

    .card-mythology-celta {
        border-color: #38ef7d;
        background: linear-gradient(145deg, rgba(56, 239, 125, 0.15), rgba(20, 15, 35, 0.95));
    }

    .card-mythology-celta .card-mythological-header {
        border-bottom-color: #38ef7d;
        background: linear-gradient(to bottom, rgba(56, 239, 125, 0.2), rgba(15, 35, 20, 0.8));
    }

    .card-mythology-celta .image-mythological-frame {
        border-color: #38ef7d;
        box-shadow:
            inset 0 0 30px rgba(56, 239, 125, 0.3),
            0 0 30px rgba(56, 239, 125, 0.2);
    }

    .card-mythology-japonesa {
        border-color: #8a2be2;
        background: linear-gradient(145deg, rgba(138, 43, 226, 0.15), rgba(20, 15, 35, 0.95));
    }

    .card-mythology-japonesa .card-mythological-header {
        border-bottom-color: #8a2be2;
        background: linear-gradient(to bottom, rgba(138, 43, 226, 0.2), rgba(35, 15, 40, 0.8));
    }

    .card-mythology-japonesa .image-mythological-frame {
        border-color: #8a2be2;
        box-shadow:
            inset 0 0 30px rgba(138, 43, 226, 0.3),
            0 0 30px rgba(138, 43, 226, 0.2);
    }

    /* Animação de brilho ao passar o mouse */
    .card-mythological-frame:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.6),
            inset 0 0 50px rgba(255, 255, 255, 0.1),
            0 0 30px currentColor;
    }

    /* Efeito de destaque para cartas raras */
    .card-rare .card-mythological-frame {
        animation: pulseGlow 3s infinite;
    }

    @keyframes pulseGlow {

        0%,
        100% {
            box-shadow:
                0 15px 35px rgba(0, 0, 0, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.05),
                0 0 20px rgba(255, 215, 0, 0.3);
        }

        50% {
            box-shadow:
                0 15px 35px rgba(0, 0, 0, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.1),
                0 0 40px rgba(255, 215, 0, 0.6);
        }
    }

    /* Modal detalhado mitológico */
    .card-detail-mythological {
        max-width: 450px;
        margin: 0 auto;
        background: linear-gradient(145deg, rgba(30, 25, 45, 0.95), rgba(20, 15, 35, 0.98));
        border-radius: 25px;
        border: 5px solid;
        padding: 30px;
        position: relative;
        overflow: hidden;
    }

    .card-detail-mythological::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

    .card-detail-image-mythological {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        margin: 0 auto 30px;
        border: 8px solid;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 70%);
        position: relative;
        box-shadow:
            inset 0 0 50px rgba(0, 0, 0, 0.5),
            0 0 50px rgba(255, 255, 255, 0.2);
    }

    .card-detail-image-mythological::before {
        content: "";
        position: absolute;
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        border: 3px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        z-index: -1;
    }

    .detail-icon-mythological {
        font-size: 100px;
        opacity: 0.9;
        text-shadow: 0 0 30px currentColor;
    }

    /* Adicionando elementos decorativos de mitologia específica */
    .card-grega .card-mythological-body::after {
        content: "⚡";
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-size: 20px;
        opacity: 0.3;
    }

    .card-nordica .card-mythological-body::after {
        content: "⚔";
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-size: 20px;
        opacity: 0.3;
    }

    .card-egipcia .card-mythological-body::after {
        content: "☥";
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-size: 20px;
        opacity: 0.3;
    }

    .card-celta .card-mythological-body::after {
        content: "🜁";
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-size: 20px;
        opacity: 0.3;
    }

    .card-japonesa .card-mythological-body::after {
        content: "⛩";
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-size: 20px;
        opacity: 0.3;
    }



    @media (max-width: 768px) {
        .card-mythological-footer {}
    }

    @media (max-width: 480px) {
        .card-mythological-footer {
            display: none;

        }

        .card-mythological-header {
            display: none;

        }
    }

}

/* ---------------- ESTILO MITOLÓGICO PARA CARTAS - ATUALIZADO ---------------- */
@media {
    .card-mythological-image {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 200px;
        position: relative;
        background: linear-gradient(45deg,
                rgba(255, 255, 255, 0.03) 25%,
                transparent 25%,
                transparent 50%,
                rgba(255, 255, 255, 0.03) 50%,
                rgba(255, 255, 255, 0.03) 75%,
                transparent 75%,
                transparent);
        background-size: 20px 20px;
    }

    /* Imagem retangular estilo pergaminho */
    .image-mythological-frame {
        width: 160px;
        height: 160px;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 70%);
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border: 3px solid;
        position: relative;
        box-shadow:
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        /* Menos arredondado */
    }

    /* Remove os círculos concêntricos */
    .image-mythological-frame::before,
    .image-mythological-frame::after {
        display: none;
    }

    .image-mythological-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: sepia(0.3) brightness(1.1) contrast(1.1);
    }

    /* Modal detalhado - Imagem maior e retangular */
    .card-detail-image-mythological {
        width: 250px;
        height: 250px;
        margin: 0 auto 25px;
        border: 5px solid;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 70%);
        position: relative;
        box-shadow:
            inset 0 0 50px rgba(0, 0, 0, 0.5),
            0 0 50px rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        /* Retangular com bordas suaves */
    }
}

/* ---------------- RECOMPENSAS ---------------- */
@media {
    .rewards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .reward-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        border-radius: 20px;
        padding: 25px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .reward-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
    }

    .reward-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .reward-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #fff;
    }

    .reward-card p {
        font-size: 14px;
        color: #aaa;
        margin-bottom: 20px;
    }

    .reward-btn {
        width: 90%;
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        padding: 12px;
        font-size: 14px;
    }

    .reward-btn:disabled {
        background: rgba(255, 255, 255, 0.1);
        cursor: not-allowed;
        opacity: 0.7;
    }

    .reward-timer {
        background: rgba(0, 0, 0, 0.3);
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 12px;
        color: #ffd700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .reward-cooldown {
        color: #ff5757;
        font-size: 12px;
        margin-top: 10px;
    }

    /* Modal de resultado da recompensa */
    .reward-result-modal .modal-content {
        max-width: 400px;
    }

    .reward-result-card {
        text-align: center;
        padding: 20px;
    }

    .reward-result-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .reward-result-card h3 {
        font-size: 22px;
        margin-bottom: 15px;
        color: #ffd700;
    }

    .reward-cards-earned {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .earned-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .earned-card-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .earned-card-name {
        font-size: 14px;
        color: #fff;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .earned-card-mythology {
        font-size: 12px;
        color: #aaa;
    }

    /* Responsivo */
    @media (max-width: 768px) {
        .rewards-container {
            grid-template-columns: 1fr;
        }

        .reward-cards-earned {
            grid-template-columns: 1fr;
        }
    }
}

/* Estilos específicos por mitologia - ajuste de borda */
.card-mythology-grega .image-mythological-frame {
    border-color: #d4af37;
    box-shadow:
        inset 0 0 20px rgba(212, 175, 55, 0.2),
        0 0 20px rgba(212, 175, 55, 0.1);
}

.card-mythology-nordica .image-mythological-frame {
    border-color: #4a90e2;
    box-shadow:
        inset 0 0 20px rgba(74, 144, 226, 0.2),
        0 0 20px rgba(74, 144, 226, 0.1);
}

.card-mythology-egipcia .image-mythological-frame {
    border-color: #ffd700;
    box-shadow:
        inset 0 0 20px rgba(255, 215, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.1);
}

.card-mythology-celta .image-mythological-frame {
    border-color: #38ef7d;
    box-shadow:
        inset 0 0 20px rgba(56, 239, 125, 0.2),
        0 0 20px rgba(56, 239, 125, 0.1);
}

.card-mythology-japonesa .image-mythological-frame {
    border-color: #8a2be2;
    box-shadow:
        inset 0 0 20px rgba(138, 43, 226, 0.2),
        0 0 20px rgba(138, 43, 226, 0.1);
}



/* ---------------- Estilo para os novos modais ---------------- */
/* Estilo para os novos modais */
#destroyModal .modal-content,
#transferModal .modal-content {
    animation: fadeIn 0.3s ease;
}

#transferUserId:focus {
    outline: none;
    border-color: #11998e;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(17, 153, 142, 0.3);
}

/* Botão desabilitado */
.btn:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* ---------------- COLEÇÃO - RESPONSIVIDADE MELHORADA ---------------- */
#colecao .box {
    margin-bottom: 20px;
}

/* Container dos filtros com scroll horizontal */
.filters-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0 15px 0;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #6a11cb rgba(255, 255, 255, 0.05);
}

.filters-container::-webkit-scrollbar {
    height: 6px;
}

.filters-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.filters-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border-radius: 10px;
}

/* Botões dos filtros */
.filter-btn {
    flex-shrink: 0;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(106, 17, 203, 0.2);
    border-color: #6a11cb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.filter-btn .progress {
    font-size: 11px;
    color: #aaa;
    margin-top: 5px;
    font-weight: normal;
}

.filter-btn.active .progress {
    color: rgba(255, 255, 255, 0.8);
}

/* Container de busca e ordenação */
.search-sort-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

#searchCard {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

#sortCards {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

#sortCards:focus {
    outline: none;
    border-color: #6a11cb;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Grid de cartas responsivo */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Estilo para cada item de carta */
.card-item-full {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.card-item-full:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Contadores - layout responsivo */
#colecao .box.gradient-purple>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.counter-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-value {
    font-size: 24px;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

.counter-label {
    font-size: 13px;
    color: #aaa;
}

/* Modal de detalhe da carta ajustado */
.card-detail-image-mythological {
    width: 200px;
    height: 200px;
    border: 4px solid;
}

/* Responsividade para celulares pequenos */
@media (max-width: 480px) {

    /* Grid de cartas - 2 colunas */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Botões dos filtros menores */
    .filter-btn {
        min-width: 100px;
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Contadores mais compactos */
    #colecao .box.gradient-purple>div {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .counter-item {
        padding: 12px 6px;
    }

    .counter-value {
        font-size: 20px;
    }

    .counter-label {
        font-size: 11px;
    }

    /* Busca e ordenação */
    .search-sort-container {
        gap: 10px;
    }

    #searchCard,
    #sortCards {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Carta detalhada menor */
    .card-detail-image-mythological {
        width: 180px;
        height: 180px;
    }
}

/* Para telas muito pequenas (largura menor que 360px) */
@media (max-width: 360px) {

    /* Grid de cartas - mantém 2 colunas mas reduz gap */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Botões dos filtros mais compactos */
    .filter-btn {
        min-width: 90px;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Contadores em uma linha só */
    .counter-item {
        padding: 10px 5px;
    }

    .counter-value {
        font-size: 18px;
    }
}

/* Para tablets e telas maiores */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .search-sort-container {
        flex-direction: row;
        align-items: center;
    }

    #searchCard {
        flex: 1;
    }

    #sortCards {
        width: auto;
        min-width: 200px;
    }
}

/* Para desktops */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }

    .filter-btn {
        min-width: 140px;
        padding: 14px 20px;
    }
}


/* ---------------- HOME RESPONSIVO ---------------- */
@media {

    /* Container de estatísticas */
    .stats-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Card de estatísticas */
    .stat-card {
        background: linear-gradient(135deg,
                rgba(106, 17, 203, 0.2) 0%,
                rgba(37, 117, 252, 0.2) 100%);
        border-radius: 20px;
        padding: 25px;
        border: 2px solid rgba(138, 43, 226, 0.3);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: space-between;
        min-height: 150px;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(106, 17, 203, 0.3);
    }

    .stat-card::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #6a11cb, #2575fc, #ffd700, #38ef7d);
        border-radius: 22px;
        z-index: -1;
        opacity: 0.3;
        animation: rotateBorder 10s linear infinite;
    }

    .stat-icon {
        font-size: 40px;
        margin-bottom: 15px;
        display: inline-block;
        padding: 12px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
    }

    .stat-iconn {
        display: none;
    }

    .stat-title {
        font-size: 16px;
        color: #aaa;
        margin-bottom: 0;
        font-weight: 500;
        order: 1;
        margin-top: 0;
    }

    .stat-value {
        font-size: 32px;
        font-weight: bold;
        color: #ffd700;
        margin-bottom: 0;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
        order: 2;
        margin-top: auto;
    }

    .stat-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Carrossel de Recompensas e Loja */
    .carousel-wrapper {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    .carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        padding: 0 5px;
        margin: 0 -5px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 5px;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .carousel-track {
        display: flex;
        gap: 20px;
        width: max-content;
    }

    .carousel-container .reward-card {
        flex: 0 0 auto;
        width: 280px;
        min-width: 250px;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(106, 17, 203, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .carousel-btn:hover {
        background: rgba(106, 17, 203, 1);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(106, 17, 203, 0.5);
    }

    .carousel-btn-prev {
        left: 5px;
    }

    .carousel-btn-next {
        right: 5px;
    }

    @media (max-width: 600px) {
        .carousel-btn {
            display: none;
            /* Esconder botões em telas muito pequenas, usar swipe */
        }

        .carousel-container {
            padding: 0;
            margin: 0;
        }
    }

    .carousel-btn .material-icons {
        font-size: 24px;
    }

    /* Recompensas lado a lado (mantido para compatibilidade) */
    #rewardsContainer {
        display: block;
    }

    /* Ajuste dos cards de recompensa */
    .reward-card {
        background: linear-gradient(135deg,
                rgba(30, 25, 45, 0.9),
                rgba(20, 15, 35, 0.95));
        border-radius: 20px;
        padding: 25px;
        text-align: center;
        border: 2px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .reward-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border-color: rgba(106, 17, 203, 0.5);
    }

    .reward-icon {
        font-size: 50px;
        margin-bottom: 20px;
        display: inline-block;
        animation: pulseGlow 2s infinite alternate;
    }

    .reward-card h4 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #fff;
        font-weight: 600;
    }

    .reward-card p {
        font-size: 14px;
        color: #aaa;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    /* Container de ações rápidas */
    .quick-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .action-item {
        background: rgba(255, 255, 255, 0.05);
        padding: 20px;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .action-item:hover {
        background: rgba(106, 17, 203, 0.1);
        transform: translateY(-3px);
        border-color: #6a11cb;
    }

    .action-item p {
        font-size: 16px;
        color: #fff;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .action-item small {
        font-size: 12px;
        color: #aaa;
        display: block;
    }

    /* Responsividade para telas pequenas */
    @media (max-width: 768px) {
        .stats-container {

            gap: 15px;
        }

        .stat-card {
            padding: 20px;
        }

        .stat-value {
            font-size: 28px;
        }

        .carousel-container .reward-card {
            width: 240px;
            min-width: 220px;
        }

        .carousel-track {
            gap: 15px;
        }

        .carousel-btn {
            width: 35px;
            height: 35px;
        }

        .carousel-btn-prev {
            left: -15px;
        }

        .carousel-btn-next {
            right: -15px;
        }

        .carousel-btn .material-icons {
            font-size: 20px;
        }

        .reward-card {
            padding: 15px;
        }

        .quick-actions {}
    }

    @media (max-width: 480px) {
        .carousel-container .reward-card {
            width: 200px;
            min-width: 180px;
        }

        .carousel-track {
            gap: 10px;
        }

        .carousel-btn {
            width: 30px;
            height: 30px;
        }

        .carousel-btn-prev {
            left: -10px;
        }

        .carousel-btn-next {
            right: -10px;
        }

        .carousel-btn .material-icons {
            font-size: 18px;
        }

        .stat-card {
            padding: 15px;
        }

        .stat-icon {
            font-size: 32px;
            padding: 10px;
        }

        .stat-value {
            font-size: 24px;
        }

        .reward-card {
            padding: 15px;
        }

        .reward-icon {
            font-size: 40px;
        }

        .reward-card h4 {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .box {
            padding: 5px;
        }

    }
}

/* BOT�O DE AUDIO */
.audio-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    z-index: 100;
}

.audio-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.audio-btn.muted {
    color: #aaa;
    border-color: rgba(255, 255, 255, 0.1);
}

.audio-btn .material-icons {
    font-size: 20px;
}

/* ========== ESTILOS DE BATALHAS ========== */

/* Animação de batalha */
@keyframes battlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(106, 17, 203, 0.3);
    }
}

@keyframes battleWin {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes battleLose {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cards de batalha */
#battleCardSelection > div > div {
    transition: all 0.3s ease;
}

#battleCardSelection > div > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(106, 17, 203, 0.4);
}

/* Cards de adversários */
#opponentsList > div > div,
#opponentsListModal > div > div {
    transition: all 0.3s ease;
}

#opponentsList > div > div:hover,
#opponentsListModal > div > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* Modal de resultado - animações */
#battleResultModal .modal-content {
    animation: battlePulse 0.5s ease-in-out;
}

#battleResultModal[data-result="win"] #yourCardName {
    animation: battleWin 0.6s ease-in-out;
}

#battleResultModal[data-result="lose"] #yourCardName {
    animation: battleLose 0.6s ease-in-out;
}

/* Estatísticas de batalha */
#battleStats > div {
    transition: all 0.3s ease;
}

#battleStats > div:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
}

/* Responsividade para batalhas */
@media (max-width: 768px) {
    #battleCardSelection > div,
    #opponentsList > div,
    #opponentsListModal > div {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 10px !important;
    }

    #battleResultModal .modal-content {
        max-width: 90% !important;
    }

    #battleResultModal .modal-content > div:first-of-type {
        grid-template-columns: 1fr !important;
    }
}