        body {
            font-family: 'Inter', sans-serif;
            background-color: #333; /* Dark background similar to a window frame */
            color: #333; /* Default text color for light backgrounds */
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 1rem;
        }
        .container {
            background-color: #f0f0f0; /* Light grey background for the main app area */
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
            width: 100%;
            max-width: 1200px; /* Max width of the app */
            padding: 10px; /* Reduced padding */
            display: flex;
            flex-direction: column;
        }
        header {
            text-align: center;
            font-size: 1.8rem; /* Adjusted size */
            font-weight: bold;
            padding: 0.5rem 0; /* Reduced padding */
            background-color: #d1d5db; /* Slightly darker grey for header */
            color: #1f2937;
            border-bottom: 2px solid #9ca3af;
            border-radius: 6px 6px 0 0;
        }
        .score-input-area button {
            margin-top: 0.5rem;
            width: 100%;
        }
        .main-content {
            display: grid;
            grid-template-columns: 1fr 1.5fr 1fr; /* Player | Center | Player */
            gap: 10px; /* Reduced gap */
            padding: 10px 0; /* Reduced padding */
            flex-grow: 1;
        }
        .player-panel, .center-panel {
            background-color: #e5e7eb; /* Light grey for panels */
            padding: 0.75rem; /* Reduced padding */
            border-radius: 6px;
            border: 1px solid #ccc;
            display: flex;
            flex-direction: column;
            gap: 0.5rem; /* Reduced gap */
        }
        .player-panel input[type="text"], .player-panel input[type="number"] {
            width: 100%;
            padding: 0.4rem; /* Reduced padding */
            border: 1px solid #9ca3af;
            border-radius: 4px;
            background-color: white;
            color: #333;
            font-size: 0.9rem; /* Adjusted font size */
        }
        .player-panel button {
            padding: 0.5rem; /* Reduced padding */
            background-color: #4CAF50; /* Green */
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem; /* Adjusted font size */
            transition: background-color 0.3s;
        }
        .player-panel button:hover {
            background-color: #45a049;
        }
        .player-panel button:disabled {
            background-color: #aaa;
            cursor: not-allowed;
        }
        .checkout-pos, .score-input-area label {
            font-size: 0.85rem; /* Adjusted font size */
            color: #4b5563;
        }
        .checkout-pos input {
            width: 60px !important; /* Smaller input for checkout */
            display: inline-block;
            margin-left: 5px;
        }

        .amount-display {
            background-color: white;
            border: 1px solid #9ca3af;
            border-radius: 4px;
            min-height: 80px; /* Adjusted height */
            padding: 0.5rem; /* Reduced padding */
            font-size: 0.85rem; /* Adjusted font size */
            overflow-y: auto;
            color: #333;
        }
        .stats-block {
            background-color: #f9fafb; /* Slightly lighter for stats blocks */
            padding: 0.6rem; /* Reduced padding */
            border-radius: 4px;
            border: 1px solid #d1d5db;
        }
        .stats-block h4 {
            font-size: 0.9rem; /* Adjusted font size */
            font-weight: bold;
            margin-bottom: 0.3rem; /* Reduced margin */
            color: #1f2937;
        }
        .stats-block p {
            font-size: 0.8rem; /* Adjusted font size */
            margin-bottom: 0.2rem; /* Reduced margin */
            color: #374151;
        }
        .stats-block span {
            font-weight: bold;
            color: #111827;
        }

        .center-panel {
            justify-content: space-between;
            align-items: center;
            text-align: center;
        }
        .center-panel .scores {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            margin-bottom: 1rem; /* Added margin */
        }
        .player-main-score {
            font-size: 4rem; /* Adjusted size */
            font-weight: bold;
            color: #1f2937;
            background-color: white;
            padding: 0.5rem 1rem; /* Reduced padding */
            border-radius: 6px;
            border: 2px solid #9ca3af;
            min-width: 100px; /* Ensure it has some width */
            text-align: center;
        }
        .game-state {
            font-size: 1.2rem; /* Adjusted size */
            color: #374151;
        }
        .game-state div {
            margin: 0.3rem 0; /* Reduced margin */
            background-color: #d1d5db;
            padding: 0.3rem 0.6rem; /* Reduced padding */
            border-radius: 4px;
        }
        .game-message-box {
            background-color: white;
            border: 1px solid #9ca3af;
            border-radius: 4px;
            padding: 1rem; /* Standard padding */
            font-size: 1rem; /* Standard font size */
            color: #333;
            min-height: 60px; /* Adjusted height */
            width: 80%;
            margin: 0 auto; /* Center it */
            display: flex;
            justify-content: center;
            align-items: center;
        }
        footer {
            text-align: center;
            padding: 0.6rem; /* Reduced padding */
            font-size: 0.8rem; /* Adjusted font size */
            background-color: #d1d5db;
            color: #374151;
            border-top: 1px solid #9ca3af;
            border-radius: 0 0 6px 6px;
            margin-top: 10px; /* Reduced margin */
        }
        /* Active player indication */
        .player-panel.active {
            box-shadow: 0 0 10px 2px #4CAF50; /* Green glow */
        }
        .player-panel.inactive {
             opacity: 0.7;
        }
        /* Add to your CSS file or inside a <style> tag in <head> */
        @keyframes celebrate180 {
        0% { box-shadow: 0 0 0px 0px gold; }
        50% { box-shadow: 0 0 40px 10px gold; }
        100% { box-shadow: 0 0 0px 0px gold; }
        }
        .celebrate-180 {
        animation: celebrate180 1s ease;
        }

