/* ADN: Estilo Solitario VIP Skyland Prestige */
:root { --azul: #001b3a; --oro: #d4af37; --tapete: #004d26; }
* { margin: 0; padding: 0; box-sizing: border-box; touch-action: manipulation; }
body { font-family: 'Segoe UI', sans-serif; background: #111; height: 100vh; overflow: hidden; user-select: none; -webkit-user-select: none; }
.hidden { display: none !important; }

/* PANTALLA DE CARGA VIP */
.setup-overlay { position: fixed; inset: 0; background: radial-gradient(circle, var(--azul), #000); display: flex; justify-content: center; align-items: center; z-index: 10000; }
.setup-box { background: #fff; padding: 25px; border-radius: 15px; width: 95%; max-width: 440px; text-align: center; border: 3px solid var(--oro); }
.logo-setup-small { height: 48px; margin-bottom: 10px; }
.vip-tag { font-size: 0.75rem; color: var(--oro); font-weight: bold; margin-bottom: 15px; }
.lang-instruction { font-size: 0.7rem; color: #666; margin: 10px 0; font-style: italic; }

.upload-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 15px 0; }
.upload-slot { border: 2px solid var(--oro); aspect-ratio: 1; border-radius: 8px; position: relative; background: #f0f0f0; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.preview-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.preview-img.active { display: block; }
.slot-label { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.6rem; }
.btn-bulk-action { background: #eee; color: #333; border: 1px solid #ccc; padding: 10px; border-radius: 8px; width: 100%; font-weight: bold; cursor: pointer; margin-bottom: 10px; font-size: 0.8rem; }
.btn-main { background: var(--azul); color: #fff; border: 2px solid var(--oro); padding: 15px; border-radius: 8px; width: 100%; font-weight: 900; cursor: pointer; text-transform: uppercase; }

/* HEADER */
.game-header-branding { height: 75px; background: #000; border-bottom: 2px solid var(--oro); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; color: #fff; }
.h-left { display: flex; align-items: center; gap: 15px; }
.audio-control-group { display: flex; align-items: center; gap: 8px; cursor: pointer; background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 5px; }
.mute-text { font-size: 0.7rem; font-weight: bold; color: var(--oro); white-space: nowrap; }
.logo-header-big { height: 45px; }
.hotel-name-big { margin-left: 10px; font-weight: 700; font-size: 0.9rem; }

/* TABLERO */
.solitaire-table { height: calc(100vh - 175px); background: radial-gradient(circle, var(--tapete), #002211); padding: 15px; position: relative; }
.top-row, .bottom-row { display: flex; justify-content: space-between; max-width: 1000px; margin: 0 auto; gap: 8px; }
.stack { width: 12.5%; aspect-ratio: 2/3; border: 1px dashed rgba(255,255,255,0.25); border-radius: 6px; position: relative; }
.spacer { flex: 1; }
.stock-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 0.7rem; background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 6px; pointer-events: none; z-index: 20; text-align: center; }

/* CARTAS */
.card { width: 100%; aspect-ratio: 2/3; background: #fff !important; border-radius: 6px; position: absolute; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.35); overflow: hidden; opacity: 1 !important; }
.card.back { background: var(--azul) !important; border: 1px solid #fff; }
.card.back .card-content { display: none !important; }
.card.back .logo-back { display: block; width: 70%; height: 70%; margin: 15%; object-fit: contain; }
.card:not(.back) .logo-back { display: none !important; }
.card:not(.back) .card-content { display: block; width: 100%; height: 100%; position: relative; background: #fff !important; }
.rank-txt { font-weight: 700; font-size: 1.1rem; padding: 3px 6px; line-height: 1; position: absolute; top: 0; left: 0; z-index: 10; background: #ffffff; width: 100%; text-align: left; }
.guest-img { width: 90%; height: 60%; object-fit: cover; position: absolute; bottom: 4px; left: 5%; border: 1px solid #eee; border-radius: 4px; z-index: 2; }
.waste .card { top: 0; left: 0; background: #fff !important; }

.tableau .card { position: relative; margin-top: -130%; background: #fff !important; } 
.tableau .card:first-child { margin-top: 0; }
.tableau .card:not(:last-child) .guest-img { display: none !important; }

.card.selected { outline: 3px solid var(--oro); z-index: 5000 !important; }
.foundation { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.15); }

/* FOOTER */
.game-footer-branding { height: 100px; background: #000; border-top: 2px solid var(--oro); display: flex; justify-content: space-between; align-items: center; padding: 0 25px; color: #fff; gap: 20px; }
.luxury-promo-box { flex: 1; border: 1px solid var(--oro); padding: 10px; border-radius: 8px; background: linear-gradient(45deg, #000, #111); text-align: center; }
.promo-title { font-size: 0.6rem; color: var(--oro); letter-spacing: 1px; font-weight: bold; margin-bottom: 2px; }
.promo-main { font-size: 1.2rem; font-weight: 900; color: #fff; text-shadow: 0 0 5px var(--oro); margin-bottom: 4px; }
.promo-contact { font-size: 0.65rem; color: #ccc; display: flex; flex-direction: column; gap: 2px; }
.promo-contact i { color: var(--oro); margin-right: 5px; }

.qr-container-big { background: #fff; padding: 8px 15px; border-radius: 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.qr-code-large { height: 60px; }
.qr-text-large { color: #000; font-weight: bold; font-size: 0.8rem; line-height: 1; }

.btn-reset, .btn-undo { background: #111; color: #fff; border: 1px solid var(--oro); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: bold; }

/* --- MEJORAS DE COMPARTIR --- */
.h-right { display: flex; align-items: center; gap: 10px; }
.btn-share-vip { background: var(--oro); color: #000; border: none; padding: 8px 15px; border-radius: 5px; font-weight: 900; font-size: 0.65rem; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.share-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 20000; }
.share-box { background: #fff; padding: 30px; border-radius: 15px; border: 3px solid var(--oro); text-align: center; width: 90%; max-width: 320px; position: relative; }
.gold-text { color: var(--azul); font-weight: 900; margin-bottom: 10px; }
.share-grid { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.share-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; text-decoration: none; }
.wa { background: #25D366; } .fb { background: #1877F2; } .tw { background: #000; }
.close-share { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 2rem; color: #333; cursor: pointer; }

.celebration-item { position: fixed; top: -50px; pointer-events: none; z-index: 9999; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

/* ===================================================
   CUPÓN SORTEO: HOTEL SKYLAND PRESTIGE
   =================================================== */
.cupon-solitario-vip {
    position: fixed;
    left: 20px; 
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    background: #000;
    padding: 10px;
    border: 1px solid var(--oro);
    box-shadow: 0px 0px 30px rgba(0,0,0,0.8);
    z-index: 9000;
    cursor: pointer;
    overflow: hidden;
}

.cupon-solitario-vip::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.2), transparent);
    transform: rotate(30deg);
    animation: brillo-oro-vip 8s infinite;
}

@keyframes brillo-oro-vip {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.marco-solitario-oro {
    border: 1px solid var(--oro);
    padding: 15px;
    text-align: center;
}

.cupon-titulo-vip {
    font-family: 'Kalam', cursive;
    color: var(--oro);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 8px;
}

.cupon-texto-sorteo {
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1.3;
}

.highlight-sorteo {
    color: var(--oro);
    font-weight: bold;
}

.cupon-linea-oro {
    border: 0;
    border-top: 1px solid var(--oro);
    margin: 10px auto;
    width: 60%;
    opacity: 0.5;
}

.cupon-texto-promo {
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.3;
}

.cupon-nota-formulario {
    display: block;
    color: var(--oro);
    font-size: 0.6rem;
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

@media (max-width: 1300px) {
    .cupon-solitario-vip { display: none; }
}

/* --- CAPA LEGAL CONECTA (BLINDAJE) --- */
.legal-overlay-vip { position: fixed; inset: 0; background: #000; display: flex; justify-content: center; align-items: center; z-index: 30000; }
.legal-box-luxury { background: #fff; padding: 30px; border-radius: 15px; width: 90%; max-width: 450px; text-align: center; border: 4px solid var(--oro); box-shadow: 0 0 50px rgba(212, 175, 55, 0.3); }
.legal-title { font-weight: 900; font-size: 1.1rem; color: var(--azul); margin-bottom: 15px; text-transform: uppercase; }
.legal-scroll-area { background: #f9f9f9; padding: 15px; border-radius: 8px; border: 1px solid #eee; text-align: justify; font-size: 0.8rem; line-height: 1.4; color: #333; max-height: 200px; overflow-y: auto; margin-bottom: 20px; }
.signature-area { border-top: 1px solid #eee; padding-top: 15px; }