:root {
    --primary-bg: #13131f;
    --card-bg: rgba(255, 255, 255, 0.07);
    --primary-gradient: linear-gradient(135deg, #5a3aaa, #3d1e8a);
    --text-primary: #f0eeff;
    --text-secondary: #b8b6cc;
    --accent-color: #6a3fd4;
    --card-blur: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* ── Body ── */
body {
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ── Video Background ── */
.video-container {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* ── Snow/Ember Canvas ── */
#snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

/* ── Card Wrapper ── */
.card-wrapper {
    position: relative;
    z-index: 20;
    width: 90%;
    max-width: 420px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(150, 110, 255, 0.12) 40%,
        rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: fadeIn 0.8s ease-out both;
}

/* ── Main Card ── */
.main-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(var(--card-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--card-blur)) saturate(150%);
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    overflow: hidden;
}

/* Glass top sheen */
.main-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.main-card > * {
    position: relative;
    z-index: 1;
}

/* ── Logo ── */
.logo-area {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-wrapper {
    position: relative;
    width: 120px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    margin: -22px 0;
    display: block;
}

#logo-shimmer-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.logo:hover {
    transform: scale(1.03);
}

/* ── Info Box ── */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.info-icon i {
    font-size: 20px;
    color: #7b4dec;
}

.info-text h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.info-text p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Buttons ── */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.btn {
    text-decoration: none;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 0;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 1px solid transparent;
}

.btn span {
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(108, 55, 194, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(108, 55, 194, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn i {
    font-size: 18px;
}

/* ── Footer ── */
.footer {
    margin-top: 6px;
}

.footer p {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Click-to-Enter Overlay ── */
#click-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(10, 5, 25, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s;
}

#click-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.click-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    user-select: none;
}

.click-pulse-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(150, 110, 255, 0.5);
    animation: pulseRing 1.6s ease-out infinite;
}

@keyframes pulseRing {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

.click-icon {
    font-size: 28px;
    color: #b06eff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(150, 110, 255, 0.6);
    background: rgba(123, 77, 236, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 0 24px rgba(123, 77, 236, 0.4);
}

.click-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(196, 162, 255, 0.75);
    font-weight: 600;
    animation: labelBlink 2s ease-in-out infinite;
}

@keyframes labelBlink {
    0%, 100% { opacity: 0.75; }
    50%       { opacity: 0.35; }
}

/* ── Music Toggle ── */
#music-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(150, 110, 255, 0.5);
    background: rgba(20, 10, 40, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #b06eff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 0 12px rgba(123, 77, 236, 0.25);
}

#music-toggle:hover {
    background: rgba(123, 77, 236, 0.3);
    border-color: rgba(180, 80, 255, 0.8);
    transform: scale(1.1);
}

#music-toggle.muted {
    color: rgba(200, 180, 255, 0.35);
    border-color: rgba(150, 110, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .main-card {
        padding: 28px 18px;
    }
    .btn {
        padding: 14px 18px;
    }
}