/* Invitation experience — a self-contained black cinematic stage. No theming;
   it's always dark with the Greedy Gambles logo pinned top-center. */

:root {
    --gg-gold: #d6af5a;
    --gg-green: #0da114;
    --font-stack: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    color: #f4f4f4;
    font-family: var(--font-stack);
    overflow: hidden;
}

.invite-stage {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0b0b0b 0%, #000 75%);
}

.invite-logo {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    height: 48px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* ---------- screens ---------- */
.invite-screen {
    width: 100%;
    max-width: 720px;
    padding: 0 24px;
    text-align: center;
    animation: fadeIn 0.5s ease both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.invite-headline {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 0.4em;
    letter-spacing: -0.02em;
}
.invite-sub {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: #b9b9b9;
    margin: 0 0 1.6em;
}

/* ---------- name screen ---------- */
.invite-name-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
#nameInput {
    flex: 1 1 260px;
    max-width: 360px;
    padding: 14px 18px;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
#nameInput:focus {
    border-color: var(--gg-gold);
    background: rgba(255, 255, 255, 0.1);
}

.invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    background: var(--gg-gold);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s, filter 0.15s;
}
.invite-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.invite-btn:active { transform: translateY(0); }
.invite-btn.ghost {
    background: transparent;
    color: #f4f4f4;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.invite-btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }

.invite-error { color: #ff6b6b; margin-top: 12px; font-size: 0.95rem; }

/* ---------- playback screen ---------- */
.invite-play {
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.invite-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.invite-video {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: #000;
}
.invite-video.is-active { opacity: 1; }

.invite-spinner {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gg-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* volume-only control, bottom center */
.invite-volume {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    z-index: 10;
    opacity: 0.35;
    transition: opacity 0.2s;
}
.invite-volume:hover { opacity: 1; }
.invite-vol-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
#volumeSlider {
    width: 110px;
    accent-color: var(--gg-gold);
    cursor: pointer;
}

/* ---------- end screen ---------- */
.invite-seen {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin: 0 0 1.4em;
    color: #e8e8e8;
}
.invite-seen b { color: var(--gg-gold); }
.invite-end-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
#allSeen { margin-top: 1.6em; color: var(--gg-gold); }
