* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  overflow: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1000;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.games-btn {
  padding: 5px 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.games-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 0;
  border-radius: 8px;
  min-width: 150px;
  display: none;
  z-index: 1001;
}

.games-dropdown.show { display: block; }

.games-dropdown a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 14px;
  transition: background 0.2s;
}

.games-dropdown a:hover { background: rgba(255, 255, 255, 0.15); }
.games-dropdown a.current { background: rgba(255, 255, 255, 0.2); font-weight: bold; }

.locale-select {
  padding: 5px 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.help-btn {
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 8px;
  max-width: 300px;
  display: none;
  z-index: 1001;
}

.help-dropdown.show { display: block; }

.help-dropdown h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #66BB6A;
}

.help-dropdown p {
  font-size: 14px;
  line-height: 1.5;
}

main {
  padding-top: 50px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100% - 50px);
  aspect-ratio: 1;
}

.cell {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 5px;
  font-size: clamp(24px, 8vw, 48px);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.cell:hover { background: rgba(255, 255, 255, 1); }
.cell.winner { background: #4CAF50; color: white; }
