:root {
    --primary: #ff4d6d;
    --secondary: #fb6f92;
    --deep: #c9184a;
    --accent: #fff0f3;
    --glass: rgba(255, 255, 255, 0.2);
    --border: rgba(255, 255, 255, 0.3);
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 50%, #c9184a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

#heartCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 400px;
    padding: 2rem 0;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: pulse 2s infinite;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.subtitle {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.9;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(128, 0, 32, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1rem;
    color: #000000;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

input::placeholder { color: rgba(0, 0, 0, 0.5); }

input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.divider {
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, white, transparent);
}

.heart-split { padding: 0 1rem; font-size: 1.5rem; }

.premium-btn {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.1rem;
    background: white;
    border: none;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 77, 109, 0.2), transparent);
    transform: translate(-100%, -100%) rotate(45deg);
    transition: all 0.6s ease;
}

.premium-btn:hover .btn-glow {
    transform: translate(100%, 100%) rotate(45deg);
}

/* ── LOADER (original) ── */
.loader {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.orb {
    width: 50px; height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 25px white;
    animation: pulseOrb 1.5s infinite ease-in-out;
}

.status-text {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    min-height: 1.5rem;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ── ROLLING SCORE (shown during suspense) ── */
.result-display {
    text-align: center;
    margin-top: 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.names-reveal {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: white;
}

.score-container {
    position: relative;
    width: 140px; height: 140px;
    margin: 0 auto 1.5rem;
}

svg { transform: rotate(-90deg); }

circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}
circle.bg { stroke: rgba(255, 255, 255, 0.2); }
circle.progress {
    stroke: white;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s cubic-bezier(0.1, 0, 0, 1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.score-value {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
}

.message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.retry-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.retry-btn:hover { background: white; color: var(--deep); }

/* ══════════════════════════════════════════════════
   CONTENT LOCKER SECTION (inline inside the card)
══════════════════════════════════════════════════ */
.locker-section {
    animation: lockerSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lockerSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Teaser — blurred score preview */
.locker-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
    gap: 0.8rem;
}

.teaser-content { flex: 1; }

.teaser-names {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.teaser-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.teaser-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    filter: blur(7px);
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.teaser-msg {
    font-size: 0.72rem;
    opacity: 0.75;
    line-height: 1.4;
    max-width: 80px;
}

.teaser-lockbadge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.lock-emoji { font-size: 1.8rem; animation: pulse 2s infinite; }
.lock-txt {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    font-weight: 700;
}

/* Locker header */
.locker-head { text-align: center; margin-bottom: 1rem; }

.locker-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0.3px;
}

.locker-sub {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.5;
}
.locker-sub strong { font-weight: 700; }

/* Offer items */
#offerList {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 13px;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
    color: #1a0008;
    border: 1.5px solid transparent;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(180, 0, 50, 0.08);
}

.offer-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 5px 18px rgba(180, 0, 50, 0.18);
}

.offer-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--deep));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.offer-text { flex: 1; min-width: 0; }

.offer-name {
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a0008;
}

.offer-cta {
    font-size: 0.68rem;
    color: var(--deep);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 1px;
}

.offer-arrow {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Loading dots */
.offer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 0;
    gap: 0;
}

.loading-txt {
    font-size: 0.83rem;
    opacity: 0.8;
    margin-left: 8px;
}

.ldot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    margin: 0 2px;
    animation: ldotBounce 1.3s infinite ease-in-out;
}
.ldot:nth-child(2) { animation-delay: 0.18s; }
.ldot:nth-child(3) { animation-delay: 0.36s; }

@keyframes ldotBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.35; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* Footer */
.locker-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
    opacity: 0.85;
}

.live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.65); }
}

.unlock-success {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    animation: scaleIn 0.4s ease;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }

/* ── ANIMATIONS ── */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

@keyframes pulseOrb {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.2); opacity: 1;   }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .card { padding: 1.5rem; }
    h1 { font-size: 1.8rem; }
    .names-reveal { font-size: 1.3rem; }
    .locker-title { font-size: 0.92rem; }
    .teaser-score { font-size: 1.7rem; }
}
