/* LoginSeal age-gate modal (v2). Hosted at loginseal.com/widget/age-gate.css. */
:root {
    --ls-bg:           #0F172A;
    --ls-bg-mid:       #1E293B;
    --ls-bg-card:      #334155;
    --ls-indigo:       #6366F1;
    --ls-indigo-bright:#818CF8;
    --ls-green:        #10B981;
    --ls-amber:        #F59E0B;
    --ls-red:          #EF4444;
    --ls-text:         #F8FAFC;
    --ls-text-mute:    #94A3B8;
    --ls-border:       #475569;
    --ls-modal-bg:     #1E293B;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; min-height: 100dvh; }
body.ls-age-locked {
    background: var(--ls-bg);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
#ls-age-root {
    position: fixed; inset: 0; z-index: 2147483647;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .97); padding: 16px; overflow-y: auto;
}
.ag-modal {
    position: relative; background: var(--ls-modal-bg);
    border: 1px solid var(--ls-border); border-radius: 16px;
    padding: 32px 28px 24px; width: 100%; max-width: 420px;
    text-align: center; color: var(--ls-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
.ag-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.ag-logo { width: 32px; height: 32px; background: var(--ls-indigo); border-radius: 8px;
           display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-logo svg { width: 18px; height: 18px; fill: #fff; }
.ag-brand { font-size: 14px; font-weight: 600; color: var(--ls-text-mute); letter-spacing: .01em; }
.ag-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.02em; }
.ag-subtitle { font-size: 14px; color: var(--ls-text-mute); margin: 0 0 24px; }
.ag-qr-wrap { background: #fff; border-radius: 12px; padding: 12px;
              display: inline-block; margin-bottom: 16px; line-height: 0; }
.ag-qr-wrap svg { display: block; width: 220px; height: 220px; }
.ag-qr-fallback { width: 220px; height: 220px; display: flex; align-items: center;
                  justify-content: center; word-break: break-all; font-size: 10px;
                  color: #0f172a; padding: 8px; }
.ag-status { font-size: 13px; color: var(--ls-text-mute); margin: 0 0 20px;
             display: flex; align-items: center; justify-content: center;
             gap: 8px; min-height: 20px; }
.ag-spinner { width: 14px; height: 14px; border: 2px solid var(--ls-border);
              border-top-color: var(--ls-indigo); border-radius: 50%;
              animation: ls-ag-spin .8s linear infinite; flex-shrink: 0; }
@keyframes ls-ag-spin { to { transform: rotate(360deg); } }
.ag-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
              color: var(--ls-text-mute); font-size: 12px; font-weight: 600;
              letter-spacing: .08em; text-transform: uppercase; }
.ag-divider::before, .ag-divider::after { content: ""; flex: 1; height: 1px; background: var(--ls-border); }
.ag-btn { display: inline-flex; align-items: center; justify-content: center;
          gap: 8px; width: 100%; padding: 13px 20px; border: 0;
          border-radius: 10px; font-family: inherit; font-size: 15px;
          font-weight: 600; cursor: pointer; text-decoration: none;
          transition: background .15s, opacity .15s, transform .1s; }
.ag-btn:active { transform: scale(.98); }
.ag-btn-primary { background: var(--ls-indigo); color: #fff; }
.ag-btn-primary:hover { background: var(--ls-indigo-bright); }
.ag-btn-secondary { background: var(--ls-bg-card); color: var(--ls-text); margin-bottom: 8px; }
.ag-btn-secondary:hover { background: var(--ls-border); }
.ag-trust { font-size: 10px; color: var(--ls-border); letter-spacing: .06em;
            text-transform: uppercase; margin: 16px 0 0; line-height: 1.5; }
.ag-verified-icon { width: 64px; height: 64px; background: rgba(16, 185, 129, .15);
                    border: 2px solid var(--ls-green); border-radius: 50%;
                    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.ag-verified-icon svg { width: 32px; height: 32px; stroke: var(--ls-green); fill: none;
                        stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ag-verified-title { font-size: 24px; font-weight: 700; color: var(--ls-green); margin: 0 0 10px; }
.ag-verified-detail { font-size: 13px; color: var(--ls-text-mute); margin: 0; }
.ag-error-icon { font-size: 40px; margin-bottom: 12px; }
.ag-error-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ag-error-body { font-size: 13px; color: var(--ls-text-mute); margin: 0 0 20px; }
@media (max-width: 480px) {
    .ag-modal { padding: 24px 18px 20px; border-radius: 12px; }
    .ag-title { font-size: 19px; }
}
@supports (padding: env(safe-area-inset-bottom)) {
    #ls-age-root { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
