/* RSMA CREDIT */
/* singan.do daily ticket module (phone login + code, bottom sheet) — shown after the 21+ gate. Self-contained (no Tailwind). */
.sng-ticket-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 110;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.sng-ticket-sheet[hidden] { display: none; }
.sng-ticket-card {
    pointer-events: auto;
    width: 100%;
    max-width: 34rem;
    background: rgba(14, 14, 14, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(197, 164, 110, 0.35);
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(197, 164, 110, 0.10);
    padding: 1.1rem 1.4rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    color: #f5f5f5;
    text-align: center;
    transform: translateY(110%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sng-ticket-sheet.is-open .sng-ticket-card { transform: translateY(0); }
.sng-ticket-title { font-family: 'Cinzel', Georgia, serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; margin: 0; line-height: 1.2; }
.sng-ticket-title-es { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; font-weight: 400; color: #c5a46e; margin-top: 0.25rem; letter-spacing: 0.04em; opacity: 0.9; }
.sng-ticket-form { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.sng-ticket-input {
    flex: 1 1 auto; min-width: 0;
    background: #0a0a0a; color: #f5f5f5;
    border: 1px solid #333; border-radius: 9999px;
    padding: 0.75rem 1.1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.sng-ticket-input::placeholder { color: #555; letter-spacing: 0.14em; }
.sng-ticket-input:focus { border-color: #c5a46e; box-shadow: 0 0 0 3px rgba(197, 164, 110, 0.18); }
.sng-ticket-sheet[data-state="error"] .sng-ticket-input { border-color: #d0605e; box-shadow: 0 0 0 3px rgba(208, 96, 94, 0.15); }
.sng-ticket-btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.3rem; border: 0; border-radius: 9999px; cursor: pointer;
    background: linear-gradient(90deg, #c5a46e, #a17d4e); color: #000;
    font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; white-space: nowrap;
    transition: filter 0.2s, transform 0.1s;
}
.sng-ticket-btn:hover { filter: brightness(1.08); }
.sng-ticket-btn:active { transform: scale(0.985); }
.sng-ticket-btn[disabled] { opacity: 0.7; cursor: progress; }
.sng-ticket-spinner { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid rgba(0,0,0,0.25); border-top-color: #000; animation: sng-spin 0.7s linear infinite; display: none; }
.sng-ticket-sheet[data-state="loading"] .sng-ticket-spinner { display: inline-block; }
@keyframes sng-spin { to { transform: rotate(360deg); } }
.sng-ticket-msg { margin-top: 0.55rem; font-size: 0.78rem; line-height: 1.3; color: #a3a3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sng-ticket-msg:empty { display: none; }
.sng-ticket-msg span[lang="es"] { opacity: 0.75; }
.sng-ticket-sheet[data-state="error"] .sng-ticket-msg { color: #e58b88; }
.sng-ticket-sheet[data-state="success"] .sng-ticket-msg { color: #5ba8c4; }
.sng-ticket-hint { font-size: 0.62rem; letter-spacing: 1.2px; text-transform: uppercase; color: #6b6b6b; margin-top: 0.6rem; }
@media (max-width: 480px) {
    .sng-ticket-card { padding-left: 1rem; padding-right: 1rem; }
    .sng-ticket-form { gap: 0.45rem; }
    .sng-ticket-input { padding: 0.7rem 0.6rem; font-size: 0.95rem; letter-spacing: 0.08em; }
    .sng-ticket-input::placeholder { letter-spacing: 0.08em; }
    .sng-ticket-btn { padding: 0.7rem 0.9rem; font-size: 0.72rem; letter-spacing: 0.06em; }
    .sng-ticket-title { font-size: 1.1rem; }
    .sng-ticket-hint { font-size: 0.56rem; letter-spacing: 0.8px; }
}
@media (prefers-reduced-motion: reduce) { .sng-ticket-card { transition: none; } }

/* Gate shell: keep the hero clear of the sheet */
body[data-gate-shell] { padding-bottom: 14rem; }
/* Full page opened without a server session (static/dev preview): blur everything behind the sheet */
body.ticket-locked:not([data-gate-shell]) > *:not(.sng-ticket-sheet):not(#age-gate):not(script) {
    filter: blur(12px); pointer-events: none; user-select: none;
}
body.ticket-locked:not([data-gate-shell]) { overflow: hidden; }

/* Phone login row sits above the code row */
.sng-code-form { margin-top: 0.5rem; }
.sng-phone-input { letter-spacing: 0.06em; text-transform: none; }
.sng-phone-input::placeholder { letter-spacing: 0.06em; }

/* "Today's pass" pill injected by the server on unlocked member pages */
.sng-event-pill {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
    max-width: calc(100vw - 2rem);
    background: rgba(14, 14, 14, 0.95); border: 1px solid rgba(197, 164, 110, 0.4);
    border-radius: 9999px; padding: 0.5rem 0.9rem;
    font: 500 0.72rem/1.2 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.06em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.sng-event-pill span { color: #888; letter-spacing: 1.5px; font-size: 0.6rem; }
.sng-event-pill a { color: #c5a46e; text-decoration: none; }
.sng-event-pill a:hover { color: #d4b57f; text-decoration: underline; }

/* Compact hero while the ticket module is open (gate shell only): headline stays fully visible
   above the sheet. Sizes use viewport height so 1280x800 desktop and 390x844 phones both fit. */
html.sng-ticket-open body[data-gate-shell] .sng-hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: clamp(0.75rem, 2.5vh, 1.75rem);
    padding-bottom: 0;
}
html.sng-ticket-open body[data-gate-shell] .sng-hero .hero-eyebrow { margin-bottom: 0.4rem; }
html.sng-ticket-open body[data-gate-shell] .sng-hero .singan-logo-lockup--hero { margin-bottom: clamp(0.4rem, 1.5vh, 0.9rem); }
html.sng-ticket-open body[data-gate-shell] .sng-hero .singan-logo-lockup--hero img { width: clamp(64px, 15vh, 150px); }
html.sng-ticket-open body[data-gate-shell] .sng-hero h1 {
    font-size: clamp(2rem, min(6.8vh, 11vw), 4.6rem) !important;
    line-height: 1.02 !important;
    margin-bottom: clamp(0.5rem, 1.6vh, 1rem) !important;
}
html.sng-ticket-open body[data-gate-shell] .sng-hero h1 .singan-wordmark--display { font-size: 0.85em !important; }
html.sng-ticket-open body[data-gate-shell] .sng-hero .motto-split--hero { font-size: clamp(1rem, 2.7vh, 1.6rem); margin-bottom: 0.5rem !important; }
html.sng-ticket-open body[data-gate-shell] .sng-hero p { font-size: clamp(0.8rem, 1.9vh, 1rem) !important; margin-bottom: 0 !important; }
html.sng-ticket-open body[data-gate-shell] .sng-hero .sng-hero-cta,
html.sng-ticket-open body[data-gate-shell] .sng-hero .sng-hero-tags { display: none !important; }
html.sng-ticket-open body[data-gate-shell] .sng-hero > .absolute.bottom-0 { display: none; }
@media (prefers-reduced-motion: no-preference) {
    body[data-gate-shell] .sng-hero h1,
    body[data-gate-shell] .sng-hero .singan-logo-lockup--hero img,
    body[data-gate-shell] .sng-hero .motto-split--hero { transition: font-size 0.45s ease, width 0.45s ease; }
}
@media (max-height: 540px) {
    html.sng-ticket-open body[data-gate-shell] .sng-hero p { display: none; }
}

/* SW shield mini badge (members page pill) — display only for now */
.sng-sw-mini { display: inline-flex; align-items: center; gap: 0.35rem; color: #a3a3a3 !important; border-left: 1px solid #333; padding-left: 0.6rem; cursor: default; }
.sng-sw-mini img { width: 22px; height: 22px; display: block; }
.sng-sw-mini span { color: #a3a3a3; letter-spacing: 0.08em; font-size: 0.62rem; text-transform: uppercase; }
.sng-sw-mini:hover { text-decoration: none !important; }
