@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600;700&family=Zeyada&family=Outfit:wght@200;400;600&display=swap');

:root {
    --bg-deep: #0a0608;
    --sky-top: #1a1015;
    --sky-mid: #3a2932;
    --sky-bottom: #2d1e26;
    --lantern-primary: #fc4c02;
    --lantern-glow: #fc4c02;
    --gold: #f3c15f;
    --white: #ffffff;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-deep);
    font-family: 'Poppins', sans-serif;
    color: var(--white);
}

/* Premium Sky with layers */
#canvas-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, var(--sky-mid) 0%, var(--sky-top) 100%);
    z-index: 1;
}

/* Nebula/Glow effect in background */
#canvas-sky::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 120, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.interface {
    position: absolute;
    z-index: 10;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    box-sizing: border-box;
}

.title-container {
    text-align: center;
    animation: fadeInDown 1.5s ease-out;
}

.chinese-title {
    font-size: 1.2rem;
    letter-spacing: 15px;
    opacity: 0.4;
    margin-bottom: 5px;
    font-weight: 200;
}

/* SOBER TITLE */
h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin: 0;
    color: #fc4c02;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.subtitle {
    font-size: 0.8rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 12px;
    opacity: 0.6;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    display: inline-block;
}

.qr-container {
    position: absolute;
    bottom: 60px;
    right: 60px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 140, 55, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

#qrcode {
    padding: 10px;
    background: white;
    border-radius: 12px;
}

.qr-text {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    color: var(--white);
    opacity: 0.8;
}

.footer {
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 2px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 8, 0.85);
    /* Dark background matching sky */
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.lantern-loader {
    margin: 0 auto 20px auto;
    display: block;
    animation: floatLoader 2s ease-in-out infinite;
}

@keyframes floatLoader {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}