 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .machine-container {
            background: #2c3e50;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            max-width: 800px;
            width: 100%;
        }

        .machine-title {
            text-align: center;
            color: #ecf0f1;
            font-size: 2rem;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .difficulty-display {
            text-align: center;
            color: #f39c12;
            font-size: 1.2rem;
            margin-bottom: 20px;
            font-weight: bold;
        }

        .slots-container {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .slot {
            flex: 1;
            min-width: 200px;
            background: #34495e;
            border-radius: 15px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .slot-label {
            text-align: center;
            color: #ecf0f1;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .slot-window {
            height: 80px;
            background: #1a252f;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border: 3px solid #f39c12;
        }

        .slot-content {
            color: #ecf0f1;
            font-size: 1rem;
            text-align: center;
            padding: 10px;
            transition: transform 0.5s ease-in-out;
            line-height: 1.2;
        }

        .slot-content.spinning {
            animation: none; /* Remove CSS animation, we'll handle this with JS */
        }

        @keyframes spin {
            0% { transform: translateY(0px); opacity: 1; }
            25% { transform: translateY(-20px); opacity: 0.5; }
            50% { transform: translateY(-40px); opacity: 0; }
            75% { transform: translateY(20px); opacity: 0.5; }
            100% { transform: translateY(0px); opacity: 1; }
        }

        .spin-button {
            display: block;
            width: 200px;
            margin: 0 auto 30px;
            padding: 15px 30px;
            background: linear-gradient(45deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }

        .spin-button:hover {
            background: linear-gradient(45deg, #c0392b, #a93226);
            transform: translateY(-2px);
            box-shadow: 0 7px 20px rgba(231, 76, 60, 0.6);
        }

        .spin-button:active {
            transform: translateY(0px);
        }

        .spin-button:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .result-container {
            background: #ecf0f1;
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .result-title {
            color: #2c3e50;
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }

        .result-question {
            color: #34495e;
            font-size: 1.1rem;
            line-height: 1.6;
            text-align: center;
            font-style: italic;
        }

        .config-info {
            margin-top: 20px;
            padding: 15px;
            background: rgba(52, 73, 94, 0.8);
            border-radius: 10px;
            color: #bdc3c7;
            font-size: 0.9rem;
        }

        .config-info h3 {
            margin-bottom: 10px;
            color: #f39c12;
        }

        .error-message {
            background: #e74c3c;
            color: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            text-align: center;
        }

        @media (max-width: 768px) {
            .machine-container {
                padding: 20px;
            }

            .machine-title {
                font-size: 1.5rem;
            }

            .slots-container {
                flex-direction: column;
                gap: 15px;
            }

            .slot {
                min-width: auto;
            }

            .spin-button {
                width: 100%;
            }
        }