:root {
    --primary: #ffbf00; /* MK Gold */
    --primary-glow: rgba(255, 191, 0, 0.3);
    --secondary: #8b0000; /* Deep Red */
    --bg: #050505;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --radius: 12px;
    --font: 'Outfit', sans-serif;
    --font-display: 'Bebas Neue', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    line-height: 1.5;
}

/* Splash Screen */
#splash {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.8s, visibility 0.8s;
}

#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.splash-title { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 3px; color: var(--text); }
.splash-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }

.splash-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 18px 45px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-display);
    letter-spacing: 2px;
    transition: 0.3s;
}

.splash-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 30px var(--primary-glow); }

/* Invite Main */
.invite {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100svh;
}

.invite-bg {
    position: fixed;
    inset: 0;
    background-image: url('../img/bg_invite.webp');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.invite-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.85) 100%), 
                linear-gradient(180deg, rgba(139, 0, 0, 0.1) 0%, transparent 60%, #050505 100%);
    z-index: -1;
}

.invite-body {
    padding: 50px 24px 40px;
    overflow-y: auto;
    height: 100svh;
}

.invite-body::-webkit-scrollbar { display: none; }

/* FAB Music */
.fab-music {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.fab-music.playing { color: var(--primary); border-color: var(--primary); }

/* Hero Photo */
.hero-photo-dossier {
    position: relative;
    width: 150px;
    height: 180px;
    margin: 0 auto 30px;
    background: #000;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    padding: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.hero-photo-dossier img { width: 100%; height: 100%; object-fit: cover; }

.dossier-stamp {
    position: absolute; bottom: 5px; right: -10px;
    background: var(--secondary); color: #fff;
    font-family: var(--font-display);
    font-size: 0.6rem; padding: 4px 10px;
    transform: rotate(-10deg);
    border: 1px solid var(--primary);
}

/* Typography */
.tag { font-size: 0.6rem; font-weight: 800; letter-spacing: 3px; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; display: block; opacity: 0.7; }
.hero-name { font-family: var(--font-display); font-size: 4.8rem; line-height: 0.9; color: #fff; margin-bottom: 10px; background: linear-gradient(180deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); }
.hero-age { font-family: var(--font-display); font-size: 2.2rem; color: #fff; letter-spacing: 8px; opacity: 0.9; }

.mk-badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    margin-top: 20px;
    letter-spacing: 2px;
}

/* Sections */
section { margin-bottom: 40px; width: 100%; text-align: center; }

/* Timer */
.label-sm { font-size: 0.6rem; font-weight: 800; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 15px; text-transform: uppercase; }
.timer-row { display: flex; justify-content: center; gap: 15px; font-family: var(--font-display); color: #fff; }
.t-block { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 8px; border: 1px solid var(--border); min-width: 60px; }
.t-block span { font-size: 2rem; color: var(--primary); }
.t-block small { font-size: 0.55rem; text-transform: uppercase; color: var(--text-muted); font-family: var(--font); font-weight: 700; }
.t-sep { font-size: 1.5rem; opacity: 0.3; align-self: center; }

/* Info */
.info-row {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.info-row i { font-size: 1.2rem; color: var(--primary); width: 25px; text-align: center; }
.info-content strong { display: block; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.info-content span { font-size: 0.95rem; font-weight: 700; color: #fff; }

/* Buttons */
.section-actions { display: flex; flex-direction: column; gap: 12px; }
.btn { width: 100%; padding: 18px; border-radius: 4px; font-weight: 900; font-size: 0.85rem; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.2s; font-family: var(--font); letter-spacing: 1px; border: none; text-transform: uppercase; }
.btn-solid { background: var(--primary); color: #000; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); font-size: 0.75rem; border: 1px solid var(--border); }

/* Footer */
.invite-footer { 
    padding-top: 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}
.invite-footer p { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 15px; }
.invite-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }
.btn-cta-viral { font-size: 0.7rem; font-weight: 800; color: #fff; opacity: 0.5; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 1px; }

/* Modals */
.modal { position: fixed; inset: 0; background: rgba(5, 5, 5, 0.95); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(10px); }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { background: #0a0a0a; border: 2px solid var(--primary); width: 100%; max-width: 380px; padding: 45px 24px 30px; position: relative; text-align: center; border-radius: 4px; }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-ico { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.modal-box h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 10px; letter-spacing: 2px; }
.modal-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 25px; }
.modal-list { text-align: left; list-style: none; margin-bottom: 30px; }
.modal-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; align-items: center; gap: 12px; }
.modal-list li i { color: var(--primary); font-size: 0.7rem; }
.pix-box { background: rgba(255, 191, 0, 0.05); padding: 20px; border-radius: 4px; border: 1px solid rgba(255,191,0,0.1); }
.pix-box code { display: block; margin: 12px 0 20px; color: var(--primary); font-size: 1rem; font-weight: 900; }
.btn-sm { padding: 14px; font-size: 0.7rem; }

/* Grid Transport */
.location-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.loc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 4px; font-weight: 800; font-size: 0.7rem; text-decoration: none; border: none; cursor: pointer; text-transform: uppercase; }
.loc-uber { background: #000; color: #fff; border: 1px solid #333; }
.loc-waze { background: #33ccff; color: #000; }
.loc-google { background: #34a853; color: #fff; }
.loc-copy { background: var(--surface); color: #fff; border: 1px solid var(--border); }

/* Animation Classes */
.anim-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.d1 { animation-delay: 0.2s; }
.d2 { animation-delay: 0.4s; }
.d3 { animation-delay: 0.6s; }
.d4 { animation-delay: 0.8s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

@media (max-height: 650px) {
    .invite-body { padding-top: 35px; }
    .hero-name { font-size: 3.8rem; }
    .hero-photo-dossier { transform: scale(0.8); margin-bottom: 10px; }
    section { margin-bottom: 25px; }
}
