* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* ============================
   PARTICULAS
============================ */
#particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#game-wrapper {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 5;
}

/* ============================
   PANTALLAS
============================ */
.screen {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.screen.active {
    display: flex;
}

/* ============================
   BOOT
============================ */
#boot-screen {
    background: radial-gradient(circle at 50% 20%,
        rgba(47,98,255,0.75) 0%,
        rgba(5,11,27,0.75) 55%,
        rgba(0,0,0,0.75) 100%
    );
}

.boot-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 25px #6ba6ff;
}

.boot-press {
    font-size: 1.4rem;
    opacity: .7;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,100% { opacity:.2;}
    50% { opacity:1;}
}

/* ============================
   LOGIN / REGISTER / RESET / PROFILE
============================ */
#login-screen,
#register-screen,
#reset-screen,
#profile-screen {
    background: radial-gradient(circle at 50% 20%,
        rgba(28,45,89,0.78) 0%,
        rgba(5,11,27,0.78) 55%,
        rgba(0,0,0,0.78) 100%
    );
}

.login-box {
    background: rgba(0,0,0,0.48);
    padding: 35px 45px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 25px #5ab2ff55;
    border: 2px solid #4af;
    animation: loginPop 0.35s ease-out;
}

@keyframes loginPop {
    0% { transform: scale(.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.login-title {
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 18px #4af;
}

.login-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}

.login-field label {
    margin-bottom: 6px;
    font-size: 1rem;
    opacity: .85;
}

.login-field input {
    padding: 12px;
    width: 260px;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(10,15,25,0.9);
    color: #d7e3ff !important;
    border: 2px solid #3c8aff;
    outline: none;
    transition: 0.25s ease;
}

.login-field input::placeholder {
    color: #8bb3ff;
    opacity: 0.7;
}

.login-btn {
    margin-top: 10px;
    padding: 12px 20px;
    border: 2px solid #4af;
    color: #4af;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    transition: .25s;
    text-transform: uppercase;
    border-radius: 6px;
}

.login-btn:hover {
    background: #4af;
    color: #000;
    box-shadow: 0 0 18px #4af;
}

.login-error {
    margin-top: 8px;
    color: #ff5555;
    height: 18px;
    text-shadow: 0 0 12px #ff4444aa;
}

#forgot-pass,
#reset-back,
#profile-back,
.login-switch span {
    cursor: pointer;
    color: #4af;
}

#forgot-pass:hover,
#reset-back:hover,
#profile-back:hover,
.login-switch span:hover {
    text-shadow: 0 0 10px #4af;
}

/* ============================
   FIX — RECUPERAR CONTRASEÑA
============================ */
#reset-screen .login-box {
    width: 460px;
    max-width: 90%;
    padding: 40px 50px;
    border-radius: 14px;
    border: 2px solid #4af;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 25px #4af5;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#reset-screen .login-field input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
}

#reset-screen .login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
}

#reset-screen #reset-back {
    margin-top: 10px;
    color: #ddd;
    opacity: .8;
}

/* ============================
   MEMORY CARD
============================ */
#memory-screen {
    background: rgba(13,17,23,0.70);
    gap: 15px;
}

.mc-title {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.mc-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.mc-slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mc-slot-img {
    width: 150px;
    cursor: pointer;
    transition: .2s;
    filter: drop-shadow(0 0 10px #0008);
}

.mc-slot-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px #4af);
}

.slot-info {
    opacity: .8;
    margin-top: 5px;
}

.delete-save {
    margin-top: 8px;
    padding: 6px 14px;
    border: 2px solid #ff4444;
    background: transparent;
    color: #ff4444;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    transition: .2s;
    display: none;
}

.delete-save:hover {
    background: #ff4444;
    color: white;
}

/* ============================
   ADMIN MODE / PANEL
============================ */
#admin-mode-screen,
#admin-screen {
    background: radial-gradient(circle,
        rgba(2,6,23,0.70),
        rgba(0,0,0,0.70)
    );
}

.admin-list {
    margin: 20px 0;
    border: 2px solid white;
    padding: 20px;
    width: 380px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.admin-user-item {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.admin-btn {
    padding: 6px 12px;
    margin-left: 6px;
    border: 1px solid #fff;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
}

.admin-btn:hover {
    background: white;
    color: black;
}

/* ============================
   MENU
============================ */
#menu-screen {
    background: radial-gradient(circle,
        rgba(2,6,23,0.70),
        rgba(0,0,0,0.70)
    );
}

.menu-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.menu-option {
    font-size: 1.7rem;
    padding: 12px 0;
    cursor: pointer;
    transition: .15s;
}

.menu-option:hover {
    color: #5ab2ff;
    text-shadow: 0 0 10px #5ab2ff;
}

/* ============================
   LOAD
============================ */
#load-screen {
    background: rgba(2,6,23,0.70);
}

.load-text {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.btn-back-load {
    padding: 10px 20px;
    border: 2px solid #fff;
}

/* ============================
   OPTIONS (DISEÑO NUEVO)
============================ */
/* ============================
   OPTIONS — PANEL BONITO PS2
============================ */
#options-screen .menu-title {
    font-size: 3rem;
    margin-bottom: 40px;
    text-shadow: 0 0 18px #4aa8ff;
}

/* Caja del selector */
#options-screen .opt-section {
    background: rgba(10, 15, 25, 0.35);
    padding: 25px 40px;
    border-radius: 14px;
    border: 2px solid rgba(80,160,255,0.45);
    box-shadow: 0 0 22px rgba(80,160,255,0.25);
    backdrop-filter: blur(4px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    margin-bottom: 35px;
}

#options-screen .opt-label {
    font-size: 1.3rem;
    color: #e8f0ff;
    text-shadow: 0 0 10px #4aa8ff;
}

#options-screen .opt-select {
    background: rgba(15, 20, 35, 0.9);
    color: white;
    padding: 12px 40px 12px 14px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid #4aa8ff;
    transition: .25s ease;
}

#options-screen .opt-select:hover {
    box-shadow: 0 0 12px #4aa8ff;
}

/* Botón Editar perfil */
#options-screen #editProfile {
    margin-top: 5px;
    padding: 14px 30px;
    font-size: 1.3rem;

    border: 2px solid #4aa8ff;
    border-radius: 12px;

    background: rgba(10,15,25,0.40);
    backdrop-filter: blur(4px);

    cursor: pointer;
    transition: .25s ease;
}

#options-screen #editProfile:hover {
    background: #4aa8ff;
    color: #000;
    box-shadow: 0 0 22px #4aa8ff;
}

/* Botón Volver */
#options-screen .opt-back {
    margin-top: 30px;
    color: #ccc;
    font-size: 1rem;
}

#options-screen .opt-back:hover {
    color: #fff;
}

/* ============================
   STORY
============================ */
#story-screen {
    background: radial-gradient(circle,
        rgba(2,6,23,0.70),
        rgba(0,0,0,0.70)
    );
}

.story-box {
    padding: 35px 45px;
    width: 70%;
    max-width: 780px;
    border-radius: 16px;
    border: 2px solid #3c8aff55;
    box-shadow: 0 0 25px #3c8aff33;
    backdrop-filter: blur(6px);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#chapter {
    font-size: 2.7rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 18px #5ab2ff;
    color: #d9e6ff;
}

#line {
    font-size: 1.5rem;
    line-height: 1.6;
    min-height: 130px;
    color: #e6eeff;
    text-shadow: 0 0 8px #1b2a5a;
}

.dialog {
    margin-top: 35px;
    padding: 12px 26px;
    border: 2px solid #4af;
    color: #4af;
    background: rgba(20, 30, 60, 0.4);
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px #1b2a5a;
}

.dialog:hover {
    background: #4af;
    color: #000;
    box-shadow: 0 0 25px #4af;
    transform: scale(1.05);
}

.btn-back-story {
    margin-top: 30px;
    padding: 10px 22px;
    border: 2px solid #4af;
    color: #4af;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s ease;
}

.btn-back-story:hover {
    background: #4af;
    color: #000;
    box-shadow: 0 0 18px #4af;
}

/* ============================
   THEMES
============================ */
#game-wrapper.theme-red { 
    filter:hue-rotate(100deg) saturate(1.4); 
}
#game-wrapper.theme-green { 
    filter:hue-rotate(260deg) saturate(1.4); 
}
#game-wrapper.theme-blue { 
    filter:hue-rotate(0deg) saturate(1.4); 
}

.cursor {
    cursor: default;
}
