* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #111a50 0%, #1e2a6b 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Touch-friendly para dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
    .produto-card:hover,
    .opcao-decisao:hover,
    .opcao-resposta:hover,
    .dica-card:hover {
        transform: none;
    }
    
    .produto-card:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    .opcao-decisao:active,
    .opcao-resposta:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    button:active,
    .btn-primary:active,
    .btn-hero:active,
    .btn-dado:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* TELA DE BOAS-VINDAS */
#boas-vindas-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}

.hero-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.titulo-principal {
    font-size: 4.5em;
    background: linear-gradient(45deg, #f4d35e, #1e2555, #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(244, 211, 94, 0.3);
}

.subtitulo {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 40px;
}

.personagem-principal {
    margin: 40px 0;
}

.personagem-avatar {
    font-size: 8em;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

.personagem-avatar img {
    width: 200px;
    height: auto;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.balao-fala {
    background: linear-gradient(135deg, #111a50 0%, #1e2a6b 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 0.5s both;
}

.balao-fala::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border: 15px solid transparent;
    border-bottom-color: #111a50;
}

.balao-fala p {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
}

.btn-hero {
    background: linear-gradient(45deg, #f4d35e 0%, #f9e07f 100%);
    color: #1e2555;
    border: none;
    padding: 20px 60px;
    font-size: 1.5em;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(244, 211, 94, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(244, 211, 94, 0.6);
}

/* TELA DE TUTORIAL */
#tutorial-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-container {
    background: white;
    border-radius: 30px;
    padding: 50px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.6s ease-out;
    position: relative;
}

.personagem-tutorial {
    position: absolute;
    top: -60px;
    left: 50px;
    animation: bounce 2s ease-in-out infinite;
}

.personagem-tutorial .personagem-avatar {
    font-size: 5em;
    background: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.personagem-tutorial .personagem-avatar img {
    width: 100px;
    height: auto;
    display: block;
}

.tutorial-content {
    margin-top: 40px;
}

.tutorial-step {
    animation: fadeIn 0.5s ease-out;
}

.tutorial-step h2 {
    color: #111a50;
    font-size: 2.2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-step p {
    font-size: 1.3em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tutorial-destaque {
    background: linear-gradient(135deg, #f4d35e 0%, #f9e07f 100%);
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
    border-left: 5px solid #1e2555;
    box-shadow: 0 5px 20px rgba(30, 37, 85, 0.3);
}

.tutorial-destaque p {
    margin: 10px 0;
    color: #1e2555;
    font-weight: 600;
}

.botton-animado {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.botton-icon {
    font-size: 3em;
    animation: bounce 1s ease-in-out infinite;
}

.botton-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.botton-icon:nth-child(3) {
    animation-delay: 0.4s;
}

.casas-exemplo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.casa-tutorial {
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.casa-tutorial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.casa-tutorial.azul {
    background: linear-gradient(135deg, #1e2555 0%, #2a3875 100%);
    color: white;
    border: 4px solid white;
}

.casa-tutorial.amarela {
    background: linear-gradient(135deg, #f4d35e 0%, #f9e07f 100%);
    color: #1e2555;
    border: 4px solid white;
    font-weight: bold;
}

.casa-tutorial.vermelha {
    background: linear-gradient(135deg, #e63946 0%, #f25c66 100%);
    color: white;
    border: 4px solid white;
}

.casa-tutorial span {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.casa-tutorial p {
    font-size: 1em;
    margin: 0;
}

.dicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.dica-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #f4d35e;
    transition: all 0.3s ease;
}

.dica-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(244, 211, 94, 0.3);
}

.dica-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.dica-card p {
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 600;
}

.tutorial-navegacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.tutorial-progress {
    display: flex;
    gap: 10px;
}

.progress-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    transform: scale(1.3);
}


/* TELAS GERAIS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-out;
}

.config-animada, .produtos-animada {
    position: relative;
}

.personagem-mini {
    position: absolute;
    top: -40px;
    right: 50px;
    font-size: 4em;
    animation: bounce 2s ease-in-out infinite;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.personagem-mini img {
    width: 80px;
    height: auto;
    display: block;
}

h1 {
    text-align: center;
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3em;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* BOTÕES */
.btn-primary {
    background: linear-gradient(45deg, #1e2555 0%, #2a3875 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(30, 37, 85, 0.4);
    min-height: 48px;
    min-width: 120px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 37, 85, 0.6);
}

.btn-grande {
    padding: 20px 50px;
    font-size: 1.4em;
    margin: 20px auto;
    display: block;
    min-height: 60px;
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
}

/* CONFIGURAÇÃO */
.config-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 1.4em;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.numero-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.btn-numero {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, #e63946, #f25c66);
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.btn-numero:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.5);
}

.numero-display {
    font-size: 4em;
    font-weight: bold;
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
    text-align: center;
}

.jogador-input {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease-out;
}

.jogador-input label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.2em;
}

.jogador-input input,
.config-form input {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.jogador-input input:focus,
.config-form input:focus {
    outline: none;
    border-color: #f4d35e;
    box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.1);
}

/* PRODUTOS */
.jogador-titulo {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    padding: 20px;
    background: linear-gradient(135deg, #f4d35e 0%, #f9e07f 100%);
    color: #1e2555;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(244, 211, 94, 0.4);
}

.produtos-contador {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #27ae60;
    font-weight: bold;
    padding: 15px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 15px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.produto-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 4px solid #1e2555;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.produto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.produto-card:hover::before {
    left: 100%;
}

.produto-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(17, 26, 80, 0.3);
}

.produto-card.selecionado {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: #1e7e34;
    transform: scale(1.05);
}

.produto-card.selecionado .produto-preco {
    color: white;
}

.produto-card.desabilitado {
    opacity: 0.5;
    cursor: not-allowed;
}

.produto-icon {
    font-size: 5em;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.produto-nome {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.produto-preco {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.3em;
}

/* JOGO */
.game-container {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.sidebar {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 30px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sidebar-header {
    position: relative;
    margin-bottom: 30px;
}

.personagem-mini-jogo {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 3em;
    animation: bounce 2s ease-in-out infinite;
}

.personagem-mini-jogo img {
    width: 60px;
    height: auto;
    display: block;
}

.tabuleiro-container {
    flex: 1;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.titulo-tabuleiro {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f4d35e, #1e2555, #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.tabuleiro-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#tabuleiro {
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    touch-action: none;
}

.jogador-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 6px solid #3498db;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.jogador-info:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.jogador-info.ativo {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
}

.jogador-info h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
}

.jogador-info p {
    margin: 8px 0;
    color: #555;
    font-size: 1.1em;
}

.controles {
    margin: 30px 0;
}

.btn-dado {
    background: linear-gradient(45deg, #f4d35e 0%, #f9e07f 100%);
    color: #1e2555;
    border: none;
    padding: 20px;
    font-size: 1.3em;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(244, 211, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-dado:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(244, 211, 94, 0.6);
}

.dado-icon {
    font-size: 1.5em;
    animation: spin 3s linear infinite;
}

#resultado-dado {
    text-align: center;
    font-size: 4em;
    margin: 25px 0;
    color: #e74c3c;
    font-weight: bold;
    text-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    animation: bounce 0.5s ease-out;
}


/* MODAIS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 50px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: bounce 0.5s ease-out;
}

.carta-modal {
    text-align: center;
    max-width: 600px;
}

.carta-amarela {
    background: linear-gradient(135deg, #f4d35e 0%, #f9e07f 100%);
    color: #1e2555;
    font-weight: bold;
}

.carta-vermelha {
    background: linear-gradient(135deg, #e63946 0%, #f25c66 100%);
    color: white;
}

.carta-titulo {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.carta-texto {
    font-size: 1.8em;
    margin: 25px 0;
    line-height: 1.5;
}

.carta-valor {
    font-size: 2.5em;
    font-weight: bold;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.decisao-modal {
    max-width: 900px;
}

.decisao-opcoes {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.opcao-decisao {
    flex: 1;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 4px solid #1e2555;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.opcao-decisao::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.opcao-decisao:hover::before {
    left: 100%;
}

.opcao-decisao:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(244, 211, 94, 0.3);
    border-color: #f4d35e;
}

.opcao-decisao h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5em;
}

.opcao-decisao p {
    font-size: 1.3em;
    margin: 15px 0;
    color: #555;
}

.final-modal {
    max-width: 800px;
}

.final-modal h2 {
    text-align: center;
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
    margin-bottom: 30px;
}

#pergunta-atual {
    background: linear-gradient(135deg, #1e2555 0%, #2a3875 100%);
    color: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(30, 37, 85, 0.3);
}

#pergunta-atual h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

#pergunta-atual p {
    font-size: 1.5em;
    line-height: 1.6;
}

#opcoes-resposta {
    display: grid;
    gap: 20px;
}

.opcao-resposta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
}

.opcao-resposta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.opcao-resposta:hover::before {
    left: 100%;
}

.opcao-resposta:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #f4d35e;
    transform: translateX(10px);
}

.opcao-resposta.selecionada {
    background: linear-gradient(135deg, #1e2555 0%, #2a3875 100%);
    color: white;
    border-color: #1e2555;
    transform: scale(1.05);
}

.opcao-resposta.correta {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: #1e7e34;
    animation: pulse 0.5s ease-out;
}

.opcao-resposta.incorreta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #c82333;
}

.resultado-modal {
    max-width: 900px;
}

.titulo-resultado {
    text-align: center;
    font-size: 3.5em;
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    animation: pulse 2s ease-in-out infinite;
}

#resultado-final {
    margin: 30px 0;
}

.ranking-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    border: 3px solid transparent;
}

.ranking-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ranking-item.vencedor {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 3px solid #ff8c00;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.ranking-posicao {
    font-size: 3em;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.ranking-info {
    flex: 1;
}

.ranking-info h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.ranking-detalhes {
    color: #555;
    font-size: 1.1em;
    line-height: 1.8;
}

.ranking-detalhes p {
    margin: 8px 0;
}

.produto-mini {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    margin: 3px;
    font-size: 0.9em;
    font-weight: 600;
}

/* RESPONSIVO */

/* Tablets em paisagem e desktops pequenos */
@media (max-width: 1200px) {
    .game-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    #tabuleiro {
        width: 100%;
        height: 600px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    #tabuleiro {
        width: 100%;
        height: 500px;
    }
    
    .decisao-opcoes {
        flex-direction: column;
        gap: 15px;
    }
    
    .titulo-principal {
        font-size: 3em;
    }
    
    .hero-container {
        padding: 40px 30px;
    }
    
    .modal-content {
        padding: 35px 25px;
        max-width: 90%;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .tutorial-container {
        padding: 35px 25px;
        max-width: 90%;
    }
}

/* MODAL DE REGRAS */
.regras-modal {
    max-width: 800px;
}

.regras-modal h2 {
    text-align: center;
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.regras-conteudo {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
}

.regra-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #f4d35e;
}

.regra-item h3 {
    color: #1e2555;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.regra-item p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.regra-item strong {
    color: #1e2555;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .titulo-principal {
        font-size: 2.5em;
    }
    
    .subtitulo {
        font-size: 1.2em;
    }
    
    .personagem-avatar img {
        width: 150px;
    }
    
    .balao-fala {
        padding: 20px;
        max-width: 280px;
    }
    
    .balao-fala p {
        font-size: 1em;
    }
    
    .btn-hero {
        padding: 15px 40px;
        font-size: 1.2em;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .tutorial-container {
        padding: 25px 15px;
        max-width: 95%;
    }
    
    .tutorial-step h2 {
        font-size: 2em;
    }
    
    .tutorial-step p {
        font-size: 1.1em;
    }
    
    .casas-exemplo,
    .dicas-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .casa-tutorial {
        padding: 20px;
    }
    
    .dica-card {
        padding: 20px;
    }
    
    .modal-content {
        padding: 25px 15px;
        max-width: 95%;
    }
    
    .carta-modal {
        max-width: 100%;
    }
    
    .carta-titulo {
        font-size: 2em;
    }
    
    .carta-texto {
        font-size: 1.4em;
    }
    
    .carta-valor {
        font-size: 2em;
    }
    
    .config-container {
        padding: 25px 15px;
        max-width: 95%;
    }
    
    .numero-display {
        font-size: 3em;
    }
    
    .btn-numero {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .produto-card {
        padding: 15px;
    }
    
    .produto-icon {
        font-size: 2.5em;
    }
    
    .produto-nome {
        font-size: 0.9em;
    }
    
    .produto-preco {
        font-size: 0.85em;
    }
    
    #tabuleiro {
        width: 100%;
        height: 400px;
    }
    
    .jogo-container {
        padding: 15px;
    }
    
    .titulo-tabuleiro {
        font-size: 2em;
    }
    
    .jogadores-lista {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .jogador-card {
        padding: 12px;
    }
    
    .jogador-nome {
        font-size: 1.1em;
    }
    
    .jogador-info p {
        font-size: 0.95em;
    }
    
    .btn-dado {
        padding: 15px;
        font-size: 1.1em;
    }
    
    #resultado-dado {
        font-size: 3em;
    }
    
    .decisao-modal {
        max-width: 95%;
    }
    
    .opcao-decisao {
        padding: 20px;
    }
    
    .opcao-decisao h3 {
        font-size: 1.2em;
    }
    
    .opcao-decisao p {
        font-size: 1.1em;
    }
    
    .final-modal h2,
    .regras-modal h2 {
        font-size: 2em;
    }
    
    #pergunta-atual {
        padding: 25px;
    }
    
    #pergunta-atual h3 {
        font-size: 1.5em;
    }
    
    #pergunta-atual p {
        font-size: 1.2em;
    }
    
    .opcao-resposta {
        padding: 18px;
        font-size: 1.05em;
    }
    
    .ranking-item {
        padding: 18px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .ranking-posicao {
        font-size: 2em;
    }
    
    .ranking-info h3 {
        font-size: 1.3em;
    }
    
    .regra-item {
        padding: 15px;
    }
    
    .regra-item h3 {
        font-size: 1.3em;
    }
    
    .regra-item p {
        font-size: 1em;
    }
}

/* Celulares pequenos */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .titulo-principal {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .subtitulo {
        font-size: 1em;
    }
    
    .hero-container {
        padding: 25px 15px;
    }
    
    .personagem-avatar img {
        width: 120px;
    }
    
    .balao-fala {
        padding: 15px;
        max-width: 250px;
    }
    
    .balao-fala::before {
        border-width: 10px;
    }
    
    .balao-fala p {
        font-size: 0.9em;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .tutorial-container {
        padding: 20px 10px;
    }
    
    .tutorial-step h2 {
        font-size: 1.6em;
    }
    
    .tutorial-step p {
        font-size: 1em;
    }
    
    .tutorial-destaque {
        padding: 15px;
    }
    
    .casa-tutorial {
        padding: 15px;
    }
    
    .casa-tutorial span {
        font-size: 1.1em;
    }
    
    .dica-card {
        padding: 15px;
    }
    
    .dica-icon {
        font-size: 2.5em;
    }
    
    .dica-card p {
        font-size: 1em;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    .btn-grande {
        padding: 15px 35px;
        font-size: 1.1em;
    }
    
    .modal-content {
        padding: 20px 12px;
    }
    
    .carta-titulo {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .carta-texto {
        font-size: 1.2em;
    }
    
    .carta-valor {
        font-size: 1.8em;
        padding: 15px;
    }
    
    .config-container {
        padding: 20px 10px;
    }
    
    .numero-selector {
        gap: 15px;
    }
    
    .numero-display {
        font-size: 2.5em;
        min-width: 60px;
    }
    
    .btn-numero {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
    
    .jogador-input input {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .jogador-titulo {
        font-size: 1.4em;
        padding: 15px;
    }
    
    .produtos-contador {
        font-size: 1.2em;
        padding: 12px;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .produto-card {
        padding: 12px;
    }
    
    .produto-icon {
        font-size: 2em;
    }
    
    .produto-nome {
        font-size: 0.85em;
    }
    
    .produto-preco {
        font-size: 0.8em;
    }
    
    .btn-confirmar {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    #tabuleiro {
        width: 100%;
        height: 350px;
    }
    
    .jogo-container {
        padding: 10px;
    }
    
    .titulo-tabuleiro {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    
    .jogadores-lista {
        gap: 8px;
    }
    
    .jogador-card {
        padding: 10px;
    }
    
    .jogador-nome {
        font-size: 1em;
    }
    
    .jogador-info h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .jogador-info p {
        font-size: 0.85em;
        margin: 5px 0;
    }
    
    .btn-dado {
        padding: 12px;
        font-size: 1em;
    }
    
    .dado-icon {
        font-size: 1.2em;
    }
    
    #resultado-dado {
        font-size: 2.5em;
        margin: 15px 0;
    }
    
    .opcao-decisao {
        padding: 15px;
    }
    
    .opcao-decisao h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .opcao-decisao p {
        font-size: 1em;
        margin: 10px 0;
    }
    
    .final-modal h2,
    .regras-modal h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    
    #pergunta-atual {
        padding: 20px;
    }
    
    #pergunta-atual h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    #pergunta-atual p {
        font-size: 1em;
    }
    
    .opcao-resposta {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .ranking-item {
        padding: 15px;
    }
    
    .ranking-posicao {
        font-size: 1.8em;
        width: 50px;
        height: 50px;
    }
    
    .ranking-info h3 {
        font-size: 1.1em;
    }
    
    .ranking-detalhes {
        font-size: 0.9em;
    }
    
    .regra-item {
        padding: 12px;
    }
    
    .regra-item h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .regra-item p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    .btn-regras {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
    
    .personagem-mini img {
        width: 60px;
    }
    
    .tutorial-navegacao {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-dot {
        width: 12px;
        height: 12px;
    }
}

/* Landscape mode para celulares */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-container {
        padding: 20px;
    }
    
    .personagem-avatar img {
        width: 100px;
    }
    
    .balao-fala {
        max-width: 200px;
        padding: 10px;
    }
    
    .tutorial-container {
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    #tabuleiro {
        height: 300px;
    }
}

/* SCROLLBAR CUSTOMIZADA */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #f4d35e, #1e2555);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1e2555, #f4d35e);
}
