/* Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #5cb85c;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                radial-gradient(circle at center, rgba(255,255,255,0.5) 1px, transparent 2px);
            background-size: 40px 40px, 40px 40px, 40px 40px;
            padding: 20px;
            text-align: center;
            min-height: 100vh;
            font-family: 'Nunito', sans-serif;
        }

        /* Header Title */
        .logo {
            margin: 30px 0 20px;
        }

        .logo h1 {
            font-size: 2.8rem;
            font-weight: 800;
            color: white;
            -webkit-text-stroke: 3px white;
            text-shadow: 
                4px 4px 0 rgba(0, 0, 0, 0.2),
                0 0 20px rgba(255,255,255,0.5);
            letter-spacing: 1px;
            line-height: 1.2;
        }

        .logo h1 span {
            font-size: 2rem;
        }

        /* Username Bar */
        .input-box {
            margin: 30px auto;
            width: 300px;
            position: relative;
        }

        .input-box input {
            width: 100%;
            padding: 10px 10px;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            background: white;
            box-shadow: 
                0 2px 10px rgba(0, 0, 0, 0.1),
                0 0 0 4px rgba(255,255,255,0.3);
            text-align: center;
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
        }

        .input-box input::placeholder {
            color: #aaa;
            font-weight: 600;
        }

        /* Generate Button */
        .generate-btn {
            background: linear-gradient(to bottom, #6fcf1f, #c7d9c7);
            color: #211d1d;
            border: none;
            padding: 4px 20px;
            font-size: 1.4rem;
            font-weight: 800;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 0px 15px rgba(0, 0, 0, 0.2), 0 4px 0 #3d8b40, 0 0 0 3px black;
            transition: all 0.2s;
            margin-top: 10px;
            -webkit-text-stroke: 1px black;
            letter-spacing: 0.8px;
            font-family: 'Nunito', sans-serif;
            text-transform: uppercase;
        }

        .generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 7px 20px rgba(0, 0, 0, 0.25),
                0 4px 0 #3d8b40,
                0 0 0 3px black;
        }

        .generate-btn:active {
            transform: translateY(1px);
            box-shadow: 
                0 3px 10px rgba(0, 0, 0, 0.2),
                0 1px 0 #3d8b40,
                0 0 0 3px black;
        }

        /* Warning Message */
        .warning {
            color: #ff3333;
            background: rgba(255, 255, 255, 0.9);
            padding: 12px;
            border-radius: 8px;
            margin: 25px auto;
            max-width: 500px;
            font-weight: 700;
            border: 2px dashed #ff9c00;
            font-size: 1.1rem;
        }

        /* Items Grid */
        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            max-width: 1000px;
            margin: 30px auto;
        }

        .item-card {
            background: rgba(255, 255, 255, 0.7);
            border-radius: 10px;
            padding: 15px;
            box-shadow: 
                0 5px 15px rgba(0, 0, 0, 0.1),
                inset 0 -2px 5px rgba(0,0,0,0.05);
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(2px);
            border: 1px solid rgba(255,255,255,0.3);
        }

        .item-card:hover {
            transform: translateY(-5px);
            box-shadow: 
                0 8px 20px rgba(0, 0, 0, 0.15),
                inset 0 -3px 8px rgba(0,0,0,0.1);
        }

        .item-card.selected {
            background: rgba(224, 247, 250, 0.8);
            border: 2px solid #4CAF50;
            box-shadow: 
                0 0 0 3px rgba(76, 175, 80, 0.3),
                inset 0 -2px 5px rgba(0,0,0,0.05);
        }

        .item-card.selected:after {
            content: "✓";
            position: absolute;
            top: -10px;
            right: -10px;
            width: 30px;
            height: 30px;
            background: #4CAF50;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            -webkit-text-stroke: 1px black;
        }

        .item-card img {
            width: 100%;
            height: 120px;
            object-fit: contain;
            margin-bottom: 10px;
            image-rendering: pixelated;
            filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
        }

        .item-card h3 {
            font-weight: bold;
            color: #333;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
            font-size: 1rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .logo h1 {
                font-size: 2.2rem;
                -webkit-text-stroke: 2px white;
            }
            .items-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 480px) {
            .logo h1 {
                font-size: 1.8rem;
            }
            .items-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .input-box {
                width: 90%;
            }
        }

        /* Popup Styles */
        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .popup-content {
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border: 2px solid #5cb85c;
        }

        .popup-content h2 {
            font-size: 1.5rem;
            color: #333;
            margin-bottom: 10px;
            font-family: 'Nunito', sans-serif;
            font-weight: 800;
        }

        .popup-content p {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 15px;
            font-family: 'Nunito', sans-serif;
        }

        .generated-code {
            font-size: 1.2rem;
            font-weight: 700;
            color: #5cb85c;
            margin: 10px 0;
            font-family: 'Nunito', sans-serif;
        }

        .phase-text {
            font-size: 1rem;
            color: #5cb85c;
            font-weight: 700;
            font-family: 'Nunito', sans-serif;
            min-height: 20px;
        }

        .phase-text.bounce {
            animation: bounce 0.5s infinite alternate;
        }

        @keyframes bounce {
            from { transform: translateY(0); }
            to { transform: translateY(-5px); }
        }

        .hidden {
            display: none;
        }

        /* Verify Button Styles (matching Generate button) */
        .verify-btn {
            background: linear-gradient(to bottom, #6fcf1f, #c7d9c7);
            color: #211d1d;
            border: none;
            padding: 1px 8px;
            font-size: 1rem;
            font-weight: 800;
            border-radius: 4px;
            cursor: pointer;
            box-shadow: 0 0px 15px rgba(0, 0, 0, 0.2), 0 4px 0 #3d8b40, 0 0 0 3px black;
            transition: all 0.2s;
            margin-top: 10px;
            -webkit-text-stroke: 1px black;
            letter-spacing: 0.8px;
            font-family: 'Nunito', sans-serif;
            text-transform: uppercase;
        }

        .verify-btn:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 7px 20px rgba(0, 0, 0, 0.25),
                0 4px 0 #3d8b40,
                0 0 0 3px black;
        }

        .verify-btn:active {
            transform: translateY(1px);
            box-shadow: 
                0 3px 10px rgba(0, 0, 0, 0.2),
                0 1px 0 #3d8b40,
                0 0 0 3px black;
        }