/* =====================================
============ GENERAL =================
===================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #000000;
    min-height: 100vh;
    font-size: 100%;
    overflow-y: auto;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

/* =====================================
============ ACCESS =================
===================================== */

#video-loader {
    color: #6e6e6e;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #0c0f1f, #06070d);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 5;
    transition: opacity .5s ease, visibility .5s ease;
}

#video-loader small {
    color: #ffffff;
    font-family: "Grand Hotel", cursive;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#video-loader .small-visible {
    opacity: 1;
}

#video-loader small span {
    color: #878787;
    font-size: 0.9rem;
    font-weight: 600;
}

#video-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
    width: 2.625rem; /* 42px */
    height: 2.625rem; /* 42px */
    border: 0.1875rem solid rgba(255,255,255,.15); /* 3px */
    border-top: 0.1875rem solid #fff; /* 3px */
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* BG VIDEO */

.video-fallback,
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
    z-index: -1;
    opacity: 0;
    transition: opacity .6s ease;
}

.video-fallback,
.bg-video.is-ready {
    opacity: 1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(rgba(0, 0, 0, 0), rgb(0 0 0));
    z-index: -1;
}

#access {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.8rem;
}

/* ACCESS PANEL */
#access-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 23rem;
}

#panel-access-container {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.122);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    animation: fadeIn .6s ease;
}
/* LOGO */
.access-panel-logo {
    color: #fff;
    font-family: "Grand Hotel", cursive;
    font-size: 2.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0rem 0.3rem;
}

.access-panel-logo img {
    width: 50px;
    height: 50px;
}

/* STEPS */
.step {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}

.step.active {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: transform .25s cubic-bezier(.4,0,.9,1), opacity 0.25s cubic-bezier(.4,0,.9,1);
    visibility: visible;
}

.nickname-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* INPUTS */
#access-panel input {
    padding: 0.75rem 0.6rem;
    border-radius: .5rem;
    border: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: box-shadow .25s ease, transform .15s ease;
}

/* BOTONES */
.btn {
    padding: .85rem 1rem;
    border-radius: .5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s ease;
    width: 100%;
}

/* Principal */
.btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.btn.primary:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Secundario */
.btn.secondary {
    background: #ffffff;
    color: #111;
}

.btn.primary:hover,
.btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,.4);
}

/* Ghost */
.btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
}

.btn.ghost:hover {
    background: rgba(255,255,255,.1);
}

/* Back */
.btn.back-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    margin: 1rem auto auto;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.back-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn.back-btn svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

#step-recovery {
    color: #fff;
    display: table;
    margin: auto;
    transition: color .3s ease;
}
#step-recovery:hover {
    color: #8b5cf6;
}

#recovery {
    display: none;
}

#recovery input {
    margin-bottom: 1rem;
    width: 100%;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#guest-modal {
    border-radius: 0.8rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #111827;
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn .3s ease;
    height: 100%;
}

.guest-terms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    color: #fff;
    font-size: 0.9rem;
}

.modal-content b {
    font-weight: bold;
}

.guest-terms input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #8b5cf6; /* color morado moderno */
    cursor: pointer;
    margin-right: 0.1rem;
}
.guest-terms a {
    color: #8b5cf6;
    text-decoration: underline;
}

#panel-access-footer {
    text-align: center;
    margin: 0.5rem auto;
}

#panel-access-footer p {
    color: #fff;
    width: max-content;
    margin: auto;
    font-weight: 600;
}

#panel-access-footer p span {
    color: red;
}

#panel-access-footer a {
    color: #c0c0c0;
    text-decoration: underline;
    font-size: .9rem;
    margin: 0 0.07rem;
    transition: color .3s ease;
}

#panel-access-footer small {
    display: block;
    font-family: "Grand Hotel", cursive;
    margin-top: 1rem;
    color: #c0c0c0;
    font-size: .95rem;
}

#panel-access-footer a:hover {
    color: #fff;
}

/* CONDITIONAL CONTENT */
#info-modal .modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    background: #111827;
    color: #fff;
    border-radius: 1rem;
}

#modal-sections {
    display: none;
}

/* Notifications */
/* Contenedor principal de notificaciones */
#notification-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    pointer-events: none; /* permite click-through */
}

/* Notificación base */
.notification {
    color: #fff;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto; /* habilita interacción si se quiere */
    font-size: 14px;
    font-weight: 500;
}

/* Estado de error */
.notification.error {
    background-color: #e74c3c;
}

/* Estado de éxito */
.notification.success {
    background-color: #27ae60;
}

/* =====================================
============ LOBBY =====================
===================================== */



/* =====================================
============ ROOM ======================
===================================== */



/* =====================================
============ ANIMATIONS ================
===================================== */

@keyframes slideFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================
============ responsive ================
===================================== */

@media (max-width: 26.27rem) { /* 420px */
    #panel-access-footer p,
    #panel-access-footer a,
    #panel-access-footer small {
        font-size: 80%;
        width: auto;
    }
}