body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#teamList {
    list-style-type: none;
    padding: 0;
}

#teamList li {
    margin: 5px 0;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
}

/* Game Grid Styles */
.game-grid {
    display: grid;
    gap: 10px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.game-grid.grid-3x3 {
    grid-template-columns: repeat(3, 150px);
    grid-template-rows: repeat(3, 100px);
    width: 490px;
}

.game-grid.grid-4x4 {
    grid-template-columns: repeat(4, 150px);
    grid-template-rows: repeat(4, 100px);
    width: 520px;
}

.grid-square {
    background-color: white;
    border: 3px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.grid-square:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.grid-square.showing-word {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.grid-square.showing-question {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
    font-size: 14px;
}

/* Team colors for claimed squares */
.grid-square.team-color {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Fullscreen game mode */
.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-container .game-grid {
    width: 95vw;
    height: 90vh;
    display: grid;
    gap: 2vmin;
    padding: 0;
    margin: 0;
}

.fullscreen-container .game-grid.grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.fullscreen-container .game-grid.grid-4x4 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.fullscreen-container .grid-square {
    background-color: #ffffff;
    border: 3px solid #4a90e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20vmin; /* 2.5x bigger than normal (was 4vmin) */
    font-weight: bold;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #333;
    min-height: 0;
}

.fullscreen-container .grid-square.showing-word {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.fullscreen-container .grid-square.showing-question {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
    font-size: 7vmin; /* 2.5x bigger than normal (was 3vmin) */
}

.fullscreen-container .grid-square.team-color {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.fullscreen-container .grid-square:hover {
    transform: scale(1.02);
    border-width: 4px;
}

/* Cool toolbar-style action button for Reset/Fullscreen */
.toolbar-action-btn {
  background: linear-gradient(135deg, #b2f7ef 0%, #5eead4 40%, #38bdf8 80%, #0ea5e9 100%) !important;
  color: #1e293b !important;
  border: 3px solid #dbe6eb !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px 2px #0ea5e9, 0 0 18px 2px #38bdf8 inset, 0 1.5px 0 0 #b2f7ef inset;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  margin: 8px 0;
  cursor: pointer;
  transition: filter 0.18s, box-shadow 0.18s, transform 0.18s;
}
.toolbar-action-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px 2px #0ea5e9, 0 0 24px 2px #38bdf8 inset;
  transform: scale(1.04);
}

/* Remove stray merge conflict markers if present */


