* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121216;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar estilo Roblox/Gaming Dark */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a24;
  padding: 15px 30px;
  border-bottom: 2px solid #2a2a3a;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span {
  color: #00e5ff;
}

.navbar nav a {
  color: #a0a0b0;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
}

.navbar nav a.active, .navbar nav a:hover {
  color: #ffffff;
}

.user-profile {
  display: flex;
  align-items: center;
}

.btn-logout-small {
  background: #ff5252;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 12px;
  transition: 0.2s;
}

.btn-logout-small:hover {
  background: #ff1744;
}

/* Banner Principal / Contenedor de Juegos */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  width: 100%;
}

.hero-banner {
  background: linear-gradient(135deg, #1e1e2f 0%, #0d0d1a 100%);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid #2a2a3e;
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-content p {
  color: #b0b0c0;
  margin-bottom: 20px;
}

.play-btn-main {
  background: #00c853;
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.play-btn-main:hover {
  background: #00e676;
  transform: scale(1.03);
}

/* Grilla de Juegos */
.games-section h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.game-card {
  background-color: #1a1a24;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a3e;
  transition: 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-thumb {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
}

.game-info {
  padding: 15px;
}

.game-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.creator {
  font-size: 12px;
  color: #808090;
  margin-bottom: 12px;
}

.play-btn {
  width: 100%;
  background: #00e5ff;
  color: #000;
  border: none;
  padding: 8px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.play-btn:hover {
  background: #18ffff;
}

/* Formularios de Autenticación (login.html y register.html) */
.auth-container {
  width: 100%;
  max-width: 400px;
  margin: 60px auto;
  padding: 35px 30px;
  background-color: #1a1a24;
  border-radius: 12px;
  border: 1px solid #2a2a3e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.auth-container h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 5px;
}

.auth-container h2 span {
  color: #00e5ff;
}

.auth-subtitle {
  text-align: center;
  color: #808090;
  font-size: 13px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #b0b0c0;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #3a3a4e;
  background: #0f0f14;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #00e5ff;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #00e5ff;
  color: #000000;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #18ffff;
  transform: translateY(-2px);
}

.status-msg {
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
  color: #ff5252;
  min-height: 18px;
}

.auth-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 13px;
  color: #808090;
  border-top: 1px solid #2a2a3e;
  padding-top: 15px;
}

.auth-footer a {
  color: #00e5ff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
}

.auth-footer a:hover {
  text-decoration: underline;
}
