* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background: #1a1a2e; color: #fff; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.topbar { width: 100%; background: linear-gradient(135deg, #ff6b35, #e85d2a); padding: 0.8rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.topbar h1 { font-size: 1.2rem; font-weight: 800; }
.back-btn { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
#game-container { padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.info { font-size: 0.95rem; font-weight: 700; color: #a78bfa; }
.board { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; background: #c8a96e; padding: 8px; border-radius: 8px; max-width: 360px; width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.cell { aspect-ratio: 1; background: #c8a96e; border: 1px solid rgba(0,0,0,0.3); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; }
.cell:hover { background: #d4b87a; }
.stone { width: 85%; height: 85%; border-radius: 50%; }
.stone.black { background: radial-gradient(circle at 35% 35%, #555, #111); box-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.stone.white { background: radial-gradient(circle at 35% 35%, #fff, #ccc); box-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.stone.last { box-shadow: 0 0 0 3px #ff6b35; }
.actions { display: flex; gap: 0.5rem; }
.btn { padding: 0.6rem 1.5rem; background: linear-gradient(135deg, #ff6b35, #e85d2a); color: #fff; border: none; border-radius: 10px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.btn-secondary { background: rgba(255,255,255,0.15); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #16213e; border-radius: 16px; padding: 2rem; text-align: center; max-width: 320px; }
.modal p { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; white-space: pre-line; }
@media (max-width: 400px) { .board { max-width: 300px; } }

/* ===== SEO GAME INFO SECTION ===== */
.game-info {
  max-width: 780px;
  margin: 1rem auto;
  padding: 1rem 1.2rem;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.6;
}
.game-info h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.game-info h3 { font-size: 0.95rem; font-weight: 700; margin: 0.8rem 0 0.3rem; }
.game-info ul { padding-left: 1.2rem; }
.game-info li { margin-bottom: 0.2rem; }
