body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9ebee;
  }
  
  #start-menu {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #start-menu h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
  }
  
  #game-container {
    display: none;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
  }
  
  .main-game-area {
    display: grid;
    grid-template-columns: 1fr 300px 300px;
    gap: 2rem;
  }
  
  #game-info {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
  }
  
  #game-info p {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
  }
  
  #game-timer, #round-indicator, #remaining-tiles-count {
    font-weight: bold;
    color: #2a5aa0;
    margin-left: 5px;
  }
  
  #left-panel {
    flex: 7;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 450px;
  }
  
  #right-panel {
    flex: 1.5;
    margin-left: 15px;
  }
  
  #board-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  #board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 2px;
    background: #dee2e6;
    padding: 2px;
    border-radius: 4px;
  }
  
  .board-and-history-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .board-cell {
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .board-cell:hover {
    background: #f8f9fa;
  }
  
  .board-cell.valid {
    background: #e3f2fd;
  }
  
  .board-cell.invalid {
    background: #ffebee;
  }
  
  /* Board Labels */
  .board-row-label, .board-col-label {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 12px;
    z-index: 5;
  }
  
  .board-row-label {
    left: -20px;
  }
  
  .board-col-label {
    top: -20px;
  }
  
  .board-cell .tile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .board-cell .tile .point-value {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 10px;
    font-weight: normal;
  }
  
  /* Special tile styles */
  .tw {
    background-color: #ff3333; /* Brighter red for triple word */
  }
  
  .dw {
    background-color: #ffb7b7; /* Pink for double word */
  }
  
  .tl {
    background-color: #3333ff; /* Brighter blue for triple letter */
  }
  
  .dl {
    background-color: #b7b7ff; /* Light blue for double letter */
  }
  
  .center {
    background-color: #ffb7b7; /* Same as double word for center square */
  }
  
  .center-star, .star-symbol {
    position: absolute;
    font-size: 20px;
    color: #333;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .special-text {
    font-size: 7px;
    text-align: center;
    font-weight: bold;
    color: black;
    width: 100%;
    text-transform: uppercase;
    line-height: 1.1;
  }
  
  /* Drag and drop styles */
  .drag-over {
    background-color: rgba(120, 240, 120, 0.5);
    box-shadow: inset 0 0 5px #2ecc71;
  }
  
  .rack-drag-over {
    background-color: rgba(120, 180, 240, 0.5);
    box-shadow: inset 0 0 5px #3498db;
    border: 2px dashed #3498db;
  }
  
  .suggested {
    background-color: rgba(255, 255, 120, 0.5);
  }
  
  .hint-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #2a5aa0;
    font-weight: bold;
    opacity: 0.7;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  #tile-rack-container {
    margin-top: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #tile-rack-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2a5aa0;
    text-align: center;
    font-size: 16px;
  }
  
  #tile-rack {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }
  
  #rack {
    display: flex;
    gap: 0.5rem;
    min-height: 60px;
  }
  
  .tile {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: move;
    user-select: none;
    transition: transform 0.2s;
  }
  
  .tile:hover {
    transform: translateY(-2px);
  }
  
  .tile.player-0 {
    background-color: #ffd43b;
  }
  
  .tile.player-1 {
    background-color: #cc5de8;
  }
  
  .tile.player-2 {
    background-color: #ff922b;
  }
  
  .tile.player-3 {
    background-color: #51cf66;
  }
  
  .tile-letter {
    font-size: 20px;
    font-weight: bold;
    color: #212529;
  }
  
  .tile-points {
    font-size: 10px;
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: #495057;
  }
  
  .rack-slot {
    width: 42px;
    height: 42px;
    border: 1px dashed #c9b18a;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5eeda;
    position: relative;
  }
  
  .cpu-tile {
    cursor: default;
  }
  
  /* Tile front (visible side) */
  .tile-front, .cpu-tile-front {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    background-color: #f4d03f;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
  }
  
  /* CPU tile front sides for different players */
  .cpu-tile-front.cpu-player-1 {
    background-color: #ff9800;
  }
  
  .cpu-tile-front.cpu-player-2 {
    background-color: #8bc34a;
  }
  
  .cpu-tile-front.cpu-player-3 {
    background-color: #9c27b0;
  }
  
  /* Tile back side (for CPU players) */
  .cpu-tile-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: rotateY(180deg);
  }
  
  /* Back side colors for different CPU players */
  .cpu-tile-back.cpu-player-1 {
    background-color: #e65100;
  }
  
  .cpu-tile-back.cpu-player-2 {
    background-color: #558b2f;
  }
  
  .cpu-tile-back.cpu-player-3 {
    background-color: #6a1b9a;
  }
  
  .tile-letter {
    font-size: 20px;
    font-weight: bold;
    color: #333;
  }
  
  .tile-value {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    position: absolute;
    bottom: 2px;
    right: 4px;
  }
  
  /* Dragging states */
  .tile.dragging {
    opacity: 0.7;
    cursor: grabbing;
  }
  
  /* Played tiles */
  .tile.played, .cpu-tile.played {
    cursor: default;
  }
  
  /* CPU Tile Styles */
  /* Player-specific tile colors */
  .player-0-tile {
    background-color: #f4d03f !important; /* Yellow for human player */
  }
  
  .player-1-tile {
    background-color: #9c27b0 !important; /* Purple for CPU 1 */
  }
  
  .player-2-tile {
    background-color: #ff9800 !important; /* Orange for CPU 2 */
  }
  
  .player-3-tile {
    background-color: #8bc34a !important; /* Green for CPU 3 */
  }
  
  .tile.placed-tile {
    cursor: default;
    box-shadow: 0 0 5px rgba(0, 100, 0, 0.5);
  }
  
  .tile.committed-tile {
    background-color: #d4c89f;
    border: 1px solid #333;
    cursor: not-allowed;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  }
  
  .tile.cpu-tile {
    background-color: #b99c6b;
    color: transparent;
  }
  
  #controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 550px;
  }
  
  #controls button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #178a44;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    min-width: 100px;
  }
  
  #controls button:hover {
    background-color: #0e6b31;
  }
  
  #controls button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
  }
  
  .current-player {
    font-weight: bold;
    color: #2a5aa0;
  }
  
  /* Player icon styles */
  .player-icon {
    margin-right: 8px;
    font-size: 14px;
    color: #555;
  }
  
  .current-player-icon {
    color: #2a5aa0;
  }
  
  /* Color indicator for player tiles */
  .color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ccc;
  }
  
  /* Scoreboard styling */
  #scoreboard {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
  }
  
  #scoreboard h3 {
    margin-top: 0;
    margin-bottom: 5px;
  }
  
  #scoreList {
    list-style: none;
    padding: 0;
  }
  
  #scoreList li {
    display: flex;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #eee;
  }
  
  #chatbot {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  #chatbot h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    text-transform: uppercase;
    color: white;
  }
  
  #chat-log {
    flex-grow: 1;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .chat-input-container {
    display: flex;
    gap: 0.5rem;
  }
  
  #chat-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  #sendChatBtn {
    padding: 0.75rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  #sendChatBtn:hover {
    background: #0056b3;
  }
  
  /* Bot message style */
  .bot-message {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
  }
  
  /* Recommendation buttons container */
  .recommendation-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
  }
  
  .recommendation-buttons button {
    padding: 6px 12px !important;
    background-color: rgba(30, 126, 52, 0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
  }
  
  .recommendation-buttons button:hover {
    background-color: rgba(30, 126, 52, 0.9) !important;
  }
  
  .recommendation-buttons button:disabled {
    background-color: #aaa !important;
    cursor: not-allowed !important;
  }
  
  #statisticsBtn {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #4a7dbd;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
  }
  
  /* Score Panel */
  .score-container {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
  }
  
  .score-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
  }
  
  .player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .player-info i {
    font-size: 1.2rem;
  }
  
  .player-info i.fa-user {
    color: #007bff;
  }
  
  .player-info i.fa-robot {
    color: #6c757d;
  }
  
  .score-value {
    font-weight: bold;
    color: #2c3e50;
  }
  
  .score-change {
    color: #f0f0f0;
    font-size: 14px;
    margin-left: 5px;
  }
  
  .game-status {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* Move History Panel */
  .move-history {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }
  
  .move-history h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
  }
  
  .history-content {
    max-height: 300px;
    overflow-y: auto;
  }
  
  /* Thinking indicator */
  #thinking-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 5px;
    color: #495057;
  }
  
  .brain-icon {
    font-size: 20px;
    animation: pulse 1s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  
  .thinking-text {
    margin-left: 8px;
    font-size: 14px;
    color: #555;
  }
  
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }
  
  /* API Status Indicator */
  .api-status {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
  }
  
  .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }
  
  .status-indicator i {
    font-size: 1.2rem;
  }
  
  .status-indicator i.fa-link {
    color: #6c757d;
  }
  
  .status-indicator i.fa-check {
    color: #28a745;
  }
  
  .status-indicator i.fa-times {
    color: #dc3545;
  }
  
  /* Spinner animation for the spinner icon only */
  .fa-spin {
    animation: spin 1.5s infinite linear;
  }
  
  /* Animation for connecting status */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* API Error Message */
  .api-error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
  }
  
  .api-error-message p {
    margin: 10px 0;
  }
  
  .api-error-message a {
    color: #2196F3;
    text-decoration: underline;
    font-weight: bold;
  }
  
  .api-error-message a:hover {
    text-decoration: none;
  }
  
  /* API Error Indicator for chat log */
  .api-error-indicator {
    background-color: #ffebee;
    color: #f44336;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
    opacity: 1;
  }
  
  .api-error-indicator i {
    margin-right: 8px;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
  
  /* Game End Modal Styles */
  #game-end-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .winner {
    text-align: center;
    color: #28a745;
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  
  #final-scores {
    margin-bottom: 1.5rem;
  }
  
  #final-score-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #final-score-list li {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  #game-stats {
    margin-bottom: 1.5rem;
  }
  
  #game-stats p {
    margin: 0.5rem 0;
    color: #6c757d;
  }
  
  .modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .main-game-area {
      grid-template-columns: 1fr 250px 250px;
    }
  }
  
  @media (max-width: 992px) {
    .main-game-area {
      grid-template-columns: 1fr;
    }
    
    #game-stats-panel,
    #right-panel {
      order: -1;
    }
  }
  
  @media (max-width: 768px) {
    .start-menu-layout {
      grid-template-columns: 1fr;
    }
    
    #start-menu {
      margin: 1rem;
      padding: 1rem;
    }
    
    .main-game-area {
      padding: 1rem;
    }
  }
  
  /* Start Menu Styles */
  .start-menu-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .start-menu-column {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
  }
  
  /* Connection Status Styles */
  .connection-status {
    margin-bottom: 1.5rem;
  }
  
  .connection-status h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
  }
  
  .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }
  
  .status-indicator i {
    font-size: 1.2rem;
  }
  
  .status-indicator i.fa-link {
    color: #6c757d;
  }
  
  .status-indicator i.fa-check {
    color: #28a745;
  }
  
  .status-indicator i.fa-times {
    color: #dc3545;
  }
  
  .connection-log {
    margin-top: 1rem;
  }
  
  .connection-log h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
  }
  
  #connection-log {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
  }
  
  #connection-log li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #6c757d;
  }
  
  /* Game Setup Styles */
  .game-setup {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .setup-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .setup-field label {
    color: #2c3e50;
    font-weight: 500;
  }
  
  .setup-field input,
  .setup-field select {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
  }
  
  .setup-field input:focus,
  .setup-field select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  #difficulty-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .difficulty-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .difficulty-option:hover {
    background: #f8f9fa;
  }
  
  .difficulty-option.selected {
    background: #e3f2fd;
    border-color: #2196f3;
  }
  
  .difficulty-option input[type="radio"] {
    margin: 0;
  }
  
  /* Button Styles */
  .button,
  .primary-button,
  .secondary-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .button {
    background: #6c757d;
    color: #fff;
  }
  
  .button:hover {
    background: #5a6268;
  }
  
  .primary-button {
    background: #007bff;
    color: #fff;
  }
  
  .primary-button:hover {
    background: #0056b3;
  }
  
  .primary-button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
  .secondary-button {
    background: #6c757d;
    color: #fff;
  }
  
  .secondary-button:hover {
    background: #5a6268;
  }
  
  /* Game Container Styles */
  #game-container {
    display: none;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
  }
  
  .main-game-area {
    display: grid;
    grid-template-columns: 1fr 300px 300px;
    gap: 2rem;
  }
  
  /* Board Container Styles */
  #board-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  #board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 2px;
    background: #dee2e6;
    padding: 2px;
    border-radius: 4px;
  }
  
  .board-cell {
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .board-cell:hover {
    background: #f8f9fa;
  }
  
  .board-cell.valid {
    background: #e3f2fd;
  }
  
  .board-cell.invalid {
    background: #ffebee;
  }
  
  /* Tile Rack Styles */
  #tile-rack {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }
  
  #rack {
    display: flex;
    gap: 0.5rem;
    min-height: 60px;
  }
  
  .tile {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: move;
    user-select: none;
    transition: transform 0.2s;
  }
  
  .tile:hover {
    transform: translateY(-2px);
  }
  
  /* Game Controls Styles */
  #game-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  /* Score Container Styles */
  .score-container {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
  }
  
  #player-scores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .player-info i {
    font-size: 1.2rem;
  }
  
  .player-info i.fa-user {
    color: #007bff;
  }
  
  .player-info i.fa-robot {
    color: #6c757d;
  }
  
  .score-value {
    font-weight: bold;
    color: #2c3e50;
  }
  
  /* Move History Styles */
  .move-history {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
  }
  
  .history-content {
    max-height: 300px;
    overflow-y: auto;
  }
  
  /* Chatbot Styles */
  #chatbot {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  #chat-log {
    flex-grow: 1;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .chat-message {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
  }
  
  .bot-message {
    background: #e3f2fd;
    color: #2c3e50;
  }
  
  .user-message {
    background: #f8f9fa;
    color: #2c3e50;
  }
  
  .chat-input-container {
    display: flex;
    gap: 0.5rem;
  }
  
  #chat-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  #sendChatBtn {
    padding: 0.75rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  #sendChatBtn:hover {
    background: #0056b3;
  }
  
  /* Game End Modal Styles */
  #game-end-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .winner {
    text-align: center;
    color: #28a745;
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  
  #final-scores {
    margin-bottom: 1.5rem;
  }
  
  #final-score-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #final-score-list li {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  #game-stats {
    margin-bottom: 1.5rem;
  }
  
  #game-stats p {
    margin: 0.5rem 0;
    color: #6c757d;
  }
  
  .modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  /* Start button states */
  #startGameBtn {
    transition: all 0.3s ease;
  }
  
  #startGameBtn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
  }
  
  #startGameBtn.active {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  #startGameBtn.active:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  