body { font-family: Arial, sans-serif; background: #f7f7f7; margin: 0; }
.container { max-width: 600px; margin: 40px auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 24px; }
h1 { text-align: center; margin-bottom: 24px; }
#status, #game-status { text-align: center; margin: 12px 0; font-size: 1.1em; }
.board { display: grid; grid-template-columns: repeat(8, 60px); grid-template-rows: repeat(8, 60px); gap: 2px; justify-content: center; margin: 20px 0; background: #2e7d32; padding: 8px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.cell { width: 60px; height: 60px; background: #4caf50; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; position: relative; border: 1px solid #2e7d32; }
.cell:hover { background: #66bb6a; }
.cell.valid-move { background: #81c784; cursor: pointer; }
.cell.valid-move::after { content: ''; position: absolute; width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; }
.piece { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.2); box-shadow: 0 2px 4px rgba(0,0,0,0.3); pointer-events: none; }
.piece.black { background: radial-gradient(circle at 35% 35%, #555, #000); }
.piece.white { background: radial-gradient(circle at 35% 35%, #fff, #ddd); }
.piece.preview { opacity: 0.5; }
#restart { display: block; margin: 0 auto; padding: 8px 24px; font-size: 1em; border-radius: 6px; border: none; background: #0077cc; color: #fff; cursor: pointer; }
#restart:hover { background: #005fa3; }

/* Mobile responsive styles */
@media (max-width: 600px) {
  .container { 
    margin: 20px auto; 
    padding: 16px; 
    border-radius: 8px;
  }
  
  h1 { 
    font-size: 1.5em; 
    margin-bottom: 16px; 
  }
  
  .board { 
    grid-template-columns: repeat(8, 45px); 
    grid-template-rows: repeat(8, 45px); 
    gap: 2px; 
    padding: 6px; 
    margin: 12px 0;
  }
  
  .cell { 
    width: 45px; 
    height: 45px; 
  }
  
  .piece {
    width: 38px;
    height: 38px;
  }
  
  #status, #game-status { 
    font-size: 1em; 
    margin: 8px 0; 
  }
  
  #player-names {
    font-size: 0.9em;
  }
  
  #player-names span {
    min-width: 80px !important;
  }
  
  #player-names img,
  #player-names div[style*="border-radius: 50%"] {
    width: 24px !important;
    height: 24px !important;
  }
}

@media (max-width: 400px) {
  .container { 
    margin: 10px; 
    padding: 12px; 
  }
  
  h1 { 
    font-size: 1.3em; 
  }
  
  .board { 
    grid-template-columns: repeat(8, 36px); 
    grid-template-rows: repeat(8, 36px); 
    gap: 2px; 
    padding: 5px; 
  }
  
  .cell { 
    width: 36px; 
    height: 36px; 
  }
  
  .piece {
    width: 30px;
    height: 30px;
  }
  
  #player-names {
    font-size: 0.85em;
  }
  
  #player-names span {
    min-width: 60px !important;
    margin-left: 6px !important;
    margin-right: 6px !important;
  }
  
  #player-names img,
  #player-names div[style*="border-radius: 50%"] {
    width: 20px !important;
    height: 20px !important;
  }
  
  #timer-container {
    font-size: 0.9em;
  }
}
/* Layout for Sidebar Ad */
.page-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

.main-content {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

.sidebar-ad {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .main-content {
    width: 100%;
  }
  
  .sidebar-ad {
    width: 100%;
    align-items: center;
  }
}
