:root {
    --primary-color: #28a745;
    --secondary-color: #1e7e34;
    --accent-color: #d4af37;
    --dark-color: #0a1a0f;
    --light-color: #f8f9fa;
    --tab-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: url('../img/background.webp') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* Partículas doradas */
.particle {
    position: absolute;
    background: radial-gradient(
        circle, 
        rgba(241, 196, 15, 0.8) 0%, 
        rgba(243, 156, 18, 0.6) 50%, 
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
    animation: shine 4s infinite alternate;
    opacity: 0;
}

@keyframes shine {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.header {
    color: var(--accent-color);
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 0;
}

.header h1 {
	/* Mantenemos algunos estilos base */
	font-size: 3em;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	letter-spacing: 1px;
	/* Eliminamos el text-shadow anterior porque lo pondremos en el titulo-metallico */
	margin: 10px 0; /* Ajustar según necesidad */
	padding: 0;
}

.titulo-metallico {
	text-transform: uppercase;
	background: linear-gradient(
		45deg,
		#d4af37,
		#f9f295,
		#e6bc5c,
		#f9f295,
		#d4af37
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	background-size: 300% 300%;
	animation: metallic-shine 3s ease infinite;
	text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

@keyframes metallic-shine {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 200% 50%;
	}
}

.imaginario {
    width: 15vw;
    height: 10vw;
    max-width: 100%;
    border: 1px solid darkgoldenrod; /* Solo para visualización */
}

.home-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
}

.start-button span {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.home-titulo{
    color: goldenrod;
    font-size: 1.75em;
    font-weight: bold;
}

.home-top3 {
    display: grid;
    grid-template-rows: auto auto; /* Dos filas */
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual ancho */
    gap: 10px; /* Espacio entre celdas */
    width: 40vw;
    height: auto;
    max-width: 50%;
}

.home-oro{
    grid-column: 1 / -1; /* Ocupa desde la primera hasta la última columna */
    color: gold;
    font-size: 1.25em;
    font-weight: bold;
    border: 2px solid darkgoldenrod; /* Solo para visualización */
    padding: 10px;
}

.home-plata{
    font-size: 1.0em;
    font-weight: bold;
    color: silver;
    border: 2px solid gray; /* Solo para visualización */
    padding: 10px;
}

.home-bronce{
    font-size: 1.0em;
    font-weight: bold;
    color: darkgoldenrod;
    border: 2px solid chocolate; /* Solo para visualización */
    padding: 10px;
}

.home-segundones {
    font-size: 1.25em;
    font-weight: bold;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.content {
    position: relative;
    flex: 1;
    min-height: 100vh;
    overflow: hidden;
    overflow-y: auto;
    padding-bottom: calc(var(--tab-height) + 50px + env(safe-area-inset-bottom));
    padding-bottom: calc(var(--tab-height) + 70px + constant(safe-area-inset-bottom));
    justify-content: center;
    align-items: center;
}

/* Nuevos estilos para los iconos SVG */
.tab-icon {
    width: 28px;  /* Aumentado de 24px a 28px */
    height: 28px; /* Aumentado de 24px a 28px */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--tab-height);
    padding-top: 12px; /* Espacio superior adicional */
    /*background: rgba(255, 255, 255, 0.15); */
    display: flex;
    border-radius: 38px;
    z-index: 100;
    width: 95%;
    max-width: 500px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Compatibilidad con Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 12px 10px 12px;
    margin-bottom: 10px;
    /* Añadir posición relativa para contener el pseudo-elemento */
}

/* Efecto glossy adicional */
.tab-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 70%
    );
    z-index: -1; /* Asegurarse que está detrás del contenido */
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    opacity: 0.7;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
    z-index: 2;
}

.tab span:first-child {
    margin-bottom: 0; /* Reducido de 2px a 0 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab span:last-child {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin-top: 2px; /* Agregado para compensar la reducción del margen inferior */
}

.tab.active span:last-child {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    font-weight: bold;
}

/* Reducir el tamaño del texto en pantallas pequeñas */
@media (max-width: 350px) {
    .tab span:last-child {
        font-size: 12px;
		color: rgba(255, 255, 255, 0.8);
    }
}
/* Aumentar espacio seguro para dispositivos con notch */
@media (max-height: 700px) {
    .content {
		padding-bottom: calc(var(--tab-height) + 70px + env(safe-area-inset-bottom));
        padding-bottom: calc(var(--tab-height) + 90px + constant(safe-area-inset-bottom));
    }
}

.tab.active {
    opacity: 1;
    transform: translateY(-6px);
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--tab-height));
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s ease;
    overflow-y: auto;
    z-index: 1;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilo para la página de juegos */
.games-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px;
    margin-top: 20px; /* Espacio adicional */
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(2px)
}

.game-card:active {
    transform: scale(0.98);
}

.game-icon {
    width: 136px;
    height: 136px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
    transition: transform 0.3s ease;
    object-fit: contain;
}


.game-card:hover .game-icon {
    transform: scale(1.05);
}

.game-icon path, .game-icon rect, .game-icon circle {
    transition: all 0.3s ease;
}

.game-card:hover .game-icon path,
.game-card:hover .game-icon rect,
.game-card:hover .game-icon circle {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.9));
}

.game-image {
    height: 140px; /* Más alto para los nuevos iconos */
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.game-info {
    padding: 12px;
}

.game-title {
    color: #eac757;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.game-desc {
    color: var(--light-color);
    font-size: 12px;
}

/* Estilo para la página de perfil */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.profile-username {
    color: var(--light-color);
    opacity: 0.8;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.stat {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(2px);
}

.stat-value {
    font-weight: bold;
    font-size: 18px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 12px;
    color: var(--light-color);
    opacity: 0.8;
}

/* Animación para las pestañas activas */
.tab.active span:first-child {
	color: transparent;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 215, 0, 0.9) 30%,
        rgba(184, 134, 11, 0.8) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1.15);
    animation: glow 1.5s infinite alternate;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Ajustar efecto de brillo para los nuevos iconos */
.tab.active .tab-icon {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8)) 
            drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes glow {
    0% {
		text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.9), /* Más brillo */
            0 0 30px rgba(255, 215, 0, 0.8);
    }
    100% {
        text-shadow: 
            0 0 25px rgba(255, 215, 0, 1), /* Mucho más brillo */
            0 0 50px rgba(255, 215, 0, 0.9);
    }
}

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

/* Estilo para el texto en la página de inicio */
#home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ESTILO COMPLETAMENTE NUEVO PARA EL BORDE METÁLICO */
.metallic-border {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 20px auto;
	align-items: center;
	border-radius: 57px;
	overflow: hidden;
	z-index: 10;
	padding: 3px; /* Grosor del borde */
	background: linear-gradient(
		45deg,
		#d4af37, /* Dorado */
		#f9f295, /* Dorado claro */
		#e6bc5c, /* Dorado medio */
		#f9f295, /* Dorado claro */
		#d4af37  /* Dorado */
	);
	background-size: 300% 300%;
	animation: metallic-shine 3s ease infinite;
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.7); /* Sombra para resaltar */
}
				
.start-button {
    position: relative;
    padding: 20px 50px;
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    background: linear-gradient(to bottom, #115C3E, #07271A);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    z-index: 10;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.95;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 400px) {
    .game-card {
        min-width: 130px;
    }
    .stat {
        min-width: 70px;
    }
}

/* Diálogos */

        .sobretodo {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: none;
        }

        .dialog-container {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            width: 90%;
            max-width: 400px;
            display: none;
        }
        
        .dialog-title {
            margin-top: 0;
            color: #333;
        }
        
        .dialog-message {
            color: black;
            margin-bottom: 20px;
        }
        
        .dialog-input {
            width: 100%;
            padding: 8px;
            margin-bottom: 15px;
            box-sizing: border-box;
        }
        
        .dialog-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        
        .dialog-button {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .dialog-button-primary {
            background-color: #4CAF50;
            color: white;
        }
        
        .dialog-button-secondary {
            background-color: #f44336;
            color: white;
        }
        
        @media (max-width: 480px) {
            .dialog-buttons {
                flex-direction: column;
            }
            .dialog-button {
                width: 100%;
            }
        }

/* Fin de la parte de los diálogos*/

.welcome-message {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0 auto 25px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    font-size: 1.9em;
    max-width: 90%;
    padding: 0 15px;
}

.welcome-container {
    position: absolute;
    top: 17%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 1;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
    .welcome-message {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
}

/* Estilos mejorados para el logo */
#logocintillo {
    margin: 20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.9), /* Aumentar brillo con color dorado más intenso */
        inset 0 0 15px rgba(255, 255, 255, 0.7); /* Brillo interior más fuerte */
    background: radial-gradient(
        circle, 
        rgba(255, 215, 0, 0.9) 0%,   /* Amarillo dorado más brillante */
        rgba(218, 165, 32, 0.9) 100% /* Dorado más oscuro pero con mayor opacidad */
    );
    transition: all 0.3s ease;
    cursor: pointer;
    animation: logoPulse 2s infinite alternate;
    filter: brightness(1.2); /* Aumentar brillo general de la imagen */
}

#logocintillo:active {
    transform: scale(0.95);
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.9),
            inset 0 0 15px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1), /* Más brillo en el estado de pulso máximo */
            inset 0 0 20px rgba(255, 255, 255, 0.9);
    }
}

/* Animación de carga para el logo */
@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-loading {
    animation: logoSpin 1.5s linear infinite !important;
}

/* Estilo para el botón de RCoin */
.rcoin-button {
    position: relative;
    padding: 12px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    background: linear-gradient(to bottom, #115C3E, #07271A);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    z-index: 10;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    display: block;
    margin: auto;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.rcoin-button span {
    position: relative;
    z-index: 2;
}

.rcoin-button:active {
    transform: scale(0.98);
}

.top-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.back-button {
    position: absolute;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-button:active {
    transform: scale(0.9);
}

.top-header h2 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.top-container {
    padding: 15px;
}

.top-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.2s;
}

.top-item:active {
    transform: scale(0.98);
}

.top-rank {
    width: 30px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    text-align: center;
}

.top-name {
    flex: 1;
    color: var(--light-color);
    font-size: 16px;
    margin-left: 10px;
}

/* Colores especiales para primeros puestos */
.top-gold {
    background: linear-gradient(
        135deg, 
        rgba(212, 175, 55, 0.3) 0%, 
        rgba(212, 175, 55, 0.15) 100%
    );
    border: 2px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.top-silver {
    background: linear-gradient(
        135deg, 
        rgba(192, 192, 192, 0.3) 0%, 
        rgba(192, 192, 192, 0.15) 100%
    );
    border: 2px solid rgba(192, 192, 192, 0.7);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

.top-bronze {
    background: linear-gradient(
        135deg, 
        rgba(205, 127, 50, 0.3) 0%, 
        rgba(205, 127, 50, 0.15) 100%
    );
    border: 2px solid rgba(205, 127, 50, 0.7);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
}

/* Agregar animación a los primeros lugares */
.top-gold, .top-silver, .top-bronze {
    animation: topPulse 2s infinite alternate;
}

@keyframes topPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

.top-icon {
    margin-left: 10px;
    font-size: 20px;
    animation: shineIcon 2s infinite alternate;
}

@keyframes shineIcon {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
}

/*Relativo a la nueva banca*/
.help-button {
    position: absolute;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-color);
}

.banka-user-info {
    display: flex;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.user-details {
    flex: 1;
    padding: 0 15px;
}

.user-balances {
    text-align: right;
    min-width: 120px;
}

.balance-item {
    margin-bottom: 5px;
    font-size: 14px;
    color: white;
    font-weight: bold;
}

.balance-label {
    font-weight: bold;
    color: var(--accent-color);
}

.balance-value {
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
}

.balance-gain {
    color: #28a745;
    font-size: 12px;
    margin-left: 5px;
}

.banka-actions {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.action-button {
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(to bottom, #115C3E, #07271A);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 45%;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.banka-bundles {
    display: flex;
    justify-content: space-around;
    padding: 0 15px 20px;
}

.bundle {
    width: 30%;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bundle-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.bundle-label {
    font-size: 0.9em;
}

.expandable-section {
    position: absolute;
    bottom: 29vh;
    left: 0;
    right: 0;
    background: rgba(10, 26, 15, 0.95);
    padding: 20px;
    border-top: 3px solid var(--accent-color);
    z-index: 1000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    height: 37vh;
    border-bottom: 3px solid var(--accent-color);
}

.expandable-section.active {
    display: block;
    transform: translateY(0);
}

.expandable-title {
    text-align: center;
    font-size: 1.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.balance-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: white;
}

.amount-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.amount-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-size: 2em;
    font-weight: bold;
    border: none;
    margin: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.amount-btn:active {
    transform: scale(0.95);
}

.amount-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.amount-display {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.amount-control input {
    width: 100px;
    height: 50px;
    text-align: center;
    font-size: 1.5em;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    color: white;
}

.expandable-actions {
    display: flex;
    justify-content: space-around;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.action-cancel, .action-ok {
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    width: 40%;
}

.action-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.action-ok {
    background: linear-gradient(to bottom, #28a745, #1e7e34);
    color: white;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 22vh; /* Posiciona el botón verticalmente */
    width: 100%;
}
/*Iconos png del top*/
.medal-icon, .trophy-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.top-icon img {
    width: 30px;
    height: 30px;
    animation: shineIcon 2s infinite alternate;
}
/*Iconos png de saldo y rcoin*/
.currency-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.7));
}
/*Icono de ver ranking*/
.rcoin-button.with-ranking-icon {
    position: relative;
    padding-right: 40px; /* Espacio para el icono */
}

.ranking-icon {
    position: absolute;
    top: -1px;
    right: 3px;
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.7));
    transition: all 0.3s ease;
}

.rcoin-button.with-ranking-icon:active .ranking-icon {
	transform: scale(0.9);
}

/* Estilos para el header en diferentes páginas */
.header {
    transition: all 0.3s ease;
}

/* Cuando no está en la página de inicio */
body:not(.on-home-page) .header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 15px;
    height: 60px;
}

body:not(.on-home-page) #logocintillo {
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

body:not(.on-home-page) .header h1 {
    display: none;
}

/* Animación para el logo cuando cambia de página */
@keyframes shrinkLogo {
    from {
        width: 140px;
        height: 140px;
    }
    to {
        width: 35px;
        height: 35px;
    }
}

@keyframes growLogo {
    from {
        width: 35px;
        height: 35px;
    }
    to {
        width: 140px;
        height: 140px;
    }
}

body.shrink-logo #logocintillo {
	animation: shrinkLogo 0.3s ease forwards;
}

body.grow-logo #logocintillo {
    animation: growLogo 0.3s ease forwards;
}

body.page-switch #logocintillo {
    animation: shrinkLogo 0.3s ease forwards;
}

/* Estilos para el botón de ayuda */
.help-button-index {
    position: absolute;
    right: 15px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.help-button-index svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.help-button-index:active {
    transform: scale(0.95);
}

/* Ajuste para cuando no está en la página de inicio */
body:not(.on-home-page) .help-button-index {
    right: 10px;
    top: 12px;
}
