/* ============================================
   Seating Chart — Portada / Cover Display
   Fullscreen external screen — fully responsive
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #000;
    color: #fff;
    width: 100vw;
    height: 100vh; height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.screen {
    display: none;
    width: 100vw;
    height: 100vh; height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.screen.active { display: flex; }

/* ═══════ Loading ═══════ */
.screen-loading { background: linear-gradient(135deg, #1a1a2e, #16213e); }

.loading-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(212,175,55,0.2);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { margin-top: 16px; color: rgba(255,255,255,0.5); font-size: 14px; }

/* ═══════ Cover — 100% viewport ═══════ */
.screen-cover {
    padding: 0;
    background: #000;
    align-items: center;
    justify-content: center;
}

.cover-container {
    position: relative;
    width: 100vw;
    height: 100vh; height: 100dvh;
    overflow: hidden;
    background: #1a1a2e;
    background-size: cover;
    background-position: center;
}

.cover-container .cover-bg-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}

.cover-anim-layer {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 5; overflow: hidden;
}

.cover-content {
    position: absolute; inset: 0;
    z-index: 10; pointer-events: none;
}

.cover-text-element {
    position: absolute;
    left: 5%; width: 90%; max-width: 90%;
    text-align: center;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
    word-wrap: break-word; overflow-wrap: break-word;
    white-space: normal; overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.cover-qr-wrap {
    position: absolute; z-index: 15;
    animation: fadeIn 1.2s ease 0.5s both;
}

.cover-qr-wrap img {
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.cover-particle {
    position: absolute; pointer-events: none;
    animation: particleFall linear forwards; z-index: 4;
}

@keyframes particleFall {
    0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
    5% { opacity: 0.9; }
    85% { opacity: 0.6; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ═══════ Error ═══════ */
.screen-error { background: linear-gradient(180deg, #1a1a2e, #0f0f1a); }
.error-card { text-align: center; max-width: 400px; animation: fadeInUp 0.6s ease; }
.error-icon { font-size: 64px; margin-bottom: 16px; }
.error-title { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 12px; }
.error-text { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ═══════ Animations ═══════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
