* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', cursive;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Garden-style background decorations */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%), radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#username {
    width: 100%;
    max-width: 400px;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    border: 3px solid #4ECDC4;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-family: 'Fredoka', cursive;
    color: #2C3E50;
}

#username:focus {
    outline: none;
    border-color: #FF6B6B;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

#username::placeholder {
    color: #7f8c8d;
    font-weight: 500;
}

#generate {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    margin-top: 10px;
}

#generate:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.small-text {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2C3E50;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 25px;
    max-width: 400px;
    backdrop-filter: blur(5px);
}

.warning {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    margin: 15px auto;
    font-weight: 600;
    font-size: 16px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #4ECDC4;
}

.card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.circle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    border-radius: 50%;
    display: none;
    animation: checkPulse 0.3s ease;
    box-shadow: 0 5px 15px rgba(68, 160, 141, 0.4);
}

.circle::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

@keyframes checkPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Blank screen styles */

#blank-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.white-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    border-radius: 20px;
}

.loading-circles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.loading-circle {
    width: 20px;
    height: 20px;
    background: #E8E8E8;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.loading-circle.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 0;
    color: #2C3E50;
}

.blinking-dot {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.verify-button {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka', cursive;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.verify-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

/* MOBILE OPTIMIZED Content Locker Styles */

.content-locker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-family: 'Fredoka', cursive;
    overflow-y: auto;
}

.locker-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: auto;
    min-height: fit-content;
}

.locker-header {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.locker-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="70" cy="15" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.garden-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    line-height: 1.2;
}

.garden-title .grow {
    color: #ffffff;
}

.garden-title .heart {
    color: #FFD700;
    font-size: 1.5rem;
}

.garden-title .garden {
    color: #98FB98;
    display: block;
    margin-top: 2px;
}

.final-step {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.locker-description {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tasks-container {
    padding: 20px 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.task-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
}

.task-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
    border-color: #4ECDC4;
    box-shadow: 0 12px 25px rgba(78, 205, 196, 0.2);
}

.task-card:last-child {
    margin-bottom: 0;
}

.task-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(68, 160, 141, 0.3);
}

.gift-icon {
    width: 25px;
    height: 25px;
    fill: white;
}

.task-content {
    flex: 1;
    margin-bottom: 15px;
}

.task-title {
    color: #2C3E50;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.task-description {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
}

.task-button {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Fredoka', cursive;
}

.task-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #FF8E8E, #FF6B6B);
}

.status-bar {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #4ECDC4;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(78, 205, 196, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0);
    }
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #2C3E50;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(78, 205, 196, 0.2);
    border-top: 3px solid #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: #FF6B6B;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Floating images */

.floating-image {
    position: fixed;
    width: 60px;
    height: 60px;
    opacity: 0.6;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.floating-image:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Mobile responsiveness */

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .header h2 {
        font-size: 1.3rem;
    }
    .header {
        padding: 30px 15px;
        margin: 15px;
    }
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    .card {
        padding: 15px;
        border-radius: 15px;
    }
    .card img {
        width: 100px;
        height: 100px;
    }
    .card h3 {
        font-size: 1.1rem;
    }
    .small-text {
        font-size: 1.1rem;
        padding: 12px 20px;
        margin: 20px 15px;
    }
    /* Mobile Content Locker Optimizations */
    .content-locker {
        padding: 5px;
    }
    .locker-container {
        max-width: 100%;
        margin: 5px;
        border-radius: 15px;
    }
    .locker-header {
        padding: 20px 15px;
    }
    .garden-title {
        font-size: 1.6rem;
    }
    .final-step {
        font-size: 0.9rem;
    }
    .locker-description {
        font-size: 0.8rem;
    }
    .tasks-container {
        padding: 15px 12px;
        max-height: 55vh;
    }
    .task-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    .task-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    .task-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    .task-description {
        font-size: 0.8rem;
    }
    .task-button {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .status-bar {
        padding: 12px;
        font-size: 0.8rem;
    }
    .status-indicator {
        width: 10px;
        height: 10px;
        margin-right: 8px;
    }
    .white-box {
        padding: 40px 25px;
        max-width: 95%;
    }
    .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .loading-text {
        font-size: 1.1rem;
    }
    .verify-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* Extra small mobile screens */

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    .header h2 {
        font-size: 1.1rem;
    }
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    .card {
        padding: 12px;
    }
    .card img {
        width: 80px;
        height: 80px;
    }
    .card h3 {
        font-size: 1rem;
    }
    .garden-title {
        font-size: 1.4rem;
    }
    .tasks-container {
        padding: 12px 10px;
        max-height: 50vh;
    }
    .task-card {
        padding: 12px;
    }
    .task-icon {
        width: 40px;
        height: 40px;
    }
    .task-title {
        font-size: 0.9rem;
    }
    .task-description {
        font-size: 0.75rem;
    }
}