:root {
            --primary: #29b6f6;
            --secondary: #ffca28;
            --accent: #ff7043;
            --correct: #66bb6a;
            --incorrect: #ef5350;
            --light-bg: #f0f8ff;
            --text-dark: #37474f;
            --text-light: #ffffff;
            --card-bg: #ffffff;
            --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            --border-radius: 15px;
        }

        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background: linear-gradient(135deg, #e3f2fd, var(--light-bg));
            color: var(--text-dark);
            text-align: center;
            margin: 0;
            padding: 1rem;
            min-height: 100vh;
        }

        #game-container {
            max-width: 900px;
            margin: auto;
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: all 0.3s ease-in-out;
        }

        h1, h2 {
            font-weight: 900;
            color: var(--primary);
            margin-top: 0;
        }
        
        h1 {
            font-size: 2.5rem;
            color: var(--accent);
        }
        
        h2 {
           font-size: 2rem;
        }

        p {
            font-size: 1.1rem;
            line-height: 1.6;
        }

        button {
            background-color: var(--primary);
            color: var(--text-light);
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0.5rem;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            -webkit-tap-highlight-color: transparent;
        }

        button:hover, button:focus {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(41, 182, 246, 0.4);
        }
        
        button:active {
            transform: translateY(1px);
        }

        .game-screen {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        
        #main-menu button {
            background-color: var(--secondary);
            color: var(--text-dark);
        }
        
        #main-menu button:hover, #main-menu button:focus {
            box-shadow: 0 4px 10px rgba(255, 202, 40, 0.4);
        }

        input[type="number"] {
            padding: 0.8rem;
            font-size: 1.2rem;
            font-weight: 700;
            width: 120px;
            margin: 0.5rem;
            border-radius: 10px;
            border: 2px solid #b0bec5;
            text-align: center;
            transition: all 0.2s ease;
        }
        
        input[type="number"]:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.3);
        }
        
        .result-text {
            font-size: 1.3rem;
            font-weight: 700;
            min-height: 2em;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .item-list {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin: 2rem 0;
        }
        
        .item {
            border: none;
            border-radius: var(--border-radius);
            padding: 1rem;
            width: 140px;
            cursor: default;
            background: #f8f9fa;
            box-shadow: var(--shadow);
            transition: transform 0.2s ease;
        }
        
        .item .item-graphic {
            width: 80px;
            height: 80px;
            margin: 0 auto 0.5rem;
        }

        .item-name {
            font-weight: 700;
            font-size: 1rem;
        }
        
        .item-price {
            font-weight: 900;
            font-size: 1.2rem;
            color: var(--accent);
        }

        .best-buy-item {
            cursor: pointer;
        }
        
        .best-buy-item:hover {
            transform: scale(1.05);
            background-color: #e3f2fd;
        }

        .currency-selection {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .currency-graphic {
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .currency-graphic:hover {
            transform: scale(1.1);
        }
        
        .currency-graphic:active {
            transform: scale(0.95);
        }
        
        .back-button {
            background-color: #78909c;
        }
        
        .back-button:hover, .back-button:focus {
             box-shadow: 0 4px 10px rgba(120, 144, 156, 0.4);
        }

        .budget-item {
            display: flex;
            align-items: center;
            margin: 0.5rem;
            background: #f8f9fa;
            padding: 0.8rem;
            border-radius: 10px;
        }
        
        .budget-item label {
            margin-left: 10px;
            font-size: 1.1rem;
        }
        
        #budget-items {
            display: inline-block;
            text-align: left;
            margin: 20px;
        }
        
        #budget-total-container {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 1rem 0;
        }
        
        /* Media Queries for Mobile Friendliness */
        @media (max-width: 600px) {
            body {
                padding: 0.5rem;
            }
            #game-container {
                padding: 1rem;
            }
            h1 {
                font-size: 2rem;
            }
            h2 {
                font-size: 1.5rem;
            }
            button {
                width: 100%;
                max-width: 300px;
                padding: 1rem;
            }
            .item-list {
                gap: 1rem;
            }
            .item {
                width: 120px;
            }
             .item .item-graphic {
                width: 60px;
                height: 60px;
            }
        }