/* ════════════════════════════════════════
       SECTION QR — QR CODE + LINK
       Mirrors s5: bright orange top → dark bottom
    ════════════════════════════════════════ */
#s-qr {
    background: linear-gradient(
        180deg,
        #d67800 0%,
        #c06200 16%,
        #8c3c00 34%,
        #4c2000 54%,
        #220c00 78%,
        #080200 100%
    );
    flex-direction: column;
}

/* Sun circle peeking in from the top */
.qr-sun {
    position: absolute;
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(180px, 38vw, 380px);
    height: clamp(180px, 38vw, 380px);
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 60%,
        #ffe878 0%,
        #ffca20 30%,
        #ff8c00 62%,
        #c05000 82%,
        transparent 100%
    );
    box-shadow:
        0 0 80px rgba(255, 160, 0, 0.55),
        0 0 160px rgba(255, 100, 0, 0.25);
    z-index: 1;
    pointer-events: none;
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
    0%,
    100% {
        box-shadow:
            0 0 80px rgba(255, 160, 0, 0.55),
            0 0 160px rgba(255, 100, 0, 0.25);
    }

    50% {
        box-shadow:
            0 0 110px rgba(255, 180, 0, 0.75),
            0 0 200px rgba(255, 110, 0, 0.35);
    }
}

/* sun rays */
.qr-sun-rays {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 55%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    overflow: hidden;
}

.qr-scene {
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 3.2vw, 38px);
    text-align: center;
    padding: 20px;
}

/* ── EDITABLE TITLE — change text in HTML ── */
.qr-title {
    font-family: "Fredoka One", cursive;
    font-size: clamp(22px, 4.5vw, 46px);
    color: #ffd060;
    line-height: 1.1;
    -webkit-text-stroke: 1.5px rgba(130, 60, 0, 0.35);
}

/* ── QR FRAME WRAPPER ── */
.qr-frame-wrap {
    position: relative;
}

/* ── QR PLACEHOLDER
       To use your real QR code, replace the inner content of .qr-placeholder with:
         <img src="your-qr.png" alt="QR Code" style="width:100%;height:100%;object-fit:contain;border-radius:16px;">
       Or swap the entire .qr-placeholder div for your <img> directly. ── */
.qr-placeholder {
    width: clamp(180px, 32vw, 300px);
    height: clamp(180px, 32vw, 300px);
    background: #fffbef;
    border: 5px solid #7a3c00;
    border-radius: 20px;
    box-shadow:
        0 10px 0 #3a1800,
        0 18px 40px rgba(0, 0, 0, 0.55),
        inset 0 2px 0 rgba(255, 220, 140, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-placeholder:hover {
    transform: translateY(-5px) scale(1.03);
}

/* QR grid pattern visual hint */
.qr-placeholder::before {
    content: "";
    position: absolute;
    inset: 16px;
    background-image:
        linear-gradient(rgba(90, 40, 0, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 40, 0, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 8px;
}

/* three corner finder squares (like a real QR) */
.qr-finder {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 4px solid rgba(90, 40, 0, 0.35);
    border-radius: 6px;
}

.qr-finder::before {
    content: "";
    position: absolute;
    inset: 5px;
    background: rgba(90, 40, 0, 0.25);
    border-radius: 2px;
}

.qr-finder-tl {
    top: 14px;
    left: 14px;
}

.qr-finder-tr {
    top: 14px;
    right: 14px;
}

.qr-finder-bl {
    bottom: 14px;
    left: 14px;
}

.qr-label {
    font-family: "Fredoka One", cursive;
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 1px;
    color: rgba(130, 60, 0, 0.6);
    position: relative;
    z-index: 1;
}

.qr-sub {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: clamp(9px, 1.3vw, 12px);
    color: rgba(130, 60, 0, 0.42);
    position: relative;
    z-index: 1;
}

.qr-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

/* ── QR LINK — edit href & text below ── */
.qr-link {
    font-family: "Fredoka One", cursive;
    font-size: clamp(13px, 2vw, 20px);
    letter-spacing: 2px;
    color: rgba(255, 200, 60, 0.75);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    padding: 8px 24px;
    border: 3px solid rgba(255, 190, 50, 0.32);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    transition:
        color 0.2s,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s;
}

.qr-link:hover {
    color: #ffe060;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.4);
}

.qr-link:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
