/* WondarCore — código propio, no generado. Se puede modificar libremente. */
/* Modal de bienvenida — se muestra una vez por sesión de navegación, ver welcome-modal.js. */

.wm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 30, 0.55);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wm-overlay--visible { opacity: 1; pointer-events: auto; }

.wm-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.wm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: none;
  background: #f0f1f5;
  color: #666;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.wm-close:hover { background: #e4e6ec; }

.wm-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin: 4px 0 22px;
  padding-right: 32px;
}

.wm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 560px) {
  .wm-grid { grid-template-columns: 1fr; }
}

.wm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #f8f8fb;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
}

.wm-icon {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.wm-icon--partida { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.wm-icon--ia { background: linear-gradient(90deg, #8db5f7, #c1a6e0, #f292b7, #fcd462, #86cc98); }
.wm-icon--comunidad { background: linear-gradient(135deg, #10b981, #0891b2); }
.wm-icon--versus { background: linear-gradient(135deg, #f43f5e, #f59e0b); }

.wm-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1a1a2e;
}

.wm-card-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #666;
}

.wm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  justify-content: center;
  margin-bottom: 10px;
}
.wm-check input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.wm-cerrar-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.wm-cerrar-btn:hover { opacity: 0.9; }
