:root {
    --bg: #0f172a;
    --accent: #fbbf24;
    --toast-bg: #22c55e;
}

body { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    font-family: 'system-ui', sans-serif; 
    background: var(--bg); 
    color: white; 
    margin: 0; 
    overflow: hidden; 
    touch-action: manipulation;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#toast { 
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    -webkit-tap-highlight-color: transparent;
}

#toast:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

#toast:active {
    transform: scale(0.9);
}

#counter { 
    font-size: 5rem; 
    font-weight: 900; 
    margin: 10px 0;
    color: var(--accent); 
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    transition: transform 0.1s ease;
}

#game-container { 
    display: none; 
    width: 100%; 
    text-align: center;
}

#game-container.active { 
    display: block; 
    animation: fadeIn 0.5s ease-in; 
}

img { 
    width: 70vw; 
    max-width: 300px; 
    height: auto;
    border-radius: 24px; 
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s;
    user-select: none;
    -webkit-user-drag: none;
}

.disabled { 
    filter: brightness(0.7); 
    transform: scale(0.95); 
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.particle {
    position: fixed;
    pointer-events: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 200;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -100px); }
}

.reset-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Lo hace circular */
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Efecto cristal */
    -webkit-tap-highlight-color: transparent;
}

#reset-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    transform: rotate(15deg); /* Pequeña rotación al tocar */
}

#reset-btn:active {
    transform: scale(0.9);
}

/* Para ocultar el botón */
.hidden {
    display: none !important;
}

/* Para el estado gris (deshabilitado) */
#reset-btn:disabled {
    filter: grayscale(1);
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* stages.css */
.stage-hardcore {
    background: radial-gradient(circle, #450a0a 0%, #000000 100%) !important;
    transition: background 2s ease-in-out;
}

.stage-hardcore #counter {
    color: #ff0000 !important;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.stage-hardcore img {
    filter: sepia(1) saturate(5) hue-rotate(-50deg);
}

/* Pantalla Final */
#game-over-screen {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.shop-container button {
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--border);
    cursor: pointer;
    line-height: 1.4;
}

.shop-container button b {
    color: var(--accent);
    display: block;
    font-size: 0.8rem;
}

.shop-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #222;
}

#credits {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    left: 20px;
    top: 30px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    -webkit-tap-highlight-color: transparent;
}

#credits:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

#credits:active {
    transform: scale(0.9);