:root {
    --primary: #d1fb02; /* FC Lime Green */
    --primary-glow: rgba(209, 251, 2, 0.3);
    --bg: #020b1c; /* FC Dark Navy */
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #8a96a3;
    --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;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

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

.splash-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 25px 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: linear-gradient(180deg, rgba(2, 11, 28, 0.4) 0%, rgba(2, 11, 28, 0.85) 60%, #020b1c 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(2, 11, 28, 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); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(209, 251, 2, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(209, 251, 2, 0); }
}

/* UT Card Frame */
.ut-card-wrapper {
    position: relative;
    width: 160px;
    height: 220px;
    margin: 0 auto 25px;
}

.ut-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d2b45 0%, #0a1122 100%);
    border: 3px solid var(--primary);
    clip-path: polygon(0% 10%, 15% 0%, 85% 0%, 100% 10%, 100% 90%, 85% 100%, 15% 100%, 0% 90%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.player-img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    bottom: 0;
}

.player-stats {
    position: absolute;
    top: 15px;
    left: 10px;
    color: var(--primary);
    font-family: var(--font-display);
    text-align: center;
}

.player-stats .rating { font-size: 2.2rem; line-height: 1; }
.player-stats .position { font-size: 0.8rem; font-weight: 700; opacity: 0.8; }

.name-overlay {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 4px 0;
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
}

.dossier-stamp {
    position: absolute; top: -5px; right: -15px;
    background: #fff; color: #000;
    font-family: var(--font-display);
    font-size: 0.7rem; padding: 2px 8px;
    transform: rotate(15deg);
    border-radius: 2px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Typography */
.tag { font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; display: block; }
.hero-name { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: #fff; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-age { font-family: var(--font-display); font-size: 2rem; color: var(--text-muted); letter-spacing: 5px; }

.fc-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    margin-top: 12px;
}

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

/* Timer */
.label-sm { font-size: 0.6rem; font-weight: 800; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 12px; }
.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; }
.t-block span { font-size: 2.2rem; }
.t-block small { font-size: 0.6rem; text-transform: uppercase; color: var(--primary); font-family: var(--font); font-weight: 700; }
.t-sep { font-size: 1.8rem; opacity: 0.3; }

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

.info-row i { font-size: 1.1rem; color: var(--primary); }
.info-content strong { display: block; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 1px; }
.info-content span { font-size: 0.9rem; font-weight: 700; }

/* Buttons */
.section-actions { display: flex; flex-direction: column; gap: 10px; }
.btn { width: 100%; padding: 18px; border-radius: var(--radius); 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: 0.5px; border: none; }
.btn-solid { background: var(--primary); color: #000; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost { background: var(--surface); color: var(--text-muted); font-size: 0.75rem; border: 1px solid var(--border); }

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

/* Modals */
.modal { position: fixed; inset: 0; background: rgba(2, 11, 28, 0.9); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { background: #0a1122; border: 1px solid var(--primary); width: 100%; max-width: 380px; border-radius: 20px; padding: 40px 24px 30px; position: relative; text-align: center; }
.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.2rem; color: var(--primary); margin-bottom: 15px; }
.modal-box h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 8px; }
.modal-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.modal-list { text-align: left; list-style: none; margin-bottom: 25px; }
.modal-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.modal-list li i { color: var(--primary); }
.pix-box { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; }
.pix-box code { display: block; margin: 10px 0 15px; color: var(--primary); font-size: 1rem; }
.btn-sm { padding: 12px; font-size: 0.7rem; border-radius: 8px; }

/* Grid Transport */
.location-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.loc-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 10px; font-weight: 800; font-size: 0.7rem; text-decoration: none; border: none; cursor: pointer; }
.loc-uber { background: #000; color: #fff; }
.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(20px); animation: fadeInUp 0.7s forwards; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.45s; }
.d4 { animation-delay: 0.6s; }

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

@media (max-height: 650px) {
    .invite-body { padding-top: 30px; }
    .hero-name { font-size: 3.5rem; }
    .ut-card-wrapper { transform: scale(0.8); margin-bottom: 10px; }
    section { margin-bottom: 20px; }
}
