/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Estilo do título */
.title {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite alternate;
}

/* Estilo da pontuação */
.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
}

.score-label {
    font-size: 1rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Barra de XP */
.xp-bar {
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.xp-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7cfc00, #adff2f);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Botão de clique */
.click-area {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.click-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd700, #ff8c00);
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5),
                0 10px 20px rgba(0, 0, 0, 0.3),
                inset 0 5px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.click-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.click-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5),
                0 5px 10px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

/* Container de mensagens e efeitos */
.messages-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Animações */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1.2);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Mensagens animadas */
.message {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeInOut 1.5s forwards;
    white-space: nowrap;
}

/* Efeitos de partículas */
.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: confettiFall linear forwards;
    user-select: none;
}

/* Responsividade */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }
    
    .score {
        font-size: 2.5rem;
    }
    
    .click-button {
        width: 180px;
        height: 180px;
        font-size: 1.5rem;
    }
    
    .message {
        font-size: 1.5rem;
    }
}

/* Efeitos especiais */
.special-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, rgba(255,215,0,0) 70%);
    animation: expand 0.5s forwards;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

@keyframes expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Estilos para o contador CPS */
.cps-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 1rem;
    color: #fff;
    z-index: 100;
}

.cps-value {
    color: #7cfc00;
    font-weight: bold;
}

/* Estilos para o Modo Frenesi */
.frenzy-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.frenzy-button {
    padding: 10px 15px;
    background: linear-gradient(145deg, #ff0000, #ff4500);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
    transition: all 0.3s;
}

.frenzy-button:disabled {
    background: #555;
    box-shadow: none;
    cursor: not-allowed;
}

.frenzy-button:not(:disabled):hover {
    transform: scale(1.05);
}

.frenzy-timer, .frenzy-cooldown {
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* Estilos para a Loja */
.shop-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    display: none; /* Inicialmente oculta */
}

.shop-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #333;
    border-radius: 10px;
}

.item-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.gold-skin {
    background: linear-gradient(145deg, #ffd700, #daa520);
    box-shadow: 0 0 10px gold;
}

.rainbow-skin {
    background: linear-gradient(145deg, #ff0000, #ff8c00, #ffd700, #7cfc00, #00bfff, #8a2be2);
    box-shadow: 0 0 10px white;
    animation: rainbow 2s linear infinite;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-weight: bold;
    color: #fff;
}

.item-price {
    color: #ffd700;
    font-size: 0.9rem;
}

.item-buy {
    padding: 5px 10px;
    background: linear-gradient(145deg, #7cfc00, #32cd32);
    border: none;
    border-radius: 5px;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.item-buy:hover {
    transform: scale(1.05);
}

.item-buy:disabled {
    background: #555;
    cursor: not-allowed;
}

.item-status {
    font-size: 0.8rem;
    color: #7cfc00;
    font-style: italic;
}

/* Estilos para Conquistas */
.achievements-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    display: none; /* Inicialmente oculta */
}

.achievements-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.achievement {
    background-color: #333;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.achievement-icon {
    font-size: 2rem;
}

.achievement-name {
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.achievement-status {
    font-size: 0.8rem;
    color: #aaa;
}

.achievement.unlocked .achievement-status {
    color: #7cfc00;
}

/* Estilos para o Sistema VIP */
.vip-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: none; /* Inicialmente oculta */
}

.vip-code {
    padding: 10px 15px;
    border: 2px solid #ffd700;
    border-radius: 20px;
    background-color: #333;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.vip-button {
    padding: 10px 20px;
    background: linear-gradient(145deg, #ffd700, #daa520);
    border: none;
    border-radius: 20px;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.vip-button:hover {
    transform: scale(1.05);
}

.vip-status {
    margin-top: 10px;
    color: #ffd700;
    font-weight: bold;
}

/* Novas animações */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes frenzyGlow {
    0% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.7); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.9); }
    100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.7); }
}

.frenzy-active {
    animation: frenzyGlow 1s infinite;
}

/* Botão de toggle para loja/conquistas */
.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.toggle-button {
    padding: 10px 20px;
    background: #333;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-button.active {
    background: linear-gradient(145deg, #ffd700, #daa520);
    color: #111;
}

/* Efeitos VIP */
.vip-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0) 70%);
    animation: vipGlow 3s infinite;
}

@keyframes vipGlow {
    0% { opacity: 0.3; }
    50% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

/* Adicione no final do seu arquivo CSS */

/* Ajustes para telas muito pequenas (menos de 400px) */
@media (max-width: 400px) {
    .title {
        font-size: 1.8rem;
    }
    
    .score {
        font-size: 2rem;
    }
    
    .click-button {
        width: 150px;
        height: 150px;
        font-size: 1.4rem;
    }
    
    .shop-container, 
    .achievements-container,
    .vip-container {
        padding: 15px;
        margin-top: 20px;
    }
    
    .shop-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-preview {
        margin-bottom: 10px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .toggle-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .toggle-button {
        width: 100%;
    }
}

/* Garantir que containers não quebrem em telas pequenas */
.shop-container,
.achievements-container,
.vip-container {
    max-width: 95%;
    overflow-x: auto;
    box-sizing: border-box;
}

/* Ajustar posição dos contadores em telas pequenas */
@media (max-width: 600px) {
    .cps-counter {
        bottom: 10px;
        right: 10px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .frenzy-container {
        bottom: 10px;
        left: 10px;
    }
}

/* Adicione no final do seu arquivo CSS */
.reset-container {
    margin-top: 30px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.reset-button {
    padding: 12px 24px;
    background-color: #ff3333;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reset-button:hover {
    background-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.reset-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}