body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }
  
  #start-menu {
    padding: 2rem;
    text-align: center;
  }
  
  #game-container {
    display: flex;
    height: 100vh;
  }
  
  #left-panel {
    flex: 3;
    padding: 1rem;
  }
  
  #right-panel {
    flex: 1;
    border-left: 2px solid #ddd;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  #board {
    display: grid;
    grid-template-columns: repeat(15, 30px);
    grid-template-rows: repeat(15, 30px);
    gap: 1px;
    margin-bottom: 1rem;
  }
  
  .board-cell {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    line-height: 30px;
    font-weight: bold;
    position: relative;
  }
  
  /* Special tile styles */
  .tw {
    background-color: #ff6b6b;
  }
  
  .dw {
    background-color: #ffa5a5;
  }
  
  .tl {
    background-color: #6b9cff;
  }
  
  .dl {
    background-color: #a5c0ff;
  }
  
  .center-star {
    background-color: #ffdd67;
  }
  
  .special-text {
    font-size: 8px;
    position: absolute;
    top: 2px;
    left: 2px;
    pointer-events: none;
    color: rgba(0, 0, 0, 0.6);
  }
  
  .star-symbol {
    font-size: 14px;
    color: #ff3838;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Drag and drop styles */
  .drag-over {
    background-color: #e0ffe0;
    box-shadow: inset 0 0 5px green;
  }
  
  .suggested {
    background-color: #ffffaa;
    box-shadow: 0 0 10px gold;
  }
  
  .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 {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    min-height: 50px;
    padding: 10px;
    background-color: #e8e0cf;
    border-radius: 10px;
    border: 2px solid #c9b18a;
    justify-content: center;
    align-items: center;
  }
  
  .tile {
    width: 30px;
    height: 30px;
    background-color: #f2eecb;
    border: 1px solid #555;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    cursor: move;
    position: relative;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .tile .point-value {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    color: #666;
  }
  
  .tile.placed-tile {
    cursor: default;
  }
  
  .tile.cpu-tile {
    background-color: #b99c6b;
    color: transparent;
  }
  
  #controls {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
  }
  
  button {
    padding: 8px 12px;
    background-color: #4a7dbd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #3a6da7;
  }
  
  button:disabled {
    background-color: #9fafcb;
    cursor: not-allowed;
  }
  
  .current-player {
    font-weight: bold;
    color: #2a5aa0;
  }
  
  #chatbot {
    margin-top: 1rem;
  }
  
  #chat-log {
    height: 200px;
    overflow-y: scroll;
    border: 1px solid #aaa;
    padding: 5px;
    background: #fafafa;
    margin-bottom: 5px;
  }
  
  #chat-log .bot {
    color: blue;
    font-weight: bold;
  }
  
  #chat-log .player {
    color: green;
  }
  
  #chat-input {
    width: 70%;
    padding: 5px;
  }
  
  #sendChatBtn {
    padding: 6px;
  }
  
  /* Game-end modal */
  #game-end-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 80%;
    text-align: center;
  }
  
  .winner {
    color: #d4af37;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  #final-scores, #game-stats {
    margin: 15px 0;
    text-align: left;
  }
  
  #final-score-list {
    list-style-type: none;
    padding-left: 10px;
  }
  
  #final-score-list li {
    margin: 5px 0;
    padding: 3px;
    background-color: #f8f8f8;
    border-radius: 3px;
  }
  
  #new-game-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4a7dbd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  #new-game-btn:hover {
    background-color: #3a6da7;
  }
  