﻿body{
    background-color: lightblue;
    margin: 0;
    font-family: Arial, sans-serif;
}

.franja{
    width: 100%;
    min-height: 1cm;
    background-color: #3b5c8f;
    border-top: 2px solid #1f3350;
    border-bottom: 2px solid #1f3350;
    padding: 8px 12px;
    box-sizing: border-box;
}

.site-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: white;
}

.site-title{
    flex: 1 1 auto;
    text-align: center;
}

.btn-back{
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.auth-area{
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.auth-buttons{
    display: flex;
    gap: 8px;
}

.auth-btn{
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    background: linear-gradient(180deg, rgba(64,64,250,1) 0%, rgba(0,212,255,1) 100%);
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.auth-btn:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.auth-btn-secondary{
    background: rgba(255,255,255,0.15);
}

.auth-btn-full{
    width: 100%;
}

.auth-user{
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-bonus-btn{
    padding: 6px 12px;
    border-radius: 10px;
    border: 2px solid #ffe08a;
    background: linear-gradient(180deg, #ffd54f 0%, #ff9800 100%);
    color: #3b2400;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.daily-bonus-btn:hover:not(:disabled){
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.daily-bonus-btn:disabled{
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.65);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.auth-user-btn{
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 2px solid white;
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
}

.auth-avatar{
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /* background: linear-gradient(180deg, rgba(64,64,250,1) 0%, rgba(0,212,255,1) 100%); */
    flex-shrink: 0;
    object-fit: cover;
}

.avatar-picker-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 12px;
}

.avatar-picker-option{
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    background: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.avatar-picker-option:hover{
    border-color: white;
    transform: translateY(-2px);
}

.avatar-picker-option.selected{
    border-color: #ffd54f;
    box-shadow: 0 0 12px rgba(255,213,79,0.6);
}

.avatar-picker-option img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.avatar-picker-option{
    position: relative;
}

.avatar-picker-option.locked img{
    opacity: 0.45;
}

.avatar-price-badge{
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f3350;
    border: 2px solid white;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.65rem;
    font-weight: bold;
    color: #ffd54f;
    white-space: nowrap;
}

.auth-user-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.auth-coins{
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.85;
}

.auth-menu{
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1f3350;
    border: 2px solid white;
    border-radius: 10px;
    min-width: 170px;
    display: none;
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.auth-menu.open{
    display: block;
}

.auth-menu-item{
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    box-sizing: border-box;
}

.auth-menu-item:hover{
    background: rgba(255,255,255,0.12);
}

.auth-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.auth-modal{
    position: relative;
    background: linear-gradient(180deg, #3b5c8f 0%, #1f3350 100%);
    border: 3px solid white;
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 340px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.auth-modal h2{
    margin: 0 0 16px;
    text-align: center;
}

.auth-modal form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-modal input{
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid white;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.auth-modal input::placeholder{
    color: rgba(255,255,255,0.7);
}

.auth-modal-close{
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.auth-form-error{
    color: #ffb3b3;
    font-size: 0.85rem;
    min-height: 1em;
    margin: 0;
}

.auth-switch{
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.85rem;
}

.auth-switch a{
    color: #9fd8ff;
}

.wii-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.wii-box2{
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(64,64,250,1) 0%, rgba(0,212,255,1) 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.6);
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.5s ease, box-shadow 0.15s ease;
    text-align: center;
    box-sizing: border-box;
}

.wii-box{
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(64,64,250,1) 0%, rgba(0,212,255,1) 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.6);
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.5s ease, box-shadow 0.15s ease;
    padding: 8px;
    box-sizing: border-box;
}

.wii-box:hover{
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.7);
}

.wii-box-icono{
    font-size: 2.5rem;
}

.wii-box-titulo{
    font-size: clamp(0.85rem, 4vw, 24px);
    text-align: center;
}

.feedback-box{
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(64,64,250,1) 0%, rgba(0,212,255,1) 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.6);
    color: white;
    box-sizing: border-box;
}

.feedback-titulo{
    margin: 0 0 10px;
    font-size: 1.1rem;
    text-align: center;
}

#feedback-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

#feedback-mensaje{
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid white;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}

#feedback-mensaje::placeholder{
    color: rgba(255,255,255,0.7);
}

#feedback-form button{
    align-self: center;
    padding: 10px 20px;
}

#feedback-estado{
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    min-height: 1em;
    margin: 10px 0 0;
}

.feedback-exito{
    color: #b6ffb0;
}

.feedback-error{
    color: #ffb3b3;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: #2c2f33;
}

::-webkit-scrollbar-thumb {
    background-color: #7289da;
    border-radius: 10px;
    border: 2px solid #2c2f33;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #99aab5;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #aaaaaa #3b5c8f;
}

@media (max-width: 700px) {
    .wii-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 24px auto;
        padding: 0 16px;
    }

    .franja{
        font-size: 0.9rem;
    }

    .site-header{
        justify-content: center;
        text-align: center;
    }

    .auth-area{
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .wii-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wii-box{
        aspect-ratio: 16 / 9;
    }

    .franja{
        font-size: 0.8rem;
    }

    .auth-btn{
        font-size: 0.8rem;
        padding: 7px 10px;
    }

    .auth-user{
        flex-wrap: wrap;
        justify-content: center;
    }

    .daily-bonus-btn{
        font-size: 0.75rem;
        padding: 6px 9px;
    }
}